/* ==========================================================================
   AJECARS — African Best Logistics
   app.css — mobile-first design system (v2)

   Order of the file:
     1. Tokens            6. Badges / notices / toasts / skeletons
     2. Base & a11y       7. Forms & inputs
     3. Layout            8. Cards & lists
     4. Header / bottom   9. Home page sections
     5. Modal   10. Footer  11. Auth/chat/admin/legacy
    12. Utilities & motion   13. Breakpoints (min-width)

   Breakpoints:  base = 360–430px (mobile, designed first)
                 ≥480px  small tablet / large phone
                 ≥768px  tablet
                 ≥1024px large tablet / small laptop
                 ≥1200px desktop
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* -- Brand (unchanged: navy + red from the AjeCars logo) ---------------- */
  --primary: #060057;
  --primary-600: #0F0A6E;
  --primary-500: #211C86;
  --accent: #ED1707;
  --accent-strong: #D61306;          /* AA-safe red for text & filled buttons */
  --accent-600: #C11205;
  --accent-tint: rgba(237, 23, 7, 0.06);
  --navy-tint: rgba(6, 0, 87, 0.05);
  --navy-tint-2: rgba(6, 0, 87, 0.09);

  /* -- Surfaces ----------------------------------------------------------- */
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --bg: #F6F8FA;
  --bg-2: #EEF2F6;

  /* -- Text & lines ------------------------------------------------------- */
  --text: #111827;
  --field-text: #1F2937;             /* legacy alias */
  --muted: #6B7280;
  --muted-2: #9AA1AC;
  --border: #E5E7EB;                 /* legacy alias */
  --border-2: #D8DEE6;
  --line: #EDF0F4;

  /* -- Status ------------------------------------------------------------- */
  --success: #16A34A;
  --success-deep: #15803D;
  --success-tint: rgba(21, 128, 61, 0.08);
  --error: #DC2626;
  --error-bg: #FEF2F2;
  --amber: #946200;
  --amber-bg: #FCEFD8;
  --amber-deep: #B45309;

  /* -- Type --------------------------------------------------------------- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --fw-reg: 400;
  --fw-med: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* -- Shape -------------------------------------------------------------- */
  --r-xs: 10px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;
  /* legacy aliases */
  --r-input: 14px;
  --r-btn: 14px;
  --r-card: 18px;
  --r-card-lg: 24px;

  /* -- Metrics ------------------------------------------------------------ */
  --pad-page: 20px;
  --header-h: 64px;
  --bbar: 0px;                      /* mobile bottom tab bar height */
  --h-input: 52px;
  --h-btn: 52px;
  --col-max: 480px;
  --col-tablet: 720px;
  --col-desktop: 1200px;

  /* -- Effects ------------------------------------------------------------ */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 2px 6px -2px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 10px 24px -12px rgba(16, 24, 40, 0.18), 0 2px 6px -3px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 48px -24px rgba(6, 0, 87, 0.28), 0 8px 20px -14px rgba(16, 24, 40, 0.12);
  --shadow-card: var(--shadow-sm);
  --shadow-modal: 0 32px 64px -24px rgba(6, 0, 87, 0.42);
  --shadow-cta: 0 12px 24px -12px rgba(214, 19, 6, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --t-fast: 0.15s;
  --t: 0.25s;
  --t-slow: 0.4s;
}

/* ==========================================================================
   2. BASE & ACCESSIBILITY
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: var(--fw-med);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-wrap: balance;
}

p { text-wrap: pretty; }
img, video { max-width: 100%; height: auto; }
img { display: block; }
svg { flex: 0 0 auto; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
table { border-collapse: collapse; }

/* Icons ------------------------------------------------------------------- */
.ico { width: 24px; height: 24px; display: block; }
.ico--sm { width: 18px; height: 18px; }
.ico--xs { width: 15px; height: 15px; }
.ico--lg { width: 30px; height: 30px; }

/* Focus ------------------------------------------------------------------- */
:focus { outline: none; }
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
@supports not selector(:focus-visible) {
  :focus { outline: 2.5px solid var(--accent); outline-offset: 2px; }
}

.skip-link {
  position: fixed; top: -120px; left: 12px; z-index: 300;
  background: var(--primary); color: #fff;
  padding: 13px 18px; border-radius: 0 0 14px 14px;
  font-weight: var(--fw-bold); font-size: 14px;
  transition: top 0.22s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container,
.container-narrow {
  width: 100%;
  max-width: var(--col-desktop);
  margin: 0 auto;
  padding-left: var(--pad-page);
  padding-right: var(--pad-page);
}

main.page { padding: 0 0 48px; }
main.page > .container { padding-top: 24px; padding-bottom: 32px; }
main.page > .container > .page-title { margin-bottom: 8px; }

.section { margin: 36px 0; }
.section:first-child { margin-top: 28px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin-bottom: 16px;
}
.section-eyebrow {
  font-size: 12px; font-weight: var(--fw-bold); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-strong); margin-bottom: 6px;
}
.section-title { font-size: 21px; font-weight: var(--fw-black); letter-spacing: -0.025em; margin-bottom: 14px; }
.section-head .section-title { margin-bottom: 0; }
.section-sub { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-top: 6px; max-width: 62ch; }
.section-link { font-size: 13.5px; font-weight: var(--fw-bold); color: var(--accent-strong); white-space: nowrap; }

.page-title { font-size: clamp(22px, 5.6vw, 32px); font-weight: var(--fw-black); letter-spacing: -0.03em; margin-bottom: 8px; }
.page-sub { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; max-width: 62ch; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: var(--fw-bold); color: var(--primary); margin-bottom: 14px; }
.back-link:hover { color: var(--accent-strong); }

.divider { border: none; border-top: 1px solid var(--line); margin: 20px 0; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px -22px rgba(6, 0, 87, 0.5);
}
.topbar-inner {
  max-width: var(--col-desktop);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--pad-page);
  display: flex; align-items: center; gap: 10px;
}
.topbar-inner .logo { margin-right: auto; }
.topbar .logo { width: max-content; flex: 0 0 auto; }

.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark { display: block; height: 50px; width: auto; max-width: none; }

/* Public/signed-out pages keep the full lockup and the two account buttons on
   one line on narrow phones. */
@media (max-width: 479px) {
  .topbar--guest .logo-mark { height: 40px; }
  .topbar--guest .topbar-cta { padding: 0 12px; font-size: 13px; }
}
.logo-text {
  display: flex; flex-direction: column;
  font-size: 18px; font-weight: var(--fw-black);
  color: var(--primary); letter-spacing: -0.02em; line-height: 1.05;
}
.logo-text small {
  font-size: 9.5px; font-weight: var(--fw-med); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px;
}

.topbar-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.topbar-actions:empty { display: none; }
.topbar-actions .topbar-cta,
.topbar-actions > .icon-btn { flex: 0 0 auto; }
/* Icons used only when the header links collapse to icon buttons on phones. */
.topbar-cta-ico { display: none; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); background: transparent;
  transition: background 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--navy-tint); }
.icon-btn:active { transform: scale(0.94); }

/* Centre control: the passenger search pill. On phones it collapses to the
   icon-only search button in .topbar-actions, so the pill starts at 768px. */
.topbar-search {
  flex: 1 1 auto; max-width: 520px; min-width: 0;
  margin: 0 auto;
  display: none; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px;
  border-radius: var(--r-pill);
  -webkit-tap-highlight-color: transparent;
}
.topbar-search {
  background: #fff; border: 1.5px solid rgba(17, 24, 39, 0.10);
  box-shadow: var(--shadow-xs);
  color: var(--muted); font-size: 14.5px; font-weight: var(--fw-med);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.topbar-search .ico { flex: 0 0 auto; color: var(--primary); }
.topbar-search-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-search:hover { border-color: rgba(6, 0, 87, 0.28); box-shadow: var(--shadow-sm); }
.topbar-search:active { transform: scale(0.98); }

@media (min-width: 1024px) {
  .topbar--centred .topbar-inner .logo { margin-right: 0; }
  .topbar-search { display: flex; height: 46px; }
}

/* Phones/tablets: signed-in drivers/passengers navigate from the bottom tab
   bar, so the top bar keeps only the full logo and logout. */
@media (max-width: 1023px) {
  .topbar-inner { gap: 6px; }
  .topbar-actions { gap: 1px; }
  .topbar--app .topbar-actions .topbar-cta { display: none; }
  .topbar-actions > .icon-btn { width: 38px; height: 38px; }
}

/* Bottom tab bar (signed-in mobile navigation) ---------------------------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  display: none; align-items: stretch;
  height: var(--bbar);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid rgba(17, 24, 39, 0.07);
  box-shadow: 0 -10px 30px -22px rgba(6, 0, 87, 0.55);
}
.bb-item {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding-top: 6px;
  font-size: 10.5px; font-weight: var(--fw-semi); letter-spacing: 0.01em;
  color: var(--muted); text-align: center;
  position: relative;
  transition: color 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.bb-item .ico { width: 22px; height: 22px; }
.bb-item:active { transform: scale(0.94); }
/* Five tabs on small phones: keep every label on one line */
.bb-item > span:last-child {
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: clamp(9.5px, 2.6vw, 10.5px);
}
.bb-item.is-active { color: var(--accent-strong); }
.bb-item.is-active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent-strong);
}
/* Waiting-requests / unread-message count on a tab */
.bb-count {
  position: absolute; top: 0; left: 50%; transform: translateX(5px);
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); line-height: 1;
  background: var(--accent-strong); color: #fff;
  font-size: 10px; font-weight: var(--fw-black);
  box-shadow: 0 0 0 2px #fff;
}
/* Raised centre action: Share Ride (driver) / Search (passenger) */
.bb-fab {
  flex: 1 1 0; min-width: 0;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 13px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.bb-fab-circle {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 14px 26px -12px rgba(237, 23, 7, 0.7), 0 0 0 5px rgba(255, 255, 255, 0.95);
  transition: background 0.2s ease, transform 0.14s var(--ease);
}
.bb-fab-circle .ico { width: 26px; height: 26px; }
.bb-fab:hover .bb-fab-circle { background: var(--accent-strong); }
.bb-fab:active .bb-fab-circle { transform: translateX(-50%) scale(0.95); }
.bb-fab-label {
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: clamp(9.5px, 2.6vw, 10.5px); font-weight: var(--fw-semi); letter-spacing: 0.01em;
  color: var(--muted);
}
.bb-fab.is-active .bb-fab-label { color: var(--accent-strong); font-weight: var(--fw-bold); }

@media (max-width: 1023px) {
  body.has-bbar {
    --bbar: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--bbar);
  }
  body.has-bbar.has-bb-fab { padding-bottom: calc(var(--bbar) + 26px); }
  .bottom-bar { display: flex; }
}

@media (max-width: 480px) {
  .topbar-inner .logo-text { display: none; }
}

/* Unread count inside a desktop header link (Messages) */
.btn-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 7px;
  border-radius: var(--r-pill); line-height: 1;
  background: var(--accent-strong); color: #fff;
  font-size: 10.5px; font-weight: var(--fw-black);
}
.icon-btn .btn-count {
  position: absolute; top: 2px; right: 2px; margin: 0;
  min-width: 16px; height: 16px; padding: 0 4px; font-size: 9.5px;
}

/* Notifications ------------------------------------------------------------ */
.notif-shell { max-width: 780px; margin: 0 auto; }
.notif-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.notif-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.notif-tabs { display: inline-flex; gap: 3px; padding: 4px; background: var(--bg-2); border-radius: 999px; }
.notif-tabs a { padding: 7px 13px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: var(--fw-bold); }
.notif-tabs a.is-active { background: var(--primary); color: #fff; }
.notif-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-xs); }
.notif-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: #FBFCFE; }
.notif-row.is-unread { background: rgba(6, 0, 87, 0.035); }
.notif-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--navy-tint); color: var(--primary); }
.notif-icon .ico { width: 19px; height: 19px; }
.notif-main { min-width: 0; flex: 1 1 auto; }
.notif-title { display: block; font-size: 13.5px; font-weight: var(--fw-bold); color: var(--primary); }
.notif-body { display: block; margin-top: 2px; font-size: 12.8px; line-height: 1.5; color: var(--muted); }
.notif-time { display: block; margin-top: 5px; font-size: 11px; color: var(--muted-2); }
.notif-dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 7px; border-radius: 50%; background: var(--accent-strong); }
.notif-empty { padding: 42px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.notif-empty .ico { width: 34px; height: 34px; color: var(--muted-2); }
.notif-empty h2 { margin: 10px 0 4px; font-size: 16px; color: var(--primary); }
.notif-empty p { margin: 0; font-size: 13px; color: var(--muted); }
.notif-settings-card { margin-top: 20px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-xs); }
.notif-settings-head h2 { margin: 0; font-size: 15px; color: var(--primary); }
.notif-settings-head p { margin: 3px 0 16px; font-size: 12.5px; color: var(--muted); }
.notif-pref-form { display: flex; flex-direction: column; gap: 10px; }
.notif-pref { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--text); }
.notif-pref input { margin-top: 2px; accent-color: var(--primary); }
.notif-pref strong { display: block; font-size: 12.8px; color: var(--primary); }
.notif-pref small { display: block; margin-top: 1px; color: var(--muted); font-size: 11.5px; }
.notif-push-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.notif-push-status { flex: 1 1 100%; margin: 0; font-size: 12px; color: var(--muted); }
.notif-push-status.is-ok { color: var(--success-deep); }
.notif-push-status.is-error { color: var(--accent-strong); }
@media (max-width: 520px) {
  .notif-head { align-items: center; }
  .notif-row { padding: 12px; }
  .notif-push-box .btn { width: 100%; }
}

/* Modal / bottom sheet ---------------------------------------------------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6, 0, 87, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s;
}
.modal-scrim.show { opacity: 1; visibility: visible; }
.modal {
  position: fixed; z-index: 121;
  left: 0; right: 0; bottom: 0; top: auto;
  width: 100%; max-width: none;
  background: var(--white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 26px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-modal);
  transform: translateY(102%);
  transition: transform 0.36s var(--ease);
}
.modal.is-open { transform: translateY(0); }
.modal[hidden] { display: none; }
.modal-handle { width: 44px; height: 4px; border-radius: 999px; background: var(--border-2); margin: 0 auto 18px; }
.modal-title { font-size: 20px; font-weight: var(--fw-black); margin-bottom: 8px; }
.modal-body { font-size: 15px; color: var(--muted); line-height: 1.55; margin-bottom: 22px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================================
   6. BUTTONS · BADGES · NOTICES · TOASTS · SKELETONS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: var(--h-btn); padding: 0 22px;
  font-family: var(--font); font-size: 15.5px; font-weight: var(--fw-bold);
  letter-spacing: -0.01em; text-align: center;
  border: 1.5px solid transparent; border-radius: var(--r-btn);
  transition: transform 0.14s var(--ease), background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn .ico { width: 19px; height: 19px; }
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-primary {
  background: var(--accent-strong); color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--border-2); }
.btn-secondary:hover { border-color: var(--primary); background: var(--navy-tint); color: var(--primary); }
.btn-outline-red { background: #fff; color: var(--accent-strong); border-color: rgba(214, 19, 6, 0.45); }
.btn-outline-red:hover { background: var(--accent-tint); color: var(--accent-strong); }
.btn-outline-grey { background: #fff; color: var(--muted); border-color: var(--border-2); }
.btn-outline-grey:hover { color: var(--primary); border-color: var(--border-2); background: var(--navy-tint); }
.btn-outline-green { background: #fff; color: var(--success-deep); border-color: rgba(21, 128, 61, 0.4); }
.btn-outline-green:hover { background: var(--success-tint); color: var(--success-deep); }
.btn-cancel { background: #fff; color: var(--muted); border-color: var(--border-2); }
.btn-cancel:hover { color: var(--accent-strong); border-color: rgba(214, 19, 6, 0.4); background: var(--accent-tint); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--navy-tint); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--primary); box-shadow: var(--shadow-md); }

.btn-sm { width: auto; min-height: 42px; padding: 0 16px; font-size: 13.5px; border-radius: var(--r-sm); gap: 7px; }
.btn-sm .ico { width: 17px; height: 17px; }
.btn-block { width: 100%; }

/* Badges ------------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 0.02em;
  white-space: nowrap; line-height: 1.5;
}
.badge .ico { width: 13px; height: 13px; }
.badge-solid { color: #fff; }
.badge-solid.badge-red { background: var(--accent-strong); }
.badge-solid.badge-green { background: var(--success-deep); }
.badge-solid.badge-primary { background: var(--primary); }
.badge-solid.badge-amber { background: var(--amber); }
.badge-outline { background: #fff; border: 1.5px solid var(--border-2); color: var(--muted); }
.badge-outline.badge-red { color: var(--accent-strong); border-color: rgba(214, 19, 6, 0.4); }
.badge-outline.badge-grey { color: var(--muted); border-color: var(--border-2); }
.badge-outline.badge-green { color: var(--success-deep); border-color: rgba(21, 128, 61, 0.4); }
.badge-outline.badge-amber { color: var(--amber); border-color: rgba(148, 98, 0, 0.4); }
.badge-soft { background: var(--accent-tint); color: var(--accent-strong); }
.badge-soft-green { background: var(--success-tint); color: var(--success-deep); }

/* Notices -----------------------------------------------------------------
   Normal text flow (not flex) so inline markup such as <strong> or <a> wraps
   like a paragraph instead of each text run becoming its own flex column.
   The optional leading icon sits inline on the first line. */
.notice {
  display: block;
  border-radius: var(--r-md); padding: 13px 15px;
  font-size: 14px; font-weight: var(--fw-semi); line-height: 1.45;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.notice .ico {
  width: 19px; height: 19px;
  display: inline-block; vertical-align: -4px; margin-right: 9px;
}
.notice-error { background: var(--error-bg); color: #991B1B; border-color: rgba(220, 38, 38, 0.2); }
.notice-error .ico { color: var(--error); }
.notice-success { background: #F0FDF4; color: #166534; border-color: rgba(22, 163, 74, 0.22); }
.notice-success .ico { color: var(--success-deep); }
.notice-info { background: rgba(6, 0, 87, 0.04); color: var(--primary); border-color: rgba(6, 0, 87, 0.1); }
.notice-info .ico { color: var(--primary); }

/* Coming-soon panel (used while a feature is not live yet) ----------------- */
.coming-soon {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px; padding: 30px 22px; margin: 6px 0 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
}
.coming-soon-ico {
  width: 58px; height: 58px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--amber-bg); color: var(--amber);
}
.coming-soon-ico .ico { width: 28px; height: 28px; }
.coming-soon-title { font-size: 19px; font-weight: var(--fw-black); letter-spacing: -0.02em; }
.coming-soon-body { font-size: 14.5px; font-weight: var(--fw-med); color: var(--muted); line-height: 1.55; max-width: 44ch; }
.coming-soon-note { font-size: 12.5px; font-weight: var(--fw-med); color: var(--muted); }
.coming-soon-note a { color: var(--primary); text-decoration: underline; }
.coming-soon .btn { width: 100%; max-width: 320px; }

/* Toasts ------------------------------------------------------------------ */
.toast-stack {
  position: fixed; z-index: 200;
  left: 14px; right: 14px;
  bottom: calc(var(--bbar) + 14px);
  display: flex; flex-direction: column; gap: 9px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 11px;
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: var(--r-md); padding: 13px 14px;
  box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: var(--fw-semi); color: var(--text); line-height: 1.45;
  animation: toast-in 0.4s var(--ease) both;
}
.toast .ico { width: 20px; height: 20px; margin-top: 1px; }
.toast--success .ico { color: var(--success-deep); }
.toast--error .ico { color: var(--error); }
.toast--info .ico { color: var(--primary); }
.toast-close {
  margin-left: auto; padding: 2px; border-radius: 8px; color: var(--muted-2);
  transition: color 0.16s ease, background 0.16s ease;
}
.toast-close:hover { color: var(--text); background: var(--bg-2); }
.toast.is-leaving { animation: toast-out 0.3s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* Skeletons --------------------------------------------------------------- */
.skeleton {
  position: relative; overflow: hidden;
  background: #E8ECF2; border-radius: var(--r-sm);
  color: transparent !important; user-select: none;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton-card { background: #fff; border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.skeleton-line { height: 12px; border-radius: 999px; }
.skeleton-line.w-40 { width: 40%; } .skeleton-line.w-60 { width: 60%; } .skeleton-line.w-80 { width: 80%; }

/* ==========================================================================
   7. FORMS
   ========================================================================== */
.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block; margin-bottom: 7px;
  font-size: 13px; font-weight: var(--fw-semi); color: var(--text); letter-spacing: -0.01em;
}
.field-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); font-weight: var(--fw-med); }
.field-error { display: none; margin-top: 6px; font-size: 12.5px; font-weight: var(--fw-semi); color: var(--error); }
.field-error.is-shown { display: flex; align-items: center; gap: 5px; animation: shake-in 0.32s var(--ease) both; }
@keyframes shake-in {
  0% { transform: translateX(-3px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.field-input {
  width: 100%; min-height: var(--h-input);
  padding: 13px 15px;
  font-family: var(--font); font-size: 16px; font-weight: var(--fw-med);
  color: var(--text); background: #fff;
  border: 1.5px solid var(--border-2); border-radius: var(--r-input);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.field-input::placeholder { color: var(--muted-2); font-weight: var(--fw-reg); }
.field-input:hover { border-color: #C3CBD6; }
.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(6, 0, 87, 0.09);
}
.field-input:disabled { background: var(--bg-2); color: var(--muted); }
.field-input.is-invalid, .field-input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.09);
}
textarea.field-input { min-height: 108px; padding: 14px 15px; line-height: 1.55; resize: vertical; }

select.field-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}

input[type="date"].field-input { min-height: var(--h-input); }

.input-row { display: flex; gap: 12px; }
.input-row .field { flex: 1 1 0; min-width: 0; }

.input-with-ico { position: relative; }
.input-with-ico .field-input { padding-right: 56px; }
.input-with-ico .ico-right {
  position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
  color: var(--muted); display: inline-flex; align-items: center; pointer-events: none;
}
.inline-toggler {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  padding: 8px 10px; border-radius: 10px;
  font-size: 11.5px; font-weight: var(--fw-bold); letter-spacing: 0.04em;
  color: var(--muted); background: transparent;
  transition: color 0.16s ease, background 0.16s ease;
}
.inline-toggler:hover { color: var(--primary); background: var(--navy-tint); }

/* Icon variant: eye / eye-off, vertically centred in the field */
.inline-toggler--eye {
  right: 6px; width: 40px; height: 40px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); border-radius: 12px;
}
.inline-toggler--eye .ico { width: 20px; height: 20px; flex: none; }
.inline-toggler--eye .pw-eye,
.inline-toggler--eye .pw-eye-off { display: inline-flex; align-items: center; }
.inline-toggler--eye .pw-eye-off { display: none; }
.inline-toggler--eye.is-on { color: var(--primary); }
.inline-toggler--eye.is-on .pw-eye { display: none; }
.inline-toggler--eye.is-on .pw-eye-off { display: inline-flex; }

.phone-prefix { position: relative; }
.phone-prefix .field-input { padding-left: 96px; }
.phone-prefix .prefix-chip {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  background: var(--navy-tint); color: var(--primary);
  border-radius: 10px; padding: 7px 10px;
  font-size: 13px; font-weight: var(--fw-bold); letter-spacing: 0.02em;
}
.phone-prefix .prefix-chip .ico { width: 15px; height: 15px; flex: none; }

/* Floating-label fields (driver + booking forms) -------------------------- */
.float-field { position: relative; }
.float-field .field-input { min-height: 60px; padding: 24px 15px 9px; }
.float-field .float-label {
  position: absolute; left: 16px; top: 19px;
  font-size: 16px; font-weight: var(--fw-med); color: var(--muted);
  pointer-events: none; transform-origin: left center;
  transition: transform 0.2s var(--ease), color 0.2s ease, font-size 0.2s ease;
}
.float-field .field-input:focus + .float-label,
.float-field .field-input:not(:placeholder-shown) + .float-label {
  transform: translateY(-11px) scale(0.72);
  color: var(--primary);
}
.float-field .field-input:focus + .float-label { color: var(--accent-strong); }
.float-field .float-hint {
  position: absolute; right: 16px; top: 22px;
  font-size: 12.5px; color: var(--muted-2); pointer-events: none;
}

.field-check { display: flex; align-items: flex-start; gap: 11px; margin: 18px 0; }
.field-check input {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  accent-color: var(--primary); border-radius: 6px;
}
.field-check label { font-size: 13.5px; font-weight: var(--fw-med); color: var(--muted); line-height: 1.5; }
.field-check a { font-weight: var(--fw-semi); }

/* Chips ------------------------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 42px; padding: 0 15px;
  border: 1.5px solid var(--border-2); border-radius: var(--r-pill);
  background: #fff; color: var(--text);
  font-size: 14px; font-weight: var(--fw-semi); white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip .ico { width: 17px; height: 17px; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip:active { transform: scale(0.96); }
.chip.is-active, .chip[aria-pressed="true"] {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 8px 18px -12px rgba(6, 0, 87, 0.8);
}

/* Stepper ----------------------------------------------------------------- */
.stepper {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px; background: #fff;
  border: 1.5px solid var(--border-2); border-radius: var(--r-pill);
}
.stepper-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-tint); color: var(--primary);
  transition: background 0.16s ease, transform 0.12s ease;
}
.stepper-btn:hover { background: var(--navy-tint-2); }
.stepper-btn:active { transform: scale(0.9); }
.stepper-btn[disabled] { opacity: 0.35; pointer-events: none; }
.stepper-btn .ico { width: 18px; height: 18px; }
.stepper-input {
  width: 46px; height: 38px; border: 0; background: transparent;
  text-align: center; font-size: 16px; font-weight: var(--fw-black); color: var(--primary);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-input:focus-visible { outline-offset: 1px; }

/* Colour swatches --------------------------------------------------------- */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--border-2);
  transition: transform 0.15s var(--ease), box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.swatch:active { transform: scale(0.92); }
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2.5px var(--primary), 0 6px 14px -8px rgba(6, 0, 87, 0.6);
}
.swatch[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translateY(-2px);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

/* Uploads ----------------------------------------------------------------- */
.upload-box {
  display: block; width: 100%; text-align: center;
  padding: 22px 18px;
  border: 1.5px dashed var(--border-2); border-radius: var(--r-lg);
  background: #fff; cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.14s var(--ease);
}
.upload-box:hover { border-color: var(--primary); background: var(--navy-tint); }
.upload-box:active { transform: scale(0.99); }
.upload-box .plus {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-tint); color: var(--primary);
}
.upload-box .up-label { font-size: 14.5px; font-weight: var(--fw-bold); color: var(--text); }
.upload-box .up-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.upload-box .up-filename {
  margin-top: 10px; font-size: 12.5px; font-weight: var(--fw-semi); color: var(--success-deep);
  overflow-wrap: anywhere;
}
.upload-box input[type="file"] { display: none; }
.upload-box.is-set { border-style: solid; border-color: rgba(21, 128, 61, 0.45); background: #F7FDF9; }
.upload-box.is-set .plus { background: var(--success-tint); color: var(--success-deep); }
.upload-progress { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 12px; }
.upload-progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent-strong); transition: width 0.35s var(--ease); }
.upload-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.upload-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }

/* ==========================================================================
   8. CARDS & LISTS
   ========================================================================== */
.card {
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px;
}

.trip-card {
  display: flex; gap: 13px; align-items: flex-start;
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 15px;
  transition: box-shadow 0.24s ease, transform 0.24s var(--ease);
}
.trip-card + .trip-card { margin-top: 12px; }
.trip-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-xs); }
.trip-avatar.is-logo { border-radius: 14px; }
.trip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.trip-main { flex: 1 1 auto; min-width: 0; }
.trip-meta { font-size: 12.5px; color: var(--muted); font-weight: var(--fw-med); }
.trip-meta a { color: inherit; }
.trip-when {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  margin: 0 0 6px; font-size: 15px; font-weight: var(--fw-black);
  color: var(--text); letter-spacing: -0.015em;
}
.trip-when-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.trip-when-item .ico { color: var(--accent-strong); }
.trip-when-time { color: var(--primary); }
.trip-route {
  display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px;
  margin: 0 0 4px; font-size: 15px; line-height: 1.25; color: var(--text);
}
.trip-route-origin { color: var(--muted); font-weight: var(--fw-semi); }
.trip-route-arrow { display: inline-flex; color: var(--accent-strong); }
.trip-route-destination {
  font-size: 19px; font-weight: var(--fw-black); color: var(--primary);
  letter-spacing: -0.025em; overflow-wrap: anywhere;
}
.trip-name { font-size: 16px; font-weight: var(--fw-black); margin: 5px 0 4px; }
.trip-name a { color: inherit; }
.trip-pickup {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 12.5px; color: var(--muted); font-weight: var(--fw-semi); margin: 6px 0;
}
.trip-pickup .ico { color: var(--accent-strong); margin-top: 1px; }
.trip-pickup strong { color: var(--text); }
.trip-score { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; font-weight: var(--fw-semi); margin-bottom: 10px; }
.trip-score .ico { width: 13px; height: 13px; color: var(--amber); fill: currentColor; }
.trip-score .score-pct { color: var(--muted); font-weight: var(--fw-med); }
/* Vehicle + plate + verification line on a ride card */
.trip-vehicle {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: var(--text); font-weight: var(--fw-semi); margin: 6px 0;
}
.trip-vehicle-ico { display: inline-block; vertical-align: -2px; margin-right: 4px; color: var(--primary); }
.trip-vehicle-text { min-width: 0; }
/* 360–430px: one notch smaller so the vehicle line stays on a single line. */
@media (max-width: 430px) {
  .trip-vehicle { font-size: 11.5px; }
}
.plate-chip {
  font-family: var(--font); font-size: 11.5px; font-weight: var(--fw-black); letter-spacing: 0.06em;
  color: var(--primary); background: var(--navy-tint);
  border: 1px solid rgba(6, 0, 87, 0.12); border-radius: 6px; padding: 2px 7px;
}
.trip-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.trip-price { font-size: 19px; font-weight: var(--fw-black); color: var(--primary); letter-spacing: -0.02em; }
.trip-price small { display: block; font-size: 11.5px; font-weight: var(--fw-semi); color: var(--muted); margin-top: 2px; }
/* Accept / decline pair on a ride request card (margin keeps it right-aligned
   when the footer wraps on narrow screens) */
.req-actions { display: flex; gap: 10px; margin-left: auto; }

.book-form { display: inline-flex; align-items: center; gap: 8px; }
.book-seats {
  width: 62px; min-height: 42px; padding: 0 10px;
  border: 1.5px solid var(--border-2); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 16px; font-weight: var(--fw-semi); color: var(--text);
}
.book-form .badge {
  border: none; background: var(--accent-strong); color: #fff;
  min-height: 42px; padding: 0 18px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: var(--fw-bold);
}

.my-bookings { margin-top: 26px; }
.my-bookings h3 { font-size: 17px; font-weight: var(--fw-black); margin-bottom: 12px; }
.my-booking-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.my-booking-row:first-of-type { border-top: 1px solid var(--line); }
.my-booking-info { min-width: 0; font-size: 14px; }

.card-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }

/* Stats (profile / admin) -------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card {
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 16px 15px;
}
.stat-value { font-size: 25px; font-weight: var(--fw-black); color: var(--primary); line-height: 1.1; letter-spacing: -0.03em; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: var(--fw-semi); margin: 5px 0 6px; }
.stat-delta { font-size: 12px; font-weight: var(--fw-black); color: var(--success-deep); }
.stat-live {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 6px;
  padding: 2px 7px; border-radius: 999px; vertical-align: 1px;
  background: var(--success-tint); color: var(--success-deep);
  font-size: 9.5px; font-weight: var(--fw-black); letter-spacing: 0.08em; text-transform: uppercase;
}
.stat-live::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; animation: statLivePulse 1.8s ease-out infinite;
}
@keyframes statLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.42); }
  70% { box-shadow: 0 0 0 5px rgba(21, 128, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .stat-live::before { animation: none; }
}

.info-box {
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 18px; margin-bottom: 16px;
}
.info-box h3 { font-size: 15.5px; font-weight: var(--fw-black); margin-bottom: 12px; }
.profile-actions { display: grid; gap: 10px; }
.info-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.info-row:first-of-type { border-top: none; }
.info-row dt { font-size: 13.5px; color: var(--muted); font-weight: var(--fw-med); }
.info-row dd { font-size: 13.5px; color: var(--text); font-weight: var(--fw-semi); text-align: right; }

/* Tabs -------------------------------------------------------------------- */
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--bg-2); border-radius: var(--r-md); margin-bottom: 20px; }
.tab {
  flex: 1; padding: 11px 8px; border-radius: var(--r-xs);
  font-size: 13.5px; font-weight: var(--fw-bold); color: var(--muted); text-align: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-xs); }

.tab-switch { display: flex; gap: 5px; padding: 5px; background: var(--bg-2); border-radius: var(--r-md); margin-bottom: 22px; }
.tab-switch button {
  flex: 1; padding: 12px 6px; border-radius: var(--r-xs);
  font-family: var(--font); font-size: 13.5px; font-weight: var(--fw-bold); color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.tab-switch button.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }

/* Segmented link switch — same look as .tab-switch, but for links. */
.seg-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px;
  background: var(--bg-2); border-radius: var(--r-md);
}
.seg-switch a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 8px; border-radius: var(--r-xs);
  font-size: 13.5px; font-weight: var(--fw-bold); color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.seg-switch a:hover { background: #fff; color: var(--primary); }
.seg-switch a.is-active, .seg-switch a.is-active:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.seg-switch .ico { width: 17px; height: 17px; flex: none; }

/* Progress (KYC / booking flow) ------------------------------------------- */
.progress { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(6, 0, 87, 0.1); display: flex; gap: 3px; }
.progress .seg, .progress-track .seg { flex: 1; background: rgba(6, 0, 87, 0.12); transition: background 0.35s ease; }
.progress .seg.done, .progress-track .seg.done { background: var(--accent-strong); }
.progress-track { height: 8px; border-radius: 999px; display: flex; gap: 4px; }
.progress-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 11.5px; font-weight: var(--fw-semi); color: var(--muted); }
.progress-labels .on { color: var(--accent-strong); font-weight: var(--fw-bold); }

/* Step rail used by the booking flow (Search → Choose → Details → Pay → Done) */
.flow-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.flow-steps .fs {
  flex: 1; height: 5px; border-radius: 999px; background: rgba(6, 0, 87, 0.12);
  position: relative; transition: background 0.35s ease;
}
.flow-steps .fs.done { background: var(--accent-strong); }
.flow-steps .fs.now { background: var(--primary); }

/* Pills (profile edit) ---------------------------------------------------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  position: relative;
  border: 1.5px solid var(--border-2); border-radius: var(--r-pill);
  padding: 10px 17px; font-size: 13.5px; font-weight: var(--fw-bold); color: var(--text);
  background: #fff; cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill.selected { border-color: var(--primary); background: var(--primary); color: #fff; }

/* Category rows (KYC) ----------------------------------------------------- */
.category-list { display: flex; flex-direction: column; gap: 10px; }
.category-option {
  display: flex; align-items: center; gap: 13px;
  border: 1.5px solid var(--border-2); border-radius: var(--r-lg);
  padding: 15px 16px; background: #fff; cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.category-option:hover { border-color: var(--primary); }
.category-option input { accent-color: var(--primary); width: 20px; height: 20px; flex: 0 0 auto; }
.category-option .cat-label { flex: 1; font-size: 15px; font-weight: var(--fw-bold); color: var(--text); }
.category-option .cat-sub { font-size: 12px; color: var(--muted); font-weight: var(--fw-med); }
.category-option.selected { border-color: var(--primary); background: var(--navy-tint); box-shadow: 0 0 0 3px rgba(6, 0, 87, 0.06); }

/* Route list (search page) ------------------------------------------------ */
.route-list { display: flex; flex-direction: column; gap: 10px; }
.route-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 16px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: var(--shadow-xs);
  color: var(--text); font-size: 14.5px; font-weight: var(--fw-semi);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, border-color 0.2s ease;
}
.route-row .route-city { color: var(--primary); font-weight: var(--fw-bold); }
.route-row .chev { color: var(--muted-2); transition: transform 0.25s var(--ease); }
.route-row:hover { box-shadow: var(--shadow-md); border-color: rgba(6, 0, 87, 0.14); }
.route-row:hover .chev { transform: translateX(3px); }

/* Empty states ------------------------------------------------------------ */
.empty { text-align: center; padding: 44px 12px; }
.empty-img { margin: 0 auto 20px; color: var(--primary); opacity: 0.85; }
.empty-title { font-size: 20px; font-weight: var(--fw-black); margin-bottom: 8px; }
.empty-body { font-size: 14.5px; color: var(--muted); max-width: 34ch; margin: 0 auto 22px; line-height: 1.6; }
.empty .btn { max-width: 320px; margin-left: auto; margin-right: auto; }

/* Pagination -------------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 6px; }
.page-link {
  min-width: 44px; min-height: 44px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-2); border-radius: var(--r-sm);
  background: #fff; color: var(--text);
  font-size: 14px; font-weight: var(--fw-bold);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.page-link:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Filters (legacy select row) --------------------------------------------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filter-row select { min-height: 48px; flex: 1 1 200px; }

/* Conversations (messages) ------------------------------------------------ */
.convo-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 15px; margin-bottom: 10px;
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.convo-row:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.convo-avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; }
.convo-main { flex: 1 1 auto; min-width: 0; }
.convo-name { font-size: 14.5px; font-weight: var(--fw-black); color: var(--primary); }
.convo-status { font-size: 11px; font-weight: var(--fw-bold); color: var(--success-deep); margin-left: 6px; }
.convo-last { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-route { font-size: 12px; color: var(--text); font-weight: var(--fw-semi); margin-top: 2px; }
.convo-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.convo-time { font-size: 11px; color: var(--muted); }
.convo-unread {
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-strong); color: #fff; font-size: 11px; font-weight: var(--fw-black);
}

/* ==========================================================================
   9. HOME PAGE SECTIONS
   ========================================================================== */

/* -- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(168deg, #0A0468 0%, var(--primary) 46%, #1D0A5C 100%);
  padding: 22px 0 92px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(237, 23, 7, 0.34), transparent 62%),
    radial-gradient(65% 65% at 100% 8%, rgba(46, 38, 160, 0.55), transparent 66%);
}
.hero-art {
  position: absolute; left: 50%; bottom: 0; z-index: -1;
  width: 1180px; max-width: none; height: auto;
  transform: translateX(-50%);
  opacity: 0.9; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 4%, rgba(0, 0, 0, 0.4) 34%, #000 72%);
  mask-image: linear-gradient(to bottom, transparent 4%, rgba(0, 0, 0, 0.4) 34%, #000 72%);
}
.hero-inner {
  position: relative;
  max-width: 720px; margin: 0 auto;
  padding: 26px var(--pad-page) 0;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; margin-bottom: 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12.5px; font-weight: var(--fw-semi); color: #fff;
}
.hero-eyebrow .ico { width: 16px; height: 16px; color: #FFB4A8; }
.hero-title {
  font-size: clamp(30px, 8.6vw, 54px);
  font-weight: var(--fw-black);
  line-height: 1.06; letter-spacing: -0.035em;
  color: #fff; margin-bottom: 12px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(96deg, #FFB199 0%, #ED1707 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: 15.5px; font-weight: var(--fw-med);
  color: rgba(255, 255, 255, 0.82);
  max-width: 40ch; margin: 0 auto;
  line-height: 1.55;
}
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 18px; }
.hero-point { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: var(--fw-semi); color: rgba(255, 255, 255, 0.9); }
.hero-point .ico { width: 15px; height: 15px; color: #7BE3A6; }

/* -- Booking card (floating) --------------------------------------------- */
.booking-wrap {
  position: relative; z-index: 3;
  max-width: 560px;
  margin: -64px auto 0;
  padding: 0 var(--pad-page);
  animation: rise 0.62s var(--ease) 0.26s both;
}
.booking-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.05);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 14px;
}
.booking-legend {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: var(--fw-bold); color: var(--primary);
  padding: 2px 4px 12px;
}
.booking-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

.route-box {
  position: relative;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 4px 60px 4px 40px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.route-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(6, 0, 87, 0.08); }
.route-rail {
  position: absolute; left: 16px; top: 24px; bottom: 24px; width: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.rail-dot { width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--accent-strong); }
.rail-line { flex: 1 1 auto; width: 0; border-left: 2px dashed rgba(6, 0, 87, 0.25); }
.rail-square { width: 10px; height: 10px; border-radius: 3px; background: var(--primary); }
.route-fields { display: flex; flex-direction: column; }
.route-field { padding: 10px 0; }
.route-field + .route-field { border-top: 1px dashed var(--line); }
.route-label {
  display: block; font-size: 11px; font-weight: var(--fw-bold);
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 2px;
}
.route-input {
  width: 100%; border: 0; background: none; outline: none;
  font-family: var(--font); font-size: 16.5px; font-weight: var(--fw-semi); color: var(--text);
  padding: 1px 0;
  text-overflow: ellipsis;
}
.route-input::placeholder { color: var(--muted-2); font-weight: var(--fw-reg); }
.route-input:focus-visible { outline: none; }
.route-select {
  appearance: none; -webkit-appearance: none;
  min-height: 26px; padding-right: 24px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23616B7A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 15px 15px;
}

.swap-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-tint); color: var(--primary);
  border: 1px solid rgba(6, 0, 87, 0.1);
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s var(--ease);
}
.swap-btn:hover { background: var(--navy-tint-2); }
.swap-btn:active { transform: translateY(-50%) scale(0.92); }
.swap-btn .ico { transition: transform 0.5s var(--ease); }
.swap-btn.is-flipped .ico { transform: rotate(180deg); }

.booking-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.booking-date { flex: 1 1 168px; min-width: 0; }
.booking-pax { flex: 0 0 auto; }
.booking-label {
  display: block; font-size: 11px; font-weight: var(--fw-bold);
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.date-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.date-chips .chip { min-height: 36px; padding: 0 13px; font-size: 13px; }
.booking-submit { margin-top: 14px; }
.booking-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 11px; font-size: 11.5px; font-weight: var(--fw-semi); color: var(--muted);
}
.booking-note .ico { width: 14px; height: 14px; color: var(--success-deep); }

/* -- Feature cards -------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.feature-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 15px 14px;
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
  transition: transform 0.24s var(--ease), box-shadow 0.24s ease;
  height: 100%;
}
.feature-ico {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(6, 0, 87, 0.08), rgba(6, 0, 87, 0.03));
  color: var(--primary);
}
.feature-card h3 { font-size: 15px; font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* -- Routes rail ---------------------------------------------------------- */
.rail {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--pad-page));
  padding: 4px var(--pad-page) 14px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.route-card {
  flex: 0 0 auto; scroll-snap-align: start;
  width: 236px; padding: 15px;
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
  color: var(--text);
  transition: transform 0.24s var(--ease), box-shadow 0.24s ease;
}
.route-card:hover { color: var(--text); }
.route-head { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: var(--fw-black); color: var(--primary); letter-spacing: -0.02em; }
.route-head .ico { width: 16px; height: 16px; color: var(--accent-strong); }
.route-visual { display: flex; align-items: center; gap: 8px; color: var(--muted-2); }
.route-visual .rv-line { flex: 1 1 auto; height: 2px; border-radius: 999px; background: repeating-linear-gradient(90deg, rgba(6, 0, 87, 0.22) 0 6px, transparent 6px 12px); }
.route-visual .rv-car { display: inline-flex; color: var(--primary); }
.route-time { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: var(--fw-semi); color: var(--muted); }
.seats-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--success-tint); color: var(--success-deep);
  font-size: 11px; font-weight: var(--fw-bold); white-space: nowrap;
}
.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: 0 0 auto; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.5);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.55); opacity: 0.9; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

/* -- Driver timeline ------------------------------------------------------ */
.driver-panel { display: grid; gap: 18px; }
.driver-photo {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
}
.driver-photo picture { display: contents; }
.driver-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.driver-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 0, 87, 0) 40%, rgba(6, 0, 87, 0.55) 100%);
}
.driver-photo-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px; font-weight: var(--fw-bold); color: var(--primary);
}
.driver-photo-tag .ico { width: 15px; height: 15px; color: var(--success-deep); }

.timeline { position: relative; padding-left: 0; display: flex; flex-direction: column; gap: 14px; }
.tl-line {
  position: absolute; left: 19px; top: 10px; bottom: 30px; width: 2px;
  background: linear-gradient(180deg, var(--accent-strong), rgba(237, 23, 7, 0.12));
  transform: scaleY(0); transform-origin: top center;
  transition: transform 0.9s var(--ease);
}
.timeline.is-visible .tl-line { transform: scaleY(1); }
.tl-item { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.tl-num {
  position: relative; z-index: 1; flex: 0 0 40px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent-strong); color: var(--accent-strong);
  font-size: 15px; font-weight: var(--fw-black);
  box-shadow: 0 8px 18px -12px rgba(237, 23, 7, 0.8);
}
.tl-body {
  flex: 1 1 auto; min-width: 0;
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
  padding: 14px 16px;
}
.tl-body h3 { font-size: 15.5px; font-weight: var(--fw-bold); margin-bottom: 5px; }
.tl-body p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.driver-cta { position: sticky; bottom: calc(var(--bbar) + 10px); z-index: 4; margin-top: 16px; }

/* -- Parcel & cargo cards ------------------------------------------------- */
.media-cards { display: grid; gap: 14px; }
.media-card {
  position: relative; isolation: isolate;
  min-height: 226px; padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-xl); overflow: hidden; color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.26s var(--ease), box-shadow 0.26s ease;
}
.media-card--parcel { background: linear-gradient(158deg, #241FA0 0%, var(--primary) 58%, #10114F 100%); }
.media-card--cargo { background: linear-gradient(158deg, #0A0A6B 0%, #3D0A2A 100%); }
.media-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(115% 85% at 88% 6%, rgba(237, 23, 7, 0.42), transparent 62%);
}
.media-card-art {
  position: absolute; right: -14px; top: -10px; z-index: -1;
  color: rgba(255, 255, 255, 0.16); pointer-events: none;
}
.media-card-art .ico { width: 148px; height: 148px; stroke-width: 1.1; }
.media-card h3 { color: #fff; font-size: 20px; font-weight: var(--fw-black); margin-bottom: 6px; }
.media-card p { font-size: 13.5px; color: rgba(255, 255, 255, 0.84); line-height: 1.55; max-width: 30ch; margin-bottom: 14px; }
.media-cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: var(--r-pill);
  background: #fff; color: var(--primary);
  font-size: 14px; font-weight: var(--fw-bold);
  transition: transform 0.16s var(--ease), box-shadow 0.2s ease;
}
.media-cta:hover { color: var(--primary); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.6); }
.media-cta:active { transform: scale(0.97); }

/* -- Trust strip ---------------------------------------------------------- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 9px;
  padding: 16px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: var(--shadow-xs);
}
.trust-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: var(--fw-semi); color: var(--text); }
.trust-pill .ico { width: 17px; height: 17px; color: var(--success-deep); }

/* -- App card ------------------------------------------------------------- */
.app-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  padding: 26px 22px 0;
  color: #fff;
  background: linear-gradient(148deg, #0E0A72 0%, var(--primary) 52%, #171073 100%);
  box-shadow: var(--shadow-lg);
  display: grid; gap: 18px;
}
.app-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 70% at 8% 0%, rgba(237, 23, 7, 0.34), transparent 58%);
}
.app-card h2 { color: #fff; font-size: 22px; font-weight: var(--fw-black); letter-spacing: -0.03em; }
.app-card p { color: rgba(255, 255, 255, 0.82); font-size: 14px; line-height: 1.6; margin-top: 8px; max-width: 40ch; }
.app-points { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.app-point { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: var(--fw-semi); color: rgba(255, 255, 255, 0.9); }
.app-point .ico { width: 15px; height: 15px; color: #7BE3A6; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 8px 16px;
  background: #fff; color: var(--primary);
  border-radius: var(--r-md);
  font-size: 13.5px; font-weight: var(--fw-bold);
  transition: transform 0.16s var(--ease), box-shadow 0.2s ease;
}
.store-btn:hover { color: var(--primary); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.65); }
.store-btn:active { transform: scale(0.97); }
.store-btn .ico { width: 22px; height: 22px; }
.store-btn small { display: block; font-size: 9.5px; font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* -- Phone mockup -------------------------------------------------------- */
.phone-mock {
  width: 190px; margin: 0 auto -26px;
  padding: 9px; border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.28); border-bottom: 0;
  box-shadow: 0 -20px 40px -28px rgba(0, 0, 0, 0.7);
}
.phone-mock-screen {
  display: flex; flex-direction: column; gap: 9px;
  padding: 14px 12px 18px;
  background: #fff; border-radius: 24px 24px 0 0;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.55);
}
.pm-top { display: flex; align-items: center; justify-content: space-between; }
.pm-logo { font-size: 13px; font-weight: var(--fw-black); color: var(--primary); letter-spacing: -0.02em; }
.pm-accent { color: var(--accent-strong); }
.pm-chip { font-size: 9px; font-weight: var(--fw-bold); color: var(--success-deep); background: var(--success-tint); padding: 3px 7px; border-radius: 999px; }
.pm-route { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: var(--fw-bold); color: var(--text); }
.pm-dot { width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--accent-strong); flex: 0 0 auto; }
.pm-dot.pm-red { background: var(--primary); border-color: var(--primary); border-radius: 3px; }
.pm-city { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-line { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-left: 2px; }
.pm-line-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-2); }
.pm-driver { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: var(--bg); }
.pm-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); flex: 0 0 auto; }
.pm-driver-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.pm-bar { height: 5px; border-radius: 999px; background: rgba(6, 0, 87, 0.14); }
.pm-bar.w-60 { width: 60%; } .pm-bar.w-40 { width: 40%; }
.pm-btn {
  min-height: 32px; border-radius: 10px; border: 0;
  background: var(--accent-strong); color: #fff;
  font-family: var(--font); font-size: 11px; font-weight: var(--fw-bold);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 32px; }
.footer-inner { max-width: var(--col-desktop); margin: 0 auto; padding: 26px var(--pad-page) 20px; }
.footer-stack { display: grid; gap: 22px; }

.newsletter { border-radius: var(--r-xl); background: linear-gradient(150deg, rgba(6, 0, 87, 0.045), rgba(237, 23, 7, 0.045)); border: 1px solid rgba(6, 0, 87, 0.07); padding: 20px; }
.newsletter-title { font-size: 18px; font-weight: var(--fw-black); letter-spacing: -0.02em; }
.newsletter-sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.newsletter-input {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1.5px solid var(--border-2); border-radius: var(--r-input);
  font-family: var(--font); font-size: 16px; font-weight: var(--fw-med); color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.newsletter-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(6, 0, 87, 0.09); }
.newsletter-input.is-invalid { border-color: var(--error); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.09); }
.newsletter-btn {
  min-height: 52px; padding: 0 26px; border-radius: var(--r-btn);
  background: var(--accent-strong); color: #fff;
  font-size: 15px; font-weight: var(--fw-bold); letter-spacing: 0.01em;
  box-shadow: var(--shadow-cta);
  transition: background 0.2s ease, transform 0.14s var(--ease);
}
.newsletter-btn:hover { background: var(--accent-600); }
.newsletter-btn:active { transform: scale(0.97); }

.footer-brand .logo-mark { height: 48px; }
.footer-tagline { font-size: 13.5px; color: var(--muted); margin-top: 10px; max-width: 34ch; line-height: 1.6; }

.accordion { display: grid; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 2px; text-align: left;
  font-family: var(--font); font-size: 15px; font-weight: var(--fw-bold); color: var(--primary);
}
.acc-btn .ico { color: var(--muted); transition: transform 0.3s var(--ease); }
.acc-item.is-open .acc-btn .ico { transform: rotate(180deg); }
.acc-panel { overflow: hidden; transition: height 0.32s var(--ease); }
.js .acc-panel { height: 0; }
.acc-panel-inner { padding: 0 2px 14px; display: flex; flex-direction: column; gap: 2px; }
.acc-panel a { padding: 8px 0; font-size: 14.5px; font-weight: var(--fw-med); color: var(--muted); }
.acc-panel a:hover { color: var(--accent-strong); }
.acc-panel a .link-sub { display: block; margin-top: 2px; font-size: 12px; font-weight: var(--fw-med); color: var(--muted); }
.acc-sub-label { margin-top: 10px; font-size: 11px; font-weight: var(--fw-black); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.acc-panel a:hover .link-sub { color: var(--muted); }

.footer-contact-grid { display: grid; gap: 10px; margin-top: 4px; }
.contact-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: var(--r-lg);
  background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font-size: 14px; font-weight: var(--fw-semi);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.16s var(--ease);
}
.contact-btn:hover { border-color: rgba(6, 0, 87, 0.16); background: #fff; color: var(--text); }
.contact-btn:active { transform: scale(0.99); }
.contact-btn .contact-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-tint); color: var(--primary); flex: 0 0 auto; }
.contact-btn small { display: block; font-size: 11.5px; font-weight: var(--fw-med); color: var(--muted); }
.contact-btn .ico.ico--go { margin-left: auto; color: var(--muted-2); width: 17px; height: 17px; }

.social-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 6px; }
.social-row a {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, transform 0.16s var(--ease);
}
.social-row a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.social-row a:active { transform: scale(0.94); }

.footer-copy {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--muted); font-weight: var(--fw-med);
}
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--accent-strong); }
.footer-col a { font-size: 14.5px; font-weight: var(--fw-med); color: var(--muted); padding: 6px 0; display: block; }
.footer-col-title { font-size: 14px; font-weight: var(--fw-black); color: var(--primary); margin-bottom: 4px; }

/* ==========================================================================
   11. AUTH · PROFILE · CHAT · ADMIN · PROSE · LEGACY
   ========================================================================== */
.auth-shell { display: flex; align-items: flex-start; justify-content: center; padding: 8px 0 20px; }
.auth-card {
  width: 100%;
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: 26px 20px;
}
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .logo { justify-content: center; margin-bottom: 16px; }
.auth-card .logo-text { font-size: 21px; }
.auth-title { font-size: 24px; font-weight: var(--fw-black); letter-spacing: -0.03em; }
.auth-sub { font-size: 14.5px; color: var(--muted); margin-top: 5px; }
.auth-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 18px; font-size: 13.5px; font-weight: var(--fw-semi); }
.auth-footer { text-align: center; font-size: 14px; font-weight: var(--fw-semi); color: var(--muted); margin-top: 22px; }
.auth-footer a { font-weight: var(--fw-bold); }

.form-card { width: 100%; }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profile-head-info { min-width: 0; }
.profile-head-info .page-title { overflow-wrap: anywhere; }
.profile-photo-actions {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px; margin: -6px 0 20px;
}
@media (max-width: 520px) {
  .profile-head { justify-content: center; text-align: center; }
  .profile-photo-actions { margin-top: -4px; }
}

.kyc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.kyc-docs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.kyc-doc { flex: 1 1 220px; min-width: 0; }
.kyc-doc h4 { font-size: 13.5px; font-weight: var(--fw-bold); color: var(--primary); margin-bottom: 8px; }
.kyc-doc h4 small { display: block; font-size: 11.5px; font-weight: var(--fw-med); color: var(--muted); margin-top: 2px; }
.kyc-doc-img { display: block; width: 100%; max-height: 220px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
.kyc-status { font-size: 12.5px; font-weight: var(--fw-bold); }
.kyc-actions, .req-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kyc-actions .btn, .req-actions .btn { width: auto; }

/* Chat ------------------------------------------------------------------- */
.chat-shell {
  display: flex; flex-direction: column; overflow: hidden;
  width: 100%; max-width: 760px; margin: 0 auto;
  height: calc(100vh - var(--header-h) - var(--bbar) - 46px);
  height: calc(100dvh - var(--header-h) - var(--bbar) - 46px);
  min-height: 380px;
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--r-xl); box-shadow: var(--shadow-md);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--primary); color: #fff; flex: 0 0 auto; }
.chat-back { color: #fff; display: flex; align-items: center; flex: 0 0 auto; padding: 6px; border-radius: 10px; transition: background 0.18s ease; }
.chat-back:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-strong); flex: 0 0 auto; }
.chat-who { flex: 1 1 auto; min-width: 0; }
.chat-name { font-size: 15px; font-weight: var(--fw-black); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-route { font-size: 12px; color: rgba(255, 255, 255, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-route a { color: inherit; }
.btn-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s var(--ease);
}
.btn-call:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-call:active { transform: scale(0.94); }
.chat-report {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border-radius: 999px; flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 12.5px; font-weight: var(--fw-bold);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s var(--ease);
}
.chat-report:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.chat-report:active { transform: scale(0.94); }
.chat-report .ico { width: 17px; height: 17px; }
@media (max-width: 430px) {
  .chat-report { width: 40px; padding: 0; border-radius: 50%; }
  .chat-report span { display: none; }
}
.chat-list {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 18px 14px; display: flex; flex-direction: column; gap: 11px;
  background: var(--bg);
}
.chat-empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; max-width: 32ch; line-height: 1.6; }
.chat-empty-sub { font-size: 12px; }
.msg-row { display: flex; flex-direction: column; max-width: 84%; }
.msg-row.mine { align-self: flex-end; align-items: flex-end; }
.msg-row.theirs { align-self: flex-start; align-items: flex-start; }
.msg-bubble { padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.msg-row.mine .msg-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.msg-row.theirs .msg-bubble { background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-voice audio { display: block; max-width: 100%; height: 40px; }
.msg-time { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.msg-row.mine .msg-time { color: rgba(6, 0, 87, 0.5); }
.chat-composer {
  display: flex; align-items: flex-end; gap: 9px;
  padding: 11px 12px calc(11px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: #fff; flex: 0 0 auto;
}
.composer-input {
  flex: 1 1 auto; min-height: 48px; max-height: 118px;
  padding: 13px 16px; line-height: 1.45;
  border: 1.5px solid var(--border-2); border-radius: 24px;
  font-family: var(--font); font-size: 16px; color: var(--text); resize: none;
}
.composer-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(6, 0, 87, 0.08); }
.composer-input::placeholder { color: var(--muted-2); }
.composer-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.btn-voice {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--border-2); background: #fff; color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.btn-voice:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.btn-voice .rec-timer { display: none; font-family: ui-monospace, monospace; font-size: 11px; font-weight: var(--fw-black); color: #fff; letter-spacing: 0.04em; }
.btn-voice.recording { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; animation: rec-pulse 1.1s infinite; }
.btn-voice.recording svg { display: none; }
.btn-voice.recording .rec-timer { display: block; }
.btn-voice.disabled { opacity: 0.45; cursor: not-allowed; }
@keyframes rec-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237, 23, 7, 0.45); }
  50% { box-shadow: 0 0 0 9px rgba(237, 23, 7, 0); }
}
.btn-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 48px; padding: 0 20px; border-radius: 24px;
  border: 0; font-weight: var(--fw-bold);
}

/* Admin ------------------------------------------------------------------ */
.admin-shell { display: block; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.admin-table { width: 100%; min-width: 640px; }
.admin-table th {
  text-align: left; padding: 13px 15px;
  font-size: 11.5px; font-weight: var(--fw-black); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 14px 15px; font-size: 14px; font-weight: var(--fw-med); color: var(--text); border-bottom: 1px solid var(--line); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-pill { display: inline-flex; padding: 5px 11px; border-radius: var(--r-pill); font-size: 11px; font-weight: var(--fw-bold); }
.admin-pill.pending { background: var(--amber-bg); color: var(--amber); }
.admin-pill.approved { background: var(--success-tint); color: var(--success-deep); }
.admin-pill.rejected { background: var(--error-bg); color: #991B1B; }

/* Prose / legal ---------------------------------------------------------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 19px; font-weight: var(--fw-black); margin: 26px 0 10px; }
.prose h3 { font-size: 16px; font-weight: var(--fw-bold); margin: 20px 0 8px; }
.prose p, .prose li { font-size: 15px; font-weight: var(--fw-med); color: var(--field-text); line-height: 1.7; margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { font-weight: var(--fw-semi); }

/* Search card (legacy markup used by parcel/cargo/driver share-ride) -------- */
.search-card {
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--r-xl); box-shadow: var(--shadow-md);
  padding: 18px;
}
.search-legend { font-size: 14px; font-weight: var(--fw-bold); color: var(--primary); margin-bottom: 12px; }
.loc-field { position: relative; display: flex; align-items: center; gap: 11px; }
.loc-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--accent-strong); background: #fff; }
.loc-input {
  flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none;
  min-height: 46px; font-family: var(--font); font-size: 16px; font-weight: var(--fw-semi); color: var(--text);
}
.loc-input::placeholder { color: var(--muted-2); font-weight: var(--fw-reg); }
.loc-select {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding-right: 24px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23616B7A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 15px 15px;
}
.loc-divider { height: 12px; margin: 4px 0 4px 5px; border-left: 1px dashed var(--border-2); }
.search-card .field { margin-bottom: 12px; }
.search-card .btn { margin-top: 8px; }

/* Driver share-ride: original form layout, with a branded page backdrop. */
.share-ride-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(62rem 28rem at 88% -10%, rgba(6, 0, 87, 0.10), transparent 62%),
    radial-gradient(46rem 24rem at -8% 2%, rgba(237, 23, 7, 0.07), transparent 58%),
    linear-gradient(180deg, #F1F5FA 0%, var(--bg) 380px);
}
.share-ride-page::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(6, 0, 87, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 42%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 42%, transparent 78%);
  pointer-events: none;
}
.share-ride-page::after {
  content: "";
  position: absolute; top: 96px; right: -70px; z-index: 0;
  width: 420px; height: 420px;
  background: url("../img/ajecars-mark.svg") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.share-ride-page > .container { position: relative; z-index: 1; }
@media (max-width: 1023px) {
  .share-ride-page::after { display: none; }
}

/* Search pages reuse the home booking card (includes/search-form.php) ------ */
.search-form-wrap { margin: 18px 0 30px; }

/* Passenger search page: the card floats on the same hero scene as home,
   sized down so the search form stays the star. */
.search-hero { padding-bottom: 86px; }
.search-hero + .booking-wrap { margin-top: -58px; }
.search-hero .hero-title { font-size: clamp(27px, 7.6vw, 46px); }
.search-hero .hero-points { margin-top: 14px; }

/* Hero search (legacy wrapper kept for compatibility) -------------------- */
.hero-search { position: relative; z-index: 2; margin-top: -56px; }
.hero-search .search-card { max-width: 560px; margin: 0 auto; }
.travel-img { margin: 32px auto 0; }
.travel-img img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.promo-band {
  border-radius: var(--r-xl); padding: 24px 20px; margin: 34px 0;
  background: linear-gradient(150deg, rgba(6, 0, 87, 0.05), rgba(237, 23, 7, 0.05));
  border: 1px solid rgba(6, 0, 87, 0.07);
  display: flex; flex-direction: column; gap: 18px;
}
.promo-title { font-size: 22px; font-weight: var(--fw-black); }
.promo-title strong { color: var(--accent-strong); }
.promo-sub { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.promo-copy .store-badges { margin-top: 16px; }
.feature { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px; background: #fff; border-radius: var(--r-lg); border: 1px solid rgba(17, 24, 39, 0.06); box-shadow: var(--shadow-xs); }
.feature .feat-ico { width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--navy-tint); color: var(--primary); }
.feature h4 { font-size: 15px; font-weight: var(--fw-bold); }
.feature p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.steps { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-strong); color: #fff; font-size: 16px; font-weight: var(--fw-black);
}
.step h4 { font-size: 15px; font-weight: var(--fw-bold); margin-bottom: 3px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ==========================================================================
   12. UTILITIES & MOTION
   ========================================================================== */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.stack { display: grid; gap: 12px; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: 10px; }

/* On-load hero animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.js .hero-eyebrow, .js .hero-title, .js .hero-sub, .js .hero-points {
  animation: rise 0.62s var(--ease) both;
}
.js .hero-eyebrow { animation-delay: 0.04s; }
.js .hero-title { animation-delay: 0.12s; }
.js .hero-sub { animation-delay: 0.2s; }
.js .hero-points { animation-delay: 0.28s; }

/* Scroll reveal (IntersectionObserver adds .is-visible) */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--ease) var(--d, 0s), transform 0.55s var(--ease) var(--d, 0s);
}

/* Desktop-only hover lifts */
@media (hover: hover) and (min-width: 768px) {
  .feature-card:hover, .route-card:hover, .trip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  .media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
}

/* ==========================================================================
   13. BREAKPOINTS (mobile-first)
   ========================================================================== */
/* The hero scene is drawn for a wide stage. Below 1024px it would be cropped to
   stray fragments (and at phone widths the old car art landed behind the
   headline), so swap it for a clean CSS "road" arc that reads as a horizon line
   behind the booking card. */
@media (max-width: 1023px) {
  .hero-art { display: none; }
  .hero::after {
    content: ""; position: absolute; left: 50%; bottom: -430px;
    width: 520px; height: 520px; transform: translateX(-50%);
    border: 2px solid rgba(237, 23, 7, 0.45); border-radius: 50%;
    z-index: -1; pointer-events: none;
  }
}

@media (min-width: 480px) {
  .input-row { gap: 14px; }
  .feature-grid { gap: 13px; }
  .route-card { width: 250px; }
}

@media (min-width: 768px) {
  :root { --pad-page: 32px; }

  .topbar-inner { height: 72px; }
  .logo-mark { height: 54px; }

  .btn { width: auto; }
  .btn-block { width: 100%; }
  .empty .btn { width: 100%; }

  .section { margin: 68px 0; }
  .section-title { font-size: 27px; }
  .page-title { font-size: 32px; }
  main.page > .container { padding-top: 34px; padding-bottom: 40px; }

  .hero { padding: 26px 0 116px; }
  .hero-inner { padding-top: 40px; }
  .hero-sub { font-size: 17px; }
  .booking-wrap { margin-top: -84px; }
  .search-hero { padding-bottom: 106px; }
  .search-hero + .booking-wrap { margin-top: -74px; }

  .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .feature-card { padding: 20px 18px; }
  .feature-card h3 { font-size: 16px; }
  .route-card { width: 264px; }
  .media-cards { grid-template-columns: 1fr 1fr; gap: 18px; }
  .media-card { min-height: 280px; padding: 26px; }
  .media-card h3 { font-size: 23px; }
  .media-card-art .ico { width: 190px; height: 190px; }
  .rail { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

  .driver-panel { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 24px; }
  .driver-cta { position: static; margin-top: 20px; }
  .driver-cta .btn { width: auto; min-width: 320px; }

  .app-card { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding: 32px 30px 0; }
  .phone-mock { width: 216px; margin-bottom: -30px; }
  .toast-stack { left: auto; right: 20px; bottom: calc(var(--bbar) + 20px); width: min(360px, 88vw); }

  .newsletter-form { flex-direction: row; align-items: center; }
  .newsletter-btn { flex: 0 0 auto; }
  .footer-inner { padding: 40px var(--pad-page) 24px; }
  .footer-stack { gap: 30px; }
  .accordion { grid-template-columns: repeat(4, 1fr); gap: 0 26px; }
  .acc-item, .acc-item:first-child { border: 0; }
  .acc-btn { pointer-events: none; padding: 0 0 6px; cursor: default; }
  .acc-btn .ico { display: none; }
  .acc-panel, .js .acc-panel { height: auto !important; transition: none; }
  .acc-panel-inner { padding: 0; }
  .footer-contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-connect-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }

  .auth-shell { padding: 30px 0; }
  .auth-card { max-width: 520px; margin: 0 auto; padding: 36px 32px; }
  .form-card { max-width: 620px; }
  /* Booking page: keep the ride summary in the same column as the form. */
  .book-summary { max-width: 520px; margin: 0 auto 18px; }
  /* Search pages: the shared booking card sits in the same centred column. */
  .search-form-wrap { max-width: 560px; margin: 22px auto 36px; }
  .modal {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: min(440px, calc(100vw - 48px));
    border-radius: var(--r-xl);
    padding: 26px 24px;
    transform: translate(-50%, -46%) scale(0.96);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.24s ease;
  }
  .modal.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .modal-handle { display: none; }
  .chat-shell { height: calc(100dvh - var(--header-h) - var(--bbar) - 140px); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .admin-stat-grid { grid-template-columns: repeat(4, 1fr); }
  .kyc-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .card-grid .trip-card { margin-top: 0; }
  .trust-strip { gap: 14px 22px; padding: 18px 20px; }
}

@media (min-width: 1024px) {
  .driver-panel { grid-template-columns: 0.95fr 1.05fr; gap: 40px; }
  .hero-title { font-size: 56px; }
}

@media (min-width: 1200px) {
  :root { --pad-page: 40px; }
  .hero { padding: 34px 0 132px; }
  .hero-inner { padding-top: 52px; }
  .app-card { padding: 40px 38px 0; }
  .phone-mock { width: 236px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   14. SUPPORT PAGES, FAQ & RATINGS
   ========================================================================== */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }

.support-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 32px 0 8px; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
}
.support-card h2 { font-size: 18px; font-weight: var(--fw-black); letter-spacing: -0.02em; margin: 0 0 4px; }
.support-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; max-width: 52ch; }
.support-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.support-actions .btn { font-size: 13px; }

.faq-wrap { max-width: 820px; }
.faq-group { margin-top: 30px; }
.faq-group h2 {
  font-size: 12px; font-weight: var(--fw-black); letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 8px; overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 16px; cursor: pointer; font-size: 14.5px; font-weight: var(--fw-bold);
  color: var(--primary); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico {
  flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--navy-tint); }
.faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.faq-a { padding: 0 16px 16px; }
.faq-a p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }

/* Passenger rating — radio stars, filled up to the chosen score. */
.star-field { border: 0; padding: 0; margin: 0 0 18px; }
.star-field legend { padding: 0; margin-bottom: 2px; }
.star-rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-top: 6px; }
.star-rate-label {
  cursor: pointer; color: var(--border-2); padding: 4px; border-radius: 8px;
  line-height: 0; transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.star-rate-label:hover { transform: scale(1.06); }
.star-rate-label .ico { width: 32px; height: 32px; }
.star-rate-input:checked ~ .star-rate-label { color: var(--amber); }
.star-rate-input:checked ~ .star-rate-label .ico { fill: currentColor; }
.star-rate-input:focus-visible + .star-rate-label { outline: 2px solid var(--primary); outline-offset: 1px; }
.star-rate-legend { font-size: 13px; color: var(--muted); margin-top: 6px; }

@media (max-width: 560px) {
  .support-card { padding: 18px; }
  .support-actions { width: 100%; }
  .support-actions .btn { flex: 1 1 auto; justify-content: center; }
  .star-rate-label .ico { width: 28px; height: 28px; }
}

/* ==========================================================================
   15. SUBSCRIPTIONS · BOOKING PAYMENTS · TICKETS · RESCHEDULES
   ========================================================================== */
.trip-rescheduled {
  display: flex; align-items: center; gap: 5px;
  margin: 5px 0 0; font-size: 12px; font-weight: var(--fw-semi); color: var(--amber);
}
.trip-rescheduled .ico { color: currentColor; }
.trip-closed-note {
  display: flex; align-items: center; gap: 5px;
  margin: 5px 0 0; font-size: 12px; font-weight: var(--fw-semi); color: var(--error);
}
.trip-closed-note .ico { color: currentColor; }

/* Driver plan picker ------------------------------------------------------- */
.plan-fieldset { border: 0; padding: 0; margin: 0; }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 6px 0 18px; }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 18px 16px 16px; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid var(--border-2); border-radius: var(--r-lg);
  color: inherit; text-decoration: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
.plan-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.plan-card:has(.plan-radio:checked),
.plan-card.is-selected {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--navy-tint);
}
.plan-card:has(.plan-radio:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.plan-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.plan-radio {
  position: absolute; top: 15px; right: 14px; width: 20px; height: 20px;
  margin: 0; accent-color: var(--primary); cursor: pointer;
}
.plan-tag {
  align-self: flex-start; margin-bottom: 4px; padding: 3px 9px;
  background: var(--accent-strong); color: #fff; border-radius: 99px;
  font-size: 10.5px; font-weight: var(--fw-black); letter-spacing: 0.05em; text-transform: uppercase;
}
.plan-name { font-size: 18px; font-weight: var(--fw-black); color: var(--primary); padding-right: 26px; }
.plan-duration { font-size: 12.5px; color: var(--muted); font-weight: var(--fw-med); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 7px; font-size: 28px; line-height: 1.1; font-weight: var(--fw-black); color: var(--text); }
.plan-price s { font-size: 13px; font-weight: var(--fw-med); color: var(--muted); }
.plan-note { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.plan-selected {
  display: none; align-self: flex-start; margin-top: 8px; padding: 3px 9px;
  border-radius: 99px; background: var(--navy-tint); color: var(--primary);
  font-size: 10.5px; font-weight: var(--fw-black); letter-spacing: 0.04em; text-transform: uppercase;
}
.plan-card.is-selected .plan-selected { display: inline-flex; }
.plan-includes {
  display: flex; flex-direction: column; gap: 5px; margin-bottom: 20px; padding: 15px 16px;
  background: var(--surface, #f7f7fb); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 13px; color: var(--muted);
}
.plan-includes strong { color: var(--text); margin-bottom: 2px; }
.plan-includes span::before { content: "✓"; color: var(--success-deep); font-weight: var(--fw-black); margin-right: 8px; }

/* Pay-now / pay-on-boarding choice ---------------------------------------- */
.pay-choice { border: 0; padding: 0; margin: 4px 0 18px; }
.pay-choice legend { margin-bottom: 8px; }
.pay-option {
  position: relative; display: flex; align-items: flex-start; gap: 11px;
  margin-bottom: 9px; padding: 14px 14px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--border-2); border-radius: var(--r-md);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.pay-option:hover { border-color: var(--primary); }
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--navy-tint); }
.pay-option:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.pay-option input { flex: 0 0 auto; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
.pay-option-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-option-title { font-size: 14.5px; font-weight: var(--fw-bold); color: var(--text); }
.pay-option-sub { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pay-option-badge {
  margin-left: auto; flex: 0 0 auto; align-self: center;
  padding: 4px 8px; border-radius: 99px; background: var(--accent-strong); color: #fff;
  font-size: 10px; font-weight: var(--fw-black); letter-spacing: 0.05em; text-transform: uppercase;
}
.pay-choice .field-hint { margin-top: 4px; }

/* Anonymous in-ride incident report --------------------------------------- */
.report-page .container { max-width: 780px; }
.report-shell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: 26px;
}
.report-shell > .back-link { display: inline-flex; margin-bottom: 16px; }
.report-head { margin-bottom: 16px; }
.report-eyebrow {
  display: flex; align-items: center; gap: 6px; margin: 0 0 5px;
  color: var(--accent-strong); font-size: 11px; font-weight: var(--fw-black);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.report-title { font-size: clamp(24px, 5vw, 32px); font-weight: var(--fw-black); letter-spacing: -0.03em; }
.report-sub { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.report-shell .notice { display: flex; align-items: flex-start; gap: 9px; }
.report-shell .notice .ico { margin: 1px 0 0; flex: 0 0 auto; }
.report-errors { margin: 5px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.report-trip {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 18px 0; padding: 14px 15px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(6, 0, 87, 0.035), rgba(237, 23, 7, 0.035));
}
.report-trip-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.report-trip-route { font-size: 18px; font-weight: var(--fw-black); color: var(--primary); letter-spacing: -0.025em; }
.report-trip-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 12.5px; color: var(--muted); }
.report-trip-meta .ico { color: var(--accent-strong); }
.report-trip-meta strong { color: var(--text); }
.report-choice { border: 0; padding: 0; margin: 20px 0 18px; }
.report-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.report-option {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--border-2); border-radius: var(--r-md);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.report-option:hover { border-color: var(--primary); }
.report-option:has(input:checked) { border-color: var(--primary); background: var(--navy-tint); }
.report-option:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.report-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
.report-option-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.report-option-title { font-size: 14px; font-weight: var(--fw-bold); color: var(--text); }
.report-option-sub { font-size: 12px; line-height: 1.4; color: var(--muted); }
.report-optional { font-weight: var(--fw-med); color: var(--muted); }
.report-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.report-actions .btn { width: 100%; }
@media (min-width: 560px) {
  .report-actions { flex-direction: row-reverse; justify-content: flex-start; }
  .report-actions .btn { width: auto; }
  .report-actions .btn-primary { min-width: 220px; }
}
@media (max-width: 560px) {
  .report-shell { padding: 20px 16px; }
  .report-options { grid-template-columns: 1fr; }
  .report-trip-route { font-size: 17px; }
}

/* Printable boarding ticket ------------------------------------------------ */
.ticket-page { padding-bottom: 40px; }
.ticket-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ticket-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.ticket-list-head .page-title { margin: 8px 0 4px; }
.ticket-list-head .back-link { display: inline-block; margin-bottom: 2px; }
.ticket-quick-verify { width: min(100%, 360px); padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-xs); }
.ticket-quick-verify label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: var(--fw-black); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.ticket-quick-verify > div { display: flex; gap: 7px; }
.ticket-quick-verify input { flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.ticket-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ticket-list { display: grid; gap: 12px; }
.driver-ticket { padding: 17px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-xs); }
.driver-ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.driver-ticket-route { margin: 2px 0 0; font-size: 18px; line-height: 1.25; font-weight: var(--fw-black); letter-spacing: -0.02em; color: var(--primary); }
.driver-ticket-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.driver-ticket-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 14px; border-top: 1px solid var(--line); }
.driver-ticket-grid > div { min-width: 0; padding: 12px 14px 0 0; }
.driver-ticket-grid > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.driver-ticket-grid span { display: block; margin-bottom: 3px; font-size: 10px; font-weight: var(--fw-black); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.driver-ticket-grid strong, .driver-ticket-grid small, .driver-ticket-grid a { display: block; overflow-wrap: anywhere; }
.driver-ticket-grid strong { font-size: 13px; color: var(--text); }
.driver-ticket-grid small { margin-top: 1px; font-size: 11px; color: var(--muted); }
.driver-ticket-grid a { margin-top: 1px; font-size: 11.5px; color: var(--primary); }
.driver-ticket-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.05em; color: var(--primary) !important; }
.ticket-copy { border: 0; padding: 0; margin-top: 2px; background: none; color: var(--accent-strong); font: inherit; font-size: 11.5px; font-weight: var(--fw-bold); text-decoration: underline; cursor: pointer; }
.passenger-ticket { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 0 10px; font-size: 12px; }
.passenger-ticket span { font-size: 10px; font-weight: var(--fw-black); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.passenger-ticket strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.05em; color: var(--primary); }
.passenger-ticket a { font-size: 11.5px; font-weight: var(--fw-bold); color: var(--accent-strong); }
.passenger-ticket .ticket-copy { margin-top: 0; font-size: 11.5px; }
.driver-ticket-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 760px) {
  .ticket-list-head { align-items: stretch; }
  .ticket-quick-verify { width: 100%; }
  .driver-ticket-grid { grid-template-columns: 1fr 1fr; }
  .driver-ticket-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .driver-ticket-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .driver-ticket { padding: 14px; }
  .driver-ticket-grid { grid-template-columns: 1fr; }
  .driver-ticket-grid > div, .driver-ticket-grid > div + div { padding: 9px 0; border-left: 0; }
  .driver-ticket-grid > div + div { border-top: 1px solid var(--line); }
  .driver-ticket-actions { justify-content: stretch; }
  .driver-ticket-actions .btn { flex: 1 1 auto; }
}
.boarding-ticket {
  max-width: 780px; margin: 0 auto; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.ticket-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 25px 24px 20px; color: #fff;
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(237, 23, 7, 0.4), transparent 60%),
    linear-gradient(135deg, #060057, #0b0b76 65%, #170a68);
}
.ticket-eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: var(--fw-black); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.ticket-title { margin: 0; color: #fff; font-size: clamp(23px, 5vw, 34px); line-height: 1.15; font-weight: var(--fw-black); letter-spacing: -0.03em; text-shadow: 0 1px 2px rgba(0,0,0,0.18); }
.ticket-sub { display: block; margin: 5px 0 0; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,0.72); }
.ticket-status {
  flex: 0 0 auto; align-self: center; padding: 7px 11px; border-radius: 99px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  font-size: 11.5px; font-weight: var(--fw-black); letter-spacing: 0.02em;
}
.ticket-status.is-paid { background: #16a34a; border-color: #16a34a; }
.ticket-status.is-confirmed { background: rgba(255,255,255,0.16); }
.ticket-status.is-pending { background: #b45309; border-color: #b45309; }
.ticket-status.is-refund { background: #b91c1c; border-color: #b91c1c; }
.ticket-status.is-cancelled { background: #6b7280; border-color: #6b7280; }
.ticket-route {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  padding: 24px; border-bottom: 1px dashed var(--border-2); background: #fbfbfd;
}
.ticket-stop { min-width: 0; }
.ticket-stop--to { text-align: right; }
.ticket-stop strong { display: block; font-size: clamp(19px, 4vw, 25px); line-height: 1.2; font-weight: var(--fw-black); color: var(--primary); }
.ticket-stop small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.ticket-label { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: var(--fw-black); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ticket-route-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-tint); color: var(--primary); }
.ticket-route-arrow .ico { width: 22px; height: 22px; }
.ticket-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 8px 24px 20px;
}
.ticket-grid > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticket-grid > div:nth-child(odd) { padding-right: 16px; }
.ticket-grid > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.ticket-grid dt { font-size: 10.5px; font-weight: var(--fw-black); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.ticket-grid dd { margin: 0; font-size: 14px; font-weight: var(--fw-semi); color: var(--text); overflow-wrap: anywhere; }
.ticket-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 24px; background: #f7f7fb; border-top: 1px solid var(--line);
}
.ticket-code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; letter-spacing: 0.08em; color: var(--primary); }
.ticket-foot .ticket-sub { color: var(--muted); }
.ticket-qr-box { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 0 auto; }
.ticket-qr { width: 160px; height: 160px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-xs); }
.ticket-qr img, .ticket-qr canvas { display: block; width: 100% !important; height: 100% !important; }
.ticket-qr-label { font-size: 10px; font-weight: var(--fw-black); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ticket-barcode { display: flex; align-items: stretch; gap: 2px; height: 44px; opacity: 0.8; }
.ticket-barcode span { display: block; background: var(--primary); }
.ticket-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ticket-actions .btn { width: auto; }
.ticket-pay-form { max-width: 780px; margin: 0 auto 16px; }
.ticket-pay-form .btn { width: 100%; }
.ticket-verify-shell { max-width: 640px; margin: 0 auto; }
.ticket-verify-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.ticket-verify-brand { text-align: center; margin-bottom: 20px; }
.ticket-verify-icon { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 16px; background: var(--navy-tint); color: var(--primary); }
.ticket-verify-icon.valid { background: var(--success-tint); color: var(--success-deep); }
.ticket-verify-icon.pending { background: var(--amber-bg); color: var(--amber); }
.ticket-verify-icon.invalid { background: var(--accent-tint); color: var(--accent-strong); }
.ticket-verify-route { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; border-radius: 12px; background: var(--bg-2); font-size: clamp(17px, 3vw, 22px); font-weight: var(--fw-black); color: var(--primary); text-align: center; }
.ticket-verify-route strong { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: #fff; color: var(--primary); }
.ticket-verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 16px 0 0; }
.ticket-verify-grid > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.ticket-verify-grid > div:nth-child(odd) { padding-right: 14px; }
.ticket-verify-grid > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.ticket-verify-grid dt { margin-bottom: 2px; font-size: 10px; font-weight: var(--fw-black); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ticket-verify-grid dd { margin: 0; font-size: 13.5px; font-weight: var(--fw-semi); color: var(--text); overflow-wrap: anywhere; }
.ticket-verify-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; color: var(--primary) !important; }
.ticket-verify-foot { margin: 18px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); text-align: center; }
.ticket-verify-empty { padding: 24px; text-align: center; color: var(--muted); }
.ticket-verify-empty .ico { width: 38px; height: 38px; color: var(--accent-strong); }
@media (max-width: 520px) {
  .ticket-verify-card { padding: 20px 17px; }
  .ticket-verify-grid { grid-template-columns: 1fr; }
  .ticket-verify-grid > div, .ticket-verify-grid > div:nth-child(odd), .ticket-verify-grid > div:nth-child(even) { padding: 9px 0; border-left: 0; }
}

@media (min-width: 640px) {
  .plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan-card { padding: 18px 15px 16px; }
  .plan-price { font-size: 24px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .ticket-head, .ticket-route, .ticket-grid, .ticket-foot { padding-left: 17px; padding-right: 17px; }
  .ticket-grid { grid-template-columns: 1fr; }
  .ticket-grid > div, .ticket-grid > div:nth-child(odd), .ticket-grid > div:nth-child(even) {
    padding: 10px 0; border-left: 0;
  }
  .ticket-foot { flex-direction: column; align-items: flex-start; }
  .ticket-qr-box { align-items: flex-start; }
  .ticket-barcode { height: 34px; }
}

/* Print-like geometry used for downloaded ticket PNGs. The capture runs at a
   desktop width so the ticket keeps the compact print layout instead of the
   stacked mobile view. */
.ticket-export {
  width: 780px !important;
  max-width: 780px !important;
  margin: 0 !important;
  border: 2px solid #111 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}
.ticket-export .ticket-head { padding: 25px 24px 20px !important; }
.ticket-export .ticket-route { padding: 24px !important; }
.ticket-export .ticket-grid {
  grid-template-columns: 1fr 1fr !important;
  padding: 8px 24px 20px !important;
}
.ticket-export .ticket-grid > div {
  padding: 12px 0 !important;
  border-left: 0 !important;
  border-bottom: 1px solid var(--line) !important;
}
.ticket-export .ticket-grid > div:nth-child(odd) { padding-right: 16px !important; }
.ticket-export .ticket-grid > div:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--line) !important; }
.ticket-export .ticket-foot {
  flex-direction: row !important;
  align-items: center !important;
  padding: 18px 24px !important;
}
.ticket-export .ticket-qr-box { align-items: center !important; }

@media print {
  .topbar, .bottom-bar, .site-footer, .ticket-toolbar, .ticket-actions, .ticket-pay-form,
  .notice, .flash-stack, .toast, .back-link { display: none !important; }
  body { background: #fff !important; }
  .page, main { padding: 0 !important; margin: 0 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .boarding-ticket { max-width: 100%; border: 2px solid #111; border-radius: 0; box-shadow: none; }
  .ticket-head { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ==========================================================================
   16. SEARCHABLE LOCATION PICKER
   ========================================================================== */
/* The native select stays in the form (hidden only after JS upgrades it) and
   the trigger opens a searchable sheet. The sheet deliberately opens without
   focusing the search field, so a phone keyboard never covers the list. */
.loc-picker { position: relative; width: 100%; min-width: 0; }
.loc-picker-native { display: none !important; }

.loc-picker-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: var(--h-input); padding: 12px 15px;
  font-family: var(--font); font-size: 16px; font-weight: var(--fw-med); line-height: 1.35;
  color: var(--text); text-align: left;
  background: #fff; border: 1.5px solid var(--border-2); border-radius: var(--r-input);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.loc-picker-trigger:hover { border-color: #C3CBD6; background: #fff; }
.loc-picker-trigger:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(6, 0, 87, 0.09);
  outline: none;
}
.loc-picker-trigger.is-placeholder .loc-picker-value { color: var(--muted-2); font-weight: var(--fw-reg); }
.loc-picker-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-picker-chevron {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  color: var(--muted); pointer-events: none;
  transition: transform 0.2s var(--ease);
}
.loc-picker-trigger[aria-expanded="true"] .loc-picker-chevron { transform: rotate(180deg); }
.loc-picker-trigger.is-invalid { border-color: var(--error); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08); }
.loc-picker-error { margin-top: 6px; color: var(--error); font-size: 12.5px; font-weight: var(--fw-semi); }

/* Home search card: match the borderless route rows. */
.route-field .loc-picker-trigger {
  min-height: 30px; padding: 1px 24px 1px 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-size: 16.5px; font-weight: var(--fw-semi);
}
.route-field .loc-picker-trigger:hover { border: 0; background: transparent; }
.route-field .loc-picker-trigger:focus-visible { outline: none; box-shadow: none; }
.route-field .loc-picker-trigger.is-invalid { border: 0; color: var(--error); box-shadow: none; }
.route-field .loc-picker-error { margin-top: 4px; }

/* Driver share-ride: the field already draws its own bordered row. */
.loc-field .loc-picker { flex: 1 1 auto; width: auto; min-width: 0; }
.loc-field .loc-picker-trigger {
  min-height: 46px; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-size: 16px; font-weight: var(--fw-semi);
}
.loc-field .loc-picker-trigger:hover { border: 0; background: transparent; }
.loc-field .loc-picker-trigger:focus-visible { outline: none; box-shadow: none; }
.loc-field .loc-picker-trigger.is-invalid { border: 0; color: var(--error); box-shadow: none; }
.loc-field .loc-picker-error { margin-top: 2px; }

/* Sheet + scrim ------------------------------------------------------------ */
.loc-layer { position: fixed; inset: 0; z-index: 140; }
.loc-scrim {
  position: absolute; inset: 0;
  background: rgba(6, 0, 87, 0.58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.loc-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  height: 88vh; height: min(88dvh, 780px);
  background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-modal);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden; outline: none;
  transform: translateY(102%);
  transition: transform 0.34s var(--ease);
}
.loc-layer.is-open .loc-scrim { opacity: 1; }
.loc-layer.is-open .loc-sheet { transform: translateY(0); }
.loc-grab { width: 42px; height: 4px; flex: 0 0 auto; margin: 10px auto 0; border-radius: 99px; background: var(--border-2); }
.loc-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 12px 20px 0; flex: 0 0 auto;
}
.loc-eyebrow { margin: 0 0 3px; font-size: 10.5px; font-weight: var(--fw-black); letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.loc-title { margin: 0; font-size: 22px; line-height: 1.15; font-weight: var(--fw-black); letter-spacing: -0.02em; color: var(--primary); }
.loc-close {
  display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px;
  border-radius: 50%; background: var(--navy-tint); color: var(--primary);
  transition: background 0.16s ease, color 0.16s ease;
}
.loc-close:hover { background: var(--navy-tint-2); color: var(--primary); }

.loc-search-wrap { position: relative; flex: 0 0 auto; margin: 16px 20px 8px; }
.loc-search-wrap > .ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.loc-search {
  width: 100%; min-height: 48px; padding: 11px 14px 11px 42px;
  font-family: var(--font); font-size: 16px; font-weight: var(--fw-med);
  color: var(--text); background: #fff;
  border: 1.5px solid var(--border-2); border-radius: var(--r-input);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.loc-search::placeholder { color: var(--muted-2); font-weight: var(--fw-reg); }
.loc-search:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(6, 0, 87, 0.09); }
.loc-hint { flex: 0 0 auto; margin: 0 22px 10px; font-size: 12.5px; font-weight: var(--fw-med); color: var(--muted); }

.loc-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.loc-group + .loc-group { margin-top: 4px; }
.loc-group-title {
  position: sticky; top: 0; z-index: 1;
  padding: 10px 8px 6px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11px; font-weight: var(--fw-black); letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--primary);
}
.loc-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 46px; padding: 10px;
  border-radius: 12px; background: transparent;
  font-size: 15px; font-weight: var(--fw-med); line-height: 1.35; color: var(--text);
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}
.loc-option:hover { background: var(--navy-tint); }
.loc-option:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--navy-tint); }
.loc-option.is-selected { background: var(--navy-tint); color: var(--primary); font-weight: var(--fw-bold); }
.loc-option-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.loc-option-check {
  display: inline-flex; flex: 0 0 auto; color: var(--accent-strong);
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s var(--ease);
}
.loc-option.is-selected .loc-option-check { opacity: 1; transform: none; }
.loc-option.loc-clear {
  margin-bottom: 4px; border-radius: 0; border-bottom: 1px solid var(--line);
  color: var(--accent-strong); font-weight: var(--fw-semi);
}
.loc-option.loc-clear .loc-option-check { display: none; }

.loc-empty {
  flex: 1 1 auto; display: grid; place-content: center; gap: 6px;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center; font-size: 14px; font-weight: var(--fw-med); color: var(--muted);
}

@media (max-width: 380px) {
  .loc-head { padding-left: 16px; padding-right: 16px; }
  .loc-search-wrap { margin-left: 16px; margin-right: 16px; }
  .loc-hint { margin-left: 18px; margin-right: 18px; }
  .loc-title { font-size: 20px; }
  .loc-option { min-height: 44px; font-size: 14.5px; }
}

@media (min-width: 768px) {
  .loc-sheet {
    left: 50%; right: auto; top: 50%; bottom: auto;
    width: min(620px, calc(100vw - 56px));
    height: 78vh; height: min(78vh, 720px);
    border-radius: var(--r-xl);
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.97);
    transition: transform 0.3s var(--ease), opacity 0.24s ease;
  }
  .loc-layer.is-open .loc-sheet { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .loc-grab { display: none; }
  .loc-head { padding-top: 22px; }
  .loc-list { padding-bottom: 20px; }
}

/* ==========================================================================
   17. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .hero-eyebrow, .js .hero-title, .js .hero-sub, .js .hero-points, .booking-wrap {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .timeline .tl-line { transform: scaleY(1) !important; }
  .pulse-dot::after { display: none; }
}

/* ==========================================================================
   18. PWA INSTALL PROMPT
   ========================================================================== */
.pwa-install {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 7px 8px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(6, 0, 87, 0.18);
  animation: pwa-rise 0.28s ease both;
}
.pwa-install[hidden] { display: none; }
@keyframes pwa-rise {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.pwa-install-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  background: none;
  border: 0;
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.pwa-install-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  flex: none;
}
.pwa-install-copy { display: grid; line-height: 1.25; }
.pwa-install-copy strong { font-size: 0.88rem; font-weight: 700; }
.pwa-install-copy small { font-size: 0.74rem; color: var(--muted); }
.pwa-install-x {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.pwa-install-x:hover { color: var(--text); }
@media (min-width: 1024px) {
  .pwa-install {
    left: 24px;
    bottom: 24px;
    transform: none;
    animation: none;
  }
}

/* Travel date field: the native picker stays the clickable control and a
   DD/MM/YYYY display sits inside it. */
.date-field { position: relative; }
.date-field .date-native { color: transparent; -webkit-text-fill-color: transparent; cursor: pointer; }
.date-field .date-native::-webkit-datetime-edit,
.date-field .date-native::-webkit-datetime-edit-fields-wrapper { color: transparent; }
.date-field .date-native::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.date-display {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  pointer-events: none; white-space: nowrap;
  font-family: var(--font); font-size: 16px; font-weight: var(--fw-med);
  color: var(--text);
}
.date-display.is-placeholder { color: var(--muted-2); font-weight: var(--fw-reg); }

/* Coming-soon logistics actions stay visible but are not links yet. */
.media-cta--disabled,
.media-cta--disabled:hover,
.media-cta--disabled:active {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.acc-disabled {
  display: block;
  padding: 8px 0;
  font-size: 14.5px;
  font-weight: var(--fw-med);
  color: var(--muted-2);
  cursor: not-allowed;
}

/* Profile photo / company logo editor ------------------------------------- */
.avatar-card { max-width: 580px; margin: 0 auto; }
.avatar-editor {
  display: grid; grid-template-columns: 156px minmax(0, 1fr);
  gap: 22px; align-items: start; margin-top: 20px;
}
.avatar-editor-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.avatar-editor-photo {
  width: 144px; height: 144px; object-fit: cover; border-radius: 50%;
  border: 3px solid #fff; background: var(--bg-2);
  box-shadow: 0 6px 22px rgba(6, 0, 87, 0.14);
}
.avatar-editor-photo.is-logo { border-radius: 22px; }
@media (max-width: 560px) {
  .avatar-editor { grid-template-columns: 1fr; }
  .avatar-editor-preview { justify-self: center; }
}

.bank-pay-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin: 6px 0 18px;
}
.bank-pay-head h2,
.bank-pay-head h3 {
  margin: 8px 0 8px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.bank-pay-head h3 { font-size: 20px; }
.bank-pay-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.bank-plan-grid { margin-top: 14px; }
.bank-pay-instruction { margin-top: 20px; }
.bank-details {
  display: grid;
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bank-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
}
.bank-details dt {
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.bank-details dd {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 14.5px;
  font-weight: var(--fw-bold);
  color: var(--text);
  text-align: right;
}
.bank-details dd span { letter-spacing: 0.03em; }
.bank-copy {
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  background: var(--navy-tint);
  color: var(--primary);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: var(--fw-bold);
  cursor: pointer;
}
.bank-copy:hover { background: rgba(6, 0, 87, 0.13); }
.bank-pay-note { margin: 0 0 16px; }
.bank-pay-note p { margin: 0 0 4px; font-size: 14px; }
.bank-pay-note p.muted { font-size: 12.5px; line-height: 1.55; }
@media (max-width: 520px) {
  .bank-details > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bank-details dd { text-align: left; }
}
