/* ==========================================
   LEVANT VACC - MODERN REDESIGN STYLESHEET
   Matching Controller Dashboard Theme
   ========================================== */

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --flag-red: #C8102E;
    --flag-white: #F7FAFF;
    --flag-green: #1B5E3C;
    --flag-black: #070B12;
    --primary-red: #C8102E;
    --primary-red-dark: #E63946;
    --secondary-red: #FF4D57;
    --dark-bg: #070B12;
    --dark-bg-secondary: #0E1624;
    --dark-bg-tertiary: #111C2E;
    --card-bg: rgba(17, 28, 46, 0.75);
    --card-bg-hover: rgba(17, 28, 46, 0.9);
    --text-primary: #D9E1EA;
    --text-secondary: #9FB3C8;
    --text-muted: #6B859E;
    --border-color: rgba(200, 16, 46, 0.35);
    --border-color-subtle: rgba(217, 225, 234, 0.08);
    --success: #2E8B57;
    --success-dark: #1B5E3C;
    --success-glow: #3CB371;
    --gold: #D4AF37;
    --gold-muted: #C9A227;
    --gold-highlight: #FFD700;
    --warning: #D4AF37;
    --radar-glow: 0 0 12px rgba(200, 16, 46, 0.35);

    /* Compatibility aliases for older page-level styles */
    --bg-primary: var(--dark-bg);
    --bg-secondary: var(--dark-bg-secondary);
    --bg-tertiary: var(--dark-bg-tertiary);
    --hover-bg: rgba(255, 255, 255, 0.04);
    --accent-color: var(--primary-red);
}

/* Light Theme */
[data-theme="light"] {
    --primary-red: #d32f2f;
    --primary-red-dark: #b71c1c;
    --secondary-red: #e53935;
    --dark-bg: #f5f5f5;
    --dark-bg-secondary: #ffffff;
    --dark-bg-tertiary: #fafafa;
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-bg-hover: rgba(250, 250, 250, 0.98);
    --text-primary: #212121;
    --text-secondary: #424242;
    --text-muted: #757575;
    --border-color: rgba(211, 47, 47, 0.3);
    --border-color-subtle: rgba(0, 0, 0, 0.08);
    --success: #388e3c;
    --warning: #f57c00;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(120deg, rgba(200,16,46,0.12) 0%, rgba(247,250,255,0.02) 34%, rgba(27,94,60,0.12) 68%, rgba(7,11,18,0.98) 100%),
        linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-secondary) 50%, var(--dark-bg-tertiary) 100%);
    background-color: #070B12;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: 'Inter', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', 'Rajdhani', 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--radar-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(211, 47, 47, 0.6);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.brand span {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-link:hover {
    background: linear-gradient(90deg, rgba(200,16,46,0.14) 0%, rgba(255,255,255,0.08) 35%, rgba(46,139,87,0.12) 68%, rgba(7,11,18,0.12) 100%);
    color: var(--text-primary);
    box-shadow: var(--radar-glow);
}

.nav-link.login-link {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.nav-link.login-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.dropdown-arrow {
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200,16,46,0.15);
    border-radius: 12px;
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

[data-theme="light"] .dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.theme-toggle svg {
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(200,16,46,0.16) 0%, rgba(27,94,60,0.08) 45%, transparent 72%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(7,11,18,0.88) 0%, rgba(14,22,36,0.72) 45%, rgba(27,94,60,0.2) 100%);
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 245, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 0 1rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(211, 47, 47, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color-subtle);
    color: var(--text-primary);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

.btn-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-link:hover {
    gap: 0.75rem;
    color: var(--primary-red-dark);
}

/* ==========================================
   SECTIONS
   ========================================== */
[data-theme="light"] .countries-section,
[data-theme="light"] .faqs-section {
    background: rgba(0, 0, 0, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-title .highlight {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.fir-status-banner {
    border-top: 1px solid rgba(200,16,46,0.2);
    border-bottom: 1px solid rgba(200,16,46,0.2);
}

.fir-status-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.fir-status-main {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.4px;
}

.fir-status-meta {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.ops-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 0.8rem;
    padding: 0.9rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(200,16,46,0.18);
}

.ops-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(7,11,18,0.62), rgba(14,22,36,0.55));
    border: 1px solid rgba(200,16,46,0.12);
    min-height: 68px;
    justify-content: center;
}

.ops-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ops-value {
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
}

.status-score-section,
.coverage-visibility-section,
.prestige-section,
.radar-map-section {
    padding: 5rem 0;
}

.status-score-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.status-score-card {
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(200,16,46,0.22);
}

.score-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.score-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 14px rgba(200,16,46,0.25);
}

.coverage-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.coverage-item {
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid rgba(200,16,46,0.18);
    min-height: 110px;
}

.coverage-callsign {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.coverage-controller {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.35rem 0;
}

.coverage-time {
    color: var(--success-glow);
    font-size: 0.85rem;
    font-weight: 600;
}

.prestige-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.prestige-card {
    border-radius: 14px;
    padding: 1rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(200,16,46,0.2);
    min-height: 178px;
}

.prestige-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 12px rgba(200,16,46,0.35);
}

.prestige-rank {
    position: absolute;
    right: 0.8rem;
    top: 0.8rem;
    color: var(--gold-highlight);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

.prestige-card h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
    color: var(--flag-white);
}

.prestige-rating {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.prestige-metrics {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.86rem;
    margin-bottom: 0.55rem;
}

.prestige-achievements {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.radar-map {
    position: relative;
    min-height: 360px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(46,139,87,0.08) 0%, rgba(7,11,18,0.85) 55%),
        repeating-radial-gradient(circle at center, rgba(159,179,200,0.06) 0 2px, transparent 2px 42px),
        linear-gradient(180deg, rgba(14,22,36,0.9), rgba(7,11,18,1));
}

.radar-sweep {
    position: absolute;
    width: 180%;
    height: 180%;
    top: -40%;
    left: -40%;
    background: conic-gradient(from 0deg, rgba(200,16,46,0) 0deg, rgba(200,16,46,0.32) 22deg, rgba(200,16,46,0) 34deg);
    animation: radarSweep 6.5s linear infinite;
}

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sector-boundary {
    position: absolute;
    border: 1px dashed rgba(200,16,46,0.35);
    border-radius: 14px;
}

.boundary-1 { inset: 16% 12% 38% 12%; }
.boundary-2 { inset: 45% 20% 10% 20%; }

.coverage-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(46,139,87,0.5);
    box-shadow: 0 0 18px rgba(60,179,113,0.2);
}

.circle-1 { width: 170px; height: 170px; top: 26%; left: 20%; }
.circle-2 { width: 210px; height: 210px; top: 18%; right: 16%; }
.circle-3 { width: 160px; height: 160px; bottom: 10%; left: 42%; }

.aircraft-trail {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,215,0,0.8), rgba(255,255,255,0));
    border-radius: 99px;
    animation: trailMove 5s ease-in-out infinite;
}

.trail-1 { width: 130px; top: 32%; left: 40%; animation-delay: 0s; }
.trail-2 { width: 110px; top: 56%; left: 24%; animation-delay: 1.2s; }
.trail-3 { width: 140px; top: 68%; right: 20%; animation-delay: 2.1s; }

@keyframes trailMove {
    0%, 100% { transform: translateX(0); opacity: 0.45; }
    50% { transform: translateX(24px); opacity: 1; }
}

.map-legend {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    background: rgba(7,11,18,0.7);
    border: 1px solid rgba(200,16,46,0.16);
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
}

.status-key {
    margin: 1rem 0 2rem;
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-key-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.status-key-item strong {
    color: var(--flag-white);
    font-weight: 700;
}

.status-key-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-key-dot-online {
    background: var(--success-glow);
    box-shadow: 0 0 8px rgba(60,179,113,0.7);
}

.status-key-dot-offline {
    background: #9e9e9e;
    opacity: 0.9;
}

.who-online-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(7,11,18,0.98) 0%, rgba(14,22,36,0.94) 60%, rgba(17,28,46,0.9) 100%);
    border-top: 1px solid rgba(200,16,46,0.2);
    border-bottom: 1px solid rgba(27,94,60,0.24);
}

.who-online-header {
    margin-bottom: 2rem;
}

.who-online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    min-height: 120px;
}

.who-online-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.who-online-loading-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.who-online-links {
    margin-top: 2rem;
    text-align: center;
}

.who-online-links a {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.9rem;
}

.who-online-links span {
    color: var(--text-muted);
    margin: 0 0.8rem;
}

.who-online-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.who-online-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.45;
}

.who-online-empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--flag-white);
}

.who-online-empty-sub {
    font-size: 0.9rem;
    opacity: 0.9;
}

.who-online-empty-sub a {
    color: var(--primary-red);
}

.who-online-card {
    background: linear-gradient(145deg, rgba(17,28,46,0.82), rgba(7,11,18,0.78));
    border: 1px solid rgba(200,16,46,0.2);
    border-left: 3px solid var(--primary-red);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 130px;
}

.who-online-card-top,
.who-online-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.who-online-callsign {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.4px;
    color: var(--flag-white);
}

.who-online-rating {
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
}

.who-online-name {
    color: var(--text-secondary);
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.who-online-position {
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
}

.who-online-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.fly-levant-hero {
    padding: 4rem 0;
    background: linear-gradient(125deg, rgba(200,16,46,0.18) 0%, rgba(247,250,255,0.03) 45%, rgba(27,94,60,0.16) 76%, rgba(7,11,18,0.90) 100%);
    border-bottom: 1px solid rgba(200,16,46,0.20);
}

.fly-levant-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

.fly-card {
    border-radius: 16px;
    padding: 1.25rem;
}

/* ==========================================
   COUNTRIES SECTION
   ========================================== */
.countries-section {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.country-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color-subtle);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Make cards position-relative so footer label can be absolutely positioned */
.country-card {
    position: relative;
    padding-bottom: 3.5rem; /* room for footer label */
}

.country-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
    box-shadow: var(--radar-glow);
}

.country-flag {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.country-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.country-icao {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Small italic ICAO footer label */
.current-icao {
    color: #b0bec5;
    font-size: 0.85rem;
    font-style: italic;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.75rem;
    font-weight: 600;
}

.country-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.atc-positions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.atc-position {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.atc-position.online {
    background: rgba(0, 255, 136, 0.06);
    border-color: #00ff88;
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.15);
}

.position-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9e9e9e;
    box-shadow: none;
    transition: all 0.3s ease;
}

.status-indicator.offline {
    background: #9e9e9e;
    box-shadow: none;
    opacity: 0.9;
}

.status-indicator.online {
    background: var(--success-glow);
    box-shadow: 0 0 12px rgba(60, 179, 113, 0.6);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 12px rgba(60,179,113,0.6); }
    50% { box-shadow: 0 0 20px rgba(60,179,113,0.9); }
}

/* High specificity fallback to override any conflicting rules from other stylesheets */
.atc-position.online {
    background: rgba(0, 255, 136, 0.06) !important;
    border-color: #00ff88 !important;
    box-shadow: 0 0 18px rgba(0,255,136,0.12) !important;
}

.atc-position.online .status-indicator,
.status-indicator.online {
    background: #00ff88 !important;
    box-shadow: 0 0 12px rgba(0,255,136,0.6) !important;
    animation: pulse-green 2s infinite !important;
}

.status-indicator.offline {
    background: #9e9e9e !important;
    box-shadow: none !important;
    opacity: 0.9 !important;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.8);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 0, 85, 1);
    }
}

.country-stats {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.country-stats span {
    padding: 0.5rem 1rem;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-red);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
    padding: 8rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color-subtle);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.2), rgba(211, 47, 47, 0.1));
    border: 2px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    color: var(--primary-red);
}

.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 700;
}

/* ==========================================
   FAQS SECTION
   ========================================== */
.faqs-section {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.faqs-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: var(--border-color);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 2rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-answer ul {
    list-style: none;
    margin-top: 1rem;
}

.faq-answer ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.faq-answer ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-red);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 8rem 0;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin: 0 auto;
    justify-items: center;
}

.social-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200,16,46,0.15);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    max-width: 280px;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
    box-shadow: var(--radar-glow);
}

.btn:hover,
.feature-card:hover,
.faq-item:hover,
.sotw-card:hover {
    box-shadow: var(--radar-glow);
}

.glass-panel {
    background: rgba(17, 28, 46, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200,16,46,0.15);
}

.radar-glow {
    box-shadow: var(--radar-glow);
}

.gold-accent {
    color: var(--gold);
}

.fir-pulse-border {
    position: relative;
    overflow: hidden;
}

.fir-pulse-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(200,16,46,0.45);
    border-radius: inherit;
    animation: firPulse 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes firPulse {
    0%, 100% { opacity: 0.35; box-shadow: 0 0 8px rgba(200,16,46,0.25); }
    50% { opacity: 1; box-shadow: 0 0 24px rgba(200,16,46,0.45); }
}

.social-card.youtube:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(211, 47, 47, 0.1));
    border-color: #ff0000;
}

.social-card.instagram:hover {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(253, 29, 29, 0.1));
    border-color: #e1306c;
}

.social-card.discord:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(88, 101, 242, 0.08));
    border-color: #5865f2;
}

.social-card.twitch:hover {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.12), rgba(145, 70, 255, 0.08));
    border-color: #9146ff;
}

.social-icon {
    width: 44px;
    height: 44px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
}

.social-card.youtube .social-icon svg {
    color: #ff0000;
}

.social-card.instagram .social-icon svg {
    color: #e1306c;
}

.social-card.discord .social-icon img {
    width: 48px;
    height: 48px;
}

.social-card.twitch .social-icon img {
    width: 48px;
    height: 48px;
}

.social-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.social-card p {
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.social-handle {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary-red);
    font-size: 0.85rem;
}

/* Screenshot of the Week */
.sotw-section {
    padding: 6rem 0 7rem;
}

.sotw-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color-subtle);
    border-radius: 18px;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.sotw-image {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 1rem;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

.sotw-image.loaded {
    align-items: stretch;
    justify-content: flex-start;
}

.sotw-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

#screenshot-loading {
    color: var(--text-muted);
    font-style: italic;
    margin: 1rem 0 0;
}

.sotw-caption {
    margin: 1rem 0 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.sotw-actions {
    display: flex;
    justify-content: center;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 2px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.footer-logo span {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================
   HAMBURGER / MOBILE NAV
   ========================================== */
.nav-link.active {
    color: #fff;
    background: rgba(211, 47, 47, 0.12);
    border-radius: 10px;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.nav-hamburger:hover {
    border-color: rgba(211, 47, 47, 0.5);
}

.ham-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #e8eaf6;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animate to × when open */
.nav-hamburger.is-open .ham-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open .ham-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.is-open .ham-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Show hamburger, hide on desktop */
    .nav-hamburger {
        display: flex;
    }

    .nav-wrapper {
        flex-wrap: wrap;
        gap: 0;
        padding: 0.75rem 0;
    }

    /* Mobile menu — hidden off-screen by default, slides down when open */
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        padding: 0.5rem 0 1rem;
        border-top: 1px solid rgba(255,255,255,0.06);
        margin-top: 0.5rem;
    }

    .nav-menu.nav-open {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 8px;
    }

    /* Mobile dropdowns */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.03);
        border-radius: 8px;
        margin: 0 0 0 1rem;
        padding: 0;
        transition: max-height 0.3s ease, visibility 0s 0.3s;
    }

    .dropdown-open .dropdown-menu {
        visibility: visible;
        max-height: 400px;
        transition: max-height 0.3s ease, visibility 0s;
    }

    /* Disable hover-based dropdown on mobile */
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: hidden;
        max-height: 0;
    }

    .dropdown.dropdown-open:hover .dropdown-menu,
    .dropdown.dropdown-open .dropdown-menu {
        visibility: visible;
        max-height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .countries-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .social-card {
        align-items: flex-start;
    }

    .sotw-card {
        padding: 1.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .ops-stats-bar {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .status-score-grid {
        grid-template-columns: 1fr;
    }

    .fly-levant-grid {
        grid-template-columns: 1fr;
    }

    .radar-map {
        min-height: 280px;
    }

    .status-key {
        gap: 0.9rem;
    }

    .who-online-links {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .who-online-links span {
        display: none;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .brand {
        font-size: 1.1rem;
    }
    
    .brand img {
        width: 35px;
        height: 35px;
    }

    .sotw-image img {
        max-height: 300px;
    }
}

/* Team Section Styles */
.team-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-card:nth-last-child(-n+3):nth-child(5n+1) {
    grid-column: 2;
}

.team-card:nth-last-child(-n+3):nth-child(5n+2) {
    grid-column: 3;
}

.team-card:nth-last-child(-n+3):nth-child(5n+3) {
    grid-column: 4;
}

.team-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color-subtle);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-card-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.team-card-role {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.team-card-vatsim {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-family: 'Courier New', monospace;
}

.team-card-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color-subtle);
}

.loading, .no-members, .error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.error {
    color: var(--accent-color);
}
