/* ==========================================================================
   TOPVIPCASINOCLUB.COM - CRYSTAL CLEAR VIDEO & REFINED LUXURY HEADER
   ========================================================================== */

:root {
    --bg-obsidian: #050608;
    --bg-card: rgba(8, 10, 15, 0.62);
    --bg-card-hover: rgba(14, 17, 26, 0.82);
    
    /* Gold Palette */
    --gold-primary: #ffd700;
    --gold-light: #fff3a3;
    --gold-dark: #b8860b;
    --gold-gradient: linear-gradient(135deg, #ffe066 0%, #f7b731 50%, #e1b12c 100%);
    --gold-border: rgba(255, 215, 0, 0.5);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Fonts */
    --font-brand: 'Montserrat', sans-serif;
    --font-heading: 'Cinzel', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    --radius-card: 22px;
    --radius-btn: 12px;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

/* --- CRYSTAL CLEAR FULLSCREEN VIDEO BACKGROUND --- */
.fullscreen-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: -webkit-fill-available;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

/* Bright, vibrant video rendering */
.fullscreen-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(1.15) contrast(1.1) saturate(1.35);
    transform: scale(1.02);
}

/* Extremely light, crystal-clear overlay to make video 100% POP */
.fullscreen-video-overlay-crystal {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 20%, rgba(4, 5, 8, 0.1) 0%, rgba(4, 5, 8, 0.35) 75%, rgba(4, 5, 8, 0.7) 100%),
        linear-gradient(180deg, rgba(4, 5, 8, 0.2) 0%, rgba(4, 5, 8, 0.55) 100%);
    pointer-events: none;
}

/* --- 18+ Modal Overlay --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 7, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-card {
    background: rgba(12, 14, 20, 0.95);
    border: 1.5px solid var(--gold-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 215, 0, 0.25);
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(16px);
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-badge-18 {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #000;
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 900;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

.modal-title {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-gold {
    background: var(--gold-gradient);
    border: none;
    color: #08090c;
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 14px 20px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 12px 20px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.modal-error-msg {
    display: none;
    margin-top: 16px;
    font-size: 0.82rem;
    color: #ff5252;
}

.modal-error-msg.is-active {
    display: block;
}

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* --- Page Wrapper --- */
.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1020px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* --- Site Header --- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(8, 10, 15, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid var(--gold-border);
    border-radius: 20px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* High-End Crown Logo Badge */
.brand-crown-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--gold-gradient);
    display: grid;
    place-items: center;
    color: #000;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    transition: var(--transition);
}

.brand-crown-badge svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-crown-badge:hover {
    transform: rotate(6deg) scale(1.05);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-brand);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1;
}

.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 0.62rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 800;
    margin-top: 3px;
}

/* Header Controls Right */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Prominent Language Switcher Pill */
.lang-switcher-pill {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid var(--gold-border);
    border-radius: 30px;
    padding: 3px;
    gap: 3px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-brand);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.lang-btn .flag {
    font-size: 1rem;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
}

/* Telegram Only Button */
.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 12px;
    background: rgba(0, 136, 204, 0.15);
    border: 1.5px solid rgba(0, 168, 255, 0.5);
    color: #33b5ff;
    text-decoration: none;
    font-family: var(--font-brand);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.25);
}

.telegram-btn svg {
    width: 18px;
    height: 18px;
}

.telegram-btn:hover {
    background: rgba(0, 168, 255, 0.3);
    border-color: #33b5ff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 168, 255, 0.6);
}

/* --- GLASS HERO SECTION --- */
.glass-hero {
    position: relative;
    border-radius: 28px;
    padding: 52px 28px;
    overflow: hidden;
    margin-bottom: 36px;
    background: rgba(8, 10, 15, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid var(--gold-border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
}

.pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    border-radius: 30px;
    background: rgba(4, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gold-border);
    color: var(--gold-primary);
    font-family: var(--font-brand);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 10px #00e676;
    animation: livePulse 1.4s infinite alternate;
}

@keyframes livePulse {
    0% { transform: scale(0.8); opacity: 0.4; }
    100% { transform: scale(1.3); opacity: 1; }
}

.hero-title {
    font-family: var(--font-brand);
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 16px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
}

.shimmer-text {
    background: linear-gradient(90deg, #ffd700 0%, #ffffff 30%, #fff3a3 60%, #ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 4s linear infinite;
}

@keyframes goldShimmer {
    to { background-position: 200% center; }
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    max-width: 620px;
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    margin-bottom: 32px;
}

/* Hero Stats Row */
.hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 16px 36px;
    background: rgba(8, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gold-border);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-brand);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold-primary);
    line-height: 1;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
}

/* --- Cards Grid --- */
/* ==========================================
   HERO TRUST TEXT
   ========================================== */
.hero-trust {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.hero-trust-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.hero-trust-text {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 235, 190, 0.8);
    margin: 0;
    text-align: left;
}

/* ==========================================
   CARDS GRID
   ========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .header-controls {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .hero-stats-row {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    .stat-divider {
        width: 60%;
        height: 1px;
    }
    
    .brand-name {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .brand-tagline {
        font-size: 0.55rem;
    }
    
    .luxury-card {
        background: rgba(8, 10, 15, 0.15);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    
    .card-rank-1 {
        background: linear-gradient(180deg, rgba(255, 215, 0, 0.10) 0%, rgba(8, 10, 15, 0.20) 100%);
    }
}

/* --- Luxury Cards --- */
.luxury-card {
    background: var(--bg-card);
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(30px);
}

.luxury-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Golden sweep beam on hover */
.luxury-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 215, 0, 0.2) 50%,
        transparent 55%
    );
    transform: rotate(30deg) translateY(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.luxury-card:hover::after {
    transform: rotate(30deg) translateY(100%);
}

.luxury-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-border);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 215, 0, 0.25);
}

.card-rank-1 {
    border-color: rgba(255, 215, 0, 0.65);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.2) 0%, rgba(8, 10, 15, 0.82) 100%);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.25);
}

.card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rank-badge {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 8px;
    text-transform: uppercase;
}

.gold-badge {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.silver-badge {
    background: linear-gradient(135deg, #ffffff, #a8a8a8);
    color: #000;
}

.bronze-badge {
    background: linear-gradient(135deg, #f0a060, #b06020);
    color: #ffffff;
}

.neutral-badge {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.rating {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.partner-name {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 12px;
}

.bonus-box {
    background: rgba(0, 0, 0, 0.45);
    border-left: 4px solid var(--gold-primary);
    padding: 14px 16px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 20px;
}

.bonus-title {
    display: block;
    font-family: var(--font-brand);
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--gold-light);
    line-height: 1.3;
}

.bonus-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 3px;
}

.feature-list {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.feature-list li::before {
    content: "✓";
    color: var(--gold-primary);
    font-weight: bold;
}

/* Luxury Buttons */
.luxury-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    border-radius: var(--radius-btn);
    font-family: var(--font-brand);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 1s ease-in-out;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 5px 0 rgba(255, 215, 0, 0.8);
}

body.global-pulse-active .luxury-btn {
    box-shadow: 0 0 35px 12px rgba(255, 215, 0, 0.65), 0 0 60px 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
    filter: brightness(1.25);
}

.btn-primary-gold {
    background: var(--gold-gradient);
    color: #08090c;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary-gold:hover {
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.7) !important;
    transform: translateY(-2px) !important;
    filter: brightness(1.1) !important;
    transition: all 0.2s ease-out;
}

.btn-secondary-gold {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid var(--gold-border);
    color: var(--gold-light);
}

.btn-secondary-gold:hover {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: var(--gold-primary) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4) !important;
    filter: brightness(1.1) !important;
    transition: all 0.2s ease-out;
}

.luxury-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.luxury-btn:hover svg {
    transform: translateX(4px);
}

/* --- Footer --- */
.site-footer {
    margin-top: 60px;
    text-align: center;
    color: var(--text-muted);
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
    margin-bottom: 24px;
}

.copyright {
    font-size: 0.82rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
}
