/* ==========================================================================
   1. PŮVODNÍ GLOBÁLNÍ ARCHITEKTURA A PROMĚNNÉ
   ========================================================================== */
:root {
    --bg-dark: #0B0F19;       /* Deep polar black */
    --bg-card: #131A26;       /* Titanium/metallic container tone */
    --text-silver: #E2E8F0;   /* Clean aircraft-grade silver */
    --text-dim: #94A3B8;      /* Muted technical gray for descriptions */
    --accent-teal: #00F2FE;   /* Cyber/laser electric teal */
    --grid-line: rgba(0, 242, 254, 0.04);
}

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

html {
    scroll-behavior: smooth; /* Plynulý posun stránky */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-silver);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    
    /* Technical telemetry grid background */
    background-image: 
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Přidání svítícího radarového gradientu do pozadí */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulseRadar 10s infinite linear;
}

@keyframes pulseRadar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   2. LOGO A KLASICKÁ HEADER NAVIGACE (PRO HLAVNÍ WEB)
   ========================================================================== */
header {
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.15)); /* Ladí s tyrkysovou --accent-teal */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.3));
}

/* Minimalist Vector Logo Asset */
.logo-icon {
    width: 35px;
    height: 35px;
    border: 2px solid var(--accent-teal);
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-icon::before {
    content: '';
    width: 50%;
    height: 50%;
    background-color: var(--accent-teal);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    color: #ffffff;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-teal);
}

/* ==========================================================================
   3. SEKCE HLAVNÍ STRÁNKY (HERO, SERVICES, CONTACT, FOOTER)
   ========================================================================== */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 10%;
    position: relative;
}

.hero-status {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-teal);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--accent-teal);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-teal);
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 25px;
    max-width: 850px;
    color: #ffffff;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 650px;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid var(--accent-teal);
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    font-weight: 700;
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 0;
}

.cta-button:hover {
    background-color: var(--accent-teal);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
    cursor: pointer;
}

.services {
    padding: 100px 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    background-color: rgba(11, 15, 25, 0.8);
}

.card {
    background-color: rgba(19, 26, 38, 0.6); /* Zachování původní průhlednosti */
    border: 1px solid rgba(226, 232, 240, 0.03);
    padding: 40px;
    transition: border 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 242, 254, 0.3);
}

.card-num {
    font-size: 0.8rem;
    color: var(--accent-teal);
    font-family: monospace;
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.1);
    color: var(--text-silver);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    font-family: sans-serif;
}

footer {
    padding: 40px 10%;
    border-top: 1px solid rgba(226, 232, 240, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: monospace;
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero { padding: 40px 5%; }
    .services { padding: 60px 5%; }
    footer { flex-direction: column; gap: 20px; text-align: center; }
}

/* ==========================================================================
   4. NOVÁ SDÍLENÁ LIŠTA MENU (MENU.PHP NO-CONFLICT) - FINÁLNÍ VERZE S LOGEM
   ========================================================================== */
.aeon-global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9999;
}

/* UPRAVENÝ KONTEJNER: Používá původní zarovnání pro dokonalý líc se zbytkem webu */
.aeon-nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    max-width: 100% !important; /* Rozprostře se přes celou šířku jako původní web */
    height: 100%;
    margin: 0 auto;
    padding: 0 10% !important;   /* Lícuje s paddingem 10% v sekcích hero a services */
    box-sizing: border-box;
}

/* Propojení a usazení vašeho plnohodnotného obrázkového loga */
.aeon-nav-container .logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 15px;
}

/* Bezpečné škálování obrázkového loga uvnitř 65px vysoké lišty */
.aeon-nav-container .logo-img {
    height: 42px !important; /* Přesná velikost pro zachování proporcí lišty */
    width: auto !important;
    display: block !important;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.15)) !important; /* Původní tyrkysový svit */
    transition: transform 0.3s ease, filter 0.3s ease !important;
}

.aeon-nav-container .logo-img:hover {
    transform: scale(1.03) !important;
    filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.35)) !important; /* Silnější svit při najetí */
}

.aeon-nav-links {
    display: flex !important;
    gap: 2.5rem !important;
    list-style: none;
    align-items: center;
}

.aeon-nav-item {
    color: var(--text-dim) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    transition: color 0.3s ease !important;
    position: relative;
    padding: 5px 0;
}

.aeon-nav-item:hover {
    color: var(--accent-teal) !important;
}

.aeon-nav-item.active {
    color: #ffffff !important;
}

.aeon-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-teal);
}

/* ==========================================================================
   5. IZOLOVANÝ STYL PRO STRÁNKU /FUTURE/ (ODSKOK Z ROHU)
   ========================================================================== */
.aeon-portal-body {
    padding-top: 120px !important; /* Bezpečné odsunutí pod nové menu */
}

/* Úhledný formulářový box uprostřed obrazovky */
.aeon-portal-body .aeon-form-wrapper {
    max-width: 650px;
    margin: 0 auto !important;
    padding: 30px;
    width: 100%;
}

.aeon-portal-body .step {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.aeon-portal-body .step.active {
    display: flex !important;
}

.aeon-portal-body .aeon-index-marker {
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--accent-teal);
    margin-bottom: 15px;
}

.aeon-portal-body .aeon-heading {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
    margin-bottom: 35px;
    color: #ffffff;
    max-width: 850px;
}


/* Mřížka pro výběrové karty */
.aeon-portal-body .aeon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 30px;
}

.aeon-portal-body .aeon-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.05);
    padding: 20px 15px;
    font-size: 0.95rem;
    color: var(--text-silver);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.aeon-portal-body .aeon-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    background-color: rgba(255, 255, 255, 0.02);
}

.aeon-portal-body .aeon-card.selected {
    border-color: var(--accent-teal) !important;
    background-color: rgba(0, 242, 254, 0.05) !important;
    color: #ffffff !important;
}

/* Zachování vzhledu tlačítek a vstupů */
.aeon-portal-body .aeon-btn {
    display: inline-block;
    padding: 14px 30px;
    border: 1px solid var(--accent-teal);
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    font-weight: 700;
    background: transparent;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 320px;
    cursor: pointer;
}

.aeon-portal-body .aeon-btn:hover {
    background-color: var(--accent-teal);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.aeon-portal-body .aeon-price-display {
    font-size: 4rem;
    font-weight: 900;
    font-family: monospace;
    color: #ffffff;
    margin: 20px 0;
}

.aeon-portal-body .aeon-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px auto;
}

@media (max-width: 600px) {
    .aeon-portal-body .aeon-grid {
        grid-template-columns: 1fr;
    }
    .aeon-portal-body .aeon-heading {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   6. PRÉMIOVÝ REKTAGULÁRNÍ PODKLAD PRO TERMINÁL KALKULAČKY (STRÁNKA FLIGHTS)
   ========================================================================== */
.aeon-terminal-glow {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1;
}

.aeon-terminal-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/All...VIP.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    opacity: 0.12; 
    pointer-events: none;
    z-index: -1;
    animation: terminalFieldPulse 6s infinite ease-in-out;
}

@keyframes terminalFieldPulse {
    0% {
        opacity: 0.10;
        filter: brightness(0.9);
    }
    50% {
        opacity: 0.16;
        filter: brightness(1.1);
    }
    100% {
        opacity: 0.10;
        filter: brightness(0.9);
    }
}


/* ==========================================================================
   7. VELKÉ KRUHOVÉ POZADÍ SE STŘÍDÁNÍM OBRÁZKŮ (FUTURE - ZERO-DELAY LOOP)
   ========================================================================== */
.aeon-form-wrapper {
    position: relative !important;
    z-index: 1;
}

/* Master kontejner pro kruhové radarové pozadí - POSUNUTO NA TOP 60% */
.aeon-future-radar-bg {
    position: absolute !important;
    top: 60% !important;  
    left: 50% !important;
    width: 750px;   
    height: 750px;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important; 
    border-radius: 50% !important;
    border: 1px solid rgba(0, 242, 254, 0.12);
    overflow: hidden !important; 
    pointer-events: none; 
    z-index: -1;          
    will-change: transform;
    
    /* Jemná vnější azurová záře celého kruhu */
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.10), 
                inset 0 0 40px rgba(0, 242, 254, 0.06);
}

/* Společný základ pro vrstvy s obrázky */
.radar-slice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    opacity: 0; 
}

/* 
   FIXED: VŠECHNY STRÁNKY JEDOU BEZ DELAY (0s).
   Každý prvek okamžitě poslouchá svou vlastní časovou osu, což zabrání zhasnutí.
*/
.radar-slice.slide-1 {
    background-image: url('/img/All...VIP.png');
    animation: futureLoop1 20s infinite ease-in-out !important;
    -webkit-animation: futureLoop1 20s infinite ease-in-out !important;
}

.radar-slice.slide-2 {
    background-image: url('/img/All...VIP1.png'); 
    animation: futureLoop2 20s infinite ease-in-out !important;
    -webkit-animation: futureLoop2 20s infinite ease-in-out !important;
}

.radar-slice.slide-3 {
    background-image: url('/img/All...VIP2.jpg'); 
    animation: futureLoop3 20s infinite ease-in-out !important;
    -webkit-animation: futureLoop3 20s infinite ease-in-out !important;
}

.radar-slice.slide-4 {
    background-image: url('/img/All...VIP3.jpg'); 
    animation: futureLoop4 20s infinite ease-in-out !important;
    -webkit-animation: futureLoop4 20s infinite ease-in-out !important;
}

/* MATEMATICKY ROZDĚLENÉ ČASOVÉ OSY (KAŽDÉ LETADLO SVÍTÍ PŘESNĚ 5 SEKUND) */

/* Letadlo 1: Viditelné od 0% do 20% (0. až 4. sekunda) */
@keyframes futureLoop1 {
    0%, 20% { opacity: 0.12; }
    25%, 100% { opacity: 0; }
}
@-webkit-keyframes futureLoop1 {
    0%, 20% { opacity: 0.12; }
    25%, 100% { opacity: 0; }
}

/* Letadlo 2: Viditelné od 25% do 45% (5. až 9. sekunda) */
@keyframes futureLoop2 {
    0%, 20% { opacity: 0; }
    25%, 45% { opacity: 0.12; }
    50%, 100% { opacity: 0; }
}
@-webkit-keyframes futureLoop2 {
    0%, 20% { opacity: 0; }
    25%, 45% { opacity: 0.12; }
    50%, 100% { opacity: 0; }
}

/* Letadlo 3: Viditelné od 50% do 70% (10. až 14. sekunda) */
@keyframes futureLoop3 {
    0%, 45% { opacity: 0; }
    50%, 70% { opacity: 0.12; }
    75%, 100% { opacity: 0; }
}
@-webkit-keyframes futureLoop3 {
    0%, 45% { opacity: 0; }
    50%, 70% { opacity: 0.12; }
    75%, 100% { opacity: 0; }
}

/* Letadlo 4: Viditelné od 75% do 95% (15. až 19. sekunda) */
@keyframes futureLoop4 {
    0%, 70% { opacity: 0; }
    75%, 95% { opacity: 0.12; }
    100% { opacity: 0; }
}
@-webkit-keyframes futureLoop4 {
    0%, 70% { opacity: 0; }
    75%, 95% { opacity: 0.12; }
    100% { opacity: 0; }
}

/* Optimalizace responzivity, aby obří kruh na menších displejích plynule klesal */
@media (max-width: 800px) {
    .aeon-future-radar-bg {
        width: 550px;
        height: 550px;
        top: 55% !important;
    }
}

@media (max-width: 640px) {
    .aeon-future-radar-bg {
        width: 360px;
        height: 360px;
        top: 52% !important;
    }
}



/* ==========================================================================
   PRODUCTION FIX: ULTRA-SLIM MOBILE RESPONSIVE MENU MATRICES (IPHONE SAFE)
   ========================================================================== */
@media (max-width: 768px) {
    /* Tighten the viewport margins to pull everything inward */
    .aeon-nav-container {
        padding: 0 4% !important; 
    }

    /* Reduce font scale and tracking on the golden brand logo asset text */
    .aeon-nav-logo, .aeon-nav-container .logo-text {
        font-size: 0.95rem !important;
        letter-spacing: 0.15em !important;
    }

    /* Shrink the horizontal empty columns gap dynamically so text strings can fit */
    .aeon-nav-links {
        gap: 0.9rem !important; 
    }

    /* Compact text scaling and layout padding adjustments for your links */
    .aeon-nav-item {
        font-size: 0.68rem !important;
        letter-spacing: 0.05em !important;
        padding: 2px 0 !important;
        white-space: nowrap !important; /* Forces your layout tabs to never break into two ugly rows */
    }
}

/* Extra safety threshold targeting older/smaller smartphone viewports (e.g. iPhone SE) */
@media (max-width: 380px) {
    .aeon-nav-links {
        gap: 0.6rem !important;
    }
    .aeon-nav-logo, .aeon-nav-container .logo-text {
        font-size: 0.85rem !important;
        letter-spacing: 0.1em !important;
    }
    .aeon-nav-item {
        font-size: 0.62rem !important;
    }
}

    /* ... konec předchozího kódu pro menu pro iPhone SE ... */
    .aeon-nav-item {
        font-size: 0.62rem !important;
    }
}

/* ==========================================================================
   PŘIDÁNO: PRODUCTION FIX: FLIGHTS ESTIMATOR GRID COLLAPSE (IPHONE SAFE)
   ========================================================================== */
@media (max-width: 900px) {
    /* Přepne dvousloupcovou mřížku na jednosloupcovou */
    .aeon-calculator .card {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 30px 20px !important; 
    }

    /* Zajistí, že pravý terminálový box se roztáhne přes celou dostupnou šířku */
    .aeon-terminal-glow {
        width: 100%;
        min-height: 220px; 
    }
}

@media (max-width: 600px) {
    /* Optimalizace textu a prvků na velmi malých displejích */
    .aeon-calculator label {
        font-size: 0.8rem !important;
    }
    
    .aeon-calculator select, 
    .aeon-calculator input {
        font-size: 0.9rem !important;
        padding: 10px !important;
    }

    /* Jemné zmenšení písma v výsledkovém okně, aby dlouhé ceny nepřetékaly */
    .aeon-price-display, #log-total {
        font-size: 2.8rem !important;
    }
}

/* ==========================================================================
   AGRESIVNÍ OPRAVA PRO FLIGHTS.PHP V MOBILU (PŘEBITÍ INLINE GRIDU)
   ========================================================================== */
@media (max-width: 900px) {
    /* Cílíme přímo na ID záložky a její vnitřní kartu, abychom přebili inline styl */
    #aeon-calculator div[style*="display: grid"],
    #aeon-calculator .card {
        grid-template-columns: 1fr !important; /* Vynutí jeden sloupec pod sebou */
        gap: 25px !important;                  /* Zmenší mezeru mezi formulářem a terminálem */
        padding: 30px 15px !important;         /* Zmenší boční okraje, aby se vše vešlo na displej */
    }

    /* Roztáhne pravý svítící terminálový box na celou šířku displeje iPhonu */
    #aeon-calculator .aeon-terminal-glow {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Vyčištění celého obalu mřížky, aby netlačil obsah do stran */
    .flights-grid {
        width: 100% !important;
        max-width: 100% !important;
        overflow-hidden: hidden !important;
    }
}

@media (max-width: 600px) {
    /* Zajištění, že obří ceny na iPhonu nebudou přetékat přes okraje boxu */
    #aeon-calculator .aeon-price-display, 
    #aeon-calculator #log-total {
        font-size: 2.2rem !important; /* Bezpečné zmenšení textu ceny na malých mobilech */
        word-break: break-all !important;
    }
}

/* ==========================================================================
   FINAL OVERRIDE: ANTI-MAGNIFICATION TYPOGRAPHY SHIELD (IPHONE SAFE)
   ========================================================================== */
html, body {
    /* Prevents iOS Safari from auto-scaling layout fonts out of bounds */
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

@media (max-width: 640px) {
    /* Aggressively limits the future heading layout properties on mobile viewports */
    .aeon-portal-body .aeon-heading {
        font-size: 1.5rem !important;      /* Explicitly locks text down to a clean mobile scale */
        font-weight: 700 !important;       /* Clean technical stark weight uniform profile */
        line-height: 1.25 !important;
        letter-spacing: -0.01em !important;
        margin-bottom: 20px !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   ROZŠÍŘENÍ ŠÍŘKY BOXU KALKULAČKY NA MOBILNÍCH TELEFONECH
   ========================================================================== */
@media (max-width: 900px) {
    /* Uvolníme skryté boční místo stažením paddingu z 10% na pouhá 3% */
    section.services[style*="padding"] {
        padding-left: 3% !important;
        padding-right: 3% !important;
    }

    /* Roztáhne mřížku kalkulačky na maximum uvolněného prostoru */
    .flights-grid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Mírně zmenšíme vnitřní polstrování samotné karty, aby zbylo víc místa pro formulář */
    #aeon-calculator .card {
        padding: 25px 15px !important; /* Více místa pro textová pole uvnitř boxu */
    }
}

/* ==========================================================================
   OPTIMALIZOVANÉ ZVĚTŠENÍ MENU (POČÍTAČ I MOBILNÍ TELEFONY)
   ========================================================================== */

/* Zvětšení pro desktop (počítače a notebooky) */
.aeon-nav-item {
    font-size: 1rem !important;        /* Zvětšeno z 0.9rem pro lepší čitelnost */
    letter-spacing: 0.16em !important; /* Mírně širší a luxusnější rozestup písmen */
}

/* Zvětšení a stabilizace pro mobilní telefony a iPhony */
@media (max-width: 768px) {
    /* Mírně zvětšíme výšku lišty, aby větší text měl dostatek prostoru */
    .aeon-global-header {
        height: 70px !important;
    }
    
    /* Větší mezery mezi zkrácenými položkami menu na mobilu */
    .aeon-nav-links {
        gap: 1.2rem !important; /* Rozšířeno z původních stlačených 0.9rem */
    }

    /* Komfortnější velikost písma odkazů na iPhonu */
    .aeon-nav-item {
        font-size: 0.78rem !important;      /* Zvětšeno ze super-malých 0.68rem */
        letter-spacing: 0.08em !important;  /* Čitelnější text */
        padding: 4px 0 !important;
    }
    
    /* Bezpečné posunutí obsahu na stránkách, aby kvůli vyšší liště (70px) nezajížděl pod menu */
    body, .aeon-portal-body {
        padding-top: 130px !important; 
    }
    section.hero {
        padding-top: 130px !important;
    }
}

/* Pojistka pro ty vůbec nejmenší telefony (např. starší iPhone SE) */
@media (max-width: 380px) {
    .aeon-nav-links {
        gap: 0.8rem !important;
    }
    .aeon-nav-item {
        font-size: 0.72rem !important;
    }
}

/* ==========================================================================
   8. PODVĚDOMÝ PULZUJÍCÍ TELEMETRICKÝ PODKRES PRO FORMULÁŘE (STRÁNKA CONTACT)
   ========================================================================== */
.aeon-telemetry-input {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-sizing: border-box !important;
    
    /* Vynutíme, aby text uvnitř oken (i placeholdery) byl zářivě bílý a ostrý */
    color: #ffffff !important;
    opacity: 1 !important;
}

/* ZÁŘIVÁ BARVA PRO TEXTY VÝZEV (PLACEHOLDERY) NAPŘÍČ PROHLÍŽEČI */
.aeon-telemetry-input::placeholder { color: rgba(255, 255, 255, 0.7) !important; opacity: 1 !important; }
.aeon-telemetry-input::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.7) !important; opacity: 1 !important; }
.aeon-telemetry-input::-moz-placeholder { color: rgba(255, 255, 255, 0.7) !important; opacity: 1 !important; }


input.aeon-telemetry-input {
    background-image: linear-gradient(rgba(19, 26, 38, 0.88), rgba(19, 26, 38, 0.88)), url('/img/All...VIP2.jpg') !important;
    animation: inputTelemetryPulse 3s infinite ease-in-out !important;
}

textarea.aeon-telemetry-input {
    background-image: linear-gradient(rgba(19, 26, 38, 0.88), rgba(19, 26, 38, 0.88)), url('/img/magic.png') !important;
    animation: inputTelemetryPulse 6s infinite ease-in-out !important;
    animation-delay: 1.5s !important; /* Fázové zpoždění dechu radaru */
}

.aeon-telemetry-input:focus {
    border-color: var(--accent-teal, #00f2fe) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15), inset 0 0 10px rgba(0, 242, 254, 0.05) !important;
    
    /* Při psaní se ztmavovací filtr sníží z 88 % na 80 %, takže letadlo víc vystoupí */
    background-image: linear-gradient(rgba(19, 26, 38, 0.80), rgba(19, 26, 38, 0.80)), url('/img/All...VIP2.jpg') !important;
}

textarea.aeon-telemetry-input:focus {
    background-image: linear-gradient(rgba(19, 26, 38, 0.80), rgba(19, 26, 38, 0.80)), url('/img/All...VIP3.jpg') !important;
}

@keyframes inputTelemetryPulse {
    0%, 100% {
        background-color: rgba(19, 26, 38, 0.93);
    }
    50% {
        background-color: rgba(19, 26, 38, 0.82);
    }
}

/* ==========================================================================
   GLOBAL MOBILE SPACING ADJUSTMENT (ALL PAGES OVERRIDE - EXCEPT FUTURE)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Reduce the baseline body offset that was pushing everything down */
    body {
        padding-top: 0 !important;
    }

    /* 2. Target ALL structural sections except the isolated future portal body */
    body:not(.aeon-portal-body) section.hero,
    body:not(.aeon-portal-body) section.services,
    body:not(.aeon-portal-body) .hero,
    body:not(.aeon-portal-body) .services {
        /* Forcefully pulls the text upward right under the 65px fixed navbar */
        padding-top: 85px !important; 
        padding-bottom: 30px !important;
    }
    
    /* 3. Handle specific inline grid structures inside flights layout */
    body:not(.aeon-portal-body) .flights-grid {
        margin-top: 10px !important;
    }
}

/* ==========================================================================
   AEON AIRLINES - ISOLATED SUB-GRID SYSTEM (FIXED)
   ========================================================================== */

/* 1. Izolovaný kontejner mřížky, který nijak neovlivňuje okolí */
.aeon-pillar-section .aeon-sub-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(0, 242, 254, 0.1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Stylování vnitřních boxů */
.aeon-pillar-section .aeon-sub-grid > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Striktní a izolované styly pro podnadpisy subsekcí [ Title ] */
.aeon-pillar-section .aeon-sub-grid h4 {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    font-family: monospace !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    color: #ffffff !important;
    letter-spacing: 0.05em !important;
    text-transform: none !important;
    background: none !important;
    border: none !important;
}

/* 4. Striktní a izolované styly pro texty uvnitř subsekcí */
.aeon-pillar-section .aeon-sub-grid p {
    margin: 0 !important;
    padding: 0 !important;
    font-family: monospace !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important;
}

/* 5. Bezpečná responzivita pro mobilní zařízení */
@media (max-width: 768px) {
    .aeon-pillar-section .aeon-sub-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ==========================================================================
   AEON AIRLINES - PILLAR VERTICAL SPACING FIX
   ========================================================================== */

/* Bezpečně odtlačí sekce I, II a III od sebe navzájem */
.aeon-pillar-section {
    margin-bottom: 50px !important; /* Výrazné vertikální oddělení sekcí */
    padding-bottom: 20px !important; /* Vnitřní rezerva pro stabilitu layoutu */
    box-sizing: border-box !important;
}

/* Zajištění, aby nová mřížka měla pod sebou čistý prostor před koncem sekce */
.aeon-pillar-section .aeon-sub-grid {
    margin-bottom: 40px !important;
}

/* ==========================================================================
   AEON AIRLINES - NEXT-GEN HUD SYSTEM (COMPACT & COLLAPSIBLE)
   ========================================================================== */

:root {
    --hud-glow: rgba(0, 242, 254, 0.15);
    --hud-border: rgba(0, 242, 254, 0.08);
    --hud-height: 72px;
}

/* Fixní základní lišta */
.aeon-terminal-hud {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: var(--hud-height) !important;
    background: rgba(4, 4, 6, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid var(--hud-border) !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
}

.hud-interface-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 10% !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.hud-logo-node {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    z-index: 100001 !important; /* Logo musí být vždy nahoře */
}

.hud-logo-anchor img {
    height: 26px !important;
    width: auto !important;
    display: block !important;
}

/* Mobilní tlačítko (Hamburger) - Skryté na desktopu */
.hud-toggle-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100001; /* Tlačítko musí překrýt vysouvací menu */
    outline: none;
}

.hud-toggle-bar {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Transformace hamburgeru na křížek */
.hud-toggle-active .hud-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--accent-teal, #00f2fe); }
.hud-toggle-active .hud-toggle-bar:nth-child(2) { opacity: 0; }
.hud-toggle-active .hud-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--accent-teal, #00f2fe); }

/* Desktopové navigační menu */
.hud-vector-list {
    display: flex !important;
    gap: 36px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hud-vector-link {
    text-decoration: none !important;
    font-family: monospace !important;
    font-size: 0.85rem !important;
    color: #64748b !important;
    letter-spacing: 0.12em !important;
    padding: 10px 0 !important;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
}

.hud-prefix {
    color: rgba(0, 242, 254, 0.25) !important;
    font-size: 0.75rem !important;
    margin-right: 6px !important;
}

.hud-vector-link:hover,
.hud-vector-link.active {
    color: #ffffff !important;
}

.hud-vector-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    width: 0 !important;
    height: 1px !important;
    background: var(--accent-teal, #00f2fe) !important;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hud-vector-link:hover::after,
.hud-vector-link.active::after {
    width: 100% !important;
}

/* Indikátor stavu systému */
.hud-status-indicator {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: monospace !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.1em !important;
    color: #475569 !important;
}

.hud-status-pulse {
    width: 6px !important;
    height: 6px !important;
    background: var(--accent-teal, #00f2fe) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px var(--accent-teal, #00f2fe) !important;
    animation: hudPulse 2s infinite ease-in-out !important;
}

@keyframes hudPulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; box-shadow: 0 0 12px var(--accent-teal, #00f2fe); }
    100% { opacity: 0.3; }
}

/* Kompenzace obsahu pod fixní lištou */
.hero, section.hero, section {
    padding-top: calc(var(--hud-height) + 40px) !important;
}

/* ==========================================================================
   BREAKPOINT: RESPONSIVE COLLAPSIBLE MATRIX (MOBILY A TABLETY)
   ========================================================================== */
@media (max-width: 960px) {
    .hud-interface-wrapper {
        padding: 0 5% !important;
    }
    
    .hud-status-indicator {
        display: none !important; /* Skryje indikátor stavu */
    }

    /* Zobrazení hamburgeru */
    .hud-toggle-button {
        display: flex !important;
    }

    /* Transformace menu na celoobrazovkový vysunovací panel */
    .hud-vector-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(4, 4, 6, 0.98) !important; /* Neprůhledná hluboká tma */
        backdrop-filter: blur(25px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
        
        /* Výchozí skrytý stav */
        opacity: 0 !important;
        transform: translateY(-100%) !important;
        pointer-events: none !important;
        z-index: 100000 !important;
    }

    /* Viditelný stav po aktivaci JavaScriptem */
    .hud-vector-nav.hud-nav-expanded {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    /* Přeskládání odkazů vertikálně pod sebe uprostřed displeje */
    .hud-vector-list {
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
        width: 100% !important;
    }

    .hud-vector-link {
        font-size: 1.1rem !important; /* Větší písmo pro pohodlné ovládání prstem */
        padding: 15px 0 !important;
    }
    
    .hud-prefix {
        font-size: 0.9rem !important;
        display: block !important; /* Index nad textem odkazu na mobilu */
        text-align: center !important;
        margin-bottom: 4px !important;
        margin-right: 0 !important;
    }
}

/* ==========================================================================
   AEON AIRLINES - HARDWARE ACCELERATED ANIMATIONS & HUD GRAPHICS
   ========================================================================== */

/* 1. Globální efekt postupného rozsvícení celé stránky při načtení */
body {
    animation: hudTerminalInit 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 2. Plynulé, elegantní animace pro vysouvací sub-mřížku podbodů */
.aeon-pillar-section .aeon-sub-grid {
    opacity: 0;
    transform: translateY(15px);
    animation: moduleFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered delay - Postupné načítání pilířů jeden po druhém */
.aeon-pillar-section:nth-of-type(1) .aeon-sub-grid { animation-delay: 0.3s; }
.aeon-pillar-section:nth-of-type(2) .aeon-sub-grid { animation-delay: 0.5s; }
.aeon-pillar-section:nth-of-type(3) .aeon-sub-grid { animation-delay: 0.7s; }

/* 3. Interaktivní mikro-animace při najetí myší na sub-boxy [ Turnkey... ] */
.aeon-pillar-section .aeon-sub-grid > div {
    padding: 15px !important;
    border: 1px solid transparent !important;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 2px !important;
}

.aeon-pillar-section .aeon-sub-grid > div:hover {
    background: rgba(0, 242, 254, 0.02) !important;
    border-color: rgba(0, 242, 254, 0.15) !important;
    transform: translateY(-4px) !important; /* Jemné nadnesení boxu při hoveru */
}

/* 4. Nadčasová pulzující záře pro velké technické bloky (Vzorce a Roadmapy) */
#valuation-matrix + .aeon-pillar-section + div, 
div[style*="background: rgba(0, 242, 254, 0.02)"] {
    position: relative;
    overflow: hidden;
    border-left: 3px solid var(--accent-teal, #00f2fe) !important;
    animation: telemetryGlow 4s infinite ease-in-out;
}

/* ==========================================================================
   ANIMATION TIMELINES (KEYFRAMES)
   ========================================================================== */

@keyframes hudTerminalInit {
    0% { opacity: 0; filter: blur(5px); }
    100% { opacity: 1; filter: blur(0); }
}

@keyframes moduleFadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes telemetryGlow {
    0% { border-left-color: rgba(0, 242, 254, 0.2); box-shadow: inset 5px 0 20px rgba(0, 242, 254, 0.01); }
    50% { border-left-color: rgba(0, 242, 254, 1); box-shadow: inset 5px 0 30px rgba(0, 242, 254, 0.04); }
    100% { border-left-color: rgba(0, 242, 254, 0.2); box-shadow: inset 5px 0 20px rgba(0, 242, 254, 0.01); }
}
