/* ==========================================================================
   SEMBILAN PULUH (90) — CYBER-AERO INFOTAINMENT COCKPIT DESIGN SYSTEM
   Palette: Deep Space Obsidian (#050811) + Electric Laser Cyan (#00F0FF) + Cyber Emerald (#10B981)
   ========================================================================== */

:root {
  --obsidian: rgba(8, 14, 26, 0.92);
  --obsidian-solid: #050811;
  --surface: rgba(15, 23, 42, 0.88);
  --surface-hover: rgba(24, 34, 58, 0.96);
  --border-subtle: rgba(56, 189, 248, 0.18);
  --border-glow: rgba(0, 240, 255, 0.45);
  --laser-cyan: #00f0ff;
  --laser-cyan-glow: rgba(0, 240, 255, 0.4);
  --hyper-blue: #0284c7;
  --gold: #38bdf8;
  --gold-bright: #00f0ff;
  --teal: #10b981;
  --cyan: #00f0ff;
  --crimson: #ff3b5c;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;
}

body.light-theme {
  --obsidian: rgba(255, 255, 255, 0.92);
  --obsidian-solid: #ffffff;
  --surface: rgba(241, 245, 249, 0.92);
  --surface-hover: rgba(226, 232, 240, 1);
  --border-subtle: rgba(15, 23, 42, 0.12);
  --text-primary: #0f172a;
  --text-secondary: #475569;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: #070a12;
}

#map {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* TomTom vector basemap renders directly with native vector styling */
body.dark-mode #map {
  filter: none;
}

/* ==========================================================================
   1. MACHINED TITANIUM AVIONICS ISLAND & RADAR SWITCHBOARD
   ========================================================================== */
.cockpit-header {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  max-width: 520px;
  margin: 0 auto;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.telemetry-island {
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.94) 0%, rgba(6, 10, 18, 0.97) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  padding: 6px 10px 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85), 0 14px 34px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.island-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.emblem-hex-frame {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 240, 255, 0.22);
  flex-shrink: 0;
  overflow: hidden;
}

.emblem-90-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #f8fafc;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-version {
  font-size: 8.5px;
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 2px;
}

.real-presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 1px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.real-presence-pill:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: radarPulse 1.8s infinite;
}

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

.colo-chip {
  background: #050811;
  color: #00f0ff;
  font-size: 8.5px;
  font-weight: 900;
  padding: 0 4px;
  border-radius: 3px;
  border: 0.5px solid rgba(0, 240, 255, 0.4);
}

.fuel-ticker-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #cbd5e1;
}

.sep { opacity: 0.45; }

.island-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cockpit-MiniBtn {
  background: #1e2638;
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.15s;
}

.cockpit-MiniBtn:active { transform: scale(0.94); }

.cockpit-MiniBtn.dial-btn {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--gold-bright);
}

.cockpit-MiniBtn.sos-pill {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(185, 28, 28, 0.4) 100%);
  border-color: #ef4444;
  color: #fecaca;
  font-weight: 900;
}

/* Avionics Tactical Switchboard Rail */
.avionics-switchboard {
  pointer-events: auto;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px;
  scrollbar-width: none;
}
.avionics-switchboard::-webkit-scrollbar { display: none; }

.av-switch {
  background: linear-gradient(180deg, #131a29 0%, #070c16 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.15s;
}

.av-switch:hover,
.av-switch.active {
  border-color: #00f0ff;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.av-switch.active .av-led {
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}

.av-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}
.av-led.gold { background: #00f0ff; box-shadow: 0 0 6px rgba(0, 240, 255, 0.7); }
.av-led.teal { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.7); }
.av-led.crimson { background: #ff3b5c; box-shadow: 0 0 6px rgba(255, 59, 92, 0.7); }
.av-led.cyan { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.7); }

.radar-pill {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  transition: all 0.2s;
}

.radar-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
  transition: all 0.2s;
}

.radar-pill.active {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.16);
  color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.radar-pill.active .radar-led {
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}

/* ==========================================================================
   2. MODERN WAZE-STYLE FLOATING BOTTOM DOCK
   ========================================================================== */
.command-deck,
.command-deck.tactical-deck {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  max-width: 480px;
  margin: 0 auto;
  z-index: 20;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 8px 12px 12px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.command-deck::-webkit-scrollbar { display: none; }
.command-deck.expanded { max-height: 88vh; }

.deck-grip {
  display: flex;
  justify-content: center;
  padding: 0 0 6px 0;
  cursor: pointer;
}

.machined-grip-rail {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.machined-grip-rail .hex-bolt,
.machined-grip-rail .grip-groove,
.machined-grip-rail .grip-title {
  display: none;
}

.deck-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* WAZE SEARCH PILL & QUICK ACTIONS */
.waze-deck-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* DUAL ORIGIN & DESTINATION PLANNER CARD */
.planner-dual-card {
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: visible;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.planner-field-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
  transition: background 0.12s ease;
  border-radius: 18px;
}

.planner-field-row:hover,
.planner-field-row:active {
  background: rgba(255, 255, 255, 0.05);
}

.field-node-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.field-node-dot.origin-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.field-node-dot.dest-dot {
  background: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.field-content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.field-meta-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
  line-height: 1.1;
}

.field-val-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-val-text.placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.field-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.field-mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  border-radius: 14px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.field-mini-btn:active {
  background: rgba(56, 189, 248, 0.25);
  transform: scale(0.96);
}

.planner-divider-bar {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  margin: 0 12px;
}

.hairline-route-connector {
  position: absolute;
  left: -7px;
  top: -8px;
  bottom: -8px;
  width: 1px;
  border-left: 2px dotted rgba(255, 255, 255, 0.2);
}

.planner-swap-btn {
  position: absolute;
  right: 6px;
  top: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s;
  z-index: 2;
}

.planner-swap-btn:active {
  transform: rotate(180deg) scale(0.92);
  background: #334155;
}

/* SEARCH OVERLAY TARGET TABS */
.search-target-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.target-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.target-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.target-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.target-dot.green { background: #10b981; }
.target-dot.red { background: #00e5ff; }

.target-swap-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.target-swap-btn:active {
  transform: rotate(180deg);
  background: #f1f5f9;
}

/* ROUTE PREVIEW ENDPOINTS FLOW */
.route-endpoints-flow {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.endpoint-line {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.endpoint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.endpoint-dot.green { background: #10b981; }
.endpoint-dot.red { background: #00e5ff; }

.endpoint-prefix {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.endpoint-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-swap-route-endpoints {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.15s ease;
}

.btn-swap-route-endpoints:active {
  transform: rotate(180deg);
  background: rgba(56, 189, 248, 0.25);
}

/* LIGHT THEME TOP TELEMETRY ISLAND & AVIONICS SWITCHBOARD (MENUS) */
body.light-theme .telemetry-island {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.light-theme .brand-title {
  color: #0f172a;
}

body.light-theme .brand-version {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

body.light-theme .brand-sub {
  color: #64748b;
}

body.light-theme .real-presence-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #059669;
}

body.light-theme .colo-chip {
  background: #e2e8f0;
  color: #0284c7;
  border: 0.5px solid #cbd5e1;
}

body.light-theme .fuel-ticker-pill {
  color: #334155;
  font-weight: 700;
}

body.light-theme .cockpit-MiniBtn {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.light-theme .cockpit-MiniBtn:hover {
  background: #e2e8f0;
}

body.light-theme .cockpit-MiniBtn.dial-btn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

body.light-theme .cockpit-MiniBtn.sos-pill {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* AVIONICS SWITCHBOARD CAPSULES (TOP MENU) IN LIGHT THEME */
body.light-theme .av-switch {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 9px;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.light-theme .av-switch .av-label {
  color: #0f172a;
  font-weight: 800;
}

body.light-theme .av-switch:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
}

body.light-theme .av-switch:hover .av-label {
  color: #0284c7;
}

body.light-theme .av-switch.active {
  background: #f0f9ff;
  border: 1.5px solid #0284c7;
  color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.18);
}

body.light-theme .av-switch.active .av-label {
  color: #0284c7;
  font-weight: 900;
}

body.light-theme .av-switch.active .av-led {
  background: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.7);
}

body.light-theme .av-led {
  background: #94a3b8;
}

body.light-theme .av-led.gold {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

body.light-theme .av-led.teal {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

body.light-theme .av-led.crimson {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

body.light-theme .av-led.cyan {
  background: #0284c7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.6);
}

/* FLOATING MAP ACTIONS (LIGHT THEME) */
body.light-theme .map-action-btn {
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-theme .map-action-btn:hover {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.2);
}

body.light-theme .map-action-btn .btn-action-text {
  color: #0f172a;
  font-weight: 800;
}

body.light-theme .map-action-btn.overview-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border-color: rgba(2, 132, 199, 0.35);
}

body.light-theme .map-action-btn.overview-btn .btn-action-text {
  color: #0284c7;
}

body.light-theme .map-action-btn.recenter-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.22);
}

body.light-theme .map-action-btn.recenter-btn .btn-action-text {
  color: #059669;
}

body.light-theme .planner-dual-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.light-theme .field-val-text {
  color: #0f172a;
}

/* LIGHT THEME NAVIGATION HUD & THEN PILL */
body.light-theme .cyber-maneuver-card {
  background: linear-gradient(155deg, rgba(6, 78, 59, 0.96) 0%, rgba(9, 13, 22, 0.98) 72%);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

body.light-theme .cyber-turn-street {
  color: #ecfdf5;
}

body.light-theme .cyber-turn-dist {
  color: #ffffff;
}

body.light-theme .hud-then-pill {
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(2, 132, 199, 0.35);
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

body.light-theme .hud-then-pill:hover {
  background: #f8fafc;
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
}

body.light-theme .then-label {
  background: #0284c7;
  color: #ffffff;
  font-weight: 900;
}

body.light-theme #hudNextIcon {
  color: #0284c7;
  font-size: 14px;
}

body.light-theme #hudNextText {
  color: #0f172a;
  font-weight: 800;
}

body.light-theme .hud-next-toll-pill {
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  color: #b45309;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

body.light-theme #hudNextTollText {
  color: #92400e;
  font-weight: 800;
}


body.light-theme .endpoint-name {
  color: #0f172a;
}

body.light-theme .endpoint-prefix {
  color: #64748b;
}

body.light-theme .endpoint-dot.red {
  background: #ef4444;
}

body.light-theme .btn-swap-route-endpoints {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0284c7;
}

body.light-theme .btn-close-route-mini {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

body.light-theme .planner-swap-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0284c7;
}

body.light-theme .field-mini-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0284c7;
}

/* WAZE QUICK CHIPS ROW */
.waze-quick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.waze-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.waze-chip:hover,
.waze-chip:active {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.waze-chip-emoji {
  font-size: 14px;
}

.waze-chip-text {
  font-size: 11.5px;
  font-weight: 600;
}

body.light-theme .command-deck {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

body.light-theme .machined-grip-rail {
  background: rgba(0, 0, 0, 0.15);
}

body.light-theme .waze-search-pill {
  background: #f1f3f4;
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .waze-search-hint {
  color: #0f172a;
}

body.light-theme .waze-search-origin-sub {
  color: #64748b;
}

body.light-theme .waze-chip {
  background: #f1f3f4;
  border-color: rgba(0, 0, 0, 0.06);
  color: #1e293b;
}

body.light-theme .waze-chip:hover,
body.light-theme .waze-chip:active {
  background: #e2e8f0;
}

body.light-theme .aero-corridor-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .aero-corridor-card:hover {
  background: #f8fafc;
  border-color: #0284c7;
}

body.light-theme .aero-corridor-card.active {
  background: #f0f9ff;
  border: 1.5px solid #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

body.light-theme .aero-corridor-card.active .acc-radio-dot {
  border-color: #0284c7;
  background: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

body.light-theme .acc-persona {
  color: #0f172a;
}

body.light-theme .acc-sub {
  color: #64748b;
}

body.light-theme .acc-time-val {
  color: #0f172a;
}

body.light-theme .acc-badge.pantas {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

body.light-theme .endpoint-name {
  color: #0f172a;
}

body.light-theme .endpoint-prefix {
  color: #64748b;
}

body.light-theme .endpoint-dot.red {
  background: #ef4444;
}

body.light-theme .btn-swap-route-endpoints {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0284c7;
}

body.light-theme .btn-close-route-mini {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

/* TACTICAL WAYPOINT NAVIGATION BAY (ALPHA & BRAVO) */
.dual-planner-box,
.tactical-waypoint-box {
  background: rgba(8, 12, 22, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 14px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.dp-row,
.tactical-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #101726;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  padding: 7px 9px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dp-row:focus-within,
.dp-row.dp-active-field,
.tactical-row:focus-within,
.tactical-row.dp-active-field {
  border-color: #00f0ff;
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.22);
}

.dp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-origin { background: #10b981; box-shadow: 0 0 8px #10b981; }
.dot-via { background: #38bdf8; }
.dot-dest { background: #00f0ff; box-shadow: 0 0 8px #00f0ff; }

.dp-tag,
.tactical-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  flex-shrink: 0;
}
.dp-tag.amber,
.tactical-tag.amber {
  background: rgba(0, 240, 255, 0.18);
  color: #00f0ff;
}
.dp-tag.gold,
.tactical-tag.gold {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.dp-input,
.tactical-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
.dp-input::placeholder,
.tactical-input::placeholder {
  color: var(--text-secondary);
  font-weight: 500;
}

.dp-clear {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  padding: 0 4px;
}

.dp-action-pill,
.metal-pill {
  background: #162032;
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.15s;
}
.dp-action-pill.gold-border,
.metal-pill.gold-border {
  border-color: rgba(0, 240, 255, 0.45);
  color: #00f0ff;
}
.dp-action-pill.danger { color: #f87171; }

.dp-connector-bar,
.tactical-connector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.dp-quick-commute {
  display: flex;
  gap: 5px;
}

.dp-commute-chip,
.metal-chip {
  background: #111827;
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.metal-chip .chip-m {
  font-family: var(--font-mono);
  font-size: 8px;
  background: rgba(0, 240, 255, 0.18);
  color: #00f0ff;
  padding: 0 4px;
  border-radius: 3px;
}
.dp-commute-chip:hover,
.metal-chip:hover {
  color: #ffffff;
  border-color: #00f0ff;
}

.dp-swap-btn,
.tactical-swap-btn {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s;
}
.dp-swap-btn:hover,
.tactical-swap-btn:hover {
  background: rgba(0, 240, 255, 0.22);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* SUPERCAR & AEROSPACE IGNITION LAUNCH BUTTON */
.btn-ignition-launch,
.btn-plan-now {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 40%, #00f0ff 100%);
  color: #040810;
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
}

.btn-ignition-launch:hover,
.btn-plan-now:hover {
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.55);
}

.btn-ignition-launch:active,
.btn-plan-now:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.35);
}

.ignition-hazard-strip {
  display: none;
}

.ignition-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 6px;
}

.ignition-badge {
  background: rgba(4, 8, 16, 0.88);
  color: #00f0ff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.ignition-label,
.btn-plan-label {
  font-size: 13.5px;
  font-weight: 900;
  color: #040810;
}

.ignition-arrow,
.btn-plan-arrow {
  font-size: 16px;
  font-weight: 900;
  color: #040810;
}

/* Telemetry Grid for Genuine Cloudflare Edge Presence Modal */
.telemetry-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.spec-tile {
  background: #101726;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 10px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.spec-val-big {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  color: #10b981;
  line-height: 1.1;
  margin: 4px 0 2px 0;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 4px;
}

.spec-sub {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

/* Primary Route Planning Launch Action Bar */
.planner-action-bar {
  margin-top: 4px;
}

.btn-plan-badge {
  background: rgba(4, 8, 16, 0.85);
  color: #00f0ff;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  letter-spacing: 0.06em;
}

.ribbon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* POI Engine Modal Styles */
.poi-engine-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}

.poi-engine-card.active {
  border-color: var(--teal);
  background: rgba(16, 185, 129, 0.08);
}

.poi-engine-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.poi-status-badge {
  font-size: 9.5px;
  font-weight: 900;
  background: #10b981;
  color: #06110d;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.poi-engine-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 6px;
}

/* Mobile Toast Notification Pill */
.mobile-toast-pill {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 24, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  z-index: 9999;
  pointer-events: none;
  animation: toastFadeIn 0.25s ease-out;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Horizontal Sports-Car Preset Ribbon */
.preset-ribbon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.pwa-mini-link {
  background: none;
  border: none;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.autocomplete-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.autocomplete-list::-webkit-scrollbar {
  width: 4px;
}
.autocomplete-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* UNIFIED HIGH-EFFICIENCY SEARCH RESULT ROW (Google Maps / Clean Waze Style) */
.search-result-row, .autocomplete-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  border-radius: 0;
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.12s ease;
}

.search-result-row:hover, .search-result-row:active,
.autocomplete-item:hover, .autocomplete-item:active {
  background: rgba(255, 255, 255, 0.05);
  transform: none;
}

.row-icon-col, .ac-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  color: #64748b;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
}

.row-body-col, .ac-info {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.row-title, .ac-title {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.row-subtitle, .ac-subtitle {
  font-size: 12.5px;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.row-dist-col, .ac-dist-badge {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-family: inherit;
  white-space: nowrap;
  text-align: right;
  min-width: 48px;
}

/* FULL-SCREEN IMMERSIVE SEARCH OVERLAY (Google Maps Clean Light by Default, Matches User Reference) */
.full-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100dvh;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInSearch 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.search-top-nav {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.search-nav-btn.back-btn {
  background: none;
  border: none;
  color: #334155;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.search-nav-btn.back-btn:active {
  background: #f1f5f9;
}

.search-input-shell {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f1f3f4;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 0 16px;
  height: 44px;
  box-sizing: border-box;
}

.search-input-shell:focus-within {
  background: #ffffff;
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.full-search-field {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15.5px;
  font-weight: 500;
  color: #0f172a;
  font-family: inherit;
  width: 100%;
}

.full-search-field::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-clear-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.full-search-results-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

/* Pristine Search Result Styling inside Full Search Overlay (Matches Reference media_1793433926874_36042732.jpg) */
.full-search-results-list .search-result-row {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.full-search-results-list .search-result-row:hover,
.full-search-results-list .search-result-row:active {
  background: #f8fafc;
}

.full-search-results-list .row-icon-col {
  color: #475569;
}

.full-search-results-list .row-title {
  color: #0f172a;
  font-weight: 600;
}

.full-search-results-list .row-subtitle {
  color: #64748b;
}

.full-search-results-list .row-dist-col {
  color: #64748b;
  font-weight: 500;
}

.autocomplete-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #0b0f19;
}

/* Signature 4-Tile Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bento-tile {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 10px 12px;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  transition: transform 0.15s, border-color 0.15s;
}

.bento-tile:active { transform: scale(0.97); }

.tile-gold {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.18), rgba(20, 27, 45, 0.9));
  border-color: rgba(245, 158, 11, 0.35);
}

.tile-teal {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.18), rgba(20, 27, 45, 0.9));
  border-color: rgba(16, 185, 129, 0.35);
}

.tile-crimson {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.16), rgba(20, 27, 45, 0.9));
  border-color: rgba(239, 68, 68, 0.32);
}

.tile-slate {
  background: var(--surface);
}

.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bento-icon { font-size: 17px; }

.bento-tag {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.bento-title {
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}

.bento-sub {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.bento-commute-btns {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.commute-pill {
  flex: 1;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 9px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

/* Fuel Card inside Deck */
.cockpit-fuel-strip .fuel-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px 10px;
}
.fuel-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.fuel-title { font-size: 11px; font-weight: 800; color: var(--gold-bright); }
.fuel-validity { font-size: 10px; color: var(--text-secondary); }
.fuel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fuel-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 5px; }
.fuel-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 5px 4px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.fuel-item.active-fuel {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.14);
}
.fuel-label { font-size: 9px; font-weight: 800; color: var(--text-secondary); white-space: nowrap; }
.fuel-price { font-family: var(--font-mono); font-size: 12px; font-weight: 900; color: var(--text-primary); }
.fuel-unit { font-size: 9px; color: var(--text-secondary); }
.fuel-badge { display: none; }

/* ==========================================================================
   3. F1 TELEMETRY ROUTE & COST MATRIX (MODE B)
   ========================================================================== */
.route-dest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.route-dest-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-close-route-mini {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.route-options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ro-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.ro-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.live-traffic-banner {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  border-radius: 11px;
  padding: 8px 11px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

/* 3 Side-by-Side Route Option Comparison Cards */
.route-option-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

/* ==========================================================================
   3. AERO FLIGHT CORRIDORS & CYBER FLIGHT COMPUTER (INNOVATIVE REDESIGN)
   ========================================================================== */
.route-dest-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dest-target-radar {
  font-size: 15px;
  filter: drop-shadow(0 0 6px #00f0ff);
}

.corridor-runway-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.corridor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.corridor-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.corridor-lead-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}

.corridor-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.corridor-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
}

/* Modern Horizontal Segmented Tactical Flight Corridors */
.aero-corridor-runway {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aero-corridor-card {
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.aero-corridor-card:hover {
  background: rgba(20, 31, 56, 0.95);
  border-color: rgba(0, 240, 255, 0.45);
}

.aero-corridor-card.active {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.28) 0%, rgba(6, 182, 212, 0.12) 100%);
  border: 1.5px solid #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.acc-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.acc-radio-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  transition: all 0.18s ease;
}

.aero-corridor-card.active .acc-radio-dot {
  border-color: #00f0ff;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
}

.acc-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.acc-persona {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.acc-delta {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  border: 0.5px solid rgba(56, 189, 248, 0.3);
}

.acc-sub {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.acc-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.acc-time {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.acc-unit {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}

.acc-toll {
  font-size: 10.5px;
  font-weight: 800;
  color: #38bdf8;
}

.acc-toll.free {
  color: #34d399;
}

/* ==========================================================================
   UNIFIED CYBER-AERO FLIGHT COMPUTER HUD (REPLACES 3-BOX MATRIX)
   ========================================================================== */
.aero-flight-computer {
  background: linear-gradient(135deg, rgba(14, 22, 38, 0.95) 0%, rgba(6, 10, 18, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fc-time-cluster {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fc-eta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
}

.fc-time-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.fc-big-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 900;
  color: #00f0ff;
  line-height: 1;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.fc-time-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  color: #7dd3fc;
  letter-spacing: 0.05em;
}

.fc-dist-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 4px;
}

.fc-cost-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.fc-cost-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.fc-round-pill {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
}

.fc-cost-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
}

.fc-cost-chips {
  display: flex;
  gap: 5px;
}

.fc-chip {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.fc-chip.toll {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 0.5px solid rgba(56, 189, 248, 0.3);
}
.fc-chip.fuel {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 0.5px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   ROUTE RADAR HORIZON TIMELINE (EXCLUSIVE INNOVATION)
   ========================================================================== */
.route-radar-horizon {
  background: rgba(8, 13, 24, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.radar-horizon-track {
  position: relative;
  padding: 6px 0;
}

.horizon-line {
  position: absolute;
  top: 13px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, #10b981 0%, #00f0ff 50%, #38bdf8 100%);
  opacity: 0.6;
}

.horizon-milestones {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.horizon-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.horizon-node.clickable {
  cursor: pointer;
}
.horizon-node.clickable:hover .h-name {
  color: #00f0ff;
  text-decoration: underline;
}

.h-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #050811;
  background: #64748b;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.h-dot.green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.h-dot.red { background: #ff3b5c; box-shadow: 0 0 8px #ff3b5c; }
.h-dot.cyan { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.h-dot.emerald { background: #00f0ff; box-shadow: 0 0 8px #00f0ff; }
.h-dot.target { background: #00f0ff; box-shadow: 0 0 10px #00f0ff; border-color: #ffffff; }

.h-name {
  font-size: 9px;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.radar-horizon-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

.radar-horizon-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s;
}
.radar-horizon-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
}

.rh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.rh-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.rh-dot.red { background: #ff3b5c; box-shadow: 0 0 6px #ff3b5c; }

.radar-horizon-tng {
  font-size: 10px;
  color: var(--text-secondary);
}
.radar-horizon-tng strong {
  color: #00f0ff;
}

/* ==========================================================================
   AERO LAUNCH CLUSTER
   ========================================================================== */
.aero-launch-cluster {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.btn-aero-start-nav {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 40%, #00f0ff 100%);
  color: #040810;
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn-aero-start-nav:hover {
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.55);
}

.btn-aero-start-nav:active {
  transform: scale(0.98);
}

.btn-nav-icon {
  font-size: 18px;
}

.btn-nav-label {
  font-size: 14px;
  font-weight: 900;
  color: #040810;
}

.btn-nav-arrow {
  font-size: 16px;
  font-weight: 900;
  color: #040810;
}

.aero-aux-actions {
  display: flex;
  gap: 6px;
}

.btn-aero-aux {
  flex: 1;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 9px 8px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s;
}

.btn-aero-aux:hover {
  background: rgba(0, 240, 255, 0.14);
  border-color: #00f0ff;
  color: #ffffff;
}

.btn-aero-aux.btn-launch-sim {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.btn-aero-aux.btn-launch-overview {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
}
  border-radius: 4px;
  white-space: nowrap;
}

.r-trip {
  font-size: 9px;
  font-weight: 800;
  color: #38bdf8;
  white-space: nowrap;
}

.tng-label {
  font-size: 9.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.tng-min-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 900;
  color: #38bdf8;
}

.tng-radar-counts {
  display: flex;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Config Bar */
.cockpit-config-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 11px;
}

.cfg-left {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-weight: 700;
  min-width: 0;
  flex: 1;
}

.cockpit-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 800;
  outline: none;
  min-width: 0;
  max-width: 155px;
  text-overflow: ellipsis;
}
.cockpit-select option { background: #0f172a; color: #fff; }

.cfg-flood-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #38bdf8;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

/* Toll Breakdown List */
.cockpit-toll-list {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 7px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toll-item {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}
.toll-name { color: var(--text-primary); font-weight: 600; }
.toll-price { font-family: var(--font-mono); color: var(--gold-bright); font-weight: 900; }

/* Legacy Launch Hook Compatibility */
.btn-launch-icon.danger { color: #f87171; }

/* Clean Turn-by-Turn Directions List */
.cockpit-steps-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.steps-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

#stepsSummaryTitle {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.external-nav-links-inline {
  display: flex;
  gap: 6px;
}

.ext-link-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold-bright);
  text-decoration: none;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 8px;
  border-radius: 99px;
}

.steps-list-clean {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.step-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 12.5px;
  color: var(--text-primary);
}
.step-row:last-child {
  border-bottom: none;
}

.step-dist {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   4. EV CYBER-COCKPIT 3D NAVIGATION HUD (LLM Highway Gantry + Speed Limit Cluster)
   ========================================================================== */
.cyber-hud-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  max-width: 500px;
  margin: 0 auto;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cyber-maneuver-card {
  background: linear-gradient(155deg, rgba(6, 78, 59, 0.94) 0%, rgba(9, 13, 22, 0.96) 72%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  border-radius: 22px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cyber-maneuver-card:hover {
  border-color: rgba(52, 211, 153, 0.85);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75), 0 0 16px rgba(16, 185, 129, 0.3);
}

.cyber-maneuver-card:active {
  transform: scale(0.985);
}

.cyber-turn-vector {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, #0284c7 0%, #00f0ff 100%);
  color: #040810;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
}

.cyber-turn-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cyber-turn-top-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cyber-turn-dist {
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
}

.cyber-road-shield {
  background: #0284c7;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cyber-sim-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.cyber-sim-badge.mode-simulation {
  background: rgba(0, 240, 255, 0.18);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.cyber-sim-badge.mode-gps {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.cyber-turn-street {
  font-size: 13.5px;
  font-weight: 800;
  color: #ecfdf5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4-Lane Highway Guidance Bar */
.cyber-lane-assist {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.lane-box {
  width: 24px;
  height: 20px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: rgba(148, 163, 184, 0.5);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lane-box.active {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

/* Speed Limit + Digital Speedometer Cluster */
.cyber-speed-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.my-speed-limit-sign {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #090d16;
  border: 4.5px solid #ef4444;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* Secondary "Then (Kemudian)" Strip + Next Toll Pill */
.cyber-hud-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.hud-then-pill {
  flex: 1;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hud-then-pill:hover {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.2);
}

.hud-then-pill:active {
  transform: scale(0.97);
}

.then-label {
  font-size: 9px;
  font-weight: 900;
  background: rgba(148, 163, 184, 0.2);
  color: var(--gold-bright);
  padding: 2px 5px;
  border-radius: 4px;
}

.hud-next-toll-pill {
  background: rgba(9, 13, 22, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--gold-bright);
  border-radius: 12px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* ==========================================================================
   TURN-BY-TURN MANEUVER TARGET BEACON ON MAP (Click to Preview)
   ========================================================================== */
.maneuver-target-beacon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
  z-index: 50;
}

.beacon-pin-dot {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00f0ff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 14px #00f0ff;
  z-index: 5;
}

.beacon-pulse {
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.85);
  animation: beaconPing 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 2;
}

@keyframes beaconPing {
  0% {
    transform: translateX(-50%) scale(0.4);
    opacity: 1;
  }
  75%, 100% {
    transform: translateX(-50%) scale(2.6);
    opacity: 0;
  }
}

.beacon-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid #00f0ff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 240, 255, 0.45);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  animation: beaconBounce 0.4s ease-out;
  margin-bottom: 10px;
}

.beacon-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #00f0ff;
}

.beacon-icon {
  font-size: 18px;
  line-height: 1;
}

.beacon-text {
  font-weight: 800;
  color: #f8fafc;
}

.beacon-dist {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #00f0ff;
  font-weight: 900;
}

/* Light Mode Maneuver Target Beacon */
body.light-theme .beacon-pin-dot {
  background: #0284c7;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.9);
}

body.light-theme .beacon-pulse {
  background: rgba(2, 132, 199, 0.45);
  box-shadow: 0 0 18px rgba(2, 132, 199, 0.75);
}

body.light-theme .beacon-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: #0284c7;
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22), 0 0 16px rgba(2, 132, 199, 0.35);
}

body.light-theme .beacon-card::after {
  border-top-color: #0284c7;
}

body.light-theme .beacon-text {
  color: #0f172a;
}

body.light-theme .beacon-dist {
  color: #0284c7;
}

@keyframes beaconBounce {
  0% {
    transform: translateY(-8px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Digital Arc Speedometer */
.cyber-speed-dial {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.speed-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.speed-ring-bg {
  fill: rgba(15, 23, 42, 0.9);
  stroke: rgba(148, 163, 184, 0.2);
  stroke-width: 5;
}

.speed-ring-Arc {
  fill: none;
  stroke: var(--teal);
  stroke-width: 5;
  stroke-dasharray: 214;
  stroke-dashoffset: 65;
  stroke-linecap: round;
  transition: stroke 0.25s, stroke-dashoffset 0.25s;
}
.speed-ring-Arc.overspeed {
  stroke: #ef4444;
}

.speed-dial-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.speed-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.speed-label {
  font-size: 8px;
  font-weight: 900;
  color: var(--teal);
  margin-top: 2px;
}

/* AWAS Laser Warning Banner */
.awas-alert-banner {
  position: absolute;
  top: 142px;
  left: 10px;
  right: 10px;
  max-width: 500px;
  margin: 0 auto;
  z-index: 32;
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 100%);
  border: 1.5px solid #fca5a5;
  color: #fff;
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.55);
}

.awas-limit-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #090d16;
  border: 4px solid #ef4444;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.awas-alert-title { font-size: 13.5px; font-weight: 900; }
.awas-alert-sub { font-size: 11.5px; opacity: 0.92; }

/* Bottom Navigation Telemetry Pod */
.cyber-hud-bottom {
  position: absolute;
  bottom: 16px;
  left: 10px;
  right: 10px;
  max-width: 500px;
  margin: 0 auto;
  z-index: 30;
  background: var(--obsidian);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.hud-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(148, 163, 184, 0.2);
}

.hud-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.3s ease;
}

.hud-pod-content {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.hud-pod-metrics {
  flex: 1;
  min-width: 0;
}

.hud-eta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.hud-eta-big {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 900;
  color: #34d399;
  line-height: 1;
}

.hud-eta-tag {
  font-size: 9px;
  font-weight: 900;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 2px 4px;
  border-radius: 4px;
}

.hud-rem-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 2px 5px;
  border-radius: 6px;
  white-space: nowrap;
}

.hud-meta-row {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 3px;
  display: flex;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-pod-btns {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
}

.cockpit-icon-btn {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.cockpit-stop-btn {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
}

/* ==========================================================================
   5. MAP MARKERS & MODALS
   ========================================================================== */
.pick-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  background: var(--obsidian-solid);
  border: 1.5px solid var(--gold);
  color: var(--gold-bright);
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.btn-pick-cancel {
  background: var(--crimson);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.point-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090d16;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}
.marker-dot { width: 12px; height: 12px; border-radius: 50%; }
.marker-dot.green { background: var(--teal); }
.marker-dot.amber { background: var(--gold); }
.marker-dot.red { background: var(--crimson); }

.map-toll-pill {
  background: #090d16;
  color: var(--gold-bright);
  border: 1.5px solid var(--gold);
  padding: 3px 8px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

.cctv-pin { cursor: pointer; }
.cctv-icon-bubble {
  background: #090d16;
  color: var(--gold-bright);
  border: 1.5px solid var(--gold);
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  display: flex;
}

.awas-pin { cursor: pointer; }
.awas-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  color: #090d16;
  border: 3.5px solid var(--crimson);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}

.stop-pin { cursor: pointer; }
.stop-pin-bubble {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #090d16;
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.flood-marker { position: relative; cursor: pointer; }
.flood-icon-center {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
  z-index: 2;
}
.flood-pulse-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.35);
  animation: floodPulse 2s infinite;
  z-index: 1;
}
@keyframes floodPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.alert-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #090d16;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.75);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  background: var(--obsidian-solid);
  color: var(--text-primary);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  max-width: 460px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-title { font-size: 15.5px; font-weight: 900; color: var(--gold-bright); }
.modal-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; }

.btn-close {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
}

.btn-primary-action {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #00f0ff 100%);
  color: #040810;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn-primary-action:active {
  transform: scale(0.98);
}

.calc-form { display: flex; flex-direction: column; gap: 10px; }
.calc-field { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 800; color: var(--text-secondary); }
.calc-select {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}
.calc-select option { background: #0f172a; color: #fff; }

.plus-result-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(16, 185, 129, 0.1));
  border: 1px solid var(--gold);
  text-align: center;
}
.plus-res-amount { font-family: var(--font-mono); font-size: 30px; font-weight: 900; color: var(--gold-bright); }
.plus-res-sub { font-size: 12.5px; font-weight: 800; margin-top: 4px; }
.plus-res-source { font-size: 10.5px; color: var(--text-secondary); margin-top: 4px; }

.stops-cat-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.stop-tab {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.stop-tab.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--teal);
  color: #34d399;
}

.stops-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.stop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  gap: 10px;
}
.stop-row-title { font-size: 12.5px; font-weight: 800; }
.stop-row-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.btn-go-stop {
  padding: 7px 12px;
  background: var(--gold);
  color: #090d16;
  border: none;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
}
.report-card-title { font-size: 12.5px; font-weight: 800; margin-top: 4px; }

.cctv-modal-card {
  max-width: 520px;
  width: 95%;
  background: linear-gradient(180deg, #0e172a 0%, #050811 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.85), 0 0 25px rgba(0, 240, 255, 0.2);
}

.cctv-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}
.cctv-live-badge.telemetry {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}
.cctv-live-badge.maintenance {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.cctv-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: radarPing 1.6s infinite ease-in-out;
}

.cctv-cat-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 6px 2px;
  scrollbar-width: none;
}
.cctv-cat-bar::-webkit-scrollbar { display: none; }

.cctv-cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.cctv-cat-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}
.cctv-cat-btn.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.cctv-feed-type-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-right: 6px;
  letter-spacing: 0.5px;
}
.cctv-feed-type-pill.optical {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid #10b981;
  color: #6ee7b7;
}
.cctv-feed-type-pill.telemetry {
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid #00f0ff;
  color: #00f0ff;
}
.cctv-feed-type-pill.archive {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
}

.cctv-camera-rail {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  margin-top: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.cctv-camera-rail::-webkit-scrollbar {
  height: 4px;
}
.cctv-camera-rail::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.4);
  border-radius: 4px;
}

.cctv-cam-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 6px 11px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cctv-cam-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}
.cctv-cam-pill.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.cctv-viewport-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #050811;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.cctv-hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(5, 8, 17, 0.88) 0%, rgba(5, 8, 17, 0) 100%);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.cctv-rec-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 0.5px;
  margin-right: 6px;
}

.cctv-highway-tag {
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
}

.cctv-time-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(0,0,0,0.5);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cctv-frame {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020408;
}

.cctv-hud-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 6;
}
.corner-tl { top: 6px; left: 6px; border-top: 2px solid #00f0ff; border-left: 2px solid #00f0ff; }
.corner-tr { top: 6px; right: 6px; border-top: 2px solid #00f0ff; border-right: 2px solid #00f0ff; }
.corner-bl { bottom: 6px; left: 6px; border-bottom: 2px solid #00f0ff; border-left: 2px solid #00f0ff; }
.corner-br { bottom: 6px; right: 6px; border-bottom: 2px solid #00f0ff; border-right: 2px solid #00f0ff; }

.cctv-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 17, 0.78);
  backdrop-filter: blur(2px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 600;
}

.cctv-footer-bar {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cctv-direction-text {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.sos-gps-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  margin-bottom: 12px;
}
.sos-coords-val { font-family: var(--font-mono); font-size: 16px; font-weight: 900; color: #fca5a5; margin-top: 3px; }
.sos-hotline-list { display: flex; flex-direction: column; gap: 8px; }
.sos-hotline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  text-decoration: none;
  color: var(--text-primary);
  gap: 8px;
}
.sos-name { font-size: 12.5px; font-weight: 800; }
.sos-sub { font-size: 10.5px; color: var(--text-secondary); margin-top: 2px; }
.sos-call-badge {
  background: var(--gold);
  color: #090d16;
  padding: 6px 10px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

/* Floating Tactical Map Controls (Compass, Overview Route, Recenter Vehicle) */
.map-action-stack {
  position: absolute;
  right: 14px;
  top: 130px;
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: auto;
}

.map-action-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}
.map-action-btn:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
}
.map-action-btn:active {
  transform: scale(0.96);
}

.map-action-btn.compass-btn {
  border-color: rgba(239, 68, 68, 0.4);
}
.compass-needle {
  font-size: 16px;
  color: #ef4444;
  display: inline-block;
  transition: transform 0.15s ease-out;
  line-height: 1;
}

.map-action-btn.overview-btn {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(14, 165, 233, 0.18) 100%);
}
.map-action-btn.overview-btn .btn-action-icon {
  font-size: 16px;
  line-height: 1;
}
.map-action-btn.overview-btn .btn-action-text {
  font-size: 9px;
  font-weight: 800;
  color: #7dd3fc;
  letter-spacing: 0.5px;
}

.map-action-btn.recenter-btn {
  border-color: rgba(0, 240, 255, 0.7);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(0, 240, 255, 0.22) 100%);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
  animation: radarGlow 2s infinite ease-in-out;
}
.map-action-btn.recenter-btn .btn-action-icon {
  font-size: 17px;
  line-height: 1;
}
.map-action-btn.recenter-btn .btn-action-text {
  font-size: 9px;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 0.5px;
}

.recenter-radar-pulse {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #eab308;
  box-shadow: 0 0 8px #eab308;
  animation: radarPing 1.5s infinite;
}

/* Navigation Tactical Vehicle Arrow with hardware acceleration */
.vehicle-nav-arrow {
  width: 48px;
  height: 48px;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 4px 14px rgba(0, 229, 255, 0.65));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none !important;
}
.vehicle-nav-arrow svg {
  display: block;
  transform-origin: center center;
  transition: none !important;
}
.maplibregl-marker {
  transition: none !important;
}

/* ==========================================================================
   ACTIVE NAVIGATION STEP-BY-STEP DRAWER & STEPPER (一个step一个step)
   ========================================================================== */

/* 1. On-Map Maneuver Stepper Bar (Thumb Zone) */
.nav-step-stepper {
  position: absolute;
  bottom: 94px;
  left: 12px;
  right: 12px;
  max-width: 490px;
  margin: 0 auto;
  z-index: 45;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid #00f0ff;
  border-radius: 16px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 240, 255, 0.25);
  animation: slideUpFade 0.25s ease-out;
}

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

.stepper-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.stepper-nav-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
}

.stepper-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.2);
  color: rgba(148, 163, 184, 0.5);
}

.stepper-center-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.stepper-center-info:hover {
  background: rgba(255, 255, 255, 0.05);
}

.stepper-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper-idx-badge {
  font-size: 10px;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 0.4px;
  background: rgba(0, 240, 255, 0.16);
  padding: 1px 5px;
  border-radius: 4px;
}

.stepper-dist-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-bright);
}

.stepper-text-row {
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper-resume-btn {
  padding: 7px 11px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s ease;
}

.stepper-resume-btn:hover {
  filter: brightness(1.1);
}

.stepper-resume-btn:active {
  transform: scale(0.96);
}

/* Light Theme Stepper */
body.light-theme .nav-step-stepper {
  background: rgba(255, 255, 255, 0.98);
  border-color: #0284c7;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 0 16px rgba(2, 132, 199, 0.2);
}

body.light-theme .stepper-nav-btn {
  background: #f1f5f9;
  border-color: rgba(2, 132, 199, 0.4);
  color: #0284c7;
}

body.light-theme .stepper-nav-btn:hover {
  background: rgba(2, 132, 199, 0.12);
}

body.light-theme .stepper-idx-badge {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.12);
}

body.light-theme .stepper-text-row {
  color: #0f172a;
}


/* 2. Full Navigation Step-by-Step Drawer (Bottom Modal) */
.nav-steps-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 520px;
  margin: 0 auto;
  max-height: 72vh;
  z-index: 100;
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1.5px solid rgba(0, 240, 255, 0.4);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  animation: drawerSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.nav-steps-handle-bar {
  padding: 8px 0 4px;
  display: flex;
  justify-content: center;
  cursor: grab;
}

.nav-steps-drag-pill {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.4);
}

.nav-steps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.nav-steps-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-steps-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-steps-sub {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.btn-close-drawer {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.15);
  border: none;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-close-drawer:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.nav-steps-list-body {
  overflow-y: auto;
  max-height: calc(72vh - 80px);
  padding: 8px 12px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Step Item in Drawer */
.nav-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-step-item:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateX(2px);
}

.nav-step-item.is-active {
  background: rgba(0, 240, 255, 0.14);
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.nav-step-item.is-passed {
  opacity: 0.55;
}

.nav-step-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(0, 240, 255, 0.15) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
}

.nav-step-item.is-active .nav-step-icon-box {
  background: linear-gradient(135deg, #0284c7 0%, #00f0ff 100%);
  color: #040810;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.nav-step-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-step-instruction {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
}

.nav-step-item.is-active .nav-step-instruction {
  color: #ffffff;
  font-weight: 900;
}

.nav-step-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-step-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.nav-step-badge.current {
  background: #10b981;
  color: #ffffff;
}

.nav-step-badge.then {
  background: #0284c7;
  color: #ffffff;
}

.nav-step-badge.road {
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-family: var(--font-mono);
}

.nav-step-dist-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.nav-step-dist {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-bright);
}

.nav-step-preview-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Light Theme Drawer */
body.light-theme .nav-steps-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-top-color: #0284c7;
  box-shadow: 0 -16px 48px rgba(15, 23, 42, 0.22);
}

body.light-theme .nav-steps-title {
  color: #0f172a;
}

body.light-theme .nav-steps-sub {
  color: #64748b;
}

body.light-theme .btn-close-drawer {
  background: #f1f5f9;
  color: #64748b;
}

body.light-theme .btn-close-drawer:hover {
  background: #fee2e2;
  color: #ef4444;
}

body.light-theme .nav-step-item {
  background: #f8fafc;
  border-color: rgba(226, 232, 240, 0.8);
}

body.light-theme .nav-step-item:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
}

body.light-theme .nav-step-item.is-active {
  background: rgba(2, 132, 199, 0.12);
  border-color: #0284c7;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.25);
}

body.light-theme .nav-step-instruction {
  color: #0f172a;
}

body.light-theme .nav-step-item.is-active .nav-step-instruction {
  color: #0284c7;
  font-weight: 900;
}

body.light-theme .nav-step-icon-box {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284c7;
}

body.light-theme .nav-step-item.is-active .nav-step-icon-box {
  background: #0284c7;
  color: #ffffff;
}

body.light-theme .nav-step-preview-tag {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   DAYLIGHT / LIGHT THEME OVERRIDES (TOP HEADER, SWITCHBOARD & FLOATING CONTROLS)
   ========================================================================== */
body.light-theme .telemetry-island {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .brand-title {
  color: #0f172a !important;
}

body.light-theme .brand-version {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
}

body.light-theme .brand-sub {
  color: #64748b !important;
}

body.light-theme .real-presence-pill {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #059669 !important;
}

body.light-theme .colo-chip {
  background: #e2e8f0 !important;
  color: #0284c7 !important;
  border: 0.5px solid #cbd5e1 !important;
}

body.light-theme .fuel-ticker-pill {
  color: #334155 !important;
  font-weight: 700 !important;
}

body.light-theme .cockpit-MiniBtn {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .cockpit-MiniBtn:hover {
  background: #e2e8f0 !important;
}

body.light-theme .cockpit-MiniBtn.dial-btn {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

body.light-theme .cockpit-MiniBtn.sos-pill {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* AVIONICS SWITCHBOARD CAPSULES (THE TOP MENU STRIP) */
body.light-theme .avionics-switchboard {
  background: transparent !important;
}

body.light-theme .av-switch {
  background: #ffffff !important;
  background-image: none !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 9px !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .av-switch .av-label,
body.light-theme .av-switch span {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.light-theme .av-switch:hover {
  background: #f8fafc !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

body.light-theme .av-switch:hover .av-label,
body.light-theme .av-switch:hover span {
  color: #0284c7 !important;
}

body.light-theme .av-switch.active {
  background: #f0f9ff !important;
  background-image: none !important;
  border: 1.5px solid #0284c7 !important;
  color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2) !important;
}

body.light-theme .av-switch.active .av-label,
body.light-theme .av-switch.active span {
  color: #0284c7 !important;
  font-weight: 900 !important;
}

body.light-theme .av-switch.active .av-led {
  background: #0284c7 !important;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.8) !important;
}

body.light-theme .av-led {
  background: #94a3b8 !important;
}

body.light-theme .av-led.gold {
  background: #f59e0b !important;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7) !important;
}

body.light-theme .av-led.teal {
  background: #10b981 !important;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7) !important;
}

body.light-theme .av-led.crimson {
  background: #ef4444 !important;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7) !important;
}

body.light-theme .av-led.cyan {
  background: #0284c7 !important;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.7) !important;
}

/* FLOATING MAP CONTROLS ON RIGHT SIDE */
body.light-theme .map-action-btn {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

body.light-theme .map-action-btn:hover {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.22) !important;
}

body.light-theme .map-action-btn .btn-action-text {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.light-theme .map-action-btn.theme-btn {
  border-color: rgba(245, 158, 11, 0.45) !important;
  background: #ffffff !important;
}

body.light-theme .map-action-btn.theme-btn .btn-action-text {
  color: #b45309 !important;
}

body.light-theme .map-action-btn.overview-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
}

body.light-theme .map-action-btn.overview-btn .btn-action-text {
  color: #0284c7 !important;
}

body.light-theme .map-action-btn.recenter-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.22) !important;
}

body.light-theme .map-action-btn.recenter-btn .btn-action-text {
  color: #059669 !important;
}

.hidden { display: none !important; }
