/* ============================================================
   GAZOVA VIP DRIVER LOUNGE — LUXURY DESIGN SYSTEM
   Ultra-premium dark + gold aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Backgrounds */
  --bg:          #060608;
  --bg-soft:     #09090d;
  --bg-mid:      #0d0d12;

  /* Panels */
  --panel:       rgba(13,13,18,0.94);
  --panel-2:     rgba(16,16,22,0.97);
  --panel-3:     rgba(255,255,255,0.025);
  --panel-hover: rgba(255,255,255,0.035);

  /* Gold palette */
  --gold:        #c8952a;
  --gold-2:      #e8b84b;
  --gold-3:      #f5d07a;
  --gold-soft:   rgba(200,149,42,0.12);
  --gold-glow:   rgba(200,149,42,0.22);
  --gold-line:   rgba(200,149,42,0.28);

  /* Text */
  --text:        #f0ebe2;
  --text-2:      #c8bfb0;
  --muted:       #7a7268;
  --muted-2:     #59544d;

  /* Lines / borders */
  --line:        rgba(255,255,255,0.065);
  --line-gold:   rgba(200,149,42,0.18);

  /* Semantic */
  --success:     #1ec97e;
  --success-glow:rgba(30,201,126,0.24);
  --danger:      #e05555;
  --info:        #6b9fff;

  /* Radius */
  --r-xl:  30px;
  --r-lg:  24px;
  --r-md:  18px;
  --r-sm:  13px;
  --r-xs:  10px;

  /* Shadows */
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.55), 0 8px 24px rgba(0,0,0,0.32);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.4),  0 4px 14px rgba(0,0,0,0.22);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.28);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.2);
  --shadow-gold: 0 0 28px rgba(200,149,42,0.18);

  /* Transitions */
  --ease: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── LIGHT MODE OVERRIDES ── */
html[data-theme="light"] {
  --bg:          #f2ead8;
  --bg-soft:     #f9f3e6;
  --bg-mid:      #fff8ee;
  --panel:       rgba(255,252,245,0.95);
  --panel-2:     rgba(255,254,250,0.98);
  --panel-3:     rgba(0,0,0,0.022);
  --panel-hover: rgba(0,0,0,0.028);
  --gold:        #b87e1a;
  --gold-2:      #d09030;
  --gold-3:      #e8b050;
  --gold-soft:   rgba(184,126,26,0.1);
  --gold-glow:   rgba(184,126,26,0.18);
  --gold-line:   rgba(184,126,26,0.22);
  --text:        #17120a;
  --text-2:      #3a3028;
  --muted:       #7a6e5e;
  --muted-2:     #a09080;
  --line:        rgba(0,0,0,0.072);
  --line-gold:   rgba(184,126,26,0.16);
  --success:     #14a863;
  --success-glow:rgba(20,168,99,0.2);
  --danger:      #c24444;
  --shadow-xl:   0 30px 80px rgba(60,40,0,0.1),  0 8px 24px rgba(60,40,0,0.07);
  --shadow-lg:   0 20px 50px rgba(60,40,0,0.08), 0 4px 14px rgba(60,40,0,0.05);
  --shadow-md:   0 10px 30px rgba(60,40,0,0.06);
  --shadow-sm:   0 4px 12px rgba(60,40,0,0.05);
  --shadow-gold: 0 0 28px rgba(184,126,26,0.14);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 60% 40% at 8% 4%,  rgba(200,149,42,0.07) 0%, transparent 100%),
    radial-gradient(ellipse 50% 30% at 94% 6%,  rgba(200,149,42,0.04) 0%, transparent 100%),
    linear-gradient(175deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; cursor: pointer; border: 0; }
input { cursor: text; }

html[data-theme="light"] body {
  background:
    radial-gradient(ellipse 60% 40% at 8%  4%, rgba(200,149,42,0.10) 0%, transparent 100%),
    radial-gradient(ellipse 50% 30% at 94% 6%, rgba(200,149,42,0.06) 0%, transparent 100%),
    radial-gradient(ellipse 40% 30% at 40% 90%, rgba(200,149,42,0.06) 0%, transparent 100%),
    linear-gradient(175deg, #f0e8d6 0%, #fbf4e8 100%);
}

/* ── FX OFF ── */
.fx-off * {
  animation: none !important;
  transition: none !important;
  box-shadow: none !important;
}

/* ── APP LAYOUT ── */
.driver-app {
  display: grid;
  grid-template-columns: 270px minmax(0,1fr);
  gap: 16px;
  min-height: 100vh;
  padding: 14px;
}

/* ── GLASS CARD ── */
.glass-card {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 60%),
    var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

/* ── TYPOGRAPHY UTILITIES ── */
.eyebrow, .mini-label {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
}
.label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

/* ── PILLS / BADGES / CHIPS ── */
.pill, .tiny-badge, .header-chip, .chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-3);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color var(--ease), color var(--ease), box-shadow var(--ease), background var(--ease);
}

.tiny-badge {
  min-height: 30px;
  padding: 0 11px;
  font-size: 11px;
  color: var(--gold-2);
  background: var(--gold-soft);
  border-color: var(--line-gold);
}
.tiny-badge.active {
  color: #0d0900;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(200,149,42,0.3);
}

.header-chip:hover, .chip-btn:hover, .pill:hover {
  border-color: var(--gold-line);
  color: var(--gold-2);
  background: var(--gold-soft);
}

/* ── NOTIFICATION BELL ── */
.driver-notif-bell {
  position: relative;
  overflow: visible;
}
.driver-bell-count, .driver-nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #ff6b45, #ff2d20);
  box-shadow: 0 4px 12px rgba(255,60,40,0.4);
}
.driver-bell-count.is-visible, .driver-nav-badge.is-visible { display: inline-flex; }
.driver-bell-count { position: absolute; top: -7px; right: -7px; }
.driver-nav-badge { margin-left: auto; }

.driver-notif-bell.is-ringing {
  animation: driverBellRing 0.85s ease-in-out 3;
}
@keyframes driverBellRing {
  0%,100% { transform: rotate(0); }
  18%  { transform: rotate(-9deg) scale(1.04); }
  36%  { transform: rotate(9deg)  scale(1.07); }
  54%  { transform: rotate(-6deg) scale(1.04); }
  72%  { transform: rotate(6deg)  scale(1.02); }
}

/* ── STATUS DOTS ── */
.status-dot, .agent-indicator {
  width: 9px; height: 9px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.online,  .agent-indicator.online  { background: var(--success); box-shadow: 0 0 10px var(--success-glow); }
.status-dot.offline, .agent-indicator.offline { background: #555; }

/* ── NAV BADGE ── */
.nav-item-chat { position: relative; justify-content: flex-start; gap: 10px; }

.driver-review-trigger {
  margin-top: 10px;
  min-height: 42px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(135deg, rgba(200,149,42,0.18), rgba(200,149,42,0.08));
  color: var(--gold-3);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.driver-review-trigger.is-complete {
  background: rgba(30, 201, 126, 0.12);
  border-color: rgba(30, 201, 126, 0.24);
  color: var(--success);
}

.driver-review-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
}

.driver-review-modal.is-open {
  display: block;
}

.driver-review-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.74);
  backdrop-filter: blur(10px);
}

.driver-review-dialog {
  position: relative;
  width: min(560px, calc(100vw - 28px));
  margin: min(10vh, 68px) auto 0;
  padding: 24px;
  border-radius: 24px;
  z-index: 1;
}

.driver-review-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  color: var(--text);
}

.driver-review-sub {
  margin: 8px 0 0;
  color: var(--text-2);
  line-height: 1.5;
}

.driver-review-stars {
  display: flex;
  gap: 8px;
  margin: 20px 0 18px;
}

.driver-review-star {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  color: rgba(255,255,255,0.28);
  font-size: 24px;
}

.driver-review-star.active {
  color: var(--gold-2);
  border-color: var(--gold-line);
  background: var(--gold-soft);
  box-shadow: var(--shadow-gold);
}

.driver-review-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.driver-review-field,
.driver-review-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-2);
}

.driver-review-field input,
.driver-review-note textarea {
  width: 100%;
}

.driver-review-note {
  margin-top: 16px;
}

.driver-review-note textarea {
  min-height: 110px;
  resize: vertical;
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  color: var(--text);
}

.driver-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

body.driver-review-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .driver-review-dialog {
    margin-top: 18px;
    padding: 20px;
  }

  .driver-review-grid {
    grid-template-columns: 1fr;
  }

  .driver-review-stars {
    justify-content: space-between;
  }

  .driver-review-star {
    flex: 1 1 0;
  }

  .driver-review-actions {
    flex-direction: column-reverse;
  }
}

/* ── BUTTONS ── */
.primary-btn, .secondary-btn, .flow-btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}
.primary-btn {
  background: linear-gradient(135deg, #d4a23a 0%, #b8821e 50%, #c99332 100%);
  background-size: 200% 100%;
  color: #0d0900;
  border: 0;
  box-shadow: 0 8px 24px rgba(200,149,42,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.primary-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(200,149,42,0.38), inset 0 1px 0 rgba(255,255,255,0.22);
}
.primary-btn:active { transform: translateY(0); }

.secondary-btn, .flow-btn {
  background: var(--panel-3);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.secondary-btn:hover, .flow-btn:hover {
  color: var(--gold-2);
  border-color: var(--gold-line);
  background: var(--gold-soft);
  transform: translateY(-1px);
}
.flow-btn.flow-active {
  color: var(--gold-2);
  border-color: var(--gold-line);
  background: linear-gradient(135deg, rgba(200,149,42,0.14), rgba(200,149,42,0.05));
  box-shadow: 0 0 20px rgba(200,149,42,0.1);
}

/* ── INPUTS ── */
.chat-input {
  flex: 1;
  min-height: 50px;
  padding: 0 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: var(--text);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.chat-input::placeholder { color: var(--muted); }
.chat-input:focus {
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px rgba(200,149,42,0.1);
}

/* ── ICON BTN (mobile hamburger) ── */
.icon-btn {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-3);
  color: var(--text);
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: border-color var(--ease), color var(--ease);
}
.icon-btn:hover { border-color: var(--gold-line); color: var(--gold-2); }

/* ======================================================
   SIDEBAR
====================================================== */
.desktop-only { display: block; }
.mobile-appbar { display: none; }

.sidebar {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  padding: 24px 16px 18px;
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 28% at 50% 0%, rgba(200,149,42,0.14) 0%, transparent 100%),
    linear-gradient(170deg, #0b0b10 0%, #070709 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(200,149,42,0.12);
  z-index: 50;
}

/* Gold hairline accent at top of sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: 0.6;
}

html[data-theme="light"] .sidebar {
  background:
    radial-gradient(ellipse 90% 28% at 50% 0%, rgba(200,149,42,0.12) 0%, transparent 100%),
    linear-gradient(170deg, #fdfaf3 0%, #f7eedd 100%);
  border-color: rgba(184,126,26,0.12);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.7);
}

.sidebar-brand h1 {
  margin: 0;
  color: var(--gold-2);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.sidebar-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* ── Profile card inside sidebar ── */
.sidebar-profile-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(200,149,42,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line-gold);
  position: relative;
  overflow: hidden;
}
.sidebar-profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,149,42,0.5), transparent);
}

.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: var(--gold-soft);
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.driver-name {
  margin-top: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.driver-status {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

/* ── Sidebar nav ── */
.sidebar-nav {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
  position: relative;
}
.nav-item::before {
  font-size: 14px;
  margin-right: 10px;
  opacity: 0.7;
  flex-shrink: 0;
}
.nav-item[data-view="home"]::before      { content: "⌂"; }
.nav-item[data-view="task"]::before      { content: "✦"; }
.nav-item[data-view="completed"]::before { content: "✓"; }
.nav-item[data-view="history"]::before   { content: "◷"; }
.nav-item[data-view="flight"]::before    { content: "◎"; }
.nav-item[data-view="chat"]::before      { content: "◌"; }
.nav-item[data-view="nav"]::before       { content: "◐"; }
.nav-item[data-view="status"]::before    { content: "◍"; }
.nav-item[data-view="profile"]::before   { content: "○"; }
.nav-item[data-view="support"]::before   { content: "◉"; }

.nav-item:hover {
  background: var(--panel-hover);
  border-color: var(--line);
  color: var(--text-2);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(200,149,42,0.16) 0%, rgba(200,149,42,0.04) 100%);
  border-color: var(--gold-line);
  color: var(--gold-2);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--gold), 0 0 16px rgba(200,149,42,0.06);
}
.nav-item.active::before { opacity: 1; }

/* ── Sidebar bottom / logout ── */
.logout-btn {
  width: 100%;
  min-height: 50px;
  border-radius: var(--r-md);
  background: var(--panel-3);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.logout-btn:hover {
  color: var(--danger);
  border-color: rgba(224,85,85,0.3);
  background: rgba(224,85,85,0.06);
}

/* ======================================================
   MAIN CONTENT
====================================================== */
.main-content {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
  padding-bottom: 30px;
}

/* ── Desktop Header ── */
.top-header {
  border-radius: var(--r-xl);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.top-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200,149,42,0.4) 40%, rgba(200,149,42,0.4) 60%, transparent 100%);
}

.top-header-left .eyebrow { margin-bottom: 6px; }

.top-header-left h2 {
  margin: 0 0 6px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 40%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.top-header-left p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.top-header-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  flex-shrink: 0;
}

/* Profile mini card */
.profile-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--panel-3);
  transition: border-color var(--ease);
}
.profile-mini-card:hover { border-color: var(--gold-line); }
.profile-mini-info { display: flex; flex-direction: column; gap: 3px; }
.profile-mini-info strong { font-size: 14px; font-weight: 700; }
.profile-mini-info span   { font-size: 12px; color: var(--muted); }
.avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #0d0900;
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(200,149,42,0.3);
}

/* ======================================================
   DESKTOP OVERVIEW GRID
====================================================== */
.desktop-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.hero-card, .status-card, .map-shell,
.module-view-header, .module-view-body,
.kpi-card, .history-section {
  border-radius: var(--r-xl);
}

.hero-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,149,42,0.35), transparent);
}

.hero-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.hero-head h3 {
  margin: 8px 0 6px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero-subtext { margin: 0; color: var(--muted); font-size: 15px; }
.hero-badge-stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 220px; }

.hero-details-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

/* Info cards */
.detail-box, .info-card, .status-note-box,
.flight-code-box, .flight-status-box {
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--panel-3);
  transition: border-color var(--ease), background var(--ease);
}
.detail-box:hover, .info-card:hover {
  border-color: var(--line-gold);
  background: var(--panel-hover);
}
.detail-box strong, .info-card strong,
.flight-code-box strong, .flight-status-box strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.detail-box p, .info-card p, .status-note-box p,
.flight-code-box p, .flight-status-box p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Side cards */
.overview-side-cards { display: grid; gap: 16px; }

.status-card {
  min-height: 136px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.status-card::after {
  content: '';
  position: absolute;
  right: -20px; bottom: -20px;
  width: 80px; height: 80px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  pointer-events: none;
}
.status-card h4  { margin: 8px 0 6px; font-size: 28px; line-height: 1; font-weight: 800; }
.status-card p   { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Mini radar (static map) */
.radar-status-card { padding-bottom: 16px; }
.radar-status-card h4 { margin-bottom: 12px; }
.radar-mapbox {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: calc(var(--r-lg) - 2px);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 40% 50%, rgba(200,149,42,0.06), transparent 55%),
    linear-gradient(160deg, #131620 0%, #0b0d14 100%);
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .radar-mapbox {
  background:
    radial-gradient(circle at 40% 50%, rgba(184,126,26,0.10), transparent 55%),
    linear-gradient(160deg, #fff8ee 0%, #f6eddc 100%);
}
.radar-mapbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity var(--ease);
}
.radar-mapbox img.is-ready { opacity: 1; }
.radar-topbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}
.radar-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}
html[data-theme="light"] .radar-search { background: rgba(255,255,255,0.96); }
html[data-theme="dark"] .radar-search  { background: rgba(10,10,14,0.74); border-color: rgba(255,255,255,0.08); }
.radar-search-icon {
  width: 34px; height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.92);
  color: rgba(20,16,10,0.78);
  flex-shrink: 0;
}
html[data-theme="dark"] .radar-search-icon {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
}
.radar-search-meta { min-width: 0; }
.radar-search-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--muted);
  opacity: 0.9;
}
.radar-search-value {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.radar-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(0,0,0,0.86);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
html[data-theme="dark"] .radar-btn { background: rgba(255,255,255,0.92); color: #0b0a08; }
.radar-pill {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12,12,16,0.86);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 32px rgba(0,0,0,0.2);
}
html[data-theme="light"] .radar-pill { background: rgba(12,12,16,0.86); }
.radar-pill::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 10px;
  background: #22d58b;
  box-shadow: 0 0 0 6px rgba(34,213,139,0.18);
  vertical-align: middle;
}

/* ======================================================
   MAP HOME VIEW
====================================================== */
.map-home-view { display: block; }
.map-home-view.active { display: block; }

.map-shell { padding: 22px; position: relative; overflow: hidden; }
.map-shell-head, .section-head, .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.map-shell-head h3, .section-head h3, .panel-head h4 {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 800;
}
.map-shell-right { display: flex; gap: 8px; flex-wrap: wrap; }

.map-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.legend-dot {
  width: 9px; height: 9px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}
.driver-dot  { background: var(--success); box-shadow: 0 0 8px var(--success-glow); }
.pickup-dot  { background: var(--gold);    box-shadow: 0 0 8px var(--gold-glow); }
.dropoff-dot { background: #e0e0e0;        box-shadow: 0 0 8px rgba(224,224,224,0.3); }
.flight-dot  { background: var(--info);    box-shadow: 0 0 8px rgba(107,159,255,0.35); }

/* Map stage */
.map-stage {
  position: relative;
  min-height: 520px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 40% 50%, rgba(200,149,42,0.04), transparent 55%),
    linear-gradient(160deg, #131620 0%, #0b0d14 100%);
}

/* Pulsing radar ring for map placeholder */
.map-center-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.map-center-label::before {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 999px;
  border: 1px solid rgba(200,149,42,0.15);
  animation: radarPulse 3s ease infinite;
}
.map-center-label::after {
  content: '';
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(200,149,42,0.25);
  animation: radarPulse 3s ease infinite 0.4s;
}
@keyframes radarPulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Map overlay card */
.map-overlay-card {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  width: min(320px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-gold);
  background: rgba(7,7,11,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
html[data-theme="light"] .map-overlay-card {
  background: rgba(255,251,244,0.88);
}
.map-overlay-top    { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.map-overlay-route  { margin-top: 8px; font-size: 16px; font-weight: 800; }
.map-overlay-meta   { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; }

/* ======================================================
   MODULE VIEW
====================================================== */
.module-view { display: none; gap: 14px; }
.module-view.active { display: grid; }

.module-view-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.module-view-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,149,42,0.3), transparent);
}

.back-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-3);
  color: var(--text-2);
  font-weight: 700;
  font-size: 13px;
  transition: color var(--ease), border-color var(--ease);
}
.back-btn:hover { color: var(--gold-2); border-color: var(--gold-line); }

.module-view-title-wrap h3 { margin: 6px 0 0; font-size: 26px; font-weight: 800; }

.module-view-body { padding: 24px; }

.module-panel { display: none; }
.module-panel.active { display: block; animation: panelFadeIn 0.28s ease both; }

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

.panel-head h4 { margin: 6px 0 0; font-size: 22px; font-weight: 800; }

.task-panel-grid, .status-flow-grid {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.task-panel-grid  { grid-template-columns: repeat(2, minmax(0,1fr)); }
.status-flow-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }

.quick-action-row, .agent-actions, .flight-top-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Flight specifics */
.flight-search-bar {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}
.flight-search-field { display: flex; flex-direction: column; gap: 8px; }
.flight-top-row { margin-top: 16px; }
.flight-code-box, .flight-status-box { flex: 1; min-width: 200px; }
.flight-code-box strong, .flight-status-box strong { font-size: 26px; }
.flight-ok { color: var(--success); }
.flight-inline-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.flight-feedback { margin-top: 12px; min-height: 22px; color: var(--muted); font-size: 13px; }
.flight-feedback.is-error   { color: var(--danger); }
.flight-feedback.is-success { color: var(--success); }

/* Status flow note */
.status-note-box { margin-top: 16px; }
.status-note-box strong { display: block; margin-top: 8px; font-size: 16px; }

/* ======================================================
   CHAT
====================================================== */
.chat-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(260px,0.8fr);
  gap: 12px;
}
.chat-thread, .agent-assist-card {
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel-3);
}
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}
.chat-message {
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  transition: border-color var(--ease);
}
.chat-message.driver   { border-left: 2px solid var(--gold); }
.chat-message.customer { border-left: 2px solid #888; }
.chat-message.system   { border-left: 2px solid var(--info); }
.chat-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.chat-meta span { color: var(--muted); }
.chat-message p { margin: 7px 0 0; line-height: 1.55; font-size: 14px; }

.agent-assist-card h5 { margin: 8px 0 10px; font-size: 17px; font-weight: 800; }
.agent-status-wrap { display: flex; align-items: center; gap: 8px; }
.agent-tip-list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.agent-actions { margin-top: 14px; }

.panel-head.compact { margin-bottom: 10px; }

.chat-input-row { margin-top: 14px; display: flex; gap: 10px; }

/* ======================================================
   BOTTOM DATA GRID
====================================================== */
.bottom-data-grid {
  display: grid;
  grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr);
  gap: 16px;
}
.kpi-card, .history-section { padding: 24px; }

.kpi-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.kpi-box {
  min-height: 120px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--panel-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.kpi-box:hover { border-color: var(--gold-line); box-shadow: var(--shadow-gold); }
.kpi-box strong {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.history-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.history-row {
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--panel-3);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  transition: border-color var(--ease);
}
.history-row:hover { border-color: var(--gold-line); }
.history-row strong { display: block; font-size: 15px; font-weight: 700; }
.history-row p   { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.history-row span{ color: var(--gold-2); font-weight: 700; font-size: 14px; }

/* ======================================================
   NAVIGATION MODAL
====================================================== */
.nav-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4,4,8,0.48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html[data-theme="light"] .nav-modal-overlay {
  background: rgba(240,232,218,0.48);
}
.nav-modal-overlay.active { display: flex; }

.nav-modal-card {
  width: min(660px, 100%);
  padding: 26px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-gold);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0) 50%),
    var(--panel-2);
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.28s cubic-bezier(0.34,1.28,0.64,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

html[data-theme="light"] .nav-modal-card {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.6) 0%, rgba(255,252,244,0.8) 100%);
  box-shadow: var(--shadow-lg);
}

.nav-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.nav-modal-head h3 { margin: 8px 0 0; font-family: 'Playfair Display', serif; font-size: clamp(22px,2.4vw,30px); line-height: 1.08; }

.nav-modal-close {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-3);
  color: var(--text-2);
  font-size: 17px;
  transition: color var(--ease), border-color var(--ease);
}
.nav-modal-close:hover { color: var(--danger); border-color: rgba(224,85,85,0.3); }

.nav-app-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.nav-app-btn {
  min-height: 120px;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel-3);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  text-align: left;
  transition: border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.nav-app-btn:hover {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  box-shadow: 0 0 22px rgba(200,149,42,0.1);
  transform: translateY(-2px);
}
.nav-app-btn:active { transform: translateY(0); }

.nav-app-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--panel-3);
  border: 1px solid var(--line);
  font-size: 26px;
  line-height: 1;
}
.nav-app-name { font-size: 17px; font-weight: 800; line-height: 1.2; }
.nav-app-btn[data-nav-app="google"] .nav-app-icon { box-shadow: 0 0 12px rgba(66,133,244,0.15); }
.nav-app-btn[data-nav-app="waze"]   .nav-app-icon { box-shadow: 0 0 12px rgba(0,200,255,0.15); }
.nav-app-btn[data-nav-app="yandex"] .nav-app-icon { box-shadow: 0 0 12px rgba(255,70,70,0.15); }
.nav-app-btn[data-nav-app="apple"]  .nav-app-icon { box-shadow: 0 0 12px rgba(255,255,255,0.1); }

.nav-remember-row {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.nav-remember-row input { width: 16px; height: 16px; accent-color: var(--gold); }
.nav-modal-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }

/* Chat mode toggle active */
#driverChatModeBridge.active,
#driverChatModeDispatch.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #0d0900;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(200,149,42,0.28);
}

/* ======================================================
   MOBILE APP BAR
====================================================== */
.mobile-appbar-center { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mobile-brand-title   { color: var(--gold-2); font-weight: 800; letter-spacing: 0.1em; font-size: 13px; }
.mobile-status-row    { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.mobile-appbar-actions { display: flex; gap: 7px; }

/* ======================================================
   MOBILE-ONLY DRAWER EXTRAS
====================================================== */
.mobile-only-drawer { display: none; }

.driver-mobile-status-pill {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.driver-mobile-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: var(--panel-3);
  border: 1px solid var(--line);
}
.driver-mobile-toggle-pill {
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.driver-mobile-toggle-pill.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0d0900;
  box-shadow: 0 6px 16px rgba(200,149,42,0.28);
}

/* ======================================================
   RESPONSIVE — 1400px
====================================================== */
@media (max-width: 1400px) {
  .hero-details-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .status-flow-grid  { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* ======================================================
   RESPONSIVE — 1180px (collapse sidebar)
====================================================== */
@media (max-width: 1180px) {
  .driver-app { grid-template-columns: 1fr; }
  .sidebar    { display: none; }
  .desktop-overview-grid, .bottom-data-grid, .chat-layout { grid-template-columns: 1fr; }
  .top-header-right { justify-content: flex-start; max-width: unset; }
}

/* ======================================================
   RESPONSIVE — 920px (mobile)
====================================================== */
@media (max-width: 920px) {
  .driver-app { display: block; padding: 0; }
  .desktop-only { display: none !important; }

  .mobile-appbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin: 12px 12px 0;
    border-radius: var(--r-lg);
    background:
      radial-gradient(ellipse 80% 60% at 90% 20%, rgba(200,149,42,0.12), transparent),
      var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  .sidebar {
    position: fixed;
    top: 12px; left: 12px; bottom: 12px;
    width: min(86vw, 310px);
    height: auto;
    z-index: 100;
    display: flex;
    transform: translateX(-115%);
    transition: transform 0.26s cubic-bezier(0.4,0,0.2,1);
  }
  .sidebar.open { transform: translateX(0); }

  .main-content { gap: 12px; padding: 12px 12px 24px; }

  .map-shell {
    padding: 0;
    overflow: hidden;
    min-height: calc(100vh - 96px);
  }
  .map-shell-head, .map-legend {
    position: absolute;
    left: 14px; right: 14px;
    z-index: 3;
  }
  .map-shell-head { top: 14px; align-items: flex-start; }
  .map-shell-head h3 { font-size: 19px; }
  .map-shell-right { display: none; }
  .map-legend { top: 72px; font-size: 12px; gap: 10px; }
  .map-stage { min-height: calc(100vh - 96px); margin-top: 0; border: 0; border-radius: var(--r-lg); }
  .compact-job-card { left: 12px; right: 12px; width: auto; bottom: 16px; }

  .module-view {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    padding: 12px;
    background: linear-gradient(170deg, var(--bg) 0%, var(--bg-soft) 100%);
    overflow-y: auto;
  }
  .module-view.active { display: grid; align-content: start; gap: 12px; }
  .module-view-header, .module-view-body { border-radius: var(--r-lg); }
  .module-view-header { padding: 16px; position: sticky; top: 0; z-index: 2; }
  .module-view-title-wrap h3 { font-size: 22px; }
  .module-view-body { padding: 18px; }

  .task-panel-grid, .chat-layout, .status-flow-grid { grid-template-columns: 1fr; }
  .chat-input-row, .quick-action-row, .agent-actions, .flight-top-row { flex-direction: column; }
  .back-btn, .primary-btn, .secondary-btn, .flow-btn { width: 100%; justify-content: center; }
  .history-row { flex-direction: column; align-items: flex-start; }
  .flight-search-bar { grid-template-columns: 1fr; }
  .mobile-only-drawer { display: grid; gap: 12px; }
}

@media (min-width: 921px) {
  .mobile-only-drawer { display: none !important; }
}

/* ======================================================
   RESPONSIVE — 560px (small mobile)
====================================================== */
@media (max-width: 560px) {
  .hero-head h3, .module-view-title-wrap h3, .panel-head h4 { font-size: 20px; }
  .flight-code-box strong, .flight-status-box strong, .status-card h4 { font-size: 22px; }
  .map-overlay-route { font-size: 15px; }
  .nav-app-grid { grid-template-columns: 1fr; }
  .nav-app-btn  { min-height: 84px; flex-direction: row; align-items: center; gap: 14px; }
  .nav-modal-actions .secondary-btn { width: 100%; }
  .info-card strong, .detail-box strong { font-size: 15px; }
}

/* ======================================================
   LIGHT MODE — KEY OVERRIDES
====================================================== */
html[data-theme="light"] .glass-card {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.55) 0%, rgba(255,252,244,0.85) 100%);
  border-color: rgba(184,126,26,0.1);
}
html[data-theme="light"] .detail-box,
html[data-theme="light"] .info-card,
html[data-theme="light"] .status-note-box,
html[data-theme="light"] .flight-code-box,
html[data-theme="light"] .flight-status-box,
html[data-theme="light"] .chat-thread,
html[data-theme="light"] .agent-assist-card,
html[data-theme="light"] .chat-message,
html[data-theme="light"] .kpi-box,
html[data-theme="light"] .history-row {
  background: linear-gradient(160deg, #fffdf8 0%, #faf3e8 100%);
  border-color: rgba(184,126,26,0.1);
}
html[data-theme="light"] .map-overlay-card {
  background: rgba(255,252,245,0.9);
}
html[data-theme="light"] .kpi-box strong {
  background: linear-gradient(135deg, var(--gold) 0%, #e8a020 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .top-header-left h2 {
  background: linear-gradient(135deg, var(--text) 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .nav-item.active {
  background: linear-gradient(90deg, rgba(184,126,26,0.16) 0%, rgba(255,255,255,0.6) 100%);
  border-color: rgba(184,126,26,0.24);
  color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold-2), 0 0 14px rgba(184,126,26,0.06);
}
html[data-theme="light"] .mobile-appbar {
  background:
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(200,149,42,0.14), transparent),
    linear-gradient(160deg, #fffdf8 0%, #f9f1e5 100%);
  border-color: rgba(184,126,26,0.12);
}
html[data-theme="light"] .nav-item[data-view]::before { color: var(--gold); }
html[data-theme="light"] .sidebar-brand h1 { color: var(--gold); }
html[data-theme="light"] .map-stage {
  background:
    radial-gradient(circle at 40% 50%, rgba(184,126,26,0.05), transparent 55%),
    linear-gradient(160deg, #e8e4de 0%, #dddad4 100%);
}
