/* High-Performance Font Stack */

:root {
    /* Dark Theme (Default) */
    --bg-primary: #070b14;
    --bg-secondary: #0d1527;
    --bg-glass: rgba(13, 21, 39, 0.75);
    --bg-glass-card: rgba(19, 31, 56, 0.65);
    --bg-surface: #131f38;
    --border-color: rgba(56, 189, 248, 0.15);
    --border-glow: rgba(56, 189, 248, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-cyan: #00f2fe;
    --accent-blue: #38bdf8;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-purple: #8b5cf6;

    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
    
    --sidebar-width: 400px;
    --header-height: 64px;
    --footer-height: 38px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-card: rgba(255, 255, 255, 0.75);
    --bg-surface: #e2e8f0;
    --border-color: rgba(148, 163, 184, 0.3);
    --border-glow: rgba(2, 132, 199, 0.4);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --accent-cyan: #0284c7;
    --accent-blue: #2563eb;
    --accent-emerald: #059669;
    --accent-amber: #d97706;
    --accent-rose: #e11d48;
    --accent-purple: #7c3aed;

    --shadow-soft: 0 8px 30px 0 rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

button, select, input, a, .flight-row-card, .nav-tab-btn, .action-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Base App Layout with Safe Area Support (iOS Notch & Dynamic Island) */
#app-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.app-header {
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    position: relative;
    flex-shrink: 0;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.radar-logo-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, rgba(13, 21, 39, 0.9) 70%);
    border: 1.5px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.radar-sweep-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(0, 242, 254, 0.6) 360deg);
    animation: radarSpin 2.5s linear infinite;
}

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

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

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

.region-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.region-select-icon {
    position: absolute;
    left: 12px;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.region-select-dropdown {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-full);
    padding: 7px 16px 7px 34px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    outline: none;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
    transition: var(--transition-fast);
}

.region-select-dropdown:hover, .region-select-dropdown:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
}

.sync-combo-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sync-btn-part {
    border: none !important;
    border-radius: 0 !important;
    padding: 7px 12px !important;
    background: transparent !important;
}

.sync-btn-part:hover {
    background: rgba(0, 242, 254, 0.1) !important;
}

.refresh-dropdown-compact {
    border: none !important;
    border-left: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 7px 8px !important;
    font-size: 0.75rem !important;
    color: var(--text-secondary);
}

.icon-only-btn {
    padding: 8px 10px !important;
    font-size: 0.95rem !important;
}

.icon-only-btn:hover {
    color: var(--accent-cyan);
}

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

.action-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 12px;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.action-btn:hover {
    background: var(--bg-glass-card);
    border-color: var(--border-glow);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    color: #070b14;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

.status-indicator-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
}

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

/* ==========================================================================
   MAIN VIEWPORT & MAP
   ========================================================================== */
.main-viewport {
    flex: 1;
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height) - var(--footer-height));
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    background-color: #0b1120;
    z-index: 1;
}

/* Leaflet Customization */
.leaflet-container {
    font-family: var(--font-main) !important;
}

.leaflet-control-zoom {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-soft) !important;
}

.leaflet-control-zoom a {
    background-color: var(--bg-glass) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.leaflet-control-zoom a:hover {
    background-color: var(--bg-surface) !important;
    color: var(--accent-cyan) !important;
}

.leaflet-popup-content-wrapper {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid var(--border-glow) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-soft) !important;
}

.leaflet-popup-tip {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
}

/* ==========================================================================
   HUD TELEMETRY OVERLAY CARDS
   ========================================================================== */
.hud-metrics-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 10px;
    z-index: 500;
    pointer-events: none;
    flex-wrap: nowrap;
    transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s ease, opacity 0.3s ease;
}

/* Slide HUD Metrics Cards to the right when Flight List Drawer or Airport Board is Open */
.main-radar-view:has(.flight-list-drawer.active) .hud-metrics-overlay,
.main-radar-view:has(.airport-board-drawer.active) .hud-metrics-overlay,
.drawer-left-open .hud-metrics-overlay {
    left: 412px;
}

@media (max-width: 1280px) {
    .main-radar-view:has(.flight-list-drawer.active) .hud-metrics-overlay,
    .main-radar-view:has(.airport-board-drawer.active) .hud-metrics-overlay,
    .drawer-left-open .hud-metrics-overlay {
        left: 412px;
        gap: 6px;
    }
    .main-radar-view:has(.flight-list-drawer.active) .hud-card,
    .main-radar-view:has(.airport-board-drawer.active) .hud-card,
    .drawer-left-open .hud-card {
        min-width: 100px;
        padding: 8px 10px;
    }
}

@media (max-width: 1024px) {
    .main-radar-view:has(.flight-list-drawer.active) .hud-metrics-overlay,
    .main-radar-view:has(.airport-board-drawer.active) .hud-metrics-overlay,
    .drawer-left-open .hud-metrics-overlay {
        left: 412px;
        flex-wrap: wrap;
        max-width: calc(100vw - 435px);
    }
}

@media (max-width: 768px) {
    .main-radar-view:has(.flight-list-drawer.active) .hud-metrics-overlay,
    .main-radar-view:has(.airport-board-drawer.active) .hud-metrics-overlay,
    .drawer-left-open .hud-metrics-overlay {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
    }
}

.hud-card {
    pointer-events: auto;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    min-width: 120px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: var(--transition-fast);
}

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

.hud-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hud-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.hud-value.cyan { color: var(--accent-cyan); }
.hud-value.emerald { color: var(--accent-emerald); }
.hud-value.amber { color: var(--accent-amber); }
.hud-value.purple { color: var(--accent-purple); }

/* Real-Time Weather HUD Card - Minimalist & Informative */
.hud-weather-card {
    min-width: 250px;
    max-width: 290px;
    padding: 6px 12px;
    cursor: pointer;
    background: rgba(13, 21, 39, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    user-select: none;
    transition: var(--transition-fast);
}

.hud-weather-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.hud-weather-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 2px;
}

.hud-weather-loc {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.hud-weather-pill-tag {
    font-size: 0.60rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.hud-weather-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 8px;
}

.hws-section {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.hws-head {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.hws-head i {
    font-size: 0.72rem;
}

#weather-icon-today {
    color: #facc15;
}

#weather-icon-tmrw {
    color: #38bdf8;
}

.hws-rain-badge {
    margin-left: auto;
    font-size: 0.58rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 0px 4px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.hws-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
    min-width: 0;
}

.hws-temp {
    font-size: 1.12rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1.15;
    white-space: nowrap;
}

.hws-temp.today {
    color: #facc15;
}

.hws-temp-range {
    font-size: 0.88rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #38bdf8;
    line-height: 1.15;
    white-space: nowrap;
}

.hws-desc {
    font-size: 0.63rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.hud-weather-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2px 0;
}

/* ==========================================================================
   REFRESH PROGRESS BAR
   ========================================================================== */
.refresh-progress-bar-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1001;
}

.refresh-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    transition: width 0.1s linear;
}

/* ==========================================================================
   MAP LAYER SWITCHER & CONTROLS (Top Right)
   ========================================================================== */
.map-floating-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 500;
}

.layer-select-dropdown {
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.layer-select-dropdown:hover {
    border-color: var(--border-glow);
}

.layer-select-dropdown option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Radar Layer Toggles Grid */
.radar-toggles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.radar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: var(--radius-sm, 6px);
    background: var(--bg-glass, rgba(15, 23, 42, 0.85));
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    color: var(--text-secondary, #94a3b8);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    min-height: 28px;
    user-select: none;
}

.radar-toggle-btn i {
    font-size: 0.8rem;
}

.radar-toggle-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    color: var(--text-primary, #ffffff);
}

.radar-toggle-btn.active {
    background: rgba(56, 189, 248, 0.25);
    border-color: var(--accent-cyan, #38bdf8);
    color: var(--accent-cyan, #38bdf8);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

#toggle-earthquakes-btn.active {
    background: rgba(239, 68, 68, 0.22);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

#toggle-rain-radar-btn.active {
    background: rgba(14, 165, 233, 0.25);
    border-color: #0ea5e9;
    color: #38bdf8;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

#toggle-heatmap-btn.active {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

#toggle-volcanoes-btn.active {
    background: rgba(220, 38, 38, 0.25);
    border-color: #dc2626;
    color: #f87171;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

/* Altitude Legend */
.altitude-legend-pill {
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: var(--shadow-soft);
}

.legend-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.legend-gradient-bar {
    width: 160px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #94a3b8, #10b981, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* ==========================================================================
   FLIGHT INSPECTOR SIDE DRAWER (Right)
   ========================================================================== */
.flight-inspector-drawer {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: var(--sidebar-width);
    max-width: calc(100vw - 32px);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    z-index: 1005;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(115%);
    transition: transform var(--transition-smooth);
}

.flight-inspector-drawer.active {
    transform: translateX(0);
}

.inspector-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
}

.inspector-title-wrap {
    display: flex;
    flex-direction: column;
}

.inspector-callsign {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspector-type-badge {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

[data-theme="light"] .inspector-type-badge {
    background: rgba(2, 132, 199, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.inspector-country {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.close-drawer-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-drawer-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
    border-color: var(--accent-rose);
}

.inspector-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Aircraft Photo Banner */
.aircraft-photo-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.aircraft-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.aircraft-photo-img:hover {
    transform: scale(1.05);
}

.aircraft-photo-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    gap: 6px;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.02) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.8s infinite;
}

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

.aircraft-photo-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 14px 10px 6px 10px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.aircraft-photo-credit a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.aircraft-photo-credit a:hover {
    text-decoration: underline;
}

/* Flight Route (Origin -> Destination) Card */
.flight-route-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.route-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.route-endpoint {
    display: flex;
    flex-direction: column;
    width: 38%;
}

.route-endpoint.origin-endpoint {
    text-align: left;
}

.route-endpoint.dest-endpoint {
    text-align: right;
}

.route-badge-type {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.route-airport-code {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.route-city-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-airport-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-indicator-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.route-plane-anim {
    color: var(--accent-cyan);
    font-size: 1rem;
    animation: flightBob 2s ease-in-out infinite;
}

@keyframes flightBob {
    0%, 100% { transform: translateY(0px) rotate(90deg); }
    50% { transform: translateY(-3px) rotate(90deg); }
}

.route-dashed-line {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan) 4px, transparent 4px, transparent 8px);
    margin: 4px 0;
    opacity: 0.7;
}

.route-flight-tag {
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-mono);
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-cyan);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.route-operator-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* Grid of Telemetry */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.telemetry-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.telemetry-title {
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.telemetry-val {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

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

.inspector-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.inspector-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.inspector-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
}

.inspector-btn.active-follow {
    background: var(--accent-cyan);
    color: #070b14;
    border-color: var(--accent-cyan);
}

/* ==========================================================================
   FLIGHT LIST & SEARCH SIDEBAR DRAWER (Left)
   ========================================================================== */
.flight-list-drawer {
    position: absolute;
    top: 16px;
    left: 16px;
    bottom: 16px;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    z-index: 1005;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-115%);
    transition: transform var(--transition-smooth);
}

.flight-list-drawer.active {
    transform: translateX(0);
}

.list-drawer-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input-wrap {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 8px 14px 8px 36px;
    color: var(--text-primary);
    font-size: 0.82rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.search-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.filter-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.filter-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.filter-chip.active {
    background: var(--accent-cyan);
    color: #070b14;
    border-color: var(--accent-cyan);
}

[data-theme="light"] .filter-chip.active {
    background: var(--accent-blue);
    color: #ffffff;
}

.flight-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flight-row-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-fast);
}

.flight-row-card:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.05);
    transform: translateX(3px);
}

.flight-row-card.selected {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.flight-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flight-row-callsign {
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.flight-row-country {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.flight-row-telemetry {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flight-row-alt {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

.flight-row-spd {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ==========================================================================
   FOOTER BAR
   ========================================================================== */
.app-footer {
    height: var(--footer-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    z-index: 1000;
    position: relative;
    flex-shrink: 0;
}

.footer-powered-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.footer-powered-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--accent-cyan);
}

[data-theme="light"] .footer-powered-link:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.footer-meta-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

/* ==========================================================================
   FEATURE 1: EMERGENCY SQUAWK ALERT BANNER
   ========================================================================== */
.emergency-alert-banner {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95));
    border: 1.5px solid #fca5a5;
    border-radius: var(--radius-full);
    padding: 8px 18px;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    align-items: center;
    gap: 12px;
    animation: emergencyPulseBar 1.2s infinite alternate;
}

.emergency-alert-banner.active {
    display: flex;
}

@keyframes emergencyPulseBar {
    0% { transform: translateX(-50%) scale(1); box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); }
    100% { transform: translateX(-50%) scale(1.02); box-shadow: 0 0 30px rgba(239, 68, 68, 0.9); }
}

.emergency-icon-flash {
    font-size: 1.2rem;
    animation: sirenSpin 1s infinite;
}

@keyframes sirenSpin {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.emergency-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.emergency-intercept-btn {
    background: #ffffff;
    color: #b91c1c;
    border: none;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.emergency-intercept-btn:hover {
    background: #fee2e2;
    transform: scale(1.05);
}

.plane-marker-emergency {
    animation: emergencyBeacon 1s infinite !important;
}

@keyframes emergencyBeacon {
    0% { filter: drop-shadow(0 0 6px #ef4444); transform: scale(1); }
    50% { filter: drop-shadow(0 0 20px #ef4444) drop-shadow(0 0 30px #dc2626); transform: scale(1.3); }
    100% { filter: drop-shadow(0 0 6px #ef4444); transform: scale(1); }
}

/* ==========================================================================
   FEATURE 2: FLIGHT HEADING PROJECTOR & WAYPOINTS
   ========================================================================== */
.waypoint-pill-marker {
    background: rgba(13, 21, 39, 0.9);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* ==========================================================================
   FEATURE 4: RADAR RANGE RINGS ATC
   ========================================================================== */
.range-ring-label-pill {
    background: rgba(13, 21, 39, 0.85);
    border: 1px dashed var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0.85;
}

/* ==========================================================================
   FEATURE 5: AIRPORT MARKERS & LIVE TRAFFIC BOARD
   ========================================================================== */
.airport-marker-pill {
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid var(--accent-amber);
    color: var(--accent-amber);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
    cursor: pointer;
    transition: var(--transition-fast);
}

.airport-marker-pill:hover {
    background: var(--accent-amber);
    color: #070b14;
    transform: scale(1.1);
}

/* Airport Traffic Modal / Drawer */
.airport-board-drawer {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    width: 620px;
    max-width: calc(100vw - 32px);
    max-height: 80vh;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    z-index: 1005;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-smooth);
}

.airport-board-drawer.active {
    transform: translateX(-50%) translateY(0);
}

.airport-board-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.airport-board-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.airport-tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.airport-tab-btn.active {
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    background: rgba(0, 242, 254, 0.05);
}

.airport-flights-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
}

/* Plane Marker Container & Minimalist Callsign Badge */
.plane-marker-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    cursor: pointer;
}

.plane-marker-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
}

.plane-callsign-pill {
    margin-top: 1px;
    padding: 1px 4.5px;
    font-family: var(--font-mono, 'SF Mono', Consolas, monospace);
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.3px;
    color: #ffffff;
    background: rgba(7, 11, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3.5px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    user-select: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.plane-marker-container:hover .plane-callsign-pill,
.plane-marker-container.is-selected .plane-callsign-pill {
    background: #facc15;
    color: #070b14;
    border-color: #facc15;
    text-shadow: none;
    transform: scale(1.08);
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.85);
}

.plane-marker-container.is-emergency .plane-callsign-pill {
    background: #ef4444;
    color: #ffffff;
    border-color: #fee2e2;
    animation: emergencyBlink 1s infinite;
}

.plane-marker-selected {
    animation: selectedPulse 1.8s infinite;
}

@keyframes selectedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Compact Plane Leaflet Hover Tooltip */
.leaflet-tooltip.compact-plane-leaflet-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 10px !important;
    z-index: 1000 !important;
}

.leaflet-tooltip-top.compact-plane-leaflet-tooltip::before,
.leaflet-tooltip-bottom.compact-plane-leaflet-tooltip::before,
.leaflet-tooltip-left.compact-plane-leaflet-tooltip::before,
.leaflet-tooltip-right.compact-plane-leaflet-tooltip::before {
    display: none !important;
}

.compact-plane-tooltip-card {
    width: 235px;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.75), 0 0 16px rgba(56, 189, 248, 0.18);
    overflow: hidden;
    color: #f8fafc;
    font-family: var(--font-main, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    animation: compactTooltipPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

@keyframes compactTooltipPop {
    from {
        opacity: 0;
        transform: translateY(5px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.compact-tt-photo-wrap {
    position: relative;
    width: 100%;
    height: 90px;
    background: #070b14;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compact-tt-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.compact-tt-photo-credit {
    position: absolute;
    bottom: 3px;
    right: 5px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 4px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    max-width: 85%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-tt-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.placeholder-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.placeholder-text {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.compact-tt-emergency-banner {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    text-align: center;
    letter-spacing: 0.5px;
    animation: emergencyBlink 1s infinite;
}

.compact-tt-body {
    padding: 8px 10px 7px;
}

.compact-tt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}

.compact-tt-callsign-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.compact-tt-callsign {
    font-family: var(--font-mono, monospace);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.compact-tt-flag {
    font-size: 0.95rem;
}

.compact-tt-type-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.compact-tt-airline {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-tt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 5px 7px;
    margin-bottom: 6px;
}

.compact-tt-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.compact-tt-stat-lbl {
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.3px;
}

.compact-tt-stat-val {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-tt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    color: #64748b;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.compact-tt-hint {
    color: var(--accent-cyan, #38bdf8);
    font-weight: 600;
    font-size: 0.66rem;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   ENHANCED RESPONSIVE DESIGN FOR SMARTPHONES, ANDROID, IOS, IPAD, & TABLETS
   ========================================================================== */

/* 1. TABLETS & IPADS (769px - 1024px) */
@media (max-width: 1024px) {
    .app-header {
        padding: 0 12px;
        gap: 8px;
    }
    
    .brand-title {
        font-size: 1.05rem;
    }
    
    .brand-subtitle {
        font-size: 0.68rem;
    }
    
    .header-nav-tabs {
        margin: 0 6px;
    }
    
    .nav-tab-btn {
        padding: 5px 10px;
        font-size: 0.74rem;
    }
    
    .region-select-dropdown {
        padding: 6px 12px 6px 30px;
        font-size: 0.78rem;
    }

    .flight-inspector-drawer, .flight-list-drawer {
        width: 380px;
    }
}

/* 2. SMARTPHONES & PHABLETS (Android & iOS iPhones, <= 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 48px;
        --footer-height: 26px;
    }

    /* Header Compact Layout (All Tools Fit in 1 Neat Row) */
    .app-header {
        height: var(--header-height);
        padding: 0 6px;
        gap: 4px;
        overflow: hidden;
    }

    .brand-section {
        gap: 5px;
        flex-shrink: 0;
    }

    .radar-logo-wrap {
        width: 26px;
        height: 26px;
    }

    .radar-logo-wrap i {
        font-size: 0.95rem !important;
    }

    .brand-title {
        font-size: 0.82rem;
        letter-spacing: 0.01em;
        line-height: 1.1;
    }

    .brand-prefix {
        display: none;
    }

    .brand-subtitle {
        display: none;
    }

    .header-nav-tabs {
        margin: 0;
        padding: 2px;
        gap: 2px;
        flex-shrink: 0;
    }

    .nav-tab-btn {
        padding: 4px 6px;
        font-size: 0.68rem;
        gap: 3px;
        border-radius: 6px;
    }

    .nav-tab-btn .tab-label {
        font-size: 0.65rem;
    }

    .header-center-tools {
        display: none;
    }

    /* Compact Action Buttons with Icons */
    .header-actions {
        gap: 3px;
        flex-shrink: 0;
        margin-left: auto;
    }

    .action-btn {
        padding: 4px 6px;
        font-size: 0.72rem;
        min-width: 28px;
        height: 28px;
        justify-content: center;
        border-radius: 6px;
    }

    #toggle-list-btn span,
    .whatsapp-header-btn span,
    .sync-btn-part span,
    #vip-btn-label {
        display: none;
    }

    .sync-combo-wrap {
        border-radius: 6px;
    }

    .sync-btn-part {
        padding: 4px 7px !important;
        border-radius: 6px !important;
    }

    .refresh-dropdown-compact {
        display: none !important; /* Hide interval select on phone to guarantee zero horizontal overflow */
    }

    .icon-only-btn {
        padding: 4px 6px !important;
        font-size: 0.8rem !important;
    }

    /* HUD Metrics Overlay (Scrollable Touch-Friendly Bar) */
    .hud-metrics-overlay {
        top: 6px;
        left: 6px;
        right: 6px;
        max-width: calc(100vw - 12px);
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 5px;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        z-index: 500;
    }
    
    .hud-metrics-overlay::-webkit-scrollbar {
        display: none;
    }

    .hud-card {
        min-width: unset;
        height: 38px;
        padding: 3px 8px;
        border-radius: 8px;
        background: rgba(10, 16, 30, 0.85);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1px;
        flex-shrink: 0;
    }

    .hud-label {
        font-size: 0.52rem;
        font-weight: 700;
        gap: 3px;
        letter-spacing: 0.03em;
        white-space: nowrap;
        line-height: 1;
    }

    .hud-value {
        font-size: 0.88rem;
        font-weight: 800;
        line-height: 1.1;
        white-space: nowrap;
    }

    .hud-weather-card {
        min-width: 215px;
        max-width: 245px;
        height: 38px;
        padding: 3px 8px;
        border-radius: 8px;
        gap: 2px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hud-weather-top {
        padding-bottom: 0px;
    }

    .hud-weather-loc {
        font-size: 0.56rem;
        max-width: 95px;
        padding: 0px 4px;
        border-radius: 3px;
    }

    .hud-weather-pill-tag {
        font-size: 0.50rem;
    }

    .hws-head {
        font-size: 0.54rem;
    }

    .hws-temp.today {
        font-size: 0.90rem;
    }

    .hws-temp-range {
        font-size: 0.76rem;
    }

    .hws-desc {
        font-size: 0.52rem;
    }

    /* Floating Controls on Mobile (Ultra Compact & Clean, Sits Under HUD Bar) */
    .map-floating-controls {
        top: 48px;
        right: 6px;
        width: 146px;
        gap: 3px;
        z-index: 450;
    }

    .layer-select-dropdown {
        font-size: 0.65rem;
        padding: 3px 6px;
        border-radius: 6px;
        height: 25px;
        background-color: rgba(10, 16, 30, 0.85);
        backdrop-filter: blur(12px);
    }

    .radar-toggles-grid {
        gap: 2.5px;
    }

    .radar-toggle-btn {
        padding: 3px 2px;
        font-size: 0.60rem;
        min-height: 23px;
        gap: 2px;
        border-radius: 5px;
        background: rgba(10, 16, 30, 0.85);
        backdrop-filter: blur(12px);
    }

    .radar-toggle-btn i {
        font-size: 0.70rem;
    }

    .radar-toggle-btn span {
        font-size: 0.58rem;
        letter-spacing: -0.2px;
    }

    /* Hide bulky static altitude and aircraft type legend boxes on mobile to maximize map visibility */
    .map-floating-controls .altitude-legend-pill {
        display: none !important;
    }

    /* Full Height / Bottom Sheet Drawers on Mobile */
    .flight-inspector-drawer, .flight-list-drawer, .airport-board-drawer {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        z-index: 1200;
        border: none;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .flight-inspector-drawer.active, .flight-list-drawer.active {
        transform: translateY(0) translateX(0);
    }

    .close-drawer-btn {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .flight-items-container {
        padding: 6px;
        gap: 5px;
    }

    .flight-row-card {
        padding: 8px 10px;
        min-height: 48px;
    }

    .flight-row-callsign {
        font-size: 0.88rem;
    }

    /* Earthquake Ticker Pill Mobile: Ultra Compact Floating Capsule */
    .seismic-live-ticker {
        left: 6px;
        right: 6px;
        bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        max-width: none;
        padding: 5px 8px 5px 6px;
        gap: 6px;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.95);
    }

    .seismic-ticker-badge {
        padding: 4px 6px;
        border-radius: 8px;
        gap: 3px;
    }

    .seismic-radar-icon {
        font-size: 0.85rem;
    }

    .seismic-mag-tag {
        font-size: 0.78rem;
    }

    .seismic-ticker-top {
        gap: 4px;
        font-size: 0.62rem;
    }

    .seismic-ticker-title {
        font-size: 0.62rem;
    }

    .seismic-ticker-time {
        font-size: 0.62rem;
    }

    .seismic-ticker-loc {
        font-size: 0.72rem;
        line-height: 1.25;
        white-space: normal;
        word-break: break-word;
        max-width: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .seismic-focus-btn span,
    .seismic-detail-btn span {
        display: none;
    }

    .seismic-focus-btn,
    .seismic-detail-btn {
        padding: 5px 7px;
        font-size: 0.72rem;
        border-radius: 6px;
    }

    /* Hide Leaflet Attribution Overlap on Mobile */
    .leaflet-control-attribution {
        display: none !important;
    }

    /* Mobile Footer */
    .app-footer {
        height: var(--footer-height);
        padding: 0 8px calc(env(safe-area-inset-bottom, 0px));
        font-size: 0.62rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        overflow: hidden;
    }

    .footer-left {
        display: flex;
        align-items: center;
        gap: 3px;
        font-size: 0.62rem;
    }

    .footer-left span strong {
        display: none;
    }

    .footer-center {
        display: flex;
        align-items: center;
        font-size: 0.62rem;
    }

    .footer-center .footer-wa-link {
        display: none;
    }

    .footer-meta-stats {
        font-size: 0.62rem;
        gap: 4px;
    }

    .footer-meta-stats #utc-clock {
        display: none;
    }

    .whatsapp-floating-btn {
        padding: 10px;
        bottom: calc(38px + env(safe-area-inset-bottom, 0px));
        right: 10px;
    }

    .whatsapp-floating-btn span {
        display: none;
    }

    /* Visitor Analytics Viewport Mobile */
    .visitor-container {
        padding: 12px 8px;
        gap: 12px;
    }

    .visitor-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .vm-val {
        font-size: 1.25rem;
    }

    .visitor-map-element {
        height: 320px;
    }

    .visitor-map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .vmh-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

/* 3. EXTRA SMALL SMARTPHONES (<= 480px) */
@media (max-width: 480px) {
    .brand-title {
        font-size: 0.85rem;
    }

    .nav-tab-btn {
        padding: 3px 6px;
        font-size: 0.65rem;
    }

    .hud-card {
        min-width: 74px;
        padding: 4px 6px;
    }

    .hud-value {
        font-size: 0.85rem;
    }

    .seismic-ticker-badge {
        min-width: 42px;
        padding: 4px 6px;
    }

    .seismic-mag-tag {
        font-size: 0.75rem;
    }

    .seismic-ticker-loc {
        font-size: 0.74rem;
    }

    .seismic-meta-pill {
        font-size: 0.62rem;
        padding: 1px 5px;
    }
}

/* ==========================================================================
   WHATSAPP CONTACT & SUPPORT BUTTONS
   ========================================================================== */
.whatsapp-header-btn {
    background: rgba(37, 211, 102, 0.12) !important;
    border-color: rgba(37, 211, 102, 0.4) !important;
    color: #25d366 !important;
    font-weight: 700;
    text-decoration: none;
}

.whatsapp-header-btn:hover {
    background: #25d366 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-floating-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border-radius: var(--radius-full);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 800;
    transition: var(--transition-smooth);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    animation: waPulse 2.5s infinite;
}

.whatsapp-floating-btn i {
    font-size: 1.25rem;
}

.whatsapp-floating-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 0 0 15px rgba(37, 211, 102, 0.8);
    color: #ffffff;
}

@keyframes waPulse {
    0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7), 0 0 12px rgba(37, 211, 102, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35); }
}

.footer-wa-link {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.footer-wa-link:hover {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   VIP ACCESS & UNLOCK MODAL
   ========================================================================== */
.region-lock-icon {
    font-size: 0.7rem;
    color: #f59e0b;
    margin-right: 2px;
}

.vip-status-btn {
    border-color: rgba(245, 158, 11, 0.4) !important;
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
    font-weight: 700;
}

.vip-status-btn.unlocked {
    border-color: rgba(16, 185, 129, 0.4) !important;
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.vip-unlock-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 8, 18, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.vip-unlock-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.vip-unlock-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-glow);
    border-radius: var(--radius-lg);
    width: 480px;
    max-width: 100%;
    padding: 32px 28px;
    position: relative;
    box-shadow: var(--shadow-soft), 0 0 40px rgba(0, 242, 254, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: vipCardPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes vipCardPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.vip-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
}

.vip-modal-icon-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(13, 21, 39, 0.8) 70%);
    border: 2px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

.vip-shield-icon {
    font-size: 2rem;
    color: #f59e0b;
}

.vip-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.vip-modal-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.vip-modal-desc strong {
    color: var(--accent-cyan);
}

.vip-wa-cta-btn {
    width: 100%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    transition: var(--transition-fast);
}

.vip-wa-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
    color: #ffffff;
}

.vip-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 18px 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vip-divider::before, .vip-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.vip-divider span {
    padding: 0 10px;
}

.vip-unlock-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vip-input-wrap {
    position: relative;
    width: 100%;
}

.vip-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.vip-password-input {
    width: 100%;
    background: rgba(7, 11, 20, 0.8);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 42px 12px 42px;
    font-size: 0.92rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.vip-password-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.3);
}

.pwd-vis-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.05rem;
    cursor: pointer;
    padding: 4px;
}

.pwd-vis-btn:hover {
    color: var(--text-primary);
}

.vip-captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.vip-captcha-box {
    display: flex;
    align-items: center;
    background: rgba(10, 16, 30, 0.95);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3px 6px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
}

.vip-captcha-box:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.vip-captcha-canvas {
    display: block;
    border-radius: 4px;
}

.captcha-refresh-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 4px;
    margin-left: 2px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh-btn:hover {
    color: var(--accent-cyan);
    transform: rotate(45deg);
}

.captcha-input-wrap {
    flex: 1;
}

.vip-captcha-input {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.vip-submit-btn {
    width: 100%;
    background: var(--accent-cyan);
    color: #070b14;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.vip-submit-btn:hover {
    background: #38bdf8;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.45);
    transform: translateY(-1px);
}

.vip-error-msg {
    font-size: 0.78rem;
    min-height: 18px;
    text-align: center;
    font-weight: 600;
}

.vip-error-msg.error {
    color: var(--accent-rose);
}

.vip-error-msg.success {
    color: var(--accent-emerald);
}

.input-shake {
    animation: shakeAnim 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeAnim {
    10%, 90% { transform: translate3d(-2px, 0, 0); border-color: var(--accent-rose); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* ==========================================================================
   BMKG EARTHQUAKE / SEISMIC RADAR STYLES
   ========================================================================== */
.custom-seismic-div-icon {
    background: transparent !important;
    border: none !important;
}

.seismic-marker-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.seismic-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid #f59e0b;
    pointer-events: none;
    animation: seismicWave 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.seismic-ring.ring-1 {
    animation-delay: 0s;
}

.seismic-ring.ring-2 {
    animation-delay: 1.2s;
}

@keyframes seismicWave {
    0% {
        width: 10px;
        height: 10px;
        opacity: 0.9;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

.seismic-center-dot {
    position: relative;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f59e0b;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease;
}

.seismic-marker-container:hover .seismic-center-dot {
    transform: scale(1.25);
}

.seismic-mag-label {
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    font-family: var(--font-mono);
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    line-height: 1;
}

.latest-seismic-glow .seismic-center-dot {
    box-shadow: 0 0 16px #ef4444, 0 0 4px #ffffff;
    width: 28px;
    height: 28px;
}

/* Seismic Live Ticker Banner (Sleek, Compact Cyber-Aviation Glassmorphism) */
.seismic-live-ticker {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 850;
    background: rgba(11, 19, 38, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 10px;
    padding: 6px 12px 6px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(239, 68, 68, 0.2);
    max-width: min(640px, calc(100vw - 32px));
    width: auto;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease, opacity 0.25s ease, border-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Slide ticker away when Left Drawers (Flight List / Airport Board) are active */
.flight-list-drawer.active ~ #seismic-live-ticker,
.airport-board-drawer.active ~ #seismic-live-ticker,
body.drawer-left-open #seismic-live-ticker {
    left: 412px;
}

@media (max-width: 1024px) {
    .flight-list-drawer.active ~ #seismic-live-ticker,
    .airport-board-drawer.active ~ #seismic-live-ticker,
    body.drawer-left-open #seismic-live-ticker {
        left: 412px;
        max-width: calc(100vw - 435px);
    }
}

@media (max-width: 768px) {
    .flight-list-drawer.active ~ #seismic-live-ticker,
    .airport-board-drawer.active ~ #seismic-live-ticker,
    body.drawer-left-open #seismic-live-ticker {
        opacity: 0;
        pointer-events: none;
        transform: translateY(30px);
    }
}

.seismic-live-ticker.hidden {
    display: none !important;
}

.seismic-live-ticker:hover {
    border-color: #ef4444;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

.seismic-ticker-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(220, 38, 38, 0.45));
    border: 1px solid rgba(239, 68, 68, 0.65);
    border-radius: 7px;
    padding: 4px 8px;
    min-width: unset;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
    flex-shrink: 0;
}

.seismic-radar-icon {
    font-size: 0.95rem;
    line-height: 1;
    margin-bottom: 0;
}

.seismic-mag-tag {
    font-size: 0.82rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ff4d4d;
    letter-spacing: -0.02em;
}

.seismic-ticker-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.seismic-ticker-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: #94a3b8;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.seismic-ticker-title {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f87171;
    display: flex;
    align-items: center;
    gap: 3px;
}

.seismic-ticker-time {
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: #cbd5e1;
}

.seismic-ticker-loc {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.seismic-ticker-meta {
    display: none;
}

.seismic-meta-pill {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.seismic-meta-pill.pill-safe {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.seismic-meta-pill.pill-alert {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.45);
    color: #f87171;
}

.seismic-ticker-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.seismic-focus-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 3px 8px;
    font-size: 0.67rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: var(--transition-fast);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.seismic-focus-btn:hover {
    background: #dc2626;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
    transform: scale(1.03);
}

.seismic-detail-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 3px 8px;
    font-size: 0.67rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.seismic-detail-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.seismic-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.seismic-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

/* Light Theme Styling for Seismic Live Ticker & Modal */
[data-theme="light"] .seismic-live-ticker {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 12px rgba(239, 68, 68, 0.15);
}

[data-theme="light"] .seismic-live-ticker:hover {
    border-color: #dc2626;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14), 0 0 16px rgba(239, 68, 68, 0.25);
}

[data-theme="light"] .seismic-ticker-loc {
    color: #0f172a;
}

[data-theme="light"] .seismic-detail-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #334155;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .seismic-detail-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

[data-theme="light"] .seismic-ticker-badge {
    background: #fef2f2;
    border-color: #ef4444;
    box-shadow: inset 0 0 6px rgba(239, 68, 68, 0.15);
}

[data-theme="light"] .seismic-ticker-title {
    color: #dc2626;
}

[data-theme="light"] .seismic-ticker-time {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

[data-theme="light"] .seismic-ticker-loc {
    color: #0f172a;
}

[data-theme="light"] .seismic-meta-pill {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

[data-theme="light"] .seismic-meta-pill.pill-safe {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

[data-theme="light"] .seismic-meta-pill.pill-alert {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

[data-theme="light"] .seismic-detail-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

[data-theme="light"] .seismic-detail-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .earthquake-modal-card {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

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

[data-theme="light"] .eq-stat-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .eq-stat-label {
    color: #64748b;
}

[data-theme="light"] .eq-stat-val {
    color: #0f172a;
}

[data-theme="light"] .eq-shakemap-wrap {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .eq-shakemap-title {
    color: #334155;
}

.earthquake-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    text-align: left;
}

.earthquake-mag-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    font-family: var(--font-mono);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.5);
}

.earthquake-header-meta {
    flex: 1;
}

.eq-sub-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fca5a5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.eq-main-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
    line-height: 1.3;
}

.earthquake-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.eq-stat-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
}

.eq-stat-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.eq-stat-val {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.eq-stat-val.highlight {
    color: #38bdf8;
}

.eq-shakemap-wrap {
    background: rgba(10, 16, 30, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 16px;
}

.eq-shakemap-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-align: left;
}

.eq-shakemap-img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 6px;
    background: #000;
}

/* Real-Time Weather Detail Modal */
.weather-modal-card {
    max-width: 540px;
    width: 92vw;
    background: rgba(10, 15, 29, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.2);
    padding: 22px;
    color: #f8fafc;
    text-align: left;
}

.weather-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-modal-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.weather-modal-meta {
    flex: 1;
    min-width: 0;
}

.wm-sub-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.wm-main-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 2px 0 4px;
    color: #ffffff;
}

.wm-condition-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Today & Tomorrow Side-by-Side Cards */
.weather-forecast-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.weather-day-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.weather-day-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.wdc-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #facc15;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wdc-badge.cyan {
    color: var(--accent-cyan);
}

.wdc-temp-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.wdc-temp-big {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #facc15;
}

.wdc-temp-big.cyan {
    color: #38bdf8;
}

.wdc-range {
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-mono);
    line-height: 1.2;
}

.wdc-high { color: #f87171; }
.wdc-low { color: #38bdf8; }

.wdc-desc {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
}

.wdc-mini-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-secondary);
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Atmosphere Telemetry Matrix */
.weather-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.wt-stat-box {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wt-stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wt-stat-val {
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #ffffff;
}

/* Weather Geolocation Actions */
.weather-modal-actions {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.weather-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    outline: none;
}

.weather-action-btn.primary {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.weather-action-btn.primary:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-1px);
}

.weather-action-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.weather-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.4);
}

.spin {
    animation: rotateSpin 1s linear infinite;
}

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

.weather-source-badge {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .hud-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(203, 213, 225, 0.85);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .layer-select-dropdown {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .radar-toggle-btn {
    background: rgba(255, 255, 255, 0.95);
    border-color: #cbd5e1;
    color: #334155;
}

[data-theme="light"] .radar-toggle-btn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border-color: #0284c7;
}

[data-theme="light"] .hud-weather-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.85);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hud-weather-card:hover {
    border-color: #0284c7;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .hud-weather-loc {
    color: #0369a1;
    background: #e0f2fe;
    border-color: #bae6fd;
}

[data-theme="light"] .hud-weather-pill-tag {
    color: #64748b;
}

[data-theme="light"] .hws-head {
    color: #475569;
}

[data-theme="light"] .hws-temp.today {
    color: #d97706;
}

[data-theme="light"] .hws-temp-range {
    color: #0284c7;
}

[data-theme="light"] .hws-desc {
    color: #475569;
}

[data-theme="light"] .hud-weather-divider {
    background: #e2e8f0;
}

[data-theme="light"] .hws-rain-badge {
    color: #0369a1;
    background: #e0f2fe;
}

[data-theme="light"] .weather-modal-card {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

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

[data-theme="light"] .wm-condition-tag {
    color: #475569;
}

[data-theme="light"] .weather-day-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .wdc-desc {
    color: #334155;
}

[data-theme="light"] .wt-stat-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .wt-stat-label {
    color: #64748b;
}

[data-theme="light"] .wt-stat-val {
    color: #0f172a;
}

[data-theme="light"] .weather-action-btn.secondary {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

[data-theme="light"] .weather-action-btn.secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

@media (max-width: 768px) {
    .seismic-live-ticker {
        left: 10px;
        right: 10px;
        bottom: 12px;
        max-width: none;
        padding: 8px 10px;
        gap: 8px;
    }
    .seismic-ticker-actions {
        flex-direction: row;
    }
    .seismic-ticker-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* ==========================================================================
   HEADER NAVIGATION TABS (AERO RADAR VS MAP VISITOR)
   ========================================================================== */
.header-nav-tabs {
    display: flex;
    align-items: center;
    background: rgba(10, 16, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 4px;
    margin: 0 10px;
}

[data-theme="light"] .header-nav-tabs {
    background: rgba(241, 245, 249, 0.9);
    border-color: #cbd5e1;
}

.nav-tab-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.nav-tab-btn i {
    font-size: 0.95rem;
}

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

.nav-tab-btn.active {
    background: var(--accent-cyan);
    color: #070b14;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

[data-theme="light"] .nav-tab-btn.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   MAP VISITOR & WEBSITE ANALYTICS VIEWPORT
   ========================================================================== */
.visitor-analytics-viewport {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-primary);
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.visitor-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 1. Top Summary Metric Cards Bar (Matches Reference Layout) */
.visitor-metrics-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

[data-theme="light"] .visitor-metrics-bar {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.visitor-metric-card {
    padding: 18px 14px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background var(--transition-fast);
}

[data-theme="light"] .visitor-metric-card {
    border-right-color: #f1f5f9;
}

.visitor-metric-card:last-child {
    border-right: none;
}

.visitor-metric-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.vm-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

[data-theme="light"] .vm-label {
    color: #64748b;
}

.vm-val {
    font-size: 1.85rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

[data-theme="light"] .vm-val {
    color: #0f172a;
}

.vm-val.highlight {
    color: var(--accent-cyan);
}

[data-theme="light"] .vm-val.highlight {
    color: #0284c7;
}

.vm-sub {
    font-size: 0.7rem;
    margin-top: 4px;
    font-family: var(--font-sans);
}

.delta-tag {
    font-weight: 700;
    font-family: var(--font-mono);
}

.delta-tag.negative {
    color: #ef4444;
}

.delta-tag.positive {
    color: #10b981;
}

/* 2. Main Visitor Map Card (Reference Matching) */
.visitor-map-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

[data-theme="light"] .visitor-map-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.visitor-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(10, 16, 30, 0.4);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

[data-theme="light"] .visitor-map-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

.vmh-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.vmh-title a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
}

[data-theme="light"] .vmh-title a {
    color: #0284c7;
}

.vmh-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-pill {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.total-visits-pill {
    font-size: 0.85rem;
    color: var(--text-primary);
}

[data-theme="light"] .total-visits-pill {
    color: #1e293b;
}

.total-visits-pill strong {
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.vm-date-filter-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: default;
}

[data-theme="light"] .vm-date-filter-pill {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}

.visitor-map-element {
    width: 100%;
    height: 520px;
    background: #0d1322;
}

[data-theme="light"] .visitor-map-element {
    background: #e2e8f0;
}

/* 3. Red Dot Visitor Map Markers (MapMyVisitors Style) */
.visitor-dot-marker {
    background: transparent !important;
    border: none !important;
}

.visitor-dot-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visitor-dot-center {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981, 0 0 2px #fff;
    transition: transform 0.2s ease;
}

.visitor-dot-wrap.high-density .visitor-dot-center {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 10px currentColor, 0 0 3px #fff;
}

.visitor-dot-halo {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.35);
    pointer-events: none;
    animation: visitorPulse 2s infinite ease-out;
}

/* Category Specific Node Styling */
/* 1. Direct IP (Emerald Green) */
.visitor-dot-wrap.cat-direct .visitor-dot-center {
    background: #10b981;
    box-shadow: 0 0 8px #10b981, 0 0 2px #fff;
}
.visitor-dot-wrap.cat-direct .visitor-dot-halo {
    background: rgba(16, 185, 129, 0.4);
}

/* 2. VPN / Proxy (Purple / Violet) */
.visitor-dot-wrap.cat-vpn .visitor-dot-center {
    background: #a855f7;
    box-shadow: 0 0 8px #a855f7, 0 0 2px #fff;
}
.visitor-dot-wrap.cat-vpn .visitor-dot-halo {
    background: rgba(168, 85, 247, 0.4);
}

/* 3. AI Agent / LLM Bot (Magenta / Pink) */
.visitor-dot-wrap.cat-ai .visitor-dot-center {
    background: #ec4899;
    box-shadow: 0 0 8px #ec4899, 0 0 2px #fff;
}
.visitor-dot-wrap.cat-ai .visitor-dot-halo {
    background: rgba(236, 72, 153, 0.4);
}

/* 4. Search Bot / Web Crawler (Amber / Gold) */
.visitor-dot-wrap.cat-bot .visitor-dot-center {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b, 0 0 2px #fff;
}
.visitor-dot-wrap.cat-bot .visitor-dot-halo {
    background: rgba(245, 158, 11, 0.4);
}

/* 5. Data Center / Cloud Hosting (Cobalt Blue) */
.visitor-dot-wrap.cat-datacenter .visitor-dot-center {
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6, 0 0 2px #fff;
}
.visitor-dot-wrap.cat-datacenter .visitor-dot-halo {
    background: rgba(59, 130, 246, 0.4);
}

@keyframes visitorPulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

.visitor-dot-wrap:hover .visitor-dot-center {
    transform: scale(1.6);
}

/* Category Legend Bar */
.vm-category-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(13, 21, 39, 0.7);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

[data-theme="light"] .vm-category-legend {
    background: #ffffff;
    border-color: #e2e8f0;
}

.vm-leg-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
}

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

.vm-leg-dot.direct { background: #10b981; box-shadow: 0 0 4px #10b981; }
.vm-leg-dot.vpn { background: #a855f7; box-shadow: 0 0 4px #a855f7; }
.vm-leg-dot.ai { background: #ec4899; box-shadow: 0 0 4px #ec4899; }
.vm-leg-dot.bot { background: #f59e0b; box-shadow: 0 0 4px #f59e0b; }
.vm-leg-dot.datacenter { background: #3b82f6; box-shadow: 0 0 4px #3b82f6; }

/* Category Badges in Table */
.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cat-badge.direct { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.cat-badge.vpn { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.cat-badge.ai { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.cat-badge.bot { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.cat-badge.datacenter { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

/* 4. Bottom Detailed Breakdown Grid */
.visitor-grid-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 20px;
}

.visitor-sub-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

[data-theme="light"] .visitor-sub-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

.sub-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 16, 30, 0.3);
}

[data-theme="light"] .sub-card-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

.sub-card-header h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="light"] .sub-card-header h4 {
    color: #0f172a;
}

.sub-card-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.sub-card-badge.live-pulse {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Top Countries Progress Bars */
.top-countries-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.country-stat-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.country-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
}

.country-name-flag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-flag-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.country-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

[data-theme="light"] .country-bar-bg {
    background: #e2e8f0;
}

.country-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f97316);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Recent Visitors Table */
.recent-visitors-table-wrap {
    padding: 0;
    overflow-x: auto;
}

.recent-visitors-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    text-align: left;
}

.recent-visitors-table th {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
}

[data-theme="light"] .recent-visitors-table th {
    background: #f1f5f9;
    color: #64748b;
}

.recent-visitors-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .recent-visitors-table td {
    border-bottom-color: #f1f5f9;
    color: #1e293b;
}

.recent-visitors-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .recent-visitors-table tr:hover {
    background: #f8fafc;
}

.ip-tag {
    font-family: var(--font-mono);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
}

[data-theme="light"] .ip-tag {
    color: #0284c7;
    background: #e0f2fe;
}

/* Visitor Activity Log Pagination Bar */
.visitor-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
    font-size: 0.75rem;
    color: var(--text-secondary);
    gap: 12px;
    flex-wrap: wrap;
}

[data-theme="light"] .visitor-pagination-bar {
    background: #f8fafc;
    border-top-color: #e2e8f0;
    color: #64748b;
}

.pagination-info {
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-info strong {
    color: var(--text-primary);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-nav-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.page-nav-btn:hover:not(:disabled) {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.08);
}

.page-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: var(--border-color);
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-num-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono);
    transition: var(--transition-fast);
}

.page-num-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.08);
}

.page-num-btn.active {
    background: var(--accent-cyan);
    color: #070b14;
    border-color: var(--accent-cyan);
    font-weight: 800;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.35);
}

[data-theme="light"] .page-num-btn.active {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
    font-size: 0.75rem;
}

.page-size-select {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 0.7rem;
    cursor: pointer;
    outline: none;
    margin-left: 6px;
    transition: var(--transition-fast);
}

.page-size-select:focus,
.page-size-select:hover {
    border-color: var(--accent-cyan);
}

/* Responsive */
@media (max-width: 1024px) {
    .visitor-metrics-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    .visitor-grid-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .visitor-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .visitor-map-element {
        height: 380px;
    }
}

/* Accessibility & SEO Crawler Utility */
.seo-crawler-info,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   LIVE VISITOR REAL-TIME TOAST NOTIFICATIONS
   ========================================================================== */
.visitor-toast-container {
    position: fixed;
    bottom: 42px;
    left: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 320px;
}

@media (max-width: 640px) {
    .visitor-toast-container {
        bottom: 36px;
        left: 8px;
        right: 8px;
        max-width: calc(100vw - 16px);
    }
}

.visitor-toast {
    position: relative;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 9px 12px 11px;
    color: #f8fafc;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.7), 0 0 16px rgba(56, 189, 248, 0.2);
    pointer-events: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: visitorToastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.visitor-toast.hiding {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    pointer-events: none;
}

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

.visitor-toast-icon-wrap {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.visitor-toast-pulse {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulseDot 1.5s infinite;
}

.visitor-toast-content {
    flex: 1;
    min-width: 0;
}

.visitor-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    gap: 6px;
}

.visitor-toast-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-cyan, #38bdf8);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.visitor-toast-time {
    font-size: 0.65rem;
    color: var(--text-muted, #64748b);
}

.visitor-toast-desc {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visitor-toast-meta {
    font-size: 0.68rem;
    color: var(--text-secondary, #94a3b8);
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.visitor-toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted, #64748b);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.visitor-toast-close:hover {
    color: #ffffff;
}

.visitor-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--accent-cyan, #38bdf8), var(--accent-emerald, #10b981));
    width: 100%;
    animation: toastProgressBar 5s linear forwards;
}

@keyframes toastProgressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* ==========================================================================
   FLIGHT LIVE ETA & PROGRESS CARD (INSPECTOR DRAWER)
   ========================================================================== */
.flight-eta-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

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

.fec-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fec-stat.right {
    text-align: right;
    align-items: flex-end;
}

.fec-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fec-val {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1.2;
}

.fec-val.highlight {
    color: var(--accent-emerald, #10b981);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.fec-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fec-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.fec-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan, #38bdf8), var(--accent-emerald, #10b981));
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.fec-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
}

.fec-phase-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan, #38bdf8);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

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

.fec-phase-pill.cruise {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

.fec-phase-pill.descent {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.fec-phase-pill.ground {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.3);
}

.fec-pct-text {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-secondary);
}

/* ==========================================================================
   AIRPORT WEATHER & AQI BAR (AIRPORT BOARD DRAWER)
   ========================================================================== */
.airport-weather-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.ap-weather-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-weight: 600;
}

.ap-weather-info i {
    color: #fbbf24;
    font-size: 0.95rem;
}

.ap-aqi-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ap-aqi-pill.moderate {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.ap-aqi-pill.unhealthy {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   WATCHLIST SYSTEM & PULSE RING
   ========================================================================== */
.inspector-btn.watchlist-btn.active {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.watchlist-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
    pointer-events: none;
    animation: watchlistPulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    z-index: 10;
}

@keyframes watchlistPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    70% {
        transform: scale(1.4);
        opacity: 0.4;
        box-shadow: 0 0 16px 4px rgba(251, 191, 36, 0);
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ==========================================================================
   LIGHT THEME OVERRIDES FOR NEW ENHANCEMENTS
   ========================================================================== */
[data-theme="light"] .flight-eta-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .fec-progress-bar {
    background: #e2e8f0;
}

[data-theme="light"] .fec-val {
    color: #0f172a;
}

[data-theme="light"] .fec-label {
    color: #64748b;
}

[data-theme="light"] .fec-val.highlight {
    color: #059669;
}

[data-theme="light"] .airport-weather-bar {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

[data-theme="light"] .ap-weather-info {
    color: #0f172a;
}

[data-theme="light"] .radar-toggle-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #475569;
}

[data-theme="light"] .radar-toggle-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="light"] #toggle-rain-radar-btn.active {
    background: rgba(14, 165, 233, 0.15);
    border-color: #0284c7;
    color: #0284c7;
}

[data-theme="light"] #toggle-heatmap-btn.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: #d97706;
    color: #b45309;
}

[data-theme="light"] #toggle-volcanoes-btn.active {
    background: rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
    color: #dc2626;
}

[data-theme="light"] .inspector-btn.watchlist-btn.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: #d97706;
    color: #b45309;
}

/* ==========================================================================
   LIVE ATC RADIO SCANNER PLAYER WIDGET
   ========================================================================== */
.atc-radio-header-btn {
    position: relative;
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.35);
    color: var(--accent-cyan, #38bdf8);
}

.atc-radio-header-btn:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: var(--accent-cyan, #38bdf8);
}

.atc-radio-header-btn.playing {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
}

.atc-live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: atcDotPulse 1.4s ease-in-out infinite;
}

.atc-radio-header-btn.playing .atc-live-dot {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

@keyframes atcDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.atc-radio-widget {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: rgba(11, 19, 38, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 18px rgba(14, 165, 233, 0.14);
    z-index: 1010;
    overflow: hidden;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease, opacity 0.25s ease;
}

/* Stack cleanly above the BMKG Earthquake Ticker when ticker is active */
#seismic-live-ticker:not(.hidden) ~ #atc-radio-widget,
body:has(#seismic-live-ticker:not(.hidden)) #atc-radio-widget,
body.has-seismic-ticker #atc-radio-widget {
    bottom: 68px;
}

/* Slide cleanly when Left Drawers (Flight List / Airport Board) are active */
.flight-list-drawer.active ~ #atc-radio-widget,
.airport-board-drawer.active ~ #atc-radio-widget,
body.drawer-left-open #atc-radio-widget {
    left: 412px;
}

@media (max-width: 1024px) {
    .flight-list-drawer.active ~ #atc-radio-widget,
    .airport-board-drawer.active ~ #atc-radio-widget,
    body.drawer-left-open #atc-radio-widget {
        left: 412px;
        max-width: calc(100vw - 435px);
    }
}

.atc-radio-widget.hidden {
    display: none;
}

.atc-radio-widget.minimized .atc-radio-body {
    display: none;
}

.atc-radio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.atc-radio-title-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.atc-radio-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.67rem;
    font-weight: 800;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.atc-radio-freq-display {
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-cyan, #38bdf8);
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 2px 7px;
    border-radius: 4px;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

.atc-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.atc-icon-btn:hover {
    color: var(--text-primary, #ffffff);
    background: rgba(255, 255, 255, 0.08);
}

.atc-icon-btn.close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.atc-radio-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.atc-channel-dropdown {
    width: 100%;
    padding: 6px 8px;
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    border-radius: 6px;
    color: var(--text-primary, #ffffff);
    font-size: 0.76rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.atc-channel-dropdown option, .atc-channel-dropdown optgroup {
    background: #0f172a;
    color: #f8fafc;
}

.atc-player-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atc-play-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan, #38bdf8), #0284c7);
    border: none;
    color: #070b14;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.atc-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.atc-play-btn.playing {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    color: #ffffff;
}

.atc-eq-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    flex: 1;
}

.atc-eq-bar {
    width: 3.5px;
    height: 4px;
    background: var(--accent-cyan, #38bdf8);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.atc-play-btn.playing ~ .atc-eq-visualizer .atc-eq-bar.bar1 { animation: eqBounce1 0.4s ease-in-out infinite alternate; }
.atc-play-btn.playing ~ .atc-eq-visualizer .atc-eq-bar.bar2 { animation: eqBounce2 0.5s ease-in-out infinite alternate; }
.atc-play-btn.playing ~ .atc-eq-visualizer .atc-eq-bar.bar3 { animation: eqBounce3 0.35s ease-in-out infinite alternate; }
.atc-play-btn.playing ~ .atc-eq-visualizer .atc-eq-bar.bar4 { animation: eqBounce4 0.45s ease-in-out infinite alternate; }
.atc-play-btn.playing ~ .atc-eq-visualizer .atc-eq-bar.bar5 { animation: eqBounce5 0.38s ease-in-out infinite alternate; }

@keyframes eqBounce1 { from { height: 4px; } to { height: 16px; } }
@keyframes eqBounce2 { from { height: 5px; } to { height: 20px; } }
@keyframes eqBounce3 { from { height: 3px; } to { height: 13px; } }
@keyframes eqBounce4 { from { height: 6px; } to { height: 18px; } }
@keyframes eqBounce5 { from { height: 4px; } to { height: 14px; } }

.atc-volume-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 85px;
}

.atc-vol-icon {
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
}

.atc-volume-slider {
    width: 100%;
    accent-color: var(--accent-cyan, #38bdf8);
    cursor: pointer;
    height: 3px;
}

.atc-status-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.67rem;
    color: var(--text-secondary, #94a3b8);
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding-top: 6px;
}

.atc-status-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.atc-bitrate-tag {
    font-family: var(--font-mono, monospace);
    font-size: 0.6rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 1px 5px;
    border-radius: 3px;
}

/* Inspector Actions Grid (Multi-Button Layout) */
.inspector-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.inspector-btn.cockpit-btn {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.inspector-btn.cockpit-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
}

.inspector-btn.voice-btn {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.inspector-btn.voice-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: #a855f7;
}

/* ==========================================================================
   3D COCKPIT HUD ARTIFICIAL HORIZON SIMULATOR MODAL
   ========================================================================== */
.cockpit-hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: hudFadeIn 0.25s ease forwards;
}

.cockpit-hud-overlay.hidden {
    display: none;
}

@keyframes hudFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.cockpit-hud-container {
    width: 820px;
    max-width: 100%;
    height: 540px;
    max-height: 90vh;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.95), #050b14);
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: var(--radius-lg, 14px);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.25), inset 0 0 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.cockpit-hud-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: rgba(16, 185, 129, 0.08);
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
}

.ch-top-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ch-callsign {
    font-family: var(--font-mono, monospace);
    font-size: 1.2rem;
    font-weight: 800;
    color: #34d399;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.ch-type {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan, #38bdf8);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

.ch-route {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f8fafc;
}

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

.ch-hud-btn.warn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #f87171;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ch-hud-btn.warn:hover {
    background: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.ch-hud-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #94a3b8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.ch-hud-close-btn:hover {
    color: #ffffff;
}

/* HUD Viewport */
.cockpit-hud-viewport {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}

/* Heading Tape (Top) */
.hud-heading-tape-wrap {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 10;
}

.hud-heading-indicator {
    font-family: var(--font-mono, monospace);
    font-size: 1.1rem;
    font-weight: 800;
    color: #34d399;
    background: rgba(6, 78, 59, 0.8);
    border: 1px solid #10b981;
    padding: 1px 8px;
    border-radius: 4px;
    text-shadow: 0 0 6px #10b981;
}

.hud-heading-tape-scale {
    display: flex;
    gap: 16px;
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    color: rgba(52, 211, 153, 0.7);
}

.hud-heading-tape-scale span.active {
    color: #34d399;
    font-weight: 800;
}

.hud-heading-pointer {
    color: #34d399;
    font-size: 0.7rem;
    line-height: 1;
}

/* Speed Tape (Left) */
.hud-speed-tape-wrap {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.hud-tape-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(52, 211, 153, 0.8);
    letter-spacing: 0.05em;
}

.hud-speed-window {
    font-family: var(--font-mono, monospace);
    font-size: 1.3rem;
    font-weight: 800;
    color: #34d399;
    background: rgba(6, 78, 59, 0.85);
    border: 1.5px solid #10b981;
    padding: 2px 10px;
    border-radius: 4px;
    text-shadow: 0 0 8px #10b981;
}

.hud-speed-ladder {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: rgba(52, 211, 153, 0.6);
    text-align: right;
}

.hud-speed-ladder span.active {
    color: #34d399;
    font-weight: 800;
}

.hud-speed-pointer {
    color: #34d399;
    font-size: 0.8rem;
}

/* Altitude Tape (Right) */
.hud-altitude-tape-wrap {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.hud-alt-window {
    font-family: var(--font-mono, monospace);
    font-size: 1.3rem;
    font-weight: 800;
    color: #34d399;
    background: rgba(6, 78, 59, 0.85);
    border: 1.5px solid #10b981;
    padding: 2px 10px;
    border-radius: 4px;
    text-shadow: 0 0 8px #10b981;
}

.hud-alt-ladder {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: rgba(52, 211, 153, 0.6);
}

.hud-alt-ladder span.active {
    color: #34d399;
    font-weight: 800;
}

.hud-alt-pointer {
    color: #34d399;
    font-size: 0.8rem;
}

.hud-vsi-indicator {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    color: var(--accent-cyan, #38bdf8);
    font-weight: 700;
    margin-top: 4px;
}

/* Pitch & Roll Gyro */
.hud-pitch-roll-gyro {
    width: 320px;
    height: 320px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-horizon-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #34d399;
    box-shadow: 0 0 8px #10b981;
}

.hud-pitch-ladder {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    color: rgba(52, 211, 153, 0.85);
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.hud-roll-arc {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1.5px dashed rgba(52, 211, 153, 0.35);
    border-radius: 50%;
    pointer-events: none;
}

/* Boresight Symbol */
.hud-boresight-symbol {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 15;
    pointer-events: none;
}

.hud-boresight-left, .hud-boresight-right {
    width: 24px;
    height: 3px;
    background: #fbbf24;
    border-radius: 2px;
    box-shadow: 0 0 8px #fbbf24;
}

.hud-boresight-dot {
    width: 7px;
    height: 7px;
    border: 2px solid #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 8px #fbbf24;
}

/* Bottom Telemetry */
.hud-bottom-telemetry {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    color: rgba(52, 211, 153, 0.9);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    padding-top: 8px;
    background: rgba(5, 11, 20, 0.6);
}

.hud-bottom-telemetry strong {
    color: #f8fafc;
}

/* Light Theme Overrides for ATC Radio & Cockpit HUD */
[data-theme="light"] .atc-radio-widget {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 0 15px rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .atc-channel-dropdown {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

[data-theme="light"] .atc-channel-dropdown option, [data-theme="light"] .atc-channel-dropdown optgroup {
    background: #ffffff;
    color: #0f172a;
}

[data-theme="light"] .atc-status-footer {
    border-color: #e2e8f0;
    color: #64748b;
}

/* Mobile Responsiveness for ATC Radio & Cockpit HUD */
@media (max-width: 768px) {
    .atc-radio-widget {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
    }

    #seismic-live-ticker:not(.hidden) ~ #atc-radio-widget,
    body:has(#seismic-live-ticker:not(.hidden)) #atc-radio-widget,
    body.has-seismic-ticker #atc-radio-widget {
        bottom: 56px;
    }

    .cockpit-hud-container {
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }

    .hud-speed-tape-wrap {
        left: 10px;
    }

    .hud-altitude-tape-wrap {
        right: 10px;
    }

    .hud-pitch-roll-gyro {
        width: 240px;
        height: 240px;
    }

    .inspector-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   BILINGUAL LANGUAGE SWITCHER (ID 🇮🇩 / EN 🇬🇧)
   ========================================================================== */
.lang-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 11px;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lang-toggle-btn:hover {
    background: var(--bg-glass-card);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.35);
    transform: translateY(-1px);
}

.lang-toggle-btn .lang-flag {
    font-size: 0.95rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-toggle-btn:hover .lang-flag {
    transform: scale(1.15) rotate(5deg);
}

.lang-toggle-btn .lang-code {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
    font-weight: 800;
    font-size: 0.75rem;
}

[data-theme="light"] .lang-toggle-btn {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .lang-toggle-btn:hover {
    background: #e2e8f0;
    border-color: #0284c7;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .lang-toggle-btn .lang-code {
    color: #0284c7;
}

@media (max-width: 768px) {
    .lang-toggle-btn {
        padding: 5px 8px;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   CROSS-PLATFORM COUNTRY FLAG STYLING (WINDOWS, MAC, LINUX, MOBILE)
   ========================================================================== */
.country-flag-img {
    display: inline-block;
    vertical-align: -0.15em;
    width: 1.25em;
    height: 0.94em;
    object-fit: cover;
    border-radius: 2.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

[data-theme="light"] .country-flag-img {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.country-flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.country-flag-icon .country-flag-img {
    width: 22px;
    height: 16.5px;
}

.table-flag-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    vertical-align: middle;
}

.table-flag-icon .country-flag-img {
    width: 20px;
    height: 15px;
}

.compact-tt-flag {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.compact-tt-flag .country-flag-img {
    width: 18px;
    height: 13.5px;
}

.lang-toggle-btn .lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lang-toggle-btn .lang-flag .country-flag-img {
    width: 20px;
    height: 15px;
}

.route-city-name .country-flag-img {
    width: 18px;
    height: 13.5px;
    margin-right: 5px;
    vertical-align: -2px;
}

#route-country-flag {
    display: inline-flex;
    align-items: center;
}

#route-country-flag .country-flag-img {
    width: 20px;
    height: 15px;
    margin-left: 6px;
}

#airport-board-flag {
    display: inline-flex;
    align-items: center;
}

#airport-board-flag .country-flag-img {
    width: 26px;
    height: 19.5px;
}

.visitor-toast-icon-wrap .country-flag-img {
    width: 24px;
    height: 18px;
}

.flag-symbol {
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
}
