/* Standard Font Stack with System Fallbacks */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

: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;
}

/* Base App Layout */
#app-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   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 20px;
    z-index: 1000;
    position: relative;
}

.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: wrap;
}

.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); }

/* ==========================================================================
   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);
}

/* 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: 600;
    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: 550;
    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;
}

.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: 700;
    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 Animations */
.plane-marker-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

@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);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .header-center-tools {
        display: none;
    }
    .hud-metrics-overlay {
        left: 10px;
        top: 10px;
        gap: 6px;
    }
    .hud-card {
        min-width: 90px;
        padding: 6px 10px;
    }
    .hud-value {
        font-size: 1rem;
    }
    .flight-inspector-drawer, .flight-list-drawer {
        width: calc(100vw - 20px);
        left: 10px;
        right: 10px;
        top: 10px;
        bottom: 10px;
    }
    .whatsapp-floating-btn span {
        display: none;
    }
    .whatsapp-floating-btn {
        padding: 12px;
        border-radius: 50%;
        bottom: 16px;
        right: 16px;
    }
}

/* ==========================================================================
   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 */
.seismic-live-ticker {
    position: absolute;
    bottom: 24px;
    left: 20px;
    z-index: 990;
    background: rgba(10, 16, 30, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-lg);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 12px rgba(239, 68, 68, 0.25);
    max-width: 480px;
    transition: all var(--transition-normal);
}

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

.seismic-live-ticker:hover {
    border-color: #ef4444;
    transform: translateY(-2px);
}

.seismic-ticker-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 4px 8px;
    min-width: 46px;
}

.seismic-radar-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.seismic-mag-tag {
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ef4444;
}

.seismic-ticker-info {
    flex: 1;
    min-width: 0;
}

.seismic-ticker-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fca5a5;
    margin-bottom: 2px;
}

.seismic-ticker-loc {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seismic-focus-btn {
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
    white-space: nowrap;
}

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

/* Earthquake Detail Modal */
.earthquake-modal-card {
    max-width: 520px;
}

.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;
}

@media (max-width: 768px) {
    .seismic-live-ticker {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}

