/* ==========================================================================
   MOVE — Design system
   One light theme throughout: off-white paper, black ink, black accent.
   (Token names such as --gold are kept for stability; --gold is now the black accent.)
   ========================================================================== */

:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Poppins', 'Inter', system-ui, sans-serif;
  --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 26px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --st-available: #16A34A; --st-assigned: #334E86; --st-enroute: #2563EB;
  --st-arrived: #0891B2; --st-pob: #EA580C; --st-directed: #7C3AED;
  --st-offline: #94A3B8; --st-sos: #DC2626; --st-warn: #D97706;
  --nav-h: 74px;

  --navy: #0F1E3D; --navy-2: #1B3262; --navy-3: #2A4A8A;
  --bg: #F5F7FB; --bg-2: #EDF1F7; --surface: #FFFFFF; --surface-2: #F7F9FC; --surface-3: #E8EDF5;
  --line: rgba(15,30,61,.09); --line-2: rgba(15,30,61,.17);
  --ink: #0F1E3D; --ink-2: #475569; --ink-3: #8C97AB;
  --gold: #0F1E3D; --gold-2: #1B3262; --gold-soft: rgba(15,30,61,.07); --gold-ink: #FFFFFF;
  --shadow: 0 24px 50px -28px rgba(15,30,61,.35), 0 2px 6px rgba(15,30,61,.06);
  --shadow-sm: 0 8px 20px -12px rgba(15,30,61,.3);
  --glass: rgba(255,255,255,.86);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14.5px; line-height: 1.45; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  font-feature-settings: 'cv11', 'ss01';
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--gold); text-decoration: none; }
img { display: block; max-width: 100%; }
.num, .tabular { font-variant-numeric: tabular-nums; }
/* Default inline icon size: zero specificity so every component rule wins */
:where(svg[aria-hidden="true"]) { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.015em; }
.display { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: -.005em; }
.display em { font-style: normal; color: var(--navy-3); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
.eyebrow { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .gold { color: var(--gold); }
.small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.big-num { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 12.5px; }

/* ---------- Layout helpers ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.mt-4{margin-top:4px}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-20{margin-top:20px}.mt-24{margin-top:24px}
.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.center { text-align: center; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word { font-weight: 600; letter-spacing: .42em; font-size: 14px; padding-left: .1em; }
.brand-word i { font-style: normal; color: var(--gold); }

/* ---------- Surfaces ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; position: relative;
}
.card.flat { background: var(--surface-2); }
.card.pad-0 { padding: 0; overflow: hidden; }
.card.hero {
  background:
    radial-gradient(120% 140% at 100% 0%, var(--gold-soft), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--line-2);
}
.card.clickable { cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.card.clickable:hover { border-color: var(--line-2); transform: translateY(-1px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h3 { font-size: 14.5px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.section-title h3 { font-size: 15px; }
.gold-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  transition: transform .12s var(--ease), background .2s, border-color .2s, opacity .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--navy); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -12px rgba(15,30,61,.7); }

.btn.primary:hover { background: var(--navy-2); }
.btn.ink { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: rgba(239,75,75,.12); color: #FF7B7B; border-color: rgba(239,75,75,.3); }
.btn.danger { color: #C62828; }
.btn.success { background: rgba(61,187,124,.14); color: #4FD292; border-color: rgba(61,187,124,.3); }
.btn.success { color: #1E8A55; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.lg { height: 54px; font-size: 15.5px; border-radius: 16px; padding: 0 22px; }
.btn.xl { height: 64px; font-size: 16.5px; border-radius: 18px; letter-spacing: .06em; text-transform: uppercase; }
.btn.block { width: 100%; }
.btn.icon { width: 42px; padding: 0; }
.btn.icon.sm { width: 34px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
  color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); position: relative; flex: none;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--surface); }
.link { color: var(--gold); font-weight: 600; font-size: 13px; }
.link:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.field .hint { font-size: 11.5px; color: var(--ink-3); }
.field .err { font-size: 12px; color: #B42318; display: none; }
.field.invalid .err { display: block; }
.field.invalid .input { border-color: rgba(239,75,75,.6); }
.input {
  height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2);
  outline: none; width: 100%; transition: border-color .2s, background .2s; font-size: 14.5px;
}
textarea.input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input:focus { border-color: var(--gold); background: var(--surface); }
.input::placeholder { color: var(--ink-3); }
.input-wrap { position: relative; }
.input-wrap .input { padding-left: 42px; }
.input-wrap > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.input-wrap .suffix { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.form-grid .span-2 { grid-column: 1 / -1; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); height: 46px; }
.stepper button { width: 42px; height: 100%; display: grid; place-items: center; color: var(--ink-2); font-size: 18px; }
.stepper button:hover { color: var(--gold); }
.stepper output { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.switch { position: relative; width: 46px; height: 28px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); transition: .25s var(--ease); cursor: pointer; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-2); transition: .25s var(--ease); }
.switch input:checked + span { background: var(--gold); border-color: var(--gold); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--gold-ink); }

.seg { display: flex; padding: 4px; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; transition: .2s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); }
.seg button .count { font-size: 11px; color: var(--gold); margin-left: 4px; }

.choice-grid { display: grid; gap: 10px; }
.choice {
  border: 1px solid var(--line-2); border-radius: 16px; padding: 14px; background: var(--surface-2);
  text-align: left; transition: .2s var(--ease); position: relative;
}
.choice:hover { border-color: var(--ink-3); }
.choice.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.choice .choice-title { font-weight: 600; }
.choice .tag { position: absolute; top: 10px; right: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px;
  border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--surface-2); white-space: nowrap;
}
.chip:hover { color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip svg { width: 14px; height: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }

/* ---------- Badges & status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  background: color-mix(in srgb, var(--c, var(--ink-3)) 14%, transparent);
  color: color-mix(in srgb, var(--c, var(--ink-3)) 80%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--c, var(--ink-3)) 26%, transparent);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.badge.plain::before { display: none; }
.badge.live::before { animation: pulse 1.6s infinite; box-shadow: 0 0 0 0 var(--c); }
.badge.gold { --c: var(--gold); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
.dot-s { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }

.stars { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; font-size: 13px; }
.stars svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Avatars ---------- */
.avatar {
  --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 600; font-size: calc(var(--s) * .36); color: #fff; letter-spacing: .02em; position: relative;
  background: linear-gradient(135deg, var(--a1, #3a3a44), var(--a2, #1c1c22)); overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .st { position: absolute; right: -1px; bottom: -1px; width: calc(var(--s) * .3); height: calc(var(--s) * .3); min-width: 10px; min-height: 10px; border-radius: 50%; background: var(--c); border: 2px solid var(--surface); }
.avatar.gold-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold); }
.avatar.lg { --s: 64px; } .avatar.xl { --s: 88px; } .avatar.sm { --s: 32px; } .avatar.xs { --s: 26px; }

/* ---------- KPI ---------- */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; overflow: hidden; }
.kpi .k-label { font-size: 11.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.kpi .k-label svg { width: 14px; height: 14px; }
.kpi .k-val { font-size: 25px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .k-sub { font-size: 12px; color: var(--ink-3); }
.kpi.accent::after { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--c, var(--gold)); }
.kpi.clickable { cursor: pointer; } .kpi.clickable:hover { border-color: var(--line-2); }
.trend-up { color: #4FD292; } .trend-down { color: #FF7B7B; }
.trend-up { color: #1E8A55; } .trend-down { color: #C62828; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li.clickable { cursor: pointer; border-radius: 12px; padding-left: 10px; padding-right: 10px; margin: 0 -6px; }
.li.clickable:hover { background: var(--surface-2); }
.li .li-title { font-weight: 600; font-size: 14px; }
.li .li-sub { font-size: 12.5px; color: var(--ink-3); }
.li-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; border: 1px solid var(--line); }
.li-icon svg { width: 18px; height: 18px; }
.li-icon.gold { color: var(--gold); background: var(--gold-soft); border-color: transparent; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 9px 14px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv.left dd { text-align: left; }

/* Route (pickup → drop) */
.route { position: relative; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.route::before { content: ''; position: absolute; left: 6px; top: 9px; bottom: 9px; border-left: 1.5px dashed var(--line-2); }
.route .stop { position: relative; }
.route .stop::before { content: ''; position: absolute; left: -22px; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--gold); background: var(--surface); }
.route .stop.to::before { border-radius: 3px; background: var(--gold); border-color: var(--gold); }
.route .stop .s-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.route .stop .s-addr { font-weight: 500; font-size: 14px; }

/* Timeline */
.timeline { position: relative; display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; position: relative; padding-bottom: 16px; }
.tl::before { content: ''; position: absolute; left: 8px; top: 16px; bottom: 0; width: 1.5px; background: var(--line-2); }
.tl:last-child::before { display: none; }
.tl .tl-dot { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--c, var(--gold)); background: var(--surface); margin-top: 1px; position: relative; z-index: 1; }
.tl.done .tl-dot { background: var(--c, var(--gold)); }
.tl.todo .tl-dot { border-color: var(--line-2); }
.tl.todo .tl-title { color: var(--ink-3); }
.tl .tl-title { font-weight: 600; font-size: 13.5px; }
.tl .tl-sub { font-size: 12px; color: var(--ink-3); }
.tl .tl-time { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Feed */
.feed-item { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.feed-item:last-child { border-bottom: 0; }
.feed-item time { color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; }
.feed-item.new { animation: flash 1.6s var(--ease); }
@keyframes flash { from { background: var(--gold-soft); } to { background: transparent; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; z-index: 1; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .15s; }
table.t tbody tr.clickable { cursor: pointer; }
table.t tbody tr:hover { background: var(--surface-2); }
table.t td.wrap { white-space: normal; min-width: 180px; }
table.t .who { display: flex; align-items: center; gap: 10px; }
table.t input[type=checkbox] { accent-color: var(--gold); width: 16px; height: 16px; }

/* ---------- Empty & skeleton ---------- */
.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 34px; height: 34px; color: var(--gold); opacity: .7; }
.empty .e-title { color: var(--ink); font-weight: 600; font-size: 15px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Toasts ---------- */
#toasts { position: fixed; z-index: 3000; top: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: toastIn .35s var(--ease);
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast .t-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c, var(--gold)) 16%, transparent); color: var(--c, var(--gold)); }
.toast .t-ic svg { width: 17px; height: 17px; }
.toast .t-title { font-weight: 600; font-size: 13.5px; }
.toast .t-body { font-size: 12.5px; color: var(--ink-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ---------- Modal & sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 2000; background: rgba(4,4,6,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .25s var(--ease); }
.scrim { background: rgba(30,24,14,.35); }
.scrim.closing { animation: fadeOut .22s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.modal { background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; width: min(560px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: pop .32s var(--ease); overflow: hidden; }
.modal.wide { width: min(880px, 100%); }
.modal.narrow { width: min(420px, 100%); }
.modal-head { padding: 18px 20px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-body { padding: 4px 20px 18px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (max-width: 640px) {
  .scrim.sheet-able { align-items: flex-end; padding: 0; }
  .scrim.sheet-able .modal { width: 100%; border-radius: 26px 26px 0 0; max-height: 92dvh; animation: sheetUp .38s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  @keyframes sheetUp { from { transform: translateY(100%); } }
}
.modal .grabber { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 8px auto 0; display: none; }
@media (max-width: 640px) { .modal .grabber { display: block; } }

/* ---------- Map ---------- */
.map { width: 100%; height: 100%; min-height: 240px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); position: relative; z-index: 0; }
.map-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map-legend { position: absolute; z-index: 500; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.map-tools { position: absolute; z-index: 500; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.map-tools .icon-btn { background: var(--glass); backdrop-filter: blur(10px); }
.map-offline { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; text-align: center; padding: 20px; }
.leaflet-container { background: var(--bg-2) !important; font-family: var(--font) !important; }
.leaflet-control-attribution { background: var(--glass) !important; color: var(--ink-3) !important; font-size: 9.5px !important; border-radius: 8px 0 0 0; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-control-zoom { border: 1px solid var(--line-2) !important; border-radius: 12px !important; overflow: hidden; box-shadow: var(--shadow-sm) !important; }
.leaflet-control-zoom a { background: var(--glass) !important; color: var(--ink) !important; border-color: var(--line) !important; backdrop-filter: blur(10px); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line-2); box-shadow: var(--shadow) !important; }
.leaflet-popup-content-wrapper { border-radius: 16px !important; }
.leaflet-popup-content { margin: 14px 16px !important; font-size: 13px; line-height: 1.45; min-width: 210px; }
.leaflet-popup-close-button { color: var(--ink-3) !important; }
.car-pin { position: relative; width: 34px; height: 34px; }
.car-pin .halo { position: absolute; inset: 0; border-radius: 50%; background: var(--c); opacity: .22; animation: halo 2.2s infinite; }
.car-pin .core { position: absolute; inset: 7px; border-radius: 50%; background: var(--c); border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.45); display: grid; place-items: center; }
.car-pin .core svg { width: 11px; height: 11px; color: #fff; }
.car-pin.me .core { background: var(--gold); inset: 5px; }
.car-pin.sos .halo { animation-duration: .9s; opacity: .45; }
.car-pin.dim { opacity: .55; }
.car-pin .tag { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); white-space: nowrap; box-shadow: var(--shadow-sm); }
@keyframes halo { 0% { transform: scale(.7); opacity: .4; } 100% { transform: scale(1.6); opacity: 0; } }
.place-pin { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--gold); color: var(--gold); box-shadow: var(--shadow-sm); }
.place-pin svg { width: 14px; height: 14px; }
.place-pin.drop { background: var(--gold); color: var(--gold-ink); }
.office-pin { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); border: 2px solid var(--gold); }
.office-pin svg { width: 12px; height: 12px; }

/* ---------- Progress / ring ---------- */
.bar { height: 6px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--c, var(--gold)); border-radius: 6px; transition: width .6s var(--ease); }
.ring { --p: 50; --s: 58px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--gold)) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; flex: none; }
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- Charts ---------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--line); }
.chart text { fill: var(--ink-3); font-size: 10.5px; font-family: var(--font); }
.chart .area { fill: url(#goldFade); }
.chart .ln { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .bar-r { fill: var(--gold); opacity: .88; }
.chart .bar-r.alt { fill: var(--ink-3); opacity: .45; }
.chart .hit:hover + .tip, .chart .tipg:hover .tip { opacity: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }

/* ==========================================================================
   Splash & Auth
   ========================================================================== */
.splash { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; overflow: hidden; color: #fff;
  background: radial-gradient(120% 80% at 50% 0%, #22407A 0%, #0F1E3D 55%, #081228 100%); }
.splash .s-grid { position: absolute; inset: -50%; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; transform: perspective(600px) rotateX(58deg) translateY(-10%); animation: gridMove 6s linear infinite; mask-image: radial-gradient(60% 50% at 50% 60%, #000, transparent 75%); -webkit-mask-image: radial-gradient(60% 50% at 50% 60%, #000, transparent 75%); }
@keyframes gridMove { to { background-position: 0 44px, 0 0; } }
.splash .s-road { position: absolute; left: 0; right: 0; bottom: 18%; height: 140px; opacity: .55; }
.splash .s-road path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-dasharray: 8 12; animation: dash 3s linear infinite; }
.splash .s-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; z-index: 1; }
.splash .s-badge { width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.2); animation: badgeIn .9s var(--ease) both; }
@keyframes badgeIn { from { opacity: 0; transform: scale(.8) translateY(10px); } }
.splash svg.s-mark { width: 64px; height: 64px; }
.splash .s-mark circle { stroke-dasharray: 180; stroke-dashoffset: 180; animation: draw 1.2s .3s var(--ease) forwards; }
.splash .s-mark path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1s .6s var(--ease) forwards; }
.splash .s-mark .s-dot { opacity: 0; animation: fadeIn .4s 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } } @keyframes fadeIn { to { opacity: 1; } }
.splash .s-word { font-family: var(--serif); font-weight: 700; letter-spacing: .5em; font-size: 26px; padding-left: .5em; opacity: 0; animation: rise .8s .8s var(--ease) forwards; }
.splash .s-tag { font-size: 14px; color: #B7C4DF; letter-spacing: .02em; opacity: 0; animation: rise .8s 1.05s var(--ease) forwards; }
.splash .s-progress { width: 220px; margin-top: 18px; opacity: 0; animation: rise .6s 1.2s var(--ease) forwards; }
.splash .s-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.splash .s-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #7FA6FF, #fff); transition: width .45s var(--ease); }
.splash .s-step { font-size: 11.5px; color: #9FB0D3; text-align: center; margin-top: 10px; letter-spacing: .04em; min-height: 16px; }
.splash .s-ver { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: #7384A8; letter-spacing: .22em; z-index: 1; }
.splash.out { animation: splashOut .55s var(--ease) forwards; }
@keyframes splashOut { to { opacity: 0; transform: scale(1.04); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art {
  position: relative; overflow: hidden; color: #0B0B0B; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(70% 50% at 70% 80%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(160deg, #ECE9E2 0%, #F4F2EC 60%);
  border-right: 1px solid var(--line);
}
.auth-art .roads { position: absolute; inset: 0; opacity: .5; }
.auth-art .roads path { fill: none; stroke: rgba(10,10,10,.12); stroke-width: 1; }
.auth-art .roads path.hot { stroke: #0B0B0B; stroke-width: 1.6; stroke-dasharray: 6 10; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -160; } }
.auth-art .quote { position: relative; max-width: 480px; }
.auth-art .quote .display { font-size: 50px; color: #0B0B0B; }
.auth-art .stats { display: flex; gap: 36px; position: relative; }
.auth-art .stats b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: #0B0B0B; }
.auth-art .stats span { font-size: 12px; color: #6B6861; letter-spacing: .08em; text-transform: uppercase; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 36px 24px; background: var(--bg); }
.auth-box { width: min(410px, 100%); display: flex; flex-direction: column; gap: 18px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.demo-grid button { border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; text-align: left; background: var(--surface); transition: .2s; }
.demo-grid button:hover { border-color: var(--gold); }
.demo-grid b { display: block; font-size: 13px; } .demo-grid span { font-size: 11.5px; color: var(--ink-3); }
.lock-note { font-size: 12.5px; padding: 10px 12px; border-radius: 12px; background: rgba(239,75,75,.1); color: #B42318; border: 1px solid rgba(217,45,32,.25); }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { min-height: 250px; padding: 26px 22px; }
  .auth-art .quote .display { font-size: 34px; }
  .auth-art .stats { display: none; }
}

/* Registration wizard */
.wizard { min-height: 100dvh; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; padding: 18px 18px 120px; }
.wizard-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0; }
.steps-bar { display: flex; gap: 4px; margin: 6px 0 20px; }
.steps-bar i { flex: 1; height: 3px; border-radius: 3px; background: var(--surface-3); }
.steps-bar i.on { background: var(--gold); }
.wizard-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 10; }
.wizard-foot .inner { max-width: 684px; margin: 0 auto; display: flex; gap: 10px; }
.upload { border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; background: var(--surface); cursor: pointer; position: relative; transition: .2s; min-height: 72px; }
.upload:hover { border-color: var(--gold); }
.upload.done { border-style: solid; border-color: rgba(61,187,124,.45); }
.upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .thumb { width: 46px; height: 46px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--ink-3); }
.upload .thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload .thumb svg { width: 20px; height: 20px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid .upload { flex-direction: column; text-align: center; min-height: 128px; justify-content: center; }
.photo-grid .upload .thumb { width: 100%; height: 70px; }

/* ==========================================================================
   Driver app (mobile-first, staged as a phone on desktop)
   ========================================================================== */
.stage { min-height: 100dvh; }
@media (min-width: 720px) {
  .stage.phone {
    display: grid; place-items: center; padding: 26px;
    background:
      radial-gradient(60% 50% at 20% 20%, var(--gold-soft), transparent 60%),
      radial-gradient(50% 50% at 90% 90%, var(--gold-soft), transparent 60%), var(--bg-2);
  }
  .stage.phone .device {
    width: 420px; height: min(900px, calc(100dvh - 52px)); border-radius: 44px; overflow: hidden; position: relative;
    border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 10px var(--surface), 0 0 0 11px var(--line-2);
    background: var(--bg); transform: translateZ(0);
  }
  .stage-side { position: fixed; left: 28px; top: 28px; max-width: 280px; }
}
.device { position: relative; height: 100dvh; background: var(--bg); display: flex; flex-direction: column; }
.d-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 16px calc(var(--nav-h) + 28px); scroll-behavior: smooth; }
.d-top { padding: calc(14px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg) 70%, transparent); }
.d-title { padding: 6px 2px 14px; }
.greet { font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.greet em { color: var(--navy-3); font-style: normal; }
.online-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: .3s var(--ease); }
.online-card.on { background: linear-gradient(120deg, color-mix(in srgb, var(--st-available) 16%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--st-available) 40%, transparent); }
.online-card.busy { background: linear-gradient(120deg, color-mix(in srgb, var(--st-pob) 16%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--st-pob) 40%, transparent); }
.online-card .switch { width: 60px; height: 34px; }
.online-card .switch span::after { width: 26px; height: 26px; }
.online-card .switch input:checked + span { background: var(--st-available); border-color: var(--st-available); }
.online-card .switch input:checked + span::after { transform: translateX(26px); background: #fff; }

.bottom-nav {
  position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: var(--nav-h) ; z-index: 40;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px; border-radius: 24px;
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); border-radius: 16px; position: relative; letter-spacing: .02em; }
.bottom-nav button svg { width: 22px; height: 22px; }
.bottom-nav button.on { color: var(--gold); background: var(--gold-soft); }
.bottom-nav button .n { position: absolute; top: 5px; right: calc(50% - 20px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--gold); color: var(--gold-ink); font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.bottom-nav .fab-slot { position: relative; }
.bottom-nav .fab-slot .fab { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); width: 58px; height: 58px; border-radius: 20px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); display: grid; place-items: center; box-shadow: 0 12px 26px -10px var(--gold); }
.bottom-nav .fab-slot .fab svg { width: 26px; height: 26px; }

.sos-fab { position: absolute; right: 18px; bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); z-index: 39; width: 52px; height: 52px; border-radius: 50%; background: #D93A3A; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: .06em; box-shadow: 0 10px 26px -8px rgba(217,58,58,.8), 0 0 0 4px rgba(217,58,58,.18); user-select: none; -webkit-user-select: none; touch-action: none; }
.sos-fab .sos-ring { position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(#fff calc(var(--p, 0) * 1%), transparent 0); -webkit-mask: radial-gradient(circle, transparent 29px, #000 30px); mask: radial-gradient(circle, transparent 29px, #000 30px); }

.job-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.job-card.active { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: radial-gradient(120% 100% at 100% 0%, var(--gold-soft), transparent 55%), var(--surface); }
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.job-meta .m { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); padding: 5px 9px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.job-meta .m svg { width: 13px; height: 13px; color: var(--ink-3); }
.fare { font-size: 22px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fare small { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }

/* Trip screen */
.trip { position: absolute; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; animation: slideUp .4s var(--ease); }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } }
.trip .trip-map { flex: 1; min-height: 200px; position: relative; }
.trip .trip-map .map { border-radius: 0; height: 100%; }
.trip .trip-top { position: absolute; z-index: 600; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; }
.trip .trip-top .icon-btn { background: var(--glass); backdrop-filter: blur(14px); }
.trip .trip-top .pill { flex: 1; min-width: 0; height: 40px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line-2); display: flex; align-items: center; padding: 0 12px; gap: 8px; font-size: 13px; font-weight: 600; }
.trip .trip-sheet { background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 26px 26px 0 0; margin-top: -24px; position: relative; z-index: 600; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 40px -20px rgba(0,0,0,.6); max-height: 64%; overflow-y: auto; }
.trip-stage { display: flex; gap: 4px; margin: 10px 0 14px; }
.trip-stage i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.trip-stage i.on { background: var(--gold); }
.trip-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trip-stats > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.trip-stats b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.trip-stats > div > span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.slide-btn { position: relative; height: 64px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line-2); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.slide-btn .sb-fill { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--gold-soft), color-mix(in srgb, var(--c, var(--gold)) 35%, transparent)); }
.slide-btn .sb-label { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--ink); pointer-events: none; }
.slide-btn .sb-knob { position: absolute; left: 6px; top: 6px; width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); display: grid; place-items: center; color: var(--gold-ink); box-shadow: 0 6px 16px -6px var(--gold); cursor: grab; touch-action: none; }
.slide-btn .sb-knob svg { width: 24px; height: 24px; }
.slide-btn.c-arrived { --c: var(--st-arrived); } .slide-btn.c-pob { --c: var(--st-pob); } .slide-btn.c-done { --c: var(--st-available); }
.wait-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--st-arrived); }

/* Offer (incoming job) */
.offer { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(4,4,6,.7); backdrop-filter: blur(8px); animation: fade .3s; }
.offer .o-card { background: var(--surface); border-radius: 30px 30px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gold); animation: sheetUp2 .45s var(--ease); max-height: 94%; overflow-y: auto; }
@keyframes sheetUp2 { from { transform: translateY(60%); opacity: 0; } }
.offer .countdown { --p: 100; width: 64px; height: 64px; }
.offer .o-fare { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; color: var(--gold); }

/* Payment */
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface-2); text-align: left; width: 100%; transition: .2s; }
.pay-opt.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.pay-opt .li-icon { width: 44px; height: 44px; }
.camera { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 4/3; }
.camera video, .camera img { width: 100%; height: 100%; object-fit: cover; }
.camera .shutter { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,.25); }
.camera .cam-note { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(217,58,58,.85); padding: 4px 8px; border-radius: 6px; }

.wallet-hero { border-radius: 26px; padding: 20px; color: #F6F4EF; position: relative; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.12), transparent 55%), linear-gradient(145deg, #1B3262, #0B1730); border: 1px solid #0F1E3D; }
.wallet-hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 26px rgba(255,255,255,.03), 0 0 0 52px rgba(255,255,255,.02); }
.wallet-hero .w-bal { font-size: 40px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wallet-hero .w-bal small { font-size: 22px; color: #BDB9B0; margin-right: 2px; }
.wallet-hero .eyebrow { color: #A6A29A; }

.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 10px 0 6px; }
.doc-row .days { font-size: 12px; font-weight: 600; }
.notif { display: flex; gap: 12px; padding: 13px 12px; border-radius: 16px; position: relative; cursor: pointer; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: var(--surface); border: 1px solid var(--line); }
.notif.unread::after { content: ''; position: absolute; right: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.notif .n-title { font-weight: 600; font-size: 13.5px; padding-right: 16px; }
.notif .n-body { font-size: 12.5px; color: var(--ink-2); }
.notif .n-time { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.notif.prio-critical .li-icon { color: var(--st-sos); background: rgba(239,75,75,.12); }

.settings-group { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px; }
.setting { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); min-height: 54px; }
.setting:last-child { border-bottom: 0; }
.setting .s-t { flex: 1; font-weight: 500; }
.setting .s-d { font-size: 12px; color: var(--ink-3); }
.setting button.s-link { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; }

/* ==========================================================================
   Operator console
   ========================================================================== */
.console { display: grid; grid-template-columns: 88px minmax(0, 1fr); min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; align-items: center; padding: 18px 0; gap: 6px; z-index: 30; }
.rail .brand-mark { width: 38px; height: 38px; margin-bottom: 18px; }
.rail button.r { width: 64px; min-height: 58px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-3); font-size: 10.5px; font-weight: 600; position: relative; }
.rail button.r svg { width: 21px; height: 21px; }
.rail button.r:hover { color: var(--ink); background: var(--surface); }
.rail button.r.on { color: var(--gold); background: var(--gold-soft); }
.rail button.r .n { position: absolute; top: 6px; right: 10px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--gold); color: var(--gold-ink); font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.rail button.r.add { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); margin: 6px 0; }
.rail .spacer { flex: 1; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); min-height: 68px; }
.topbar .t-title { font-weight: 600; font-size: 17px; }
.topbar .search { flex: 1; max-width: 460px; }
.topbar .search .input { height: 40px; background: var(--surface); }
.clock { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.content { padding: 20px 24px 40px; }
.op-dash { display: grid; grid-template-columns: 260px minmax(0,1fr) 330px; gap: 16px; height: calc(100dvh - 68px - 40px); min-height: 560px; }
.op-dash > * { min-height: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.panel-head { padding: 14px 16px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-body { padding: 0 12px 12px; overflow-y: auto; flex: 1; min-height: 0; }
.stat-stack { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.stat-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stat-line .sv { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-left: auto; }
.stat-line .li-icon { width: 34px; height: 34px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 0; }
.driver-row { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 14px; cursor: pointer; }
.driver-row:hover { background: var(--surface-2); }
.driver-row.sel { background: var(--gold-soft); }
.map-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.map-col .map-frame { flex: 1; min-height: 300px; }
.map-col .map { border-radius: 0; height: 100%; }
.booking-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.booking-strip .mini { min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.booking-strip .mini:hover { border-color: var(--line-2); }

.add-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.add-layout .sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.form-section + .form-section { margin-top: 14px; }
.form-section > .fs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.form-section > .fs-head .n { width: 26px; height: 26px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); font-weight: 700; display: grid; place-items: center; font-size: 12.5px; }
.vehicle-opt { display: flex; gap: 12px; align-items: center; }
.vehicle-opt .v-ic { width: 54px; height: 34px; flex: none; color: var(--ink-2); }
.choice.on .v-ic { color: var(--gold); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; max-height: 280px; overflow-y: auto; }
.suggest button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; font-size: 13px; }
.suggest button:hover, .suggest button.hl { background: var(--surface-2); }
.suggest svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.assign-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.assign-card.best { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.assign-card.dim { opacity: .5; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.alert-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--c, var(--gold)) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 35%, transparent); }
.alert-banner svg { width: 20px; height: 20px; color: var(--c, var(--gold)); flex: none; }
.proof-img { width: 100%; max-width: 340px; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line-2); cursor: zoom-in; background: var(--surface-2); }
.dup { color: #B42318; font-weight: 700; }

/* ==========================================================================
   Admin portal
   ========================================================================== */
.portal { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-2); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; z-index: 40; }
.sidebar .brand { padding: 2px 8px 18px; }
.sidebar .grp { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 16px 10px 6px; }
.sidebar button.s { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 11px; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: 13.5px; width: 100%; text-align: left; }
.sidebar button.s svg { width: 18px; height: 18px; color: var(--ink-3); }
.sidebar button.s:hover { background: var(--surface); color: var(--ink); }
.sidebar button.s.on { background: var(--surface); color: var(--ink); box-shadow: inset 2px 0 0 var(--gold); }
.sidebar button.s.on svg { color: var(--gold); }
.sidebar button.s .n { margin-left: auto; font-size: 11px; font-weight: 700; min-width: 22px; height: 20px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); padding: 0 6px; }
.sidebar button.s .n.hot { background: var(--st-sos); color: #fff; }
.sidebar button.s .n.gold { background: var(--gold); color: var(--gold-ink); }
.sidebar .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.health { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.crumbs { font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.crumbs b { color: var(--ink-2); font-weight: 600; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.exec-grid { display: grid; grid-template-columns: 290px minmax(0,1fr) 310px; gap: 16px; }
.exec-grid .map-frame { height: 520px; }
.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { height: 40px; }
.toolbar .search-in { width: 280px; max-width: 100%; }
.drawer-scrim { position: fixed; inset: 0; z-index: 1900; background: rgba(4,4,6,.5); backdrop-filter: blur(3px); animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 1950; background: var(--bg); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: drawerIn .35s var(--ease); }
.drawer.closing { animation: drawerOut .25s var(--ease) forwards; }
@keyframes drawerIn { from { transform: translateX(100%); } } @keyframes drawerOut { to { transform: translateX(100%); } }
.drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 30px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.doc-tile { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.vphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vphotos div { aspect-ratio: 4/3; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--ink-3); overflow: hidden; }
.vphotos img { width: 100%; height: 100%; object-fit: cover; }
.prio { --c: var(--ink-3); }
.prio.critical { --c: var(--st-sos); } .prio.high { --c: var(--st-pob); } .prio.medium { --c: var(--st-warn); } .prio.low { --c: var(--st-enroute); }
.sos-banner { position: sticky; top: 68px; z-index: 24; margin: 0 24px; margin-top: 12px; }
.sos-banner .alert-banner { --c: var(--st-sos); animation: sosPulse 1.4s infinite; }
@keyframes sosPulse { 50% { box-shadow: 0 0 0 4px rgba(239,75,75,.15); } }
.health-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.health-grid > div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 9px 11px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.cmd-center { position: fixed; inset: 0; z-index: 2500; background: var(--bg); display: grid; grid-template-rows: auto 1fr; }
.menu-btn { display: none; }

/* Mode switch (Operator + Driver) */
.mode-switch { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.mode-switch button { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.mode-switch button svg { width: 14px; height: 14px; }
.mode-switch button.on { background: var(--gold); color: var(--gold-ink); }

/* Demo helper panel (desktop, beside the phone) */
.demo-side { display: none; }
@media (min-width: 1180px) {
  .demo-side { display: flex; flex-direction: column; gap: 12px; position: fixed; left: 32px; top: 50%; transform: translateY(-50%); width: 270px; }
  .demo-side.right { left: auto; right: 32px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .op-dash { grid-template-columns: 230px minmax(0,1fr) 290px; }
  .exec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exec-grid .map-frame { grid-column: 1 / -1; order: -1; height: 440px; }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1080px) {
  .op-dash { grid-template-columns: minmax(0, 1fr); height: auto; }
  .op-dash .map-col .map-frame { height: 420px; flex: none; }
  .op-dash .panel { max-height: 460px; }
  .stat-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .add-layout, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .add-layout .sticky { position: static; }
  .two-col, .three-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .portal { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-grid; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .exec-grid { grid-template-columns: minmax(0, 1fr); }
  .exec-grid .map-frame { height: 360px; }
  .sos-banner { margin: 10px 16px 0; }
}
@media (max-width: 760px) {
  .console { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; right: 10px; height: 70px; flex-direction: row; justify-content: space-around; padding: 6px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow); }
  .rail .brand-mark, .rail .spacer, .rail .r.desk { display: none; }
  .rail button.r { width: auto; flex: 1; min-height: 56px; }
  .rail button.r.add { flex: none; width: 56px; margin: 0; }
  .content { padding: 14px 16px 110px; }
  .topbar { padding: 12px 16px; }
  .topbar .search { display: none; }
  .topbar .hide-sm { display: none; }
  .stat-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kv { grid-template-columns: minmax(100px, 42%) 1fr; }
  .toolbar .search-in { width: 100%; }
}
@media (max-width: 420px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .k-val { font-size: 21px; } }

@media print {
  .sidebar, .topbar, .rail, .toolbar, .no-print, #toasts { display: none !important; }
  .portal, .console { display: block; }
  body { background: #fff; color: #000; }
  .card, .table-wrap, .kpi { border-color: #ddd; break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Smooth vehicle movement between GPS ticks */
.car-marker { transition: transform .95s linear; }
.zooming .car-marker, .leaflet-dragging .car-marker { transition: none; }

/* Map tiles: full OSM street detail, re-toned to the Move palette */
.move-tiles { filter: grayscale(1) sepia(.18) hue-rotate(180deg) saturate(.9) brightness(1.03) contrast(.96); }
.stat-stack > .btn { grid-column: 1 / -1; }

/* ==========================================================================
   Module picker — one app, three modules
   ========================================================================== */
.picker { min-height: 100dvh; display: flex; flex-direction: column; padding: 28px clamp(16px, 5vw, 64px) 24px; background: radial-gradient(70% 50% at 50% 0%, #FFFFFF, transparent 70%), var(--bg); }
.picker-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.picker-head { text-align: center; margin: clamp(28px, 7vh, 72px) auto 36px; max-width: 620px; }
.picker-head .display { font-size: clamp(38px, 6vw, 60px); }
.picker-head .display em { color: var(--ink); }
.picker-head p { margin-top: 12px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1120px; width: 100%; margin: 0 auto; }
.module-card { text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 6px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; animation: rise .6s var(--ease) both; position: relative; overflow: hidden; }
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink); }
.module-card .mc-top { display: flex; align-items: center; justify-content: space-between; }
.module-card .mc-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.module-card .mc-ic svg { width: 26px; height: 26px; }
.module-card .mc-no { font-family: var(--serif); font-size: 34px; color: var(--ink-3); opacity: .5; }
.module-card .mc-title { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1; margin: 4px 0 6px; }
.mc-points { list-style: none; padding: 0; margin: 12px 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-2); }
.mc-points li { display: flex; gap: 8px; align-items: center; }
.mc-points svg { width: 15px; height: 15px; color: var(--ink); }
.module-card .mc-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.module-card .mc-go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.module-card:hover .mc-go svg { transform: translateX(4px); }
.module-card:nth-child(2) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.module-card:nth-child(2) .mc-ic { background: var(--bg); color: var(--ink); }
.module-card:nth-child(2) .muted, .module-card:nth-child(2) .eyebrow, .module-card:nth-child(2) .mc-points { color: #B9B6AE; }
.module-card:nth-child(2) .mc-points svg { color: var(--bg); }
.module-card:nth-child(2) .mc-go { border-top-color: rgba(255,255,255,.14); }
.picker-foot { text-align: center; margin-top: 36px; }
.module-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.module-pill svg { width: 15px; height: 15px; }
@media (max-width: 860px) { .module-grid { grid-template-columns: minmax(0, 1fr); } .module-card .mc-title { font-size: 32px; } }


/* ==========================================================================
   v2 — loading screen, transitions, auth, OTP, wizard, chat, bidding
   ========================================================================== */
.loader { position: fixed; inset: 0; z-index: 2600; display: grid; place-items: center; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); animation: fade .2s; }
.loader.out { animation: fadeOut .3s var(--ease) forwards; }
.loader .l-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader .l-ring { width: 86px; height: 86px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.loader .l-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--navy); animation: spin 1s linear infinite; }
.loader .l-ring::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid transparent; border-bottom-color: var(--navy-3); animation: spin 1.6s linear infinite reverse; }
.loader .l-ring svg { width: 38px; height: 38px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader .l-title { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.loader .l-step { font-size: 12.5px; color: var(--ink-3); min-height: 18px; }
.loader .l-dots { display: flex; gap: 6px; }
.loader .l-dots i { width: 22px; height: 3px; border-radius: 3px; background: var(--surface-3); transition: background .3s; }
.loader .l-dots i.on { background: var(--navy); }

#route-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 3500; background: linear-gradient(90deg, var(--navy-3), var(--navy)); box-shadow: 0 0 10px rgba(42,74,138,.5); opacity: 0; transition: width .35s var(--ease), opacity .3s; }
#route-bar.go { opacity: 1; }
.page-in { animation: pageIn .42s var(--ease) both; }
.page-in-side { animation: pageInSide .38s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pageInSide { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: pageIn .45s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .04s; } .stagger > *:nth-child(3) { animation-delay: .08s; } .stagger > *:nth-child(4) { animation-delay: .12s; } .stagger > *:nth-child(5) { animation-delay: .16s; } .stagger > *:nth-child(n+6) { animation-delay: .2s; }

/* ---- Auth (reference: white + navy, role toggle on top) */
.auth2 { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; }
.auth2-art { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 20% 0%, #22407A, #0F1E3D 55%, #081228); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth2-art .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.auth2-art .quote { position: relative; max-width: 460px; }
.auth2-art .quote h2 { font-family: var(--serif); font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.auth2-art .quote p { color: #B7C4DF; margin-top: 14px; font-size: 15px; }
.auth2-art .feat { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.auth2-art .feat div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #D5DEEF; }
.auth2-art .feat b { display: block; font-family: var(--serif); font-size: 20px; color: #fff; }
.auth2-panel { display: flex; align-items: center; justify-content: center; padding: 32px 22px; }
.auth2-box { width: min(420px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth2-box h1 { font-family: var(--serif); font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.auth2-box .sub { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.role-toggle { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.role-toggle button { height: 46px; border-radius: 99px; border: 1.5px solid var(--navy); font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--navy); background: #fff; transition: background .25s, color .25s, transform .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.role-toggle button svg { width: 18px; height: 18px; }
.role-toggle button.on { background: var(--navy); color: #fff; box-shadow: 0 10px 20px -12px rgba(15,30,61,.8); }
.role-toggle button:active { transform: scale(.97); }
.role-toggle.admin button { opacity: .35; pointer-events: none; }
.admin-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 600; animation: pageIn .35s var(--ease); }
.admin-pill svg { width: 16px; height: 16px; }
.big-input { height: 54px; border-radius: 16px; border: 1.5px solid var(--line-2); padding: 0 18px; font-size: 16px; width: 100%; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.big-input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15,30,61,.08); }
.phone-wrap { position: relative; }
.phone-wrap .cc { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; pointer-events: none; }
.phone-wrap .big-input.has-cc { padding-left: 76px; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.social { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.btn.social { flex-direction: row; height: 44px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line-2); width: min(300px, 100%); font-weight: 600; gap: 10px; }
.btn.social:hover { border-color: var(--navy); }
.btn.social svg { width: 18px; height: 18px; }
.btn.pill { border-radius: 99px; }
.demo-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.demo-chips button { font-size: 12px; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.demo-chips button:hover { border-color: var(--navy); color: var(--navy); }
.otp { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 72px); justify-content: start; gap: 12px; }
.otp input { height: 58px; border-radius: 14px; border: 1.5px solid var(--line-2); text-align: center; font-size: 22px; font-weight: 700; font-family: var(--serif); outline: none; background: #fff; transition: border-color .2s, transform .15s; min-width: 0; }
.otp input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15,30,61,.08); }
.otp input.filled { border-color: var(--navy); }
.otp.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.otp-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); }
.demo-code { font-size: 12.5px; padding: 10px 12px; border-radius: 12px; background: #EEF3FF; color: var(--navy-2); border: 1px solid rgba(42,74,138,.18); display: flex; align-items: center; gap: 8px; }
.demo-code b { font-family: var(--serif); letter-spacing: .2em; }
@media (max-width: 900px) { .auth2 { grid-template-columns: minmax(0, 1fr); } .auth2-art { display: none; } .auth2-box h1 { font-size: 34px; } }

/* Onboarding slides */
.onb { min-height: 100dvh; display: flex; flex-direction: column; background: #fff; }
.onb-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; }
.onb-stage { flex: 1; display: grid; place-items: center; padding: 20px; }
.onb-card { width: min(460px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.onb-art { width: 240px; height: 200px; border-radius: 32px; background: radial-gradient(90% 90% at 30% 20%, #22407A, #0F1E3D 70%); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.onb-art svg { width: 84px; height: 84px; stroke-width: 1.4; }
.onb-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; }
.onb-card h2 { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.onb-dots { display: flex; gap: 8px; }
.onb-dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--surface-3); transition: width .3s var(--ease), background .3s; }
.onb-dots i.on { width: 26px; background: var(--navy); }
.onb-foot { padding: 20px 24px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* Wizard stepper (booking / registration) */
.wsteps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.wsteps::-webkit-scrollbar { display: none; }
.wsteps button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; flex: none; }
.wsteps button i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--surface-3); color: var(--ink-2); font-size: 11.5px; }
.wsteps button.done { color: var(--ink); } .wsteps button.done i { background: #DCFCE7; color: var(--st-available); }
.wsteps button.on { color: #fff; background: var(--navy); border-color: var(--navy); } .wsteps button.on i { background: rgba(255,255,255,.2); color: #fff; }
.wiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; }
.wiz-foot { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.type-card { border: 1.5px solid var(--line-2); border-radius: 18px; padding: 16px; text-align: left; background: #fff; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.type-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.type-card.on { border-color: var(--navy); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.type-card .ti { width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.type-card .ti svg { width: 20px; height: 20px; }
.class-card { border: 1.5px solid var(--line-2); border-radius: 18px; padding: 14px; background: #fff; text-align: left; display: flex; flex-direction: column; gap: 6px; position: relative; transition: border-color .2s, box-shadow .2s; }
.class-card.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--gold-soft); }
.class-card.bad { opacity: .62; }
.class-card .cap { display: flex; gap: 10px; font-size: 12px; color: var(--ink-2); }
.class-card .cap span { display: inline-flex; gap: 4px; align-items: center; }
.class-card .cap svg { width: 14px; height: 14px; }
.tagline { position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.tagline.rec { background: var(--navy); color: #fff; } .tagline.ok { background: #DCFCE7; color: #166534; } .tagline.no { background: #FEE2E2; color: #991B1B; }
.fare-lines { display: flex; flex-direction: column; gap: 8px; }
.fare-line { display: grid; grid-template-columns: minmax(0, 1fr) 110px 34px; gap: 8px; align-items: center; font-size: 13.5px; }
.fare-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px dashed var(--line-2); font-family: var(--serif); font-weight: 700; font-size: 22px; }
.check-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.drv-pick { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.drv-pick.best { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.drv-pick.off { opacity: .55; background: var(--surface-2); }
.drv-pick .why { font-size: 11.5px; color: var(--st-sos); }
.fav { color: #E0A400; } .fav svg { fill: currentColor; }
.star-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); border: 1px solid var(--line); background: #fff; }
.star-btn svg { width: 17px; height: 17px; }
.star-btn.on { color: #E0A400; border-color: #F5D77A; background: #FFFBEB; } .star-btn.on svg { fill: currentColor; }
.confirm-hero { border-radius: var(--r-xl); padding: 22px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #2A4A8A, #0F1E3D 60%); position: relative; overflow: hidden; }
.confirm-hero .ck { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.confirm-hero .ck svg { width: 28px; height: 28px; }
.confirm-hero .muted, .confirm-hero .faint { color: #B7C4DF; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; padding: 4px 2px; }
.chat.tall { max-height: none; flex: 1; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; animation: pageIn .25s var(--ease); }
.msg.them { background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-input .input { height: 44px; }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 2px; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; font-size: 12px; padding: 6px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.quick button:hover { border-color: var(--navy); color: var(--navy); }
.call-screen { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0; }
.call-screen .pulse { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(15,30,61,.4); animation: callPulse 1.6s infinite; }
.call-screen .pulse svg { width: 38px; height: 38px; }
@keyframes callPulse { 70% { box-shadow: 0 0 0 22px rgba(15,30,61,0); } 100% { box-shadow: 0 0 0 0 rgba(15,30,61,0); } }

/* Bidding */
.bid-range { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 22px; }
.bid-range .sep { flex: 1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #BFDBFE, var(--navy)); }
.bid-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bid-presets button { height: 48px; border-radius: 14px; border: 1.5px solid var(--line-2); font-family: var(--serif); font-weight: 700; font-size: 17px; background: #fff; }
.bid-presets button.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.bid-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.bid-card .amt { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.bid-card.accepted { border-color: var(--st-available); background: #F0FDF4; }
.bid-card.rejected { opacity: .5; }
.countdown-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown-pill svg { width: 14px; height: 14px; }

/* Liveness */
.face-cam { position: relative; width: 240px; height: 300px; margin: 0 auto; border-radius: 50% / 45%; overflow: hidden; background: #0F1E3D; border: 4px solid var(--navy); box-shadow: 0 0 0 8px var(--gold-soft); }
.face-cam video, .face-cam img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.face-cam .dir { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: none; }
.face-cam .dir svg { width: 60px; height: 60px; opacity: .85; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); animation: nudge 1.2s infinite; }
@keyframes nudge { 50% { transform: translateX(var(--nx, 0)); } }
.live-steps { display: flex; justify-content: center; gap: 8px; }
.live-steps i { width: 36px; height: 4px; border-radius: 4px; background: var(--surface-3); } .live-steps i.on { background: var(--navy); } .live-steps i.done { background: var(--st-available); }

/* Doc tiles (upload) */
.doc-up { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.doc-up .th { width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--ink-3); border: 1px dashed var(--line-2); }
.doc-up .th img { width: 100%; height: 100%; object-fit: cover; }
.doc-up .th svg { width: 20px; height: 20px; }
.doc-up.done .th { border-style: solid; border-color: rgba(22,163,74,.4); }
.doc-up label.btn { position: relative; overflow: hidden; }
.doc-up label.btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pick-doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; text-align: left; width: 100%; }
.pick-doc.on { border-color: var(--navy); background: var(--gold-soft); }
.pick-doc .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.pick-doc.on .box { background: var(--navy); border-color: var(--navy); color: #fff; }
.pick-doc .box svg { width: 14px; height: 14px; }
.progress-count { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px; background: var(--gold-soft); }
.progress-count.ok { background: #DCFCE7; color: #166534; }

/* Alerts list */
.alert-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, transform .15s; }
.alert-row:hover { border-color: var(--line-2); transform: translateX(2px); }
.alert-row .ai { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.alert-row .ai svg { width: 17px; height: 17px; }
.alert-row.critical { --c: var(--st-sos); border-left: 3px solid var(--st-sos); } .alert-row.warning { --c: var(--st-warn); border-left: 3px solid var(--st-warn); } .alert-row.info { --c: var(--st-enroute); border-left: 3px solid var(--st-enroute); }
.menu-list { display: flex; flex-direction: column; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .li-icon { width: 36px; height: 36px; }
.menu-item:hover .s-t { color: var(--navy-3); }
.receipt { font-size: 13px; }
.receipt .r-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 12px; }
.barcode { display: flex; gap: 1px; height: 44px; align-items: stretch; }
.barcode i { background: var(--ink); }
.verified-stamp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--st-available); color: var(--st-available); border-radius: 12px; font-weight: 800; letter-spacing: .12em; transform: rotate(-4deg); }
.stale { color: var(--st-warn); font-weight: 600; }

/* Operator messages: thread list + conversation side by side, stacked on phones */
.msg-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 820px) { .msg-layout { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================================
   v3 — non-blocking offer card, real map colours, face scan, success
   animations, richer splash/loader, mobile navigation alignment
   ========================================================================= */

/* Map: keep the real OpenStreetMap colours */
.move-tiles { filter: none; }

/* Job offer: floating card at the top; the driver's screen stays visible and usable */
.offer { position: absolute; inset: auto 0 auto 0; top: calc(64px + env(safe-area-inset-top)); z-index: 80; display: block; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 10px; pointer-events: none; animation: none; }
.offer .o-card { pointer-events: auto; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--navy) 30%, var(--line)); padding: 14px 14px 12px 16px; max-height: calc(100dvh - 190px); overflow-y: auto; box-shadow: 0 22px 50px -18px rgba(15,30,61,.55), 0 0 0 4px rgba(42,74,138,.12); animation: offerDrop .5s var(--ease), offerGlow 1.6s .5s ease-in-out infinite; position: relative; }
.offer .o-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--navy-3), var(--navy)); }
.offer .o-fare { font-size: 30px; }
.offer .countdown { width: 48px; height: 48px; }
.offer .o-more { display: none; }
.offer .o-card.open .o-more { display: block; animation: pageIn .3s var(--ease); }
.offer .o-head { display: flex; align-items: center; gap: 10px; }
.offer .o-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-3); }
.offer .o-live i { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; animation: livePing 1.4s infinite; }
.offer .o-route { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; font-size: 13.5px; margin-top: 10px; }
.offer .o-route .dt { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--navy); margin-top: 5px; }
.offer .o-route .dt.to { background: var(--navy); border-radius: 2px; }
.offer .o-acts { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 8px; margin-top: 12px; }
@keyframes offerDrop { from { opacity: 0; transform: translateY(-24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes offerGlow { 50% { box-shadow: 0 22px 50px -18px rgba(15,30,61,.55), 0 0 0 7px rgba(42,74,138,.2); } }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

/* Face verification — guided scan */
.scan { position: relative; width: min(300px, 100%); aspect-ratio: 3 / 4; margin: 0 auto; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #1B3262, #070F22 75%); box-shadow: 0 30px 60px -30px rgba(15,30,61,.7); }
.scan video, .scan img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.scan .mask { position: absolute; inset: 0; background: radial-gradient(ellipse 35% 36% at 50% 45%, transparent 97%, rgba(7,15,34,.72) 100%); pointer-events: none; }
.scan svg.scan-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scan .scan-ring .track { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.5; stroke-dasharray: 3 5; }
.scan .scan-ring .prog { fill: none; stroke: #7FE0A8; stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset .12s linear, stroke .3s; filter: drop-shadow(0 0 5px rgba(127,224,168,.8)); }
.scan .line { position: absolute; left: 17%; right: 17%; height: 2px; top: 12%; background: linear-gradient(90deg, transparent, #7FA6FF, transparent); box-shadow: 0 0 14px 2px rgba(127,166,255,.6); animation: scanLine 2.2s ease-in-out infinite; opacity: 0; transition: opacity .3s; }
.scan.active .line { opacity: 1; }
@keyframes scanLine { 0%, 100% { top: 13%; } 50% { top: 76%; } }
.scan .mesh { position: absolute; left: 20%; right: 20%; top: 12%; bottom: 22%; background-image: radial-gradient(circle, rgba(157,182,240,.6) 1.2px, transparent 1.7px); background-size: 13px 13px; -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 72%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 72%); opacity: 0; transition: opacity .4s; animation: meshPulse 1.8s ease-in-out infinite; }
.scan.active .mesh { opacity: .7; }
@keyframes meshPulse { 50% { filter: brightness(1.8); } }
.scan .corner { position: absolute; width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.85); }
.scan .corner.tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.scan .corner.tr { right: 14px; top: 14px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.scan .corner.bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.scan .corner.br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.scan .chip { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(7,15,34,.7); color: #fff; font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 99px; white-space: nowrap; backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.14); }
.scan .chip i { width: 8px; height: 8px; border-radius: 50%; background: #7FE0A8; animation: livePing 1.4s infinite; }
.scan .arrow { position: absolute; top: 45%; color: #fff; opacity: 0; transition: opacity .3s; transform: translateY(-50%); }
.scan .arrow svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.scan .arrow.l { left: 4px; animation: nudgeL 1s infinite; } .scan .arrow.r { right: 4px; animation: nudgeR 1s infinite; }
.scan .arrow.on { opacity: 1; }
@keyframes nudgeL { 50% { transform: translate(-6px, -50%); } } @keyframes nudgeR { 50% { transform: translate(6px, -50%); } }
.scan .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.scan .flash.go { animation: flashFx .35s ease-out; }
@keyframes flashFx { 0% { opacity: .85; } 100% { opacity: 0; } }
.scan .noc { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); }
.scan .noc svg { width: 46%; }
.scan .done-ov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7,15,34,.5); backdrop-filter: blur(2px); animation: fade .3s; }
.scan .done-ov .tick { width: 84px; height: 84px; }
.scan-poses { display: flex; justify-content: center; gap: 10px; margin: 14px 0 4px; }
.scan-poses span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink-3); overflow: hidden; transition: .3s; position: relative; }
.scan-poses span svg { width: 20px; height: 20px; }
.scan-poses span img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.scan-poses span.on { border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 3px var(--gold-soft); }
.scan-poses span.done { border-color: var(--st-available); }
.scan-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.scan-checks div { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 9px 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: .3s; }
.scan-checks div svg { width: 14px; height: 14px; }
.scan-checks div.ok { color: #166534; border-color: rgba(22,163,74,.35); background: #F0FDF4; }
.scan-analyse { display: flex; flex-direction: column; gap: 9px; margin: 14px auto 0; max-width: 300px; }
.scan-analyse div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.scan-analyse div .sp { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface-3); border-top-color: var(--navy); animation: spin .8s linear infinite; flex: none; }
.scan-analyse div.ok { color: var(--ink); font-weight: 500; }
.scan-analyse div.ok .sp { animation: none; border-color: var(--st-available); background: var(--st-available) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.scan-analyse div.wait { opacity: .45; } .scan-analyse div.wait .sp { animation: none; }

/* Animated success check (documents, submissions, approvals) */
.tick { width: 26px; height: 26px; display: inline-block; vertical-align: middle; }
.tick circle { fill: #16A34A; fill-opacity: 0; stroke: #16A34A; stroke-width: 3; stroke-dasharray: 76; stroke-dashoffset: 76; animation: draw .55s var(--ease) forwards, tickFill .3s .5s forwards; }
.tick path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .35s .55s var(--ease) forwards; }
.tick.line circle { animation: draw .55s var(--ease) forwards; } .tick.line path { stroke: #16A34A; }
@keyframes tickFill { to { fill-opacity: 1; } }
.doc-up .th { position: relative; }
.doc-up .th .tick-ov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.78); animation: fadeOut .45s 1.7s forwards; }
.doc-up.fresh { animation: docFresh 1.3s var(--ease); }
@keyframes docFresh { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); border-color: rgba(22,163,74,.7); } 60% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: none; } }
.doc-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #166534; }
.doc-ok .tick { width: 16px; height: 16px; }

/* Celebration overlay (approval / submission) */
.celebrate { position: fixed; inset: 0; z-index: 2800; display: grid; place-items: center; background: rgba(7,15,34,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; padding: 20px; }
.celebrate.out { animation: fadeOut .35s forwards; }
.celebrate .cb-card { background: var(--surface); border-radius: 28px; padding: 30px 24px 22px; width: min(380px, 100%); text-align: center; position: relative; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: pop .5s var(--ease); }
.celebrate .cb-badge { width: 112px; height: 112px; margin: 0 auto 14px; position: relative; display: grid; place-items: center; }
.celebrate .cb-badge .halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(22,163,74,.3), transparent 70%); animation: halo 1.8s .6s ease-out infinite; }
.celebrate .cb-badge .tick { width: 92px; height: 92px; position: relative; }
.celebrate .cb-badge.info .halo { background: radial-gradient(circle, rgba(42,74,138,.3), transparent 70%); }
.celebrate h2 { font-family: var(--serif); font-size: 23px; font-weight: 700; }
.celebrate p { color: var(--ink-3); font-size: 14px; margin: 6px 0 18px; line-height: 1.5; }
.celebrate .confetti { position: absolute; inset: 0; pointer-events: none; }
.celebrate .confetti i { position: absolute; top: -14px; width: 7px; height: 13px; border-radius: 2px; opacity: 0; animation: confetti 2s var(--d, 0s) cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), 460px) rotate(var(--r)); } }
@keyframes halo { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.55); opacity: 0; } }

/* Splash — richer */
.splash { background: radial-gradient(90% 70% at 50% 38%, #22407A 0%, #0F1E3D 55%, #070F22 100%); }
.splash .s-orbit { position: absolute; left: 50%; top: 44%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; border: 1px solid rgba(127,166,255,.16); animation: orbit 12s linear infinite; }
.splash .s-orbit::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #7FA6FF; box-shadow: 0 0 16px 4px rgba(127,166,255,.7); }
.splash .s-orbit.o2 { width: 460px; height: 460px; margin: -230px 0 0 -230px; animation-duration: 20s; animation-direction: reverse; border-color: rgba(255,255,255,.07); }
.splash .s-orbit.o2::after { background: #fff; width: 5px; height: 5px; }
@keyframes orbit { to { transform: rotate(360deg); } }
.splash .s-glow { position: absolute; left: 50%; top: 44%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(circle, rgba(127,166,255,.26), transparent 65%); animation: glowPulse 3s ease-in-out infinite; }
@keyframes glowPulse { 50% { transform: scale(1.12); opacity: .7; } }
.splash .s-badge { position: relative; overflow: hidden; animation: badgeIn 1s var(--ease) both; }
.splash .s-badge::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); transform: translateX(-100%); animation: shine 2.6s 1.3s ease-in-out infinite; }
@keyframes badgeIn { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes shine { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
.splash .s-lights { position: absolute; left: 0; right: 0; bottom: 18%; height: 140px; pointer-events: none; overflow: hidden; }
.splash .s-lights i { position: absolute; bottom: 44px; left: -120px; width: 90px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #FFE7A8); box-shadow: 0 0 12px 2px rgba(255,231,168,.5); animation: carLight 3.4s linear infinite; }
.splash .s-lights i:nth-child(2) { bottom: 72px; animation-duration: 4.6s; animation-delay: 1.2s; background: linear-gradient(90deg, #FF6B6B, transparent); box-shadow: 0 0 12px 2px rgba(255,107,107,.45); animation-direction: reverse; }
.splash .s-lights i:nth-child(3) { bottom: 22px; animation-duration: 5.2s; animation-delay: .6s; }
@keyframes carLight { from { left: -120px; } to { left: 100%; } }
.splash .s-pct { font-size: 11px; color: #9FB0D3; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: .1em; text-align: center; }

/* Loading screen — richer */
.loader { background: radial-gradient(80% 60% at 50% 40%, rgba(234,240,251,.97), rgba(255,255,255,.97)); }
.loader .l-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 30px 34px 24px; box-shadow: 0 30px 70px -30px rgba(15,30,61,.45); min-width: min(290px, calc(100vw - 40px)); animation: pop .4s var(--ease); }
.loader .l-ring svg path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1s .1s var(--ease) forwards; }
.loader .l-ring .l-orb { position: absolute; inset: -7px; border-radius: 50%; animation: spin 1.8s linear infinite; }
.loader .l-ring .l-orb::after { content: ''; position: absolute; top: 0; left: 50%; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--navy-3); box-shadow: 0 0 10px rgba(42,74,138,.6); }
.loader .l-bar { width: 220px; max-width: 100%; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.loader .l-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--navy-3), var(--navy)); transition: width .45s var(--ease); }

/* Driver bottom navigation — even columns, badges pinned to the icon */
.bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; align-items: stretch; gap: 2px; padding: 6px; }
.bottom-nav button { min-width: 0; padding: 0 2px; }
.bottom-nav .lbl { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }
.bottom-nav .ic { position: relative; display: grid; place-items: center; }
.bottom-nav button .n { top: -7px; right: -11px; }

@media (max-width: 760px) {
  /* Operator bottom navigation — equal columns, centred add button */
  .rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 2px; height: 66px; padding: 5px; }
  .rail button.r { width: auto; min-width: 0; min-height: 54px; padding: 0 2px; font-size: 10px; }
  .rail .lbl { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rail .ic { position: relative; display: grid; place-items: center; }
  .rail button.r .n { top: -7px; right: -11px; }
  .rail button.r.add { justify-self: center; width: 50px; min-height: 50px; height: 50px; border-radius: 16px; }
  .content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) { .bottom-nav .lbl, .rail .lbl { font-size: 9.5px; } }

.upload .thumb { position: relative; }
.upload .thumb .tick-ov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.78); animation: fadeOut .45s 1.7s forwards; }
.upload.fresh { animation: docFresh 1.3s var(--ease); }

/* Submission confirmation art */
.onb-art.submitted { background: radial-gradient(90% 90% at 30% 20%, #1F7A4A, #0F1E3D 75%); position: relative; }
.onb-art.submitted .tick { width: 96px; height: 96px; position: relative; z-index: 1; }
.onb-art.submitted .tick circle { stroke: #fff; fill: #16A34A; stroke-width: 2; }
.onb-art .ring-pulse { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(127,224,168,.6); animation: halo 2s .8s ease-out infinite; }
.onb-art .ring-pulse.d2 { animation-delay: 1.8s; }

.offer .o-card.open .o-route { display: none; }

.scan .done-ov { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7,15,34,.45); }

/* ===================================================================== Operator booking form (single screen) */
.bf { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.bf-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bf-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1180px) { .bf { grid-template-columns: minmax(0, 1fr); } .bf-side { position: static; order: -1; } .bf-side .map-frame { height: 240px !important; } }
.bf-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.bf-ref { min-width: 190px; }
.bf-refno { font-size: 38px; font-weight: 800; color: var(--st-enroute, #2563EB); line-height: 1; letter-spacing: -1px; margin-top: 4px; }
.bf-head-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 12px; align-items: end; min-width: 280px; }
.bf-field label, .bf-head-grid label:not(.bf-check) { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.bf-field { min-width: 0; }
.bf-field + .bf-field { margin-top: 10px; }
.bf-head-grid .bf-field + .bf-field { margin-top: 0; }
.bf-static { height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; }
.bf-status { height: 44px; display: flex; align-items: center; }
.bf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0 4px; height: 44px; }
.bf-check input { width: 18px; height: 18px; accent-color: var(--navy, #0F1E3D); }
.bf .input { height: 44px; }
.bf textarea.input { height: auto; min-height: 64px; padding-top: 10px; }
.bf select.input { padding-right: 28px; }

.bf-pay { display: flex; gap: 0; border-bottom: 2px solid var(--line); overflow-x: auto; }
.bf-paytab { padding: 13px 22px; font-weight: 700; font-size: 14px; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.bf-paytab:hover { color: var(--ink); }
.bf-paytab.on { color: #fff; background: #F26B1D; border-radius: 10px 10px 0 0; border-bottom-color: #F26B1D; }
.bf-payx-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 14px; }
.bf-payx:empty { display: none; }

.bf-body { padding: 16px; }
.bf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .bf-cols { grid-template-columns: 1fr; } }
.bf-col { min-width: 0; display: flex; flex-direction: column; }
.bf-phone { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.bf-history { margin-top: 12px; height: 46px; border-radius: 12px; background: #1B2230; color: #fff; font-weight: 800; letter-spacing: 1px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.bf-history:hover { background: #0F1E3D; }
.bf-history svg { width: 17px; height: 17px; }
.bf-sep { height: 1px; background: var(--line); margin: 16px 0; }
.bf-when { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.bf-adj { display: inline-flex; align-items: stretch; gap: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.bf-adj .input { border: 0; border-radius: 0; height: 44px; width: auto; min-width: 140px; }
.bf-adj button { padding: 0 12px; font-weight: 800; font-size: 13px; background: #FFF1E6; color: #C2410C; border-left: 1px solid var(--line-2); }
.bf-adj button:first-child { border-left: 0; border-right: 1px solid var(--line-2); }
.bf-adj button:nth-last-child(-n+3):not(:first-child) { background: #ECFDF3; color: #067647; }
.bf-adj button:hover { filter: brightness(.95); }
.bf-asap { height: 46px; padding: 0 22px; border-radius: 12px; background: #F59E0B; color: #fff; font-weight: 800; letter-spacing: .5px; }
.bf-asap.on { background: #B45309; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #B45309; }
.bf-addr { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.bf-addr-l { position: relative; display: flex; align-items: center; }
.bf-addr-l svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.bf-addr-l .input { padding-left: 38px; font-family: var(--mono, monospace); font-weight: 700; letter-spacing: .5px; }
.bf-ico { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); }
.bf-ico:hover { color: #F59E0B; border-color: #F59E0B; }
.bf-ico svg { width: 19px; height: 19px; }
@media (max-width: 640px) { .bf-addr { grid-template-columns: 1fr auto auto; } .bf-addr-l { grid-column: 1 / -1; } }
.bf-jrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.bf-jrow .btn { height: 44px; }
.btn.green { background: #14A44D; color: #fff; border-color: #14A44D; }
.btn.warn { background: #F26B1D; color: #fff; border-color: #F26B1D; }
.btn.blue { background: #0F7BDC; color: #fff; border-color: #0F7BDC; }
.btn.olive { background: #8A7A12; color: #fff; border-color: #8A7A12; }
.btn.navy { background: #2C3E80; color: #fff; border-color: #2C3E80; }
.btn.dgreen { background: #0B6B3A; color: #fff; border-color: #0B6B3A; }
.btn.orange { background: #E8590C; color: #fff; border-color: #E8590C; }
.btn.slate { background: #3B4252; color: #fff; border-color: #3B4252; }
.btn.green:hover, .btn.warn:hover, .btn.blue:hover, .btn.olive:hover, .btn.navy:hover, .btn.dgreen:hover, .btn.orange:hover, .btn.slate:hover { filter: brightness(1.1); }
#bfReturnBtn.on { background: #2C3E80; color: #fff; }
.bf-flight { position: relative; display: inline-flex; align-items: center; }
.bf-flight svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ink-3); }
.bf-flight .input { padding-left: 36px; width: 150px; font-weight: 700; }
.bf-return { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #EEF4FF; border: 1px solid #C7D7FE; }
.bf-return svg { width: 20px; height: 20px; color: #2C3E80; }
.bf-return .input { height: 40px; width: auto; }

.bf-prices { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
@media (max-width: 720px) { .bf-prices { grid-template-columns: 1fr 1fr; } }
.bf-price { padding: 10px 14px 14px; color: #fff; }
.bf-price label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.bf-price.green { background: #2DB92D; } .bf-price.blue { background: #1FA3F5; } .bf-price.grey { background: #7B7B7B; } .bf-price.orange { background: #F59E0B; }
.bf-price-in { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 0 8px; height: 46px; color: var(--ink); }
.bf-price-in > span { font-weight: 800; color: var(--ink-2); }
.bf-price-in .input { border: 0; background: transparent; height: 42px; padding: 0 4px; font-size: 19px; font-weight: 800; flex: 1; min-width: 0; box-shadow: none; }
.bf-price-in .bf-disc { flex: 0 0 56px; font-size: 14px; background: #F2F4F7; border-radius: 8px; text-align: center; }
.bf-pct { font-weight: 800; color: var(--ink-2); font-size: 13px; }
.bf-calc { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.bf-calc-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.bf-calc-row > .btn { height: 46px; }
.bf-mini { display: flex; flex-direction: column; gap: 3px; min-width: 96px; flex: 0 1 118px; }
.bf-mini > span { font-size: 10.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.bf-mini > span svg { width: 13px; height: 13px; }
.bf-mini .input { height: 40px; padding: 0 10px; }
.stepper.sm { height: 40px; border-radius: 10px; width: 100%; justify-content: space-between; }
.stepper.sm button { width: 34px; }

.bf-veh { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.bf-veh-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.bf-veh-row > .bf-field { flex: 1 1 200px; margin: 0 !important; }
.bf-reqs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.bf-req { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-3); background: var(--surface); }
.bf-req svg { width: 20px; height: 20px; }
.bf-req i { display: none; position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; background: #101828; color: #fff; padding: 3px 7px; border-radius: 6px; white-space: nowrap; z-index: 5; }
.bf-req:hover i { display: block; }
.bf-req.on { background: #101828; color: #fff; border-color: #101828; }
.bf-wait { display: grid; grid-template-columns: 20px 1fr 120px; gap: 6px; align-items: center; }
.bf-pickdrv { height: 44px; }
.bf-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .bf-totals { grid-template-columns: 1fr; } }
.bf-tot { border-radius: 14px; padding: 12px 16px; background: #FF9F1A; color: #fff; display: flex; flex-direction: column; gap: 4px; justify-content: center; min-height: 92px; }
.bf-tot > span { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; opacity: .9; }
.bf-tot b { font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bf-tot.drv { background: #0B6B3A; }
.bf-tot.take { background: #2C3E80; }
.bf-tot-in { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 0 10px; height: 52px; color: var(--ink); font-weight: 800; }
.bf-tot-in .input { border: 0; background: transparent; font-size: 26px; font-weight: 800; height: 48px; padding: 0; box-shadow: none; }
.bf-take { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.bf-take .input { height: 44px; background: #fff; color: var(--ink); font-weight: 800; }
.bf-tot.take small { font-size: 11.5px; opacity: .85; }

.bf-drv-h { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-2); margin: 12px 0 8px; }
.bf-drv-h span { background: var(--surface-3, #F2F4F7); border-radius: 10px; padding: 1px 8px; margin-left: 4px; }
.bf-drvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.bf-drvs.dim { opacity: .75; }
.bf-drv { text-align: left; padding: 11px 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s; }
.bf-drv:hover { border-color: var(--ink-3); }
.bf-drv.sel { border-color: #14A44D; box-shadow: 0 0 0 3px rgba(20, 164, 77, .18); background: #F3FBF6; }
.bf-drv.off { background: var(--surface-2); cursor: not-allowed; }
.bf-drv-top { display: flex; align-items: center; gap: 8px; }
.bf-drv-name { font-weight: 700; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-star { color: #F59E0B; display: inline-flex; } .bf-star svg { width: 15px; height: 15px; fill: currentColor; }
.bf-drv-cats { display: flex; gap: 4px; flex-wrap: wrap; }
.bf-cat { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 8px; background: #EEF4FF; color: #2C3E80; }
.bf-bad { color: var(--st-sos); font-size: 12px; }

.bf-actions { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.bf-grp > span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.bf-grp > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bf-grp .btn, .bf-commit .btn { height: 42px; font-size: 12.5px; font-weight: 700; justify-content: center; text-align: center; padding: 0 8px; }
.bf-grp .btn svg, .bf-commit .btn svg { width: 16px; height: 16px; }
.bf-commit { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.bf-commit .btn:last-child { grid-column: 1 / -1; }
.bf-commit .btn { height: 48px; font-size: 14px; }

/* ===== Stage 4 · operator dispatch picker, delay alerts, favourites / blocked, reports, settlement ===== */
.dp-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 8px; }
.dp-h svg { width: 14px; height: 14px; color: #E0A400; fill: #E0A400; }
.dp-h span { background: var(--surface-3); border-radius: 10px; padding: 1px 8px; }
.dp-list { display: flex; flex-direction: column; gap: 8px; }
.dp-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); }
.dp-row.sel { border-color: #14A44D; box-shadow: 0 0 0 3px rgba(20, 164, 77, .16); background: #F3FBF6; }
.dp-row.best { border-color: var(--navy); }
.dp-row.off { background: var(--surface-2); opacity: .7; }
.dp-id { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.dp-star svg { width: 18px; height: 18px; color: #E0A400; fill: #E0A400; }
.dp-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--c); }
.dp-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.dp-cats { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 3px 0; }
.dp-cat { font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--c); border-radius: 6px; padding: 2px 6px; }
.dp-car { font-size: 12.5px; color: var(--ink-2); margin-left: 4px; }
.dp-car em { font-style: normal; font-size: 10px; font-weight: 800; color: #14A44D; margin-left: 4px; }
.dp-bad { color: var(--st-sos); font-size: 11.5px; }
.dp-unav { margin-top: 14px; border: 1px dashed var(--line-2); border-radius: 14px; padding: 8px 12px; }
.dp-unav summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.dp-unav[open] summary { margin-bottom: 8px; }
@media (max-width: 560px) { .dp-row { grid-template-columns: 48px minmax(0, 1fr); } .dp-row .btn { grid-column: 1 / -1; } }
.delay-bar { display: flex; flex-direction: column; gap: 8px; padding: 0 0 12px; }
.delay-alert { --c: var(--st-warn); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 1.5px solid var(--c); }
.delay-alert > svg { width: 22px; height: 22px; color: var(--c); flex: none; }
.delay-alert .da-btns { display: flex; gap: 8px; margin-left: auto; }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.settle { border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; background: var(--surface-2); }
.settle .s-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.settle .s-row:last-of-type { border-bottom: 0; }
.settle .s-row b { font-variant-numeric: tabular-nums; }
.legal-note { font-size: 12px; line-height: 1.45; color: var(--ink-2); background: #FFF8E6; border: 1px solid #F1D98A; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.masked-tag { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--surface-3); border-radius: 8px; padding: 2px 8px; font-weight: 700; }
.mbx-marker { position: relative; }

/* ---- Booking form: owner TBMS spec overrides (quick timing, ASAP, 4-colour price boxes, London bar, F8/F9) ---- */
.bf-asap { height: 54px; min-width: 150px; padding: 0 34px; border-radius: 14px; background: #FF7A00; color: #fff; font-size: 22px; font-weight: 900; letter-spacing: 1.5px; box-shadow: 0 3px 0 #C45A00; }
.bf-asap:hover { filter: brightness(1.07); }
.bf-asap:active { transform: translateY(2px); box-shadow: 0 1px 0 #C45A00; }
.bf-asap.on { background: #C2410C; box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px #C2410C; }
.bf-price.green { background: #2DB92D; } .bf-price.blue { background: #1E88E5; } .bf-price.orange { background: #FF8A00; }
.bf-prices { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.bf-sur { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-top: -4px; padding: 10px 14px 12px; border-radius: 0 0 14px 14px; background: #1B2230; color: #fff; }
.bf-sur-t { align-self: center; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; opacity: .75; }
.bf-sur-f { display: flex; flex-direction: column; gap: 3px; flex: 0 1 130px; min-width: 100px; margin: 0; }
.bf-sur-f > span { font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap; }
.bf-sur-f .input { height: 40px; background: #fff; color: var(--ink); font-weight: 800; }
.bf-sur-tot { margin-left: auto; text-align: right; }
.bf-sur-tot span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; opacity: .75; }
.bf-sur-tot b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bf-pos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.bf-pos .chip { cursor: pointer; font-weight: 700; }
.bf-commit .btn { letter-spacing: .3px; }
.bf-prices { border-radius: 14px 14px 0 0; } .bf-sur { margin-top: -12px; }
.bf-pay { overflow: visible; flex-wrap: wrap; } .bf-paytab { flex: 1 1 auto; text-align: center; padding: 13px 12px; }
