/* =========================================================
   HKCallTaxi — UI mockup, "Red Cab" style
   The Hong Kong urban taxi, taken literally: true black night,
   lacquer-red bodywork for anything you act on, a silver roof
   for anything you have selected, and a cream roof lamp for the
   few warm highlights.
   Type: Archivo (Latin + numerals; wide italic for figures), Noto Sans HK (CJK)
   ========================================================= */

:root {
  --ink: #000000;
  --asphalt: #0F0F10;
  --graphite: #1A1A1C;
  --steel: #29292C;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);

  --text: #FFFFFF;
  --text-2: #A9ABB0;
  --text-3: #707277;

  /* Bodywork */
  --red: #E3141E;
  --red-hi: #FF4B45;
  --red-deep: #8E0A14;
  --lacquer: linear-gradient(165deg, #EF2A2A 0%, #E3141E 40%, #B00E19 100%);
  --tail: linear-gradient(90deg, #8E0A14 0%, #E3141E 52%, #FF6B57 100%);
  /* Roof */
  --silver: #D5D8DD;
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #DCDFE4 46%, #A9AEB6 100%);
  /* Roof lamp */
  --lamp: #FFE4A8;
  --amber: #FFC46B;

  --font: "Archivo", "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  --display: "Archivo", "Noto Sans HK", sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  --snap: cubic-bezier(.76, 0, .24, 1);

  --safe-top: max(env(safe-area-inset-top), 14px);
  --safe-bottom: max(env(safe-area-inset-bottom), 14px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; margin: 0; }
body {
  background: #000;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, output { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.logo { display: block; flex: none; }

:focus { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 12px; }

/* ---------------- Stage + device frame ---------------- */
.stage {
  position: relative; overflow: hidden;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; gap: 72px;
  padding: 24px;
  background: #000;
}
.stage::before, .stage::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.stage::before { width: 560px; height: 560px; right: 4%; top: -20%; background: var(--red); opacity: .2; }
.stage::after { width: 640px; height: 640px; left: -4%; bottom: -32%; background: #7A0911; opacity: .34; }

.device {
  position: relative; z-index: 1; flex: none;
  width: 393px;
  height: min(852px, calc(100dvh - 48px));
  border-radius: 58px;
  box-shadow:
    0 0 0 10px #060606,
    0 0 0 11.5px #3A3A3D,
    0 60px 140px -40px rgba(227, 20, 30, .42),
    0 30px 70px rgba(0, 0, 0, .8);
}
.app {
  position: absolute; inset: 0;
  overflow: hidden; isolation: isolate;
  border-radius: inherit;
  background: #0A0A0B;
  --safe-top: 54px;
  --safe-bottom: 26px;
}

/* ---------------- Review panel (desktop) ---------------- */
.review { position: relative; z-index: 1; width: 280px; flex: none; color: var(--text-2); }
.review-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 36px; }
.review-mark { width: 50px; height: 50px; border-radius: 14px; box-shadow: 0 14px 34px -12px rgba(227, 20, 30, .85); }
.wordmark { font-family: var(--display); font-stretch: 125%; font-weight: 500; letter-spacing: .01em; color: var(--text-2); }
.wordmark b { font-weight: 800; font-style: italic; letter-spacing: .02em; color: var(--text); margin-right: .12em; }
.review-title { font-size: 19px; line-height: 1.25; }
.review-sub { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.review-h { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.review-flow { display: grid; gap: 4px; }
.review-flow button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 13px; color: var(--text-2);
  transition: background .2s, color .2s;
}
.review-flow button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.review-flow button[aria-current="step"] { background: rgba(255, 255, 255, .08); color: var(--text); }
.rf-n {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none;
  font-size: 11.5px; border: 1px solid var(--line-2); color: var(--text-3);
}
.review-flow button[aria-current="step"] .rf-n { background: var(--lacquer); border-color: transparent; color: #fff; }
.review-replay {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  color: var(--text); border: 1px solid var(--line-2); transition: background .2s;
}
.review-replay:hover { background: rgba(255, 255, 255, .07); }
.review-replay .ic { width: 16px; height: 16px; }
.review-tips { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13px; }
.review-tips b { color: var(--text); font-weight: 500; }
.review-credit { margin-top: 24px; font-size: 11px; color: #4C4C52; }

@media (max-width: 980px) { .review { display: none; } }

/* Phone-size viewport: the app *is* the screen */
@media (max-width: 600px) {
  .stage { display: block; padding: 0; overflow: visible; }
  .stage::before, .stage::after { display: none; }
  .device { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
  .app { --safe-top: max(env(safe-area-inset-top), 14px); --safe-bottom: max(env(safe-area-inset-bottom), 14px); }
  .statusbar, .home-indicator { display: none !important; }
}

/* ---------------- Map ---------------- */
.map { position: absolute; inset: 0; z-index: 0; }
.map-tint {
  position: absolute; inset: 0 0 auto; height: 170px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .86), rgba(0, 0, 0, 0));
}
.app.map-failed .map {
  background:
    repeating-linear-gradient(32deg, transparent 0 46px, rgba(255, 255, 255, .05) 46px 48px, transparent 48px 120px),
    repeating-linear-gradient(-58deg, transparent 0 70px, rgba(255, 255, 255, .04) 70px 72px, transparent 72px 160px),
    radial-gradient(500px 400px at 50% 40%, #151517, #050505);
}
.maplibregl-ctrl-top-right { top: calc(var(--safe-top) + 64px); right: 6px; transition: opacity .3s; }
.app:not(.map-ready) .maplibregl-ctrl-top-right { opacity: 0; }
.maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(0, 0, 0, .7); color: var(--text-3); min-height: 22px; }
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button { filter: invert(1) opacity(.5); }
.maplibregl-ctrl-attrib a { color: var(--text-2); }
.app:not([data-screen="home"]):not([data-screen="booking"]) .maplibregl-ctrl-top-right { opacity: 0; pointer-events: none; }

/* Map markers */
.mk-taxi { width: 15px; height: 27px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .8)); }
.mk-taxi svg, .mk-driver svg { width: 100%; height: 100%; display: block; }
.mk-taxi svg { transition: opacity .5s, transform .5s var(--ease); }
/* MapLibre writes inline opacity on marker roots, so fade the artwork instead */
.app[data-screen="booking"] .mk-taxi svg,
.app[data-screen="search"] .mk-taxi svg,
.app[data-screen="assigned"] .mk-taxi svg { opacity: 0; transform: scale(.6); }

.mk-driver { width: 22px; height: 40px; filter: drop-shadow(0 0 12px rgba(255, 60, 50, .95)) drop-shadow(0 4px 4px rgba(0, 0, 0, .7)); }

.mk-stop { width: 18px; height: 18px; position: relative; }
.mk-stop .mk-dot {
  position: absolute; inset: 0; border-radius: 50%;
  background: #000; border: 5px solid #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .16), 0 4px 12px rgba(0, 0, 0, .7);
}
.mk-stop.is-drop .mk-dot { border-radius: 5px; }
.mk-label {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 6px 12px 7px; border-radius: 11px; white-space: nowrap;
  background: rgba(14, 14, 15, .94); border: 1px solid var(--line-2); color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .6);
  animation: pop-in .5s var(--spring) both .9s;
}
.mk-label::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px;
  background: inherit; border: inherit; border-top: 0; border-left: 0;
  transform: translate(-50%, -5px) rotate(45deg);
}
.mk-label small { font-size: 11px; color: var(--text-2); line-height: 1.2; }
.mk-label b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.mk-stop.is-drop .mk-label { background: #fff; color: #000; border-color: #fff; }
.mk-stop.is-drop .mk-label small { color: var(--red); font-size: 12px; }

.mk-stop.is-pulse { width: 20px; height: 20px; }
.mk-stop .sweep {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(227, 20, 30, 0) 0 62%, rgba(227, 20, 30, .3) 88%, rgba(255, 90, 78, .8) 100%);
  -webkit-mask: radial-gradient(circle, #000 0 58%, transparent 70%);
  mask: radial-gradient(circle, #000 0 58%, transparent 70%);
  animation: spin 2.6s linear infinite; pointer-events: none;
}
.mk-stop .ring {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px;
  border-radius: 50%; border: 1.5px solid rgba(255, 110, 98, .6);
  transform: scale(.05); opacity: 0;
  animation: ring 3s cubic-bezier(.2, .6, .3, 1) infinite;
  pointer-events: none;
}
.mk-stop .ring:nth-of-type(3) { animation-delay: 1.5s; }
@keyframes ring { 0% { transform: scale(.05); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in { from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.92); } }

/* ---------------- Status bar + home indicator (framed only) ---------------- */
.statusbar {
  position: absolute; inset: 0 0 auto; height: 54px; z-index: 60; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 44px;
  font-weight: 600; font-size: 16px; color: #fff;
}
.sb-island { position: absolute; left: 50%; top: 11px; width: 122px; height: 36px; margin-left: -61px; border-radius: 20px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-icons svg { fill: #fff; }
.sb-batt { width: 26px; height: 13px; border-radius: 4px; border: 1.4px solid rgba(255, 255, 255, .55); padding: 1.5px; position: relative; }
.sb-batt i { display: block; height: 100%; border-radius: 2px; background: #fff; }
.sb-batt::after { content: ""; position: absolute; right: -4px; top: 3.5px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .55); }
.home-indicator { position: absolute; left: 50%; bottom: 8px; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: rgba(255, 255, 255, .6); z-index: 80; pointer-events: none; }

/* ---------------- Screens ---------------- */
.screen {
  position: absolute; inset: 0; z-index: 10;
  pointer-events: none; visibility: hidden;
  transition: visibility 0s linear .6s;
}
.screen.is-active { visibility: visible; transition-delay: 0s; }
.screen.is-active > * { pointer-events: auto; }
.screen-home.is-active .pickup-pin { pointer-events: none; }

/* ---------------- Shared surfaces ---------------- */
.glass {
  background: rgba(8, 8, 8, .72);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
/* Map buttons: machined squares, like switchgear */
.round {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none;
  color: #fff; position: relative; transition: transform .2s, background .2s;
}
.round:hover { background: rgba(30, 30, 30, .8); }
.round:active { transform: scale(.93); }

/* Sheets: pure black, a tail-light glowing along the top edge */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 72% 96px at 50% 0, rgba(227, 20, 30, .24), transparent), #000;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -30px 70px rgba(0, 0, 0, .75);
  transition: transform .6s var(--ease);
}
.sheet::before, .modal-sheet::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1.5px; border-radius: 1px;
  background: linear-gradient(90deg, rgba(142, 10, 20, 0), #B00E19 16%, #FF5A4D 50%, #B00E19 84%, rgba(142, 10, 20, 0));
  pointer-events: none;
}
.grab { display: block; width: 36px; height: 4px; border-radius: 2px; background: #3A3A3D; margin: 10px auto 12px; }

.dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #000; border: 3px solid #fff; }
.dot-drop { border-radius: 3px; background: #fff; border: 0; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none;
  color: var(--text); transition: background .2s, transform .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.icon-btn:active { transform: scale(.93); }

/* ================= HOME ================= */
.home-top {
  position: absolute; left: 16px; right: 16px; top: calc(var(--safe-top) + 6px);
  display: flex; justify-content: space-between; align-items: center;
  transition: transform .55s var(--ease), opacity .4s;
}
.screen-home:not(.is-active) .home-top { transform: translateY(-24px); opacity: 0; }
.top-right { display: flex; gap: 10px; }

.points {
  height: 46px; padding: 0 15px 0 9px; border-radius: 15px;
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2);
}
.pt-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--lacquer); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.pt-ic .ic { width: 13px; height: 13px; fill: #fff; stroke: none; }
.points b { font-size: 15px; color: #fff; }
.has-dot::after {
  content: ""; position: absolute; right: 10px; top: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-hi); box-shadow: 0 0 0 2px #0A0A0A, 0 0 8px rgba(255, 75, 69, .9);
}

/* Center pickup pin: a red lamp on a white stalk */
.pickup-pin {
  position: absolute; left: 50%; top: var(--pin-y, 38%);
  width: 0; height: 0; z-index: 2;
  transition: opacity .35s, top .5s var(--ease);
}
.screen-home:not(.is-active) .pickup-pin { opacity: 0; }
.pin-body { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: transform .45s var(--spring); }
.pin-head {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  background: var(--lacquer); border: 2.5px solid #fff;
  box-shadow: 0 0 0 6px rgba(227, 20, 30, .22), 0 0 22px rgba(255, 60, 50, .7), 0 10px 22px rgba(0, 0, 0, .7);
}
.pin-head::after { content: ""; position: absolute; inset: 7.5px; border-radius: 50%; background: #fff; }
.pin-stick { width: 3px; height: 16px; border-radius: 0 0 2px 2px; background: #fff; }
.pin-shadow {
  position: absolute; left: 0; top: 0; width: 14px; height: 5px; border-radius: 50%;
  transform: translate(-50%, -50%); background: rgba(0, 0, 0, .7); transition: transform .45s var(--spring), opacity .3s;
}
.pin-shadow::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 75, 69, .5), rgba(227, 20, 30, .2) 45%, rgba(142, 10, 20, 0) 70%);
  animation: halo 2.6s ease-in-out infinite;
}
@keyframes halo { 0%, 100% { transform: scale(.65); opacity: .95; } 50% { transform: scale(1); opacity: .4; } }
.pin-eta {
  position: absolute; left: 0; bottom: 58px; transform: translateX(-50%);
  white-space: nowrap; font-size: 12.5px; font-weight: 700; color: #000;
  padding: 5px 11px 5px 10px; border-radius: 10px; background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .55);
  transition: opacity .25s, transform .45s var(--spring);
}
.pin-eta b { font-size: 14px; margin-right: 4px; }
.pickup-pin.is-lifting .pin-body { transform: translateX(-50%) translateY(-14px); }
.pickup-pin.is-lifting .pin-shadow { transform: translate(-50%, -50%) scale(.55); opacity: .5; }
.pickup-pin.is-lifting .pin-eta { opacity: 0; transform: translateX(-50%) translateY(-6px); }

/* Floating row above the home sheet */
.home-float {
  position: absolute; left: 14px; right: 14px; bottom: calc(var(--hs, 300px) + 12px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  transition: transform .6s var(--ease), opacity .4s;
}
.screen-home:not(.is-active) .home-float { transform: translateY(40px); opacity: 0; }
.notice {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 8px 6px 8px 9px; border-radius: 16px;
  transition: opacity .3s, transform .4s var(--ease);
}
.notice.is-gone { opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none; }
.notice-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 196, 107, .15); color: var(--amber); flex: none; }
.notice-ic .ic { width: 16px; height: 16px; }
.notice p { flex: 1; font-size: 13px; color: #E9E9EC; line-height: 1.35; }
.notice-act { flex: none; height: 32px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #000; background: var(--chrome); }
.notice-x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--text-3); flex: none; }
.notice-x .ic { width: 16px; height: 16px; }

/* Home sheet */
.sheet-home { padding-bottom: calc(var(--safe-bottom) + 4px); }
.screen-home:not(.is-active) .sheet-home { transform: translateY(105%); }
.pickup-row { display: flex; align-items: center; gap: 14px; padding: 2px 16px 0 24px; }
.pickup-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pickup-text small { font-size: 12.5px; color: var(--text-3); }
.pickup-text strong { font-size: 17px; font-weight: 700; letter-spacing: .01em; transition: opacity .2s; }
.pickup-text span { font-size: 13px; color: var(--text-2); transition: opacity .2s; }
.pickup-text strong, .pickup-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickup-text.is-updating strong, .pickup-text.is-updating span { opacity: .35; }

/* 空車: the red for-hire lamp, counting the cabs free nearby */
.hire {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 11px 0 10px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(227, 20, 30, .14); border: 1px solid rgba(255, 75, 69, .34);
}
.hire i { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 3px rgba(255, 75, 69, .2), 0 0 10px 1px rgba(255, 75, 69, .95); }
.hire b { font-size: 14px; margin-right: 1px; }

/* The hero control: black field, red switch on the left */
.search-bar {
  margin: 16px 16px 0; width: calc(100% - 32px); height: 66px; padding: 0 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(255, 75, 69, .5);
  background: linear-gradient(180deg, #171718, #0B0B0C);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 4px rgba(227, 20, 30, .09), 0 22px 44px -24px rgba(227, 20, 30, .95);
  transition: transform .2s var(--ease), box-shadow .3s, border-color .3s;
}
.search-bar:hover { border-color: rgba(255, 90, 78, .85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 4px rgba(227, 20, 30, .16), 0 22px 50px -20px rgba(240, 30, 36, 1); }
.search-bar:active { transform: scale(.985); }
.sb-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--lacquer);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -8px 12px -6px rgba(70, 0, 8, .6), 0 8px 18px -8px rgba(227, 20, 30, .95);
}
.sb-ic .ic { width: 21px; height: 21px; stroke-width: 2.4; }
.sb-text { flex: 1; font-size: 21px; font-weight: 900; letter-spacing: .03em; }
.sb-now {
  flex: none; height: 42px; padding: 0 13px 0 10px; border-radius: 12px; background: #232325;
  display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600;
}
.sb-now .ic { width: 15px; height: 15px; }

.places { margin-top: 8px; }
.place { width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 22px; transition: background .15s; }
.place:hover { background: rgba(255, 255, 255, .04); }
.place:active { background: rgba(255, 255, 255, .08); }
.pl-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--graphite); color: #fff; }
.pl-ic .ic { width: 18px; height: 18px; }
.pl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-text b { font-weight: 600; font-size: 15.5px; }
.pl-text small { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-km { flex: none; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pl-chev { color: var(--text-3); width: 18px; height: 18px; }
.places .place + .place { box-shadow: inset 0 1px 0 var(--line); }

/* ================= SEARCH ================= */
.search-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: #000;
  padding-top: var(--safe-top);
  transform: translateY(100%);
  transition: transform .55s var(--ease);
}
.screen-search.is-active .search-panel { transform: none; }
.search-head { display: flex; align-items: center; gap: 4px; padding: 4px 12px 8px; }
.search-head h2 { font-size: 21px; font-weight: 900; letter-spacing: .02em; }

.route-inputs {
  position: relative; margin: 4px 16px 8px; padding: 6px; border-radius: 20px;
  background: var(--asphalt); border: 1px solid var(--line);
  display: grid; gap: 4px;
}
.ri-rail { position: absolute; left: 25px; top: 36px; bottom: 36px; width: 0; border-left: 2px dotted rgba(255, 255, 255, .25); }
.ri { display: flex; align-items: center; gap: 14px; padding: 0 14px; height: 52px; border-radius: 14px; transition: background .2s, box-shadow .2s; }
.ri.is-focus { background: var(--graphite); }
.ri.is-focus:focus-within { box-shadow: inset 0 0 0 1.5px var(--red-hi), 0 0 0 4px rgba(227, 20, 30, .14); }
.ri input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; height: 100%; caret-color: var(--red-hi); }
.ri input:focus-visible { outline: none; }
.ri input::placeholder { color: var(--text-3); }
.ri input[readonly] { color: var(--text-2); }

.search-scroll { flex: 1; overflow-y: auto; padding: 4px 0 calc(var(--safe-bottom) + 16px); scrollbar-width: none; }
.search-scroll::-webkit-scrollbar { display: none; }
.list-h { font-size: 13px; font-weight: 500; color: var(--text-3); padding: 18px 22px 4px; }
.place-map .pl-ic { background: var(--chrome); color: #000; }
.place mark { background: none; color: #fff; font-weight: 800; text-decoration: underline; text-decoration-color: var(--red-hi); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.empty { padding: 28px 22px; color: var(--text-2); font-size: 14px; text-align: center; }

/* ================= BOOKING ================= */
.map-back { position: absolute; left: 14px; top: calc(var(--safe-top) + 6px); z-index: 3; transition: opacity .35s, transform .45s var(--ease), background .2s; }
.screen-booking:not(.is-active) .map-back { opacity: 0; transform: translateX(-12px); }

.sheet-booking {
  top: var(--sheet-top, 43%);
  display: flex; flex-direction: column;
  transition: top .5s var(--ease), transform .6s var(--ease);
}
.sheet-booking.is-dragging { transition: none; }
.screen-booking:not(.is-active) .sheet-booking { transform: translateY(105%); }
.grab-zone { flex: none; height: 26px; display: flex; justify-content: center; cursor: grab; touch-action: none; border-radius: 26px 26px 0 0; }
.grab-zone .grab { margin: 10px 0 0; }
.grab-zone:active { cursor: grabbing; }

.book-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 16px 18px; display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: none;
}
.book-scroll::-webkit-scrollbar { display: none; }
.book-scroll > * { flex: none; }

/* Trip summary */
.route-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 6px 2px; border-radius: 14px; }
.rc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rc-drop { font-size: 21px; font-weight: 900; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-meta { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); min-width: 0; white-space: nowrap; }
.rc-meta b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-meta i { width: 1px; height: 11px; background: var(--line-2); flex: none; }
.rc-from { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-3); }
.rc-edit { flex: none; height: 34px; padding: 0 14px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--graphite); transition: background .2s; }
.route-card:hover .rc-edit { background: var(--steel); }

/* Plan: a silver plate slides between the two tariffs */
.seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 17px; background: var(--asphalt); border: 1px solid var(--line);
}
.seg-ind {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 13px; background: var(--chrome);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -6px rgba(0, 0, 0, .9);
  transition: transform .5s var(--spring);
}
.seg[data-value="meter"] .seg-ind { transform: translateX(100%); }
.seg button {
  position: relative; z-index: 1; padding: 10px 6px 9px; border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  color: var(--text-2); transition: color .3s;
}
.seg button b { display: flex; align-items: center; gap: 5px; font-size: 15.5px; font-weight: 700; }
.seg button small { font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
.seg button[aria-checked="true"] { color: #0A0A0A; }
.seg button[aria-checked="true"] small { opacity: .72; }
.seg .crown { width: 15px; height: 15px; color: var(--lamp); fill: var(--lamp); }
.seg button[aria-checked="true"] .crown { color: #8E0A14; fill: var(--red); }

/* Cars: two showroom bays; the chosen one is lit red */
.cars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.car {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 8px 14px 12px; border-radius: 18px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--asphalt), var(--asphalt)) padding-box, linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)) border-box;
  transition: transform .2s, box-shadow .35s;
}
.car:active { transform: scale(.98); }
.car::before {   /* light pool under the car */
  content: ""; position: absolute; left: -10%; right: -10%; top: 22px; height: 84px; z-index: -1;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(240, 40, 40, .42), rgba(227, 20, 30, .12) 55%, transparent 72%);
  opacity: 0; transition: opacity .4s;
}
.car[aria-checked="true"] {
  background: linear-gradient(180deg, #161213 0%, #1E0A0C 100%) padding-box, linear-gradient(165deg, #FF6557 0%, #E3141E 42%, #6E0810 100%) border-box;
  box-shadow: 0 18px 40px -22px rgba(227, 20, 30, 1);
}
.car[aria-checked="true"]::before { opacity: 1; }
.car-art { align-self: center; width: 124px; max-width: 100%; height: 56px; margin: 0 0 4px; transition: transform .55s var(--spring), filter .4s; }
.car-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.car:not([aria-checked="true"]) .car-art { transform: scale(.9); filter: saturate(.5) brightness(.72); }
.car-name { font-size: 16px; font-weight: 700; }
.car-seats { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.car-price { margin-top: 6px; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; padding-right: .1em; }
.car-price em { font-stretch: 100%; font-size: 12px; font-weight: 500; color: var(--text-3); margin-right: 4px; letter-spacing: 0; }
.car-check {
  position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; background: var(--lacquer); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
  transform: scale(0); transition: transform .4s var(--spring);
}
.car-check .ic { width: 13px; height: 13px; stroke-width: 3; }
.car[aria-checked="true"] .car-check { transform: scale(1); }

.plan-note { display: flex; align-items: center; gap: 7px; padding: 0 6px; margin-top: -2px; font-size: 13px; color: var(--text-2); }
.plan-note .ic { width: 15px; height: 15px; stroke-width: 2.6; color: var(--red-hi); }

/* Options: one quiet list, details open in place */
.opts { border-radius: 18px; background: var(--asphalt); border: 1px solid var(--line); overflow: hidden; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt-head { width: 100%; min-height: 58px; padding: 10px 14px 10px 16px; display: flex; align-items: center; gap: 12px; }
button.opt-head { transition: background .15s; }
button.opt-head:hover { background: rgba(255, 255, 255, .035); }
.opt-ic { color: var(--text-2); }
.opt-head > b, .opt-title b { font-size: 15.5px; font-weight: 600; }
.opt-head > b { flex: 1; }
.opt-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt-title small { font-size: 12.5px; color: var(--text-3); }
.opt-val { font-size: 14px; color: var(--text-3); max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; font-variant-numeric: tabular-nums; }
.opt-val.is-set { color: #fff; font-weight: 600; }
.opt-chev { width: 18px; height: 18px; color: var(--text-3); transition: transform .35s var(--ease); }
.opt.is-open .opt-chev:not(.is-right) { transform: rotate(180deg); }
.opt-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.opt.is-open .opt-body { grid-template-rows: 1fr; }
.opt-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .4s; }
.opt.is-open .opt-inner { visibility: visible; transition-delay: 0s; }
.opt-pad { padding: 2px 16px 16px; }
.opt-hint { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.opt-pad .range + .opt-hint { margin-top: 6px; }
.opt.is-off { opacity: .5; }

/* Chips are cut like number plates */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 15px; border-radius: 11px; font-size: 14.5px; font-weight: 600;
  background: var(--graphite); border: 1px solid var(--line-2); color: var(--text-2);
  font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s, border-color .2s, transform .35s var(--spring);
}
.chip:hover { color: var(--text); }
.chip[aria-checked="true"] { background: var(--chrome); color: #000; border-color: transparent; box-shadow: inset 0 1px 0 #fff; }
.chip:active { transform: scale(.94); }
.slots { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.slots::-webkit-scrollbar { display: none; }
.slots .chip { flex: none; }
.slots .chip small { font-size: 11.5px; opacity: .7; margin-right: 5px; font-weight: 500; }

/* Tip slider: dotted road, filled by a tail-light */
.range {
  --p: 0%;
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; height: 32px; margin: 10px 0 0; background: transparent; cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background:
    linear-gradient(90deg, #8E0A14, #E3141E 60%, #FF6B57) 0 0 / var(--p) 100% no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .3) 1.3px, transparent 1.8px) 0 50% / 9px 6px repeat-x;
}
.range::-moz-range-track { height: 6px; border-radius: 3px; background: radial-gradient(circle, rgba(255, 255, 255, .3) 1.3px, transparent 1.8px) 0 50% / 9px 6px repeat-x; }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #8E0A14, #E3141E); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 9px;
  background: var(--chrome); border: 0;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 5px rgba(227, 20, 30, .32), 0 4px 14px rgba(0, 0, 0, .7);
  transition: transform .2s var(--spring);
}
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 9px; background: #E4E6EA; border: 0; box-shadow: 0 0 0 5px rgba(227, 20, 30, .32), 0 4px 14px rgba(0, 0, 0, .7); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline-offset: 4px; }

.info-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--text-3); flex: none; transition: color .2s, background .2s; }
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--text); background: rgba(255, 255, 255, .08); }

.switch {
  width: 52px; height: 32px; border-radius: 16px; flex: none; position: relative;
  background: #2E2E31; transition: background .3s, box-shadow .3s;
}
.switch span {
  position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--chrome); box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(0, 0, 0, .5);
  transition: transform .4s var(--spring);
}
.switch[aria-checked="true"] { background: var(--lacquer); box-shadow: 0 0 16px -2px rgba(227, 20, 30, .8); }
.switch[aria-checked="true"] span { transform: translateX(20px); }

/* CTA bar */
.cta-bar {
  position: relative; flex: none; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px calc(var(--safe-bottom) + 10px) 20px;
  background: #000; border-top: 1px solid var(--line);
  box-shadow: 0 -20px 30px rgba(0, 0, 0, .6);
}
.cta-sum { flex: 1; min-width: 0; }
.cta-price {
  display: inline-block; padding-right: .1em;
  font-size: 31px; line-height: 1.12; letter-spacing: -.02em; color: #fff;
}
.cta-price .cur { font-size: 14px; font-weight: 700; margin-right: 5px; letter-spacing: .01em; color: var(--red-hi); }
.cta-price.is-bump { animation: bump .45s var(--spring); transform-origin: left center; }
@keyframes bump { 40% { transform: scale(1.07); } }
.cta-label { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-pts { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.cta-pts .ic { width: 13px; height: 13px; }
.cta-pts b { color: #fff; font-weight: 600; }

/* The one red button: lacquer bodywork with a clear-coat highlight */
.cta {
  position: relative; flex: none; height: 60px; min-width: 158px; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: var(--lacquer);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -12px 18px -8px rgba(60, 0, 6, .75), 0 16px 36px -12px rgba(227, 20, 30, .95), 0 0 0 1px rgba(110, 8, 16, .9);
  transition: transform .2s var(--ease), box-shadow .3s;
}
.cta:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -12px 18px -8px rgba(60, 0, 6, .75), 0 18px 44px -10px rgba(245, 34, 38, 1), 0 0 0 1px rgba(110, 8, 16, .9); }
.cta:active { transform: scale(.96); }
.cta::before {   /* roof reflection */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
}
.cta-aura {   /* a street light sliding over the paint */
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%);
  transform: translateX(-110%);
  animation: sheen 5.2s var(--ease) 1.4s infinite;
}
.cta-face {
  position: relative; display: grid; place-items: center; height: 100%; padding: 0 24px;
  color: #fff; font-size: 17px; font-weight: 900; letter-spacing: .03em; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(90, 0, 8, .55);
  font-variant-numeric: tabular-nums;
}
@keyframes sheen { 0% { transform: translateX(-110%); } 26%, 100% { transform: translateX(110%); } }

/* ================= TRIP ================= */
.sheet-trip { padding: 0 18px calc(var(--safe-bottom) + 10px); }
.screen-trip:not(.is-active) .sheet-trip { transform: translateY(105%); }
.trip-matching, .trip-assigned { display: none; flex-direction: column; gap: 14px; }
.app[data-screen="matching"] .trip-matching,
.app[data-screen="assigned"] .trip-assigned { display: flex; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.match-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 2px; }
.match-head h2 { font-size: 24px; font-weight: 900; letter-spacing: .02em; }
.match-head p { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.dots i { font-style: normal; color: var(--red-hi); animation: blink 1.4s infinite both; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .15; } 40% { opacity: 1; } }
.match-timer { font-size: 15px; color: #fff; padding: 7px 12px 7px 10px; border-radius: 10px; background: var(--graphite); }
.match-bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.match-bar span { display: block; height: 100%; width: 40%; border-radius: 2px; background: var(--tail); animation: scan 1.6s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

.trip-sum { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--asphalt); border: 1px solid var(--line); }
.ts-stops { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.ts-stops > span { display: flex; align-items: center; gap: 12px; }
.ts-stops b { font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ts-price b { font-size: 17px; letter-spacing: -.01em; padding-right: .08em; }
.ts-price small { font-size: 12px; color: var(--text-3); }

.btn-ghost {
  height: 54px; border-radius: 16px; width: 100%; text-align: center;
  font-size: 15.5px; font-weight: 700; color: #fff; background: var(--graphite);
  transition: background .2s;
}
.btn-ghost:hover { background: var(--steel); }
/* Red is the brand here, so leaving is the quiet option rather than the red one */
.btn-ghost.is-danger { color: var(--text-2); background: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost.is-danger:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.as-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.as-eta { display: flex; align-items: baseline; gap: 9px; }
.as-eta b { font-size: 54px; letter-spacing: -.03em; line-height: .95; color: #fff; padding-right: .06em; }
.as-eta span { font-size: 15px; font-weight: 700; color: var(--red-hi); }
.as-head h2 { font-size: 15px; font-weight: 500; color: var(--text-2); margin-top: 8px; }
.plate {
  flex: none; padding: 7px 12px; border-radius: 7px;
  font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: .07em; color: #111; white-space: nowrap;
  background: linear-gradient(#FFFFFF, #E4E4E8);
  box-shadow: inset 0 0 0 2px #151515, inset 0 0 0 3.5px #F4F4F6, 0 8px 22px rgba(0, 0, 0, .6);
}
.driver { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--asphalt); border: 1px solid var(--line); }
.avatar { width: 52px; height: 52px; border-radius: 17px; flex: none; padding: 2px; background: var(--lacquer); }
.avatar span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 15px; background: #000; font-size: 21px; font-weight: 700; }
.drv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drv-text b { font-size: 17px; font-weight: 700; }
.drv-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.drv-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.drv-meta .star { width: 13px; height: 13px; color: var(--lamp); fill: var(--lamp); }
.drv-text small { font-size: 12.5px; color: var(--text-3); }
.drv-car { width: 86px; height: 42px; flex: none; }
.drv-car svg { width: 100%; height: 100%; display: block; }
.as-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.as-actions button {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px;
  border-radius: 15px; font-size: 14px; font-weight: 600; color: #fff;
  background: var(--graphite); transition: background .2s, transform .2s; white-space: nowrap;
}
.as-actions button:hover { background: var(--steel); }
.as-actions button:active { transform: scale(.96); }
.as-actions .ic { width: 18px; height: 18px; }

/* ================= MODAL ================= */
.modal { position: absolute; inset: 0; z-index: 70; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.modal-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - var(--safe-top) - 20px);
  display: flex; flex-direction: column;
  padding: 0 16px calc(var(--safe-bottom) + 10px);
  background: radial-gradient(ellipse 72% 96px at 50% 0, rgba(227, 20, 30, .24), transparent), #050505;
  border-radius: 26px 26px 0 0;
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.modal.is-open .modal-scrim { opacity: 1; }
.modal.is-open .modal-sheet { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 8px 6px; }
.modal-head h2 { font-size: 21px; font-weight: 900; letter-spacing: .02em; }
.req-list { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; scrollbar-width: none; }
.req-list::-webkit-scrollbar { display: none; }
.req-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--asphalt); border: 1px solid var(--line); }
.req-row.is-flat { padding: 0 0 12px; background: none; border: 0; }
.req-block { padding: 12px 14px 14px; border-radius: 18px; background: var(--asphalt); border: 1px solid var(--line); }
.rl-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--graphite); color: #fff; }
.rl-ic .ic { width: 18px; height: 18px; }
.rl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rl-text b { font-size: 15.5px; font-weight: 600; }
.rl-text small { font-size: 12.5px; color: var(--text-3); }
.stepper { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 13px; background: #000; border: 1px solid var(--line-2); }
.stepper button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text); transition: background .2s; }
.stepper button:hover { background: rgba(255, 255, 255, .1); }
.stepper button:disabled { opacity: .3; cursor: default; background: none; }
.stepper .ic { width: 16px; height: 16px; }
.stepper output { min-width: 24px; text-align: center; font-size: 16px; }
.req-note { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 18px; background: var(--asphalt); border: 1px solid var(--line); }
.req-note b { font-size: 15px; font-weight: 600; }
.req-note textarea { resize: none; border-radius: 12px; padding: 10px 12px; font-size: 15px; line-height: 1.4; background: #000; border: 1px solid var(--line-2); caret-color: var(--red-hi); transition: border-color .2s, box-shadow .2s; }
.req-note textarea::placeholder { color: var(--text-3); }
.req-note textarea:focus { border-color: var(--red-hi); box-shadow: 0 0 0 4px rgba(227, 20, 30, .14); }
.req-note textarea:focus-visible { outline: none; }
.btn-primary {
  position: relative; flex: none; height: 58px; border-radius: 18px; width: 100%; text-align: center;
  font-size: 17px; font-weight: 900; letter-spacing: .03em; color: #fff; background: var(--lacquer);
  text-shadow: 0 1px 0 rgba(90, 0, 8, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -12px 18px -8px rgba(60, 0, 6, .75), 0 16px 36px -14px rgba(227, 20, 30, .95), 0 0 0 1px rgba(110, 8, 16, .9);
  transition: transform .2s;
}
.btn-primary:active { transform: scale(.98); }

/* ================= INTRO ================= */
.splash {
  position: absolute; inset: 0; z-index: 58; /* below the status bar */
  display: grid; place-items: center; overflow: hidden;
  background: #000;
  clip-path: circle(150% at 50% var(--pin-y, 40%));
  transition: clip-path .8s var(--snap);
}
/* The whole intro collapses into the pickup pin */
.splash.is-leaving { clip-path: circle(0% at 50% var(--pin-y, 40%)); pointer-events: none; }
.splash::before {   /* brake lights soaking the wet road */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 54%;
  background: radial-gradient(ellipse 85% 100% at 50% 100%, rgba(227, 20, 30, .42), rgba(142, 10, 20, .14) 50%, transparent 76%);
  opacity: 0; animation: sp-glow 2s var(--ease) .3s forwards;
}
@keyframes sp-glow { to { opacity: 1; } }

.splash-trails { position: absolute; inset: 0; width: 100%; height: 100%; }
.trails { fill: none; stroke-linecap: round; }
.trails-tail { filter: drop-shadow(0 0 6px rgba(255, 50, 44, .95)) drop-shadow(0 0 18px rgba(227, 20, 30, .75)); }
.trails-head { filter: drop-shadow(0 0 6px rgba(255, 240, 200, .9)) drop-shadow(0 0 16px rgba(255, 220, 150, .5)); }
.trail {
  stroke-width: 3; stroke-dasharray: .34 1.4; stroke-dashoffset: .36; opacity: 0;
  animation: trail 1.15s cubic-bezier(.35, .05, .2, 1) both;
}
.t1 { animation-delay: .1s; stroke-width: 4.4; }
.t2 { animation-delay: .2s; stroke-width: 2.8; }
.t3 { animation-delay: .32s; stroke-width: 2.2; }
.t4 { animation-delay: .26s; stroke-width: 3.6; }
.t5 { animation-delay: .4s; stroke-width: 2.2; }
.t6 { animation-delay: .55s; stroke-width: 1.8; }
@keyframes trail {
  0% { stroke-dashoffset: .36; opacity: 0; }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% { stroke-dashoffset: -1.1; opacity: 0; }
}

.splash-center {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: -10%;
  /* the sign reflecting off a wet road (WebKit/Blink; simply absent elsewhere) */
  -webkit-box-reflect: below 18px linear-gradient(transparent 12%, rgba(0, 0, 0, .28));
}
.logotype {
  width: 150px; height: auto; overflow: visible; animation: flicker .6s steps(1, end) 1.76s both;
}
.neon { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.neon path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s cubic-bezier(.65, 0, .25, 1) forwards; }
.neon .l1 { animation-delay: .7s; animation-duration: .3s; }      /* H */
.neon .l2 { animation-delay: .94s; animation-duration: .18s; }
.neon .l3 { animation-delay: 1.06s; animation-duration: .28s; }
.neon .l4 { animation-delay: 1.3s; animation-duration: .24s; }     /* K */
.neon .l5 { animation-delay: 1.46s; animation-duration: .3s; }
.neon-glow { stroke: url(#spNeon); stroke-width: 24; opacity: .62; filter: blur(11px); }
.neon-tube { stroke: url(#spNeon); stroke-width: 10.5; }
.neon-core { stroke: #FFF1EC; stroke-width: 2.6; opacity: .9; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flicker { 0% { opacity: 1; } 8% { opacity: .3; } 16% { opacity: 1; } 26% { opacity: .55; } 34% { opacity: 1; } 100% { opacity: 1; } }

.splash-sub { display: flex; font-family: var(--display); font-stretch: 125%; font-size: 12.5px; font-weight: 600; color: var(--silver); }
.splash-sub span {
  width: 1.65em; text-align: center; opacity: 0;
  animation: sub-in .45s var(--ease) both; animation-delay: calc(1.62s + var(--i) * .045s);
}
.splash-sub .sub-gap { width: .9em; }
@keyframes sub-in { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } to { opacity: .9; transform: none; filter: none; } }

/* Home UI enters once the intro leaves */
.app.is-booting .home-top { transform: translateY(-24px); opacity: 0; }
.app.is-booting .sheet-home { transform: translateY(105%); }
.app.is-booting .home-float { transform: translateY(40px); opacity: 0; }
.app.is-booting .pickup-pin { opacity: 0; }

/* ================= TOAST ================= */
.toast {
  position: absolute; left: 50%; top: calc(var(--safe-top) + 8px); z-index: 90;
  max-width: calc(100% - 40px); padding: 11px 18px; border-radius: 14px;
  font-size: 14px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: #fff; color: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  transition: transform .4s var(--spring), opacity .25s;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

/* ================= Figures =================
   Every number you read at a glance (fare, minutes, counts) is set wide,
   heavy and leaning forward. Declared last so it wins over the rules above. */
.rf-n, .points b, .pin-eta b, .hire b, .car-price, .cta-price, .match-timer, .ts-price b, .as-eta b,
.stepper output, .mk-stop.is-drop .mk-label small {
  font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cta-price .cur, .car-price em { font-style: normal; }
.car-price em { font-family: var(--font); }

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mk-stop .ring, .mk-stop .sweep, .pin-shadow::after, .splash-trails, .cta-aura { display: none; }
}
