:root {
    --bg-base: #080c14;
    --bg-surface: #0e1626;
    --bg-card: rgba(18, 27, 44, 0.75);
    --bg-card-hover: rgba(28, 41, 66, 0.9);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(56, 189, 248, 0.4);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --accent-eu: #38bdf8;       /* Cyan */
    --accent-asia: #fbbf24;     /* Amber */
    --accent-proxy: #34d399;    /* Emerald */
    --accent-danger: #f87171;   /* Coral Red */
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.4;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(52, 211, 153, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
}

.app-layout {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0.4rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow: hidden;
    box-sizing: border-box;
}

/* ==========================================================================
   1. TOP BAR
   ========================================================================== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0.35rem 0.85rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon-pulse {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(251, 191, 36, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.brand h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #f8fafc, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.topbar-clocks {
    display: flex;
    gap: 0.75rem;
    background: rgba(10, 15, 26, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
}

.clock-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.clock-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.clock-val {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-eu);
}

.topbar-privacy {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-proxy);
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
}

.topbar-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(14, 22, 38, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
}

.status-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-proxy);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-proxy);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ==========================================================================
   2. SYNOPTIC SUMMARY BAR
   ========================================================================== */
.synoptic-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.synoptic-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.synoptic-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.15);
}

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

.sc-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

.sc-badge.eu {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-eu);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.sc-badge.asia {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-asia);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.sc-badge.americas {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.sc-badge.world, .sc-badge.eurasia {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.sc-badge.proxy {
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent-proxy);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.sc-title {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.sc-body {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sc-temp {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-family: var(--font-mono);
    line-height: 1.1;
}

.sc-info {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    line-height: 1.15;
}

.sc-info .sub {
    font-size: 0.68rem;
    color: var(--text-dim);
}

/* ==========================================================================
   2b. MAIN FULL-SCREEN WORKSPACE (2/3 MAP + 1/3 CITY DETAIL)
   ========================================================================== */
.main-workspace {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    margin-bottom: 0;
    height: 100%;
}

/* ==========================================================================
   3. INTERACTIVE MAP SECTION (LEFT 2/3)
   ========================================================================== */
.map-section {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
}

.map-title-area h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.map-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.map-presets {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.preset-btn {
    background: rgba(14, 22, 38, 0.8);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    color: var(--text-main);
}

.preset-btn.active {
    background: var(--accent-eu);
    color: #080c14;
    border-color: var(--accent-eu);
}

.country-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.country-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(14, 22, 38, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.7rem center;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 1.8rem 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.country-dropdown:hover {
    background-color: rgba(30, 41, 59, 0.95);
    border-color: var(--accent-eu);
    color: #ffffff;
}

.country-dropdown:focus {
    border-color: var(--accent-eu);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.country-dropdown.active {
    background-color: rgba(56, 189, 248, 0.18);
    border-color: var(--accent-eu);
    color: var(--accent-eu);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.country-dropdown option,
.country-dropdown optgroup {
    background: #0f172a;
    color: #f1f5f9;
    font-family: var(--font-sans);
    padding: 0.35rem;
}

.country-dropdown optgroup {
    font-weight: 700;
    color: var(--accent-eu);
    background: #0b1120;
}

.map-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.radar-map {
    height: 100% !important;
    min-height: 0 !important;
    width: 100%;
    background: #090e17;
}

/* Map Fullscreen Toggle Button (Top-Left) */
.map-fullscreen-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1000;
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    padding: 0;
}

.map-fullscreen-btn:hover {
    background: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.map-fullscreen-btn:active {
    transform: scale(0.96);
}

/* Map Fullscreen Mode */
.map-wrapper:fullscreen,
.map-wrapper:-webkit-full-screen,
.map-wrapper.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.map-wrapper:fullscreen .radar-map,
.map-wrapper:-webkit-full-screen .radar-map,
.map-wrapper.is-fullscreen .radar-map {
    height: 100vh !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
}

/* Map Loading Indicator (Bottom-Left Alarm Clock) */
.map-loading-indicator {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: rgba(11, 19, 36, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 12px;
    padding: 0.45rem 0.65rem 0.35rem 0.65rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 15px rgba(56, 189, 248, 0.25);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.map-loading-indicator.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.clock-housing {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.clock-svg {
    display: block;
    overflow: visible;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.clock-bell {
    fill: #1e293b;
    stroke: #38bdf8;
    stroke-width: 1.2;
}

.clock-handle, .clock-leg {
    stroke: #94a3b8;
}

.clock-hammer {
    fill: #38bdf8;
}

.clock-dial-outer {
    fill: #0b1324;
    stroke: #38bdf8;
    stroke-width: 1.8;
}

.clock-dial-inner {
    fill: #132038;
    stroke: rgba(56, 189, 248, 0.25);
    stroke-width: 1;
}

.clock-tick {
    stroke: #64748b;
}

.clock-pivot {
    fill: #f8fafc;
    stroke: #38bdf8;
    stroke-width: 0.8;
}

.clock-second-hand {
    transform-origin: 24px 26px;
    animation: clock-second-sweep 1.2s linear infinite;
}

@keyframes clock-second-sweep {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-label-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    animation: loading-label-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes loading-label-pulse {
    from {
        opacity: 0.6;
        text-shadow: 0 0 3px rgba(56, 189, 248, 0.3);
    }
    to {
        opacity: 1;
        text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
    }
}

@media (max-width: 768px) {
    .map-loading-indicator {
        bottom: 6.2rem;
        left: 0.85rem;
    }
}

/* Radar Controls Overlay */
.radar-controls-card {
    position: absolute;
    bottom: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    max-width: 680px;
    margin: 0 auto;
    background: rgba(14, 22, 38, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.radar-mode-toggle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.mode-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mode-btn.active {
    background: rgba(56, 189, 248, 0.2);
    color: var(--accent-eu);
    border-color: var(--accent-eu);
}

.radar-player {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-eu);
    border: none;
    color: #080c14;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.08);
    background: #7dd3fc;
}

.play-btn.playing {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.7) !important;
    animation: radarPulse 1.8s infinite ease-in-out;
}

@keyframes radarPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 20px rgba(16, 185, 129, 0.9); }
    100% { transform: scale(1); }
}

/* Smooth Radar & Cloud Hardware-Accelerated Animation Panes */
.leaflet-pane.radarPane-pane,
.leaflet-radarPane-pane,
.leaflet-radar-pane,
.leaflet-pane.cloudPane-pane,
.leaflet-cloud-pane {
    pointer-events: none;
}

.leaflet-radar-pane .leaflet-layer,
.leaflet-cloud-pane .leaflet-layer,
.radar-smooth-tile-layer {
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.leaflet-radar-pane .leaflet-tile,
.leaflet-cloud-pane .leaflet-tile {
    will-change: opacity;
}

.slider-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#radar-slider {
    width: 100%;
    accent-color: var(--accent-eu);
    cursor: pointer;
}

.time-display {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* Custom Leaflet Map Pins */
.div-pin-container {
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.custom-map-pin {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    width: max-content !important;
    min-width: max-content !important;
    background: rgba(11, 19, 36, 0.94) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.65rem;
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    transform: translate(-50%, -50%);
}

.custom-map-pin.europe {
    border-color: rgba(56, 189, 248, 0.45);
}

.custom-map-pin.asia {
    border-color: rgba(251, 191, 36, 0.45);
}

.custom-map-pin.americas {
    border-color: rgba(52, 211, 153, 0.45);
}

.custom-map-pin.africa {
    border-color: rgba(249, 115, 22, 0.45);
}

.custom-map-pin.oceania {
    border-color: rgba(168, 85, 247, 0.45);
}

.custom-map-pin:hover, .custom-map-pin.selected {
    transform: translate(-50%, -50%) scale(1.15) !important;
    background: #1e293b !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6) !important;
    z-index: 1000 !important;
}

.pin-temp {
    font-family: var(--font-mono);
    color: var(--accent-eu);
    font-weight: 700;
}

.custom-map-pin.asia .pin-temp {
    color: var(--accent-asia);
}

.custom-map-pin.americas .pin-temp {
    color: #34d399;
}

.custom-map-pin.africa .pin-temp {
    color: #fb923c;
}

.custom-map-pin.oceania .pin-temp {
    color: #c084fc;
}

.custom-map-pin.city-regional {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    background: rgba(11, 19, 36, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.45);
}

.pin-name {
    color: #f8fafc;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md) !important;
    color: var(--text-main) !important;
}

.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95) !important;
}

/* Continent Tooltip Styling */
.continent-tooltip {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-main) !important;
    font-size: 0.8rem !important;
    padding: 0.35rem 0.65rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
}

.continent-tooltip::before {
    border-top-color: rgba(15, 23, 42, 0.95) !important;
}

/* OpenStreetMap High-Tech Dark Filter (Zero API Key, 100% Watermark-Free) */
.osm-dark-tiles {
    filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(92%) saturate(40%);
}

.popup-box h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.popup-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.2rem 0;
}

.popup-time-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.25rem 0 0.45rem 0 !important;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.popup-live-clock {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.82rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.popup-tz-offset {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.popup-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-eu);
    text-decoration: none;
    font-weight: 600;
}

.popup-link:hover {
    text-decoration: underline;
}

.popup-links-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.popup-wiki-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #fcd34d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.popup-wiki-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   4. DETAIL SIDEBAR (RIGHT 1/3)
   ========================================================================== */
.detail-sidebar {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    flex: 1 1 0;
}

.sidebar-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 20, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sidebar-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(56, 189, 248, 0.2);
    border-top-color: var(--accent-eu);
    border-radius: 50%;
    animation: spinRotate 0.8s linear infinite;
}

@keyframes spinRotate {
    to { transform: rotate(360deg); }
}

.loading-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-eu);
    letter-spacing: 0.02em;
}

.detail-sidebar-inner {
    padding: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    min-height: 0;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.detail-sidebar-inner::-webkit-scrollbar {
    width: 6px;
}

.detail-sidebar-inner::-webkit-scrollbar-track {
    background: rgba(10, 15, 26, 0.4);
    border-radius: 3px;
}

.detail-sidebar-inner::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.detail-sidebar-inner::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 320px;
    text-align: center;
    color: var(--text-dim);
    gap: 1rem;
    padding: 2rem 1rem;
}

.ph-icon {
    font-size: 3rem;
}

.detail-card {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeInTelemetry 0.3s ease-out;
}

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

.detail-hero {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.station-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.station-flag {
    font-size: 2.2rem;
    line-height: 1;
}

.station-meta h2 {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.country-name {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.station-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.2s ease;
}

.meta-badge.pop {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.meta-badge.wiki {
    background: rgba(251, 191, 36, 0.12);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
    cursor: pointer;
}

.meta-badge.wiki:hover {
    background: rgba(251, 191, 36, 0.25);
    color: #ffffff;
    border-color: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.35);
}

.meta-badge.time {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.temp-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.2rem 0;
}

.wmo-icon {
    font-size: 3.2rem;
    line-height: 1;
}

.temp-big {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-family: var(--font-mono);
    line-height: 1;
}

.condition-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-eu);
}

.apparent {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.m-card {
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
}

.m-title {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.m-val {
    font-size: 1.15rem;
    font-weight: 700;
}

.m-sub {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
}

/* Hourly & Daily Strips */
.hourly-box, .daily-box {
    margin-top: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.hourly-box h3, .daily-box h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hourly-strip {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.hourly-strip::-webkit-scrollbar {
    height: 5px;
}
.hourly-strip::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.hour-tile {
    flex: 0 0 auto;
    background: rgba(10, 15, 26, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 85px;
}

.ht-time {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.ht-temp {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-eu);
}

.ht-wind, .ht-rain {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.daily-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.day-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.day-row:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(56, 189, 248, 0.3);
}

.dr-date {
    font-weight: 600;
    color: var(--text-main);
    min-width: 82px;
}

.dr-temps {
    display: flex;
    gap: 0.6rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.dr-max { color: var(--accent-danger); }
.dr-min { color: var(--accent-eu); }
.dr-rain, .dr-wind { color: var(--text-dim); font-size: 0.75rem; }

/* ==========================================================================
   5. EURASIAN CAPITALS SINGLE-ROW HORIZONTAL CAROUSEL & SEARCH
   ========================================================================= */
.stations-section {
    margin-bottom: 0;
    flex-shrink: 0;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.stations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.stations-title-box h2 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
}

.stations-subtitle {
    display: none;
}

.stations-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.station-search-input {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 0.2rem 0.6rem;
    color: var(--text-main);
    font-size: 0.75rem;
    outline: none;
    min-width: 170px;
    height: 26px;
    transition: all 0.2s ease;
}

.station-search-input:focus {
    border-color: var(--accent-eu);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.region-tabs {
    display: flex;
    gap: 0.25rem;
}

.rtab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 26px;
}

.rtab-btn:hover {
    background: #1e293b;
    color: var(--text-main);
}

.rtab-btn.active {
    background: #334155;
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-nav-arrows {
    display: flex;
    gap: 0.25rem;
}

.carousel-arrow {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid var(--border-subtle);
    color: var(--accent-eu);
    border-radius: var(--radius-sm);
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.carousel-arrow:hover {
    background: var(--accent-eu);
    color: #080c14;
}

.stations-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.flank-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 24px;
    height: 44px;
    background: rgba(14, 22, 38, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: var(--accent-eu);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.flank-arrow.left {
    left: 0;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.flank-arrow.right {
    right: 0;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.flank-arrow:hover {
    background: var(--accent-eu);
    color: #080c14;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.stations-grid.single-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 0.4rem;
    padding: 0.1rem 1.7rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
    width: 100%;
    box-sizing: border-box;
}

.stations-grid.single-row::-webkit-scrollbar {
    height: 3px;
}

.stations-grid.single-row::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.4);
    border-radius: 3px;
}

.stations-grid.single-row .station-card {
    flex: 0 0 170px !important;
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0.3rem 0.5rem !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border-radius: 8px !important;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.stations-grid.single-row .station-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.stations-grid.single-row .station-card.active {
    border-color: var(--accent-eu);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.stations-grid.single-row .station-card .st-top {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    line-height: 1;
}

.stations-grid.single-row .station-card .st-flag {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.stations-grid.single-row .station-card .st-name-box {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.stations-grid.single-row .station-card .st-name {
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    display: block;
}

.stations-grid.single-row .station-card .st-country {
    font-size: 0.62rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    display: block;
}

.stations-grid.single-row .station-card .st-temp {
    font-size: 0.92rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-main);
}

.stations-grid.single-row .station-card.europe .st-temp {
    color: var(--accent-eu);
}

.stations-grid.single-row .station-card.asia .st-temp {
    color: var(--accent-asia);
}

.stations-grid.single-row .station-card.americas .st-temp {
    color: #34d399;
}

.stations-grid.single-row .station-card.africa .st-temp {
    color: #fb923c;
}

.stations-grid.single-row .station-card.oceania .st-temp {
    color: #c084fc;
}

.stations-grid.single-row .station-card .st-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.stations-grid.single-row .station-card .st-wind,
.stations-grid.single-row .station-card .st-press {
    font-size: 0.63rem;
    color: var(--text-dim);
    white-space: nowrap;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.app-footer {
    display: none !important;
}

.st-featured-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.4rem;
}

.custom-map-pin.featured {
    border-color: #f59e0b !important;
    background: rgba(30, 41, 59, 0.95) !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.7) !important;
    z-index: 999 !important;
}

.custom-map-pin.featured .pin-temp {
    color: #fbbf24 !important;
}

.div-city95k-pin {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: var(--radius-pill);
    padding: 0.15rem 0.45rem;
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.div-city95k-pin:hover {
    transform: scale(1.15);
    background: #1e293b;
    border-color: var(--accent-eu);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
    z-index: 1000 !important;
}

.city-pop {
    color: #94a3b8;
    font-size: 0.65rem;
    font-family: var(--font-mono);
}

.zoom-badge {
    position: absolute;
    bottom: 80px;
    left: 20px;
    z-index: 500;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.zoom-badge.active-mode {
    border-color: var(--accent-eu);
    color: var(--accent-eu);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.popup-weather-data {
    margin: 0.5rem 0;
    padding: 0.4rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

/* ==========================================================================
   8. METEOROLOGICAL FRONT ADVANCE VECTORS (NOWCASTING ARROWS)
   ========================================================================== */
.leaflet-pane.frontVectorsPane-pane,
.leaflet-frontVectorsPane-pane {
    pointer-events: auto;
    transition: opacity 0.4s ease-in-out;
}

/* Streaming Dash Animation for Front Trajectory Lines */
.front-motion-line {
    stroke: rgba(56, 189, 248, 0.7) !important;
    stroke-width: 2px !important;
    stroke-linecap: round !important;
    stroke-dasharray: 6, 6 !important;
    animation: frontDashFlow 2.5s linear infinite !important;
    cursor: pointer;
    transition: stroke-width 0.2s, stroke 0.2s;
}

.front-motion-line:hover {
    stroke: #38bdf8 !important;
    stroke-width: 3px !important;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8)) !important;
}

@keyframes frontDashFlow {
    from {
        stroke-dashoffset: 24;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Arrowhead Container & Icon (Clean, Non-Invasive) */
.front-arrow-head-container {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
}

.front-arrow-head {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.front-arrow-head:hover {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.9));
}

/* Subtle Front Tooltip */
.front-tooltip {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.5) !important;
    border-radius: 6px !important;
    color: #f8fafc !important;
    font-size: 0.72rem !important;
    padding: 0.25rem 0.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
}

.front-tooltip::before {
    border-top-color: rgba(15, 23, 42, 0.95) !important;
}

.front-legend-pill {
    position: absolute;
    bottom: 80px;
    right: 20px;
    z-index: 500;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
    display: none;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.front-legend-pill.visible {
    display: flex;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINT FOR SPLIT COCKPIT WORKSPACE
   ========================================================================== */
@media (max-width: 1100px) {
    .main-workspace {
        grid-template-columns: 1fr;
    }

    .radar-map {
        height: 520px;
        min-height: 480px;
    }

    .map-wrapper {
        min-height: 480px;
    }

    .detail-sidebar-inner {
        max-height: none;
        min-height: auto;
    }
}

/* ==========================================================================
   10. STARLINK REAL-TIME SATELLITE CONSTELLATION
   ========================================================================== */
#btn-starlink.active {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.starlink-marker-icon.leaflet-div-icon,
.starlink-marker-icon {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease-out;
}

.starlink-marker-icon:hover {
    transform: scale(1.6);
    z-index: 10000 !important;
}

.starlink-marker-icon svg {
    display: block;
    overflow: visible;
    filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.85));
}

.starlink-hud-pill {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 500;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffe4e6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(239, 68, 68, 0.3);
    display: none;
    align-items: center;
    gap: 0.4rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.starlink-hud-pill.visible {
    display: flex;
}

.starlink-hud-pill strong {
    color: #ef4444;
    font-family: var(--font-mono);
}

/* Starlink Tooltip on Leaflet Map */
.starlink-tooltip {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(239, 68, 68, 0.6) !important;
    border-radius: 6px !important;
    color: #f8fafc !important;
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.2rem 0.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7), 0 0 8px rgba(239, 68, 68, 0.3) !important;
}

.starlink-tooltip::before {
    border-top-color: rgba(15, 23, 42, 0.95) !important;
}

/* Starlink Popup */
.starlink-popup {
    min-width: 220px;
}

.starlink-popup .sl-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
}

.starlink-popup .sl-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.5px;
}

.starlink-popup .sl-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.starlink-popup .sl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.starlink-popup .sl-row strong {
    font-family: var(--font-mono);
    color: #f1f5f9;
}

/* ==========================================================================
   11. TIMEZONES LAYER (UTC / GMT)
   ========================================================================== */
#btn-timezones.active {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border-color: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.timezone-hud-pill {
    position: absolute;
    top: 14px;
    left: 58px;
    z-index: 500;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c084fc;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
    display: none;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.timezone-hud-pill.visible {
    display: flex;
}

.timezone-tooltip {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
    border-radius: 6px !important;
    color: #f8fafc !important;
    font-size: 0.78rem !important;
    padding: 0.4rem 0.7rem !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
    pointer-events: none;
}

.timezone-tooltip::before {
    border-top-color: rgba(15, 23, 42, 0.95) !important;
}

.timezone-label-marker {
    background: transparent !important;
    border: none !important;
}

.tz-badge {
    display: inline-block;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #f1f5f9;
    border: 1px solid rgba(168, 85, 247, 0.5);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    pointer-events: none;
    white-space: nowrap;
}

/* ==========================================================================
   12. RESPONSIVE ADAPTATIONS (MOBILE & TABLETS)
   ========================================================================== */
@media (max-width: 1024px), (max-height: 600px) {
    html, body {
        height: auto;
        overflow-y: auto;
    }
    .app-layout {
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 0.5rem;
    }
    .topbar {
        flex-wrap: wrap;
    }
    .synoptic-bar {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .main-workspace {
        grid-template-columns: 1fr;
        height: auto;
    }
    .radar-map {
        height: 480px !important;
        min-height: 480px !important;
    }
    .detail-sidebar {
        height: auto;
    }
    .detail-sidebar-inner {
        max-height: 520px;
    }
    .stations-section {
        margin-bottom: 1.5rem;
    }
}




