/* ========================================
   GeoWatch - Ultra Premium Dark Theme v2.0
   Refined, Sophisticated, $10M Startup Quality
   ======================================== */

/* CSS Variables - Refined Luxury Palette */
:root {
    /* Background Layers - Deeper, Richer Blacks */
    --bg-void: #030405;
    --bg-primary: #080a0e;
    --bg-secondary: #0c0f14;
    --bg-tertiary: #10141a;
    --bg-elevated: #151b24;
    --bg-card: #0e1218;
    --bg-card-hover: #141a22;
    --bg-glass: rgba(12, 15, 20, 0.88);
    --bg-glass-light: rgba(21, 27, 36, 0.72);
    --bg-glass-subtle: rgba(16, 20, 26, 0.6);
    
    /* Accent Colors - Refined Premium */
    --accent-primary: #22d3ee;
    --accent-primary-dim: rgba(34, 211, 238, 0.15);
    --accent-secondary: #a78bfa;
    --accent-tertiary: #fcd34d;
    --accent-glow: rgba(34, 211, 238, 0.12);
    --accent-glow-strong: rgba(34, 211, 238, 0.25);
    
    /* Status Colors - Balanced & Refined */
    --color-critical: #f43f5e;
    --color-critical-dim: rgba(244, 63, 94, 0.12);
    --color-danger: #fb923c;
    --color-danger-dim: rgba(251, 146, 60, 0.12);
    --color-warning: #fbbf24;
    --color-warning-dim: rgba(251, 191, 36, 0.12);
    --color-moderate: #a3e635;
    --color-stable: #34d399;
    --color-stable-dim: rgba(52, 211, 153, 0.12);
    --color-peace: #2dd4bf;
    --color-info: #60a5fa;
    
    /* Text Colors - Improved Hierarchy */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-muted: #475569;
    --text-dim: #334155;
    
    /* Border & Effects - Subtle & Elegant */
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-default: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(34, 211, 238, 0.2);
    --border-glow: rgba(34, 211, 238, 0.35);
    
    /* Shadows - Premium Depth System */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45), 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.1);
    --shadow-glow-accent: 0 0 60px rgba(34, 211, 238, 0.15);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    
    /* Sizing - Generous Spacing */
    --header-height: 68px;
    --nav-height: 60px;
    --sidebar-width: 420px;
    --border-radius-xs: 4px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
    
    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    
    /* Typography Scale */
    --font-xs: 0.7rem;
    --font-sm: 0.8rem;
    --font-base: 0.9rem;
    --font-md: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    
    /* Transitions - Refined Curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: 0.15s var(--ease-out-expo);
    --transition-normal: 0.25s var(--ease-out-expo);
    --transition-slow: 0.4s var(--ease-out-expo);
    --transition-slower: 0.6s var(--ease-out-expo);
    --transition-bounce: 0.35s var(--ease-spring);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

body {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.hidden {
    display: none !important;
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* Selection */
::selection {
    background: rgba(34, 211, 238, 0.25);
    color: var(--text-primary);
}

/* ========================================
   Premium Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(34, 211, 238, 0.4) 0%, 
        rgba(167, 139, 250, 0.4) 100%
    );
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(34, 211, 238, 0.6) 0%, 
        rgba(167, 139, 250, 0.6) 100%
    );
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 211, 238, 0.4) transparent;
}

/* ========================================
   Loading Screen - Cinematic
   ======================================== */
#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-void);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s var(--ease-out-expo), 
                visibility 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
}

.loader-content {
    text-align: center;
    animation: fadeInScale 1s var(--ease-out-expo);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.globe-loader {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 48px;
}

.globe-loader i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.5));
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.5));
    }
    50% { 
        opacity: 0.85; 
        transform: translate(-50%, -50%) scale(0.96);
        filter: drop-shadow(0 0 50px rgba(34, 211, 238, 0.7));
    }
}

.globe-ring {
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1.8s linear infinite;
    opacity: 0.8;
}

.globe-ring:nth-child(2) {
    inset: 16px;
    border-top-color: var(--accent-secondary);
    animation-duration: 2.4s;
    animation-direction: reverse;
    opacity: 0.6;
}

.globe-ring:nth-child(3) {
    inset: 32px;
    border-top-color: var(--accent-tertiary);
    animation-duration: 3s;
    opacity: 0.4;
}

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

.loader-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-3xl);
    font-weight: 700;
    letter-spacing: 12px;
    background: linear-gradient(135deg, 
        var(--accent-primary) 0%, 
        var(--accent-secondary) 50%,
        var(--accent-primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.loading-text {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-tertiary);
    font-size: var(--font-sm);
    margin-bottom: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loading-bar {
    width: 280px;
    height: 3px;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        var(--accent-primary), 
        var(--accent-secondary), 
        var(--accent-primary)
    );
    background-size: 200% 100%;
    border-radius: var(--border-radius-full);
    animation: loading 2.5s ease-in-out forwards, shimmer 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    20% { width: 40%; }
    50% { width: 70%; }
    80% { width: 90%; }
    100% { width: 100%; }
}

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

/* ========================================
   Navigation Bar - Refined Premium
   ======================================== */
#nav-bar {
    background: linear-gradient(180deg, 
        rgba(12, 15, 20, 0.95) 0%, 
        rgba(8, 10, 14, 0.98) 100%
    );
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 0;
    border-bottom: 1px solid var(--border-subtle);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: var(--nav-height);
}

#nav-bar > div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 var(--space-6);
}

.nav-toggle {
    display: flex;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    padding: 5px;
    gap: 5px;
    box-shadow: var(--shadow-md), var(--shadow-inner);
    border: 1px solid var(--border-subtle);
}

#nav-bar a {
    text-decoration: none;
    font-size: var(--font-base);
    padding: 12px 32px;
    border-radius: var(--border-radius-md);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

#nav-bar a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

#nav-bar a:hover::before {
    opacity: 1;
}

#nav-bar a span {
    font-size: 1.3rem;
}

/* Active Conflicts Link */
.nav-link-active {
    color: #fff !important;
    background: linear-gradient(135deg, 
        var(--color-critical) 0%, 
        #be123c 100%
    ) !important;
    box-shadow: 
        0 0 40px rgba(244, 63, 94, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.1) !important;
}

/* Inactive Link */
.nav-link-inactive {
    color: var(--text-tertiary) !important;
    background: transparent !important;
}

.nav-link-inactive:hover {
    color: var(--text-primary) !important;
    background: rgba(255,255,255,0.04) !important;
}

/* Active Macro Link */
.nav-link-macro-active {
    color: #fff !important;
    background: linear-gradient(135deg, 
        var(--color-stable) 0%, 
        #059669 100%
    ) !important;
    box-shadow: 
        0 0 40px rgba(52, 211, 153, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* ========================================
   App Container
   ======================================== */
#app {
    height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    margin-top: var(--nav-height);
    animation: appFadeIn 0.8s var(--ease-out-expo);
}

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

/* ========================================
   Header - Premium Glass
   ======================================== */
#header {
    height: var(--header-height);
    background: linear-gradient(180deg, 
        rgba(12, 15, 20, 0.9) 0%, 
        rgba(8, 10, 14, 0.7) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    z-index: 100;
    position: relative;
}

#header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-primary) 30%,
        var(--accent-secondary) 70%,
        transparent 100%
    );
    opacity: 0.25;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

/* Logo - Refined */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo i {
    font-size: 1.75rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.45));
    animation: satellite 5s ease-in-out infinite;
}

@keyframes satellite {
    0%, 100% { 
        transform: rotate(-2deg) translateY(0); 
        filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.45));
    }
    50% { 
        transform: rotate(2deg) translateY(-3px); 
        filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.6));
    }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-primary);
}

.logo-text .accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Status Indicator - Elegant Pill */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--color-stable-dim);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-normal);
}

.status-indicator:hover {
    background: rgba(52, 211, 153, 0.18);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.15);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--color-stable);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px var(--color-stable);
}

.pulse::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--color-stable);
    animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
    0% { transform: scale(0.5); opacity: 0.7; }
    100% { transform: scale(2.5); opacity: 0; }
}

.status-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: var(--font-xs);
    color: var(--color-stable);
    letter-spacing: 3px;
    font-weight: 500;
}

/* Search - Elegant Glass */
.header-center {
    flex: 1;
    max-width: 560px;
    margin: 0 48px;
}

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

.search-container i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--font-base);
    transition: color var(--transition-fast);
}

#search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    background: var(--bg-glass-subtle);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-lg);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--font-base);
    font-weight: 500;
    transition: all var(--transition-normal);
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
    box-shadow: 
        0 0 0 4px var(--accent-glow),
        var(--shadow-glow);
}

#search-input:focus + i,
.search-container:focus-within i {
    color: var(--accent-primary);
}

#search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-lg);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    animation: dropdownSlide 0.25s var(--ease-out-expo);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-result-item {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-subtle);
}

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

.search-result-item:hover {
    background: var(--bg-card-hover);
}

.search-result-item img {
    width: 32px;
    height: 20px;
    object-fit: cover;
    border-radius: var(--border-radius-xs);
    box-shadow: var(--shadow-sm);
}

/* Header Right */
.datetime {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Share Tech Mono', monospace;
}

.time {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 500;
    letter-spacing: 2px;
}

.date {
    font-size: var(--font-xs);
    color: var(--text-tertiary);
    letter-spacing: 1px;
}

/* Icon Buttons - Premium */
.icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow);
}

.icon-btn:hover::before {
    opacity: 1;
}

.icon-btn:active {
    transform: translateY(0);
}

/* ========================================
   Main Content
   ======================================== */
#main-content {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, 
        rgba(34, 211, 238, 0.03) 0%, 
        var(--bg-primary) 50%
    );
}

/* ========================================
   Map Container - Enhanced
   ======================================== */
#map-container {
    flex: 1;
    position: relative;
    min-height: 400px;
    background: radial-gradient(ellipse at center, 
        var(--bg-secondary) 0%, 
        var(--bg-void) 100%
    );
}

#map {
    height: 100%;
    width: 100%;
    min-height: 400px;
    background: transparent;
}

/* Leaflet Customization */
.leaflet-container {
    background: transparent;
    font-family: 'Rajdhani', sans-serif;
}

.leaflet-control-attribution {
    background: rgba(8, 10, 14, 0.92) !important;
    backdrop-filter: blur(10px);
    color: var(--text-dim) !important;
    font-size: 10px;
    border-radius: var(--border-radius-sm) 0 0 0;
    padding: 5px 10px !important;
}

.leaflet-control-attribution a {
    color: var(--accent-primary) !important;
}

/* Map Popup - Premium Glass */
.leaflet-popup-content-wrapper {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-accent);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    padding: 0;
}

.leaflet-popup-content {
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    margin: 16px 18px;
    font-size: var(--font-base);
    line-height: 1.6;
}

.leaflet-popup-tip {
    background: var(--bg-glass);
    border: 1px solid var(--border-accent);
    border-top: none;
    border-right: none;
}

.leaflet-popup-close-button {
    color: var(--text-tertiary) !important;
    font-size: 20px !important;
    padding: 8px 10px !important;
    transition: color var(--transition-fast);
}

.leaflet-popup-close-button:hover {
    color: var(--accent-primary) !important;
}

/* Map Controls - Premium Stack */
.map-controls {
    position: absolute;
    top: var(--space-6);
    left: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.map-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--font-md);
}

.map-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.08);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.map-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: var(--bg-void);
    box-shadow: var(--shadow-glow-accent);
}

.map-btn-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-default), transparent);
    margin: 4px 10px;
}

/* Legend - Elegant Glass Card */
.legend {
    position: absolute;
    bottom: var(--space-8);
    left: var(--space-6);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-lg);
    padding: var(--space-5);
    z-index: 1000;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
}

.legend h4 {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.legend h4 i {
    color: var(--accent-primary);
    font-size: var(--font-base);
}

.legend-scale {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-gradient {
    height: 12px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(90deg, 
        var(--color-stable) 0%, 
        var(--color-moderate) 25%, 
        var(--color-warning) 50%,
        var(--color-danger) 75%,
        var(--color-critical) 100%
    );
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 2px 8px rgba(0,0,0,0.2);
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-xs);
    color: var(--text-muted);
    padding: 0 2px;
    font-weight: 500;
}

/* Quick Stats - Premium Glass Cards */
.quick-stats {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    display: flex;
    gap: 14px;
    z-index: 1000;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-lg);
    padding: 16px 20px;
    transition: all var(--transition-normal);
    cursor: default;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-item i {
    font-size: 1.4rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.35));
}

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

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ========================================
   Sidebar - Premium Panel
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, 
        var(--bg-secondary) 0%, 
        var(--bg-primary) 100%
    );
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow);
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, 
        var(--accent-primary) 0%,
        var(--accent-secondary) 50%,
        transparent 100%
    );
    opacity: 0.25;
}

.sidebar.collapsed {
    transform: translateX(100%);
}

/* Sidebar Tabs - Refined */
.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-tertiary);
    padding: var(--space-2);
    gap: var(--space-1);
}

.tab-btn {
    flex: 1;
    padding: 14px 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--font-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    border-radius: var(--border-radius-sm);
}

.tab-btn i {
    font-size: 1.15rem;
    transition: all var(--transition-normal);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--border-radius-full);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.tab-btn:hover {
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
}

.tab-btn:hover i {
    transform: translateY(-2px);
    color: var(--accent-primary);
}

.tab-btn.active {
    color: var(--accent-primary);
    background: var(--bg-card);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
    flex-direction: column;
}

.tab-content.active {
    display: flex;
    animation: tabFadeIn 0.35s var(--ease-out-expo);
}

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

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, 
        var(--bg-tertiary) 0%, 
        transparent 100%
    );
}

.tab-header h3 {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* Refresh Button */
.refresh-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.refresh-btn:hover {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: rotate(180deg);
}

.refresh-btn.spinning i {
    animation: spin 0.8s linear infinite;
}

/* ========================================
   Event Cards - Premium News Cards
   ======================================== */
.event-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.event-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(34, 211, 238, 0.03) 0%, 
        transparent 50%
    );
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.event-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(-6px);
    box-shadow: var(--shadow-md);
}

.event-card:hover::before {
    opacity: 1;
}

.event-card:hover::after {
    opacity: 1;
}

.event-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}

.event-source {
    display: flex;
    align-items: center;
    gap: 10px;
}

.source-icon {
    width: 26px;
    height: 26px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--accent-primary);
    box-shadow: var(--shadow-xs);
}

.source-name {
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.event-time {
    font-family: 'Share Tech Mono', monospace;
    font-size: var(--font-xs);
    color: var(--text-dim);
}

.event-title {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    position: relative;
    z-index: 1;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.event-location i {
    color: var(--accent-primary);
    font-size: var(--font-sm);
}

/* Severity Badges - Premium Pills */
.event-severity {
    padding: 5px 14px;
    border-radius: var(--border-radius-full);
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-severity.critical {
    background: var(--color-critical-dim);
    color: var(--color-critical);
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.25);
}

.event-severity.high {
    background: var(--color-danger-dim);
    color: var(--color-danger);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.25);
}

.event-severity.moderate {
    background: var(--color-warning-dim);
    color: var(--color-warning);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.25);
}

.event-severity.low {
    background: var(--color-stable-dim);
    color: var(--color-stable);
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.25);
}

/* Read More Link */
.event-card .read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    color: var(--accent-primary);
    font-size: var(--font-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.event-card .read-more-link:hover {
    color: var(--text-primary);
    gap: 12px;
}

.event-card .read-more-link i {
    font-size: var(--font-xs);
    transition: transform var(--transition-fast);
}

.event-card .read-more-link:hover i {
    transform: translateX(4px);
}

/* Reliability Stars */
.reliability-indicator {
    font-size: 0.55rem;
    color: var(--color-warning);
    letter-spacing: 2px;
    margin-left: 8px;
}

/* ========================================
   Regions List
   ======================================== */
.regions-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
}

.region-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.region-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.region-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.region-name {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.region-stability {
    padding: 5px 14px;
    border-radius: var(--border-radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.region-stats {
    display: flex;
    gap: var(--space-6);
}

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

.region-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.region-stat-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   Timeline - Refined
   ======================================== */
.timeline-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) var(--space-6);
}

#timeline-filter {
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--font-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

#timeline-filter:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.timeline-item {
    position: relative;
    padding-left: 36px;
    padding-bottom: var(--space-8);
    border-left: 2px solid var(--border-default);
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    transition: all var(--transition-normal);
    box-shadow: 0 0 0 4px var(--bg-secondary);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 
        0 0 0 4px var(--bg-secondary),
        0 0 16px rgba(34, 211, 238, 0.5);
}

.timeline-dot.critical {
    border-color: var(--color-critical);
    background: var(--color-critical);
    box-shadow: 
        0 0 0 4px var(--bg-secondary),
        0 0 12px rgba(244, 63, 94, 0.4);
}

.timeline-dot.high {
    border-color: var(--color-danger);
}

.timeline-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    padding: var(--space-4);
    transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-content {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.timeline-title {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.5;
}

.timeline-location {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* ========================================
   Modals - Premium Glass Design
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 4, 5, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(180deg, 
        var(--bg-secondary) 0%, 
        var(--bg-primary) 100%
    );
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-xl);
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.94) translateY(24px);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.modal.visible .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content.large {
    max-width: 1000px;
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, 
        var(--bg-tertiary) 0%, 
        transparent 100%
    );
}

.modal-header h2 {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: 0.5px;
}

.modal-header h2 i {
    color: var(--accent-primary);
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background: var(--color-critical);
    border-color: var(--color-critical);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    flex: 1;
}

/* Country Modal */
.country-header {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.country-flag {
    width: 80px;
    height: 54px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-md);
}

.country-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.country-region {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

/* Conflict Type Badge */
.conflict-type-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-critical-dim);
    color: var(--color-critical);
    border-radius: var(--border-radius-full);
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 14px;
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.25);
}

/* Stability Meter */
.stability-section {
    margin-bottom: var(--space-8);
}

.stability-section h4 {
    font-size: var(--font-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stability-meter {
    margin-bottom: var(--space-4);
}

.meter-track {
    height: 12px;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35);
}

.meter-fill {
    height: 100%;
    border-radius: var(--border-radius-full);
    transition: width 1s var(--ease-out-expo), background 0.5s ease;
    background: linear-gradient(90deg, var(--color-critical), var(--color-warning));
    position: relative;
}

.meter-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
    animation: shimmerMeter 2.5s ease-in-out infinite;
}

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

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-xs);
    color: var(--text-dim);
    margin-top: 8px;
    font-weight: 500;
}

.stability-value {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    padding: var(--space-5);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card i {
    font-size: 1.75rem;
    color: var(--accent-primary);
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.35));
}

.stat-card-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.stat-card-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* News Section in Modal */
.news-section {
    margin-top: var(--space-6);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.section-header h4 {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h4 i {
    color: var(--accent-primary);
}

.news-subtitle {
    font-size: var(--font-sm);
    color: var(--text-dim);
    font-weight: 400;
    margin-left: 10px;
}

.news-sources {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.source-btn {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-full);
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.source-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-secondary);
}

.source-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: var(--bg-void);
    font-weight: 600;
}

.news-feed {
    max-height: 360px;
    overflow-y: auto;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.news-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateX(6px);
}

.news-item.clickable::after {
    content: '↗';
    position: absolute;
    right: 16px;
    top: 16px;
    color: var(--accent-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-size: var(--font-base);
}

.news-item.clickable:hover::after {
    opacity: 1;
}

.news-item-source-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 80px;
}

.news-item-source {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-item-content {
    flex: 1;
}

.news-item-title {
    font-size: var(--font-base);
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: 6px;
}

.news-item-time {
    font-family: 'Share Tech Mono', monospace;
    font-size: var(--font-xs);
    color: var(--text-dim);
}

.external-link-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: var(--font-xs);
    color: var(--accent-primary);
    opacity: 0.5;
}

/* ========================================
   Conflict Overview Section
   ======================================== */
.conflict-overview {
    margin-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-6);
    animation: fadeInUp 0.5s var(--ease-out-expo);
}

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

.overview-section {
    margin-bottom: var(--space-6);
}

.overview-section h4,
.overview-section h5 {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: 12px;
}

.overview-section h4 i,
.overview-section h5 i {
    color: var(--accent-primary);
}

.overview-section > p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: var(--font-base);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    padding: var(--space-5);
    transition: all var(--transition-normal);
}

.overview-card:hover {
    border-color: var(--border-accent);
}

.overview-card h5 {
    font-size: var(--font-sm);
    margin-bottom: var(--space-3);
}

.overview-card p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    line-height: 1.65;
}

/* Key Actors */
.actors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.actor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-sm);
    transition: all var(--transition-fast);
}

.actor-item:hover {
    background: var(--bg-card-hover);
}

.actor-name {
    color: var(--text-primary);
    font-weight: 500;
}

.actor-type {
    color: var(--accent-primary);
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Conflict Timeline */
.conflict-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 240px;
    overflow-y: auto;
}

.timeline-event {
    display: flex;
    gap: 16px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--accent-primary);
    transition: all var(--transition-fast);
}

.timeline-event:hover {
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.timeline-event-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: var(--font-sm);
    color: var(--accent-primary);
    white-space: nowrap;
    min-width: 90px;
}

.timeline-event-text {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    line-height: 1.5;
}

/* Humanitarian Impact */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.impact-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    text-align: center;
    transition: all var(--transition-fast);
}

.impact-item:hover {
    transform: translateY(-2px);
}

.impact-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-critical);
    display: block;
    margin-bottom: 6px;
}

.impact-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* International Involvement */
.involvement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.involvement-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    flex: 1 1 calc(50% - 14px);
    min-width: 220px;
    transition: all var(--transition-fast);
}

.involvement-item:hover {
    border-color: var(--border-accent);
}

.involvement-actor {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: var(--font-sm);
    margin-bottom: 4px;
}

.involvement-role {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* Sanctions Section */
.sanctions-section {
    background: var(--color-critical-dim);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--border-radius-md);
    padding: var(--space-5);
}

.sanctions-section h5 {
    color: var(--color-critical);
}

.sanctions-section h5 i {
    color: var(--color-critical);
}

.sanctions-section p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    line-height: 1.65;
}

/* ========================================
   Global Stats Modal
   ======================================== */
.global-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.global-stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    padding: var(--space-5);
    transition: all var(--transition-normal);
}

.global-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

.global-stat-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    font-size: 1.5rem;
}

.global-stat-icon.conflict {
    background: var(--color-critical-dim);
    color: var(--color-critical);
}

.global-stat-icon.refugees {
    background: var(--color-danger-dim);
    color: var(--color-danger);
}

.global-stat-icon.peace {
    background: var(--color-stable-dim);
    color: var(--color-stable);
}

.global-stat-icon.crisis {
    background: var(--color-warning-dim);
    color: var(--color-warning);
}

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

.global-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.global-stat-label {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.global-stat-change {
    font-size: var(--font-sm);
    font-weight: 600;
    margin-top: 4px;
}

.global-stat-change.positive {
    color: var(--color-stable);
}

.global-stat-change.negative {
    color: var(--color-critical);
}

.global-stat-change.neutral {
    color: var(--text-muted);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    padding: var(--space-5);
    transition: all var(--transition-normal);
}

.chart-container:hover {
    border-color: var(--border-accent);
}

.chart-container h4 {
    font-size: var(--font-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
    font-weight: 500;
}

.chart-container canvas {
    max-height: 240px;
}

/* Watchlist */
.watchlist-section h4 {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: 12px;
}

.watchlist-section h4 i {
    color: var(--color-critical);
}

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.watchlist-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.watchlist-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-critical);
    transform: translateY(-2px);
}

.watchlist-item img {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: var(--border-radius-xs);
    box-shadow: var(--shadow-sm);
}

.watchlist-item-info {
    flex: 1;
}

.watchlist-item-name {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.watchlist-item-status {
    font-size: var(--font-xs);
    color: var(--color-critical);
}

/* ========================================
   Toast Notifications - Premium
   ======================================== */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    z-index: 3000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-md);
    padding: 18px 22px;
    min-width: 340px;
    box-shadow: var(--shadow-xl);
    transform: translateX(120%);
    transition: transform var(--transition-slow);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    font-size: 1.2rem;
}

.toast.info .toast-icon {
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
}

.toast.success .toast-icon {
    background: var(--color-stable-dim);
    color: var(--color-stable);
}

.toast.warning .toast-icon {
    background: var(--color-warning-dim);
    color: var(--color-warning);
}

.toast.error .toast-icon {
    background: var(--color-critical-dim);
    color: var(--color-critical);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.toast-message {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* ========================================
   Skeleton Loaders
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, 
        var(--bg-card) 25%, 
        var(--bg-card-hover) 50%, 
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.8s ease-in-out infinite;
    border-radius: var(--border-radius-sm);
}

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

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-card {
    height: 130px;
    margin-bottom: 14px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .sidebar {
        width: 360px;
    }
    
    .quick-stats {
        flex-wrap: wrap;
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 500;
        transform: translateX(100%);
        box-shadow: -16px 0 48px rgba(0,0,0,0.5);
        width: 380px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .header-center {
        display: none;
    }
    
    .global-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .watchlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 52px;
        --header-height: 60px;
    }
    
    #header {
        padding: 0 var(--space-4);
    }
    
    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }
    
    .status-indicator {
        display: none;
    }
    
    .datetime {
        display: none;
    }
    
    .quick-stats {
        display: none;
    }
    
    .legend {
        bottom: var(--space-3);
        left: var(--space-3);
        padding: var(--space-4);
        min-width: 180px;
    }
    
    .map-controls {
        top: var(--space-3);
        left: var(--space-3);
    }
    
    .map-btn {
        width: 40px;
        height: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .watchlist-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: var(--space-3);
        max-height: calc(100vh - var(--space-6));
        border-radius: var(--border-radius-lg);
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .involvement-item {
        flex: 1 1 100%;
    }
    
    #nav-bar a {
        padding: 10px 18px;
        font-size: var(--font-sm);
        letter-spacing: 1.5px;
    }
    
    #nav-bar a span {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .event-card {
        padding: var(--space-4);
    }
    
    .modal-body {
        padding: var(--space-4);
    }
    
    .nav-toggle {
        padding: 3px;
    }
    
    #nav-bar a {
        padding: 8px 14px;
        gap: 8px;
    }
}

/* ========================================
   Additional Marker Styles
   ======================================== */
.event-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-critical);
    font-size: 14px;
    filter: drop-shadow(0 0 12px rgba(244, 63, 94, 0.7));
}

.marker-pulse {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.25);
    animation: marker-pulse 2.2s ease-out infinite;
}

@keyframes marker-pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.geo-tooltip,
.conflict-tooltip {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid var(--border-accent) !important;
    border-radius: var(--border-radius-sm) !important;
    color: var(--text-primary) !important;
    font-family: 'Rajdhani', sans-serif !important;
    padding: 12px 16px !important;
    box-shadow: var(--shadow-lg), var(--shadow-glow) !important;
}

.leaflet-tooltip-top:before {
    border-top-color: var(--bg-glass) !important;
}

/* ========================================
   Premium Animation Utilities
   ======================================== */
.animate-in {
    animation: slideInFromBottom 0.7s var(--ease-out-expo) forwards;
    opacity: 0;
}

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

/* Bounce In */
.bounce-in {
    animation: bounceIn 0.6s var(--ease-spring);
}

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

/* Gradient Flow */
.gradient-text-animated {
    background: linear-gradient(90deg, 
        var(--accent-primary), 
        var(--accent-secondary), 
        var(--accent-primary)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s linear infinite;
}

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

/* Float */
.float-animation {
    animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Glow Pulse */
.glow-pulse {
    animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
    }
    50% {
        box-shadow: 0 0 28px rgba(244, 63, 94, 0.5);
    }
}

/* Number Counter Pulse */
.stat-value.counting {
    animation: numberPulse 0.3s ease-out;
}

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

/* Hover Lift */
.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Progress Fill Animation */
.progress-fill-animated {
    animation: progressFill 1.2s var(--ease-out-expo) forwards;
}

@keyframes progressFill {
    from { width: 0; }
}

/* Ripple Effect */
@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Slide animations for cards */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Polymarket Integration Styles
   Prediction Market Cards & Panels
   ======================================== */

/* Panel Container */
.polymarket-panel {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    margin-bottom: 20px;
}

.pm-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 10px;
}

.pm-panel-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pm-powered-by {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 4px 10px;
    background: var(--bg-elevated);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.pm-powered-by:hover {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

/* Cards Container */
.pm-cards-container {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

/* Individual Market Card */
.polymarket-card {
    background: var(--bg-elevated);
    border-radius: var(--border-radius-md);
    padding: 14px;
    border-left: 4px solid var(--text-muted);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
}

.polymarket-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.polymarket-card:hover {
    transform: translateX(4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md), 0 0 20px rgba(0, 212, 255, 0.1);
}

.polymarket-card:hover::before {
    opacity: 1;
}

/* Probability-based styling */
.polymarket-card.high-prob {
    border-left-color: #10b981;
}

.polymarket-card.medium-prob {
    border-left-color: #f59e0b;
}

.polymarket-card.low-prob {
    border-left-color: #ef4444;
}

/* Card Header */
.pm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.pm-probability {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pm-prob-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.pm-prob-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.pm-volume {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pm-vol-24h {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-tertiary);
}

.pm-vol-label {
    font-size: 0.58rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Question */
.pm-question {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Outcomes */
.pm-outcomes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.pm-outcome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 0.72rem;
}

.pm-outcome-name {
    color: var(--text-secondary);
}

.pm-outcome-price {
    font-weight: 600;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-primary);
}

/* Card Footer */
.pm-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.68rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
    margin-top: 10px;
}

.pm-total-vol {
    font-family: 'Share Tech Mono', monospace;
}

.pm-end-date {
    flex: 1;
}

.pm-link {
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.pm-link:hover {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

/* Tabs */
.polymarket-tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
    overflow-x: auto;
}

.pm-tab {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
}

.pm-tab:hover {
    color: var(--text-secondary);
    background: rgba(0, 212, 255, 0.05);
}

.pm-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

.pm-tab i {
    font-size: 0.85rem;
}

/* Tab Content */
.pm-tab-content {
    display: none;
}

.pm-tab-content.active {
    display: block;
}

/* Loading State */
.pm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pm-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-default);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: pm-spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes pm-spin {
    to { transform: rotate(360deg); }
}

/* Error & Empty States */
.pm-error,
.pm-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pm-error {
    color: var(--color-danger);
}

/* Polymarket container in sidebar */
.polymarket-container {
    padding: 0;
}

.polymarket-container .polymarket-panel {
    margin: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border-subtle);
}

/* Responsive */
@media (max-width: 768px) {
    .pm-cards-container {
        max-height: 400px;
    }
    
    .pm-prob-value {
        font-size: 1.2rem;
    }
    
    .pm-question {
        font-size: 0.82rem;
    }
}
