/* WIT Go rider app. Mobile-first (360–430 px). Palette: ink + volt. */
:root {
  --ink: #0d0f0c;
  --ink-2: #1b1e1a;
  --ink-3: #2b2f29;
  --volt: #d6f83c;
  --volt-2: #b9e01a;
  --paper: #ffffff;
  --mist: #f3f4ef;
  --mist-2: #e9ebe3;
  --line: #e2e4db;
  --muted: #676d62;
  --muted-2: #a0a598;
  --danger: #e2362d;
  --danger-tint: #fdecea;
  --ok: #138a4c;
  --ok-tint: #e3f5ea;
  --warn: #a86a00;
  --warn-tint: #fff4d6;
  --gps: #2f6bff;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sheet-h: 0px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #0d0f0c;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-appearance: none; appearance: none; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--volt-2); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

#app {
  position: relative;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--mist);
  isolation: isolate;
}
@media (min-width: 520px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, #2a3020 0%, #0d0f0c 60%); }
  #app { box-shadow: 0 0 0 1px #000, 0 40px 120px rgba(0, 0, 0, .6); }
}

/* ---------- map ---------- */
#map { position: absolute; inset: 0; z-index: 0; background: #e8eae2; }
#map .leaflet-tile-pane { filter: grayscale(.82) contrast(1.05) brightness(1.04); }
#map .leaflet-bottom { bottom: var(--sheet-h); transition: bottom .34s var(--ease); }
#map .leaflet-control-attribution { font-size: 10px; line-height: 1.4; background: rgba(255, 255, 255, .82); border-radius: 6px 0 0 0; padding: 1px 6px; }
#map .leaflet-control-attribution a { color: #33372f; }
.map-fallback { display: grid; place-items: start center; background: linear-gradient(160deg, #e9ebe4, #d9ddd0) !important; }
.map-fallback-msg { margin-top: calc(var(--safe-t) + 90px); padding: 10px 14px; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .1); max-width: 80%; text-align: center; }

.mk-gps, .mk-pickup, .mk-drop, .mk-captain { background: none; border: 0; }
.gps-dot { display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: var(--gps); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); animation: gpsPulse 2.2s infinite; }
@keyframes gpsPulse { 0% { box-shadow: 0 0 0 0 rgba(47, 107, 255, .45), 0 2px 6px rgba(0, 0, 0, .3); } 70% { box-shadow: 0 0 0 16px rgba(47, 107, 255, 0), 0 2px 6px rgba(0, 0, 0, .3); } 100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0), 0 2px 6px rgba(0, 0, 0, .3); } }
.pin-pickup { position: relative; display: block; width: 26px; height: 26px; }
.pin-pickup b { position: absolute; inset: 2px; border-radius: 50%; background: var(--volt); border: 5px solid var(--ink); box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.pin-pickup i { display: none; }
.pin-pickup.radar i { display: block; position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 248, 60, 0) 35%, rgba(214, 248, 60, .5) 72%); border: 2px solid rgba(150, 190, 10, .75); opacity: 0; animation: radarBig 2.7s var(--ease) infinite; pointer-events: none; }
.pin-pickup.radar i:nth-child(2) { animation-delay: .9s; }
.pin-pickup.radar i:nth-child(3) { animation-delay: 1.8s; }
@keyframes radarBig { 0% { transform: scale(.12); opacity: .95; } 100% { transform: scale(1.15); opacity: 0; } }
.pin-drop { display: block; width: 24px; height: 24px; }
.pin-drop b { display: block; width: 22px; height: 22px; margin: 1px; background: var(--ink); border-radius: 6px; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); position: relative; }
.pin-drop b::after { content: ""; position: absolute; inset: 4px; border-radius: 2px; background: var(--volt); }
.cap-marker { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.cap-marker svg { width: 34px; height: 22px; }

/* centre pin for "choose on map" */
#center-pin { position: absolute; left: 50%; top: calc((100% - var(--sheet-h)) / 2); z-index: 450; display: none; pointer-events: none; transform: translate(-50%, -100%); transition: top .34s var(--ease); }
body.pin-mode #center-pin { display: block; }
.cp-head { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 10px var(--ink), inset 0 0 0 20px var(--volt), 0 6px 14px rgba(0, 0, 0, .3); transition: transform .18s var(--ease); }
.cp-stem { display: block; width: 4px; height: 18px; margin: -2px auto 0; background: var(--ink); border-radius: 0 0 2px 2px; transition: transform .18s var(--ease); }
.cp-shadow { position: absolute; left: 50%; bottom: -3px; width: 14px; height: 5px; margin-left: -7px; border-radius: 50%; background: rgba(0, 0, 0, .28); transition: transform .18s var(--ease), opacity .18s; }
body.pin-lift .cp-head, body.pin-lift .cp-stem { transform: translateY(-12px); }
body.pin-lift .cp-shadow { transform: scale(.6); opacity: .5; }

/* ---------- floating chrome ---------- */
#topbar { position: absolute; top: calc(var(--safe-t) + 12px); left: 14px; right: 14px; z-index: 500; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
#topbar > * { pointer-events: auto; }
body[data-view="plan"] #topbar, body[data-view="parcel"] #topbar { display: none; }
.tb-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.fab { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(13, 15, 12, .18), 0 1px 2px rgba(13, 15, 12, .1); cursor: pointer; transition: transform .12s; }
.fab:active { transform: scale(.94); }
.fab svg { width: 22px; height: 22px; }
.fab.avatar { background: var(--ink); color: var(--volt); font-weight: 900; font-size: 19px; text-transform: uppercase; }
#recenter { position: absolute; right: 14px; bottom: calc(var(--sheet-h) + 14px); z-index: 500; transition: bottom .34s var(--ease), transform .12s; }
body[data-view="plan"] #recenter, body[data-view="parcel"] #recenter { display: none; }
.chip-gps { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; background: #fff; border: 0; font-size: 13px; font-weight: 800; box-shadow: 0 6px 18px rgba(13, 15, 12, .14); white-space: nowrap; cursor: default; }
button.chip-gps { cursor: pointer; }
.chip-gps svg { width: 16px; height: 16px; }
.chip-gps.good svg { color: var(--ok); }
.chip-gps.ok svg { color: var(--gps); }
.chip-gps.weak { background: var(--danger); color: #fff; }
.chip-gps.none svg { color: var(--muted-2); animation: blink 1.2s infinite; }
.pill-demo { display: inline-flex; align-items: center; background: #ffde59; color: #4d3a00; font-weight: 900; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.pill-demo.lg { height: 36px; padding: 0 12px; box-shadow: 0 6px 18px rgba(13, 15, 12, .14); }

/* ---------- bottom sheet ---------- */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 600;
  display: flex; flex-direction: column;
  max-height: calc(100% - var(--safe-t) - 74px);
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(13, 15, 12, .16), 0 -1px 0 rgba(13, 15, 12, .04);
}
.sheet.animating { transition: height .34s var(--ease); overflow: hidden; }
.sheet.full { height: 100%; max-height: 100%; border-radius: 0; }
/* Map-centric screens keep the route / captain visible; the sheet scrolls instead. */
body[data-view="choose"] .sheet, body[data-view="searching"] .sheet, body[data-view="matched"] .sheet, body[data-view="intrip"] .sheet { max-height: 64%; }
#recenter.tall { opacity: 0; pointer-events: none; }
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: var(--safe-b); }
.sheet.full .sheet-scroll { padding-top: var(--safe-t); }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--mist-2); margin: 10px auto 6px; }
.sheet.full .grab { display: none; }
.sheet-body.enter { animation: fadeUp .34s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sheet-pad { padding: 4px 18px 18px; }

/* ---------- type + utils ---------- */
.h2 { font-size: 23px; font-weight: 900; letter-spacing: -.025em; line-height: 1.15; margin: 2px 0 4px; }
.eyebrow { font-size: 13px; font-weight: 800; color: var(--muted); margin: 2px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; line-height: 1.45; }
.center { text-align: center; }
.pad-y { padding: 14px 0; margin: 0; }
p { margin: 0 0 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 18px; border-radius: 16px; border: 0; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .12s, background-color .2s, opacity .2s; user-select: none; -webkit-user-select: none; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .42; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.block { display: flex; width: 100%; margin-top: 10px; }
.btn.xl { height: 58px; font-size: 17px; border-radius: 18px; }
.btn.sm { height: 36px; font-size: 13px; padding: 0 12px; border-radius: 11px; }
.btn-volt { background: var(--volt); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--mist); color: var(--ink); border: 1.5px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-text { background: none; color: var(--ink); height: 44px; padding: 0 10px; font-weight: 700; }
.danger-text { color: var(--danger) !important; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.icon-btn:active { background: var(--mist); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.sm svg { width: 18px; height: 18px; color: var(--muted); }
.icon-btn.on-dark { color: #fff; }
.icon-btn.on-dark:active { background: var(--ink-3); }

/* ---------- forms ---------- */
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 13px; font-weight: 800; color: var(--muted); }
.fld em { font-style: normal; font-weight: 500; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; height: 52px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--mist);
  font-size: 16px; font-weight: 600; outline: none; transition: border-color .15s, background .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 64px; line-height: 1.4; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0f0c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(214, 248, 60, .55); }
input::placeholder, textarea::placeholder { color: var(--muted-2); font-weight: 500; }
.form { display: grid; gap: 12px; }
.form-err { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--danger-tint); color: #a3150e; font-size: 14px; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--mist); font-size: 13px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

/* ---------- home ---------- */
.where { width: 100%; display: flex; align-items: center; gap: 12px; height: 62px; border-radius: 18px; background: var(--mist); border: 1.5px solid var(--line); padding: 0 10px 0 16px; font-size: 21px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); text-align: left; cursor: pointer; transition: transform .12s; }
.where:active { transform: scale(.99); }
.where > svg { width: 24px; height: 24px; flex: none; }
.where > span:first-of-type { flex: 1; }
.where-now { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 800; letter-spacing: 0; box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(0, 0, 0, .05); }
.where-now svg { width: 14px; height: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 12px 18px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.tight { margin: 0; padding: 4px 0 6px; flex-wrap: wrap; overflow: visible; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 14px; font-weight: 800; cursor: pointer; transition: background .15s, border-color .15s, transform .12s; }
.chip:active { transform: scale(.97); }
.chip svg { width: 16px; height: 16px; }
.chip.ghost { border-style: dashed; color: var(--muted); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.list { display: grid; }
.place-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.list .place-row:last-child, .plan-shortcuts .place-row:last-child { border-bottom: 0; }
.place-row:active { background: linear-gradient(90deg, transparent, var(--mist) 10%, var(--mist) 90%, transparent); }
.place-row.static { cursor: default; }
.place-row.static:active { background: none; }
.place-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--mist); display: grid; place-items: center; }
.place-ic svg { width: 20px; height: 20px; }
.place-ic.volt { background: var(--volt); }
.place-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.place-tx b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-tx small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.svc { display: grid; justify-items: center; gap: 2px; padding: 10px 2px 9px; background: var(--mist); border: 0; border-radius: 18px; font-weight: 800; font-size: 13px; cursor: pointer; transition: transform .12s, background .15s; }
.svc:active { transform: scale(.96); background: var(--mist-2); }
.svc-art svg { width: 56px; height: 35px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 13px 14px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.trust span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.trust svg { width: 15px; height: 15px; color: var(--volt); stroke-width: 3.2; }
.trust.compact { font-size: 12px; gap: 4px 12px; padding: 10px 12px; margin: 10px 0; border-radius: 14px; }
.gps-warn { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--danger-tint); border: 0; text-align: left; cursor: pointer; }
.gps-warn.soft { background: var(--warn-tint); cursor: default; }
.gps-warn > svg { width: 22px; height: 22px; flex: none; }
.gps-warn span { display: grid; gap: 2px; }
.gps-warn small { font-size: 13px; color: var(--muted); }

/* ---------- plan (where to) ---------- */
.plan-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 2px; }
.plan-head h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.plan-fields { display: flex; gap: 10px; align-items: stretch; }
.pf-rail { display: flex; flex-direction: column; align-items: center; padding: 20px 0; }
.pf-line { flex: 1; width: 2px; margin: 4px 0; background: repeating-linear-gradient(var(--muted-2) 0 3px, transparent 3px 7px); }
.pf-inputs { flex: 1; display: grid; gap: 8px; min-width: 0; }
.field-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 14px; background: var(--mist); border: 1.5px solid transparent; transition: border-color .15s, box-shadow .15s, background .15s; }
.field-search.active, .field-search.solo { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(214, 248, 60, .55); }
.field-search > svg { width: 20px; height: 20px; flex: none; }
.field-search input { height: 100%; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font-weight: 700; border-radius: 0; }
.field-search input[readonly] { cursor: pointer; color: var(--muted); }
.plan-shortcuts { padding-top: 0; padding-bottom: 0; }
.list-h { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 14px 0 0; font-weight: 900; }
.osm-credit { font-size: 11px; color: var(--muted-2); text-align: right; margin: 6px 0 0; }
.osm-credit a { color: inherit; }
.tl-dot { flex: none; display: block; }
.tl-dot.pickup { width: 14px; height: 14px; border-radius: 50%; background: var(--volt); border: 4px solid var(--ink); }
.tl-dot.drop { width: 13px; height: 13px; border-radius: 3px; background: var(--ink); }

.skel .place-ic, .skel b, .skel small, .skel .veh-art, .skel .veh-fare, .skel .veh-mini { background: linear-gradient(90deg, #eceee7 0%, #f7f8f3 50%, #eceee7 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 8px; }
.skel b { display: block; height: 14px; width: 62%; }
.skel small { display: block; height: 10px; width: 38%; }
.skel .veh-art { width: 64px; height: 40px; }
.skel .veh-fare { width: 52px; height: 24px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- pin sheet ---------- */
.pin-addr { display: flex; gap: 12px; align-items: center; padding: 14px; margin: 10px 0 4px; border-radius: 16px; background: var(--mist); transition: opacity .2s; }
.pin-addr > svg { width: 22px; height: 22px; flex: none; }
.pin-addr span { display: grid; gap: 2px; min-width: 0; }
.pin-addr b { font-size: 16px; font-weight: 800; }
.pin-addr small { color: var(--muted); font-size: 13px; }
.pin-addr.loading { opacity: .5; }

/* ---------- trip line ---------- */
.tripline { position: relative; display: grid; background: var(--mist); border-radius: 16px; padding: 4px 12px; margin: 8px 0; }
.tl-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 0; background: none; border: 0; text-align: left; }
button.tl-row { cursor: pointer; }
.tl-rail { position: absolute; left: 18px; top: 32px; bottom: 32px; width: 2px; background: repeating-linear-gradient(var(--muted-2) 0 3px, transparent 3px 7px); }
.tl-text { min-width: 0; display: grid; gap: 1px; }
.tl-text b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tripline.static .tl-text b { white-space: normal; }
.route-meta { font-size: 13px; color: var(--muted); font-weight: 700; margin: 0 2px 2px; }

/* ---------- vehicle picker ---------- */
.veh-list { display: grid; gap: 8px; margin: 10px 0; }
.veh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px 8px 8px; border-radius: 18px; background: #fff; border: 2px solid var(--line); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .12s; }
.veh:active { transform: scale(.99); }
.veh.sel { border-color: var(--ink); background-color: #f7fde0; box-shadow: 0 6px 18px rgba(13, 15, 12, .08); }
.veh:disabled { opacity: .45; cursor: default; }
.veh-art svg { width: 64px; height: 40px; }
.veh-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.veh-tx b { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.veh-tx small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seats { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); }
.seats svg { width: 13px; height: 13px; }
.veh-fare { display: grid; text-align: right; }
.veh-fare b { font-size: 20px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.veh-fare small { font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.opt-block { margin: 14px 0 6px; }
.opt-h { font-size: 13px; font-weight: 800; color: var(--muted); margin: 0 0 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 10px 0; background: var(--mist); border-radius: 16px; }
.opt-block .seg { margin: 0; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 0; border-radius: 12px; background: transparent; font-weight: 800; font-size: 15px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .06); }
.seg svg { width: 18px; height: 18px; }
.toggle-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 0; background: none; border: 0; text-align: left; cursor: pointer; }
.switch { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--mist-2); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease), background .2s; }
.switch.on { background: var(--ink); }
.switch.on::after { transform: translateX(20px); background: var(--volt); }
.sticky-cta { position: sticky; bottom: 0; z-index: 2; margin: 8px -18px 0; padding: 14px 18px 6px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 28%); }
.sticky-cta .btn { margin-top: 0; }
.inline-err { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--danger-tint); font-size: 14px; font-weight: 600; margin: 10px 0; }
.inline-err > svg { width: 20px; height: 20px; flex: none; }
.inline-err > span { flex: 1; }
.inline-err.soft { background: var(--warn-tint); }

/* ---------- searching ---------- */
.search-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
.radar-mini { position: relative; flex: none; width: 66px; height: 66px; display: grid; place-items: center; }
.radar-mini i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--volt-2); opacity: 0; animation: radar 2.4s var(--ease) infinite; }
.radar-mini i:nth-child(2) { animation-delay: .8s; }
.radar-mini i:nth-child(3) { animation-delay: 1.6s; }
.radar-mini b { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--volt); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--ink); }
.radar-mini b svg { width: 36px; height: 23px; }
@keyframes radar { 0% { transform: scale(.65); opacity: 1; } 100% { transform: scale(1.75); opacity: 0; } }
.dots i { font-style: normal; animation: blink 1.4s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.progress { height: 6px; border-radius: 3px; background: var(--mist); overflow: hidden; margin: 4px 0 6px; }
.progress span { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width 1s linear; }
.fare-line { display: flex; align-items: center; gap: 12px; padding: 10px 2px; }
.fare-line > span:nth-child(2) { flex: 1; display: grid; gap: 1px; }
.fare-line small { font-size: 13px; color: var(--muted); }
.fare-amt { font-size: 21px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.veh-mini svg { width: 50px; height: 31px; }
.skel .veh-mini { width: 50px; height: 31px; display: block; }

/* ---------- matched ---------- */
.status-row { align-items: flex-start; }
.eta-badge { flex: none; width: 64px; height: 64px; border-radius: 20px; background: var(--ink); color: var(--volt); display: grid; place-items: center; align-content: center; line-height: 1; }
.eta-badge b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.eta-badge small { font-size: 11px; color: #fff; font-weight: 800; margin-top: 2px; }
.eta-badge.here svg { width: 24px; height: 24px; stroke-width: 3; }
.otp-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 14px 14px 14px 16px; border-radius: 22px; background: var(--ink); color: #fff; }
.otp-card p { margin: 0; font-size: 16px; font-weight: 900; }
.otp-card small { display: block; max-width: 160px; margin-top: 3px; font-size: 12px; color: #aeb3a8; line-height: 1.35; }
.otp-digits { display: flex; gap: 6px; }
.otp-digits span { width: 40px; height: 52px; border-radius: 12px; background: var(--volt); color: var(--ink); display: grid; place-items: center; font: 900 29px/1 var(--mono); }
.cap-card { padding: 10px 0 12px; }
.cap-top { display: flex; align-items: center; gap: 12px; }
.cap-photo { flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--volt); font-weight: 900; font-size: 20px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); margin: 5px; }
.cap-photo img { width: 100%; height: 100%; object-fit: cover; }
.cap-card.compact .cap-photo { width: 46px; height: 46px; font-size: 17px; }
.cap-who { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cap-who b { font-size: 17px; font-weight: 900; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cap-who small { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.star { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 900; }
.star svg { width: 14px; height: 14px; color: #f2b100; }
.cap-veh { display: grid; justify-items: end; gap: 5px; text-align: right; }
.cap-veh small { font-size: 12px; color: var(--muted); font-weight: 700; }
.plate { display: inline-flex; align-items: stretch; overflow: hidden; border: 2px solid var(--ink); border-radius: 7px; background: #ffd400; box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.plate i { display: grid; place-items: center; padding: 1px 2px; background: #1f4aa8; color: #fff; font-style: normal; font-size: 7px; font-weight: 900; letter-spacing: .06em; writing-mode: vertical-rl; transform: rotate(180deg); }
.plate b { padding: 5px 8px; font: 800 15px/1.1 var(--mono); letter-spacing: .05em; color: var(--ink); white-space: nowrap; }
.plate-check { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: var(--warn-tint); font-size: 14px; font-weight: 600; line-height: 1.4; }
.plate-check > svg { width: 20px; height: 20px; flex: none; color: var(--warn); }
.plate-check b { font-family: var(--mono); white-space: nowrap; }
.actions3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.act { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 18px; background: var(--mist); border: 0; font-weight: 800; font-size: 13px; color: var(--ink); text-decoration: none; cursor: pointer; transition: transform .12s; }
.act:active { transform: scale(.96); }
.act svg { width: 22px; height: 22px; }
.act.danger { background: var(--danger); color: #fff; }
.act:disabled { opacity: .4; cursor: default; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; padding: 10px 12px; border-radius: 14px; border: 1.5px dashed var(--muted-2); font-size: 12px; font-weight: 700; color: var(--muted); }
.demo-bar > span:nth-child(2) { flex: 1; min-width: 120px; }
.deliv-otp { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: var(--mist); }
.deliv-otp > span { flex: 1; display: grid; gap: 2px; }
.deliv-otp small { font-size: 12px; color: var(--muted); }

/* ---------- pay ---------- */
.fare-big { display: grid; gap: 4px; margin: 8px 0 12px; }
.fare-big b { font-size: 54px; font-weight: 900; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.fare-big small { color: var(--muted); font-weight: 700; font-size: 14px; }
.paid-ok { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; padding: 10px 12px; border-radius: 14px; background: var(--ok-tint); color: var(--ok); font-weight: 800; }
.paid-ok svg { width: 20px; height: 20px; stroke-width: 3; }
.qr-card { display: flex; align-items: center; gap: 14px; margin: 12px 0 8px; padding: 12px; border: 1.5px solid var(--line); border-radius: 20px; }
.qr { flex: none; width: 136px; height: 136px; }
.qr svg { width: 100%; height: 100%; border-radius: 8px; }
.qr-meta { display: grid; gap: 6px; min-width: 0; justify-items: start; }
.qr-meta small { font-size: 12px; color: var(--muted); font-weight: 700; }
.qr-meta b { font: 800 14px/1.3 var(--mono); word-break: break-all; }
.cash-card { display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 16px; border-radius: 20px; background: var(--mist); }
.cash-card > svg { width: 34px; height: 34px; flex: none; }
.cash-card span { display: grid; gap: 3px; }
.cash-card b { font-size: 17px; font-weight: 900; }
.cash-card small { font-size: 13px; color: var(--muted); }
.fee-note { margin: 14px 0 0; text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); }

/* ---------- rate ---------- */
.stars { display: flex; justify-content: center; gap: 4px; margin: 14px 0; }
.stars button { width: 56px; height: 56px; border: 0; background: none; color: var(--mist-2); cursor: pointer; transition: transform .15s var(--ease), color .15s; display: grid; place-items: center; }
.stars button.on { color: #f2b100; }
.stars button:active { transform: scale(1.18); }
.stars svg { width: 46px; height: 46px; }
.row-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 6px; }
.row-links .btn-text { font-size: 14px; color: var(--muted); }
.row-links .btn-text svg { width: 16px; height: 16px; }
.ended-ic { width: 58px; height: 58px; border-radius: 18px; background: var(--mist); display: grid; place-items: center; margin: 6px 0 10px; }
.ended-ic svg { width: 28px; height: 28px; }

/* ---------- pages ---------- */
#page .page { position: absolute; inset: 0; z-index: 900; overflow-y: auto; overscroll-behavior: contain; animation: pageIn .32s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.page-light { background: var(--mist); }
.page-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: calc(var(--safe-t) + 10px) 10px 10px; background: rgba(243, 244, 239, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.page-body { padding: 4px 16px calc(28px + var(--safe-b)); }
.sec-h { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 24px 4px 8px; font-weight: 900; }
.sub-h { display: flex; align-items: center; gap: 8px; margin: 8px 0 -4px; font-size: 15px; font-weight: 900; }
.sub-h svg { width: 18px; height: 18px; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 14px 16px; }
.list.card { padding: 2px 16px; }
.me-card { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; padding: 16px; border-radius: 22px; background: var(--ink); color: #fff; }
.me-card > div { display: grid; gap: 3px; min-width: 0; }
.me-card b { font-size: 18px; font-weight: 900; }
.me-card small { color: #aeb3a8; font-size: 13px; }
.me-av { flex: none; width: 56px; height: 56px; border-radius: 18px; background: var(--volt); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 15px 16px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); font-weight: 800; color: var(--ink); text-decoration: none; cursor: pointer; }
.menu-row > span { flex: 1; }
.menu-row svg { width: 20px; height: 20px; flex: none; }
.menu-row svg:last-child { color: var(--muted-2); }
.about p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #3a3e37; }
.about .menu-row { background: var(--mist); border-color: transparent; }
.ride-row { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 8px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); text-align: left; cursor: pointer; }
.ride-amt { display: grid; gap: 4px; justify-items: end; text-align: right; }
.ride-amt b { font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.st { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--mist-2); color: var(--muted); font-size: 11px; font-weight: 900; white-space: nowrap; }
.st-completed { background: var(--ok-tint); color: var(--ok); }
.st-cancelled, .st-expired { background: var(--danger-tint); color: var(--danger); }
.empty { display: grid; justify-items: center; gap: 8px; padding: 56px 20px; text-align: center; }
.empty svg { width: 44px; height: 44px; color: var(--muted-2); }
.empty h2 { margin: 0; font-size: 20px; font-weight: 900; }
.empty p { color: var(--muted); }
.receipt { margin: 6px 0 12px; padding: 16px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); }
.rc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.rc-head > div { flex: 1; display: grid; gap: 2px; }
.rc-head small { font-size: 13px; color: var(--muted); }
.rc-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.rc-row span { color: var(--muted); }
.rc-row b { text-align: right; word-break: break-word; }
.rc-row.total span { color: var(--ink); font-weight: 900; }
.rc-row.total b { font-size: 21px; font-weight: 900; }

/* ---------- login ---------- */
.page-login { position: relative; display: flex; flex-direction: column; min-height: 100%; background: var(--ink); color: #fff; overflow-x: hidden; }
.page-login::before { content: "₹0"; position: absolute; right: -28px; top: calc(var(--safe-t) + 40px); font-size: 230px; font-weight: 900; letter-spacing: -.07em; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(214, 248, 60, .16); pointer-events: none; }
.page-login::after { content: ""; position: absolute; left: -40px; right: -40px; top: 46%; height: 2px; background: repeating-linear-gradient(90deg, rgba(214, 248, 60, .35) 0 14px, transparent 14px 26px); transform: rotate(-8deg); pointer-events: none; }
.login-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: calc(var(--safe-t) + 18px) 18px 0 22px; min-height: 62px; }
.wordmark { display: inline-flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 900; letter-spacing: -.04em; color: #fff; }
.wordmark span { display: inline-block; padding: 2px 10px 3px; border-radius: 999px; background: var(--volt); color: var(--ink); font-size: 19px; letter-spacing: -.02em; transform: rotate(-5deg); }
.login-hero { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 22px 22px; }
.login-hero h1 { margin: 0 0 18px; font-size: 40px; line-height: 1.02; letter-spacing: -.04em; font-weight: 900; }
.login-hero p { color: #c3c8bd; font-size: 15px; margin: 0; }
.hl { color: var(--volt); }
.login-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #cdd2c7; font-size: 15px; font-weight: 600; }
.login-points li { display: flex; gap: 10px; align-items: flex-start; }
.login-points svg { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; background: var(--volt); color: var(--ink); stroke-width: 3.4; margin-top: 1px; }
.login-card { position: relative; z-index: 1; display: grid; gap: 12px; padding: 22px 18px calc(16px + var(--safe-b)); border-radius: 28px 28px 0 0; background: var(--paper); color: var(--ink); animation: fadeUp .4s var(--ease); }
.login-card .btn.block { margin-top: 2px; }
.phone-in { display: flex; align-items: center; height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--mist); transition: border-color .15s, box-shadow .15s, background .15s; }
.phone-in:focus-within { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(214, 248, 60, .55); }
.phone-in em { font-style: normal; font-weight: 900; font-size: 18px; padding: 0 4px 0 14px; color: var(--ink); }
.phone-in input { height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 20px; font-weight: 800; letter-spacing: .04em; padding-left: 6px; }
.otp-input { height: 64px !important; text-align: center; font: 900 30px var(--mono) !important; letter-spacing: .5em; padding-left: .5em !important; }
.dev-hint { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1.5px dashed var(--volt-2); background: #f6fde0; text-align: left; font-size: 14px; cursor: pointer; }
.dev-hint svg { width: 18px; height: 18px; flex: none; }
.dev-hint b { font-family: var(--mono); font-size: 16px; }

/* ---------- dialog + toast ---------- */
#dialog { position: absolute; inset: 0; z-index: 1000; pointer-events: none; }
#dialog.open { pointer-events: auto; }
.dlg-backdrop { position: absolute; inset: 0; background: rgba(13, 15, 12, .5); opacity: 0; transition: opacity .22s; }
#dialog.open .dlg-backdrop { opacity: 1; }
.dlg { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; padding: 22px 18px calc(16px + var(--safe-b)); border-radius: 28px 28px 0 0; background: #fff; transform: translateY(105%); transition: transform .3s var(--ease); }
#dialog.open .dlg { transform: none; }
.dlg h2 { margin: 0 0 8px; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.dlg-icon { width: 50px; height: 50px; border-radius: 16px; background: var(--mist); display: grid; place-items: center; margin-bottom: 12px; }
.dlg-icon svg { width: 26px; height: 26px; }
.dlg.danger .dlg-icon { background: var(--danger); color: #fff; }
.dlg-body p { color: #3a3e37; line-height: 1.45; }
.dlg-body .fld { margin-top: 8px; }
.dlg-actions { display: grid; gap: 8px; margin-top: 16px; }
.dlg-actions .btn { width: 100%; height: 54px; }
.radio-list { display: grid; gap: 6px; margin: 8px 0; }
.radio-list label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--mist); font-weight: 700; font-size: 15px; cursor: pointer; }
.radio-list input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.warn-note { padding: 10px 12px; border-radius: 12px; background: var(--warn-tint); font-size: 14px; }
.toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 72px); z-index: 1100; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; transform: translate(-50%, -14px); transition: opacity .22s, transform .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.volt { background: var(--volt); color: var(--ink); }
.toast.danger { background: var(--danger); }

@media (max-width: 370px) {
  .login-hero h1 { font-size: 34px; }
  .services { gap: 6px; }
  .svc-art svg { width: 48px; height: 30px; }
  .otp-digits span { width: 34px; height: 46px; font-size: 25px; }
  .fare-big b { font-size: 46px; }
  .qr { width: 116px; height: 116px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
