/* ====================================================
   COMMUTER & METRO TRANSIT APP - ULTRA-PREMIUM DESIGN SYSTEM
   Modern Cyber-Metro & High-Speed Transit OCC Aesthetic
   ==================================================== */

:root {
  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette - Deep Obsidian Midnight & Neon Holographic Accents */
  --bg-primary: #060913;
  --bg-secondary: #0b1224;
  --bg-card: rgba(13, 20, 36, 0.78);
  --bg-card-hover: rgba(20, 31, 56, 0.88);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-blue: #0284c7;
  --accent-cyan: #00f0ff;
  --accent-sky: #38bdf8;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #a855f7;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.22);
  --shadow-card: 0 10px 35px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --glass-bg: rgba(9, 14, 28, 0.78);
  --glass-blur: blur(20px) saturate(180%);
}

/* Light Theme Variables — "Sky & Teal" calm bright palette (default) */
[data-theme="light"] {
  --bg-primary: #f5f8fc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-color: #e3e9f1;
  --border-highlight: rgba(14, 165, 233, 0.45);

  --text-primary: #1e293b;
  --text-secondary: #526075;
  --text-muted: #8a97a8;

  --accent-blue: #0284c7;
  --accent-cyan: #0891b2;
  --accent-sky: #0ea5e9;
  --accent-green: #059669;
  --accent-amber: #d97706;
  --accent-red: #dc2626;
  --accent-purple: #7c3aed;

  --shadow-sm: 0 2px 8px -2px rgba(30, 41, 59, 0.06);
  --shadow-md: 0 10px 24px -8px rgba(30, 41, 59, 0.10);
  --shadow-glow: 0 0 0 3px rgba(14, 165, 233, 0.12);
  --shadow-card: 0 4px 18px -6px rgba(30, 41, 59, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] header {
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px -4px rgba(30, 41, 59, 0.08);
}

[data-theme="light"] header::before {
  background: linear-gradient(90deg, #0ea5e9, #14b8a6, #0ea5e9);
  animation: none;
}

[data-theme="light"] .brand-icon-glow {
  display: none;
}

[data-theme="light"] .brand-icon {
  background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  border: none;
  box-shadow: 0 6px 14px -4px rgba(14, 165, 233, 0.45);
}

[data-theme="light"] .brand-accent,
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .live-status-pill {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  box-shadow: none;
}

[data-theme="light"] .service-ticker {
  background: #e0f2fe;
  border-bottom-color: #bae6fd;
  color: #075985;
}

[data-theme="light"] .hero-tag {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
  box-shadow: none;
}

/* Light Mode Overrides */
[data-theme="light"] body {
  background-image: 
    radial-gradient(at 10% 0%, rgba(14, 165, 233, 0.07) 0px, transparent 45%),
    radial-gradient(at 90% 5%, rgba(20, 184, 166, 0.06) 0px, transparent 40%);
}

[data-theme="light"] .brand-title,
[data-theme="light"] .hero-title,
[data-theme="light"] .occ-stat-number {
  color: #0f172a;
}

[data-theme="light"] .occ-stat-box {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .telemetry-server-pill,
[data-theme="light"] .live-clock-badge,
[data-theme="light"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .main-nav-dock {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(2, 132, 199, 0.2);
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .main-nav-dock .tab-btn {
  color: #475569;
}

[data-theme="light"] .main-nav-dock .tab-btn:hover {
  background: rgba(2, 132, 199, 0.06);
  color: #0f172a;
}

[data-theme="light"] .main-nav-dock .tab-btn:hover .tab-main-title,
[data-theme="light"] .main-nav-dock .tab-btn.active .tab-main-title {
  color: #0f172a;
}

[data-theme="light"] .main-nav-dock .tab-btn:hover .tab-sub-title,
[data-theme="light"] .main-nav-dock .tab-btn.active .tab-sub-title {
  color: #1e293b;
  opacity: 1;
  font-weight: 700;
}

[data-theme="light"] .main-nav-dock .tab-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border-color: rgba(2, 132, 199, 0.4);
  color: #0f172a;
}

[data-theme="light"] .main-nav-dock .tab-main-title {
  color: #0f172a;
}

[data-theme="light"] .main-nav-dock .tab-sub-title {
  color: #334155;
}

[data-theme="light"] .disruption-control-bar {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-image: 
    radial-gradient(at 15% 10%, rgba(2, 132, 199, 0.18) 0px, transparent 45%),
    radial-gradient(at 85% 8%, rgba(99, 102, 241, 0.14) 0px, transparent 40%),
    radial-gradient(at 50% 45%, rgba(6, 182, 212, 0.06) 0px, transparent 55%),
    radial-gradient(at 80% 85%, rgba(227, 30, 36, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===================================================================
   SERVICE ALERT TICKER (AIRPORT / BULLET TRAIN DEPARTURE MARQUEE)
   =================================================================== */
.service-ticker {
  width: 100%;
  max-width: 100vw;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.12) 50%, rgba(16, 185, 129, 0.12) 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  padding: 8px 0;
  font-size: 12.5px;
  color: #34d399;
  display: flex;
  align-items: center;
  overflow: hidden;
  contain: paint layout;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 101;
}

.service-ticker-content {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.service-ticker:hover .service-ticker-content {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===================================================================
   HEADER & BRAND IDENTITY
   =================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  padding: 13px 0;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f0ff, #38bdf8, #818cf8, #00f0ff);
  background-size: 200% auto;
  animation: headerGlowBar 6s linear infinite;
}

@keyframes headerGlowBar {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.brand-icon-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #00f0ff, #2563eb, #a855f7);
  border-radius: 14px;
  opacity: 0.65;
  filter: blur(8px);
  animation: logoGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes logoGlowPulse {
  0% { opacity: 0.45; transform: scale(0.96); }
  100% { opacity: 0.85; transform: scale(1.04); }
}

.brand-icon {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b152d, #142247);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 15px rgba(0, 0, 0, 0.4);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  line-height: 1.15;
}

.brand-accent {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

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

.brand-subtitle {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.35px;
  margin-top: 3px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telemetry-server-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.telemetry-server-pill:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.telemetry-live-dot {
  width: 7px;
  height: 7px;
  background: #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f0ff;
  animation: pulseAnimation 1.6s infinite;
}

.live-clock-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 16, 30, 0.9);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  letter-spacing: 0.3px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.theme-toggle-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-toggle-btn:hover {
  background: rgba(30, 42, 70, 0.95);
  border-color: var(--border-highlight);
  transform: translateY(-2px) rotate(15deg);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

/* Bilingual Language Switcher (ID / EN) */
.lang-switch-group {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lang-switch-opt {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-switch-opt:hover {
  color: var(--text-primary);
}

.lang-switch-opt.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

[data-theme="light"] .lang-switch-group {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .lang-switch-opt {
  color: #64748b;
}

[data-theme="light"] .lang-switch-opt.active {
  background: #0284c7;
  color: #ffffff;
}

/* ===================================================================
   HERO SECTION & OCC DASHBOARD COMMAND STRIP
   =================================================================== */
.hero {
  padding: 34px 0 20px;
}

.hero-header {
  text-align: center;
  margin-bottom: 24px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
  margin-bottom: 16px;
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseAnimation 1.8s infinite;
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 40%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

.hero-desc strong {
  color: #f1f5f9;
}

/* OCC STATS RIBBON (4 CORE METRIC CARDS) */
.occ-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 980px;
  margin: 24px auto 22px;
}

.occ-stat-box {
  background: rgba(13, 20, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.35);
}

.occ-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(18, 28, 50, 0.85);
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.25);
}

.occ-stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.occ-stat-content {
  min-width: 0;
}

.occ-stat-number {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.occ-stat-desc {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  margin-top: 2px;
}

@media (max-width: 820px) {
  .occ-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================================
   COMPACT DISRUPTION CONTROL BAR & DRAWER
   =================================================================== */
.disruption-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(13, 19, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  margin: 0 auto 20px;
  max-width: 980px;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-indicator-badge strong {
  color: var(--text-primary);
}

.status-indicator-badge .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseAnimation 2s infinite;
}

.status-indicator-badge.normal .status-dot {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.status-indicator-badge.warning .status-dot {
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
}

.status-indicator-badge.danger .status-dot {
  background: #EF4444;
  box-shadow: 0 0 10px #EF4444;
}

.toggle-simulation-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.toggle-simulation-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.disruption-drawer {
  background: rgba(13, 20, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 0 auto 20px;
  max-width: 980px;
  box-shadow: var(--shadow-md);
  animation: drawerSlideDown 0.25s ease;
}

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

.drawer-header {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ===================================================================
   UNIFIED MAIN NAVIGATION DOCK (4 CORE FEATURE MODES)
   High-Tech Floating Cyber-Dock
   =================================================================== */
.main-nav-dock {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 8px;
  background: rgba(10, 16, 32, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(190%);
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.main-nav-dock .tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 11px 10px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  min-width: 0;
  box-sizing: border-box;
}

.main-nav-dock .tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.main-nav-dock .tab-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-color: rgba(56, 189, 248, 0.55);
  color: #FFFFFF;
  box-shadow: 0 6px 25px -4px rgba(2, 132, 199, 0.4), inset 0 0 16px rgba(56, 189, 248, 0.18);
}

.main-nav-dock .tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #38bdf8;
  border-radius: 3px;
  box-shadow: 0 0 8px #38bdf8;
}

.tab-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.25s ease;
}

.main-nav-dock .tab-btn:hover .tab-icon-box {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.06);
}

.main-nav-dock .tab-btn.active .tab-icon-box {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.5);
}

.tab-content-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.tab-main-title {
  font-size: 13.5px;
  font-weight: 800;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.tab-sub-title {
  display: none !important;
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  font-weight: 500;
}

.main-nav-dock .tab-btn.active .tab-sub-title {
  color: #93c5fd;
}

.radar-live-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulseAnimation 2s infinite;
}

/* ===================================================================
   INTEGRATED TRANSIT NETWORK FILTER (INSIDE SEARCH CARD)
   =================================================================== */
.search-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.filter-label {
  display: none; /* Dihapus — konteks sudah jelas dari pills */
}

.filter-icon {
  display: none;
}

.network-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.network-pill {
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.network-pill:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.network-pill.active {
  background: rgba(2, 132, 199, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.network-pill[data-network="whoosh"].active {
  background: rgba(225, 29, 72, 0.18);
  border-color: #E11D48;
  color: #FB7185;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.3);
}

.radar-refresh-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0 18px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.radar-refresh-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

@media (max-width: 540px) {
  .search-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Route Search Card */
.search-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  position: relative;
  z-index: 100;
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr minmax(195px, 215px) auto;
  gap: 16px;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

.input-box:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Modern Combobox & Autocomplete Station Dropdown */
.combobox-group {
  position: relative;
  z-index: 120;
}

.combobox-group:focus-within,
.combobox-group.is-open {
  z-index: 300;
}

.combobox-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-box.combobox-input {
  padding-right: 102px !important;
  cursor: text;
}

.combobox-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

.combobox-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: all 0.2s ease;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}

.combobox-clear-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.combobox-toggle-btn {
  color: var(--text-secondary);
}

.combobox-toggle-btn:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.combobox-toggle-btn svg {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-favorite-btn {
  color: var(--text-muted);
  font-size: 18px;
}

.station-favorite-btn.is-favorite {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.saved-route-tools:not([hidden]) {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.saved-route-group {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.saved-route-label {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.saved-route-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.saved-route-chips::-webkit-scrollbar {
  display: none;
}

.saved-route-chip,
.saved-route-clear {
  flex: 0 0 auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  padding: 6px 10px;
  white-space: nowrap;
}

.saved-route-chip:hover,
.saved-route-clear:hover {
  border-color: var(--border-highlight);
  color: var(--text-primary);
}

.saved-route-clear {
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
  padding-inline: 4px;
}

.combobox-wrapper.is-open .combobox-toggle-btn svg {
  transform: rotate(180deg);
}

.autocomplete-list,
.combobox-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(56, 189, 248, 0.25);
  max-height: 440px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 99999;
  display: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #0284c7 rgba(15, 23, 42, 0.85);
}

/* Custom clearly visible scrollbar for dropdown */
.combobox-dropdown::-webkit-scrollbar {
  width: 8px;
}

.combobox-dropdown::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 4px;
}

.combobox-dropdown::-webkit-scrollbar-thumb {
  background: #0284c7;
  border-radius: 4px;
  border: 2px solid #0b1120;
}

.combobox-dropdown::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Category Section Header in Dropdown */
.combobox-section-header {
  position: sticky;
  top: 0;
  background: #172033;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.combobox-section-header:first-child {
  border-top: none;
}

.combobox-section-header .section-count {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  color: #94a3b8;
}

.autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
  user-select: none;
  min-height: 42px;
  justify-content: center;
}

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

.autocomplete-item:hover,
.autocomplete-item.active {
  background: rgba(2, 132, 199, 0.18);
}

.autocomplete-item:active {
  background: rgba(2, 132, 199, 0.3);
}

.autocomplete-item .st-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.autocomplete-item .st-code {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.swap-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 2px;
}

.swap-btn:hover {
  background: var(--bg-card-hover);
  color: #38bdf8;
  border-color: #38bdf8;
  transform: rotate(180deg);
}

.submit-btn {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
  height: 48px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

/* Quick Station Shortcuts — single-row horizontal scroll */
.quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.quick-chips::-webkit-scrollbar { display: none; }

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 11.5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

/* Route Result Layout */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.route-summary-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.route-path-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.route-path-arrow {
  color: var(--accent-blue);
}

.route-meta-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
}

.meta-pill.fare {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.meta-pill.time {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border-color: rgba(2, 132, 199, 0.3);
}

.meta-pill.transit-count {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

/* Timeline Route Step Visualization */
.route-timeline {
  position: relative;
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.route-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 14px;
  width: 4px;
  background: linear-gradient(180deg, #38bdf8 0%, #f59e0b 50%, #10b981 100%);
  border-radius: 4px;
}

.timeline-step {
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 1px;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border-radius: 50%;
  background: radial-gradient(circle, #38bdf8 0 3px, #fff 3.5px);
  border: 3px solid #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.timeline-step.transit::before {
  background: radial-gradient(circle, #f59e0b 0 3px, #fff 3.5px);
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.timeline-step.destination::before {
  background: radial-gradient(circle, #10b981 0 3px, #fff 3.5px);
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.28), 0 2px 6px rgba(0, 0, 0, 0.25);
}

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

.step-station-name {
  font-size: 16px;
  font-weight: 700;
}

.step-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.step-details {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.step-train-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

/* Upcoming Departures Table for Route */
.upcoming-runs-title {
  font-size: 15px;
  font-weight: 700;
  margin-top: 10px;
  color: var(--text-primary);
}

.upcoming-runs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.run-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.15s;
}

.run-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.run-time {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.run-remaining {
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 600;
}

/* Live Station Board Section */
.station-board-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  margin-bottom: 40px;
  align-items: start;
  transition: all 0.25s ease;
}

.station-board-container.sidebar-minimized {
  grid-template-columns: 1fr;
}

.station-selector-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
  transition: all 0.25s ease;
}

.station-selector-panel.is-minimized {
  display: none !important;
}

/* Minimize & Restore Controls */
.panel-minimize-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.panel-minimize-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateX(-2px);
}

.board-restore-station-btn {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: inherit;
  animation: restorePulse 3s infinite;
}

.board-restore-station-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

@keyframes restorePulse {
  0%, 100% { border-color: rgba(56, 189, 248, 0.45); }
  50% { border-color: rgba(56, 189, 248, 0.85); box-shadow: 0 0 12px rgba(56, 189, 248, 0.3); }
}

.search-station-input {
  width: 100%;
  margin-bottom: 14px;
}

.station-quick-list {
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.station-list-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.station-list-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}

.station-list-btn.active {
  background: rgba(2, 132, 199, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
}

.live-board-main {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  min-width: 0;
  width: 100%;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.board-station-title {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

#boardLiveBadge {
  flex-shrink: 0;
  max-width: 100%;
}

.departure-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.departure-row {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  grid-template-columns: 95px 1.5fr 135px 150px 110px;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.departure-row:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.dep-time {
  font-size: 22px;
  font-weight: 800;
  color: #38bdf8;
}

.dep-line-tag {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.line-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}

.dep-destination {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ENHANCED PLATFORM / TRACK CARD WITH FLOOR GUIDANCE */
.dep-platform {
  background: rgba(14, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.departure-row:hover .dep-platform {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(18, 30, 56, 0.95);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.platform-main {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.platform-sub {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.platform-sub.layang {
  color: #c084fc;
}

.platform-sub.dasar {
  color: #38bdf8;
}

/* BOARD MODE SWITCHER (KEBERANGKATAN vs KEDATANGAN) */
.board-mode-switcher {
  display: flex;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 6px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.board-mode-tab {
  flex: 1;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.board-mode-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.board-mode-tab.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.4), rgba(14, 165, 233, 0.25));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.st-cat-pill {
  transition: all 0.2s ease;
  font-family: inherit;
}

.st-cat-pill:hover {
  border-color: var(--border-highlight) !important;
  color: var(--text-primary) !important;
}

.st-cat-pill.active {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  font-weight: 700;
}

/* BOARD LINE FILTER BAR (EASY ROUTE SELECTION) */
.board-line-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.board-filter-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.board-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.board-filter-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.board-filter-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.board-filter-pill.active {
  background: rgba(2, 132, 199, 0.22);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.dep-countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.countdown-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-green);
}

.dep-status {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Interactive Network Map View */
.map-view-container {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
}

.map-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.map-line-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.map-filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-filter-btn:hover, .map-filter-btn.active {
  background: var(--c, #38bdf8);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.schematic-map-wrapper {
  background: #060913;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
}

.metro-map-viewport {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.official-poster-map {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  user-select: none;
  transform-origin: center top;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-toolbar {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 21, 39, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.map-tool-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s ease;
}

.map-tool-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.station-node {
  transition: filter 0.2s ease;
}

.station-node:hover {
  filter: drop-shadow(0 0 8px #38bdf8);
}

.station-node:hover .st-label {
  fill: #38bdf8 !important;
  font-weight: 800;
}

.interchange-pill-node {
  transition: filter 0.2s ease;
}

.interchange-pill-node:hover {
  filter: drop-shadow(0 0 10px #38bdf8);
}

/* Modal Stasiun di Peta */
.map-station-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.map-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  animation: modalPop 0.25s ease-out;
}

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

.map-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.map-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.map-modal-close:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.map-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-act-btn {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.modal-act-btn.primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
}

.modal-act-btn.secondary {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.modal-act-btn.outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.modal-act-btn:hover {
  transform: translateY(-2px);
}


.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.network-lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.line-diagram-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.line-diagram-name {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.line-stripe {
  width: 8px;
  height: 18px;
  border-radius: 2px;
}

.stations-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}

.map-station-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.map-station-pill:hover {
  background: rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  border-color: #38bdf8;
}

/* Info Cards & Tips */
.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-icon {
  font-size: 26px;
}

.info-title {
  font-size: 16px;
  font-weight: 700;
}

.info-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ====================================================
   LIVE TRAIN RADAR & TRACK DIAGRAM STYLES (EASY TO READ)
   ==================================================== */
.radar-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.radar-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.radar-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.radar-estimate-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent-amber);
  border-radius: 0 8px 8px 0;
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.radar-estimate-notice > span {
  flex: 0 0 auto;
  color: var(--accent-amber);
  font-weight: 800;
}

.radar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.radar-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-select-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.radar-select {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  min-width: 200px;
}

/* ==========================================
   STATION FOCUS CARD (SUPER EASY TO READ)
   ========================================== */
.station-focus-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.focus-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.focus-selector-row {
  margin-bottom: 16px;
}

.focus-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.focus-train-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.focus-train-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.focus-train-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent-blue);
}

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

.focus-dest-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.focus-eta-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
}

.focus-train-body {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.focus-train-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Radar Stats Bar */
.radar-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.radar-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.stat-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ===================================================================
   HORIZONTAL 2-TRACK RAILWAY SCHEMATIC (SKEMA REL DUA JALUR HORIZONTAL)
   Jalur 1 (Hulu ➡️) Atas | Axis Stasiun Tengah | Jalur 2 (Hilir ⬅️) Bawah
   =================================================================== */
.dual-track-wrapper.horizontal-schematic-mode {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
  margin-top: 14px;
}

/* Schematic Top Toolbar */
.horizontal-schematic-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schematic-direction-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  min-width: 200px;
}

.schematic-direction-badge.dir-hulu {
  border-color: rgba(2, 132, 199, 0.55);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(2, 6, 23, 0.7) 100%);
}

.schematic-direction-badge.dir-hilir {
  border-color: rgba(225, 29, 72, 0.55);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15) 0%, rgba(2, 6, 23, 0.7) 100%);
}

.schematic-direction-badge .dir-icon {
  font-size: 18px;
}

.schematic-direction-badge .dir-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.schematic-direction-badge .dir-type {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.schematic-direction-badge.dir-hulu .dir-type {
  color: #38bdf8;
}

.schematic-direction-badge.dir-hilir .dir-type {
  color: #FB7185;
}

.schematic-direction-badge .dir-target {
  font-size: 13px;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schematic-direction-badge .dir-train-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  white-space: nowrap;
}

.schematic-direction-badge.dir-hulu .dir-train-count {
  background: rgba(2, 132, 199, 0.35);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.schematic-direction-badge.dir-hilir .dir-train-count {
  background: rgba(225, 29, 72, 0.35);
  color: #FB7185;
  border: 1px solid rgba(251, 113, 133, 0.3);
}

/* Quick Jump Navigation Controls */
.schematic-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schematic-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.schematic-nav-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-1px);
}

.schematic-nav-btn.active-focus-btn {
  background: rgba(2, 132, 199, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* User Hint Bar */
.schematic-scroll-hint-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(2, 6, 23, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

/* Scrollable Container */
.track-diagram-container.horizontal-diagram-scroll {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 24px 20px 32px 20px;
  cursor: grab;
  position: relative;
  max-height: none;
}

.track-diagram-container.horizontal-diagram-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.track-diagram-container.horizontal-diagram-scroll::-webkit-scrollbar {
  height: 9px;
}

.track-diagram-container.horizontal-diagram-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 6px;
}

.track-diagram-container.horizontal-diagram-scroll::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  border: 2px solid rgba(15, 23, 42, 0.8);
}

.track-diagram-container.horizontal-diagram-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.7);
}

/* Schematic Horizontal Track Grid */
.schematic-track-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: max-content;
  position: relative;
}

/* Station Column (Pitch: 220px) */
.schematic-station-col {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 4px;
  border-right: 1px dashed rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}

.schematic-station-col:hover {
  background: rgba(255, 255, 255, 0.02);
}

.schematic-station-col.is-focus-col {
  background: rgba(56, 189, 248, 0.05);
  border-right-color: rgba(56, 189, 248, 0.15);
}

/* Row 1 & 3: Track Lanes */
.schematic-cell-track {
  width: 100%;
  min-height: 110px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
}

/* Continuous Glowing Rail Line */
.schematic-rail-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--line-color, #38bdf8);
  box-shadow: 0 0 12px var(--line-color, #38bdf8);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schematic-rail-line.rail-terminal-start {
  left: 50%;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.schematic-rail-line.rail-terminal-end {
  right: 50%;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.rail-chevron-flow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.schematic-train-slot {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.schematic-empty-slot {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.25;
  font-size: 12px;
  color: var(--text-muted);
}

.track-flow-indicator {
  letter-spacing: 3px;
  font-weight: 800;
}

/* Row 2: Central Station Axis & Platform */
.schematic-cell-station {
  width: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 6px 2px;
}

.schematic-connector-tie {
  width: 4px;
  height: 26px;
  background: repeating-linear-gradient(to bottom, #475569 0px, #475569 4px, transparent 4px, transparent 8px);
  opacity: 0.85;
}

.schematic-station-node {
  background: #111827;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px 12px;
  width: 94%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.schematic-station-node:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.schematic-station-node.active-focus-station {
  border: 2px solid #38bdf8;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3) 0%, rgba(14, 165, 233, 0.1) 100%);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.45), inset 0 0 12px rgba(56, 189, 248, 0.2);
}

.schematic-node-circle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.station-seq-num {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
}

.station-code-text {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-cyan, #38bdf8);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.schematic-station-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.schematic-station-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

.schematic-focus-badge {
  background: #0284C7;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  animation: pulseFocusSchematic 1.5s infinite alternate;
}

@keyframes pulseFocusSchematic {
  0% { transform: scale(0.96); opacity: 0.85; }
  100% { transform: scale(1.04); opacity: 1; }
}

.schematic-transit-badge {
  font-size: 10px;
  font-weight: 600;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

.schematic-node-hint {
  font-size: 9px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Train Card on Track */
.schematic-train-card {
  width: 95%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.92) 100%);
  border: 1.5px solid var(--card-border, #0284C7);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px var(--card-border, #0284C7)30;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.schematic-train-card:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 16px var(--card-border, #0284C7)60;
}

.train-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}

.train-card-badge {
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.train-card-dir {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary, #94A3B8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.train-card-status {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  text-align: center;
}

.train-card-status.train-status-moving {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.train-card-status.train-status-stopping {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.train-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-muted, #64748B);
}

.train-card-pill {
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
}

/* View Mode Switcher in Radar */
.radar-view-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.radar-mode-toggle {
  display: flex;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.radar-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.radar-toggle-btn:hover {
  color: var(--text-primary);
}

.radar-toggle-btn.active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

/* ====================================================
   RADAR MULTI-MODA STATUS & QUICK SWITCHER BAR (RICH STYLES)
   ==================================================== */
.radar-multimoda-bar {
  background: rgba(10, 17, 34, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.multimoda-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.multimoda-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-beacon-cyan {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseCyanBeacon 1.8s infinite;
}

@keyframes pulseCyanBeacon {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.multimoda-brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.8px;
  color: #38bdf8;
}

.multimoda-brand-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1px 7px;
  border-radius: 10px;
}

.multimoda-helper-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.multimoda-helper-tip .tip-icon {
  font-size: 13px;
}

.multimoda-chips-track {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
  padding-bottom: 2px;
}

.multimoda-chips-track::-webkit-scrollbar {
  height: 4px;
}
.multimoda-chips-track::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}

.mm-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
  flex-shrink: 0;
}

.mm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mm-chip:hover {
  background: rgba(30, 41, 59, 0.85);
  color: #ffffff;
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.4);
}

.mm-chip.active {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35) !important;
}

.mm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Modal-specific accent colors */
.mm-whoosh { border-color: rgba(225, 29, 72, 0.35); color: #fda4af; }
.mm-whoosh:hover, .mm-whoosh.active { background: rgba(225, 29, 72, 0.2); border-color: #e11d48; color: #fff; box-shadow: 0 0 10px rgba(225, 29, 72, 0.4); }

.mm-intercity { border-color: rgba(212, 175, 55, 0.35); color: #fde047; }
.mm-intercity:hover, .mm-intercity.active { background: rgba(212, 175, 55, 0.2); border-color: #d4af37; color: #fff; box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }

.mm-airport { border-color: rgba(2, 132, 199, 0.35); color: #38bdf8; }
.mm-airport:hover, .mm-airport.active { background: rgba(2, 132, 199, 0.2); border-color: #0284c7; color: #fff; box-shadow: 0 0 10px rgba(2, 132, 199, 0.4); }

.mm-sukabumi { border-color: rgba(5, 150, 105, 0.35); color: #6ee7b7; }
.mm-sukabumi:hover, .mm-sukabumi.active { background: rgba(5, 150, 105, 0.2); border-color: #059669; color: #fff; box-shadow: 0 0 10px rgba(5, 150, 105, 0.4); }

.mm-bandung { border-color: rgba(37, 99, 235, 0.35); color: #93c5fd; }
.mm-bandung:hover, .mm-bandung.active { background: rgba(37, 99, 235, 0.2); border-color: #2563eb; color: #fff; box-shadow: 0 0 10px rgba(37, 99, 235, 0.4); }

.mm-mrt { border-color: rgba(0, 180, 216, 0.35); color: #67e8f9; }
.mm-mrt:hover, .mm-mrt.active { background: rgba(0, 180, 216, 0.2); border-color: #00b4d8; color: #fff; box-shadow: 0 0 10px rgba(0, 180, 216, 0.4); }

.mm-lrt { border-color: rgba(13, 148, 136, 0.35); color: #5eead4; }
.mm-lrt:hover, .mm-lrt.active { background: rgba(13, 148, 136, 0.2); border-color: #0d9488; color: #fff; box-shadow: 0 0 10px rgba(13, 148, 136, 0.4); }

/* ====================================================
   CYBER NEON LIVE RADAR & HUD CARD STYLES
   ==================================================== */
.radar-graphical-map-wrapper {
  background: radial-gradient(circle at 50% 50%, #0d1527 0%, #060913 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(2, 132, 199, 0.2);
  position: relative;
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
}

.graphical-map-container-box {
  width: 100%;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  background: #060913;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) rgba(6, 9, 19, 0.8);
}

.graphical-map-container-box::-webkit-scrollbar {
  height: 8px;
}

.graphical-map-container-box::-webkit-scrollbar-track {
  background: rgba(6, 9, 19, 0.8);
  border-radius: 4px;
}

.graphical-map-container-box::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 4px;
}

.graphical-map-container-box::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.6);
}

.radar-map-stage {
  min-width: 100%;
  width: max-content;
  position: relative;
}

.radar-official-map.map-landscape {
  min-width: 1380px;
  width: 100%;
  height: auto;
}

/* Floating Cyber HUD Card - Positioned Cleanly Over Canvas */
.cyber-hud-card {
  position: absolute;
  top: 155px;
  right: 24px;
  left: auto;
  z-index: 25;
  width: 220px;
  background: rgba(8, 14, 28, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 11px 13px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(56, 189, 248, 0.15);
  animation: hudAppear 0.25s ease-out;
  pointer-events: auto;
  box-sizing: border-box;
}

/* Sleek Inline Restore Pill in Toolbar */
.hud-pill-restore-btn {
  background: rgba(8, 14, 28, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hud-pill-restore-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.radar-train-marker,
.official-live-train {
  will-change: transform;
  contain: layout style;
}

.radar-train-marker {
  transition: filter 0.2s ease;
  cursor: pointer;
}

.radar-train-marker:hover {
  filter: drop-shadow(0 0 10px #38bdf8);
}

.radar-train-marker.selected-train {
  filter: drop-shadow(0 0 14px #ffffff);
}

@keyframes hudAppear {
  0% { transform: translateY(-6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hud-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #38bdf8;
  margin-bottom: 2px;
}

.hud-train-id {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.hud-dest {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

.hud-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 4px;
}

.hud-metric-label {
  color: var(--text-muted);
  font-weight: 600;
}

.hud-metric-val.speed {
  font-size: 13.5px;
  font-weight: 800;
  color: #38bdf8;
}

.hud-metric-val.crowd {
  font-weight: 700;
  font-size: 11px;
  color: #f59e0b;
}

.hud-crowd-section {
  margin-bottom: 8px;
}

.hud-progress-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.hud-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 60%, #ef4444 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.hud-arrival-box {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 6px 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-countdown-clock {
  font-family: monospace;
  font-size: 13.5px;
  font-weight: 900;
  color: #34d399;
}

.graphical-map-container-box {
  width: 100%;
  position: relative;
  overflow: auto;
  border-radius: var(--radius-md);
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) rgba(13, 21, 39, 0.5);
}

/* RADAR MAP ACTION TOOLBAR BAR */
.radar-map-toolbar-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: rgba(13, 21, 39, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.radar-toolbar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-live-line-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.radar-active-trains-pill {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  padding: 2px 9px;
}

.radar-map-toolbar-bar .map-toolbar {
  position: static;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.map-tool-btn.focus-toggle-btn {
  width: auto;
  border-radius: 20px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  gap: 4px;
  display: inline-flex;
}

.map-tool-btn.focus-toggle-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.map-mobile-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: #38bdf8;
  background: rgba(2, 132, 199, 0.12);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 6px 12px;
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
}

.radar-map-stage {
  position: relative;
  width: 100%;
}

.graphical-map-svg {
  width: 100%;
  height: auto;
  max-height: 680px;
  display: block;
  user-select: none;
}

/* SVG Line & Train Elements */
.g-rail-path {
  filter: drop-shadow(0 0 8px currentColor);
}

.g-station-group {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.g-station-group:hover .g-st-circle {
  transform: scale(1.3);
  filter: drop-shadow(0 0 8px #38bdf8);
}

.g-train-bubble {
  cursor: pointer;
}

.g-train-bubble .cyber-train-box {
  transition: stroke 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.g-train-bubble:hover .cyber-train-box {
  stroke: #FFFFFF !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 16px #38bdf8) drop-shadow(0 0 6px #ffffff) !important;
}

.g-train-bubble:hover text {
  filter: drop-shadow(0 0 6px #ffffff);
}

@media (max-width: 768px) {
  .horizontal-schematic-toolbar {
    padding: 10px 12px;
    gap: 8px;
  }
  .schematic-direction-badge {
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
    padding: 6px 10px;
    gap: 6px;
  }
  .schematic-direction-badge .dir-target {
    font-size: 12px;
  }
  .schematic-direction-badge .dir-icon {
    font-size: 15px;
  }
  .schematic-nav-controls {
    width: 100%;
    justify-content: center;
    order: 3;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .schematic-station-col {
    width: 195px;
    min-width: 195px;
  }
}



.radar-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.radar-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.radar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.radar-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-select-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.radar-select {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  min-width: 170px;
}

/* Horizontal Scrollable Quick Line Pills */
.radar-line-pills-bar {
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}

.radar-line-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.radar-line-pills-scroll::-webkit-scrollbar {
  height: 4px;
}
.radar-line-pills-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.radar-line-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  user-select: none;
}

.radar-line-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.radar-line-pill.active {
  background: var(--pill-bg, rgba(56, 189, 248, 0.18));
  border-color: var(--pill-color, var(--accent-sky));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 12px var(--pill-glow, rgba(56, 189, 248, 0.25));
}

.radar-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.radar-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.stat-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Track Visualizer */
.track-diagram-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-height: 650px;
  overflow-y: auto;
  padding: 10px 16px 20px 24px;
  background: rgba(11, 15, 25, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* Railway Track Line Item */
.track-node-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.track-station-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  position: relative;
  z-index: 2;
}

.track-line-segment {
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #334155;
  z-index: 1;
}

.track-node-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid #64748b;
  position: relative;
  z-index: 3;
  margin-left: 10px;
  transition: all 0.2s ease;
}

.track-node-circle.has-train {
  background: var(--accent-green);
  border-color: #ffffff;
  box-shadow: 0 0 10px var(--accent-green);
}

.track-station-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.track-station-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.track-station-transit-badges {
  display: flex;
  gap: 4px;
}

/* Train Badges */
.train-live-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  animation: trainGlow 2s infinite alternate;
  transition: transform 0.2s;
  width: fit-content;
}

.train-live-card:hover {
  transform: scale(1.04);
}

@keyframes trainGlow {
  0% { box-shadow: 0 0 8px rgba(2, 132, 199, 0.4); }
  100% { box-shadow: 0 0 18px rgba(56, 189, 248, 0.85); }
}

.train-between-stations {
  margin: 6px 0 6px 48px;
  position: relative;
  z-index: 3;
  padding: 4px 0;
}

.train-detail-tag {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}


/* Responsive adjustments */
@media (max-width: 900px) {
  .search-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .swap-btn {
    margin: 4px auto;
  }

  .input-box.combobox-input {
    font-size: 16px; /* Mencegah auto-zoom di iOS Safari saat pengguna tap input */
  }

  .combobox-dropdown {
    max-height: 330px;
  }

  .quick-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .chip-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .station-board-container {
    grid-template-columns: 1fr;
  }

  .live-board-main {
    padding: 16px 14px;
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .board-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .board-header > div:first-child {
    width: 100%;
  }

  .board-station-title {
    font-size: 19px;
    line-height: 1.25;
    flex-wrap: wrap;
    gap: 8px;
  }

  #boardLiveBadge {
    flex: 0 0 auto !important;
    width: fit-content !important;
    max-width: 100% !important;
    align-self: flex-start !important;
    margin-top: 2px;
    font-size: 11px;
    padding: 4px 10px;
    white-space: nowrap;
  }

  .departure-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dep-countdown {
    align-items: flex-start;
  }

  /* 1. Header & Brand Navbar Precision on Mobile (No Horizontal Blowout) */
  header {
    padding: 8px 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .brand {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .brand-icon-wrapper {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 18px;
    gap: 6px;
  }

  .live-status-pill {
    font-size: 8.5px;
    padding: 2px 7px;
  }

  .brand-subtitle {
    display: none; /* Sembunyikan daftar kepanjangan lin agar header pas presisi di layar HP */
  }

  .header-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 6px;
  }

  .telemetry-server-pill {
    padding: 5px 8px;
    font-size: 10.5px;
    flex: 1;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .header-status .live-clock-badge {
    padding: 5px 8px;
    font-size: 10.5px;
    flex: 1;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
    flex-shrink: 0;
  }

  /* 2. Hero Section & Typography Precision on Mobile */
  .hero-header {
    margin-bottom: 16px;
    padding: 4px 0;
  }

  .hero-tag {
    font-size: 9.5px;
    padding: 4px 10px;
    letter-spacing: 0.3px;
    max-width: 100%;
    text-align: center;
    line-height: 1.3;
    white-space: normal;
  }

  .hero-title {
    font-size: 22px !important;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin-bottom: 8px;
    word-break: break-word;
  }

  .hero-desc {
    font-size: 12.5px;
    line-height: 1.5;
    padding: 0 4px;
  }

  /* 3. OCC Stats Ribbon 2x2 Clean Grid on Mobile */
  .occ-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 14px 0 16px;
    max-width: 100%;
  }

  .occ-stat-box {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 12px;
    min-width: 0;
  }

  .occ-stat-icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 15px;
    border-radius: 8px;
  }

  .occ-stat-number {
    font-size: 13px;
  }

  .occ-stat-desc {
    font-size: 9.5px;
    white-space: normal;
    line-height: 1.2;
  }

  /* 4. Disruption Control Bar on Mobile */
  .disruption-control-bar {
    padding: 8px 12px;
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-width: 100%;
  }

  .status-indicator-badge {
    justify-content: center;
    font-size: 11px;
    padding: 4px 8px;
    width: 100%;
  }

  .toggle-simulation-btn {
    justify-content: center;
    width: 100%;
    font-size: 11px;
    padding: 5px 12px;
  }

  /* 5. Main Navigation Dock (100% Screen Fit) */
  .main-nav-dock {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 18px;
    max-width: 100%;
  }

  .main-nav-dock .tab-btn {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 10px;
  }

  .tab-icon-box {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 8px;
  }

  .tab-main-title {
    font-size: 13.5px;
  }

  .tab-sub-title {
    font-size: 10.5px;
  }

  /* 6. Live Radar Map Viewport & Containment */
  .radar-card {
    padding: 12px 10px;
    border-radius: var(--radius-md);
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .radar-graphical-map-wrapper {
    padding: 10px 8px;
    border-radius: var(--radius-lg);
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    contain: paint layout;
  }

  /* Single-row horizontal swipeable radar multi-moda bar on mobile */
  .radar-multimoda-bar {
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: var(--radius-md);
  }
  .multimoda-bar-top {
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 6px;
  }
  .multimoda-brand-title {
    font-size: 11.5px;
  }
  .multimoda-helper-tip {
    font-size: 10.5px;
  }
  .multimoda-chips-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .multimoda-chips-track::-webkit-scrollbar {
    display: none;
  }
  .mm-chip {
    font-size: 10.5px;
    padding: 4px 9px;
  }

  /* Sleek Compact Telemetry Bar on Mobile (100% Precision Screen Fit, No Clipping, No Overlap) */
  .cyber-hud-card {
    position: relative !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 10px 0 !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    background: rgba(8, 14, 28, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), 0 0 12px rgba(56, 189, 248, 0.12) !important;
    display: block;
    z-index: 20;
    overflow: hidden;
  }
  .cyber-hud-card .hud-close-btn {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
  }
  .cyber-hud-card .hud-close-btn:active {
    transform: scale(0.92);
    background: rgba(239, 68, 68, 0.3);
  }
  .cyber-hud-card .hud-tag {
    font-size: 8.5px;
    letter-spacing: 1.2px;
    margin-bottom: 2px;
    color: #38bdf8;
    font-weight: 800;
  }
  .cyber-hud-card .hud-train-id {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2px;
    display: block;
  }
  .cyber-hud-card .hud-dest {
    font-size: 11.5px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cyber-hud-card .hud-metric-row {
    font-size: 11px;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .cyber-hud-card .hud-metric-val.speed {
    font-size: 13px;
    font-weight: 800;
  }
  .cyber-hud-card .hud-crowd-section {
    margin-bottom: 6px;
  }
  .cyber-hud-card .hud-progress-bg {
    height: 4px;
    margin-top: 3px;
    border-radius: 99px;
  }
  .cyber-hud-card .hud-arrival-box {
    padding: 6px 10px;
    margin-top: 4px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .cyber-hud-card .hud-countdown-clock {
    font-size: 13px;
  }

  /* Toolbar Bar on Mobile */
  .radar-map-toolbar-bar {
    padding: 6px 10px;
    margin-bottom: 8px;
    max-width: 100%;
  }
  .radar-live-line-badge {
    font-size: 12px;
  }
  .radar-active-trains-pill {
    font-size: 10px;
    padding: 1px 6px;
  }
  .radar-map-toolbar-bar .map-toolbar {
    gap: 4px;
  }
  .map-tool-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
  }
  .focus-toggle-btn .btn-text-label {
    display: none;
  }
  .focus-toggle-btn {
    width: 28px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center;
  }

  /* High-Performance Mobile Map Viewport & Touch Stage */
  .graphical-map-container-box {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    overflow: auto !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    height: 520px;
    max-height: 68vh;
    border-radius: var(--radius-md);
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: #060913;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.85);
    contain: paint layout;
  }

  .radar-map-stage {
    min-width: 880px;
    width: max-content;
    position: relative;
  }

  /* SVG Map Rendered at High-Resolution: Crystal Clear Station Names */
  .radar-official-map {
    width: 880px !important;
    min-width: 880px !important;
    height: auto !important;
    max-height: none !important;
    display: block;
  }

  .radar-official-map.map-landscape {
    width: 1180px !important;
    min-width: 1180px !important;
  }

  .map-mobile-scroll-hint {
    display: flex !important;
  }
}

/* ===================================================================
   DISRUPTION CONTROL CENTER & DELAY NOTIFICATIONS
   =================================================================== */
.disruption-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disruption-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.disruption-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.disruption-scenarios {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scenario-btn {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scenario-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.scenario-btn.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #EF4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.scenario-btn.active.normal {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.disruption-banner-active {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #F87171;
  animation: pulseDisruption 3s infinite;
}

@keyframes pulseDisruption {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 12px 2px rgba(239, 68, 68, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
}

/* ===================================================================
   KERETA API JARAK JAUH (INTERCITY) STYLING
   =================================================================== */
.intercity-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.intercity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.intercity-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-cyan);
}

.intercity-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.intercity-train-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.intercity-class-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.intercity-timetable-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: var(--bg-secondary);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.intercity-time-point {
  display: flex;
  flex-direction: column;
}

.intercity-time-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.intercity-st-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.intercity-st-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.intercity-duration-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.intercity-duration-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.intercity-track-arrow {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--border-color);
  font-size: 16px;
}

.intercity-price-tag {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-green);
  font-family: 'Outfit', sans-serif;
}

.intercity-features-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.intercity-pill {
  font-size: 11px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* ===================================================================
   PETA REL LINTAS JAWA (INTERCITY MAP)
   =================================================================== */
.intercity-map-wrapper {
  background: #090D16;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  margin-top: 16px;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.map-title-tag {
  font-size: 14px;
  color: #F8FAFC;
  display: flex;
  align-items: center;
}

.map-legend-items {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #94A3B8;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.java-rail-svg {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
}

/* Modal Popup Stasiun Jawa */
.intercity-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.intercity-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.intercity-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.modal-close-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.action-btn-primary {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.action-btn-primary:hover {
  opacity: 0.9;
}

.action-btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn-secondary:hover {
  border-color: var(--accent-amber);
}

.intercity-train-row {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}


/* Minimalist HUD Close & Collapse Controls */
.hud-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
  z-index: 5;
}
.hud-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #FFFFFF;
}

.cyber-hud-card.hud-minimized {
  width: auto;
  padding: 10px 16px;
  cursor: pointer;
}
.cyber-hud-card.hud-minimized .hud-metric-row,
.cyber-hud-card.hud-minimized .hud-crowd-section,
.cyber-hud-card.hud-minimized .hud-arrival-box {
  display: none !important;
}
.cyber-hud-card.hud-minimized .hud-dest {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.cyber-hud-card.hud-minimized .hud-train-id {
  font-size: 18px;
}

/* Radar St Node Hover & Transition */
.radar-st-node text {
  transition: opacity 0.2s ease, font-size 0.2s ease;
}
.radar-st-node.inactive-st:hover circle {
  fill: #38BDF8 !important;
}
.radar-st-node.inactive-st:hover text {
  display: block !important;
  fill: #FFFFFF !important;
  font-size: 11px !important;
}

/* ===================================================================
   TAB 5: MADING BERITA & PAPAN INFORMASI TRANSIT
   Digital Bulletin Board with Pinboard Aesthetics
   =================================================================== */

.mading-header-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.mading-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #EF4444 0%, #F59E0B 25%, #059669 50%, #0284C7 75%, #E11D48 100%);
}

.mading-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mading-title-group {
  flex: 1;
  min-width: 280px;
}

.mading-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.mading-badge .pin-icon {
  font-size: 14px;
  animation: gentleTada 3s infinite ease-in-out;
}

@keyframes gentleTada {
  0%, 100% { transform: scale(1) rotate(0deg); }
  10%, 20% { transform: scale(0.95) rotate(-3deg); }
  30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
  40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
}

.mading-main-heading {
  font-size: 26px;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.mading-sub-heading {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 720px;
}

.mading-header-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.mading-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  font-size: 12px;
  font-weight: 600;
}

.mading-stat-sync-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mading-stat-time {
  font-size: 11px;
  color: var(--text-muted, #64748B);
}

.btn-refresh-mading {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-refresh-mading:hover {
  background: #38BDF8;
  color: #0F172A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.refresh-icon.spinning {
  animation: spinSlow 0.8s linear infinite;
  display: inline-block;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Controls Bar: Search & Category Pills */
.mading-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mading-search-box {
  position: relative;
  width: 100%;
}

.mading-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-secondary);
  pointer-events: none;
}

.mading-search-input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  background: rgba(10, 16, 32, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.mading-search-input:focus {
  border-color: #38BDF8;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.mading-search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-secondary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mading-search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #EF4444;
}

.mading-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mading-pill {
  padding: 7px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mading-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.mading-pill.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35) 0%, rgba(6, 182, 212, 0.25) 100%);
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* ===================================================================
   MADING CORKBOARD SURFACE & WOOD / CYBER FRAME
   =================================================================== */

.mading-board-surface {
  background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  padding: 26px;
  margin-bottom: 30px;
  box-shadow: 
    0 24px 60px -12px rgba(0, 0, 0, 0.75),
    inset 0 0 35px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

/* Corkboard subtle dot texture */
.mading-board-surface::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 1px),
    radial-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 24px 24px, 12px 12px;
  background-position: 0 0, 12px 12px;
  pointer-events: none;
  opacity: 0.8;
}

.mading-board-inner {
  position: relative;
  z-index: 1;
}

/* ===================================================================
   HEADLINE BANNER CARD (FEATURED ANNOUNCEMENT)
   =================================================================== */

.mading-headline-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 26px;
  position: relative;
  box-shadow: 0 14px 35px -8px rgba(239, 68, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mading-headline-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 20px 45px -8px rgba(239, 68, 68, 0.28);
}

/* Pin element */
.mading-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
  z-index: 3;
  pointer-events: none;
  line-height: 1;
}

.headline-badge-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.headline-tag {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.headline-category-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 600;
}

.mading-headline-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.mading-headline-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.mading-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted, #94A3B8);
  flex-wrap: wrap;
}

.mading-source-pill {
  color: #38BDF8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mading-headline-visual {
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
  border: 1px dashed rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  gap: 10px;
  position: relative;
}

.mading-visual-icon {
  font-size: 42px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.mading-visual-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.mading-btn-read {
  padding: 8px 18px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mading-btn-read:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

/* Section Divider */
.mading-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 24px;
}

.mading-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.35) 50%, transparent 100%);
}

.mading-divider-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #F59E0B;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===================================================================
   MADING CARDS GRID (PINBOARD CARDS)
   =================================================================== */

.mading-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.mading-card {
  background: rgba(20, 28, 48, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 20px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: visible;
}

/* Pushpin on each card */
.mading-card .mading-pin {
  top: -11px;
  font-size: 20px;
}

/* Alternating subtle pinboard tilts for authentic look */
.mading-card:nth-child(even):hover {
  transform: translateY(-4px) rotate(0.4deg);
}

.mading-card:nth-child(odd):hover {
  transform: translateY(-4px) rotate(-0.4deg);
}

.mading-card:hover {
  background: rgba(25, 36, 62, 0.96);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.15);
}

/* Card Header */
.mading-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mading-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.mading-card-time {
  font-size: 11.5px;
  color: var(--text-muted, #94A3B8);
}

/* Card Title & Excerpt */
.mading-card-title {
  font-size: 16px;
  font-weight: 750;
  color: #F8FAFC;
  margin: 0 0 10px 0;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.mading-card-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.mading-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  gap: 8px;
}

.mading-source-tag {
  color: var(--text-muted, #94A3B8);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.mading-read-more-link {
  color: #38BDF8;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.mading-card:hover .mading-read-more-link {
  transform: translateX(3px);
  color: #7DD3FC;
}

/* Empty State */
.mading-empty-state {
  text-align: center;
  padding: 48px 20px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  margin: 10px 0;
}

.empty-pin-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.btn-reset-mading-filter {
  padding: 8px 20px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38BDF8;
  color: #38BDF8;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset-mading-filter:hover {
  background: #38BDF8;
  color: #0F172A;
}

/* ===================================================================
   MADING ARTICLE READER MODAL
   =================================================================== */

.mading-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mading-modal-container {
  background: linear-gradient(150deg, #111C35 0%, #0B1324 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 22px;
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  position: relative;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(56, 189, 248, 0.12);
  display: flex;
  flex-direction: column;
  overflow: visible;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.mading-modal-pin {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  z-index: 10;
  pointer-events: none;
}

.mading-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
}

.mading-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #EF4444;
  color: #EF4444;
  transform: rotate(90deg);
}

.mading-modal-scrollable {
  overflow-y: auto;
  padding: 30px 28px 24px;
  max-height: calc(88vh - 4px);
}

/* Custom Scrollbar for Modal */
.mading-modal-scrollable::-webkit-scrollbar {
  width: 6px;
}
.mading-modal-scrollable::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 3px;
}

.mading-modal-header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mading-modal-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 750;
  margin-bottom: 12px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
}

.mading-modal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted, #94A3B8);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.meta-dot {
  opacity: 0.5;
}

.official-stamp-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mading-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
  margin: 0 0 14px 0;
  letter-spacing: -0.3px;
}

.mading-modal-source-bar {
  font-size: 12.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
  border-radius: 10px;
  border-left: 3px solid #38BDF8;
}

.mading-modal-body {
  font-size: 14.5px;
  line-height: 1.7;
  color: #E2E8F0;
}

.mading-modal-body p {
  margin: 0 0 16px 0;
}

.mading-modal-body h4 {
  font-size: 16px;
  font-weight: 750;
  color: #38BDF8;
  margin: 22px 0 10px 0;
}

.mading-modal-body ul {
  margin: 0 0 18px 0;
  padding-left: 20px;
}

.mading-modal-body li {
  margin-bottom: 8px;
  color: #CBD5E1;
}

.mading-article-quote {
  background: rgba(2, 132, 199, 0.12);
  border-left: 4px solid #38BDF8;
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  font-style: italic;
  color: #E0F2FE;
}

.mading-article-quote p {
  margin: 0 0 6px 0;
  font-size: 14px;
  line-height: 1.6;
}

.mading-article-quote cite {
  font-size: 12px;
  font-weight: 700;
  color: #7DD3FC;
  font-style: normal;
  display: block;
}

.mading-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 12px;
}

.mading-modal-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-label {
  font-size: 11.5px;
  color: var(--text-muted, #94A3B8);
}

.tag-pill {
  font-size: 11px;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

.mading-modal-action-btn {
  padding: 9px 22px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mading-modal-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

/* ===================================================================
   LIGHT THEME OVERRIDES FOR MADING
   =================================================================== */

[data-theme="light"] .mading-header-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mading-main-heading {
  color: #0F172A;
}

[data-theme="light"] .mading-search-input {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

[data-theme="light"] .mading-search-input:focus {
  background: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .mading-pill {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
}

[data-theme="light"] .mading-pill.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(6, 182, 212, 0.12) 100%);
  border-color: #0284C7;
  color: #0284C7;
}

[data-theme="light"] .mading-board-surface {
  background: radial-gradient(circle at 50% 50%, #F8FAFC 0%, #EEF2F6 100%);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 18px 45px -8px rgba(0, 0, 0, 0.1), inset 0 0 25px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .mading-headline-card {
  background: #FFFFFF;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .mading-headline-title {
  color: #0F172A;
}

[data-theme="light"] .mading-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mading-card:hover {
  background: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 14px 32px -6px rgba(2, 132, 199, 0.18);
}

[data-theme="light"] .mading-card-title {
  color: #0F172A;
}

[data-theme="light"] .mading-card-summary {
  color: #475569;
}

[data-theme="light"] .mading-card-footer {
  border-top-color: #E2E8F0;
}

[data-theme="light"] .mading-modal-container {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .mading-modal-title {
  color: #0F172A;
}

[data-theme="light"] .mading-modal-source-bar {
  background: #F1F5F9;
  color: #334155;
}

[data-theme="light"] .mading-modal-body {
  color: #334155;
}

[data-theme="light"] .mading-modal-body li {
  color: #334155;
}

[data-theme="light"] .mading-article-quote {
  background: #EFF6FF;
  color: #1E3A8A;
}

[data-theme="light"] .mading-article-quote cite {
  color: #1D4ED8;
}

[data-theme="light"] .mading-modal-close-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}

/* ===================================================================
   RESPONSIVE MOBILE ADAPTATIONS FOR MADING
   Strict zero-overflow & 100% viewport precision
   =================================================================== */

@media (max-width: 1100px) and (min-width: 769px) {
  .main-nav-dock {
    grid-template-columns: repeat(3, 1fr);
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .mading-header-card {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .mading-main-heading {
    font-size: 20px;
  }

  .mading-sub-heading {
    font-size: 12.5px;
  }

  .mading-header-stats {
    align-items: flex-start;
    width: 100%;
  }

  .mading-board-surface {
    padding: 16px 12px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .mading-headline-card {
    grid-template-columns: 1fr;
    padding: 18px 14px;
    gap: 16px;
  }

  .mading-headline-title {
    font-size: 18px;
  }

  .mading-headline-visual {
    min-height: 120px;
    padding: 14px;
  }

  .mading-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mading-card {
    padding: 18px 14px 14px;
  }

  .mading-modal-container {
    max-height: 92vh;
    border-radius: 18px;
  }

  .mading-modal-scrollable {
    padding: 22px 16px 18px;
  }

  .mading-modal-title {
    font-size: 18px;
  }

  .mading-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .mading-modal-action-btn {
    width: 100%;
    text-align: center;
  }
}

/* ===================================================================
   INTERCITY MAP (PETA KA JARAK JAUH PULAU JAWA) MOBILE & DESKTOP
   =================================================================== */
.intercity-map-wrapper {
  position: relative !important;
  width: 100% !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #060913 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7) !important;
  box-sizing: border-box !important;
}

.intercity-map-header {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 14px 18px !important;
  background: rgba(13, 21, 38, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px 16px 0 0 !important;
  box-sizing: border-box !important;
  z-index: 5 !important;
  backdrop-filter: blur(12px) !important;
}

.intercity-header-main-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 12px !important;
}

.intercity-header-legend-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.java-map-scroll-stage {
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  position: relative !important;
  background: #060913 !important;
  touch-action: pan-x pan-y pinch-zoom !important;
}

.java-map-scroll-stage::-webkit-scrollbar {
  height: 6px;
}
.java-map-scroll-stage::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
.java-map-scroll-stage::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 3px;
}

.mobile-map-hint {
  display: none;
  text-align: center;
  padding: 8px 12px;
  font-size: 11.5px;
  color: #94A3B8;
  background: rgba(15, 23, 42, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .intercity-map-header {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .intercity-header-main-row {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .intercity-title-text {
    font-size: 12.5px !important;
  }
  .intercity-badge {
    font-size: 9.5px !important;
    padding: 2px 5px !important;
  }
  .intercity-header-legend-row {
    font-size: 10.5px !important;
    gap: 8px !important;
    row-gap: 6px !important;
  }
  .intercity-header-legend-row .legend-item {
    font-size: 10.5px !important;
    gap: 4px !important;
  }
  .mobile-map-hint {
    display: block !important;
  }
}

/* ===================================================================
   MADING NEWS EXCERPT & OFFICIAL HYPERLINK STYLES
   =================================================================== */

.mading-excerpt-box {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid #38BDF8;
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.mading-excerpt-label {
  font-size: 11px;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mading-excerpt-text {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  color: #F8FAFC;
  margin: 0 0 8px 0;
}

.mading-inline-link {
  color: #38BDF8 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 750;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mading-inline-link:hover {
  color: #7DD3FC !important;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.mading-source-cta-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(20, 32, 58, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mading-source-cta-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mading-source-cta-info .cta-icon {
  font-size: 26px;
}

.mading-source-cta-title {
  font-size: 14px;
  font-weight: 750;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.mading-source-cta-sub {
  font-size: 11.5px;
  color: var(--text-muted, #94A3B8);
}

.btn-read-official-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #FFFFFF !important;
  border-radius: 10px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 750;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-read-official-source:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.5);
  background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%);
  border-color: #38BDF8;
}

.mading-btn-external {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #38BDF8 !important;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.mading-btn-external:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* ===================================================================
   MOBILE RESPONSIVE LINE SELECTION & RADAR CONTROLS
   Membuat tampilan pemilihan jalur di HP rapi, kompak, dan proporsional
   =================================================================== */
@media (max-width: 768px) {
  .radar-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .radar-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .radar-select-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .radar-select-group label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .radar-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
    font-size: 13.5px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    background-color: var(--bg-secondary) !important;
  }
  .radar-refresh-btn {
    width: 100% !important;
    height: 42px !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }
  .station-focus-card {
    padding: 14px !important;
    margin-bottom: 16px !important;
    border-radius: 14px !important;
  }
  .focus-selector-row select {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 13.5px !important;
  }
  .radar-line-pills-bar {
    margin-bottom: 14px;
  }
  .radar-line-pill {
    padding: 6px 12px;
    font-size: 11.5px;
    border-radius: 16px;
  }
}

/* ===================================================================
   BUSWAY TRANSJAKARTA REAL-TIME RADAR & TELEMETRY MODULE
   =================================================================== */
.busway-live-badge-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E11D48;
  box-shadow: 0 0 8px #E11D48;
  animation: pulseBeacon 1.5s infinite;
}

.busway-card {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Busway Stats Ribbon */
.busway-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.bw-stat-box {
  background: rgba(13, 21, 39, 0.75);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.bw-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.bw-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.bw-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Busway Map Wrapper */
.busway-map-wrapper {
  background: rgba(10, 16, 32, 0.9);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

.busway-multimoda-bar {
  background: rgba(13, 21, 39, 0.85);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.busway-chips-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 29, 72, 0.4) transparent;
}

.bw-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.bw-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: var(--chip-color, #E11D48);
}

.bw-chip.active {
  background: rgba(225, 29, 72, 0.2);
  border-color: var(--chip-color, #E11D48);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.35);
}

.bw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bw-code {
  font-weight: 800;
  color: #FFFFFF;
}

/* Busway Telemetry Card */
.busway-hud-card {
  position: absolute;
  top: 140px;
  right: 24px;
  z-index: 25;
  width: 240px;
  border-color: rgba(225, 29, 72, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(225, 29, 72, 0.2);
}

.bw-fleet-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid rgba(225, 29, 72, 0.5);
  color: #FDA4AF;
}

.bw-transit-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.bw-transit-tag.krl { background: rgba(220, 38, 38, 0.2); border: 1px solid rgba(220, 38, 38, 0.5); color: #FCA5A5; }
.bw-transit-tag.mrt { background: rgba(37, 99, 235, 0.2); border: 1px solid rgba(37, 99, 235, 0.5); color: #93C5FD; }
.bw-transit-tag.lrt { background: rgba(234, 88, 12, 0.2); border: 1px solid rgba(234, 88, 12, 0.5); color: #FDBA74; }
.bw-transit-tag.bandara { background: rgba(2, 132, 199, 0.2); border: 1px solid rgba(2, 132, 199, 0.5); color: #7DD3FC; }
.bw-transit-tag.k13 { background: rgba(147, 51, 234, 0.2); border: 1px solid rgba(147, 51, 234, 0.5); color: #D8B4FE; }

/* Halte Arrival Drawer */
.busway-halte-drawer {
  background: rgba(13, 21, 39, 0.95);
  border: 1px solid rgba(225, 29, 72, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: hudAppear 0.25s ease-out;
}

.bw-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.bw-halte-arrival-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.bw-arrival-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bw-arrival-card:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.5);
  transform: translateY(-2px);
}

.bw-bus-id-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.bw-bus-type-sub {
  font-size: 11px;
  color: #38BDF8;
}

.bw-bus-dir-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.bw-arrival-eta {
  font-family: monospace;
  font-size: 15px;
  font-weight: 900;
  color: #10B981;
  text-align: right;
}

.bw-arrival-crowd {
  font-size: 10.5px;
  font-weight: 700;
  text-align: right;
}

.bw-arrival-empty {
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  grid-column: 1 / -1;
}

/* Mobile Responsiveness for Busway */
@media (max-width: 900px) {
  .busway-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }
  .bw-stat-box {
    padding: 8px 10px;
    gap: 8px;
  }
  .bw-stat-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .bw-stat-val {
    font-size: 13px;
  }
  .bw-stat-label {
    font-size: 9.5px;
  }
  .busway-map-wrapper {
    padding: 10px 8px;
  }
  /* Mobile 100% precision fit for Busway HUD card (No clipping, no overflow) */
  .busway-hud-card {
    position: relative !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 10px 0 !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    display: block;
    z-index: 20;
    overflow: hidden;
  }
}

/* ===================================================================
   GEOGRAPHIC REAL-MAP (LEAFLET / OPENSTREETMAP SE-JABODETABEK)
   =================================================================== */
.radar-geo-map-wrapper {
  background: rgba(10, 16, 32, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-top: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.geo-map-toolbar-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: rgba(13, 21, 39, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
}

.geo-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.geo-live-status-pill {
  font-size: 11px;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 9px;
  border-radius: 20px;
}

.geo-title-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.geo-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.geo-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.geo-tool-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.geo-tool-btn.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.leaflet-map-surface {
  width: 100%;
  height: 560px;
  border-radius: 12px;
  background: #0A0F1D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.7);
  z-index: 10;
}

/* Stasiun Node di Peta Geografis */
.geo-st-node {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0A0F1D;
  border: 2.5px solid #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
  cursor: pointer;
}
.geo-st-node.is-hub {
  width: 16px;
  height: 16px;
  border-color: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}
.st-inner-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* Live Train Badge Marker di Peta Geografis */
.geo-train-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(11, 19, 43, 0.95);
  border: 1.5px solid var(--train-color, #38BDF8);
  border-radius: 14px;
  padding: 2px 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 10px var(--train-color, rgba(56, 189, 248, 0.5));
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.geo-train-badge:hover {
  transform: scale(1.12);
  z-index: 2000;
}
.geo-train-icon {
  font-size: 11px;
}
.geo-train-label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #FFFFFF;
}
.geo-train-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: pulseBeacon 1.2s infinite;
}

/* Custom Popup Style */
.custom-geo-popup .leaflet-popup-content-wrapper {
  background: rgba(10, 16, 32, 0.96) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8) !important;
}
.custom-geo-popup .leaflet-popup-tip {
  background: rgba(10, 16, 32, 0.96) !important;
}
.geo-popup-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}
.geo-popup-code {
  font-size: 11px;
  color: #38BDF8;
  font-weight: 700;
  margin-top: 2px;
}
.geo-popup-coords {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.geo-popup-btn {
  width: 100%;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid #38BDF8;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.geo-popup-btn:hover {
  background: #38BDF8;
  color: #0A0F1D;
}

@media (max-width: 900px) {
  .leaflet-map-surface {
    height: 440px;
  }
  .geo-toolbar-left,
  .geo-toolbar-right {
    width: 100%;
    justify-content: flex-start;
  }
}

/* =============================================================
   BUSWAY (TRANSJAKARTA BRT) ULTRA-PREMIUM DESIGN SYSTEM
   ============================================================= */

/* BUSWAY VIEW MODE SWITCHER BAR */
.busway-view-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 18px;
  background: rgba(13, 21, 39, 0.75);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.busway-view-mode-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.busway-mode-toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bw-toggle-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bw-toggle-btn:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.4);
  color: #FFFFFF;
}
.bw-toggle-btn.active {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  border-color: #FDA4AF;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.45);
}

/* BUSWAY QUICK STATS RIBBON */
.busway-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.bw-stat-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
}
.bw-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.bw-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}
.bw-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* BUSWAY MULTI-MODA & CORRIDOR CHIPS */
.busway-multimoda-bar {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}
.busway-chips-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.bw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.bw-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.bw-chip.active {
  background: rgba(225, 29, 72, 0.18);
  border-color: var(--chip-color, #E11D48);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.35);
}
.bw-chip .bw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bw-chip .bw-code {
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}
.bw-chip .bw-title {
  font-size: 11px;
  opacity: 0.85;
}

/* BUSWAY 2-TRACK HORIZONTAL BRT SCHEMATIC (SKEMA REL 2 JALUR BUSWAY) */
.bw-schematic-wrapper {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
}

.bw-schematic-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bw-schematic-scroll {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 24px 20px 32px 20px;
  cursor: grab;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 29, 72, 0.5) rgba(15, 23, 42, 0.8);
}

.bw-schematic-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.bw-track-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: max-content;
  position: relative;
}

/* Halte Column */
.bw-halte-col {
  width: 230px;
  min-width: 230px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 4px;
  border-right: 1px dashed rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.bw-halte-col:hover {
  background: rgba(225, 29, 72, 0.03);
}

.bw-halte-col.is-focus-col {
  background: rgba(225, 29, 72, 0.07);
  border-right-color: rgba(225, 29, 72, 0.25);
}

/* Middle Halte Node */
.bw-cell-halte {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
  width: 100%;
}

.bw-halte-node {
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  width: 90%;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.bw-halte-node:hover {
  transform: translateY(-2px);
  border-color: #FDA4AF;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.25);
}

.bw-halte-node.active-focus-station {
  border-color: #FDA4AF;
  background: rgba(225, 29, 72, 0.18);
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.4);
}

.bw-node-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 6px;
}

.bw-transit-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 6px;
}

.bw-transit-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid;
}
.bw-transit-tag.mrt {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}
.bw-transit-tag.krl {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fda4af;
}
.bw-transit-tag.lrt {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
}
.bw-transit-tag.csw {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  color: #c084fc;
}
.bw-transit-tag.term {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}

/* Bus Live Card on Horizontal Lane */
.bw-schematic-bus-card {
  width: 96%;
  background: rgba(11, 19, 43, 0.95);
  border: 1.5px solid var(--card-border, #E11D48);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(225, 29, 72, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  z-index: 5;
}

.bw-schematic-bus-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 18px var(--card-border, #E11D48);
}

.bw-bus-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.bw-bus-card-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 6px;
}

.bw-bus-card-dir {
  font-size: 10.5px;
  font-weight: 700;
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bw-bus-card-status {
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 5px;
}
.bw-bus-card-status.bw-bus-moving {
  color: #10B981;
}
.bw-bus-card-status.bw-bus-dwelling {
  color: #F59E0B;
}

.bw-bus-card-meta {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.bw-bus-card-pill {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1px 5px;
}

/* Drawer upcoming trips items */
.bw-drawer-trip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin-bottom: 6px;
}

.bw-btn-full-timetable {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  border: 1px solid #FDA4AF;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bw-btn-full-timetable:hover {
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.45);
  transform: translateY(-1px);
}


/* BUSWAY OFFICIAL TIMETABLE BOARD STYLING */
.bw-timetable-panel {
  background: rgba(13, 21, 39, 0.75);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bw-timetable-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.bw-tt-select-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.bw-tt-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bw-tt-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.bw-tt-field select {
  background: #0B132B;
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #FFFFFF;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.bw-tt-field select:focus {
  border-color: #FDA4AF;
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.35);
}
.bw-tt-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.bw-tt-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid;
}
.bw-table-responsive-box {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.bw-timetable-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12.5px;
}
.bw-timetable-table th {
  background: rgba(15, 23, 42, 0.95);
  padding: 12px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bw-timetable-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.bw-timetable-table tr:hover {
  background: rgba(225, 29, 72, 0.06);
}
.bw-timetable-table tr.highlight-row {
  background: rgba(225, 29, 72, 0.15) !important;
  border-left: 3px solid #E11D48;
}
.bw-route-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}
.bw-status-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
  white-space: nowrap;
}
.bw-status-tag.departed {
  background: rgba(148, 163, 184, 0.12);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.bw-status-tag.at-station {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid #EF4444;
  animation: pulseBeacon 1.2s infinite;
}
.bw-status-tag.approaching {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid #10B981;
}
.bw-status-tag.scheduled {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.busway-hud-card {
  border-color: rgba(225, 29, 72, 0.4) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(225, 29, 72, 0.25) !important;
}

.bw-fleet-badge {
  font-size: 10px;
  font-weight: 700;
  color: #FDA4AF;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: 12px;
  padding: 2px 7px;
}

@media (max-width: 768px) {
  .bw-schematic-scroll {
    padding: 16px 12px 24px 12px;
  }
  .bw-tt-select-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .bw-tt-meta {
    align-items: flex-start;
    width: 100%;
  }
}

/* ==============================================================
   BUSWAY OFFICIAL GRAPHICAL NETWORK MAP (POSTER SKEMATIK VEKTOR)
   ============================================================== */
.busway-graphical-map-wrapper {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
}

.busway-map-container-box {
  width: 100%;
  position: relative;
  overflow: auto;
  border-radius: var(--radius-md);
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 29, 72, 0.5) rgba(15, 23, 42, 0.8);
  background: radial-gradient(circle at 50% 30%, #0F172A 0%, #080D1A 100%);
  min-height: 540px;
  max-height: 780px;
  cursor: grab;
}

.busway-map-container-box.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.busway-official-map {
  width: 100%;
  min-width: 1300px;
  height: auto;
  display: block;
  user-select: none;
  transform-origin: center center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Corridor Vector Paths */
.bw-corridor-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-width 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
  cursor: pointer;
}

.bw-corridor-path.is-active {
  stroke-width: 8px !important;
  filter: drop-shadow(0 0 12px currentColor) drop-shadow(0 0 4px #FFFFFF);
  opacity: 1 !important;
}

.bw-corridor-path.is-dimmed {
  opacity: 0.35;
}

.bw-corridor-path:hover {
  filter: drop-shadow(0 0 14px currentColor);
}

/* Route Track Shields */
.bw-route-track-badge {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bw-route-track-badge:hover {
  transform: scale(1.15);
}

/* Interchange Hub Capsules */
.bw-hub-capsule {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bw-hub-capsule:hover {
  transform: scale(1.03);
}

.bw-hub-capsule:hover rect {
  stroke: #FFFFFF !important;
  stroke-width: 2.8px !important;
  filter: drop-shadow(0 0 14px #FDA4AF);
}

/* Halte Dots and Labels */
.bw-map-halte {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.bw-map-halte:hover circle {
  transform: scale(1.35);
  stroke: #FFFFFF !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 10px #FDA4AF);
}

.bw-map-halte.is-active-halte circle {
  stroke: #FFFFFF !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 12px #E11D48) drop-shadow(0 0 24px #E11D48);
}

/* Station Label Pill Badges */
.bw-station-label-pill {
  cursor: pointer;
  transition: transform 0.18s ease;
}

.bw-station-label-pill:hover rect {
  stroke: #FFFFFF !important;
  stroke-width: 2.2px !important;
  filter: drop-shadow(0 0 12px #FDA4AF);
}

.bw-station-label-pill:hover text {
  fill: #FFFFFF !important;
  filter: drop-shadow(0 0 4px #FFFFFF);
}

/* Live Moving Bus Markers on the Vector Map */
.bw-map-bus {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.bw-map-bus:hover {
  filter: drop-shadow(0 0 20px #FDA4AF) drop-shadow(0 0 8px #FFFFFF) !important;
}

/* ==============================================================
   BUSWAY ROUTE & TRANSIT FINDER (PANDUAN RUTE HALTE KE HALTE)
   ============================================================== */
.busway-route-finder-wrapper {
  margin-top: 14px;
}

.bw-finder-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 14, 28, 0.98) 100%);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.bw-finder-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.bw-finder-context-bar {
  margin-bottom: 18px;
}

.bw-finder-corridor-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(11, 17, 32, 0.7);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bw-active-corridor-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid #E11D48;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.bw-active-corridor-tag strong {
  color: #FDA4AF;
}

.bw-count-badge {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
}

.bw-btn-show-all-halts {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.bw-btn-show-all-halts:hover {
  background: #38BDF8;
  color: #070D18;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.bw-finder-form-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.bw-form-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bw-form-label {
  font-size: 13px;
  font-weight: 700;
  color: #FDA4AF;
}

.bw-select-box {
  width: 100%;
  background: rgba(11, 17, 32, 0.85);
  color: #FFFFFF;
  border: 1.5px solid rgba(225, 29, 72, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bw-select-box:focus {
  border-color: #FDA4AF;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.35);
}

.bw-swap-col {
  display: flex;
  justify-content: center;
  padding-bottom: 2px;
}

.bw-swap-btn {
  background: rgba(225, 29, 72, 0.15);
  border: 1.5px solid #E11D48;
  color: #FDA4AF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.bw-swap-btn:hover {
  background: #E11D48;
  color: #FFFFFF;
  transform: rotate(180deg) scale(1.08);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.6);
}

.bw-preset-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(11, 17, 32, 0.6);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.bw-preset-pill {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: #FDA4AF;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.bw-preset-pill:hover {
  background: #E11D48;
  color: #FFFFFF;
  border-color: #E11D48;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

/* Route Results */
.bw-route-results-container {
  margin-top: 10px;
}

.bw-route-empty-box {
  text-align: center;
  padding: 36px 20px;
  background: rgba(11, 17, 32, 0.5);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.bw-route-summary-banner {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.18) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(225, 29, 72, 0.4);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.bw-summary-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FDA4AF;
  margin-bottom: 6px;
}

.bw-summary-title {
  margin: 0 0 14px 0;
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.bw-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bw-summary-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(11, 17, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
}

.bw-summary-stat .stat-icon {
  font-size: 24px;
}

.bw-summary-stat .stat-val {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.bw-summary-stat .stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.bw-route-steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bw-transit-step-card {
  position: relative;
  background: rgba(11, 17, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--corridor-color, #E11D48);
  border-radius: 12px;
  padding: 18px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bw-transit-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.bw-transit-step-card.is-transfer-step {
  border-left: 5px solid #FDA4AF;
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.25);
}

.bw-step-number-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.bw-step-number-badge.transfer-badge {
  background: #E11D48;
}

.bw-step-instruction {
  margin: 8px 0 12px 0;
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.5;
}

.bw-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bw-step-pill {
  font-size: 11.5px;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bw-step-pill strong {
  color: #FFFFFF;
}

.bw-toggle-stops-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38BDF8;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.bw-toggle-stops-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
}

.bw-step-stops-container {
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(7, 13, 24, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bw-step-stops-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bw-stop-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
}

.bw-stop-chip .stop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748B;
}

.bw-stop-chip.is-start, .bw-stop-chip.is-end {
  background: rgba(225, 29, 72, 0.15);
  border-color: #E11D48;
  color: #FFFFFF;
  font-weight: 700;
}

.bw-stop-chip.is-start .stop-dot, .bw-stop-chip.is-end .stop-dot {
  background: #FDA4AF;
}

/* ==============================================================
   BUSWAY DIRECTORY (14 KORIDOR & LAYANAN AMARI)
   ============================================================== */
.busway-directory-wrapper {
  margin-top: 14px;
}

.bw-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.bw-directory-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(8, 14, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--corridor-color, #E11D48);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bw-directory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.bw-dir-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bw-amari-badge {
  font-size: 11px;
  font-weight: 800;
  color: #C084FC;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(147, 51, 234, 0.35);
  padding: 3px 9px;
  border-radius: 12px;
}

.bw-regular-badge {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 9px;
  border-radius: 12px;
}

.bw-dir-card-title {
  margin: 0 0 14px 0;
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
}

.bw-dir-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.bw-dir-card-meta .meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 4px;
}

.bw-dir-card-meta .meta-lbl {
  color: var(--text-muted);
}

.bw-dir-card-meta .meta-val {
  color: #E2E8F0;
  font-weight: 600;
}

.bw-dir-terminals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 13, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.bw-dir-terminals .term-box {
  display: flex;
  flex-direction: column;
}

.bw-dir-terminals .term-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.bw-dir-terminals .term-name {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.bw-dir-terminals .term-arrow {
  color: var(--corridor-color, #E11D48);
  font-weight: 800;
  font-size: 14px;
}

.bw-btn-view-map {
  width: 100%;
  background: rgba(225, 29, 72, 0.15);
  border: 1.5px solid #E11D48;
  color: #FDA4AF;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.bw-btn-view-map:hover {
  background: #E11D48;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4);
}

.bw-dir-filter-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(11, 17, 32, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.bw-via-halte-tag {
  font-size: 11px;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.bw-btn-pick-corridor {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.bw-btn-pick-corridor:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  transform: translateY(-1px);
}

.bw-directory-card.is-featured-card {
  border-width: 2px;
  border-color: var(--corridor-color, #E11D48);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(225, 29, 72, 0.2);
}

.bw-dir-main-stops-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.bw-dir-stops-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #FDA4AF;
  margin-bottom: 6px;
}

.bw-dir-stops-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.bw-stop-chip.is-hub {
  border-color: #38BDF8;
  color: #E2E8F0;
}

.bw-stop-chip.is-hub .stop-dot {
  background: #38BDF8;
}

.bw-dir-related-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bw-dir-related-heading {
  margin-bottom: 14px;
}

/* ==============================================================
   HALTE & TRANSIT HUB INSPECTOR DRAWER
   ============================================================== */
.busway-halte-drawer {
  position: absolute;
  top: 70px;
  right: 16px;
  width: 360px;
  max-width: calc(100% - 32px);
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(225, 29, 72, 0.4);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 14px rgba(225, 29, 72, 0.2);
  z-index: 50;
  overflow: hidden;
  animation: fadeInDown 0.2s ease-out;
}

.bw-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.8);
}

.bw-halte-drawer-content {
  padding: 16px;
}

.bw-drawer-section {
  margin-bottom: 8px;
}

.bw-drawer-subheading {
  font-size: 11.5px;
  font-weight: 700;
  color: #FDA4AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.bw-drawer-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bw-btn-action-primary {
  background: #E11D48;
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.bw-btn-action-primary:hover {
  background: #BE123C;
  transform: translateY(-1px);
}

.bw-btn-action-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.bw-btn-action-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
}

@media (max-width: 768px) {
  .bw-finder-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bw-swap-col {
    padding: 0;
  }
  .bw-swap-btn {
    transform: rotate(90deg);
  }
  .bw-summary-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .bw-directory-grid {
    grid-template-columns: 1fr;
  }
  .busway-halte-drawer {
    top: auto;
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* ====================================================
   SMART MULTI-STEP TRANSIT NAVIGATOR (KERETA & BUSWAY)
   ==================================================== */
.route-mode-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.route-mode-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.route-mode-btn:hover {
  border-color: #38bdf8;
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.route-mode-btn.active,
.route-mode-btn[data-mode="all"].active {
  background: rgba(139, 92, 246, 0.18);
  border-color: #8b5cf6;
  color: #c4b5fd;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.route-mode-btn[data-mode="mrt"].active,
.route-mode-btn[data-network="mrt_jakarta"].active {
  background: rgba(224, 26, 79, 0.18);
  border-color: #e01a4f;
  color: #fda4af;
  box-shadow: 0 0 12px rgba(224, 26, 79, 0.2);
}

.route-mode-btn[data-mode="lrt"].active,
.route-mode-btn[data-network="lrt_jabodebek"].active {
  background: rgba(0, 150, 136, 0.18);
  border-color: #009688;
  color: #5eead4;
  box-shadow: 0 0 12px rgba(0, 150, 136, 0.2);
}

.route-mode-btn[data-network="jabodetabek"].active,
.route-mode-btn[data-mode="train"].active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.route-mode-btn[data-mode="busway"].active {
  background: rgba(225, 29, 72, 0.15);
  border-color: #e11d48;
  color: #fda4af;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.15);
}

.route-mode-btn[data-network="bandara"].active {
  background: rgba(2, 132, 199, 0.18);
  border-color: #0284c7;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.25);
}

.route-mode-btn[data-network="jogja_solo"].active {
  background: rgba(212, 175, 55, 0.18);
  border-color: #d4af37;
  color: #fde047;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.route-mode-btn[data-network="sukabumi"].active {
  background: rgba(5, 150, 105, 0.18);
  border-color: #059669;
  color: #6ee7b7;
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.25);
}

.route-mode-btn[data-mode="multimodal"].active {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8b5cf6;
  color: #c4b5fd;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

/* Transit Alert Step Card */
.transit-alert-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transit-alert-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #fbbf24;
}

.transit-platform-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  color: #fef3c7;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12.5px;
  width: fit-content;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

[data-theme="light"] .transit-platform-guide {
  background: rgba(245, 158, 11, 0.25);
  color: #92400e;
}

.intermediate-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.intermediate-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.intermediate-stops-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-top: 6px;
}

.intermediate-station-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.multimodal-walk-card {
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===================================================================
   MOBILE HERO — Compact: hide verbose text, swipeable stat strip
   =================================================================== */
@media (max-width: 768px) {
  .hero .hero-tag,
  .hero .hero-desc {
    display: none !important;
  }

  .hero .hero-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin: 0 0 12px !important;
  }

  .hero .occ-stats-ribbon {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
      padding-bottom: 0;
      scroll-snap-type: none;
  }

  .hero .occ-stat-box {
      flex: initial !important;
      min-width: 0;
      min-height: 48px;
      padding: 7px 9px !important;
      gap: 7px !important;
      border-radius: 12px !important;
  }

  .hero .occ-stat-icon-wrap {
      width: 25px !important;
      height: 25px !important;
      font-size: 12px !important;
      border-radius: 8px !important;
  }

  .hero .occ-stat-number {
      font-size: 11.5px !important;
      line-height: 1.15;
      white-space: normal;
  }

  .hero .occ-stat-desc {
    display: none !important;
  }

  .hero .disruption-control-bar {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }

  .hero .status-indicator-badge {
    font-size: 11.5px !important;
    min-width: 0;
  }

  .hero .toggle-simulation-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    font-size: 11px !important;
    padding: 6px 10px !important;
    white-space: nowrap;
  }
}

/* ===================================================================
   MOBILE NAV DOCK — Compact 3x2 icon tile grid (overrides list layout)
   =================================================================== */
@media (max-width: 768px) {
  .main-nav-dock {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .main-nav-dock .tab-btn {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 12px 4px 14px !important;
    min-height: 88px;
    width: 100% !important;
  }

  .main-nav-dock .tab-icon-box {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    margin: 0 !important;
  }

  .main-nav-dock .tab-content-box {
    align-items: center !important;
    width: 100%;
  }

  .main-nav-dock .tab-main-title {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .main-nav-dock .tab-sub-title {
    display: none !important;
  }

  .main-nav-dock .tab-btn.active::after {
    bottom: 5px !important;
  }
}

/* ===================================================================
   IPHONE-LIKE MINIMAL PHONE REDESIGN — airy, clean, calm, and app-native
   =================================================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 24%),
      radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 26%),
      linear-gradient(180deg, #f8fafc 0%, #f3f7fb 34%, #eef4f9 100%);
    color: #0f172a;
  }

  header {
    padding: 10px 0 12px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.19);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 28px -24px rgba(15, 23, 42, 0.18);
    border-radius: 0 0 18px 18px;
  }

  .header-inner {
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(45, 212, 191, 0.12));
    box-shadow: 0 10px 20px -16px rgba(14, 165, 233, 0.38);
  }

  .brand-title {
    font-size: 18px;
    line-height: 1.1;
    gap: 4px;
    flex-wrap: wrap;
    letter-spacing: -0.04em;
    color: #0f172a;
  }

  .brand-subtitle {
    color: #475569;
  }

  .live-status-pill {
    display: inline-flex;
    padding: 3px 7px;
    font-size: 8px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.16);
    color: #047857;
    box-shadow: none;
  }

  .header-status {
    gap: 8px;
    padding-top: 2px;
  }

  .telemetry-server-pill,
  .header-status .live-clock-badge,
  .lang-switch-group,
  .theme-toggle-btn {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #0f172a;
    box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.2);
  }

  .lang-switch-group {
    padding: 2px;
  }

  .lang-switch-opt {
    min-width: 38px;
    height: 28px;
    padding: 0 8px;
    font-size: 10px;
    border-radius: 9px;
    background: transparent;
    color: #475569;
  }

  .lang-switch-opt.active {
    background: rgba(14, 165, 233, 0.08);
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.14);
  }

  .hero {
    padding-top: 12px;
  }

  .hero-header {
    margin-bottom: 14px;
  }

  .hero .hero-tag {
    display: inline-flex !important;
    width: auto;
    margin: 0 auto 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 8.5px;
    letter-spacing: 0.14em;
    font-weight: 700;
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(14, 165, 233, 0.12);
    color: #0369a1;
  }

  .hero .hero-title,
  .hero .hero-desc {
    display: none !important;
  }

  .occ-stats-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 16px;
  }

  .occ-stat-box {
    padding: 10px 12px;
    border-radius: 18px;
    min-height: 76px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 22px -20px rgba(15, 23, 42, 0.18);
    color: #0f172a;
  }

  .occ-stat-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.08);
  }

  .occ-stat-number {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
  }

  .occ-stat-desc {
    font-size: 9.5px;
    line-height: 1.2;
    color: #475569;
  }

  .disruption-control-bar {
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 22px -18px rgba(15, 23, 42, 0.18);
  }

  .status-indicator-badge,
  .toggle-simulation-btn {
    border-radius: 12px;
  }

  .main-nav-dock {
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 40px -30px rgba(15, 23, 42, 0.18);
  }

  .main-nav-dock .tab-btn {
    border-radius: 16px;
    padding: 12px 8px;
    min-height: 84px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  }

  .main-nav-dock .tab-btn:hover {
    background: #f3f8ff;
    border-color: rgba(14, 165, 233, 0.14);
    transform: none;
  }

  .main-nav-dock .tab-btn.active {
    background: #ffffff;
    border-color: rgba(14, 165, 233, 0.22);
    box-shadow: 0 12px 24px -20px rgba(14, 165, 233, 0.26), inset 0 0 0 1px rgba(14, 165, 233, 0.05);
  }

  .main-nav-dock .tab-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
    background: rgba(14, 165, 233, 0.06);
    border-color: rgba(14, 165, 233, 0.06);
    color: #0f172a;
  }

  .main-nav-dock .tab-btn.active .tab-icon-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(45, 212, 191, 0.12));
    border-color: rgba(14, 165, 233, 0.15);
    box-shadow: none;
  }

  .main-nav-dock .tab-main-title {
    font-size: 11.75px;
    letter-spacing: -0.02em;
    color: #0f172a;
    font-weight: 700;
  }

  .main-nav-dock .tab-sub-title {
    display: none !important;
  }

  .tab-btn.active::after {
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9, #14b8a6);
    box-shadow: none;
  }
}
