/* ==========================================================================
   THEME DESIGN SYSTEM (LIGHT MODE DEFAULT & DARK MODE)
   ========================================================================== */
:root {
  /* Default: LIGHT MODE */
  --theme-mode: 'light';
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-sub: #f8fafc;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --header-bg: rgba(255, 255, 255, 0.92);
  --nav-bg: rgba(248, 250, 252, 0.96);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-subtle: #e2e8f0;
  --border-focus: #10b981;
  --text-main: #0f172a;
  --text-muted: #1e293b;
  --text-dim: #334155;
  --accent-emerald: #10b981;
  --accent-emerald-light: #059669;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-cyan: #0284c7;
  --accent-indigo: #4f46e5;
  --accent-amber: #d97706;
  --accent-amber-light: #f59e0b;
  --accent-rose: #e11d48;
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 4px 20px -2px rgba(16, 185, 129, 0.2);
  
  --bg-body-gradient: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);

  --bg-body-gradient-driver:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.03) 0%, transparent 50%);

  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-text: #0f172a;
  --modal-bg: #ffffff;
  --modal-overlay-bg: rgba(15, 23, 42, 0.5);
  --pill-bg: #e2e8f0;
  --chip-bg: #f1f5f9;
  --chip-border: #cbd5e1;
  --btn-secondary-bg: #f1f5f9;
  --btn-secondary-text: #1e293b;
  --btn-secondary-border: #cbd5e1;
  --table-th-bg: #f8fafc;
  --table-border: #e2e8f0;
  --telemetry-bg: #f8fafc;
  --telemetry-border: #e2e8f0;
  --metric-box-bg: #f8fafc;
  --route-box-bg: #f8fafc;
  --otp-group-bg: #f8fafc;
  --fare-banner-bg: #f8fafc;
  --kyc-item-bg: #f8fafc;
  --brand-title-gradient: linear-gradient(to right, #0f172a, #334155);
}

/* ==========================================================================
   DARK MODE THEME OVERRIDES
   ========================================================================== */
[data-theme="dark"], body.theme-dark {
  --theme-mode: 'dark';
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: rgba(18, 26, 44, 0.78);
  --bg-card-sub: rgba(10, 15, 29, 0.6);
  --bg-card-hover: rgba(28, 39, 65, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.75);
  --header-bg: rgba(15, 23, 42, 0.75);
  --nav-bg: rgba(15, 23, 42, 0.8);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: #10b981;
  --text-main: #f8fafc;
  --text-muted: #f1f5f9;
  --text-dim: #cbd5e1;
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fbbf24;
  --accent-rose: #f43f5e;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 25px -5px var(--accent-emerald-glow);
  
  --bg-body-gradient: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);

  --bg-body-gradient-driver:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.05) 0%, transparent 50%);

  --input-bg: rgba(10, 15, 29, 0.8);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-text: #f8fafc;
  --modal-bg: #111827;
  --modal-overlay-bg: rgba(0, 0, 0, 0.7);
  --pill-bg: rgba(0, 0, 0, 0.25);
  --chip-bg: rgba(255, 255, 255, 0.04);
  --chip-border: rgba(255, 255, 255, 0.08);
  --btn-secondary-bg: rgba(255, 255, 255, 0.08);
  --btn-secondary-text: #ffffff;
  --btn-secondary-border: rgba(255, 255, 255, 0.1);
  --table-th-bg: rgba(15, 23, 42, 0.6);
  --table-border: rgba(255, 255, 255, 0.08);
  --telemetry-bg: rgba(10, 15, 29, 0.85);
  --telemetry-border: rgba(255, 255, 255, 0.08);
  --metric-box-bg: rgba(10, 15, 29, 0.75);
  --route-box-bg: rgba(10, 15, 29, 0.75);
  --otp-group-bg: rgba(10, 15, 29, 0.85);
  --fare-banner-bg: rgba(10, 15, 29, 0.85);
  --kyc-item-bg: rgba(10, 15, 29, 0.75);
  --brand-title-gradient: linear-gradient(to right, #fff, #cbd5e1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  background-image: var(--bg-body-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header & Navigation */
header.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 4px 15px var(--accent-emerald-glow);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--brand-title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.city-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-emerald);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.theme-toggle-btn i {
  font-size: 0.9rem;
  color: #f59e0b;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle-btn i, body.theme-dark .theme-toggle-btn i {
  color: #38bdf8;
}

.lang-toggle-btn {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-emerald);
}

.user-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.user-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Tab Navigation Strip */
nav.app-tabs {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  overflow-x: auto;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--btn-secondary-bg);
}

.tab-btn.active {
  color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tab-btn .badge {
  background: var(--accent-rose);
  color: white;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

/* Main Container */
main.app-container {
  max-width: 1340px;
  margin: 1.5rem auto;
  padding: 0 1.25rem 4rem 1.25rem;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards & Layout */
.grid-2col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title i {
  color: var(--accent-emerald);
}

/* Mode Pill Switcher */
.mode-switch-group {
  display: flex;
  background: var(--pill-bg);
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  margin-bottom: 1.25rem;
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 0.5rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.mode-btn.active {
  background: var(--accent-emerald);
  color: #042f1a;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

/* Form inputs & Location pickers */
.input-group {
  margin-bottom: 1.15rem;
}

.input-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.custom-select, .custom-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--input-text);
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition-fast);
  outline: none;
}

.custom-select:focus, .custom-input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px var(--accent-emerald-glow);
}

/* Quick Place Chips */
.quick-places-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.place-chip {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.place-chip:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Vehicle Selector Cards */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.vehicle-card {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.vehicle-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

.vehicle-card.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px var(--accent-emerald-glow);
}

.vehicle-card .v-icon {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
  color: var(--accent-cyan);
}

.vehicle-card .v-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.vehicle-card .v-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Transmission Toggle */
.transmission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-sub);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  margin-bottom: 1.25rem;
}

.trans-btn-group {
  display: flex;
  gap: 0.4rem;
}

.trans-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.trans-btn.active {
  background: var(--accent-emerald);
  color: #042f1a;
  border-color: var(--accent-emerald);
}

/* Primary Action Buttons */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #022c22;
  border: none;
  padding: 0.95rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--btn-secondary-text);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-emerald);
}

/* Driver Cards in Results */
.drivers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.driver-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.driver-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-card);
}

.driver-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.driver-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.driver-info {
  flex: 1;
}

.driver-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.driver-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.verified-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
}

.driver-metrics {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.driver-metrics .star {
  color: var(--accent-amber);
  font-weight: 700;
}

.driver-badge-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.skill-badge {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.driver-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 0.85rem;
}

.driver-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-emerald-light);
}

.driver-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Timeline & Active Booking */
.timeline-strip {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: var(--transition-fast);
}

.timeline-step.completed .step-circle {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #022c22;
}

.timeline-step.active .step-circle {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
  color: #fff;
  background: rgba(16, 185, 129, 0.2);
}

.step-label {
  font-size: 0.68rem;
  margin-top: 0.35rem;
  color: var(--text-muted);
  text-align: center;
}

.timeline-step.active .step-label {
  color: var(--accent-emerald-light);
  font-weight: 700;
}

/* Status Action Buttons */
.advance-actions-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.status-pill-btn {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.status-pill-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-emerald);
}

/* SOS & Safety Banner */
.sos-box {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.sos-btn {
  background: var(--accent-rose);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--modal-bg);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Star Rating Widget */
.star-rating-row {
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  cursor: pointer;
  margin: 1rem 0;
  justify-content: center;
}

.star-rating-row span {
  color: #475569;
  transition: var(--transition-fast);
}

.star-rating-row span.filled {
  color: var(--accent-amber);
}

/* Tables & Lists */
.styled-table {
  width: 100%;
  border-collapse: collapse;
}

.styled-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  background: var(--table-th-bg);
  border-bottom: 1px solid var(--table-border);
}

.styled-table td {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--table-border);
}

/* ==========================================================================
   HOME TOP NAVIGATION MENUS ("Book My Driver" & "Register as a driver")
   ========================================================================== */
.home-top-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.top-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

/* Primary "Book My Driver" Button */
.btn-book-driver-top {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-book-driver-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669, #047857);
}

.btn-book-driver-top i {
  font-size: 0.95rem;
  color: #ffffff;
}

/* Secondary "Register as a driver" Button */
.btn-register-driver-top {
  background: var(--btn-secondary-bg);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-register-driver-top:hover {
  background: var(--bg-card-hover);
  border-color: #f59e0b;
  color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .btn-register-driver-top:hover,
body.theme-dark .btn-register-driver-top:hover {
  color: #fbbf24;
}

.btn-register-driver-top i {
  font-size: 0.95rem;
  color: #f59e0b;
}

@media (max-width: 768px) {
  .home-top-nav {
    gap: 0.5rem;
  }
  .top-menu-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   PORTAL SWITCHER & DUAL-ROLE THEME DYNAMICS
   ========================================================================== */
.portal-switcher {
  display: flex;
  background: var(--pill-bg);
  border: 1px solid var(--border-glass);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.portal-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.portal-switch-btn:hover {
  color: var(--text-main);
}

.portal-switch-btn.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Driver Mode Theme Override */
body.mode-driver {
  background-image: var(--bg-body-gradient-driver);
}

body.mode-driver .brand-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

body.mode-driver .city-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

body.mode-driver .portal-switch-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

body.mode-driver .tab-btn.active {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
}

/* ==========================================================================
   PORTAL MODE VISIBILITY RULES (HOME vs CUSTOMER vs DRIVER)
   ========================================================================== */

/* 1. HOME MODE: Hide the entire tab strip menu and portal-only elements */
body.mode-home nav.app-tabs {
  display: none !important;
}

body.mode-home .portal-only-elem {
  display: none !important;
}

body.mode-home .duty-pill {
  display: none !important;
}

body.mode-home .lang-toggle-btn {
  display: none !important;
}

/* 2. NON-HOME MODES: Hide the home-only top navigation menus */
body:not(.mode-home) .home-only-elem {
  display: none !important;
}

/* 3. CUSTOMER MODE: Hide driver-only elements */
body.mode-customer .driver-only-elem {
  display: none !important;
}

/* 4. DRIVER MODE: Hide customer-only elements */
body.mode-driver .customer-only-elem {
  display: none !important;
}

/* Duty Pill */
.duty-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.duty-pill.online {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.duty-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ef4444;
}

.duty-pill.online .duty-dot {
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* Driver Specific Telemetry & UI */
.telemetry-box {
  background-color: var(--telemetry-bg);
  border: 1px solid var(--telemetry-border);
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telemetry-item i {
  color: #10b981;
  font-size: 1.15rem;
}

.telemetry-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.telemetry-item .val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-duty-toggle {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-duty-toggle.btn-offline {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.status-indicator {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ef4444;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.15);
  border-radius: 999px;
}

.status-indicator.online {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.metric-box {
  background-color: var(--metric-box-bg);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem;
}

.metric-val {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.text-gold { color: #f59e0b; }
.text-green { color: #10b981; }
.text-blue { color: #38bdf8; }
.text-red { color: #ef4444; }

.radar-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.pulse-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #10b981;
  margin: 0 auto 1.5rem auto;
  animation: pulseRadar 1.5s infinite;
}

@keyframes pulseRadar {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.route-box {
  background-color: var(--route-box-bg);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.route-point {
  display: flex;
  align-items: center;
  gap: 12px;
}

.point-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.point-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.route-line {
  width: 2px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  margin-left: 7px;
}

.lifecycle-controls {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.step-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.btn-step, .btn-complete-trip {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.otp-group {
  background-color: var(--otp-group-bg);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem;
}

.otp-row {
  display: flex;
  gap: 12px;
  margin: 10px 0;
}

.otp-row input {
  flex: 1;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-text);
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
}

.btn-verify-otp {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.fare-banner {
  background-color: var(--fare-banner-bg);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-main);
}

.finished-banner {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
}

.earnings-hero {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), transparent);
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-bottom: 1.5rem;
}

.earnings-title {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.earnings-amount {
  font-size: 3rem;
  font-weight: 800;
  color: #10b981;
  margin: 8px 0;
}

.kyc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 650px) {
  .kyc-grid {
    grid-template-columns: 1fr;
  }
}

.kyc-item {
  background-color: var(--kyc-item-bg);
  border: 1px solid var(--border-glass);
  padding: 1rem;
  border-radius: 10px;
}

.kyc-item label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kyc-item .val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   AUTHENTICATION & REGISTRATION MODAL
   ========================================================================== */
.auth-modal-dialog {
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Modern Login Card & Components (Matching Attached Design) */
.auth-login-card {
  max-width: 480px;
  width: 95%;
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--border-glass);
  padding: 2rem 2.2rem;
  border: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.auth-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.auth-title-login {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.02em;
}

.auth-close-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.otp-send-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 6px;
}

.otp-send-row input {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: var(--bg-card-sub);
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-send-row input:focus {
  border-color: #059669;
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.btn-send-otp-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: var(--pill-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

[data-theme="light"] .btn-send-otp-modern {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

[data-theme="light"] .btn-send-otp-modern:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

[data-theme="dark"] .btn-send-otp-modern {
  background: #334155;
  border: 1px solid #475569;
  color: #f8fafc;
}

[data-theme="dark"] .btn-send-otp-modern:hover {
  background: #475569;
}

.otp-mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

[data-theme="light"] .otp-mock-chip {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
}

[data-theme="dark"] .otp-mock-chip {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.otp-mock-chip:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.otp-code-input {
  width: 100%;
  height: 50px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  padding-left: 18px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: var(--bg-card-sub);
  color: var(--text-main);
  margin-top: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-code-input:focus {
  border-color: #059669;
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.btn-verify-signin {
  width: 100%;
  height: 52px;
  margin-top: 1.5rem;
  background: #059669;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

.btn-verify-signin:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.36);
}

.btn-verify-signin:active {
  transform: translateY(0);
}

.auth-links-footer {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.auth-switch-link {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}

[data-theme="light"] .auth-switch-link {
  color: #2563eb;
}

[data-theme="light"] .auth-switch-link:hover {
  color: #1d4ed8;
}

[data-theme="dark"] .auth-switch-link {
  color: #60a5fa;
}

[data-theme="dark"] .auth-switch-link:hover {
  color: #93c5fd;
}

.auth-nav-tabs {
  display: flex;
  gap: 8px;
  background: var(--pill-bg);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 1.25rem;
}

.auth-nav-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-nav-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.role-pill-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.role-card-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  color: var(--text-main);
}

.role-card-opt:hover {
  background: var(--bg-card-hover);
}

.role-card-opt.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.role-card-opt.active.driver-opt {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.role-card-opt .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--btn-secondary-bg);
  color: var(--text-main);
}

.role-card-opt.active .icon {
  background: #10b981;
  color: #fff;
}

.role-card-opt.active.driver-opt .icon {
  background: #f59e0b;
  color: #000;
}

.role-card-opt .title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.role-card-opt .desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.otp-send-group {
  display: flex;
  gap: 8px;
}

.otp-send-group input {
  flex: 1;
}

.btn-send-otp {
  white-space: nowrap;
  padding: 0 16px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--btn-secondary-text);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-send-otp:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-emerald);
}

.dev-mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #d97706;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  margin-top: 6px;
}

.quick-logins-box {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-glass);
}

.quick-logins-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-align: center;
}

.quick-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--btn-secondary-text);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.quick-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-emerald);
}

.checkbox-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.custom-checkbox-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
  color: var(--text-main);
}

.custom-checkbox-card input[type="checkbox"] {
  accent-color: #10b981;
}

.user-status-pill {
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-status-pill:hover {
  background: var(--bg-card-hover);
}

/* ==========================================================================
   HOME LANDING PAGE (OTODDY-INSPIRED MODERN DESIGN SYSTEM)
   ========================================================================== */
.landing-wrap {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Hero Section */
.landing-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 2.75rem;
  align-items: center;
  padding: 1rem 0 2rem 0;
}

@media (max-width: 1024px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-title .highlight-text {
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-main);
  width: fit-content;
}

.hero-price-pill strong {
  color: var(--accent-emerald-light);
  font-size: 1.05rem;
}

.hero-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 550px) {
  .hero-bullets {
    grid-template-columns: 1fr;
  }
}

.hero-bullet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
}

.hero-bullet-item i {
  color: var(--accent-emerald);
  font-size: 1rem;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 650px) {
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-metric-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.hero-metric-chip .num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.hero-metric-chip .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero Showcase Image (Replaces Customer Portal & Driver Partner Portal blocks) */
.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  border: 1px solid var(--border-glass);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.hero-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.25), 0 0 1px 1px rgba(16, 185, 129, 0.3);
}

.hero-showcase-img {
  width: 100%;
  height: auto;
  min-height: 420px;
  max-height: 650px;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.hero-image-frame:hover .hero-showcase-img {
  transform: scale(1.025);
}

.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 35%, rgba(15, 23, 42, 0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-img-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.hero-img-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-img-sub {
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (max-width: 950px) {
  .hero-showcase-img {
    height: 320px;
  }
}

.btn-driver-hero {
  background: linear-gradient(135deg, var(--accent-amber), #ea580c);
  color: #0b0f19;
  border: none;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-driver-hero:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.landing-quick-btn {
  background: var(--btn-secondary-bg);
  border: 1px dashed var(--btn-secondary-border);
  color: var(--btn-secondary-text);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.landing-quick-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-emerald);
}

/* Quick Fare Estimator */
.landing-calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.calc-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-glass);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .calc-result-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Impact & Stats Strip */
.stats-strip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 800px) {
  .stats-strip-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-strip-card {
    grid-template-columns: 1fr;
  }
}

.stat-item .val {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.stat-item .lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Section Common Headers */
.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.section-tag {
  color: var(--accent-emerald-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Problem-Solution 4-Cards Grid */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.story-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-emerald);
}

.story-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.story-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.story-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* How It Works 3-Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 850px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.25s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-emerald);
}

.step-num-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Safety 6-Pillars Grid */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.safety-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}

.safety-card i {
  font-size: 1.35rem;
  color: var(--accent-emerald);
  margin-top: 2px;
}

.safety-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.safety-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Services 5-Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-emerald);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-card-sub);
  color: var(--accent-emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem auto;
}

.service-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.service-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.test-stars {
  color: var(--accent-amber);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.test-quote {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.test-author-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--btn-secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-emerald);
  font-size: 0.9rem;
}

.test-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.test-car {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Driver Partner Banner */
.driver-partner-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 24px;
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-card);
}

@media (max-width: 800px) {
  .driver-partner-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.driver-banner-info h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.driver-banner-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.55;
}

.driver-perks-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.driver-perk-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.driver-perk-item i {
  color: var(--accent-amber);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.faq-question {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question i {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-emerald);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Bottom CTA Strip */
.bottom-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.bottom-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Comprehensive Modern Footer */
footer.landing-footer {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-glass);
  padding: 1rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 550px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-links li a:hover {
  color: var(--accent-emerald-light);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   PORTAL SWITCHER STRICT ROLE VISIBILITY
   ========================================================================== */
.mode-driver #switchBtnCustomer {
  display: none !important;
}

.mode-customer #switchBtnDriver {
  display: none !important;
}

/* ==========================================================================
   DOCUMENT UPLOAD CARDS (DRIVER REGISTRATION)
   ========================================================================== */
.doc-upload-card {
  background: var(--bg-card-sub);
  border: 1.5px dashed var(--border-glass);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.doc-upload-card:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
  transform: translateY(-2px);
}

.doc-upload-card.has-file {
  border-style: solid;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.doc-upload-card.has-file .doc-upload-icon {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.doc-upload-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--btn-secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #f59e0b;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.doc-upload-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.doc-upload-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.doc-upload-file-name {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ==========================================================================
   DRIVER PENDING ADMIN APPROVAL BANNER
   ========================================================================== */
.driver-approval-banner {
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
  animation: fadeIn 0.3s ease;
}

[data-theme="light"] .driver-approval-banner {
  background: #fffbeb;
  border-color: #fde68a;
}

.approval-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.approval-text-col {
  flex: 1;
}

.badge-approval-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #d97706;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

[data-theme="dark"] .badge-approval-pending {
  color: #fbbf24;
}

.approval-action-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  justify-content: center;
}

.btn-admin-approve-simulate {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.btn-admin-approve-simulate:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* =============================================================================
   CHOOSE LOCATION SEARCH & AUTOCOMPLETE DROPDOWN
   ============================================================================= */
.location-input-wrap {
  position: relative;
}

.loc-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.15s ease;
  z-index: 2;
}

.loc-clear-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .loc-clear-btn:hover,
body.theme-dark .loc-clear-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.location-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  max-height: 290px;
  overflow-y: auto;
}

[data-theme="dark"] .location-suggestions-dropdown,
body.theme-dark .location-suggestions-dropdown {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.location-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
  display: block;
}

[data-theme="dark"] .location-suggestion-item,
body.theme-dark .location-suggestion-item {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.location-suggestion-item:last-child {
  border-bottom: none;
}

.location-suggestion-item:hover, .location-suggestion-item.active {
  background: #f8fafc;
}

[data-theme="dark"] .location-suggestion-item:hover,
body.theme-dark .location-suggestion-item:hover {
  background: rgba(245, 158, 11, 0.12);
}

.loc-head-line {
  display: block;
  line-height: 1.45;
}

.loc-primary-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  margin-right: 6px;
}

[data-theme="dark"] .loc-primary-name,
body.theme-dark .loc-primary-name {
  color: #f8fafc;
}

.loc-secondary-tag {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

[data-theme="dark"] .loc-secondary-tag,
body.theme-dark .loc-secondary-tag {
  color: #94a3b8;
}

.loc-detail-address {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.35;
}

[data-theme="dark"] .loc-detail-address,
body.theme-dark .loc-detail-address {
  color: #cbd5e1;
}

.location-suggestion-hint {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  text-align: center;
  font-style: italic;
}

