/* =========================================================
   NGT Taxi — UI mockup
   Night-violet palette, Sora (Latin/numerals) + Noto Sans HK
   ========================================================= */

:root {
  --night: #130D26;
  --plum: #1C1538;
  --plum-2: #251C48;
  --plum-3: #31265C;
  --line: rgba(200, 182, 255, .11);
  --line-2: rgba(200, 182, 255, .2);
  --violet: #8A5CFF;
  --orchid: #E06CF3;
  --grad: linear-gradient(105deg, #7A4DFF 0%, #B15DF8 52%, #E66FF0 100%);
  --mint: #3BE3A5;
  --amber: #FFC85A;
  --danger: #FF6B7D;
  --text: #F5F1FF;
  --text-2: #B9AEDB;
  --text-3: #857AAF;

  --font: "Sora", "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 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: #07050E;
  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;
}

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

/* ---------------- Stage + device frame ---------------- */
.stage {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; gap: 64px;
  padding: 24px;
  background:
    radial-gradient(900px 620px at 72% 18%, rgba(122, 77, 255, .22), transparent 62%),
    radial-gradient(760px 560px at 18% 92%, rgba(230, 111, 240, .12), transparent 60%),
    #0A0715;
}

.device {
  position: relative; flex: none;
  width: 393px;
  height: min(852px, calc(100dvh - 48px));
  border-radius: 58px;
  box-shadow:
    0 0 0 10px #0E0A1A,
    0 0 0 11.5px #3A3156,
    0 50px 120px -30px rgba(110, 60, 255, .5),
    0 30px 60px rgba(0, 0, 0, .55);
}
.app {
  position: absolute; inset: 0;
  overflow: hidden; isolation: isolate;
  border-radius: inherit;
  background: #16102B;
  --safe-top: 54px;
  --safe-bottom: 26px;
}

/* ---------------- Review panel (desktop) ---------------- */
.review { width: 280px; flex: none; color: var(--text-2); }
.review-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 36px; }
.logo { display: block; flex: none; }
.review-mark { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 12px 30px -10px rgba(170, 90, 255, .7); }
.wordmark { font-family: "Sora", sans-serif; font-weight: 400; letter-spacing: .01em; color: var(--text-2); }
.wordmark b { font-weight: 700; letter-spacing: .06em; color: var(--text); }
.review-title { font-size: 21px; line-height: 1.2; }
.review-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.review-h { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.review-flow { display: grid; gap: 4px; counter-reset: none; }
.review-flow button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px; color: var(--text-2);
  transition: background .2s, color .2s;
}
.review-flow button:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.review-flow button[aria-current="step"] { background: rgba(138, 92, 255, .14); color: var(--text); }
.rf-n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--text-3);
}
.review-flow button[aria-current="step"] .rf-n { background: var(--grad); border-color: transparent; color: #fff; }
.review-tips { margin-top: 28px; 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: #5F567F; }

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

/* Phone-size viewport: the app *is* the screen */
@media (max-width: 600px) {
  .stage { display: block; padding: 0; }
  .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: 160px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(19, 13, 38, .82), rgba(19, 13, 38, 0));
}
.app.map-failed .map {
  background:
    repeating-linear-gradient(32deg, transparent 0 46px, rgba(138, 92, 255, .10) 46px 49px, transparent 49px 120px),
    repeating-linear-gradient(-58deg, transparent 0 70px, rgba(138, 92, 255, .08) 70px 72px, transparent 72px 160px),
    radial-gradient(500px 400px at 50% 40%, #1D1538, #120C24);
}
.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(19, 13, 38, .7); color: var(--text-3); min-height: 22px;
}
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button { filter: invert(1) opacity(.55); }
.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 3px rgba(0, 0, 0, .55)); }
.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 10px rgba(59, 227, 165, .7)) drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); }

.mk-stop { width: 18px; height: 18px; position: relative; }
.mk-stop .mk-dot {
  position: absolute; inset: 0; border-radius: 50%;
  background: #fff; border: 5px solid var(--mint);
  box-shadow: 0 0 0 6px rgba(59, 227, 165, .22), 0 4px 10px rgba(0, 0, 0, .5);
}
.mk-stop.is-drop .mk-dot { border-color: var(--orchid); box-shadow: 0 0 0 6px rgba(224, 108, 243, .22), 0 4px 10px rgba(0, 0, 0, .5); border-radius: 6px; }
.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: 12px; white-space: nowrap;
  background: rgba(22, 15, 44, .92); border: 1px solid var(--line-2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  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(--mint); line-height: 1.2; }
.mk-stop.is-drop .mk-label small { color: var(--orchid); font-weight: 600; }
.mk-label b { font-size: 13px; font-weight: 500; line-height: 1.3; }

.mk-stop.is-pulse { width: 22px; height: 22px; }
.mk-stop.is-pulse .mk-dot { border-color: var(--violet); box-shadow: 0 0 0 6px rgba(138, 92, 255, .25); }
.mk-stop .ring {
  position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px;
  border-radius: 50%; border: 1.5px solid rgba(190, 140, 255, .55);
  background: radial-gradient(circle, rgba(138, 92, 255, .22), rgba(138, 92, 255, 0) 70%);
  transform: scale(.05); opacity: 0;
  animation: ring 3s cubic-bezier(.2, .6, .3, 1) infinite;
  pointer-events: none;
}
.mk-stop .ring:nth-child(2) { animation-delay: 1s; }
.mk-stop .ring:nth-child(3) { animation-delay: 2s; }
@keyframes ring { 0% { transform: scale(.05); opacity: .95; } 100% { transform: scale(1); opacity: 0; } }
@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; }
.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, .55); z-index: 80; pointer-events: none; }

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

/* Generic surfaces */
.glass {
  background: rgba(24, 17, 50, .64);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(214, 196, 255, .14);
  box-shadow: 0 10px 28px rgba(6, 3, 18, .38);
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #1A1234 0, var(--night) 160px);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -24px 60px rgba(6, 3, 18, .55), inset 0 1px 0 rgba(214, 196, 255, .16);
  transition: transform .55s var(--ease);
}
.grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(214, 196, 255, .22); margin: 10px auto 12px; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-pickup { background: var(--mint); box-shadow: 0 0 0 4px rgba(59, 227, 165, .16); }
.dot-drop { background: var(--orchid); border-radius: 3px; box-shadow: 0 0 0 4px rgba(224, 108, 243, .16); }

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

/* ================= 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 .5s var(--ease), opacity .4s;
}
.screen-home:not(.is-active) .home-top { transform: translateY(-24px); opacity: 0; }

.points {
  height: 44px; padding: 0 16px 0 13px; border-radius: 22px;
  display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-2);
}
.points .ic { color: var(--amber); width: 19px; height: 19px; }
.points b { color: var(--text); font-weight: 600; font-size: 15px; }
.action-group { display: flex; border-radius: 23px; padding: 1px; }
.action-group button { width: 46px; height: 42px; display: grid; place-items: center; border-radius: 21px; color: var(--text); position: relative; }
.action-group button:hover { background: rgba(255, 255, 255, .06); }
.action-group button + button::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: rgba(214, 196, 255, .14);
}

/* Center pickup pin */
.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 {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0 5px, var(--mint) 5.5px);
  box-shadow: 0 0 0 5px rgba(59, 227, 165, .22), 0 8px 18px rgba(0, 0, 0, .45);
}
.pin-stick { width: 3px; height: 16px; border-radius: 0 0 2px 2px; background: linear-gradient(#E7FFF5, #9FF0D0); }
.pin-shadow {
  position: absolute; left: 0; top: 0; width: 14px; height: 5px; border-radius: 50%;
  transform: translate(-50%, -50%); background: rgba(0, 0, 0, .55); transition: transform .45s var(--spring), opacity .3s;
}
.pin-shadow::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 227, 165, .28), rgba(59, 227, 165, 0) 68%);
  animation: halo 2.6s ease-in-out infinite;
}
@keyframes halo { 0%, 100% { transform: scale(.65); opacity: .9; } 50% { transform: scale(1); opacity: .35; } }
.pin-eta {
  position: absolute; left: 0; bottom: 58px; transform: translateX(-50%);
  white-space: nowrap; font-size: 12.5px; color: var(--text-2);
  padding: 5px 11px; border-radius: 12px;
  background: rgba(22, 15, 44, .9); border: 1px solid var(--line-2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  transition: opacity .25s, transform .45s var(--spring);
}
.pin-eta b { color: var(--mint); font-weight: 600; font-size: 14px; }
.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 .55s var(--ease), opacity .4s;
}
.screen-home:not(.is-active) .home-float { transform: translateY(40px); opacity: 0; }
.fab { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: transform .2s; }
.fab:active { transform: scale(.94); }
.notice {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 8px 6px 8px 12px; border-radius: 16px;
  border-color: rgba(255, 200, 90, .3);
  background: rgba(40, 28, 30, .7);
  transition: opacity .3s, transform .4s var(--ease);
}
.notice.is-gone { opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none; }
.notice-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 200, 90, .14); color: var(--amber); flex: none; }
.notice-ic .ic { width: 17px; height: 17px; }
.notice p { flex: 1; font-size: 13px; color: #F6E3C0; line-height: 1.35; }
.notice-act {
  flex: none; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13px; font-weight: 600;
  color: #2A1A00; background: var(--amber);
}
.notice-x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: rgba(246, 227, 192, .6); flex: none; }
.notice-x .ic { width: 16px; height: 16px; }

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

.search-bar {
  margin: 0 16px; height: 62px; padding: 0 18px; border-radius: 20px;
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px);
  background: linear-gradient(120deg, rgba(122, 77, 255, .34), rgba(230, 111, 240, .18));
  border: 1px solid rgba(180, 140, 255, .38);
  box-shadow: 0 16px 36px -18px rgba(150, 90, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .2s var(--ease), border-color .2s;
}
.search-bar:hover { border-color: rgba(200, 160, 255, .6); }
.search-bar:active { transform: scale(.985); }
.search-bar .ic { color: #D6B8FF; width: 22px; height: 22px; }
.sb-text { flex: 1; font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.search-bar .sb-chev { color: var(--text-3); width: 18px; height: 18px; }

.quick { display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.quick::-webkit-scrollbar { display: none; }
.quick-item {
  flex: none; display: flex; align-items: center; gap: 10px; scroll-snap-align: start;
  padding: 9px 14px 9px 9px; border-radius: 16px;
  background: var(--plum); border: 1px solid var(--line);
  transition: background .2s, transform .2s;
}
.quick-item:hover { background: var(--plum-2); }
.quick-item:active { transform: scale(.97); }
.qi-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(138, 92, 255, .16); color: #CDB4FF; }
.qi-ic .ic { width: 17px; height: 17px; }
.quick-item b { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
.quick-item small { display: block; font-size: 12px; color: var(--text-3); }

/* ================= SEARCH ================= */
.search-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--night);
  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: 20px; font-weight: 700; }

.route-inputs {
  position: relative; margin: 4px 16px 8px; padding: 6px; border-radius: 20px;
  background: var(--plum); border: 1px solid var(--line);
  display: grid; gap: 4px;
}
.ri-rail { position: absolute; left: 25px; top: 34px; bottom: 34px; width: 0; border-left: 2px dotted rgba(214, 196, 255, .28); }
.ri { display: flex; align-items: center; gap: 14px; padding: 0 14px; height: 50px; border-radius: 14px; transition: background .2s; }
.ri.is-focus { background: #0F0A20; box-shadow: inset 0 0 0 1px rgba(170, 130, 255, .3); }
.ri.is-focus:focus-within { box-shadow: inset 0 0 0 1.5px rgba(190, 150, 255, .75), 0 0 0 4px rgba(138, 92, 255, .14); }
.ri input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; height: 100%; }
.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 8px calc(var(--safe-bottom) + 16px); scrollbar-width: none; }
.list-h { font-size: 13px; font-weight: 500; color: var(--text-3); padding: 18px 12px 6px; }
.result {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 16px; transition: background .15s;
}
.result:hover { background: rgba(255, 255, 255, .04); }
.result:active { background: rgba(255, 255, 255, .07); }
.res-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--plum-2); color: var(--text-2); }
.res-ic .ic { width: 19px; height: 19px; }
.result-map .res-ic { background: rgba(138, 92, 255, .18); color: #CDB4FF; }
.res-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.res-text b { font-weight: 500; font-size: 15.5px; }
.res-text small { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-km { font-size: 13px; color: var(--text-3); flex: none; }
.res-chev { color: var(--text-3); width: 18px; height: 18px; }
.result mark { background: none; color: #E2C9FF; font-weight: 700; }
.empty { padding: 28px 16px; 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); }
.screen-booking:not(.is-active) .map-back { opacity: 0; transform: translateX(-12px); }

.sheet-booking {
  top: var(--sheet-top, 40%);
  display: flex; flex-direction: column;
  transition: top .5s var(--ease), transform .55s var(--ease);
}
.sheet-booking.is-dragging { transition: none; }
.screen-booking:not(.is-active) .sheet-booking { transform: translateY(105%); }
.grab-zone { flex: none; height: 28px; display: flex; justify-content: center; cursor: grab; touch-action: none; border-radius: 30px 30px 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: 4px 16px 18px; display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: none;
}
.book-scroll::-webkit-scrollbar { display: none; }

.block {
  background: var(--plum); border: 1px solid var(--line); border-radius: 22px;
  padding: 14px;
}

/* Route summary */
.route-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 2px 4px 6px; border-radius: 16px;
}
.rc-stops { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.rc-stops::before { content: ""; position: absolute; left: 4px; top: 16px; bottom: 16px; border-left: 2px dotted rgba(214, 196, 255, .28); }
.rc-stop { display: flex; align-items: center; gap: 14px; }
.rc-stop b { font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-meta {
  flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font-size: 12.5px; color: var(--text-3);
  padding-left: 14px; border-left: 1px solid var(--line);
}
.rc-meta b { font-size: 16px; font-weight: 600; color: var(--text); }

/* Plan segmented control */
.plan { padding: 8px 8px 12px; }
.seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 18px; background: #0E0920;
}
.seg-ind {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 14px; background: var(--grad);
  box-shadow: 0 10px 26px -8px rgba(170, 90, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .5s var(--spring);
}
.seg[data-value="meter"] .seg-ind { transform: translateX(100%); }
.seg button {
  position: relative; z-index: 1; padding: 11px 6px 10px; border-radius: 14px;
  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: 16px; font-weight: 700; }
.seg button small { font-size: 12px; opacity: .85; }
.seg button[aria-checked="true"] { color: #fff; }
.seg .crown { width: 16px; height: 16px; color: var(--amber); fill: rgba(255, 200, 90, .35); }
.plan-note { display: flex; align-items: center; gap: 7px; padding: 10px 8px 0; font-size: 13px; color: var(--mint); }
.plan-note .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.plan-note.is-meter { color: var(--text-2); }

/* Cars */
.cars { display: grid; gap: 10px; }
.car {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 16px 12px 8px; border-radius: 22px;
  background: var(--plum); border: 1.5px solid var(--line);
  transition: background .25s, border-color .25s, box-shadow .3s, transform .2s;
}
.car:active { transform: scale(.985); }
.car[aria-checked="true"] {
  background: linear-gradient(var(--plum-2), var(--plum-2)) padding-box, var(--grad) border-box;
  border-color: transparent;
  box-shadow: 0 16px 36px -18px rgba(170, 90, 255, .9);
}
.car-art { width: 88px; height: 44px; display: block; transition: transform .5s var(--spring); }
.car-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.car[aria-checked="true"] .car-art { transform: translateX(4px) scale(1.04); }
.car-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.car-name { font-size: 17px; font-weight: 700; }
.tag {
  font-style: normal; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 7px; white-space: nowrap;
  color: #E9D7FF; background: rgba(138, 92, 255, .22); border: 1px solid rgba(170, 130, 255, .3);
}
.car-price .tag { margin-bottom: 3px; }
.car:not([aria-checked="true"]) .tag { color: var(--text-3); background: rgba(255, 255, 255, .05); border-color: var(--line); }
.car-info small { font-size: 12.5px; color: var(--text-3); }
.car-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.car-price b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.car-price b em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--text-3); margin-right: 3px; }
.car[aria-checked="true"] .car-price b { color: #F0C8FF; }
.car-price small { font-size: 12px; color: var(--text-3); }

/* Rows */
.row-head { display: flex; align-items: center; gap: 10px; }
.row-ic { color: #CDB4FF; }
.row-title { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.row-title b { font-size: 16px; font-weight: 700; }
.row-title small { font-size: 12.5px; color: var(--text-3); }

.tip-out { font-size: 16px; font-weight: 600; color: var(--text-2); min-width: 48px; text-align: right; transition: color .2s; }
.tip-out.has-tip { color: #F0C8FF; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 19px; font-size: 14.5px; font-weight: 500;
  background: var(--plum-2); border: 1px solid var(--line-2); color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s, transform .35s var(--spring);
}
.chip:hover { color: var(--text); }
.chip[aria-checked="true"] {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(190, 90, 255, .8);
}
.chip:active { transform: scale(.94); }

/* Tip slider: dotted track like the reference, filled with the brand gradient */
.range {
  --p: 0%;
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; height: 32px; margin: 10px 0 -2px; background: transparent; cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background:
    linear-gradient(90deg, var(--violet), var(--orchid)) 0 0 / var(--p) 100% no-repeat,
    radial-gradient(circle, rgba(214, 196, 255, .35) 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(214, 196, 255, .35) 1.3px, transparent 1.8px) 0 50% / 9px 6px repeat-x;
}
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--violet), var(--orchid)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 6px solid var(--orchid);
  box-shadow: 0 0 0 6px rgba(224, 108, 243, .18), 0 4px 12px rgba(0, 0, 0, .45);
  transition: transform .2s var(--spring);
}
.range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--orchid);
  box-shadow: 0 0 0 6px rgba(224, 108, 243, .18), 0 4px 12px rgba(0, 0, 0, .45);
}
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline-offset: 4px; }

/* When */
.mini-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 14px; background: #0E0920; }
.mini-seg .seg-ind { top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 11px; }
.mini-seg[data-value="later"] .seg-ind { transform: translateX(100%); }
.mini-seg button { position: relative; z-index: 1; height: 34px; padding: 0 16px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--text-2); text-align: center; transition: color .3s; }
.mini-seg button[aria-checked="true"] { color: #fff; }
.slots-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease), margin .45s var(--ease); }
.slots-wrap.is-open { grid-template-rows: 1fr; margin-top: 12px; }
.slots { min-height: 0; display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 2px 2px 8px; margin: -2px -2px -8px; }
.slots::-webkit-scrollbar { display: none; }
.slots { transition: opacity .3s, visibility 0s; }
.slots-wrap:not(.is-open) .slots { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.slots .chip { flex: none; height: auto; padding: 7px 14px; display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.slots .chip small { font-size: 11px; opacity: .8; }

/* Link + toggle rows */
.row-link, .row-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; position: relative; }
.row-link { transition: background .2s; }
button.row-link:hover { background: var(--plum-2); }
.rl-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(138, 92, 255, .16); color: #CDB4FF; }
.rl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rl-text b { font-size: 16px; font-weight: 700; }
.rl-text small { font-size: 12.5px; color: var(--text-3); }
.rl-chev { color: var(--text-3); width: 18px; height: 18px; }
.row-link.is-off { opacity: .55; }
.row-link.is-off .rl-ic { background: rgba(255, 255, 255, .05); color: var(--text-3); }

.req-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.req-sum span {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3);
  padding: 2px 8px 2px 6px; border-radius: 8px; background: rgba(255, 255, 255, .04);
}
.req-sum span .ic { width: 13px; height: 13px; }
.req-sum span.is-on { color: #E9D7FF; background: rgba(138, 92, 255, .22); }

.info-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); flex: none; }
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--text); background: rgba(255, 255, 255, .06); }
.pop {
  position: absolute; right: 12px; left: 64px; bottom: calc(100% - 4px); z-index: 4;
  padding: 10px 12px; border-radius: 14px; font-size: 13px; color: var(--text);
  background: #2C2254; border: 1px solid var(--line-2); box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  animation: rise .25s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.switch {
  width: 52px; height: 32px; border-radius: 16px; flex: none; position: relative;
  background: rgba(255, 255, 255, .1); border: 1px solid var(--line-2);
  transition: background .3s, border-color .3s;
}
.switch span {
  position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .4);
  transition: transform .4s var(--spring);
}
.switch[aria-checked="true"] { background: var(--grad); border-color: transparent; }
.switch[aria-checked="true"] span { transform: translateX(20px); }

/* CTA bar */
.cta-bar {
  flex: none; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px calc(var(--safe-bottom) + 10px);
  background: rgba(16, 10, 33, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 30px rgba(6, 3, 18, .5);
}
.cta-sum { flex: 1; min-width: 0; }
.cta-label { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-price {
  font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  background: linear-gradient(100deg, #B992FF, #F08BF5); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.cta-price .cur { font-size: 18px; margin-right: 2px; letter-spacing: 0; }
.cta-price.is-bump { animation: bump .45s var(--spring); transform-origin: left center; }
@keyframes bump { 40% { transform: scale(1.06); } }
.cta-note { font-size: 12.5px; color: var(--mint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-note.is-meter { color: var(--text-3); }
.cta-pts { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--amber); margin-top: 2px; }
.cta-pts .ic { width: 14px; height: 14px; }
.cta-pts b { font-weight: 700; }

.cta {
  position: relative; overflow: hidden; flex: none;
  height: 62px; min-width: 148px; padding: 0 24px; border-radius: 31px;
  background: var(--grad); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .03em; text-align: center;
  box-shadow: 0 16px 36px -10px rgba(190, 90, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s var(--ease), box-shadow .3s;
}
.cta:hover { box-shadow: 0 18px 44px -10px rgba(210, 100, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.cta:active { transform: scale(.96); }
.cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.screen-booking.is-active .cta::after { animation: sheen 1.2s var(--ease) 1.6s 1 both; }
@keyframes sheen { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }

/* ================= 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); }

.match-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 2px; }
.match-head h2 { font-size: 22px; font-weight: 700; }
.match-head p { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.dots i { font-style: normal; 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; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; padding: 6px 12px; border-radius: 12px; background: var(--plum); border: 1px solid var(--line); }
.match-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.match-bar span { display: block; height: 100%; width: 40%; border-radius: 2px; background: var(--grad); 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; border-radius: 20px;
  background: var(--plum); border: 1px solid var(--line);
}
.ts-stops { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.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; }
.ts-price b { font-size: 17px; font-weight: 700; }
.ts-price small { font-size: 12px; color: var(--text-3); }

.btn-ghost {
  height: 52px; border-radius: 26px; width: 100%; text-align: center;
  font-size: 15.5px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--line-2); transition: background .2s, color .2s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.btn-ghost.is-danger { color: var(--danger); border-color: rgba(255, 107, 125, .3); }
.btn-ghost.is-danger:hover { background: rgba(255, 107, 125, .08); }

.as-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.as-eta { font-size: 15px; color: var(--mint); font-weight: 600; }
.as-eta b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.as-head h2 { font-size: 17px; font-weight: 700; margin-top: 4px; }
.plate {
  flex: none; padding: 6px 12px; border-radius: 7px;
  font-size: 19px; font-weight: 700; letter-spacing: .08em; color: #111; white-space: nowrap;
  background: linear-gradient(#FFFFFF, #E9E8EE);
  box-shadow: inset 0 0 0 2px #1B1B1F, inset 0 0 0 4px #F7F7F9, 0 8px 20px rgba(0, 0, 0, .45);
}
.driver { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: var(--plum); border: 1px solid var(--line); }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 22px; font-weight: 700; color: #fff; background: var(--grad);
  box-shadow: 0 0 0 3px var(--night), 0 0 0 4.5px rgba(214, 196, 255, .3);
}
.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); }
.drv-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.drv-meta .star { width: 14px; height: 14px; color: var(--amber); fill: var(--amber); }
.drv-text small { font-size: 12.5px; color: var(--text-3); }
.drv-car { width: 84px; 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; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px;
  border-radius: 18px; font-size: 13px; color: var(--text-2);
  background: var(--plum); border: 1px solid var(--line); transition: background .2s, color .2s, transform .2s;
}
.as-actions button:hover { background: var(--plum-2); color: var(--text); }
.as-actions button:active { transform: scale(.96); }
.as-actions .ic { color: #CDB4FF; }

/* ================= MODAL ================= */
.modal { position: absolute; inset: 0; z-index: 70; }
.modal-scrim { position: absolute; inset: 0; background: rgba(6, 3, 18, .6); 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: linear-gradient(180deg, #1D1438 0, var(--night) 140px);
  border-radius: 30px 30px 0 0; box-shadow: inset 0 1px 0 rgba(214, 196, 255, .16);
  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: 20px; font-weight: 700; }
.req-list { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; scrollbar-width: none; }
.req-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--plum); border: 1px solid var(--line); }
.req-row.is-flat { padding: 0; background: none; border: 0; }
.req-block { padding: 12px 14px 14px; border-radius: 20px; background: var(--plum); border: 1px solid var(--line); }
.stepper { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 16px; background: #0E0920; }
.stepper button { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: var(--text); transition: background .2s; }
.stepper button:hover { background: rgba(255, 255, 255, .07); }
.stepper button:disabled { opacity: .3; cursor: default; background: none; }
.stepper .ic { width: 16px; height: 16px; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; font-size: 16px; }
.req-note { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 20px; background: var(--plum); border: 1px solid var(--line); }
.req-note b { font-size: 15px; font-weight: 700; }
.req-note textarea {
  resize: none; border-radius: 14px; padding: 10px 12px; font-size: 15px; line-height: 1.4;
  background: #0E0920; border: 1px solid var(--line-2);
}
.req-note textarea::placeholder { color: var(--text-3); }
.req-note textarea:focus { border-color: rgba(170, 130, 255, .6); }
.btn-primary {
  flex: none; height: 56px; border-radius: 28px; width: 100%; text-align: center;
  font-size: 17px; font-weight: 700; color: #fff; background: var(--grad);
  box-shadow: 0 14px 30px -12px rgba(190, 90, 255, .85);
  transition: transform .2s;
}
.btn-primary:active { transform: scale(.98); }

/* ================= SPLASH ================= */
.splash {
  position: absolute; inset: 0; z-index: 58; /* below the status bar */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background:
    radial-gradient(420px 420px at 50% 44%, rgba(138, 92, 255, .30), transparent 65%),
    var(--night);
  transition: opacity .55s var(--ease), visibility 0s linear .55s;
}
.splash.is-leaving { opacity: 0; visibility: hidden; }
.splash-mark { position: relative; width: 92px; height: 92px; }
.splash-logo {
  position: relative; width: 92px; height: 92px; border-radius: 27px;
  box-shadow: 0 24px 60px -16px rgba(170, 90, 255, .9);
  animation: splash-pop .8s var(--spring) both;
}
.splash-glow {
  position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%;
  border: 1.5px solid rgba(200, 160, 255, .5);
  animation: ring 2.2s cubic-bezier(.2, .6, .3, 1) .5s infinite;
  transform: scale(.05); opacity: 0;
}
.splash-word { font-size: 30px; animation: splash-rise .7s var(--ease) .25s both; }
.splash-bar {
  position: absolute; left: 50%; bottom: calc(var(--safe-bottom) + 56px); width: 96px; height: 3px; margin-left: -48px;
  border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden;
  animation: splash-rise .5s var(--ease) .5s both;
}
.splash-bar i { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--grad); animation: scan 1.3s var(--ease) infinite; }
.splash.is-leaving .splash-mark { transform: scale(1.08); transition: transform .55s var(--ease); }
@keyframes splash-pop { from { transform: scale(.55) rotate(-8deg); opacity: 0; } }
@keyframes splash-rise { from { transform: translateY(10px); opacity: 0; } }

/* Home UI enters once the splash 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: 16px;
  font-size: 14px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(40, 30, 78, .94); border: 1px solid var(--line-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  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; }

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