/* ==========================================================================
   cab2go — Advance IT Services
   ========================================================================== */

:root {
  --navy: #0B1220;
  --navy-2: #131C31;
  --navy-3: #1E293B;
  --yellow: #FFC107;
  --yellow-2: #FFD54F;
  --yellow-ink: #1A1400;
  --blue: #2563EB;
  --green: #16A34A;
  --green-soft: #DCFCE7;
  --red: #DC2626;
  --red-soft: #FEE2E2;
  --amber-soft: #FEF3C7;

  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --bg: #F1F5F9;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .06);
  --shadow-lg: 0 -8px 40px -12px rgba(15, 23, 42, .35);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--blue); }
[hidden] { display: none !important; }
svg { flex-shrink: 0; }
.muted { color: var(--muted); }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.03em;
}
.brand img { border-radius: 9px; display: block; }
.brand__name b { color: #E3A600; font-weight: 800; }
.brand--light .brand__name b { color: var(--yellow); }
.brand--light { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 12px;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease, opacity .15s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 6px 16px -6px rgba(255, 193, 7, .7); }
.btn--primary:hover:not(:disabled) { background: var(--yellow-2); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover:not(:disabled) { background: var(--navy-3); }
.btn--success { background: var(--green); color: #fff; box-shadow: 0 6px 16px -6px rgba(22, 163, 74, .6); }
.btn--ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn--danger-ghost { background: transparent; color: var(--red); border: 1px solid #FECACA; }
.btn--danger-ghost:hover:not(:disabled) { background: var(--red-soft); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 16px; border-radius: 14px; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }

.icon-btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  text-decoration: none; flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn--call { background: var(--green); border-color: var(--green); color: #fff; }
.icon-btn--call:hover { background: #15803D; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font: 500 15px/1.3 var(--font); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #94A3B8; font-weight: 400; }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 18, 32, .08); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--red); font-size: 14px; font-weight: 500; }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.alert--danger { background: var(--red-soft); color: #991B1B; }
.alert--warn { background: var(--amber-soft); color: #92400E; }
.alert a { color: inherit; font-weight: 700; }

/* ---------- Auth / landing ---------- */
.page-auth { background: var(--navy); }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.auth-hero {
  position: relative; overflow: hidden; color: #CBD5E1;
  padding: calc(28px + var(--safe-top)) 24px 28px;
  background:
    radial-gradient(900px 500px at 10% -20%, rgba(255, 193, 7, .14), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(37, 99, 235, .18), transparent 60%),
    var(--navy);
  display: flex; flex-direction: column; gap: 22px;
}
.auth-hero__copy h1 { color: #fff; font-size: clamp(30px, 6vw, 52px); font-weight: 800; letter-spacing: -.035em; }
.auth-hero__copy .hl { color: var(--yellow); }
.auth-hero__copy p { margin-top: 12px; max-width: 460px; font-size: 16px; color: #94A3B8; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: none; gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: #E2E8F0; font-weight: 500; }
.feature-icon { color: var(--yellow); font-size: 10px; }
.auth-hero__art { width: 100%; max-width: 460px; height: auto; display: none; }
.route-dash { animation: dash 1.6s linear infinite; }
.auth-hero__by { font-size: 13px; color: #64748B; display: none; }
.auth-hero__by strong { color: #CBD5E1; font-weight: 600; }

.auth-panel {
  background: var(--bg); border-radius: 26px 26px 0 0; margin-top: -8px;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 16px; }
.auth-card > h2 { font-size: 24px; font-weight: 800; }
.auth-card > .muted { margin-top: -10px; }
.lang-switch { justify-self: end; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #EEF2F7; margin-bottom: -4px; }
.lang-switch button { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #64748B; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: #0B1220; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-foot { font-size: 12.5px; color: var(--muted); margin-top: auto; }

.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px;
  background: #E2E8F0; border-radius: 14px;
}
.segmented button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: 10px; font: 600 15px var(--font); color: var(--ink-2);
  transition: background .15s, color .15s, box-shadow .15s;
}
.segmented svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth[data-role="passenger"] .driver-only { display: none; }

@media (min-width: 900px) {
  .auth { grid-template-columns: 1.1fr 1fr; }
  .auth-hero { padding: 48px 56px; justify-content: space-between; gap: 32px; }
  .feature-list { display: grid; }
  .auth-hero__art, .auth-hero__by { display: block; }
  .auth-panel { border-radius: 0; margin: 0; justify-content: center; padding: 48px; }
}

/* ---------- Simple pages (installer) ---------- */
.page-simple { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.simple-card { width: 100%; max-width: 460px; background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.simple-card h1 { font-size: 22px; }
.install-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.install-log li { padding: 10px 12px; border-radius: 10px; background: var(--green-soft); color: #166534; }
.install-log.is-error li { background: var(--red-soft); color: #991B1B; }

/* ==========================================================================
   Map app (passenger / driver)
   ========================================================================== */
.page-app { overflow: hidden; overscroll-behavior: none; }
.app { position: fixed; inset: 0; --sheet-h: 0px; }
.map { position: absolute; inset: 0; z-index: 0; background: #E5E7EB; }
.leaflet-container { font-family: var(--font); }
.leaflet-bottom { bottom: var(--sheet-h); transition: bottom .25s ease; }
.leaflet-control-zoom { display: none; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .75) !important; border-radius: 6px 0 0 0; }

/* Top bar */
.topbar {
  position: absolute; z-index: 20; left: 12px; right: 12px; top: calc(12px + var(--safe-top));
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 8px 0 14px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 18px; box-shadow: var(--shadow);
}
.topbar .brand { font-size: 19px; margin-right: auto; }
.topbar .brand img { width: 30px; height: 30px; }

.net-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.net-chip i { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.net-chip.is-live { color: #166534; background: var(--green-soft); border-color: #BBF7D0; }
.net-chip.is-live i { background: var(--green); box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: ping 2s infinite; }
.net-chip.is-down { color: #991B1B; background: var(--red-soft); border-color: #FECACA; }
.net-chip.is-down i { background: var(--red); }

/* Driver online switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { width: 46px; height: 28px; border-radius: 999px; background: #CBD5E1; position: relative; transition: background .2s; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid rgba(22, 163, 74, .35); outline-offset: 2px; }
.switch__label { font-size: 13px; font-weight: 700; color: var(--ink-2); min-width: 44px; }
.role-driver .net-chip span { display: none; }
.role-driver .net-chip { padding: 0; width: 30px; justify-content: center; }

/* User menu */
.user-menu { position: relative; }
.avatar-btn { appearance: none; border: 0; background: none; padding: 2px; cursor: pointer; border-radius: 50%; }
.avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-3), var(--navy)); color: #fff;
  font-weight: 700; font-size: 16px; letter-spacing: .02em;
}
.avatar--sm { width: 40px; height: 40px; font-size: 14px; }
.avatar--yellow { background: linear-gradient(135deg, var(--yellow-2), var(--yellow)); color: var(--yellow-ink); }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; z-index: 30;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; border: 1px solid var(--line);
}
.menu__head { display: grid; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu__head span { font-size: 13px; color: var(--muted); }
.menu__item {
  appearance: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; font: 500 14px var(--font); color: var(--ink);
}
.menu__item:hover { background: var(--surface-2); }
.menu__item--danger { color: var(--red); }

/* Floating buttons */
.fab-stack {
  position: absolute; z-index: 15; right: 14px; bottom: calc(var(--sheet-h) + 14px);
  display: grid; gap: 10px; transition: bottom .25s ease;
}
.fab {
  appearance: none; border: 0; cursor: pointer;
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fab.is-active { color: var(--blue); }

/* Centre pickup pin */
.center-pin {
  position: absolute; z-index: 12; pointer-events: none;
  left: var(--pin-x, 50%); top: var(--pin-y, 50%);
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
}
.center-pin__label {
  background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  padding: 6px 10px; border-radius: 999px; margin-bottom: 4px; box-shadow: var(--shadow);
  transition: transform .2s ease, opacity .2s;
}
.center-pin__icon { width: 46px; height: 46px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); transition: transform .2s ease; }
.center-pin__icon path { fill: var(--navy); }
.center-pin__icon circle { fill: var(--yellow); }
.center-pin__shadow {
  position: absolute; bottom: -3px; width: 12px; height: 5px; border-radius: 50%;
  background: rgba(0, 0, 0, .35); transition: transform .2s ease, opacity .2s;
}
.center-pin.is-lifting .center-pin__icon { transform: translateY(-14px); }
.center-pin.is-lifting .center-pin__label { transform: translateY(-14px); opacity: .6; }
.center-pin.is-lifting .center-pin__shadow { transform: scale(1.8); opacity: .5; }

/* Bottom sheet (sidebar on desktop) */
.sheet {
  position: absolute; z-index: 20; left: 0; right: 0; bottom: 0;
  max-height: min(64vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  padding: 8px 18px calc(18px + var(--safe-bottom));
}
.sheet__grip { width: 40px; height: 5px; border-radius: 999px; background: #CBD5E1; margin: 0 auto 12px; }
.sheet__body { display: grid; gap: 14px; animation: rise .25s ease; }

@media (min-width: 900px) {
  .topbar { left: 16px; right: 16px; top: 16px; }
  .sheet {
    left: 16px; top: 90px; bottom: 16px; right: auto; width: 400px; max-height: none;
    border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px;
  }
  .sheet__grip { display: none; }
  .leaflet-bottom { bottom: 0; }
  .leaflet-control-zoom { display: block; border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; margin: 0 16px 16px 0 !important; }
  .leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; }
  .fab-stack { right: 16px; bottom: 112px; }
}

/* ---------- Sheet content ---------- */
.sheet-title h2 { font-size: 20px; font-weight: 800; }
.sheet-title p { margin-top: 4px; font-size: 14px; }

.place {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
}
.place__dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; background: var(--navy); box-shadow: 0 0 0 4px rgba(11, 18, 32, .12); }
.place__dot--yellow { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 193, 7, .25); }
.place__text { min-width: 0; flex: 1; display: grid; }
.place__text small { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.place__text strong {
  font-size: 15px; font-weight: 600; min-height: 2.6em; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.place__text strong.is-loading { color: var(--muted); font-weight: 500; }
.place__note { font-size: 13px; color: var(--ink-2); margin-top: 4px; font-style: italic; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.chip--green { background: var(--green-soft); border-color: #BBF7D0; color: #166534; }
.chip--amber { background: var(--amber-soft); border-color: #FDE68A; color: #92400E; }

/* Status banner (ETA) */
.status {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--navy); color: #fff;
}
.status__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.status__text strong { font-size: 16px; font-weight: 700; }
.status__text span { font-size: 13px; color: #94A3B8; }
.status__eta { text-align: right; line-height: 1; }
.status__eta b { display: block; font-size: 28px; font-weight: 800; color: var(--yellow); letter-spacing: -.03em; }
.status__eta small { font-size: 12px; color: #94A3B8; font-weight: 600; }
.status--green { background: linear-gradient(135deg, #15803D, var(--green)); }
.status--green .status__text span, .status--green .status__eta small { color: #DCFCE7; }
.status--green .status__eta b { color: #fff; }

/* Person card */
.person { display: flex; align-items: center; gap: 12px; }
.person__info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.person__info strong { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person__info span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate {
  display: inline-block; margin-top: 2px; justify-self: start;
  font: 800 13px/1 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .08em;
  padding: 5px 8px; border-radius: 6px; background: var(--yellow); color: var(--yellow-ink); border: 1px solid #E0A800;
}

/* Searching animation */
.searching { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 6px 0 2px; }
.radar { position: relative; width: 84px; height: 84px; margin-bottom: 8px; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--yellow); opacity: 0; animation: radar 2.4s ease-out infinite; }
.radar span:nth-child(2) { animation-delay: .8s; }
.radar span:nth-child(3) { animation-delay: 1.6s; }
.radar::after {
  content: ""; position: absolute; inset: 26px; border-radius: 50%;
  background: var(--navy) url("../icons/icon.svg") center / 100% no-repeat;
}
.searching h2 { font-size: 19px; font-weight: 800; }
.searching p { font-size: 14px; color: var(--muted); max-width: 300px; }

/* Result (completed / cancelled) */
.result { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 8px 0; }
.result__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; }
.result__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.result__icon--ok { background: var(--green-soft); color: var(--green); }
.result__icon--warn { background: var(--red-soft); color: var(--red); }
.result h2 { font-size: 20px; font-weight: 800; }
.result p { color: var(--muted); font-size: 14px; max-width: 300px; }

/* Driver: offline / waiting */
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 6px 0; }
.empty__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); margin-bottom: 4px; }
.empty__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty h2 { font-size: 19px; font-weight: 800; }
.empty p { font-size: 14px; color: var(--muted); max-width: 300px; }

.online-head { display: flex; align-items: center; gap: 12px; }
.online-head .pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; flex-shrink: 0; }
.online-head h2 { font-size: 18px; font-weight: 800; }
.online-head p { font-size: 13px; color: var(--muted); }

.request-list { display: grid; gap: 10px; }
.request {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px;
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
  animation: rise .25s ease;
}
.request.is-highlight { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 193, 7, .25); }
.request__top { display: flex; align-items: center; gap: 12px; }
.request__top .person__info strong { font-size: 15px; }
.request__dist { text-align: right; }
.request__dist b { display: block; font-size: 17px; font-weight: 800; }
.request__dist small { font-size: 12px; color: var(--muted); }
.request__addr { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; }
.request__addr .place__dot { margin-top: 5px; width: 10px; height: 10px; }

.sim-badge {
  position: absolute; z-index: 16; left: 50%; transform: translateX(-50%); top: calc(82px + var(--safe-top));
  background: #7C3AED; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow);
}
@media (min-width: 900px) { .sim-badge { left: calc(50% + 208px); top: 90px; } }

/* Skeleton */
.skeleton { display: grid; gap: 10px; }
.skeleton span { height: 16px; border-radius: 8px; background: linear-gradient(90deg, #EEF2F7, #F8FAFC, #EEF2F7); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton span:first-child { width: 60%; height: 22px; }
.skeleton span:last-child { height: 48px; }

/* Toasts */
.toast-host {
  position: fixed; z-index: 100; left: 50%; transform: translateX(-50%);
  top: calc(84px + var(--safe-top)); width: min(420px, calc(100% - 24px)); display: grid; gap: 8px; pointer-events: none;
}
.page-auth .toast-host { top: calc(16px + var(--safe-top)); }
.toast {
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 500; animation: drop .25s ease; pointer-events: auto;
}
.toast--success { background: var(--green); }
.toast--error { background: var(--red); }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: all .25s ease; }

/* ==========================================================================
   Map markers
   ========================================================================== */
.mk { background: none; border: 0; }

.mk-self { position: relative; width: 22px; height: 22px; }
.mk-self__dot { position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.mk-self__pulse { position: absolute; inset: -10px; border-radius: 50%; background: rgba(37, 99, 235, .25); animation: halo 2s ease-out infinite; }

.mk-car { width: 44px; height: 44px; display: grid; place-items: center; }
.mk-car [data-rotate] { transition: transform .6s ease; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); display: block; }
.mk-car--dim [data-rotate] { opacity: .85; }

.mk-person { width: 40px; height: 40px; display: grid; place-items: center; }
.mk-person__inner {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.mk-person__inner svg { width: 16px; height: 16px; fill: currentColor; }

.mk-pin { width: 40px; height: 52px; position: relative; }
.mk-pin svg { width: 40px; height: 40px; position: absolute; left: 0; bottom: 6px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.mk-pin svg path { fill: var(--navy); }
.mk-pin svg circle { fill: var(--yellow); }
.mk-pin::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 10px; height: 4px; margin-left: -5px; border-radius: 50%; background: rgba(0, 0, 0, .3); }
.mk-pin.is-waiting::before {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 16px; height: 16px; margin: 0 0 -8px -8px;
  border-radius: 50%; background: rgba(255, 193, 7, .5); animation: halo 1.8s ease-out infinite;
}
.mk-pin--request svg path { fill: var(--yellow); stroke: var(--navy); stroke-width: 1; }
.mk-pin--request svg circle { fill: var(--navy); }
.mk-pin--request.is-highlight svg { transform: scale(1.2); transform-origin: bottom center; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } }
@keyframes halo { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes radar { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }

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

/* ==========================================================================
   v0.2 — accounts, destination & fares, ratings, history, admin
   ========================================================================== */

/* ---------- Auth ---------- */
.auth[data-mode="login"] .register-only,
.auth[data-mode="register"] .login-only { display: none !important; }
.field__hint { font-size: 12.5px; color: var(--muted); }
.password { position: relative; display: block; }
.password input { padding-right: 68px; }
.password__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  appearance: none; border: 0; background: var(--surface-2); color: var(--ink-2); cursor: pointer;
  font: 600 12.5px var(--font); padding: 8px 10px; border-radius: 8px;
}
.link-btn {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--blue);
  font-family: var(--font); font-weight: 600; font-size: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.auth-switch { text-align: center; font-size: 14px; color: var(--muted); }
.alert--info { background: #EFF6FF; color: #1E40AF; margin: 0; }
.alert--success { background: var(--green-soft); color: #166534; }
.small-link { font-size: 14px; text-decoration: none; }

/* ---------- Booking steps ---------- */
.stepper { list-style: none; margin: 0 0 -4px; padding: 0; display: flex; gap: 6px; }
.stepper li {
  flex: 1; font-size: 11.5px; font-weight: 700; color: #94A3B8; text-transform: uppercase; letter-spacing: .05em;
  padding-top: 8px; border-top: 3px solid var(--line);
}
.stepper li.is-done { color: var(--muted); border-color: var(--navy); }
.stepper li.is-active { color: var(--ink); border-color: var(--yellow); }

.sheet-head { display: flex; align-items: flex-start; gap: 12px; }
.sheet-head .icon-btn { width: 40px; height: 40px; }
.icon-btn svg path[d^="M15 5"] { stroke-width: 2.4; }

/* Destination search */
.search { position: relative; }
.search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round;
}
.search input {
  width: 100%; min-height: 50px; padding: 12px 14px 12px 44px; border: 1px solid var(--line); border-radius: 12px;
  font: 500 15px var(--font); color: var(--ink); background: var(--surface-2);
}
.search input:focus { outline: none; border-color: var(--navy); background: var(--surface); box-shadow: 0 0 0 4px rgba(11, 18, 32, .08); }
.search-results { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -6px; }
.search-result {
  appearance: none; border: 0; background: var(--surface); text-align: left; cursor: pointer;
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--font);
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus-visible { background: var(--surface-2); outline: none; }
.search-result .place__dot { margin-top: 5px; width: 10px; height: 10px; }
.search-result strong { display: block; font-size: 14.5px; color: var(--ink); }
.search-result small { display: block; font-size: 12.5px; color: var(--muted); }
.search-results__empty { padding: 14px; font-size: 14px; color: var(--muted); }

/* Drop-off colour (green) */
.place__dot--green { background: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.center-pin--dropoff .center-pin__icon path { fill: var(--green); }
.center-pin--dropoff .center-pin__icon circle { fill: #fff; }
.center-pin--dropoff .center-pin__label { background: var(--green); }
.mk-pin--dropoff svg path { fill: var(--green); }
.mk-pin--dropoff svg circle { fill: #fff; }

/* Trip (pickup → drop-off) */
.trip {
  position: relative; display: grid; gap: 14px; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface-2);
}
.trip__row { display: flex; gap: 12px; align-items: flex-start; position: relative; }
.trip__row .place__dot { margin-top: 6px; }
.trip__row + .trip__row::before {
  content: ""; position: absolute; left: 5px; top: -22px; height: 22px; border-left: 2px dotted #94A3B8;
}
.trip__text { min-width: 0; display: grid; }
.trip__text small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.trip__text strong {
  font-size: 14.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trip .place__note { margin: 0; }
.trip--compact { background: transparent; border: 0; padding: 0; gap: 12px; }

/* Fare */
.fare { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.fare__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fare__main small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fare__main b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.fare__stats { display: flex; gap: 16px; text-align: right; }
.fare__stats b { display: block; font-size: 15px; font-weight: 700; }
.fare__stats small { font-size: 12px; color: var(--muted); }
.fare__details summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.fare__details dl { margin: 10px 0 0; display: grid; gap: 6px; }
.fare__details dl > div, .fare-preview dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.fare__details dt { color: var(--ink-2); }
.fare__details dd, .fare-preview dd { margin: 0; font-weight: 600; }
.fare__details .is-total { border-top: 1px dashed var(--line); padding-top: 8px; font-weight: 800; }
.fare__details .is-total dd { font-weight: 800; }
.fare__details p { font-size: 13px; margin-top: 8px; }
.fare-line {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius); background: #FFF8E1; border: 1px solid #FDE68A;
}
.fare-line span { font-size: 13.5px; font-weight: 600; color: #92400E; }
.fare-line b { font-size: 18px; font-weight: 800; }
.fare-line--big { padding: 16px 18px; }
.fare-line--big b { font-size: 26px; letter-spacing: -.02em; }

/* Rating badge + rating form */
.rating {
  display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: #92400E;
  background: var(--amber-soft); padding: 2px 7px; border-radius: 999px; vertical-align: 2px; margin-left: 4px;
}
.rating--new { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.rate { display: grid; justify-items: center; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.rate__q { font-weight: 700; font-size: 15px; }
.stars { display: flex; gap: 6px; }
.star { appearance: none; border: 0; background: none; padding: 2px; cursor: pointer; transition: transform .12s ease; }
.star svg { width: 38px; height: 38px; fill: #E2E8F0; stroke: none; transition: fill .15s; }
.star:hover { transform: scale(1.1); }
.star.is-on svg { fill: var(--yellow); }
.star:focus-visible { outline: 2px solid var(--navy); border-radius: 8px; }
.rate__label { font-size: 13px; color: var(--muted); font-weight: 600; min-height: 1.4em; }
.rate__comment { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 500 14px var(--font); }
.rate__comment:focus { outline: none; border-color: var(--navy); }
.rate__thanks { font-weight: 600; color: var(--green); }

/* Driver request cards */
.request__fare { text-align: right; }
.request__fare b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.request__fare small { font-size: 12px; color: var(--muted); font-weight: 600; }
.request .trip { padding: 12px; }
.request__meta { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: -4px; }
.empty__icon--amber { background: var(--amber-soft); border-color: #FDE68A; color: #B45309; }
.empty__icon--red { background: var(--red-soft); border-color: #FECACA; color: var(--red); }
.empty--page { padding: 48px 16px; }

/* ---------- Standalone pages (history / admin) ---------- */
.page-history, .page-admin { min-height: 100vh; background: var(--bg); }
.page-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(12px + var(--safe-top)) 16px 12px; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.page-bar h1 { font-size: 19px; font-weight: 800; flex: 1; }
.page-bar .icon-btn { width: 40px; height: 40px; }
.page-body { max-width: 760px; margin: 0 auto; padding: 20px 16px calc(40px + var(--safe-bottom)); display: grid; gap: 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat {
  display: grid; gap: 2px; align-content: start; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.stat small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stat b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.stat--dark small, .stat--dark span { color: #94A3B8; }
.stat--dark b { color: var(--yellow); }
.stat--link:hover { border-color: #CBD5E1; box-shadow: var(--shadow-sm); }
.stat--attention { background: var(--amber-soft); border-color: #FDE68A; }
.stat--attention span { color: #92400E; font-weight: 600; }
@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .stat-grid--wide { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.history-list { display: grid; gap: 12px; }
.history-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; }
.history-card__head { display: flex; justify-content: space-between; gap: 12px; }
.history-card__head > div:first-child { display: grid; }
.history-card__head strong { font-size: 15px; }
.history-card__head .muted { font-size: 12.5px; }
.history-card__fare { display: grid; justify-items: end; gap: 4px; }
.history-card__fare b { font-size: 18px; font-weight: 800; }
.is-struck { text-decoration: line-through; color: var(--muted); }
.history-card__foot {
  display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2);
  border-top: 1px solid var(--line); padding-top: 12px;
}
.stars-static { color: var(--yellow); letter-spacing: 1px; }
.stars-static__off { color: #E2E8F0; }
.pager { display: flex; justify-content: center; gap: 10px; }

.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.badge--green { background: var(--green-soft); color: #166534; }
.badge--red { background: var(--red-soft); color: #991B1B; }
.badge--amber { background: var(--amber-soft); color: #92400E; }
.badge--blue { background: #DBEAFE; color: #1E40AF; }
.badge--gray { background: var(--surface-2); color: var(--muted); }

/* ---------- Admin ---------- */
.admin-bar { background: var(--navy); padding-top: var(--safe-top); position: sticky; top: 0; z-index: 20; }
.admin-bar__inner { max-width: 1280px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.admin-tag {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--yellow-ink); background: var(--yellow); padding: 3px 8px; border-radius: 6px;
}
.admin-nav { display: flex; gap: 4px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.admin-nav a {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  color: #CBD5E1; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 10px;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav a.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-nav .count {
  background: var(--yellow); color: var(--yellow-ink); font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px;
}
.btn--ghost-light { margin-left: auto; background: transparent; color: #E2E8F0; border: 1px solid rgba(255, 255, 255, .2); min-height: 38px; font-size: 14px; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .08); }
@media (min-width: 860px) { .admin-nav { order: 0; width: auto; margin-left: 20px; } }
.admin-main { max-width: 1280px; margin: 0 auto; padding: 24px 20px 48px; display: grid; gap: 18px; }
.admin-main > .alert { margin: 0; }
.admin-head h1 { font-size: 26px; font-weight: 800; }
.admin-head p { margin-top: 2px; }
.admin-head--sub { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.admin-head--sub h2 { font-size: 18px; font-weight: 800; }
.admin-head--sub a { font-size: 14px; font-weight: 600; text-decoration: none; }

.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tabs a {
  text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.filter-tabs a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
  padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cell-route { max-width: 320px; }
.cell-route span { display: flex; gap: 8px; align-items: baseline; line-height: 1.35; }
.cell-route span + span { margin-top: 6px; }
.cell-route .place__dot { width: 8px; height: 8px; box-shadow: none; display: inline-block; flex-shrink: 0; }
.cell-actions { text-align: right; }
.action-row { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.action-row form { margin: 0; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.plate--sm { font-size: 11px; padding: 3px 6px; }
.online-dot { color: var(--green) !important; font-weight: 700; }
.online-dot::before { content: "● "; }

@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: 4px 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  .table td::before {
    content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .04em; text-align: left; flex-shrink: 0;
  }
  .table td small { display: inline; margin-left: 6px; }
  .cell-route { max-width: none; flex-direction: column; }
  .cell-route span { justify-content: flex-end; }
  .cell-actions { padding-top: 10px !important; }
  .cell-actions::before { content: none !important; }
  .action-row { width: 100%; }
}

.fare-admin { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .fare-admin { grid-template-columns: 1.4fr 1fr; } }
.fare-admin .field-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fare-preview h2 { font-size: 17px; font-weight: 800; }
.fare-preview dl { margin: 14px 0 0; display: grid; gap: 10px; }
.fare-preview dl > div { padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.fare-preview dd { font-size: 16px; font-weight: 800; }

.simple-card .brand { justify-self: start; }

/* ==========================================================================
   v0.3 — verification, payments, push, scheduled rides, promos
   ========================================================================== */

.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); font: 500 15px var(--font); color: var(--ink);
}
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 18, 32, .08); }
select.input { appearance: auto; }
.field select, .field input[type="date"] { min-height: 48px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field__row .link-btn { font-size: 13px; }
.field__optional { font-weight: 500; color: var(--muted); font-size: 12px; }
.field__hint.is-error { color: var(--red); font-weight: 600; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.link-btn--danger { color: var(--red); }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .04em; }
.text-danger { color: var(--red); }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 6px; }
code.copyable { display: inline-block; margin-top: 4px; word-break: break-all; user-select: all; }

/* ---------- Verify ---------- */
.verify { text-align: left; }
.verify__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--amber-soft); color: #B45309;
}
.verify__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.otp-input {
  text-align: center; font-size: 28px !important; font-weight: 800 !important; letter-spacing: .5em;
  padding-left: .5em !important; min-height: 60px !important;
}
.dev-code { font-family: ui-monospace, Consolas, monospace; font-size: 17px; letter-spacing: .15em; background: #fff; padding: 1px 8px; border-radius: 6px; }
.verify__links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.verify__links .link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.verify__signout { justify-self: center; font-size: 13px; color: var(--muted); }

/* ---------- Push prompt ---------- */
.push-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius);
  background: #EFF6FF; border: 1px solid #BFDBFE; position: relative;
}
.push-card__icon { width: 36px; height: 36px; border-radius: 10px; background: #DBEAFE; color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.push-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.push-card p { flex: 1; font-size: 13.5px; font-weight: 500; color: #1E3A8A; }
.push-card__close { appearance: none; border: 0; background: none; color: #64748B; font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px; }

/* ---------- Review options ---------- */
.option-group { display: grid; gap: 8px; }
.option-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.segmented--sm { padding: 4px; border-radius: 12px; }
.segmented--sm button { height: 38px; font-size: 14px; border-radius: 9px; }
.schedule { display: grid; gap: 6px; }

.pay-methods { display: grid; gap: 8px; }
.pay-method {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method.is-selected { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 18, 32, .08); }
.pay-method:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.pay-method__text { flex: 1; display: grid; }
.pay-method__text strong { font-size: 14.5px; }
.pay-method__text small { font-size: 12.5px; color: var(--muted); }
.pay-method::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #CBD5E1; flex-shrink: 0;
}
.pay-method.is-selected::after { border: 6px solid var(--navy); }

.pay-logo {
  display: inline-grid; place-items: center; min-width: 58px; height: 30px; padding: 0 8px; border-radius: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .01em; color: #fff; flex-shrink: 0;
}
.pay-logo--cash { background: #DCFCE7; color: #166534; }
.pay-logo--gcash { background: #0B5FFF; }
.pay-logo--maya { background: #0F172A; color: #3DDC84; }
.pay-logo--gotyme { background: #00A7B5; }
.pay-logo--card { background: linear-gradient(135deg, #334155, #0F172A); }

.promo-input { display: flex; gap: 8px; }
.promo-input input {
  flex: 1; min-height: 44px; padding: 10px 12px; border: 1px dashed #94A3B8; border-radius: 12px;
  font: 700 14px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--surface-2);
}
.promo-input input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
.promo-input input:focus { outline: none; border-color: var(--navy); border-style: solid; background: var(--surface); }
.promo-input .btn { min-height: 44px; }
.promo-applied {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px;
  background: var(--green-soft); border: 1px solid #BBF7D0; font-size: 13.5px; color: #166534;
}
.promo-applied__code { font: 800 13px ui-monospace, Consolas, monospace; background: #fff; border: 1px dashed #16A34A; padding: 3px 8px; border-radius: 6px; }
.promo-applied__text { flex: 1; font-weight: 600; }
.promo-input + .form-error { margin-top: 6px; font-size: 13px; }

.fare__main s, .fare-line s { color: var(--muted); font-weight: 600; font-size: .6em; }
.fare__details .is-discount { color: var(--green); font-weight: 600; }
.fare__details .is-discount dt { color: var(--green); }
.fare-line--paid { background: var(--green-soft); border-color: #BBF7D0; }
.fare-line--paid span { color: #166534; }

.result__icon--pay { background: #EFF6FF; color: var(--blue); }

/* Upcoming scheduled rides */
.upcoming { display: grid; gap: 8px; }
.upcoming__item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.upcoming__icon { width: 36px; height: 36px; border-radius: 10px; background: #DBEAFE; color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.upcoming__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.upcoming__text { flex: 1; min-width: 0; display: grid; }
.upcoming__text strong { font-size: 14.5px; }
.upcoming__text small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcoming .link-btn { font-size: 13px; }

.chip--blue { background: #DBEAFE; border-color: #BFDBFE; color: #1E40AF; justify-self: start; }
.request__fare small.is-paid { color: var(--green); }

/* ---------- Test checkout ---------- */
.checkout__test { justify-self: stretch; text-align: center; font-size: 12px; font-weight: 700; color: #92400E; background: var(--amber-soft); padding: 6px; border-radius: 8px; }
.checkout__head { display: flex; align-items: center; gap: 14px; }
.checkout__head .pay-logo { height: 44px; min-width: 76px; font-size: 14px; }
.checkout__head small { display: block; }
.checkout__amount { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.checkout__lines { margin: 0; display: grid; gap: 8px; padding: 14px; background: var(--surface-2); border-radius: 12px; }
.checkout__lines div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.checkout__lines dt { color: var(--muted); }
.checkout__lines dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Admin: promos & integrations ---------- */
.card__title { font-size: 17px; font-weight: 800; }
.promo-admin { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1100px) { .promo-admin { grid-template-columns: 420px 1fr; } }
.promo-admin .field-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.integrations { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.integration { display: grid; gap: 12px; align-content: start; }
.integration header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.integration h2 { font-size: 16px; font-weight: 800; }
.integration p { font-size: 14px; line-height: 1.55; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; min-height: 38px; }

/* ==========================================================================
   v0.4 — stops, chat, safety, earnings & payouts
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon-btn--plain { border-color: transparent; background: transparent; }
.icon-btn--sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn--sm svg { width: 16px; height: 16px; }
.input--sm { min-height: 36px; padding: 6px 10px; font-size: 13.5px; width: auto; }
.amount-pos { color: var(--green); }
.amount-neg { color: var(--red); }
.status--muted { background: var(--navy-3); }

/* ---------- Stops ---------- */
.stop-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
  background: #6366F1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .2);
}
.stop-dot.is-done { background: #A5B4FC; }
.trip__row .stop-dot { margin-top: 3px; margin-left: -4px; margin-right: -4px; }
.trip__row .icon-btn { margin-left: auto; }
.trip__add {
  appearance: none; border: 1px dashed #A5B4FC; background: #EEF2FF; color: #4338CA; border-radius: 10px;
  padding: 9px 12px; font: 600 13.5px var(--font); cursor: pointer; text-align: left;
}
.trip__add:hover { background: #E0E7FF; }
.place .stop-dot { margin: 0; width: 22px; height: 22px; }
.mk-stop {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #6366F1; color: #fff; font: 800 13px var(--font); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.mk-stop.is-done { background: #A5B4FC; }
.center-pin--stop .center-pin__icon path { fill: #6366F1; }
.center-pin--stop .center-pin__icon circle { fill: #fff; }
.center-pin--stop .center-pin__label { background: #6366F1; }

/* ---------- Chat button & badge ---------- */
.icon-btn--chat { position: relative; }
.count-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font: 800 11px/20px var(--font); text-align: center; border: 2px solid #fff;
}

/* ---------- Overlays (chat, safety) ---------- */
.has-overlay { overflow: hidden; }
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(11, 18, 32, .45);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease;
}
.overlay[hidden] { display: none !important; }
.overlay__panel {
  width: 100%; max-width: 520px; max-height: calc(100dvh - 40px - var(--safe-top)); background: var(--surface);
  border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  padding-bottom: var(--safe-bottom); animation: rise .25s ease;
}
@media (min-width: 700px) {
  .overlay { align-items: center; padding: 24px; }
  .overlay__panel { border-radius: 22px; max-height: min(720px, calc(100vh - 48px)); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.chat { display: flex; flex-direction: column; height: min(640px, calc(100dvh - 60px)); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.chat__title { flex: 1; display: grid; min-width: 0; }
.chat__title strong { font-size: 16px; }
.chat__title small { color: var(--muted); font-size: 12.5px; }
.chat__list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.chat__empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; max-width: 240px; }
.chat__msg { max-width: 78%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; }
.chat__msg p { font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; }
.chat__msg small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; text-align: right; }
.chat__msg.is-mine { align-self: flex-end; background: var(--navy); border-color: var(--navy); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat__msg.is-mine small { color: #94A3B8; }
.chat__quick { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px 0; scrollbar-width: none; }
.chat__quick .chip { cursor: pointer; white-space: nowrap; flex-shrink: 0; font-family: var(--font); }
.chat__quick .chip:hover { background: #E2E8F0; }
.chat__form { display: flex; gap: 8px; padding: 10px 14px 14px; }
.chat__form input {
  flex: 1; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 15px var(--font); background: var(--surface-2);
}
.chat__form input:focus { outline: none; border-color: var(--navy); background: var(--surface); }
.chat__form .btn { width: 46px; min-height: 46px; padding: 0; border-radius: 50%; }
.chat__form .btn svg { width: 20px; height: 20px; }

.fab--safety { color: var(--red); }
.fab--safety svg { stroke-width: 2.2; }

.safety { padding: 18px; display: grid; gap: 10px; overflow-y: auto; }
.safety__head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.safety__head > div { flex: 1; }
.safety__head h2 { font-size: 20px; font-weight: 800; }
.safety__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.safety__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.safety-action {
  appearance: none; display: grid; gap: 2px; text-align: left; text-decoration: none; cursor: pointer;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font);
}
.safety-action strong { font-size: 16px; }
.safety-action span { font-size: 13px; color: var(--muted); }
.safety-action:hover { background: var(--surface-2); }
.safety-action--red { background: var(--red); border-color: var(--red); color: #fff; }
.safety-action--red span { color: #FECACA; }
.safety-action--red:hover { background: #B91C1C; }
.safety-action--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.safety-action--dark span { color: #94A3B8; }
.safety-action--dark:hover { background: var(--navy-3); }
.safety-action.is-loading { opacity: .7; }
.safety__result { padding: 12px 14px; border-radius: 12px; background: #EFF6FF; color: #1E3A8A; font-size: 14px; display: grid; gap: 8px; }
.safety__result.is-alert { background: var(--red-soft); color: #991B1B; }
.safety__result .input { font-size: 13px; }
.safety__contact { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Earnings ---------- */
.earning-line {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
}
.earning-line span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.earning-line b { font-size: 18px; font-weight: 800; color: var(--green); }
.earning-line small { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }

.balance-card {
  display: grid; gap: 8px; padding: 22px; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(135deg, #15803D, var(--green));
}
.balance-card small { font-size: 13px; font-weight: 600; opacity: .85; }
.balance-card > b { font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.balance-card p { font-size: 14px; opacity: .9; max-width: 520px; }
.balance-card--owe { background: linear-gradient(135deg, #B45309, #D97706); }
.balance-card .btn--primary { justify-self: start; }
.balance-card__pending { background: rgba(255, 255, 255, .16); padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.balance-card__pending .link-btn { color: #fff; margin-left: 6px; }
.balance-card__to { font-size: 13px !important; }
.balance-card__to a { color: #fff; }
.payout-form { display: flex; gap: 8px; max-width: 360px; }
.payout-form .input { flex: 1; background: #fff; }

.ledger { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.ledger li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ledger li:first-child { border-top: 0; }
.ledger li > div { display: grid; min-width: 0; }
.ledger strong { font-size: 14.5px; }
.ledger small { font-size: 12.5px; color: var(--muted); }
.ledger b { font-size: 15px; white-space: nowrap; }

/* ---------- Account ---------- */
.account .card { display: grid; gap: 14px; }
.account-card__head { display: flex; align-items: center; gap: 14px; }
.account-card__head h2 { font-size: 20px; font-weight: 800; }
.avatar--lg { width: 60px; height: 60px; font-size: 20px; }
.account-facts { margin: 0; display: grid; gap: 8px; }
.account-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.account-facts dt { color: var(--muted); }
.account-facts dd { margin: 0; font-weight: 600; text-align: right; }
.section-head { display: flex; gap: 12px; align-items: flex-start; }
.section-head h2 { font-size: 17px; font-weight: 800; }
.section-head p { font-size: 14px; margin-top: 2px; }
.section-head__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); flex-shrink: 0; }
.section-head__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-head__icon--red { background: var(--red-soft); border-color: #FECACA; color: var(--red); }
.account .btn { justify-self: start; }

/* ---------- Admin: safety & payouts ---------- */
.count--red { background: var(--red) !important; color: #fff !important; }
.sos-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none;
  padding: 14px 18px; border-radius: var(--radius); background: var(--red); color: #fff; animation: pulse-red 2s infinite;
}
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); } }
.sos-list { display: grid; gap: 12px; }
.sos-card { display: grid; gap: 12px; }
.sos-card.is-open { border-color: #FCA5A5; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.sos-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sos-card header small { display: block; color: var(--muted); font-size: 12.5px; }
.sos-facts { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.sos-facts div { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.sos-facts dt { color: var(--muted); }
.sos-facts dd { margin: 0; }
.action-row--start { justify-content: flex-start; }
.admin-subtitle { font-size: 18px; font-weight: 800; margin-top: 8px; }
.cell-actions .inline-form { justify-content: flex-end; flex-wrap: wrap; }
.cell-actions form + form { margin-top: 6px; }
.fare-preview dt small { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .sos-facts div { grid-template-columns: 1fr; gap: 0; } }

/* ==========================================================================
   v0.5 — ride types & surge, documents, help & support, reports
   ========================================================================== */
.text-amber { color: #B45309 !important; }
.back-link { font-size: 14px; font-weight: 600; text-decoration: none; justify-self: start; }
.btn-row--start { justify-content: flex-start; }
.btn-row--start > .btn { flex: 0 0 auto; }
textarea.input { min-height: 96px; resize: vertical; font-family: var(--font); line-height: 1.5; }
.avatar--photo { object-fit: cover; background: var(--surface-2); padding: 0; }

/* ---------- Ride types ---------- */
.ride-types { display: grid; gap: 8px; }
.ride-type {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.ride-type input { position: absolute; opacity: 0; pointer-events: none; }
.ride-type.is-selected { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 18, 32, .08); }
.ride-type:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.ride-type__icon { width: 56px; height: 34px; display: grid; place-items: center; flex-shrink: 0; }
.ride-type__icon svg { width: 52px; height: 30px; fill: var(--yellow); stroke: var(--navy); stroke-width: 1.4; stroke-linejoin: round; }
.ride-type__icon svg .win { fill: var(--navy); opacity: .85; stroke: none; }
.ride-type__icon--moto svg { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.ride-type__icon--moto svg .ring { stroke: var(--navy); }
.ride-type__icon--moto svg path { stroke: #E3A600; }
.ride-type__text { flex: 1; min-width: 0; display: grid; }
.ride-type__text strong { font-size: 15px; }
.ride-type__text strong small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.ride-type__text > small { font-size: 12.5px; color: var(--muted); }
.ride-type__price { text-align: right; display: grid; }
.ride-type__price b { font-size: 16px; font-weight: 800; }
.ride-type__price s { font-size: 12px; color: var(--muted); }
.surge-tag { color: #B45309; font-weight: 700; }
.fare__details .is-surge { color: #B45309; font-weight: 600; }
.fare__details .is-surge dt { color: #B45309; }
.chip--amber { justify-self: start; }

/* ---------- Driver documents ---------- */
.doc-list { display: grid; gap: 8px; text-align: left; }
.doc-progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.doc-progress span { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .3s; }
.doc-progress__label { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.doc-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.doc-item__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
.doc-item__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.doc-item__text { flex: 1; min-width: 0; display: grid; }
.doc-item__text strong { font-size: 14px; }
.doc-item__text small { font-size: 12.5px; color: var(--muted); }
.doc-item__text a { font-size: 12.5px; }
.doc-item.is-approved .doc-item__icon { background: var(--green-soft); color: var(--green); }
.doc-item.is-pending .doc-item__icon { background: var(--amber-soft); color: #B45309; }
.doc-item.is-rejected { border-color: #FECACA; }
.doc-item.is-rejected .doc-item__icon { background: var(--red-soft); color: var(--red); }
.doc-item.is-rejected .doc-item__text small { color: #991B1B; }
.doc-item label.btn { flex-shrink: 0; }

.doc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.doc-card { display: grid; gap: 10px; align-content: start; padding: 16px; }
.doc-card header { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.doc-card__preview { display: grid; place-items: center; height: 160px; border-radius: 10px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.doc-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.doc-card__pdf { font-weight: 800; color: var(--red); }
.doc-card__empty { padding: 30px 0; text-align: center; }
.doc-card.is-missing { border-style: dashed; }
.driver-detail { display: grid; gap: 16px; }
.driver-detail__head { display: flex; align-items: center; gap: 16px; }
.driver-detail__head h1 { font-size: 24px; font-weight: 800; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.driver-actions { display: grid; gap: 12px; }

/* ---------- Help & support ---------- */
.help-hero { display: grid; gap: 12px; }
.help-hero h2 { font-size: 22px; font-weight: 800; }
.faq { display: grid; gap: 18px; }
.faq__group { display: grid; gap: 8px; }
.faq__group h3 { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq__item summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 14px 0; list-style-position: outside; }
.faq__item[open] summary { color: var(--ink); }
.faq__item p { padding: 0 0 14px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.ticket { display: grid; gap: 16px; }
.ticket__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ticket__head h1, .ticket__head h2 { font-size: 20px; font-weight: 800; }
.thread { display: grid; gap: 10px; }
.thread__msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.thread__msg small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.thread__msg p { font-size: 14.5px; line-height: 1.55; }
.thread__msg.is-mine { justify-self: end; background: #EFF6FF; border-color: #BFDBFE; }
.thread__msg.is-staff { justify-self: start; }
.history-card__help { font-size: 13px; font-weight: 600; margin-left: auto; }

/* ---------- Admin: fares table ---------- */
.table-wrap--flat { border: 0; border-radius: 0; }
.table--inputs td { vertical-align: middle; }
.table--inputs .input--sm { width: 92px; }
.switch--sm .switch__track { width: 40px; height: 24px; }
.switch--sm .switch__thumb { width: 18px; height: 18px; }
.switch--sm input:checked + .switch__track .switch__thumb { transform: translateX(16px); }
.fare-examples th, .fare-examples td { padding: 8px 10px; font-size: 13.5px; }
.fare-examples td small { display: block; color: var(--muted); font-size: 11.5px; }
.fare-admin > .form { align-content: start; }

/* ---------- Admin: reports ---------- */
.admin-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.report-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stat .delta { font-size: 12.5px; font-weight: 700; }
.delta--up { color: var(--green); }
.delta--down { color: var(--red); }
.delta--flat { color: var(--muted); }
.delta .muted { font-weight: 500; }
.report-grid { display: grid; gap: 18px; }
@media (min-width: 1000px) { .report-grid { grid-template-columns: 1fr 1fr; } .report-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.chart-card { display: grid; gap: 10px; align-content: start; min-width: 0; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: #E2E8F0; stroke-width: 1; }
.chart .axis { fill: #64748B; font: 500 11px var(--font); }
.chart .bar { fill: #2a78d6; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit.is-hover { fill: rgba(42, 120, 214, .08); }
.chart-tip {
  position: absolute; left: 0; top: 0; z-index: 200; pointer-events: none; display: grid; gap: 2px;
  background: var(--navy); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; box-shadow: var(--shadow);
}
.chart-tip span { color: #CBD5E1; }
.chart-table summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--blue); }
.chart-table table { margin-top: 8px; }
.chart-table td, .chart-table th { padding: 6px 10px; font-size: 13px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.hbars__label { color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars__track { height: 12px; }
.hbars__bar { display: block; height: 100%; background: #2a78d6; border-radius: 0 4px 4px 0; }
.hbars__value { font-weight: 700; text-align: right; }
.hbars__value small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.heat { display: grid; grid-template-columns: 36px repeat(24, minmax(10px, 1fr)); gap: 2px; align-items: center; overflow-x: auto; }
.heat__hour { font-size: 10.5px; color: var(--muted); text-align: left; white-space: nowrap; }
.heat__day { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.heat__cell { height: 22px; border-radius: 3px; background: #F1F5F9; }
.heat__cell.is-zero { background: #F1F5F9; }
.heat__cell:hover { outline: 2px solid var(--navy); outline-offset: 1px; }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.heat-legend i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.heat-legend span:first-child { margin-right: 4px; }
.heat-legend span:last-child { margin-left: 4px; }
.table--inputs td:first-child { min-width: 160px; }
.hbars li { grid-template-columns: minmax(110px, 42%) 1fr auto; }

/* ==========================================================================
   v0.6 — referrals, system health
   ========================================================================== */
.auth[data-role="driver"] .passenger-only { display: none; }
.reward-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.reward-chip {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; border: 1px dashed #16A34A; background: var(--green-soft);
  color: #166534; font: 700 13px var(--font);
}
.reward-chip small { font: 600 11px ui-monospace, Consolas, monospace; opacity: .8; }
.reward-chip:hover { background: #BBF7D0; }
.invite-card { background: linear-gradient(135deg, var(--navy), #1E293B); color: #fff; border: 0; }
.invite-card .muted { color: #94A3B8; }
.invite-card h2 { color: #fff; }
.invite-code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px;
  border-radius: 12px; border: 1px dashed rgba(255, 193, 7, .7); background: rgba(255, 255, 255, .06);
}
.invite-code b { font: 800 22px ui-monospace, Consolas, monospace; letter-spacing: .12em; color: var(--yellow); }
.invite-stats { display: flex; gap: 20px; font-size: 13px; color: #CBD5E1; }
.invite-stats b { display: block; font-size: 20px; color: #fff; }
.reward-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reward-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); border: 1px solid #BBF7D0; }
.reward-list b { font: 800 14px ui-monospace, Consolas, monospace; color: #166534; }
.reward-list small { display: block; color: #166534; font-size: 12.5px; }
.health-list { list-style: none; margin: 0; padding: 0; display: grid; }
.health-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.health-list li:first-child { border-top: 0; }
.health-list strong { font-size: 14.5px; }
.health-list small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.health-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.health-dot--ok { background: var(--green); }
.health-dot--warn { background: #D97706; }
.health-dot--fail { background: var(--red); }
.health-summary { display: flex; gap: 10px; flex-wrap: wrap; }
.legal { max-width: 720px; }
.legal h2 { font-size: 18px; font-weight: 800; margin-top: 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.fine a { color: inherit; font-weight: 600; }
.referral-admin { margin-bottom: 4px; }
@media (min-width: 860px) {
  .admin-nav { gap: 2px; margin-left: 12px; }
  .admin-nav a { padding: 8px 10px; font-size: 13.5px; }
}
