:root {
    --bg-dark: #1a0101;
    --bg-maroon: #2a0101;
    --bg-card: #3d0303;
    --gold-primary: #d4af37;
    --gold-gradient: linear-gradient(135deg, #d4af37, #f3ce5e);
    --gold-shadow: rgba(212, 175, 55, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #e0b0b0;
    --accent-green: #2ecc71;
    --sidebar-width: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
    -webkit-touch-callout: none;
}

img { -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -o-user-drag: none; }

/* --- LAYOUT --- */
.modern-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--bg-maroon), var(--bg-dark));
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem 1rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-logo { text-align: center; margin-bottom: 2rem; }
.sidebar-logo img { max-width: 160px; filter: drop-shadow(0 0 10px var(--gold-shadow)); }

.nav-category { 
    font-size: 0.7rem; color: var(--gold-primary); text-transform: uppercase; 
    margin: 1.5rem 0 0.5rem 0.5rem; font-weight: 900; letter-spacing: 1.5px;
}

.nav-item {
    display: flex; align-items: center; padding: 0.8rem 1.2rem; border-radius: 10px;
    color: var(--text-secondary); text-decoration: none; margin-bottom: 5px; cursor: pointer;
    transition: var(--transition); font-size: 0.85rem;
}
.nav-item:hover, .nav-item.active { background: var(--gold-gradient); color: #1a0101; font-weight: 900; }

.main-content {
    flex: 1; margin-left: var(--sidebar-width); padding: 2rem;
    max-width: 1400px;
}

/* --- HEADER & ELEMENTS --- */
/* --- PREMIUM BADGES V5 --- */
.premium-badge-v5 {
    position: absolute; top: 0; left: 0; z-index: 20;
    padding: 5px 12px; font-size: 0.6rem; font-weight: 950;
    color: #fff; border-radius: 0 0 12px 0; letter-spacing: 1px;
    text-transform: uppercase; border: 1px solid rgba(255,255,255,0.2);
}

.premium-badge-v5.gacor {
    background: linear-gradient(-45deg, #a90329, #ff4500, #ff8c00, #ffff00);
    background-size: 400% 400%;
    color: #fff; border: 1px solid #fff; padding: 6px 14px;
    box-shadow: 0 0 10px #ff4500, 0 0 20px #ff8c00, 0 0 35px #ffff00;
    text-shadow: 0 2px 4px #000;
    animation: hyper-inferno 0.4s infinite alternate, lava-flow 3s ease infinite;
}

.premium-badge-v5.maxwin {
    background: linear-gradient(135deg, #d4af37, #fff8e1, #d4af37);
    background-size: 200% auto;
    color: #3d0303; border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(212,175,55,0.8), 0 0 40px rgba(255,255,255,0.4);
    animation: gold-shimmer 2s linear infinite, gold-pulse 1.2s infinite ease-in-out;
}

.premium-badge-v5.trending {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: #fff; border: 1px solid #fff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6), inset 0 0 10px rgba(255,255,255,0.3);
    animation: neon-sapphire-pulse 1s infinite alternate;
}

@keyframes gold-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes neon-sapphire-pulse {
    0% { filter: brightness(1) drop-shadow(0 0 5px #00d2ff); transform: scale(1); }
    100% { filter: brightness(1.5) drop-shadow(0 0 15px #3a7bd5); transform: scale(1.05); }
}

@keyframes hyper-inferno {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.15); filter: brightness(1.8); }
}

@keyframes lava-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gold-pulse {
    0% { box-shadow: 0 0 10px var(--gold-primary); }
    50% { box-shadow: 0 0 30px var(--gold-primary), 0 0 50px rgba(212,175,55,0.4); }
    100% { box-shadow: 0 0 10px var(--gold-primary); }
}

.header-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; gap: 1.5rem;
}

.search-box { position: relative; flex: 1; }
.search-box input {
    width: 100%; padding: 12px 20px 12px 45px; background: rgba(0,0,0,0.3);
    border: 1px solid var(--gold-primary); border-radius: 50px; color: #fff; outline:none;
}
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--gold-primary); }

.server-status { 
    display: flex; align-items: center; gap: 10px; background: rgba(46,204,113,0.1); 
    padding: 8px 15px; border-radius: 50px; border: 1px solid var(--accent-green);
    font-size: 0.7rem; font-weight: 950; color: var(--accent-green);
}
.status-dot-green { width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%; animation: pulse 1s infinite; }

.hero-header { margin-bottom: 2rem; text-align: center; }
.hero-header h1 { font-size: 2.5rem; font-weight: 950; margin: 0; }
.gold-text { 
    background: var(--gold-gradient); 
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent; 
}

.promotion-area { margin-bottom: 2rem; border-radius: 20px; overflow: hidden; border: 1px solid var(--gold-primary); }
.promotion-area img { width: 100%; display: block; }

/* --- PROVIDER SELECTOR (ULTIMATE STABILITY) --- */
.platinum-select {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0,0,0,0.4); border: 1px solid var(--gold-primary);
    padding: 15px 25px; border-radius: 12px; cursor: pointer;
}
.select-left { display: flex; align-items: center; gap: 15px; font-weight: 900; }

.custom-options-container {
    display: none; flex-direction: column; width: 100%; margin-top: 5px;
    border-radius: 10px; border: 1px solid var(--gold-primary);
}
.custom-options-container.active { display: flex; }
.custom-option { padding: 12px 20px; cursor: pointer; color: var(--text-secondary); transition: 0.2s; }
.custom-option:hover { background: var(--gold-gradient); color: #1a0101; font-weight: 800; }

/* --- VIP BOOSTER --- */
.vip-booster-banner {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(90deg, #3d0303, #2a0101);
    padding: 15px 25px; border: 1px solid var(--gold-primary);
    border-radius: 15px; margin-bottom: 2.5rem; cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.vip-booster-content { display: flex; align-items: center; gap: 15px; }
.booster-pulse-icon { font-size: 1.8rem; color: var(--gold-primary); animation: pulse 1.5s infinite; }

/* --- GRID & CARDS --- */
.modern-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem;
}
.modern-card {
    background: var(--bg-card); border: 1px solid rgba(212,175,55,0.1);
    border-radius: 15px; overflow: hidden; transition: var(--transition);
}
.modern-card:hover { transform: translateY(-5px); border-color: var(--gold-primary); }
.card-img-container { position: relative; aspect-ratio: 1/1; }
.card-img-container img { width: 100%; height: 100%; object-fit: cover; }
.modern-rtp-badge { 
    position: absolute; bottom: 0; left: 0; right: 0; padding: 8px;
    background: rgba(0,0,0,0.7); text-align: center; font-weight: 950; font-size: 1rem;
}

/* --- MOBILE NAV (OFF BY DEFAULT ON DESKTOP) --- */
.mobile-nav { display: none; }

/* --- MOBILE RESPONSIVE (LOCKDOWN) --- */
@media (max-width: 992px) {
    .sidebar { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 15px 15px 100px 15px !important; width: 100%; }
    
    .header-actions { 
        position: sticky; top: 0; z-index: 2000; background: var(--bg-dark); 
        padding: 10px 15px !important; margin: -15px -15px 20px -15px !important;
        border-bottom: 1px solid var(--gold-primary);
    }
    
    .hero-header h1 { font-size: 1.8rem !important; }
    .modern-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    
    .mobile-nav { 
        display: flex !important; position: fixed !important; bottom: 0 !important; 
        left: 0 !important; right: 0 !important; height: 75px !important;
        background: #0f0101 !important; z-index: 4000 !important;
        border-top: 2px solid var(--gold-primary) !important;
        justify-content: space-around !important; align-items: center !important;
    }
    .mobile-nav-item { 
        display: flex; flex-direction: column; align-items: center; gap: 5px; 
        color: #fff; text-decoration: none; opacity: 0.6;
    }
    .mobile-nav-item.active { color: var(--gold-primary); opacity: 1; }
    .boost-btn-nav { 
        background: var(--gold-gradient); width: 60px; height: 60px; border-radius: 50%;
        margin-top: -40px; border: 4px solid var(--bg-dark); color: #3d0303 !important;
        box-shadow: 0 5px 15px var(--gold-shadow); opacity: 1 !important;
        display: flex !important; justify-content: center; align-items: center;
    }

    .fab-chat { bottom: 90px !important; width: 50px; height: 50px; right: 10px; }
}

/* --- MODALS --- */
/* --- MODALS (SOLID SULTAN) --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92);
    display: none; justify-content: center; align-items: center; z-index: 5000;
    padding: 20px; backdrop-filter: blur(8px);
}
.modal-overlay.active { display: flex; }

.premium-modal {
    background: #0f0101; border: 1px solid var(--gold-primary);
    border-radius: 20px; max-width: 500px; width: 100%;
    position: relative; overflow: hidden; box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
.boost-modal-size { max-width: 500px; padding: 0; }

.modal-close { 
    position: absolute; top: 15px; right: 15px; color: var(--gold-primary); 
    cursor: pointer; z-index: 100; font-size: 1.2rem;
}

.boost-state-container { padding: 30px; text-align: center; }
.modern-card .card-info { 
    padding: 10px; background: #2a0101; text-align: center; 
}
.modern-card .game-title { 
    font-size: 0.72rem; font-weight: 950; color: #fff; text-transform: uppercase; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.modern-rtp-badge .rtp-win-label { font-size: 0.5rem; opacity: 0.7; margin-bottom: 2px; }
.modern-rtp-badge .rtp-percent-val { font-weight: 950; font-size: 0.85rem; }
.boost-input-field { 
    width: 100%; margin: 20px 0; padding: 15px; background: rgba(0,0,0,0.4); 
    border: 1px solid var(--gold-primary); color: #fff; border-radius: 10px; 
    text-align: center; font-weight: 900; outline: none;
}
.boost-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 25px; }

/* SCAN STATE */
.boost-encryption-status { color: var(--gold-primary); font-family: monospace; font-size: 0.7rem; margin-bottom: 10px; font-weight: 900; }
.boost-console { 
    height: 180px; background: #000; color: #2ecc71; font-family: monospace; 
    font-size: 0.75rem; padding: 15px; overflow-y: auto; border-radius: 10px; 
    border: 1px solid #1a1a1a; text-align: left; line-height: 1.4;
}
.console-line { margin-bottom: 5px; }
.console-cursor { color: var(--gold-primary); margin-right: 5px; }
.boost-progress-wrap { height: 6px; background: rgba(255,255,255,0.05); margin-top: 25px; border-radius: 10px; overflow: hidden; }
.boost-progress-bar { height: 100%; width: 0%; background: var(--gold-gradient); transition: width 0.3s; }

/* SUCCESS STATE */
.boost-success-header { background: rgba(46,204,113,0.1); border: 1px solid #2ecc71; padding: 15px; border-radius: 12px; margin-bottom: 20px; }
.boost-success-icon { color: #2ecc71; font-size: 2rem; }
.boost-success-title { color: #2ecc71; margin-top: 10px; font-weight: 950; }
.boost-id-stamp { font-family: monospace; font-weight: 900; color: #fff; font-size: 1.1rem; margin-top: 5px; text-shadow: 0 0 10px #2ecc71; }
.boost-timer-countdown { font-size: 2.5rem; font-weight: 950; color: var(--gold-primary); margin-bottom: 20px; }
.boost-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 25px; }

/* BOOST RESULT ITEM */
.boost-result-item { 
    background: rgba(255,255,255,0.03); border: 1px solid rgba(46,204,113,0.3); 
    border-radius: 10px; overflow: hidden; text-align: center; display: flex; flex-direction: column; 
}
.boost-res-provider { font-size: 0.45rem; color: var(--gold-primary); font-weight: 950; padding: 4px 2px; background: rgba(0,0,0,0.3); text-transform: uppercase; border-bottom: 1px solid rgba(212,175,55,0.1); }
.boost-res-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.boost-res-info { padding: 6px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.boost-res-title { font-size: 0.55rem; color: #fff; font-weight: 950; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-transform: uppercase; }
.boost-res-signal-box { margin-top: 2px; }
.boost-res-signal-label { font-size: 0.4rem; color: #2ecc71; font-weight: 950; letter-spacing: 1px; }
.boost-res-signal-val { font-size: 0.75rem; color: #fff; font-weight: 950; }
.boost-res-progress-wrap { height: 3px; background: rgba(255,255,255,0.05); margin-top: 2px; border-radius: 10px; overflow: hidden; }
.boost-res-progress-bar { height: 100%; background: #2ecc71; box-shadow: 0 0 5px #2ecc71; animation: signal-pulse 1s infinite alternate; }

/* POLA MODAL ELEMENTS */
.pola-modal-header { padding: 30px 25px; background: linear-gradient(to bottom, #2a0101, #0f0101); position: relative; border-bottom: 1px solid rgba(212,175,55,0.2); }
.pola-modal-header-flex { display: flex; align-items: center; gap: 20px; }
.pola-img-box { position: relative; }
.pola-main-img { width: 105px; height: 105px; border-radius: 15px; border: 2px solid var(--gold-primary); box-shadow: 0 0 20px rgba(212,175,55,0.3); object-fit: cover; }
.pola-ai-badge { position: absolute; top: -10px; right: -10px; background: #2ecc71; color: #fff; font-size: 0.5rem; padding: 4px 8px; border-radius: 50px; font-weight: 950; animation: pulse 1.2s infinite; border: 1px solid #fff; box-shadow: 0 0 10px #2ecc71; }
.pola-game-title { color: #fff; margin: 0; font-size: 1.5rem; font-weight: 950; text-transform: uppercase; letter-spacing: 1px; line-height: 1.1; text-shadow: 0 2px 4px #000; }
.pola-server-label { font-size: 0.55rem; color: var(--gold-primary); font-weight: 950; margin-top: 5px; opacity: 0.8; }
.pola-stats-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 15px; }
.pola-stat-badge { padding: 5px 12px; border-radius: 50px; font-size: 0.7rem; font-weight: 950; }
.pola-stat-badge.accuracy { background: rgba(46,204,113,0.1); border: 1px solid #2ecc71; color: #2ecc71; box-shadow: 0 0 10px rgba(46,204,113,0.2); }
.pola-stat-badge.min-bet { background: var(--gold-gradient); color: #3d0303; box-shadow: 0 0 15px rgba(212,175,55,0.3); }

.pola-inner-list { padding: 25px; background: rgba(0,0,0,0.2); }
.pola-footer { padding: 0 25px 30px 25px; }

.pola-card-v5 {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 18px; margin-bottom: 12px;
    border-left: 4px solid var(--gold-primary); transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.pola-card-header { display: flex; align-items: center; margin-bottom: 8px; }
.pola-icon-wrap { width: 28px; height: 28px; background: rgba(212,175,55,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; border: 1px solid rgba(212,175,55,0.3); }
.pola-icon-wrap i { color: var(--gold-primary); font-size: 0.8rem; }
.pola-stage-title { color: var(--gold-primary); font-size: 0.75rem; font-weight: 950; letter-spacing: 1px; }
.pola-stage-sub { color: #fff; font-size: 1.1rem; font-weight: 950; padding-left: 43px; letter-spacing: 0.5px; text-shadow: 0 1px 3px #000; }

.btn-play-now {
    width: 100%; padding: 15px; background: var(--gold-gradient);
    color: #3d0303; border-radius: 12px; font-weight: 950;
    text-decoration: none; display: flex; align-items: center;
    justify-content: center; gap: 10px; margin-top: 15px;
    text-transform: uppercase; border: none; transition: 0.3s;
    box-shadow: 0 10px 20px var(--gold-shadow);
}
.btn-play-now:hover { transform: scale(1.02); filter: brightness(1.1); }

/* --- BOOSTER ENHANCEMENT --- */
.focus-btn {
    padding: 12px; background: rgba(255,255,255,0.05); color: #fff;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    font-size: 0.7rem; font-weight: 950; cursor: pointer; transition: 0.3s;
    text-transform: uppercase;
}
.focus-btn.active {
    background: var(--gold-gradient); color: #3d0303; 
    border-color: #fff; box-shadow: 0 0 15px var(--gold-shadow);
}

@keyframes signal-pulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}