/* Rider app (ride / "ti"). Builds on tokens.css + base.css + phone-frame.css. */

.app {
  container: rider / inline-size;
  --pad: 16px;
  --top-h: 0px;          /* measured: height of the floating top overlay */
  --panel-h: 0px;        /* measured: height of the bottom panel (+ tab bar) */
  --tabbar-h: calc(58px + var(--safe-bottom));
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-subtle);
  font-family: var(--font-ui);
  color: var(--fg);
}

/* ── Map ─────────────────────────────────────────────────────────── */
.app .app-map { position: absolute; inset: 0; z-index: 0; }
.app-map .leaflet-bottom { bottom: var(--panel-h); transition: bottom var(--dur-slow) var(--ease-out); }
.app .app-map.hm-map .hm-badge { left: var(--pad); top: calc(var(--top-h) - 4px); bottom: auto; font-size: 11px; }
.app-map .leaflet-control-attribution { border-radius: 8px 0 0 0; }
.app[data-view="page"] .app-map, .app[data-view="search"] .app-map { visibility: hidden; }

.map-fab {
  position: absolute; z-index: 30; right: var(--pad);
  bottom: calc(var(--panel-h) + 34px);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--fg);
  box-shadow: var(--shadow-md);
  transition: bottom var(--dur-slow) var(--ease-out), opacity var(--dur-base), transform var(--dur-fast);
}
.map-fab:active { transform: scale(.94); }
.app:not([data-view="home"]):not([data-view="options"]):not([data-view="ride"]) .map-fab { opacity: 0; pointer-events: none; }

/* ── Top overlay ─────────────────────────────────────────────────── */
.app-top {
  position: absolute; z-index: 40; left: 0; right: 0; top: 0;
  padding: calc(var(--safe-top) + 6px) var(--pad) 18px;
  display: flex; align-items: center; gap: 12px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 55%, rgba(255,255,255,0) 100%);
}
.app-top > * { pointer-events: auto; }
.app-top.is-clear { background: none; }
.app[data-view="page"] .app-top, .app[data-view="search"] .app-top { display: none; }

.hello { flex: 1; min-width: 0; }
.hello-sub { font-size: 13px; font-weight: 650; color: var(--fg-muted); line-height: 1.2; display: flex; align-items: center; gap: 5px; }
.hello-name { font-family: var(--font-display); font-size: 21px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.2; margin-top: 2px; }
.me-btn { width: 42px; height: 42px; border-radius: 50%; padding: 0; box-shadow: 0 0 0 3px #fff, var(--shadow-sm); }
.me-btn .avatar { --size: 42px; font-size: 14px; }

.round-btn {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--fg);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast);
}
.round-btn:active { transform: scale(.94); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  height: 42px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-md);
  font-size: 14px; font-weight: 750; letter-spacing: -0.005em;
}
.status-pill .dot { width: 9px; height: 9px; }
.status-pill .ellipsis { min-width: 0; }
.status-pill.is-ink { background: var(--brand-ink); color: #fff; }
.top-spacer { flex: 1; }

/* ── Bottom panel ────────────────────────────────────────────────── */
.panel {
  position: absolute; z-index: 50; left: 0; right: 0; bottom: 0;
  max-height: calc(100% - var(--top-h, 118px) + 4px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(17, 20, 24, .14), 0 -1px 0 rgba(17, 20, 24, .04);
  padding: 8px var(--pad) calc(var(--safe-bottom) + 14px);
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base);
}
.panel::before { content: ""; width: 38px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 0 auto 10px; flex: none; }
.app.has-tabbar .panel { bottom: var(--tabbar-h); padding-bottom: 14px; border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(17, 20, 24, .12); }
.app[data-view="page"] .panel, .app[data-view="search"] .panel { transform: translateY(110%); opacity: 0; pointer-events: none; }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none; }
.panel-body::-webkit-scrollbar { display: none; }
.panel-foot { flex: none; padding-top: 12px; display: grid; gap: 8px; }
.panel .anim-rise { animation-duration: 360ms; }

/* ── Tab bar ─────────────────────────────────────────────────────── */
.tabbar {
  position: absolute; z-index: 60; left: 0; right: 0; bottom: 0;
  height: var(--tabbar-h);
  padding: 0 8px var(--safe-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transition: transform var(--dur-slow) var(--ease-out);
}
.app:not(.has-tabbar) .tabbar { transform: translateY(100%); pointer-events: none; }
.tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: var(--fg-subtle); letter-spacing: .005em;
  transition: color var(--dur-fast);
}
.tabbar button .i { position: relative; }
.tabbar button.is-active { color: var(--brand-primary); }
.tabbar button.is-active .i::after { content: ""; position: absolute; left: 50%; top: -9px; width: 18px; height: 3px; margin-left: -9px; border-radius: 0 0 3px 3px; background: var(--brand-primary); }

/* ── Home ────────────────────────────────────────────────────────── */
.nearby {
  position: absolute; z-index: 30; left: var(--pad); bottom: calc(var(--panel-h) + 39px);
  transition: bottom var(--dur-slow) var(--ease-out), opacity var(--dur-base);
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 750; white-space: nowrap;
}
.app:not([data-view="home"]) .nearby { opacity: 0; pointer-events: none; }
.nearby.is-empty .dot { background: var(--amber); color: var(--amber); }
.search-card {
  width: 100%; display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 10px 0 18px;
  border-radius: 18px; background: var(--surface-2);
  text-align: left; transition: background var(--dur-fast), transform var(--dur-fast);
}
.search-card:active { transform: scale(.985); }
.search-card:hover { background: var(--surface-3); }
.search-card .sc-ic { color: var(--brand-primary); display: inline-flex; }
.search-card .sc-text { flex: 1; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.search-card .sc-when { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--surface); font-size: 13px; font-weight: 750; box-shadow: var(--shadow-xs); }
.from-line { display: flex; align-items: center; gap: 8px; margin: 2px 2px 12px; font-size: 13px; color: var(--fg-muted); font-weight: 600; }
.from-line b { color: var(--fg); font-weight: 750; }
.from-line .dot { width: 8px; height: 8px; color: var(--brand-primary); background: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-soft); }
.from-line button { margin-left: auto; font-size: 13px; font-weight: 750; color: var(--brand-primary); }

.shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.shortcut {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; row-gap: 4px; align-items: center; min-width: 0;
  padding: 10px 8px 9px 9px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface); text-align: left;
  transition: border-color var(--dur-fast), transform var(--dur-fast), background var(--dur-fast);
}
.shortcut:active { transform: scale(.97); }
.shortcut:hover { border-color: var(--border-strong); background: var(--surface-2); }
.shortcut .sh-ic { width: 21px; height: 21px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--brand-primary-soft); color: var(--brand-primary); }
.shortcut .sh-ic svg { width: 13px; height: 13px; }
.shortcut .sh-body { display: contents; }
.shortcut b { font-size: 13.5px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shortcut small { grid-column: 1 / -1; font-size: 11.5px; color: var(--fg-muted); font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.promo {
  position: relative; display: block; width: 100%; height: 96px; margin-top: 12px;
  border-radius: 18px; overflow: hidden; text-align: left; color: #fff;
  background: var(--brand-ink);
  isolation: isolate;
}
.promo .art { position: absolute; inset: 0; z-index: -2; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,20,24,.92) 0%, rgba(17,20,24,.78) 45%, rgba(17,20,24,.05) 100%); }
.promo-body { position: absolute; left: 16px; top: 0; bottom: 0; right: 40%; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.promo-eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hajde-yellow); }
.promo-title { font-family: var(--font-display); font-size: 17px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
.promo-sub { font-size: 12px; font-weight: 600; opacity: .8; }
.promo-sub b { font-weight: 800; letter-spacing: .04em; color: #fff; opacity: 1; }
@media (max-height: 760px) { .promo { display: none; } }

/* ── Full-screen pages (search, tabs, thank-you) ─────────────────── */
.page {
  position: absolute; z-index: 55; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
  padding-top: var(--safe-top);
  animation: page-in 380ms var(--ease-out) both;
}
.app.has-tabbar .page { bottom: var(--tabbar-h); }
.page.is-sub { background: var(--bg-subtle); }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.page-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px var(--pad) 12px; }
.page-head h1 { font-size: 26px; flex: 1; min-width: 0; }
.page-head .round-btn { box-shadow: none; background: var(--surface-2); }
.page-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--pad) 24px; }
.page-scroll::-webkit-scrollbar { width: 0; }
.section-title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); margin: 18px 2px 6px; }

/* Search */
.route-fields {
  position: relative; margin: 0 var(--pad) 6px; padding: 6px 6px 6px 40px;
  border-radius: 20px; background: var(--surface-2);
}
.route-fields .rf-rail { position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: repeating-linear-gradient(var(--fg-subtle) 0 3px, transparent 3px 6px); }
.route-fields .rf-a, .route-fields .rf-b { position: absolute; left: 14px; width: 12px; height: 12px; }
.route-fields .rf-a { top: 21px; border-radius: 50%; background: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-soft); }
.route-fields .rf-b { bottom: 21px; border-radius: 3px; background: var(--brand-ink); }
.rf {
  display: flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 10px 0 12px; border-radius: 14px;
  transition: background var(--dur-fast), box-shadow var(--dur-fast);
}
.rf + .rf { margin-top: 4px; }
.rf.is-focus { background: var(--surface); box-shadow: var(--shadow-sm); }
.rf input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; font-weight: 650; color: var(--fg); }
.rf input::placeholder { color: var(--fg-subtle); font-weight: 600; }
.rf .rf-clear { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-muted); background: var(--surface-3); }
.rf .rf-tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle); }

.place-list { display: grid; }
.place-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 62px; padding: 10px 2px; text-align: left;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-fast);
}
.place-item:last-child { border-bottom: 0; }
.place-item:hover { background: linear-gradient(90deg, transparent, var(--surface-2) 12%, var(--surface-2) 88%, transparent); }
.place-item .pi-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--fg); }
.place-item .pi-ic.is-recent { background: var(--surface-2); color: var(--fg-muted); }
.place-item .pi-ic.is-me { background: var(--blue-soft); color: var(--blue); }
.place-item .pi-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.place-item .pi-title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-item .pi-title mark { background: none; color: var(--brand-primary); }
.place-item .pi-sub { font-size: 13px; color: var(--fg-muted); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-item .pi-meta { flex: none; font-size: 12.5px; font-weight: 700; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.no-results { padding: 36px 16px; text-align: center; color: var(--fg-muted); display: grid; justify-items: center; gap: 8px; }
.no-results .nr-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); color: var(--fg-subtle); }
.no-results b { color: var(--fg); font-size: 16px; }

/* ── Options (fare sheet) ────────────────────────────────────────── */
.opt-head { margin-bottom: 10px; min-width: 0; }
.opt-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.opt-head h3 { font-size: 19px; line-height: 1.2; white-space: nowrap; }
.opt-title-row .badge { flex: none; }
.opt-head .grow h3 { font-size: 19px; }
.opt-route { display: flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 4px; padding: 0; font-size: 13px; font-weight: 650; color: var(--fg-muted); min-width: 0; text-align: left; }
.opt-route .i { flex: none; color: var(--fg-subtle); margin-left: 2px; }
.opt-route:hover b { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.opt-route b { color: var(--fg); font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-route .sep { opacity: .5; }
.badge-fixed { --badge-bg: var(--hajde-yellow-50); --badge-fg: #8A5A00; box-shadow: inset 0 0 0 1px var(--hajde-yellow-100); }

.classes { display: grid; gap: 6px; }
.cls {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 6px 14px 6px 7px; border-radius: 16px;
  border: 1.5px solid var(--border); background: var(--surface); text-align: left;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.cls:hover { border-color: var(--border-strong); }
.cls.is-selected { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary), 0 8px 22px -12px rgba(229, 38, 46, .45); }
.cls[disabled] { opacity: .5; cursor: not-allowed; }
.cls-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--fg); }
.cls.is-selected .cls-ic { background: var(--hajde-yellow-50); color: #A86E00; }
.cls-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cls-name { display: flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 750; line-height: 1.25; }
.cls-name .badge { height: 19px; padding: 0 7px; font-size: 10.5px; }
.cls-sub { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--fg-muted); font-weight: 600; white-space: nowrap; }
.cls-sub .i { color: var(--fg-subtle); }
.cls-price { text-align: right; display: grid; gap: 0; }
.cls-price b { font-family: var(--font-display); font-size: 16px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cls-price s { font-size: 11.5px; font-weight: 650; color: var(--fg-subtle); }

.meter-note {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; padding: 7px 12px 7px 8px; border-radius: 12px;
  background: var(--green-soft); color: var(--green-ink);
  font-size: 13px; font-weight: 650; line-height: 1.3;
}
.meter-note .mn-ic { width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.7); }
.meter-note b { font-weight: 800; }
.meter-note.is-neutral { background: var(--surface-2); color: var(--fg-muted); }
.meter-note.is-neutral b { color: var(--fg); }
.meter-note.is-airport { background: var(--hajde-yellow-50); color: #7A4F00; }

.pay-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  height: 50px; padding: 0 12px 0 6px; text-align: left;
  border-radius: 14px; transition: background var(--dur-fast);
}
.pay-row:hover { background: var(--surface-2); }
.pay-row .pay-ic { width: 38px; height: 26px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.pay-row .pay-ic.is-card { background: linear-gradient(135deg, #1B2230, #3A4456); color: #fff; }
.pay-row .pay-ic.is-cash { background: var(--green-soft); color: var(--green-ink); }
.pay-row .grow { font-size: 15px; font-weight: 700; }
.pay-row .grow small { display: block; font-size: 12px; color: var(--fg-muted); font-weight: 600; }
.pay-row .chev { color: var(--fg-subtle); }
.cta-row { display: flex; gap: 8px; align-items: stretch; }
.cta-row .btn-primary { flex: 1; min-width: 0; padding: 0 14px; }
.pay-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 58px; padding: 0 10px 0 10px; border-radius: 18px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.pay-chip:hover { border-color: var(--border-strong); background: var(--surface-2); }
.pay-chip > .i:last-child { color: var(--fg-subtle); margin-left: -2px; }
.pay-ic { width: 34px; height: 24px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.pay-ic.is-card { background: linear-gradient(135deg, #1B2230, #3A4456); color: #fff; }
.pay-ic.is-cash { background: var(--green-soft); color: var(--green-ink); }
.pm-item .pay-ic { width: 40px; height: 28px; border-radius: 7px; }

.skel-cls { height: 64px; border-radius: 18px; }

/* ── Ride: shared bits ───────────────────────────────────────────── */
.eyebrow-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-primary); }
.eyebrow-live.is-green { color: var(--green-ink); }
.eyebrow-live.is-ink { color: var(--fg-muted); }
.big-title { font-family: var(--font-display); font-size: 25px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; margin-top: 4px; }
.big-title .num { font-variant-numeric: tabular-nums; }
.subline { font-size: 13.5px; color: var(--fg-muted); font-weight: 600; margin-top: 3px; }
.subline b { color: var(--fg); font-weight: 750; }

.eta-row { display: flex; align-items: center; gap: 14px; }
.eta-box { flex: none; min-width: 74px; height: 68px; padding: 0 10px; border-radius: 18px; display: grid; place-items: center; align-content: center; background: var(--brand-ink); color: #fff; text-align: center; }
.eta-box b { font-family: var(--font-display); font-size: 26px; font-weight: 650; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.eta-box span { font-size: 11px; font-weight: 750; opacity: .7; letter-spacing: .04em; margin-top: 3px; }
.eta-box.is-green { background: var(--green); }

.driver-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 12px 14px; border-radius: 18px; background: var(--surface-2); }
.driver-card .plate { height: 27px; font-size: 13px; }
.driver-card .plate .plate-band { width: 13px; font-size: 6px; padding-bottom: 2px; }
.driver-card .plate .plate-num { padding: 0 7px 0 6px; }
.driver-av { position: relative; flex: none; }
.driver-av .avatar { --size: 52px; background: var(--hajde-yellow); color: var(--brand-ink); font-size: 17px; }
.driver-av .rating-chip { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 6px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.driver-av .rating-chip .i { color: var(--hajde-yellow-dark); }
.driver-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.driver-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.driver-name { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.driver-car { font-size: 12.5px; color: var(--fg-muted); font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; min-width: 0; }
.driver-car .ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.driver-car .i { flex: none; }
.driver-car .i { color: var(--green); }

/* Albanian-style plate (blue band + number on taxi yellow) */
.plate {
  display: inline-flex; align-items: stretch; flex: none;
  height: 30px; border-radius: 6px; overflow: hidden;
  background: var(--hajde-yellow); color: #111418;
  box-shadow: inset 0 0 0 1.5px #111418;
  font-family: var(--font-inter); font-weight: 800; font-size: 14px; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.plate-band { width: 15px; display: grid; place-items: end center; padding-bottom: 3px; background: #1D4ED8; color: #fff; font-size: 7px; font-weight: 800; letter-spacing: 0; border-right: 1.5px solid #111418; }
.plate-num { display: grid; place-items: center; padding: 0 8px 0 7px; white-space: nowrap; }
.plate.is-xl { height: 52px; border-radius: 9px; font-size: 26px; box-shadow: inset 0 0 0 2.5px #111418, 0 10px 24px -10px rgba(224, 165, 0, .8); }
.plate.is-xl .plate-band { width: 24px; font-size: 10px; padding-bottom: 6px; border-right-width: 2.5px; }
.plate.is-xl .plate-num { padding: 0 16px 0 13px; }

.actions { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 8px; margin-top: 14px; }
.act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  height: 66px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; font-weight: 750; color: var(--fg);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.act:hover { background: var(--surface-2); }
.act:active { transform: scale(.96); }
.act .act-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.act.is-brand .act-ic { background: var(--brand-primary-soft); color: var(--brand-primary); }
.act.is-safety .act-ic { background: var(--blue-soft); color: var(--blue); }
.link-danger { display: block; width: 100%; margin-top: 6px; padding: 10px; text-align: center; font-size: 14px; font-weight: 750; color: var(--danger); border-radius: 12px; }
.link-danger:hover { background: var(--red-soft); }
.link-muted { display: block; width: 100%; padding: 10px; text-align: center; font-size: 14px; font-weight: 750; color: var(--fg-muted); border-radius: 12px; }
.link-muted:hover { background: var(--surface-2); }

.trip-mini { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); margin-top: 14px; }
.trip-mini .tm-route { flex: 1; min-width: 0; display: grid; gap: 6px; position: relative; padding-left: 18px; }
.trip-mini .tm-route::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--border-strong); }
.tm-stop { position: relative; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-stop::before { content: ""; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-primary); box-shadow: 0 0 0 2.5px var(--surface-2); }
.tm-stop.is-b::before { border-radius: 3px; background: var(--brand-ink); }
.trip-mini .tm-fare { text-align: right; flex: none; }
.trip-mini .tm-fare b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trip-mini .tm-fare small { font-size: 12px; font-weight: 650; color: var(--fg-muted); white-space: nowrap; }

/* Matching */
.match-bar { position: relative; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 14px; }
.match-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 4px; background: var(--brand-gradient); animation: match-slide 1.4s var(--ease-in-out) infinite; }
@keyframes match-slide { from { left: -40%; } to { left: 100%; } }
.match-steps { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.match-steps .chip { min-height: 30px; font-size: 12.5px; padding: 0 11px; border-color: var(--border); }
.match-steps .chip .i { color: var(--green); }

.radar { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.radar::before { content: ""; position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 38, 46, .22), rgba(229, 38, 46, 0) 70%); }
.radar span { position: absolute; left: -130px; top: -130px; width: 260px; height: 260px; border-radius: 50%; border: 2.5px solid rgba(229, 38, 46, .7); background: radial-gradient(circle, rgba(229, 38, 46, 0) 30%, rgba(229, 38, 46, .2) 100%); animation: radar 2.4s var(--ease-out) infinite; opacity: 0; }
.radar span:nth-child(2) { animation-delay: .8s; }
.radar span:nth-child(3) { animation-delay: 1.6s; }
.radar i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-primary); border: 4px solid #fff; box-shadow: 0 3px 12px rgba(229, 38, 46, .5); }
@keyframes radar { 0% { transform: scale(.12); opacity: .95; } 100% { transform: scale(1); opacity: 0; } }

/* Arrived */
.arrived-hero { text-align: center; display: grid; justify-items: center; gap: 4px; padding-top: 2px; }
.arrived-hero .big-title { margin-top: 2px; }
.arrived-hero .plate { margin: 12px 0 4px; }
.wait-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--green-soft); color: var(--green-ink); font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; margin-top: 6px; }

/* In trip */
.trip-track { margin-top: 14px; }
.trip-track .tt-bar { position: relative; height: 8px; border-radius: 8px; background: var(--surface-3); }
.trip-track .tt-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--brand-ink); transition: width 900ms linear; }
.trip-track .tt-car { position: absolute; top: 50%; left: calc(15px + (100% - 30px) * var(--f, 0)); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--hajde-yellow); color: var(--brand-ink); display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, var(--shadow-md); transition: left 900ms linear; }
.trip-track .tt-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: 12.5px; font-weight: 700; color: var(--fg-muted); }
.trip-track .tt-ends span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 48%; }
.trip-track .tt-ends span:last-child { color: var(--fg); }
.vitrina-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(120deg, rgba(123, 92, 255, .1), rgba(0, 209, 193, .1)); color: #3A2699; font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.vitrina-line img { width: 26px; height: 26px; flex: none; border-radius: 7px; }
.driver-mini { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.driver-mini .avatar { --size: 36px; background: var(--hajde-yellow); color: var(--brand-ink); font-size: 12px; }
.driver-mini .grow { font-size: 13.5px; font-weight: 750; }
.driver-mini .grow small { display: block; font-size: 12px; color: var(--fg-muted); font-weight: 600; }
.driver-mini .plate { height: 26px; font-size: 12.5px; }
.driver-mini .plate .plate-band { width: 13px; font-size: 6px; }

/* Cancelled / no drivers */
.state-hero { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 4px 8px 0; }
.state-ic { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-ink); margin-bottom: 4px; }
.state-ic.is-red { background: var(--red-soft); color: var(--red-ink); }
.state-ic.is-green { background: var(--green-soft); color: var(--green-ink); }
.state-hero p { font-size: 14px; color: var(--fg-muted); font-weight: 550; max-width: 300px; }

/* ── Rating ──────────────────────────────────────────────────────── */
.done-head { display: flex; align-items: center; gap: 12px; }
.done-check { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 163, 74, .7); animation: pop .5s var(--ease-spring) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.rate-q { text-align: center; margin-top: 16px; }
.rate-q .driver-av { display: inline-block; margin-bottom: 8px; }
.rate-q h3 { font-size: 18px; }
.stars { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.stars button { width: 46px; height: 46px; display: grid; place-items: center; color: var(--surface-3); transition: transform var(--dur-fast) var(--ease-spring), color var(--dur-fast); }
.stars button:hover { transform: scale(1.1); }
.stars button.is-on { color: var(--hajde-yellow); }
.stars button.is-on svg { filter: drop-shadow(0 3px 6px rgba(224, 165, 0, .35)); }
.stars-label { text-align: center; font-size: 13px; font-weight: 750; color: var(--fg-muted); min-height: 20px; margin-top: 2px; }
.tags { justify-content: center; margin-top: 12px; }
.tags .chip { min-height: 34px; font-size: 13px; padding: 0 12px; }
.tags .chip[aria-pressed="true"] { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.tip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tip-row .chip { justify-content: center; padding: 0 6px; min-height: 40px; font-size: 13.5px; }
.tip-row .chip[aria-pressed="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.tip-row .chip.is-none[aria-pressed="true"] { background: var(--brand-ink); border-color: var(--brand-ink); }
.total-card { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); display: grid; gap: 6px; }
.total-card .tl { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 650; color: var(--fg-muted); }
.total-card .tl b { color: var(--fg); font-weight: 750; font-variant-numeric: tabular-nums; }
.total-card .tl.is-total { padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--border-strong); color: var(--fg); font-weight: 800; font-size: 15px; }
.total-card .tl.is-total b { font-family: var(--font-display); font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.total-card .paid { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--green-ink); }

/* Geo offer card */
.offer-card { position: relative; display: block; margin-top: 16px; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); text-decoration: none; color: inherit; }
.offer-card .offer-art { position: relative; height: 118px; }
.offer-card .offer-art .art { position: absolute; inset: 0; }
.offer-card .offer-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); }
.offer-card .offer-tag { position: absolute; z-index: 2; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; background: rgba(255,255,255,.94); color: var(--brand-ink); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.offer-card .offer-adv { position: absolute; z-index: 2; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 800; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.offer-card .offer-adv .adv-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--adv, #C8102E); color: #fff; text-shadow: none; }
.offer-card .offer-body { padding: 12px 14px 14px; }
.offer-card .offer-perk { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; margin-bottom: 8px; border-radius: 99px; background: var(--hajde-yellow-50); color: #7A4F00; font-size: 12.5px; font-weight: 800; }
.offer-card .offer-title { font-family: var(--font-display); font-size: 16px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.offer-card .offer-sub { font-size: 13px; color: var(--fg-muted); font-weight: 550; margin-top: 3px; line-height: 1.4; }
.offer-card .offer-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.offer-card .offer-cta .btn { flex: none; }
.offer-card .offer-dist { font-size: 12.5px; font-weight: 700; color: var(--fg-muted); display: inline-flex; align-items: center; gap: 5px; }
.offer-mini { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px 10px 10px; border-radius: 16px; border: 1px solid var(--border); text-decoration: none; color: inherit; }
.offer-mini .om-art { position: relative; width: 52px; height: 52px; flex: none; border-radius: 12px; overflow: hidden; }
.offer-mini .om-art .art { position: absolute; inset: 0; }
.offer-mini .grow b { display: block; font-size: 13.5px; font-weight: 800; }
.offer-mini .grow small { display: block; font-size: 12px; color: var(--fg-muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Thank-you page */
.thanks { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 24px 8px 8px; }
.thanks .done-check { width: 72px; height: 72px; }
.thanks h1 { font-size: 24px; line-height: 1.2; margin-top: 10px; }
.thanks p { color: var(--fg-muted); font-size: 14.5px; font-weight: 550; max-width: 310px; }
.thanks-stars { display: flex; gap: 2px; color: var(--hajde-yellow); margin-top: 4px; }

/* ── Tabs: trips / payment / profile ─────────────────────────────── */
.sum-card { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 14px; border-radius: 20px; background: var(--brand-ink); color: #fff; }
.sum-card .kpi-label { color: rgba(255,255,255,.62); }
.sum-card .kpi-value { font-size: 19px; }
.trip-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 2px; border-bottom: 1px solid var(--border); text-align: left; }
.trip-item:last-child { border-bottom: 0; }
.trip-item .ti-ic { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--hajde-yellow-50); color: #A86E00; }
.trip-item .ti-ic.is-cancel { background: var(--surface-2); color: var(--fg-subtle); }
.trip-item .ti-ic.is-live { background: var(--brand-primary-soft); color: var(--brand-primary); }
.trip-item .grow { display: grid; gap: 2px; }
.trip-item .ti-title { font-size: 15px; font-weight: 750; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.trip-item .ti-sub { font-size: 12.5px; font-weight: 600; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-item .ti-right { flex: none; text-align: right; display: grid; justify-items: end; gap: 3px; }
.trip-item .ti-right b { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trip-item .ti-stars { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 750; color: var(--fg-muted); }
.trip-item .ti-stars .i { color: var(--hajde-yellow-dark); }
.group-card { background: var(--surface); border-radius: 20px; padding: 2px 14px; box-shadow: var(--shadow-xs); border: 1px solid var(--border); }

.pm-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 0; text-align: left; border-bottom: 1px solid var(--border); }
.pm-item:last-child { border-bottom: 0; }
.pm-item .grow b { display: block; font-size: 15px; font-weight: 750; }
.pm-item .grow small { display: block; font-size: 12.5px; color: var(--fg-muted); font-weight: 600; }
.pm-item .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.pm-item.is-on .radio { border-color: var(--brand-primary); }
.pm-item.is-on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-primary); }
.card-visual { position: relative; height: 176px; border-radius: 22px; padding: 18px 20px; color: #fff; overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, rgba(229, 38, 46, .55), transparent 55%), radial-gradient(80% 80% at 0% 100%, rgba(255, 198, 41, .28), transparent 60%), linear-gradient(135deg, #1B2230, #0E1116); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: space-between; }
.card-visual .cv-top { display: flex; justify-content: space-between; align-items: center; }
.card-visual .cv-top img { height: 22px; }
.card-visual .cv-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #E9D18C, #B8973E); }
.card-visual .cv-num { font-family: var(--font-inter); font-size: 19px; font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.card-visual .cv-bottom { display: flex; justify-content: space-between; font-size: 12px; font-weight: 650; opacity: .85; letter-spacing: .04em; }
.promo-code { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--hajde-yellow-50); border: 1px dashed var(--hajde-yellow-dark); }
.promo-code .pc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--hajde-yellow); color: var(--brand-ink); flex: none; }
.promo-code .grow b { display: block; font-size: 15px; font-weight: 800; }
.promo-code .grow small { display: block; font-size: 12.5px; color: #7A4F00; font-weight: 600; }
.promo-code code { font-family: var(--font-inter); font-weight: 800; letter-spacing: .08em; padding: 6px 10px; border-radius: 10px; background: #fff; font-size: 13px; }

.profile-hero { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 8px 0 16px; }
.profile-hero .avatar { --size: 84px; font-size: 28px; box-shadow: 0 0 0 4px #fff, var(--shadow-md); }
.profile-hero h2 { font-size: 22px; margin-top: 10px; }
.profile-hero .muted { font-size: 14px; font-weight: 600; }
.rating-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 14px; margin-top: 8px; box-shadow: var(--shadow-xs); }
.rating-pill .i { color: var(--hajde-yellow-dark); }
.rating-pill small { font-weight: 650; color: var(--fg-muted); font-size: 12.5px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.stat-row .kpi { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-align: center; justify-items: center; }
.stat-row .kpi-value { font-size: 19px; }
.set-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--border); text-align: left; }
.set-item:last-child { border-bottom: 0; }
.set-item .si-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--fg); }
.set-item .grow b { display: block; font-size: 14.5px; font-weight: 700; }
.set-item .grow small { display: block; font-size: 12.5px; color: var(--fg-muted); font-weight: 600; }
.set-item .chev { color: var(--fg-subtle); }
.about { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 0 6px; color: var(--fg-muted); font-size: 12.5px; font-weight: 600; }
.about img { height: 26px; opacity: .9; }

/* ── Sheets / modal / toasts (inside the phone) ──────────────────── */
.rider-sheet { padding-left: var(--pad, 16px); padding-right: var(--pad, 16px); padding-bottom: calc(var(--safe-bottom) + 16px); }
.rider-sheet .sheet-title { font-size: 20px; }
.rider-sheet .sheet-sub { font-size: 13.5px; color: var(--fg-muted); font-weight: 550; margin: -6px 0 12px; }
.share-link { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--surface-2); margin-top: 4px; }
.share-link code { flex: 1; min-width: 0; font-family: var(--font-inter); font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.share-grid button { display: grid; justify-items: center; gap: 6px; padding: 10px 0; border-radius: 14px; font-size: 12px; font-weight: 700; }
.share-grid button:hover { background: var(--surface-2); }
.share-grid .sg-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.share-note { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.sos-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sos-item:last-child { border-bottom: 0; }
.sos-num { width: 52px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-ink); font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.sos-item .grow b { display: block; font-size: 15px; font-weight: 750; }
.sos-item .grow small { display: block; font-size: 12.5px; color: var(--fg-muted); font-weight: 600; }
.quick-replies { display: grid; gap: 8px; }
.quick-replies button { text-align: left; padding: 13px 14px; border-radius: 16px 16px 16px 6px; background: var(--surface-2); font-size: 14.5px; font-weight: 650; transition: background var(--dur-fast); }
.quick-replies button:hover { background: var(--surface-3); }
.detail-route { position: relative; display: grid; gap: 14px; padding: 4px 0 4px 26px; }
.detail-route::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--border-strong); }
.detail-route .dr-stop { position: relative; }
.detail-route .dr-stop::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-primary); box-shadow: 0 0 0 3px var(--surface); }
.detail-route .dr-stop.is-b::before { border-radius: 3px; background: var(--brand-ink); }
.detail-route b { display: block; font-size: 15px; font-weight: 750; }
.detail-route small { font-size: 12.5px; color: var(--fg-muted); font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--fg-muted); }
.kv:last-child { border-bottom: 0; }
.kv b { color: var(--fg); font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }

.rider-modal { width: calc(100% - 40px); padding: 22px 20px 18px; border-radius: 26px; text-align: center; }
.rider-modal .m-ic { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-ink); }
.rider-modal h3 { font-size: 19px; }
.rider-modal p { font-size: 14px; color: var(--fg-muted); font-weight: 550; margin: 6px 0 16px; }
.rider-modal .m-actions { display: grid; gap: 8px; }

.rider-toasts { top: calc(var(--safe-top) + 6px) !important; width: calc(100% - 24px); }
.rider-toasts .toast { padding: 10px 12px 10px 10px; }

/* Connection banner + boot screen */
.conn-banner { position: absolute; z-index: 80; left: 12px; right: 12px; top: calc(var(--safe-top) + 6px); display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; border-radius: 14px; background: var(--amber-soft); color: var(--amber-ink); font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-md); }
.conn-banner .spinner { width: 16px; height: 16px; border-width: 2px; border-color: rgba(146, 64, 14, .3); border-top-color: var(--amber-ink); }
.boot { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 22px; background: var(--bg); transition: opacity 400ms var(--ease-out), visibility 400ms; }
.boot-logo { height: 40px; }
.app:not(.is-booting) .boot { opacity: 0; visibility: hidden; pointer-events: none; }

/* small helpers */
.hr { height: 1px; background: var(--border); margin: 14px 0; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.center-text { text-align: center; }
.fade-swap { animation: fade-in 260ms var(--ease-out) both; }

/* ── Narrow screens (framed on short windows: 360 px wide) ────────── */
@container rider (max-width: 375px) {
  .shortcuts { gap: 6px; }
  .shortcut { padding: 9px 7px 8px 8px; column-gap: 5px; }
  .shortcut b { font-size: 12.5px; }
  .shortcut small { font-size: 11px; }
  .cls-price b { font-size: 15px; }
  .hello-name { font-size: 19px; }
}

/* ── Short screens: tighter options list so some map stays visible ── */
@media (max-height: 760px) {
  .cls { min-height: 50px; padding-top: 4px; padding-bottom: 4px; }
  .cls-ic { width: 38px; height: 38px; border-radius: 11px; }
  .classes { gap: 5px; }
  .big-title { font-size: 22px; }
  .act { height: 58px; }
}

/* ── Real phones (full-bleed) ────────────────────────────────────── */
@media (max-width: 520px) {
  .app-top { padding-top: calc(var(--safe-top) + 10px); }
}
