:root {
    /* Color Palette */
    --bg-color: #04060A;
    --panel-color: #0B1220;
    --primary-color: #3BC7FF;
    --secondary-color: #232A4A;
    --glow-color: #A8EEFF;
    --text-color: #F1F5FA;
    --muted-color: #A8B2C1;
    --gold-color: #E5B657;
    --danger-color: #8C1D18;
    --success-color: #10B981;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --header-height: 80px;
}

/* =========================================
   1. RESET & BASE
   ========================================= */
* {
    box-sizing: border-box;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    max-width: 100%;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--glow-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.text-gold { color: var(--gold-color) !important; }
.text-primary-custom { color: var(--primary-color) !important; }

.text-glow {
    text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color); }
    50% { text-shadow: 0 0 30px var(--primary-color), 0 0 60px var(--primary-color); }
}

/* Utilities - typography */
.fw-black { font-weight: 900; }
.tracking-wider { letter-spacing: 0.08em; }
.letter-spacing-2 { letter-spacing: 0.12em; }
.text-muted { color: var(--muted-color) !important; }
.hover-primary:hover { color: var(--primary-color) !important; }

/* =========================================
   3. COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.btn:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.btn:focus-visible {
    outline: 2px solid rgba(168, 238, 255, 0.6);
    outline-offset: 2px;
}
.btn-sm {
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
}
.btn-lg {
    padding: 1rem 1.55rem;
    border-radius: 16px;
}

.btn-premium {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-color: rgba(168, 238, 255, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-position 0.3s ease;
    background-size: 180% 180%;
    background-position: 10% 50%;
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary-color);
    background-position: 90% 50%;
    filter: brightness(1.05);
    color: white;
}

.btn-cta {
    background: linear-gradient(45deg, var(--gold-color), #F3CD78);
    color: #000;
    border-color: rgba(243, 205, 120, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-position 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: 180% 180%;
    background-position: 10% 50%;
}

.btn-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(200, 162, 74, 0.6);
    background-position: 90% 50%;
    filter: brightness(1.02);
}

.btn-pulse {
    animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(47, 185, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(47, 185, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 185, 255, 0); }
}

/* Additional buttons used in templates */
.btn-gold {
    background: linear-gradient(90deg, #F7D78A, var(--gold-color));
    color: #1b1306;
    border-color: rgba(247, 215, 138, 0.25);
    box-shadow: 0 10px 26px rgba(229, 182, 87, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(229, 182, 87, 0.35);
    filter: brightness(1.02);
}
.btn-gold:focus-visible {
    outline: 2px solid #fff2cc;
    outline-offset: 2px;
}

.btn-discord {
    --bs-btn-color: #fff;
    --bs-btn-bg: #5865F2;
    --bs-btn-border-color: rgba(255, 255, 255, 0.1);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4f5ae6;
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.18);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #4651d1;
    --bs-btn-active-border-color: rgba(255, 255, 255, 0.22);
    background-color: #5865F2;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 26px rgba(88, 101, 242, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
}
.btn-discord:hover {
    background-color: #4f5ae6;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(88, 101, 242, 0.5);
    filter: brightness(1.02);
    text-decoration: none;
}
.btn-discord:active {
    background-color: #4651d1;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}
.btn-discord:focus-visible {
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 2px;
}

/* Badges */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(47, 185, 255, 0.1);
    border: 1px solid rgba(47, 185, 255, 0.3);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-premium-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff6b6b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

/* Feature Cards */
.feature-card {
    background: rgba(11, 18, 32, 0.6);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 182, 87, 0.28);
    box-shadow: 0 18px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(229, 182, 87, 0.12);
    background: rgba(11, 18, 32, 0.9);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Hero and media */
.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}
.hero-content {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 56px;
}
.hero-section .btn-lg {
    min-height: 56px;
}
@media (max-width: 576px) {
    .hero-section .btn-lg {
        width: 100%;
    }
}
.video-frame-flat iframe {
    border: 1px solid rgba(229, 182, 87, 0.22);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(229, 182, 87, 0.10);
}

/* Rewards list items */
.reward-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(229, 182, 87, 0.18);
    box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

/* Countdown Timer */
.countdown-container {
    padding: 18px 18px;
    border-radius: 18px;
    background: radial-gradient(120% 140% at 10% 0%, rgba(59, 199, 255, 0.12), transparent 60%),
        radial-gradient(120% 140% at 90% 100%, rgba(229, 182, 87, 0.10), transparent 55%),
        rgba(11, 18, 32, 0.35);
    border: 1px solid rgba(229, 182, 87, 0.26);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(229, 182, 87, 0.10);
    backdrop-filter: blur(10px);
    max-width: 620px;
    position: relative;
    overflow: hidden;
}
.countdown-container::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(60% 60% at 20% 15%, rgba(229, 182, 87, 0.22), transparent 60%),
        radial-gradient(60% 60% at 80% 85%, rgba(59, 199, 255, 0.18), transparent 62%);
    opacity: 0.55;
    filter: blur(10px);
    animation: gold-aurora 7s ease-in-out infinite;
    pointer-events: none;
}
.countdown-label { color: rgba(241, 245, 250, 0.85) !important; font-weight: 700; }
.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(5, 6, 10, 0.9));
    border: 1px solid rgba(229, 182, 87, 0.16);
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}
.countdown-unit:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 182, 87, 0.34);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.countdown-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.05rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #ffffff, rgba(241, 245, 250, 0.72));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.countdown-unit-label {
    font-size: 0.7rem;
    color: rgba(243, 205, 120, 0.95);
    font-weight: 700;
    margin-top: 5px;
    letter-spacing: 0.14em;
}
.countdown-separator {
    display: none;
}
@media (max-width: 576px) {
    .countdown-container {
        padding: 16px 14px;
        max-width: 100%;
    }
    .countdown-label {
        text-align: center;
    }
    .countdown-timer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .countdown-unit { padding: 10px 12px; }
    .countdown-value { font-size: 1.9rem; }
}
@media (min-width: 992px) {
    .countdown-container {
        padding: 20px 20px;
    }
    .countdown-timer {
        gap: 14px;
    }
}

@keyframes gold-aurora {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
    50% { transform: translate3d(10px, -6px, 0) scale(1.03); opacity: 0.65; }
}

/* =========================================
   4. FORMS & INPUTS
   ========================================= */
.form-control-premium {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
}
.form-control-premium::placeholder {
    color: var(--muted-color);
    opacity: 0.85;
}

.form-control-premium:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(47, 185, 255, 0.25);
    color: white;
}

/* --- Intl Tel Input Customization (Fixes for Dark Mode & Layout) --- */
.iti {
    width: 100%;
    display: block;
    color: inherit;
}

/* Input styling within ITI */
.iti__tel-input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    /* padding-left is handled by JS library */
}
.iti__tel-input::placeholder {
    color: var(--muted-color) !important;
    opacity: 0.85;
}

.iti__tel-input:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(47, 185, 255, 0.25);
    outline: none;
}

/* Dropdown Menu - Dark Mode */
.iti__country-list {
    background-color: var(--panel-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1060; /* Higher than sticky bars */
}

/* Dropdown Items */
.iti__country-list .iti__country {
    transition: background-color 0.2s;
}

.iti__country-list .iti__country:hover,
.iti__country-list .iti__country.iti__highlight {
    background-color: rgba(47, 185, 255, 0.2);
}

.iti__country-name, 
.iti__dial-code {
    color: var(--text-color);
}

/* Divider line in dropdown */
.iti__country-list .iti__divider {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Fix for "Two Flags" / Sprite Issue */
/* Let plugin manage flag sizing to avoid sprite overlap */
.iti__flag { box-shadow: none; border-radius: 2px; }

/* Selected flag container */
.iti__selected-flag {
    background-color: transparent !important;
}

/* Selected Dial Code (visible next to flag) */
.iti__selected-dial-code {
    color: var(--text-color);
}

.iti__arrow {
    border-top-color: var(--text-color);
}
.iti__arrow--up {
    border-bottom-color: var(--text-color);
}


/* =========================================
   5. LAYOUT & NAVIGATION
   ========================================= */
.navbar-custom {
    background: rgba(4, 6, 10, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
    position: relative;
}
.navbar-custom::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 199, 255, 0.55), transparent);
}
.navbar-custom .navbar-brand span {
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    background-color: rgba(59, 199, 255, 0.12);
    transform: translateY(-1px);
    text-shadow: none;
}

.navbar-custom .navbar-collapse.show {
    background: rgba(11, 18, 32, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 14px;
    margin-top: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.bg-panel { background-color: var(--panel-color); }

/* Brand */
.logo-brand { color: white; }
.logo-brand img {
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 18px rgba(229, 182, 87, 0.14));
    transform-origin: center;
    animation: logo-float 4.8s ease-in-out infinite;
}
.logo-brand span {
    position: relative;
}
.logo-brand span::after {
    content: "";
    position: absolute;
    inset: -6px -10px;
    background: linear-gradient(90deg, transparent, rgba(229, 182, 87, 0.22), transparent);
    transform: skewX(-18deg) translateX(-120%);
    opacity: 0.0;
    animation: logo-shine 6.5s ease-in-out infinite;
    pointer-events: none;
}
.footer-logo img { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* =========================================
   6. ANIMATIONS & EFFECTS
   ========================================= */
.fade-in { animation: fadeIn 0.8s ease-in; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 26px rgba(59, 199, 255, 0.16);
    transform: translateZ(0);
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: screen;
}
.glitch::before {
    left: 2px; text-shadow: -2px 0 rgba(255, 0, 193, 0.75);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 4.6s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px; text-shadow: 2px 0 rgba(0, 255, 249, 0.65);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5.4s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(10px, 9999px, 31px, 0); }
    20% { clip: rect(50px, 9999px, 80px, 0); }
    40% { clip: rect(20px, 9999px, 40px, 0); }
    60% { clip: rect(80px, 9999px, 10px, 0); }
    80% { clip: rect(40px, 9999px, 90px, 0); }
    100% { clip: rect(30px, 9999px, 60px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(60px, 9999px, 70px, 0); }
    20% { clip: rect(10px, 9999px, 30px, 0); }
    40% { clip: rect(90px, 9999px, 20px, 0); }
    60% { clip: rect(20px, 9999px, 60px, 0); }
    80% { clip: rect(70px, 9999px, 40px, 0); }
    100% { clip: rect(50px, 9999px, 10px, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .glitch::before, .glitch::after { animation: none; opacity: 0; }
    .text-glow { animation: none; }
    .btn-pulse { animation: none; }
    .logo-brand img { animation: none; }
    .logo-brand span::after { animation: none; }
}

@keyframes logo-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 18px rgba(229, 182, 87, 0.14)); }
    50% { transform: translate3d(0, -2px, 0) rotate(1deg); filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(229, 182, 87, 0.22)); }
}
@keyframes logo-shine {
    0% { transform: skewX(-18deg) translateX(-120%); opacity: 0; }
    15% { opacity: 0.85; }
    35% { transform: skewX(-18deg) translateX(120%); opacity: 0; }
    100% { transform: skewX(-18deg) translateX(120%); opacity: 0; }
}

/* Utilities */
.hover-white:hover { color: white !important; }
.op-7 { opacity: 0.7; }
