/* =====================================================================
   Car Rental Manager - Design tokens
   Palette: deep fleet-navy sidebar, signal-amber accent (dispatch/radio
   feel), teal for "on duty / live" states. Avoids default cream+terracotta
   and near-black+neon looks - this should read like ops software, not a
   marketing site.
   ===================================================================== */
:root {
  --navy-950: #0f1720;
  --navy-900: #151f2c;
  --navy-800: #1c2836;
  --navy-700: #253244;
  --navy-600: #33445a;
  --slate-100: #f3f5f8;
  --slate-200: #e6eaf0;
  --slate-400: #97a3b6;
  --slate-600: #5b6b82;
  --accent: #e8912c;       /* dispatch amber */
  --accent-dark: #c9741a;
  --live: #16a394;         /* on-duty / live teal */
  --live-dark: #0f7d71;
  --info: #2f6fed;         /* completed-tab blue */
  --info-dark: #1d4fbd;
  --danger: #d64545;
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(232,145,44,0.25); }

body {
  font-family: var(--font-body);
  background: var(--slate-100);
  color: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .fw-display { font-family: var(--font-display); }

a { text-decoration: none; }

/* ---------------------------------------------------------------------
   Admin shell
   --------------------------------------------------------------------- */
.topbar {
  background: var(--navy-950);
  height: 60px;
  z-index: 1030;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.navbar-logo { height: 34px; width: auto; display: block; }
.notif-badge {
  position: absolute; top: -6px; right: -10px; font-size: 0.6rem;
}

.app-wrapper { display: flex; padding-top: 60px; min-height: 100vh; }

.app-sidebar {
  width: 250px;
  min-width: 250px;
  background: var(--navy-900);
  position: fixed;
  top: 60px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 1020;
  transition: transform .2s ease;
}
.app-sidebar .nav-section {
  color: var(--slate-400);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: .08em;
  font-weight: 700;
  padding: 14px 14px 6px;
}
.app-sidebar .nav-link {
  color: var(--slate-200);
  padding: 9px 14px;
  border-radius: 8px;
  margin: 1px 6px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-sidebar .nav-link i { width: 18px; text-align: center; color: var(--slate-400); }
.app-sidebar .nav-link:hover { background: var(--navy-800); color: #fff; }
.app-sidebar .nav-link.active { background: var(--accent); color: var(--navy-950); font-weight: 600; }
.app-sidebar .nav-link.active i { color: var(--navy-950); }

.app-content {
  margin-left: 250px;
  padding: 24px;
  width: 100%;
}

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.show { transform: translateX(0); }
  .app-content { margin-left: 0; }
}

/* Admin data tables: comfortable tap targets and breathing room for
   action-button clusters (edit/reset-password/delete) on small screens.
   .table-responsive already provides horizontal scroll as a fallback. */
@media (max-width: 767.98px) {
  .app-content { padding: 16px 12px; }
  .table td, .table th { white-space: nowrap; }
  td.text-end form, td.text-end a.btn, td.text-end button.btn { margin-left: 2px; margin-bottom: 2px; }
}
.table td .btn, .table td form .btn { min-width: 34px; min-height: 34px; }

/* ---------------------------------------------------------------------
   Cards / KPIs
   --------------------------------------------------------------------- */
.kpi-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 1px 3px rgba(15,23,32,0.04);
  height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,32,0.08); }
.kpi-card .kpi-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--navy-950); line-height: 1.1; }
.kpi-card .kpi-label { color: var(--slate-600); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .04em; }
.kpi-card .kpi-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,145,44,0.12); color: var(--accent-dark); font-size: 1.1rem;
  flex-shrink: 0;
}
.kpi-card-icon { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.kpi-card-icon .kpi-value { font-size: 1.5rem; }
.kpi-card-icon .kpi-label { font-size: 0.72rem; }
.bg-icon-blue  { background: rgba(37,99,235,0.12);  color: #2563eb; }
.bg-icon-amber { background: rgba(245,158,11,0.14); color: #b45309; }
.bg-icon-teal  { background: rgba(22,163,148,0.14); color: var(--live-dark, #0f766e); }
.bg-icon-green { background: rgba(34,197,94,0.14);  color: #15803d; }
.bg-icon-red   { background: rgba(239,68,68,0.14);  color: #b91c1c; }

.card {
  border-radius: 14px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 1px 3px rgba(15,23,32,0.04);
  transition: box-shadow 180ms ease;
}
.card-header { background: #fff; border-bottom: 1px solid var(--slate-200); font-weight: 600; }

.table thead th {
  text-transform: uppercase; font-size: 0.72rem; letter-spacing: .05em;
  color: var(--slate-600); border-bottom-width: 1px; white-space: nowrap;
  background: #fafbfc;
}
.table td { vertical-align: middle; }
.table-hover tbody tr { transition: background-color 120ms ease; }
.table-hover tbody tr:hover { background-color: rgba(232,145,44,0.06); }

.btn {
  min-height: 40px;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 150ms ease;
  border-radius: 9px;
  font-weight: 600;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--navy-950); font-weight: 600; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-primary:focus-visible { outline-color: var(--navy-900); }
.btn-outline-primary { color: var(--accent-dark); border-color: var(--accent); }
.btn-outline-primary:hover { background: var(--accent); color: var(--navy-950); }

.badge { font-weight: 600; letter-spacing: .01em; padding: 5px 9px; }

.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.online { background: var(--live); box-shadow: 0 0 0 3px rgba(22,163,148,0.2); animation: pulse-dot 2s ease-in-out infinite; }
.status-dot.offline { background: var(--slate-400); }
.status-dot.stale { background: var(--danger); }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.empty-state { text-align: center; padding: 56px 24px; color: var(--slate-600); }
.empty-state i { font-size: 2.2rem; color: var(--slate-400); margin-bottom: 12px; display: block; }
.empty-state p { margin: 0; font-size: 0.92rem; }

/* ---------------------------------------------------------------------
   Driver mobile app
   --------------------------------------------------------------------- */
.driver-body { background: var(--slate-100); padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
.driver-topbar { background: var(--navy-950); height: 56px; padding-top: env(safe-area-inset-top, 0px); }
.driver-content { padding: calc(68px + env(safe-area-inset-top, 0px)) 12px 16px; max-width: 560px; margin: 0 auto; }

/* Driver app scales up gracefully on tablets/desktop instead of staying a
   phone-width strip - content column widens and booking cards move into
   a responsive grid at wider viewports. */
@media (min-width: 640px) {
  .driver-content { max-width: 720px; padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 992px) {
  .driver-content { max-width: 980px; padding-left: 28px; padding-right: 28px; }
}

.gps-indicator { color: var(--slate-400); transition: color 200ms ease; }
.gps-indicator.active { color: var(--live); }
.gps-indicator.error { color: var(--danger); }

/* -- Duty toggle: hero card at the top of the driver dashboard -- */
.duty-toggle-card {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 18px; margin-bottom: 14px;
  border: 1.5px solid var(--slate-200); background: #fff;
  box-shadow: 0 2px 10px rgba(15,23,32,0.05);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.duty-toggle-card.is-on {
  background: linear-gradient(135deg, rgba(22,163,148,0.14), rgba(22,163,148,0.04));
  border-color: var(--live);
  box-shadow: 0 6px 18px rgba(22,163,148,0.16);
}
.duty-toggle-card.is-off { background: #fff; border-color: var(--slate-200); }
.duty-toggle-main { display: flex; align-items: center; gap: 12px; }
.duty-toggle-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  background: var(--slate-100); color: var(--slate-400);
  transition: background-color 220ms ease, color 220ms ease;
}
.duty-toggle-card.is-on .duty-toggle-icon { background: rgba(22,163,148,0.16); color: var(--live-dark); }
.duty-toggle-label { font-weight: 700; font-size: 1.02rem; color: var(--navy-950); display: flex; align-items: center; gap: 7px; }
.duty-toggle-card.is-on .duty-toggle-label { color: var(--live-dark); }
.duty-toggle-sub { font-size: 0.78rem; color: var(--slate-600); margin-top: 2px; }
.duty-toggle-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slate-400); flex-shrink: 0; }
.duty-toggle-card.is-on .duty-toggle-dot { background: var(--live); box-shadow: 0 0 0 3px rgba(22,163,148,0.22); animation: pulse-dot 2s ease-in-out infinite; }

.duty-toggle-switch {
  position: relative; width: 56px; height: 32px; border-radius: 999px;
  border: none; background: var(--slate-400); flex-shrink: 0; cursor: pointer;
  transition: background-color 200ms ease; box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
.duty-toggle-card.is-on .duty-toggle-switch { background: var(--live); }
.duty-toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: left 200ms ease;
  display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: var(--slate-400);
}
.duty-toggle-card.is-on .duty-toggle-knob { left: 27px; color: var(--live-dark); }
.duty-toggle-switch:disabled { opacity: 0.6; cursor: wait; }

/* -- Current / active booking hero card -- */
.current-booking-card {
  border-radius: 18px; padding: 16px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  box-shadow: 0 8px 22px rgba(15,23,32,0.22); position: relative; overflow: hidden;
}
.current-booking-card::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px;
  border-radius: 50%; background: rgba(232,145,44,0.18); pointer-events: none;
}
.current-booking-eyebrow {
  display: flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 8px;
}
.current-booking-eyebrow .status-dot.online { box-shadow: 0 0 0 3px rgba(232,145,44,0.25); background: var(--accent); }
.current-booking-card .b-row { margin-bottom: 6px; }
.current-booking-card .b-meta { color: rgba(255,255,255,0.62); font-size: 0.78rem; }
.current-booking-card .cb-line { font-size: 0.86rem; color: rgba(255,255,255,0.92); margin-bottom: 5px; display: flex; align-items: flex-start; gap: 8px; }
.current-booking-card .cb-line i { color: var(--accent); width: 14px; margin-top: 3px; flex-shrink: 0; }
.current-booking-card .btn-primary { min-height: 42px; }

.driver-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--slate-200);
  display: flex; justify-content: space-around;
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 1040;
  box-shadow: 0 -2px 12px rgba(15,23,32,0.05);
}
.driver-bottom-nav a { color: var(--slate-600); text-align: center; font-size: 0.68rem; flex: 1; padding: 8px 0; min-height: 44px; transition: color 150ms ease; }
.driver-bottom-nav a i { display: block; font-size: 1.2rem; margin-bottom: 3px; transition: transform 150ms ease; }
.driver-bottom-nav a.active { color: var(--accent-dark); font-weight: 700; }
.driver-bottom-nav a.active i { transform: translateY(-2px); }

.btn { transition: transform 120ms ease, box-shadow 120ms ease, background-color 150ms ease; }
.btn:active { transform: scale(0.97); }

/* ---------------------------------------------------------------------
   Driver bookings page - header, sticky segmented tabs, booking cards
   --------------------------------------------------------------------- */
.driver-page-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.driver-page-title { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; color: var(--navy-950); margin: 0; }
.driver-page-sub { font-size: 0.78rem; color: var(--slate-600); margin-top: 1px; }

.driver-search-bar { position: relative; margin-bottom: 12px; }
.driver-search-bar i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate-400); font-size: 0.85rem; pointer-events: none; }
.driver-search-bar input {
  width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--slate-200);
  background: #fff; padding: 0 14px 0 38px; font-size: 0.88rem; color: var(--navy-900);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.driver-search-bar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,145,44,0.14); }

/* -- Driver bookings: segmented-control style tabs, sticky under the topbar -- */
.driver-tabs {
  position: sticky; z-index: 40;
  top: calc(56px + env(safe-area-inset-top, 0px) + 8px);
  display: flex; gap: 6px; background: var(--slate-200); border-radius: 14px;
  padding: 5px; margin-bottom: 18px; flex-wrap: nowrap; overflow-x: auto;
  -ms-overflow-style: none; scrollbar-width: none;
  box-shadow: 0 4px 14px rgba(15,23,32,0.06);
}
.driver-tabs::-webkit-scrollbar { display: none; }
.driver-tab {
  flex: 1 0 auto; text-align: center; padding: 10px 12px; border-radius: 10px;
  font-size: 0.82rem; font-weight: 600; color: var(--slate-600); white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
}
.driver-tab:active { transform: scale(0.97); }
.driver-tab:hover { color: var(--navy-900); }
.driver-tab.active { background: #fff; color: var(--navy-950); box-shadow: 0 2px 6px rgba(15,23,32,0.12); }
.driver-tab .driver-tab-count {
  font-size: 0.68rem; font-weight: 700; background: var(--slate-200); color: var(--slate-600);
  border-radius: 999px; padding: 1px 7px; min-width: 20px; line-height: 1.4;
}
.driver-tab.active .driver-tab-count { background: var(--accent); color: var(--navy-950); }
/* Each tab gets its own active-state color so the current selection reads
   at a glance: green = accepted/in-progress, red = not accepted, blue = completed. */
.driver-tab.accepted.active { color: var(--live-dark); }
.driver-tab.accepted.active .driver-tab-count { background: var(--live); color: #fff; }
.driver-tab.not-accept.active { color: var(--danger); }
.driver-tab.not-accept.active .driver-tab-count { background: var(--danger); color: #fff; }
.driver-tab.completed.active { color: var(--info-dark); }
.driver-tab.completed.active .driver-tab-count { background: var(--info); color: #fff; }

@media (max-width: 400px) {
  .driver-tab { font-size: 0.76rem; padding: 9px 8px; gap: 4px; }
  .driver-tab i { font-size: 0.78rem; }
}

/* Booking cards flow single-column on phones, then move into a responsive
   grid as the viewport widens so the list doesn't feel like a long phone
   strip stretched across a tablet/desktop screen. */
.booking-grid { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 640px) {
  .booking-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 992px) {
  .booking-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

.booking-card {
  background: #fff; border-radius: 16px; border: 1px solid var(--slate-200);
  padding: 16px; margin-bottom: 0; box-shadow: 0 1px 3px rgba(15,23,32,0.05);
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 120ms ease;
  display: flex; flex-direction: column;
}
.booking-card:active { box-shadow: 0 1px 2px rgba(15,23,32,0.06); transform: scale(0.995); }
@media (hover: hover) {
  .booking-card:hover { border-color: var(--slate-400); box-shadow: 0 6px 18px rgba(15,23,32,0.08); }
}
.booking-card .b-meta { font-size: 0.78rem; color: var(--slate-600); }
.booking-card .b-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; align-items: center; }
.booking-card .b-row .fw-bold { font-size: 0.95rem; letter-spacing: .01em; }
.booking-card .btn { min-height: 44px; }

/* Passenger row with an initials avatar for quicker visual scanning */
.booking-card .b-passenger { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.b-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--accent); font-weight: 700; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.booking-card .b-passenger-name { font-weight: 600; font-size: 0.9rem; color: var(--navy-950); line-height: 1.2; }
.booking-card .b-passenger-sub { font-size: 0.72rem; color: var(--slate-600); }

/* Pickup -> drop mini route with connecting line, like a trip timeline */
.b-route { display: flex; gap: 10px; margin-bottom: 12px; }
.b-route-markers { display: flex; flex-direction: column; align-items: center; padding-top: 3px; }
.b-route-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); flex-shrink: 0; }
.b-route-dot.drop { background: var(--danger); }
.b-route-line { width: 2px; flex: 1; min-height: 18px; background: var(--slate-200); margin: 4px 0; }
.b-route-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1; }
.b-route-text > div { font-size: 0.82rem; color: var(--navy-900); line-height: 1.35; overflow-wrap: anywhere; }
.b-route-text .b-route-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); font-weight: 700; display: block; margin-bottom: 2px; }

.booking-card .b-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.b-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 600;
  color: var(--slate-600); background: var(--slate-100); border-radius: 999px; padding: 5px 11px;
}
.b-chip i { font-size: 0.7rem; }

.booking-card .b-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }

.btn-lg-block { display: block; width: 100%; padding: 14px; font-size: 1.02rem; font-weight: 700; border-radius: 12px; min-height: 52px; }

/* -- Route map: start/end pins + direction arrows (admin + driver ride-route views) -- */
.route-pin span {
  display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); color: #fff; font-weight: 700; font-size: 11px;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.route-arrow i { filter: drop-shadow(0 0 1px #fff); }
.route-map-meta { font-size: 0.78rem; color: var(--slate-600); display: flex; align-items: center; gap: 6px; }
.route-map-meta .badge-snapped { background: rgba(22,163,148,0.14); color: var(--live-dark); font-weight: 600; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; }
.route-map-meta .badge-raw { background: rgba(232,145,44,0.14); color: var(--accent-dark); font-weight: 600; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; }

.otp-input {
  width: 52px; height: 58px; text-align: center; font-size: 1.6rem; font-weight: 700;
  border-radius: 10px; border: 1.5px solid var(--slate-200); transition: border-color 150ms ease, box-shadow 150ms ease;
}
.otp-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,145,44,0.15); }

.completion-step-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  color: var(--accent-dark); margin-bottom: 6px;
}

.signature-pad-wrap {
  position: relative; border: 1.5px dashed var(--slate-400); border-radius: 12px;
  background: #fafbfc; margin-bottom: 12px; overflow: hidden;
}
.signature-canvas { display: block; width: 100%; height: 160px; touch-action: none; cursor: crosshair; }
.signature-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--slate-400); font-size: 0.9rem; pointer-events: none;
}

/* Utility */
.text-live { color: var(--live-dark); }
.bg-live { background: var(--live); color: #fff; }
.cursor-pointer { cursor: pointer; }
.min-w-0 { min-width: 0; }

/* Status-colored accent bar on booking cards/rows when shown inside a
   tab-filtered list, so the active tab's color language carries through
   to each item (green = accepted/in-progress, red = not accepted, blue = completed). */
.booking-grid[data-tab="accepted"] .booking-card { border-left: 4px solid var(--live); }
.booking-grid[data-tab="not_accept"] .booking-card { border-left: 4px solid var(--danger); }
.booking-grid[data-tab="completed"] .booking-card { border-left: 4px solid var(--info); }

.b-package-chip {
  font-size: 0.7rem; font-weight: 700; color: var(--navy-900); background: var(--slate-100);
  border: 1px solid var(--slate-200); border-radius: 999px; padding: 4px 10px; white-space: nowrap; flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Booking detail "spec list" - clean label/value rows, like a duty slip
   --------------------------------------------------------------------- */
.spec-card { background: #fff; border-radius: 16px; border: 1px solid var(--slate-200); overflow: hidden; margin-bottom: 14px; }
.spec-card-header {
  background: var(--navy-950); color: #fff; font-weight: 700; font-size: 0.92rem;
  padding: 13px 16px; display: flex; align-items: center; gap: 8px;
}
.spec-card-header i { color: var(--accent); }
.spec-list { display: flex; flex-direction: column; }
.spec-row { display: flex; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--slate-100); }
.spec-row:last-child { border-bottom: none; }
.spec-label { flex: 0 0 40%; font-size: 0.78rem; color: var(--slate-600); padding-top: 1px; }
.spec-value { flex: 1; font-size: 0.88rem; font-weight: 700; color: var(--navy-950); line-height: 1.4; overflow-wrap: anywhere; }
.spec-value.muted { font-weight: 500; color: var(--slate-600); }
@media (max-width: 400px) {
  .spec-row { flex-direction: column; gap: 3px; }
  .spec-label { flex: none; }
}

/* ---------------------------------------------------------------------
   End Ride wizard: signature -> meter reading -> toll/parking receipts
   --------------------------------------------------------------------- */
.ride-wizard-steps { display: flex; align-items: center; gap: 4px; margin-bottom: 18px; }
.rw-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; color: var(--slate-400); text-align: center;
  position: relative;
}
.rw-step::after {
  content: ''; position: absolute; top: 13px; left: calc(50% + 20px); right: calc(-50% + 20px);
  height: 2px; background: var(--slate-200); z-index: 0;
}
.rw-step:last-child::after { display: none; }
.rw-step.done::after { background: var(--live); }
.rw-step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--slate-200); color: var(--slate-600);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem;
  position: relative; z-index: 1; transition: background-color 160ms ease, color 160ms ease;
}
.rw-step.active { color: var(--navy-950); }
.rw-step.active .rw-step-num { background: var(--accent); color: var(--navy-950); }
.rw-step.done { color: var(--live-dark); }
.rw-step.done .rw-step-num { background: var(--live); color: #fff; }
.auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at top left, var(--navy-800), var(--navy-950));
  position: relative; overflow: hidden; padding: 20px;
}
.auth-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; pointer-events: none; }
.auth-blob-1 { width: 320px; height: 320px; background: var(--brand-500, #2563eb); top: -80px; left: -80px; }
.auth-blob-2 { width: 260px; height: 260px; background: #f59e0b; bottom: -60px; right: -60px; }
.auth-card { background: #fff; border-radius: 20px; padding: 36px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); position: relative; z-index: 1; }
.auth-logo { height: 64px; width: auto; }
.driver-navbar-logo { height: 30px; width: auto; }

.auth-toggle { display: flex; background: #f1f3f7; border-radius: 12px; padding: 4px; gap: 4px; }
.auth-toggle-btn {
  flex: 1; border: none; background: transparent; padding: 10px 8px; border-radius: 9px;
  font-weight: 600; font-size: 0.85rem; color: #6b7280; cursor: pointer; transition: all .18s ease;
  min-height: 44px;
}
.auth-toggle-btn.active { background: #fff; color: var(--navy-900, #111827); box-shadow: 0 2px 8px rgba(0,0,0,0.10); }
.auth-toggle-btn:not(.active):hover { color: #374151; }

.auth-input-group { position: relative; display: flex; align-items: center; }
.auth-input-icon {
  position: absolute; left: 14px; color: #9ca3af; font-size: 0.95rem; pointer-events: none;
}
.auth-input { padding-left: 42px !important; height: 48px; border-radius: 10px; }
.auth-input-eye {
  position: absolute; right: 6px; border: none; background: transparent; color: #9ca3af;
  width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.auth-input-eye:hover { color: #4b5563; background: #f3f4f6; }
.auth-pin-input { letter-spacing: 10px; font-weight: 700; font-size: 1.15rem; }

.auth-submit-btn { height: 48px; border-radius: 10px; font-weight: 600; letter-spacing: .2px; }
