:root {
        --bg-color: #050505;
        --text-primary: #ffffff;
        --text-secondary: #a1a1a1;
        --accent-orange: #ff6b00;
        --accent-vip: #ff2a2a;
        --accent-vvip: #ffd700;
        
        /* Glass Effect Variables */
        --glass-bg: rgba(255, 255, 255, 0.03);
        --glass-border: rgba(255, 255, 255, 0.08);
        --glass-highlight: rgba(255, 255, 255, 0.2);
        --blur: 20px;
    }

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

    body {
        background-color: var(--bg-color);
        color: var(--text-primary);
        font-family: 'Inter', sans-serif;
        overflow-x: hidden;
        min-height: 100vh;
    }


/* --- INTRO ANIMATION --- */
    #intro-overlay {
        position: fixed;
        inset: 0;
        background: #000;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        animation: fadeOutIntro 0.8s ease-in-out 4s forwards;
        pointer-events: none;
    }

    .intro-word {
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, 40px);
        font-size: 4rem;
        font-weight: 900;
        opacity: 0;
        pointer-events: none;
    }

/* Revolve */
    .intro-word:nth-child(1) {
        animation: introWord 1.2s ease 0.5s forwards;
        color: #555;
    }

/* Evolve */
    .intro-word:nth-child(2) {
        animation: introWord 1.2s ease 1.8s forwards;
        color: #888;
    }

/* Revolute (final lock) */
    .intro-word:nth-child(3) {
        animation: finalLock 1.4s ease 3.2s forwards;
        color: var(--accent-orange);
        z-index: 3;
    }

    @keyframes introWord {
        0% { opacity: 0; transform: translate(-50%, 40px); }
        30% { opacity: 1; transform: translate(-50%, 0); }
        70% { opacity: 1; }
        100% { opacity: 0; transform: translate(-50%, -40px); }
    }

    @keyframes finalLock {
        from { opacity: 0; transform: translate(-50%, 40px) scale(0.9); }
        to   { opacity: 1; transform: translate(-50%, 0) scale(1.15); }
    }


/* ============================= */
/* NAVIGATION (DESKTOP DEFAULT) */
/* ============================= */

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--glass-border);
}

/* Logo */
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-orange);
}

/* Centered nav container */
.nav-center {
    display: flex;
    justify-content: center;
    transform: translateX(-70px); /* intentional left shift */
}

/* Nav links (desktop) */
.glass-nav .nav-links {
    display: flex;
    gap: 6rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

/* Right side (hamburger) */
.nav-right {
    display: flex;
    align-items: center;
}

.mobile-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
}


/* ============================= */
/* MOBILE NAVIGATION */
/* ============================= */

@media (max-width: 768px) {

    /* Hide desktop nav completely */
    .glass-nav .nav-links {
        display: none;
    }

    /* Show hamburger */
    .mobile-toggle {
        display: block;
    }

    /* Show mobile menu ONLY when toggled */
    .glass-nav.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        background: rgba(0, 0, 0, 0.95);
        padding: 24px 0;
        gap: 20px;

        text-align: center;
        z-index: 999;
    }
}


/* ============================= */
/* STATE SAFETY */
/* ============================= */

/* Prevent background scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

    /* --- BUTTONS --- */
    .btn-liquid {
        padding: 12px 30px;
        background: white;
        color: black;
        border: none;
        border-radius: 30px;
        font-weight: 700;
        text-transform: uppercase;
        cursor: pointer;
        transition: all 0.3s;
    }
    .btn-liquid:hover {
        background: var(--accent-orange);
        color: white;
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
        transform: scale(1.05);
        
    }

    .hero-cta {
        display: flex;
        justify-content: center;
        margin-top: 28px;
    }

    /* Bigger, more confident CTA */
    .find-party-btn {
        padding: 16px 42px;              /* bigger */
        font-size: 0.95rem;              /* slightly larger text */
        letter-spacing: 1px;
        border-radius: 999px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }

    /* Premium hover */
    .find-party-btn:hover {
        box-shadow:
            0 0 0 6px rgba(255,107,0,0.12),
            0 18px 40px rgba(255,107,0,0.35);
    }
    /* --- HERO SECTION --- */
    .hero-content p {
        margin-top: 16px;
        margin-bottom: 12px;
    }

    /* --- PAGE TRANSITIONS --- */
    .page-view {
        display: none;
        min-height: 100vh;
        padding-top: 80px;
        animation: slideUp 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    }
    .page-view.active { display: block; }

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

    /* --- HOME PAGE --- */
    #home {
        display: flex; /* Flex for active state to center content */
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        padding-top: 60px; /* offsets fixed nav height */
    }
    /* This override allows the page toggle logic to work while keeping flex layout */
    #home:not(.active) { display: none; } 

    .sliding-text-wrapper {
        position: relative;
        z-index: 2;
        text-align: center;
        margin-bottom: 2rem;
    }
    .slide-text { display: block; font-size: clamp(3rem, 6vw, 6rem); font-weight: 900; line-height: 1; opacity: 0.2; transition: 0.5s; }
    .slide-text.highlight { color: var(--accent-orange); opacity: 1; transform: scale(1.1); }

    /* Card Stack Animation background */
    .card-stack-visual {
        position: absolute;
        z-index: 0;
        width: 300px;
        height: 400px;
        top: 20%;
        right: 10%;
        transform: rotate(-10deg);
        pointer-events: none;
    }

    .stack-card {
        position: absolute;
        inset: 0;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.27);
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.29),
            rgba(0, 0, 0, 0.23)
        );
    }

    .stack-card.c1 {
        transform: rotate(0deg);
    }

    .stack-card.c2 {
        transform: rotate(10deg);
    }

    .stack-card.c3 {
        transform: rotate(20deg);
    }

    @media (max-width: 768px) {
        .card-stack-visual {
            display: none;
        }
    }


    .section-header {
        text-align: center;
        margin-bottom: 50px;
    }
    .section-header h2 {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
        font-weight: 900;
        letter-spacing: 1px;
        color: var(--text-primary);
    }
    .section-header h2::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        margin: 18px auto 0;
        background: linear-gradient(
            to right,
            transparent,
            var(--accent-orange),
            transparent
        );
    }

    

    /* --- EVENTS GRID (3D) --- */
    .events-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
        padding: 5%;
        max-width: 1400px;
        margin: 0 auto;
    }

    .card-scene {
        perspective: 1000px;
        height: 450px;
        cursor: pointer;
    }

    .card-object {
        width: 100%;
        height: 100%;
        position: relative;
        transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        transform-style: preserve-3d;
    }

    .card-scene:hover .card-object, .card-scene.flipped .card-object {
        transform: rotateY(180deg);
    }

    .card-face {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid var(--glass-border);
        background: #111;
    }

    .card-front {
        background-size: cover;
        background-position: center;
    }

    .card-overlay {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 20px;
        background: linear-gradient(to top, black, transparent);
    }

    .card-back {
        transform: rotateY(180deg);
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: radial-gradient(circle at center, #222, #000);
        border: 1px solid var(--accent-orange);
    }

    .cal-date { 
        background: var(--glass-bg); 
        padding: 10px; 
        border-radius: 10px; 
        text-align: center; 
        width: 60px;
        border: 1px solid var(--glass-border);
    }

    /* --- CHECKOUT --- */
    #checkout {
        padding: 0;
    }
    .checkout-overlay {
        position: relative;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 120px 20px 60px;
        background-size: cover;
        background-position: center;
    }

    .checkout-overlay::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.75);
        backdrop-filter: blur(12px);
    }

    .glass-form-container {
        position: relative;
        width: 100%;
        max-width: 500px;
        background: rgba(20, 20, 20, 0.6);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 24px;
        padding: 40px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .tier-selector { display: flex; gap: 10px; margin: 20px 0; }
    .tier-option {
        flex: 1; text-align: center; padding: 12px;
        border: 1px solid var(--glass-border);
        border-radius: 12px; cursor: pointer; transition: 0.3s;
        font-size: 0.8rem; font-weight: bold; background: rgba(255,255,255,0.05);
    }
    .tier-option:hover { background: rgba(255,255,255,0.1); }
    .tier-option.selected { background: #333; border-color: #fff; }
    .tier-option.vip.selected { border-color: var(--accent-vip); box-shadow: 0 0 15px rgba(255, 42, 42, 0.4); }
    .tier-option.vvip.selected { border-color: var(--accent-vvip); box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }

    .input-group { margin-bottom: 15px; }
    .input-group input {
        width: 100%; padding: 12px; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: white; border-radius: 8px; outline: none;
    }
    .input-group input:focus { border-color: var(--accent-orange); }

    .file-upload {
        display: block; padding: 15px; border: 1px dashed var(--glass-border); text-align: center; border-radius: 8px; cursor: pointer; margin-top: 10px;
    }
    .file-upload input { display: none; }
    /* --- TERMS & CONDITIONS STYLES --- */
    .terms-acceptance {
        margin-top: 20px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        border: 1px solid var(--glass-border);
    }

    .checkbox-group {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .checkbox-group input[type="checkbox"] {
        margin-top: 4px;
        width: 18px;
        height: 18px;
        accent-color: var(--accent-orange);
        cursor: pointer;
    }

    .checkbox-label {
        color: #ccc;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .checkbox-label a {
        color: var(--accent-orange);
        text-decoration: none;
    }

    .checkbox-label a:hover {
        text-decoration: underline;
    }

    .terms-error {
        color: #ff3860;
        font-size: 0.8rem;
        margin-top: 8px;
        display: none;
    }

    /* Terms Page Specifics */
    .terms-section h2 {
        color: var(--accent-orange);
        margin-bottom: 10px;
        margin-top: 20px;
        font-size: 1.2rem;
        border-left: 3px solid var(--accent-orange);
        padding-left: 10px;
    }
    .terms-section p, .terms-section ul {
        color: #ccc;
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    .terms-section ul { margin-left: 20px; }
    .terms-checkmark { color: var(--accent-orange); margin-right: 5px; }

    /* --- WHATSAPP POPUP --- */
    .wa-popup-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(8px);
        display: none; /* Hidden by default */
        justify-content: center;
        align-items: center;
        z-index: 99999;
    }

    .wa-animate {
        animation: waFadeInUp 0.4s ease forwards;
    }

    @keyframes waFadeInUp {
        0% { opacity: 0; transform: translateY(30px) scale(0.95); }
        100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    .wa-close {
        background: transparent;
        border: none;
        color: #888;
        cursor: pointer;
        font-size: 0.9rem;
        text-decoration: underline;
    }
    .wa-close:hover { color: white; }

    /* --- UTILS --- */
    .full-width { width: 100%; }
    .back-btn {
        background: none; border: none; color: white; cursor: pointer; font-size: 1rem; margin-bottom: 10px;
    }
    .back-btn:hover { color: var(--accent-orange); }

    @media print {
        body * { visibility: hidden; }
        #terms, #terms * { visibility: visible; }
        #terms { position: absolute; left: 0; top: 0; background: white; color: black; }
        .terms-content { border: none; box-shadow: none; padding: 0; }
        .terms-section h2, .terms-section p, .effective-date { color: black !important; }
        .back-btn, .print-terms { display: none; }
    }

    /* --- DASHBOARD --- */
    .dashboard-container { padding: 0 5%; max-width: 1200px; margin: 0 auto; }
    .stats-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
    .glass-card {
        flex: 1; min-width: 250px;
        background: var(--glass-bg); border: 1px solid var(--glass-border);
        padding: 25px; border-radius: 16px;
    }
    .stat .number { font-size: 2.5rem; font-weight: 800; color: var(--accent-orange); }
    .bar-chart { display: flex; align-items: flex-end; height: 200px; gap: 20px; margin-top: 20px; }
    .bar-group { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
    .bar { width: 100%; background: #333; border-radius: 4px 4px 0 0; transition: height 1s; }
    .bar.highlight { background: var(--accent-orange); }

    /* --- FOOTER --- */
    .glass-footer {
        margin-top: 50px;
        border-top: 1px solid var(--glass-border);
        padding: 40px 5%;
        background: #000;
    }
    .footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
    .socials a { color: white; margin-left: 20px; font-size: 1.2rem; }
    .copyright { text-align: center; margin-top: 30px; font-size: 0.8rem; color: #555; }

    /* --- MOBILE --- */
    @media (max-width: 768px) {
        .nav-links { display: none; }
        .mobile-toggle { display: block; }
        .stats-row { flex-direction: column; }
        
        /* Mobile Menu Logic handled via JS class toggle if needed, or simple redirect */
        .nav-links.active {
            display: flex; flex-direction: column; position: absolute;
            top: 100%; left: 0; width: 100%; background: #000; padding: 20px;
        }
    }
    /* Footer */
        footer {
            background-color: var(--accent-gray);
            padding: 50px 5% 20px;
            text-align: center;
            margin-top: auto;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            text-align: left;
            margin-bottom: 40px;
        }
        
        .footer-column h3 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-column h3:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--primary-white);
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li {
            margin-bottom: 10px;
        }
        
        .footer-column ul li a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-column ul li a:hover {
            color: var(--primary-white);
        }
        
        .copyright {
            padding-top: 20px;
            border-top: 1px solid #444;
            font-size: 0.9rem;
            color: #999;
        }
