/**
 * WINDOW ELEMENTS - Airplane Window & Screen Styles
 * ==================================================
 * Airplane window, seat screen, and special visual components
 */

/* ============================================
   WINDOW SECTIONS (Hero & Finale)
   ============================================ */
.window-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.window-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ============================================
   AIRPLANE WINDOW
   ============================================ */
.airplane-window {
    position: relative;
    width: min(480px, 85vw);
    height: min(580px, 75vh);
    border-radius: 42% 42% 45% 45% / 48% 48% 52% 52%;
    background: #1a1f2e;
    padding: 20px;
    box-shadow: 
        /* Outer shadow */
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 15px 35px rgba(0, 0, 0, 0.4),
        /* Inner edge highlight */
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        /* Depth */
        inset 0 -5px 20px rgba(0, 0, 0, 0.3);
}

/* Window frame (inner border) */
.window-frame {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 18px solid #2d3748;
    border-radius: 42% 42% 45% 45% / 48% 48% 52% 52%;
    pointer-events: none;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.4),
        inset 0 0 80px rgba(0, 0, 0, 0.2);
}

/* Rivets */
.rivet {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #666, #333);
    border-radius: 50%;
    box-shadow: 
        inset 0 2px 3px rgba(0, 0, 0, 0.5),
        0 1px 1px rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.rivet-tl { top: 25px; left: 25px; }
.rivet-tr { top: 25px; right: 25px; }
.rivet-bl { bottom: 25px; left: 25px; }
.rivet-br { bottom: 25px; right: 25px; }

/* Window view (the actual window content) */
.window-view {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 38% 38% 42% 42% / 44% 44% 48% 48%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============================================
   SKY GRADIENT (Hero)
   ============================================ */
.sky-gradient {
    background: linear-gradient(to bottom,
        #0f172a 0%,
        #1e3a8a 25%,
        #3b82f6 50%,
        #60a5fa 70%,
        #93c5fd 85%,
        #e0f2fe 100%
    );
}

/* Clouds layer */
.clouds-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Emoji clouds with blur effect */
.emoji-cloud {
    position: absolute;
    font-size: 80px;
    filter: blur(3px);
    opacity: 0.85;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    transform-style: preserve-3d;
    will-change: transform;
}

.emoji-cloud.cloud-1 {
    font-size: 100px;
    bottom: 10%;
    left: -10%;
    filter: blur(2px);
    opacity: 0.9;
    animation: cloudFloat1 20s ease-in-out infinite;
}

.emoji-cloud.cloud-2 {
    font-size: 120px;
    bottom: 20%;
    right: -15%;
    filter: blur(4px);
    opacity: 0.7;
    animation: cloudFloat2 25s ease-in-out infinite;
    animation-delay: -5s;
}

.emoji-cloud.cloud-3 {
    font-size: 70px;
    bottom: 35%;
    left: 15%;
    filter: blur(2px);
    opacity: 0.8;
    animation: cloudFloat3 18s ease-in-out infinite;
    animation-delay: -8s;
}

.emoji-cloud.cloud-4 {
    font-size: 90px;
    bottom: 5%;
    right: 20%;
    filter: blur(5px);
    opacity: 0.6;
    animation: cloudFloat4 22s ease-in-out infinite;
    animation-delay: -12s;
}

.emoji-cloud.cloud-5 {
    font-size: 60px;
    bottom: 25%;
    left: 40%;
    filter: blur(3px);
    opacity: 0.75;
    animation: cloudFloat5 15s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes cloudFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -10px) scale(1.05); }
    50% { transform: translate(60px, 5px) scale(1); }
    75% { transform: translate(30px, -5px) scale(1.02); }
}

@keyframes cloudFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 15px) scale(1.03); }
    66% { transform: translate(-20px, -10px) scale(0.98); }
}

@keyframes cloudFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25px, -15px); }
}

@keyframes cloudFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(-30px, 10px) scale(1.05); }
    80% { transform: translate(15px, -5px) scale(0.97); }
}

@keyframes cloudFloat5 {
    0%, 100% { transform: translate(0, 0); }
    30% { transform: translate(20px, 10px); }
    70% { transform: translate(-15px, -8px); }
}

/* ============================================
   HERO CONTENT - Improved legibility
   ============================================ */
.window-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1rem;
    /* Strong text shadow for legibility over clouds */
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(30, 58, 138, 0.8);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 400;
    color: white;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    /* Background pill for better legibility */
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(30, 58, 138, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: white;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    /* Semi-transparent background */
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    display: inline-flex;
}

.hero-meta .separator {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

/* ============================================
   SUNSET GRADIENT (Finale) - Legacy
   ============================================ */
.sunset-gradient {
    background: linear-gradient(to bottom,
        #f59e0b 0%,
        #f97316 20%,
        #ea580c 35%,
        #dc2626 50%,
        #991b1b 65%,
        #7c2d12 80%,
        #1e293b 100%
    );
}

/* ============================================
   SUNSET SCENE (New Finale Design)
   ============================================ */
.sunset-scene {
    background: linear-gradient(
        180deg,
        #1a1a2e 0%,
        #16213e 8%,
        #1f4068 15%,
        #e85d04 35%,
        #f48c06 45%,
        #faa307 52%,
        #ffba08 58%,
        #f48c06 62%,
        #e85d04 68%,
        #9d4506 75%,
        #3d5a80 85%,
        #293241 100%
    );
    position: relative;
    overflow: hidden;
}

/* Sky base layer */
.sunset-sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40%;
    background: linear-gradient(
        180deg,
        #0d1b2a 0%,
        #1b263b 20%,
        #415a77 40%,
        #e85d04 70%,
        #f8961e 90%,
        #f9c74f 100%
    );
    opacity: 0.7;
}

/* Sun glow effect */
.sun-glow {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    background: radial-gradient(
        ellipse at center bottom,
        #fff7ed 0%,
        #ffedd5 20%,
        #fdba74 40%,
        #fb923c 60%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.9;
}

/* Sunset clouds layer */
.sunset-clouds-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    pointer-events: none;
    overflow: hidden;
}

/* Sunset clouds with warm color filter */
.sunset-cloud {
    position: absolute;
    font-size: 60px;
    filter: blur(2px) sepia(0.8) saturate(2) hue-rotate(-10deg) brightness(0.9);
    opacity: 0.85;
    will-change: transform;
}

.sunset-cloud.cloud-1 {
    font-size: 80px;
    top: 18%;
    left: 5%;
    filter: blur(3px) sepia(0.9) saturate(2.5) hue-rotate(-15deg) brightness(0.7);
    opacity: 0.9;
    animation: sunsetCloudFloat1 25s ease-in-out infinite;
}

.sunset-cloud.cloud-2 {
    font-size: 100px;
    top: 28%;
    right: -5%;
    filter: blur(4px) sepia(0.7) saturate(2) hue-rotate(-5deg) brightness(0.8);
    opacity: 0.75;
    animation: sunsetCloudFloat2 30s ease-in-out infinite;
    animation-delay: -8s;
}

.sunset-cloud.cloud-3 {
    font-size: 70px;
    top: 38%;
    left: 25%;
    filter: blur(2px) sepia(0.85) saturate(2.2) hue-rotate(-10deg) brightness(0.85);
    opacity: 0.8;
    animation: sunsetCloudFloat3 20s ease-in-out infinite;
    animation-delay: -5s;
}

.sunset-cloud.cloud-4 {
    font-size: 90px;
    top: 12%;
    right: 20%;
    filter: blur(5px) sepia(0.6) saturate(1.8) hue-rotate(0deg) brightness(0.6);
    opacity: 0.7;
    animation: sunsetCloudFloat4 28s ease-in-out infinite;
    animation-delay: -12s;
}

@keyframes sunsetCloudFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 5px) scale(1.03); }
}

@keyframes sunsetCloudFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 8px) scale(1.02); }
}

@keyframes sunsetCloudFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -5px); }
}

@keyframes sunsetCloudFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(-10px, 3px) scale(1.01); }
    70% { transform: translate(10px, -3px) scale(0.99); }
}

/* Ocean layer */
.ocean-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32%;
    background: linear-gradient(
        180deg,
        #3d5a80 0%,
        #293241 30%,
        #1d2d44 60%,
        #0d1b2a 100%
    );
}

/* Ocean sun reflection */
.ocean-reflection {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 100%;
    background: linear-gradient(
        180deg,
        #f9c74f 0%,
        #f8961e 10%,
        rgba(248, 150, 30, 0.6) 20%,
        rgba(248, 150, 30, 0.3) 35%,
        rgba(248, 150, 30, 0.1) 50%,
        transparent 70%
    );
    filter: blur(8px);
    opacity: 0.8;
    animation: reflectionShimmer 4s ease-in-out infinite;
}

@keyframes reflectionShimmer {
    0%, 100% { 
        opacity: 0.8; 
        transform: translateX(-50%) scaleX(1);
    }
    50% { 
        opacity: 0.6; 
        transform: translateX(-50%) scaleX(1.2);
    }
}

/* Wing tip SVG - hidden in new design */
.wing-tip {
    display: none;
}

/* Finale content */
.finale-content {
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    z-index: 5;
    text-align: center;
    padding: 1.5rem;
}

.finale-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: white;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.5rem;
}

.finale-tagline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    max-width: 320px;
    margin: 0 auto;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Credits */
.credits {
    position: absolute;
    bottom: 6%;
    left: 0.75rem;
    right: 0.75rem;
    text-align: center;
    z-index: 10;
}

.credits-title {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.35rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.credits-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    margin-bottom: 0.35rem;
}

.credit-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.credits-names {
    font-family: var(--font-display);
    font-size: 1rem;
    color: white;
    margin-bottom: 0.5rem;
}

.credits-separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.credits-prof {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.15rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.credits-year {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* ============================================
   SEAT SCREEN (Entertainment Screen)
   ============================================ */
.seat-screen {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: #0a0a0a;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.screen-bezel {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #1a1a1a;
}

/* Subtle screen reflection */
.screen-bezel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.02) 45%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.02) 55%,
        transparent 60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 100;
}

/* Screen header */
.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg, #1a1a1a, #111);
    border-bottom: 1px solid #222;
}

.screen-title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.screen-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.screen-controls-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Country select dropdown */
#country-select {
    padding: 0.4rem 0.75rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-body);
    cursor: pointer;
    min-width: 180px;
}

#country-select:hover {
    border-color: var(--accent-cyan);
}

#country-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* Routes control */
.routes-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

#max-routes {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
}

#max-routes::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
}

#routes-value {
    min-width: 24px;
    text-align: center;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ============================================
   MAP DISPLAY
   ============================================ */
.map-display {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%; /* 2:1 aspect ratio - more compact */
    max-height: 500px;
    background: 
        radial-gradient(ellipse at center, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

.map-display svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Loading indicator */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Info panel */
.info-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 260px;
    max-height: calc(100% - 2rem);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    overflow-y: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 50;
}

.info-panel.visible {
    opacity: 1;
    transform: translateX(0);
}

.info-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.info-panel .flag {
    font-size: 1.5rem;
}

.info-stat {
    margin-bottom: 0.75rem;
}

.info-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.info-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

/* ============================================
   SCREEN CONTROLS (Bottom)
   ============================================ */
.screen-controls-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 8px;
}

.control-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #444, #222);
    border: 2px solid #555;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: radial-gradient(circle at 30% 30%, #555, #333);
    border-color: #666;
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn svg {
    width: 16px;
    height: 16px;
}

.control-btn.reset {
    width: auto;
    padding: 0 1rem;
    border-radius: 18px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-spacer {
    flex: 1;
}

/* Control indicators (decorative dots) */
.control-indicator {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #333, #1a1a1a);
    border: 1px solid #444;
    border-radius: 50%;
}

.control-indicator.active {
    background: radial-gradient(circle at 30% 30%, var(--accent-cyan), #0e7490);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* ============================================
   MAP COUNTRY STYLES
   ============================================ */
.country {
    fill: #1e293b;
    stroke: #334155;
    stroke-width: 0.5px;
    cursor: pointer;
    transition: fill 0.3s;
}

.country:hover {
    fill: #334155;
}

.country.selected {
    fill: var(--accent-yellow);
    stroke: #466d5b;
    stroke-width: 1.5px;
}

.country.destination {
    fill: #466d5b;
    stroke: #466d5b;
    stroke-width: 1px;
}

/* Connection arcs */
.connection-arc {
    fill: none;
    stroke-width: 1.5px;
    stroke-linecap: round;
    opacity: 0.6;
    transition: opacity 0.2s, stroke-width 0.2s;
}

.connection-arc:hover {
    opacity: 1;
    stroke-width: 3px;
}

.connection-arc.selected-edge {
    stroke: #f97316 !important;
    stroke-width: 4px !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.6));
}

/* ============================================
   REGIONAL MAP CONTAINERS
   ============================================ */
.regional-map {
    /* These will show static/focused views */
}

/* ============================================
   TEAMMATE VISUALIZATION SECTION
   ============================================ */
.teammate-viz .screen-header {
    background: linear-gradient(180deg, #1a1a2e, #111122);
}

.teammate-viz .viz-placeholder {
    min-height: 450px;
}

/* ============================================
   EMBED CONTAINERS (Flourish, Tableau)
   ============================================ */
.viz-embed-container {
    width: 100%;
    min-height: 500px;
    background: #0a0a0f;
    border-radius: 8px;
    overflow: hidden;
}

.viz-embed-container .flourish-embed {
    width: 100%;
    min-height: 500px;
}

.viz-embed-container .tableauPlaceholder {
    width: 100% !important;
    min-height: 500px;
}

/* ============================================
   HUB CASE STUDY SECTION
   ============================================ */
.hub-display {
    padding: 2rem;
    background: linear-gradient(135deg, #0a0a0f 0%, #111827 100%);
    min-height: 400px;
}

.hub-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.hub-icon {
    font-size: 2.5rem;
}

.hub-title h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.hub-code {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
}

.hub-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.hub-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 8px;
}

.hub-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.25rem;
}

.hub-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hub-placeholder {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
}

.hub-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hub-placeholder .placeholder-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   GEMS & REMOTE DESTINATIONS
   ============================================ */
.gems-section-title {
    font-size: 1rem;
    color: white;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.remote-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.remote-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.2s ease;
}

.remote-item:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.2);
}

.remote-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.remote-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.remote-info h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: white;
    margin: 0;
}

.remote-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.remote-info strong {
    color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .hub-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hub-stat-value {
        font-size: 1.5rem;
    }
    
    .remote-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   ANIMATIONS FOR SCROLL EFFECTS
   ============================================ */
.glass-card {
    opacity: 0;
    transform: translateY(30px);
}

.glass-card.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

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

.seat-screen {
    opacity: 0;
    transform: scale(0.95);
}

.seat-screen.animate-in {
    animation: scaleIn 0.8s ease forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1024px) {
    .info-panel {
        position: static;
        width: 100%;
        max-height: none;
        margin-top: 1rem;
        transform: none;
        display: none;
    }
    
    .info-panel.visible {
        display: block;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .airplane-window {
        width: min(360px, 90vw);
        height: min(440px, 70vh);
        padding: 15px;
    }
    
    .window-frame {
        border-width: 14px;
    }
    
    .rivet {
        width: 8px;
        height: 8px;
    }
    
    .rivet-tl { top: 20px; left: 20px; }
    .rivet-tr { top: 20px; right: 20px; }
    .rivet-bl { bottom: 20px; left: 20px; }
    .rivet-br { bottom: 20px; right: 20px; }
    
    .screen-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .screen-controls-top {
        width: 100%;
        flex-wrap: wrap;
    }
    
    #country-select {
        flex: 1;
        min-width: 150px;
    }
    
    .seat-screen {
        padding: 12px;
        border-radius: 12px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .routes-control {
        display: none;
    }
    
    .info-panel {
        padding: 0.75rem;
    }
}

/* ============================================
   TOP 10 SIDEBAR + MAP COMBINED LAYOUT
   ============================================ */
.map-with-sidebar {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.top10-sidebar {
    flex: 0 0 15%;
    min-width: 180px;
    max-width: 220px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.sidebar-header h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
}

.sidebar-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-ranking {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    display: grid;
    grid-template-columns: 24px 24px 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
}

.sidebar-item.active {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

.sidebar-rank {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-align: center;
}

.sidebar-item:first-child .sidebar-rank {
    color: var(--accent-gold);
}

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

.sidebar-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item:hover .sidebar-name,
.sidebar-item.active .sidebar-name {
    color: white;
}

.sidebar-count {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.map-main {
    flex: 1;
    min-width: 0;
}

.map-main .seat-screen {
    height: 600px;
}

.map-main .map-display {
    height: 100%;
}

/* Responsive sidebar */
@media (max-width: 1024px) {
    .map-with-sidebar {
        flex-direction: column;
    }
    
    .top10-sidebar {
        flex: none;
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .sidebar-ranking {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
    
    .sidebar-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        justify-items: center;
        text-align: center;
        padding: 0.75rem 0.5rem;
    }
    
    .sidebar-rank {
        font-size: 0.65rem;
    }
    
    .sidebar-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .sidebar-ranking {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-main .seat-screen {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .sidebar-ranking {
        grid-template-columns: 1fr;
    }
    
    .sidebar-item {
        grid-template-columns: 24px 24px 1fr auto;
        grid-template-rows: 1fr;
        justify-items: start;
        text-align: left;
    }
}

/* ============================================
   COMPACT SECTIONS (Map + Hidden Gems)
   ============================================ */
.compact-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.compact-section .section-inner {
    gap: 1.5rem;
}

.compact-layout {
    gap: 1rem;
}

.compact-screen {
    height: 500px !important;
}

.compact-screen .screen-bezel {
    padding: 0.75rem;
}

/* ============================================
   COMPACT HIDDEN GEMS DISPLAY
   ============================================ */
.gems-screen {
    max-height: none;
}

.gems-screen .screen-bezel {
    padding: 1.25rem;
}

.compact-gems {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gems-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gems-section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gem Cards - Compact Grid */
.gem-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gem-card-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.gem-card-mini:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.gem-mini-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gem-flag {
    font-size: 1.75rem;
    line-height: 1;
}

.gem-mini-info {
    flex: 1;
    min-width: 0;
}

.gem-region-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-bottom: 0.25rem;
}

.gem-mini-info h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.gem-mini-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.gem-mini-stats .stat {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.gem-mini-stats .stat strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.gem-mini-insight {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Remote Cards - Compact Grid */
.remote-row {
    margin-top: 0.5rem;
}

.remote-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.remote-card-mini {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.remote-card-mini:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.remote-flag {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.remote-text {
    flex: 1;
    min-width: 0;
}

.remote-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.remote-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.remote-text em {
    color: var(--accent-cyan);
    font-style: normal;
    font-weight: 600;
}

/* Responsive Gems */
@media (max-width: 1200px) {
    .gem-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .remote-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gem-grid-compact,
    .remote-grid-compact {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   INTERACTIVE HUB SELECTOR
   ============================================ */
.hub-screen .screen-bezel {
    padding: 1.5rem;
}

.interactive-hub {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hub-selector {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow-x: auto;
}

.hub-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 80px;
}

.hub-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.hub-tab.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
}

.hub-tab .tab-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.hub-tab .tab-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.hub-tab.active .tab-label {
    color: var(--accent-cyan);
}

/* Hub Content */
.hub-content-wrapper {
    position: relative;
    min-height: 180px;
}

.hub-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.hub-content.active {
    display: block;
}

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

.hub-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hub-icon {
    font-size: 2rem;
    line-height: 1;
}

.hub-title h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.hub-code {
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.hub-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.hub-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.hub-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.25rem;
}

.hub-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.hub-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.hub-placeholder {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.hub-placeholder p {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin: 0 0 0.5rem 0;
}

.placeholder-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Responsive Hub */
@media (max-width: 768px) {
    .hub-selector {
        flex-wrap: wrap;
    }
    
    .hub-tab {
        flex: 0 0 calc(33.333% - 0.5rem);
    }
    
    .hub-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hub-title h4 {
        font-size: 1.25rem;
    }
}

/* ============================================
   NEXT STEPS SECTION
   ============================================ */
.next-steps-card {
    margin-top: 2rem;
}

.next-steps-card h2 {
    margin-bottom: 0.5rem;
}

.next-steps-card .lead-text {
    margin-bottom: 1.5rem;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.next-step {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.next-step:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

.step-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.5rem 0;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .next-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   COMPACT SECTIONS - Tighter vertical spacing
   ============================================ */
.compact-section {
    padding: 3rem 0;
}

.compact-section .section-inner {
    gap: 1.5rem;
}

.compact-section .intro-card {
    margin-bottom: 0.5rem;
}

.compact-layout .map-main .seat-screen {
    height: 500px;
}

.compact-screen {
    height: 600px !important;
}

/* ============================================
   COMPACT HIDDEN GEMS
   ============================================ */
.gems-screen {
    min-height: auto;
}

.gems-screen .screen-bezel {
    padding: 1.5rem;
}

.compact-gems {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gems-row {
    width: 100%;
}

.gems-row .gems-section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Well-Connected Grid - 4 columns */
.gem-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gem-card-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.gem-card-mini:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

/* Clickable indicator for gem cards */
.gem-card-mini[data-country],
.remote-card-mini[data-country] {
    cursor: pointer;
    position: relative;
}

.gem-card-mini[data-country]::after,
.remote-card-mini[data-country]::after {
    content: '→ View on map';
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 0.6rem;
    color: var(--accent-cyan);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gem-card-mini[data-country]:hover::after,
.remote-card-mini[data-country]:hover::after {
    opacity: 0.7;
}

.gem-mini-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gem-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.gem-mini-info {
    flex: 1;
    min-width: 0;
}

.gem-region-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.gem-mini-info h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.gem-mini-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.gem-mini-stats .stat {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.gem-mini-stats .stat strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.gem-mini-insight {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Remote Grid - 4 columns horizontal */
.remote-row {
    margin-top: 0.5rem;
}

.remote-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.remote-card-mini {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.875rem;
    transition: all 0.3s ease;
}

.remote-card-mini:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(168, 85, 247, 0.3);
}

.remote-flag {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.remote-text {
    flex: 1;
    min-width: 0;
}

.remote-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.remote-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.remote-text em {
    color: var(--accent-cyan);
    font-style: normal;
    font-weight: 500;
}

/* Responsive Gems */
@media (max-width: 1200px) {
    .gem-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .remote-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gem-grid-compact,
    .remote-grid-compact {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   INTERACTIVE HUB SELECTOR
   ============================================ */
.hub-screen .screen-bezel {
    padding: 1.5rem;
}

.interactive-hub {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hub-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.8rem;
}

.hub-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.hub-tab.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--accent-cyan);
    color: white;
}

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

.tab-label {
    font-weight: 500;
}

/* Hub Content Wrapper */
.hub-content-wrapper {
    position: relative;
    min-height: 200px;
}

.hub-content {
    display: none;
    animation: hubFadeIn 0.3s ease;
}

.hub-content.active {
    display: block;
}

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

.hub-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hub-icon {
    font-size: 2rem;
    line-height: 1;
}

.hub-title h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.hub-code {
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.hub-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hub-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.hub-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.25rem;
}

.hub-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.hub-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.hub-placeholder {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.hub-placeholder p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.hub-placeholder .placeholder-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Hub Responsive */
@media (max-width: 768px) {
    .hub-selector {
        gap: 0.375rem;
    }
    
    .hub-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .tab-flag {
        font-size: 0.9rem;
    }
    
    .hub-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hub-title h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hub-tab .tab-label {
        display: none;
    }
    
    .hub-tab {
        padding: 0.625rem;
    }
}

/* ============================================
   HUB MULTISELECT SYSTEM
   ============================================ */
.hub-selector-multi {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.selector-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.select-all-btn {
    padding: 0.4rem 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 6px;
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-all-btn:hover {
    background: rgba(6, 182, 212, 0.2);
}

.hub-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hub-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.hub-checkbox input {
    display: none;
}

.hub-checkbox:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.hub-checkbox.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--accent-cyan);
}

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

.checkbox-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.checkbox-region {
    font-size: 0.65rem;
    color: var(--text-muted);
    padding: 0.1rem 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.hub-checkbox.active .checkbox-region {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
}

/* Comparison Display */
.hub-comparison-wrapper {
    margin-bottom: 1.5rem;
}

.comparison-title {
    text-align: center;
    margin-bottom: 1rem;
}

.comparison-title h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
}

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

/* Hub Cards Grid */
.hub-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
}

.hub-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.875rem;
    transition: all 0.3s ease;
}

.hub-card.hidden {
    display: none;
}

.hub-card.visible {
    animation: cardFadeIn 0.3s ease;
}

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

.hub-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
}

.hub-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.hub-card-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.hub-card-info {
    flex: 1;
    min-width: 0;
}

.hub-card-info strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-card-info span {
    font-size: 0.65rem;
    color: var(--accent-cyan);
}

.hub-card-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.375rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.mini-value {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.mini-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Flourish Chart Container */
.hub-flourish-chart {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.hub-flourish-chart .flourish-embed {
    min-height: 400px;
}

.chart-credit {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Hub Cards Responsive */
@media (max-width: 1200px) {
    .hub-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hub-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hub-checkboxes {
        justify-content: center;
    }
    
    .comparison-title h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hub-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .hub-checkbox {
        padding: 0.4rem 0.6rem;
    }
    
    .checkbox-region {
        display: none;
    }
}
