/* ============================================================
   WorldWings Virtual — Premium Modern Design
   ============================================================ */

:root {
    --navy:       #090d84;
    --blue:       #004aad;
    --electric:   #2181fa;
    --cyan:       #1dcee5;
    --dark:       #111e4e;
    --darker:     #0d1840;
    --card-bg:    rgba(255,255,255,0.05);
    --card-hover: rgba(255,255,255,0.08);
    --border:     rgba(33,129,250,0.2);
    --border-glow:rgba(29,206,229,0.4);
    --text:       #ffffff;
    --text-sec:   rgba(255,255,255,0.65);
    --text-muted: rgba(255,255,255,0.38);
    --radius:     14px;
    --radius-lg:  22px;
    --radius-xl:  32px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --ease: cubic-bezier(0.4,0,0.2,1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: #04060f;
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: var(--electric); text-decoration: none; }
ul  { list-style: none; }

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d1840; }
::-webkit-scrollbar-thumb { background: var(--electric); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* === PAGE LOADER === */
#page-loader {
    position: fixed;
    inset: 0;
    background: #04060f;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { height: 70px; animation: float 2s ease-in-out infinite; filter: drop-shadow(0 0 20px rgba(33,129,250,0.8)); }
.loader-bar {
    width: 180px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.loader-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--navy), var(--electric), var(--cyan));
    border-radius: 2px;
    animation: loader-fill 1.4s var(--ease) forwards;
}
@keyframes loader-fill { from { width: 0; } to { width: 100%; } }

/* === BACKGROUND ORBS === */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    animation: orb-drift 20s ease-in-out infinite;
}
.orb-1 { width: 700px; height: 700px; background: var(--navy);    top: -250px; left: -200px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: var(--blue);    top: 40%;   right: -150px; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: var(--electric);bottom: 5%;  left: 25%;   animation-delay: -14s; animation-duration: 25s; }

@keyframes orb-drift {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px,-40px) scale(1.08); }
    66%      { transform: translate(-30px,30px) scale(0.95); }
}

/* === UTILITIES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 110px 0; position: relative; z-index: 1; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 18px;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 24px; height: 1px;
    background: var(--cyan);
}

.section-header { text-align: center; max-width: 660px; margin: 0 auto 72px; }

.section-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}

.section-subtitle { font-size: 16px; color: var(--text-sec); line-height: 1.75; }

.text-gradient {
    background: linear-gradient(135deg, var(--electric) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === ANIMATED GRADIENT BORDER === */
.glow-border {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
}
.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--angle, 0deg),
        var(--navy) 0%,
        var(--electric) 25%,
        var(--cyan) 50%,
        var(--electric) 75%,
        var(--navy) 100%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.glow-border:hover::before { opacity: 1; animation: border-spin 3s linear infinite; }

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes border-spin { to { --angle: 360deg; } }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s ease;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
    background: linear-gradient(135deg, var(--electric) 0%, var(--navy) 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(33,129,250,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(33,129,250,0.55), 0 0 0 1px rgba(33,129,250,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    color: #fff;
}
.btn-primary:active { transform: translateY(-1px); }

.btn-outline {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    background: rgba(33,129,250,0.12);
    border-color: var(--electric);
    color: var(--electric);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(33,129,250,0.2);
}

.btn-lg { padding: 18px 40px; font-size: 16px; }

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.5s var(--ease);
}
.navbar.scrolled {
    background: rgba(4,6,15,0.92);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    padding: 14px 0;
    border-bottom: 1px solid rgba(33,129,250,0.15);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; transition: transform 0.3s ease; }
.nav-logo:hover { transform: scale(1.05); }
.logo-img { height: 46px; width: auto; filter: drop-shadow(0 0 12px rgba(33,129,250,0.5)); }

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-link {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.25s ease;
    position: relative;
}
.nav-link::after { display: none; }
.nav-link:hover {
    color: #fff;
    background: rgba(33,129,250,0.18);
    border-color: rgba(33,129,250,0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(33,129,250,0.2);
}
.nav-link.active {
    color: #fff;
    background: rgba(33,129,250,0.22);
    border-color: rgba(33,129,250,0.5);
}

.nav-cta {
    background: linear-gradient(135deg, var(--electric), var(--navy));
    color: #fff !important;
    padding: 9px 22px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(33,129,250,0.35);
    margin-left: 8px;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33,129,250,0.5);
    color: #fff !important;
}
.nav-cta::after { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 101;
}
.nav-toggle span {
    display: block;
    width: 26px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(4,6,15,0.5)  0%,
        rgba(9,13,132,0.3) 40%,
        rgba(4,6,15,0.85)  100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 28px 80px;
    max-width: 860px;
}

/* Radar ring */
.hero-radar {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    z-index: 1;
    pointer-events: none;
}
.hero-radar::before, .hero-radar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(33,129,250,0.12);
}
.hero-radar::after {
    inset: 80px;
    border-color: rgba(29,206,229,0.1);
    animation: radar-ping 3s ease-out infinite;
}
@keyframes radar-ping {
    0%   { opacity: 0.6; transform: scale(0.8); }
    100% { opacity: 0;   transform: scale(1.4); }
}

/* Plane that flies across */
.hero-plane {
    position: absolute;
    z-index: 2;
    top: 35%;
    left: -80px;
    animation: fly-across 12s linear infinite;
    opacity: 0.7;
    pointer-events: none;
}
.hero-plane svg { color: rgba(29,206,229,0.85); filter: drop-shadow(0 0 8px rgba(29,206,229,0.6)); }

@keyframes fly-across {
    0%   { left: -80px; top: 35%; opacity: 0; }
    5%   { opacity: 0.7; }
    95%  { opacity: 0.7; }
    100% { left: calc(100% + 80px); top: 30%; opacity: 0; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(29,206,229,0.08);
    border: 1px solid rgba(29,206,229,0.25);
    color: var(--cyan);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 36px;
    backdrop-filter: blur(10px);
    animation: fade-up 0.8s var(--ease) 0.3s both;
}
.badge-dot {
    width: 7px; height: 7px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(29,206,229,0.8);
    animation: live-pulse 1.5s ease infinite;
}
@keyframes live-pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 8px rgba(29,206,229,0.8); }
    50%      { opacity: 0.4; box-shadow: 0 0 2px rgba(29,206,229,0.3); }
}

.hero-logo {
    height: 120px;
    width: auto;
    margin: 0 auto 36px;
    filter: drop-shadow(0 0 40px rgba(33,129,250,0.6)) drop-shadow(0 0 80px rgba(9,13,132,0.4));
    animation: float 4s ease-in-out infinite, fade-up 1s var(--ease) 0.5s both;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(38px, 6.5vw, 78px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 24px;
    animation: fade-up 1s var(--ease) 0.7s both;
}
.hero-title-line { display: block; }
.hero-title-accent {
    background: linear-gradient(135deg, var(--electric) 0%, var(--cyan) 60%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
    0%,100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 19px);
    color: rgba(255,255,255,0.62);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.75;
    animation: fade-up 1s var(--ease) 0.9s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-up 1s var(--ease) 1.1s both;
}

.hero-scroll {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fade-in 1s ease 1.5s both;
    transition: color 0.3s ease;
}
.hero-scroll:hover { color: var(--cyan); }
.hero-scroll span { display: block; }
.hero-scroll svg { animation: bounce 2s ease infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }

/* === STATS BAR === */
.stats-bar {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    padding: 0;
}
.stats-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    divide-x: 1px solid var(--border);
}
.stat-item {
    padding: 28px 32px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
    transition: background 0.3s ease;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.08); }
.stat-num {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--electric), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-lbl {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* === ANIMATIONS === */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fade-left {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fade-right {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.from-left  { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.scale      { transform: scale(0.92); }
.reveal.visible    { opacity: 1; transform: translate(0) scale(1); }

/* Stagger children */
.stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.stagger.visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.12s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.24s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.36s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:0.48s; }

/* === FLIGHTS SECTION === */
.flights-section { background: transparent; }
.flights-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--electric) 50%, transparent 100%);
}

.flights-board {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border), 0 40px 80px rgba(0,0,0,0.35), 0 0 40px rgba(33,129,250,0.05);
    background: rgba(7,11,31,0.75);
    backdrop-filter: blur(20px);
}

.board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    background: linear-gradient(135deg, rgba(9,13,132,0.35), rgba(33,129,250,0.1));
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 14px;
}

.board-tabs { display: flex; gap: 8px; }
.board-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: var(--text-sec);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.board-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--electric), var(--navy));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.board-tab:hover { color: var(--text); border-color: var(--electric); }
.board-tab.active {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(33,129,250,0.4);
}
.board-tab.active::before { opacity: 1; }
.board-tab span { position: relative; z-index: 1; }
.board-tab svg  { position: relative; z-index: 1; }

.board-meta { display: flex; align-items: center; gap: 14px; }
.update-clock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}
.clock-dot {
    width: 6px; height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(34,197,94,0.7);
    animation: live-pulse 1.5s ease infinite;
}

.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-sec);
    cursor: pointer;
    transition: all 0.3s ease;
}
.refresh-btn:hover { background: rgba(33,129,250,0.12); color: var(--electric); border-color: var(--electric); }
.refresh-btn.spinning svg { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.flights-content { padding: 28px; background: transparent; }
.flights-tab { display: none; animation: fade-in 0.4s ease; }
.flights-tab.active { display: block; }

.table-wrap { overflow-x: auto; }
.flights-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.flights-table th {
    text-align: left;
    padding: 12px 18px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.flights-table td {
    padding: 15px 18px;
    color: var(--text-sec);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s ease;
}
.flights-table tbody tr {
    transition: background 0.2s ease;
    cursor: default;
}
.flights-table tbody tr:hover td {
    background: rgba(33,129,250,0.07);
    color: var(--text);
}
.flights-table tr:last-child td { border-bottom: none; }
.flights-table td:first-child {
    font-weight: 800;
    color: var(--electric);
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 0.06em;
}
.flights-table td:first-child:not([colspan])::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--electric);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 6px rgba(33,129,250,0.7);
    animation: live-pulse 2s ease infinite;
    vertical-align: middle;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: capitalize;
}
.status-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.status-enroute  { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.status-boarding { background: rgba(33,129,250,0.12); color: var(--electric); border: 1px solid rgba(33,129,250,0.2); }
.status-departed { background: rgba(29,206,229,0.12); color: var(--cyan); border: 1px solid rgba(29,206,229,0.2); }
.status-default  { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.08); }

.table-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-muted);
}
.table-empty svg { margin: 0 auto 16px; opacity: 0.3; }
.table-empty p { font-size: 14px; }

.table-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 56px;
    color: var(--text-muted);
    font-size: 14px;
}
.dot-loader { display: flex; gap: 6px; }
.dot-loader span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--electric);
    animation: dot-bounce 1.4s ease infinite;
}
.dot-loader span:nth-child(2) { animation-delay: 0.2s; }
.dot-loader span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce { 0%,80%,100%{transform:scale(0.6);opacity:0.4} 40%{transform:scale(1);opacity:1} }

/* === ABOUT === */
.about-section { background: transparent; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.about-image { position: relative; }
.about-img-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.about-img-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--navy), var(--electric), var(--cyan), var(--navy));
    border-radius: var(--radius-xl);
    z-index: -1;
    background-size: 300% 300%;
    animation: gradient-shift 5s ease infinite;
}
.about-img-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: calc(var(--radius-xl) - 2px);
    display: block;
}
.about-img-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, rgba(9,13,132,0.4) 0%, transparent 70%);
    z-index: -2;
    border-radius: 50%;
    filter: blur(20px);
}

.about-badge {
    position: absolute;
    bottom: -24px; right: -24px;
    background: rgba(4,6,15,0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(29,206,229,0.1);
}
.about-badge-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--navy), var(--electric));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    flex-shrink: 0;
}
.about-badge strong { display: block; font-size: 15px; font-weight: 700; }
.about-badge span { font-size: 12px; color: var(--text-sec); }

.about-text .section-label,
.about-text .section-title { text-align: left; }
.about-text .section-title { margin-bottom: 28px; }

.about-text p { color: var(--text-sec); margin-bottom: 16px; line-height: 1.8; }
.about-text p strong { color: var(--electric); font-weight: 600; }

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 28px 0 36px;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: default;
}
.highlight-item:hover {
    background: rgba(33,129,250,0.08);
    border-color: var(--electric);
    transform: translateX(6px);
}
.highlight-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, rgba(9,13,132,0.6), rgba(33,129,250,0.3));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    flex-shrink: 0;
}
.highlight-item strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.highlight-item span { font-size: 12px; color: var(--text-muted); }

/* === RULES SECTION === */
.rules-section { background: rgba(9,13,60,0.4); }
.rules-section::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.rule-card {
    position: relative;
    background: rgba(7,11,31,0.7);
    border: 1px solid rgba(33,129,250,0.15);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    cursor: default;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}
.rule-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: conic-gradient(from var(--angle,0deg), var(--navy), var(--electric), var(--cyan), var(--navy));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.rule-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 24px rgba(33,129,250,0.1); }
.rule-card:hover::before { opacity: 0.6; animation: border-spin 4s linear infinite; }

.rule-glow {
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(33,129,250,0.08) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
    pointer-events: none;
}
.rule-card:hover .rule-glow { background: radial-gradient(circle, rgba(29,206,229,0.1) 0%, transparent 70%); transform: scale(1.3); }

.rule-num {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(33,129,250,0.5), rgba(29,206,229,0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    letter-spacing: -0.05em;
}
.rule-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}
.rule-card:hover h3 { color: var(--cyan); }
.rule-card p { font-size: 14px; color: var(--text-sec); line-height: 1.7; }

.rules-cta { text-align: center; margin-top: 52px; }

/* === CTA BANNER === */
.cta-banner {
    position: relative;
    padding: 110px 28px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(160deg, #06081e 0%, #0a0f3d 40%, #060c2a 100%);
    border-top: 1px solid rgba(33,129,250,0.15);
    color: #fff;
}
.cta-bg-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 60%;
    opacity: 0.1;
    z-index: 0;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--electric), transparent);
}
.cta-glow {
    position: absolute;
    width: 700px; height: 400px;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    background: radial-gradient(ellipse, rgba(9,13,132,0.5) 0%, rgba(0,74,173,0.25) 40%, transparent 70%);
    pointer-events: none;
    animation: cta-pulse 4s ease infinite;
}
@keyframes cta-pulse {
    0%,100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
    50%      { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
}
.cta-glow { z-index: 1; }
.cta-banner-content { position: relative; z-index: 2; max-width: 580px; margin: 0 auto; }
.cta-banner h2 {
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 18px; margin-bottom: 40px; line-height: 1.6; }
.cta-networks {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 36px;
}
.network-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    background: rgba(33,129,250,0.15);
    border: 1px solid rgba(33,129,250,0.5);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(33,129,250,0.15);
}
.network-badge:hover {
    background: rgba(29,206,229,0.18);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 28px rgba(29,206,229,0.25);
    transform: translateY(-2px);
}
.network-badge svg { color: var(--cyan); }

/* === PAGE HERO === */
.page-hero {
    position: relative;
    padding: 170px 0 90px;
    background: var(--darker);
    text-align: center;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 90% at 50% 0%, rgba(9,13,132,0.6) 0%, transparent 65%),
        radial-gradient(ellipse 30% 40% at 50% 100%, rgba(33,129,250,0.08) 0%, transparent 60%);
}
.page-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(33,129,250,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33,129,250,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(34px, 5.5vw, 62px);
    font-weight: 900;
    letter-spacing: -0.025em;
    margin: 18px 0;
    animation: fade-up 0.8s var(--ease) both;
}
.page-hero p {
    font-size: 17px;
    color: var(--text-sec);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fade-up 0.8s var(--ease) 0.15s both;
}

/* === RULES PAGE === */
.rules-full { background: var(--darker); }
.rules-container { max-width: 820px; }

.rule-block {
    margin-bottom: 24px;
    background: rgba(7,11,31,0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rule-block:hover { border-color: rgba(33,129,250,0.35); box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(33,129,250,0.07); }

.rule-block-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 36px;
    background: linear-gradient(135deg, rgba(9,13,132,0.3), rgba(33,129,250,0.1));
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.3s ease;
}
.rule-block-header:hover { background: linear-gradient(135deg, rgba(9,13,132,0.45), rgba(33,129,250,0.18)); }

.rule-block-num {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--electric);
    background: rgba(33,129,250,0.12);
    border: 1px solid rgba(33,129,250,0.2);
    padding: 5px 14px;
    border-radius: 8px;
    flex-shrink: 0;
}
.rule-block-header h2 { font-size: 20px; font-weight: 700; }

.rule-block-body { padding: 32px 36px; }
.rule-block-body p { color: var(--text-sec); margin-bottom: 18px; line-height: 1.8; }
.rule-block-body p:last-child { margin-bottom: 0; }
.rule-block-body strong { color: var(--text); font-weight: 600; }
.rule-list { margin: 16px 0 16px 24px; list-style: none; }
.rule-list li {
    color: var(--text-sec);
    padding: 6px 0 6px 20px;
    position: relative;
}
.rule-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 1px;
    background: var(--electric);
}
.gdpr-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--electric);
    border: 1px solid rgba(33,129,250,0.25);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.gdpr-link:hover { background: rgba(33,129,250,0.1); border-color: var(--electric); transform: translateX(4px); }

/* === PILOTS === */
.pilots-section { background: var(--darker); }
.pilots-card {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
    padding: 64px 48px;
    position: relative;
    background: rgba(7,11,31,0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    overflow: hidden;
}
.pilots-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--electric), var(--cyan));
}
.pilots-icon-wrap {
    width: 110px; height: 110px;
    background: linear-gradient(135deg, rgba(9,13,132,0.5), rgba(33,129,250,0.25));
    border: 1px solid var(--border-glow);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: var(--electric);
    position: relative;
}
.pilots-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(29,206,229,0.4), rgba(33,129,250,0.2));
    z-index: -1;
}
.pilots-card h2 { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.pilots-card p { color: var(--text-sec); line-height: 1.75; margin-bottom: 36px; }
.pilots-note { margin-top: 18px; font-size: 12px; color: var(--text-muted); }
.pilots-note a { color: var(--cyan); }

/* === PILOT ROSTER === */
.roster-error {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.roster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.roster-title {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}
.roster-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(33,129,250,0.15);
    border: 1px solid rgba(33,129,250,0.3);
    color: var(--electric);
    font-size: 14px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 50px;
}
.roster-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* Online / Offline status dot */
.status-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.8);
    animation: live-pulse 1.8s ease infinite;
}
.status-dot.offline {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Online row highlight */
tr.pilot-online td { background: rgba(34,197,94,0.04); }
tr.pilot-online:hover td { background: rgba(34,197,94,0.08) !important; }

/* Legend */
.ivao-legend {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
}
.ivao-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.roster-board {
    background: rgba(13,21,53,0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 0 1px var(--border), 0 40px 80px rgba(0,0,0,0.3), 0 0 40px rgba(33,129,250,0.05);
}
.roster-table td:first-child::before { display: none; }
.roster-table td:first-child { font-weight: 500; font-family: var(--font); font-size: 14px; color: var(--text-muted); }
.roster-num { color: var(--text-muted) !important; font-family: 'Courier New', monospace !important; font-size: 12px !important; }

.callsign-badge {
    display: inline-block;
    background: rgba(33,129,250,0.12);
    border: 1px solid rgba(33,129,250,0.25);
    color: var(--electric);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.06em;
}
.pilot-name { font-weight: 600; color: var(--text); }

.rank-badge {
    display: inline-block;
    background: rgba(29,206,229,0.08);
    border: 1px solid rgba(29,206,229,0.2);
    color: var(--cyan);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.pilot-hours {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Courier New', monospace;
    color: var(--text-sec);
    font-size: 13px;
}

/* Network badges — shared across flights board and roster */
.net-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 99px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
    white-space: nowrap;
}
.net-badge.ivao   { background: rgba(29,206,229,0.12); border: 1px solid rgba(29,206,229,0.35); color: var(--cyan); }
.net-badge.vatsim { background: rgba(33,129,250,0.12); border: 1px solid rgba(33,129,250,0.35); color: var(--electric); }

.ivao-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--electric);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.ivao-link:hover { color: var(--cyan); }

.pilot-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-sec);
}
.flag-img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* === FOOTER === */
.footer {
    background: linear-gradient(180deg, var(--navy) 0%, #060a60 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 80px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 200px; height: 1px;
    background: var(--electric);
    box-shadow: 0 0 20px rgba(33,129,250,0.6);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 52px;
}
.footer-logo { height: 44px; margin-bottom: 18px; filter: drop-shadow(0 0 10px rgba(33,129,250,0.4)); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 260px; }
.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-col a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
    color: var(--electric);
    font-size: 12px;
}
.footer-col a:hover { color: var(--cyan); transform: translateX(4px); }
.footer-col a:hover::before { opacity: 1; transform: translateX(0); }
.footer-contact-email {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--electric);
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 10px 14px;
    background: rgba(33,129,250,0.06);
    border: 1px solid rgba(33,129,250,0.15);
    border-radius: 10px;
    margin-top: 8px;
}
.footer-contact-email:hover { background: rgba(33,129,250,0.12); border-color: var(--electric); transform: none; }
.footer-contact-email::before { display: none; }
.footer-contact-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 8px; }
.footer-bottom {
    margin-top: 52px;
    padding: 24px 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-networks-icons { display: flex; gap: 12px; }
.footer-network-icon {
    width: 32px; height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    transition: all 0.25s ease;
}
.footer-network-icon:hover { border-color: var(--electric); color: var(--electric); background: rgba(33,129,250,0.08); }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
    .rules-grid { grid-template-columns: repeat(2,1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
    .stats-bar-inner .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-img-frame img { height: 320px; }
    .about-badge { bottom: -16px; right: 16px; }
}
@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(4,6,15,0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        z-index: 99;
        backdrop-filter: blur(20px);
    }
    .nav-links.open { display: flex; }
    .nav-link { font-size: 22px; padding: 14px 28px; }
    .nav-toggle { display: flex; }
    .nav-cta { font-size: 20px !important; padding: 14px 28px !important; }
    .hero-logo { height: 90px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .rules-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .board-header { flex-direction: column; align-items: flex-start; }
    .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
    .cta-networks { flex-wrap: wrap; }
    .pilots-card { padding: 40px 24px; }
    .rule-block-body { padding: 24px; }
    .rule-block-header { padding: 20px 24px; }
}
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-title { font-size: 36px; }
    .board-tabs { flex-wrap: wrap; }
    .stats-bar-inner { grid-template-columns: 1fr; }
    .stats-bar-inner .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stats-bar-inner .stat-item:last-child { border-bottom: none; }
}
