/* ==========================================================================
   WAR138 PREMIUM CORE DESIGN SYSTEM (Tema Gelap Kasino VIP)
   ========================================================================== */

/* 1. RESET & INITIALIZATION */
html, body {
    margin: 0;
    padding: 0;
    background-color: #0d0f12;
    color: #e2e8f0;
    font-family: 'Lexend', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 2. PRELOADER SCREEN */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #07080a;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader-inner {
    text-align: center;
    color: #00f2ff;
}
.spinner-cube {
    width: 45px;
    height: 45px;
    background-color: #00f2ff;
    margin: 0 auto;
    animation: sk-cubemove 1.4s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.7);
}
@keyframes sk-cubemove {
    25% { transform: translateX(42px) rotate(-90deg) scale(0.5); }
    50% { transform: translateX(42px) translateY(42px) rotate(-179deg); }
    50.1% { transform: translateX(42px) translateY(42px) rotate(-180deg); }
    75% { transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5); }
    100% { transform: rotate(-360deg); }
}

/* 3. NAVIGATION HEADER */
.main-header {
    background-color: rgba(13, 15, 18, 0.98);
    border-bottom: 2px solid #1e2530;
    box-shadow: 0 4px 25px rgba(0,0,0,0.6);
    padding: 8px 0;
}
.active-logo-text {
    font-family: 'Orbitron', sans-serif;
    color: #00f2ff !important;
    font-size: 26px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}
.btn-outline-cyan {
    border: 1px solid #00f2ff !important;
    color: #00f2ff !important;
    background: transparent !important;
    transition: all 0.3s ease;
}

/* 4. HERO BANNER SLIDER (Desktop Version) */
.hero-slider-wrapper {
    margin-top: 55px;
    width: 100%;
    position: relative;
}
.slide-item-box {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
}
.dark-gradient-overlay {
    background: linear-gradient(to bottom, rgba(13,15,18,0.2) 0%, rgba(13,15,18,0.98) 100%);
    width: 100%;
    padding: 160px 0 120px 0;
}
.font-weight-black {
    font-weight: 800;
}
.highlight-cyan {
    color: #00f2ff;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.6);
}
.max-width-p {
    max-width: 700px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.6;
}

/* BUTTONS SYSTEM */
.btn-war {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 1px;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.btn-login-custom {
    margin: 5px; 
    padding: 12px 35px; 
    border: 1px solid #ff0055; 
    color:#fff; 
    background:transparent;
}
.btn-login-custom:hover {
    background: #ff0055;
    color: #fff;
    box-shadow: 0 0 15px #ff0055;
}
.btn-register-custom {
    margin: 5px; 
    padding: 12px 35px; 
    background:#00f2ff; 
    color:#000;
    border: none;
}
.btn-register-custom:hover {
    background: #00d6e0;
    color: #000;
    box-shadow: 0 0 20px #00f2ff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 242, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}
.pulsing-btn {
    animation: pulse 2s infinite;
}

/* 5. LIVE PROGRESSIVE JACKPOT */
.live-jackpot-panel {
    background: #090a0d;
    border-top: 1px solid #1e2530;
    border-bottom: 1px solid #1e2530;
}
.jackpot-counter-box {
    background: #040507 !important;
    border: 2px solid #ff0055 !important;
    box-shadow: inset 0 0 20px rgba(255, 0, 85, 0.2), 0 0 15px rgba(255, 0, 85, 0.3);
}
.jackpot-numbers {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.6);
}

/* 6. COUNTDOWN TIMER */
.timer-card {
    border: 1px solid #1e2530;
    min-width: 80px;
}

/* 7. INTERACTIVE LOGO CONTAINER */
.video-placeholder-container {
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
}
.tech-grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}
.tech-center-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3));
}

/* 8. DETAILED MOBILE OPTIMIZATION SYSTEM */
@media (max-width: 768px) {
    /* SOLUSI BANNER FULL ANTI KEPOTONG DI HP */
    .slide-item-box {
        background-size: 100% auto !important; /* Paksa gambar pas 100% lebar layar mobile */
        background-position: center top !important;
        background-color: #0d0f12; /* Background fallback biar menyatu */
    }
    .dark-gradient-overlay {
        /* Menggeser area padding agar teks tidak menutupi grafis utama banner di HP */
        padding: 160px 15px 40px 15px !important;
        background: linear-gradient(to bottom, rgba(13,15,18,0) 0%, rgba(13,15,18,0.95) 80%, #0d0f12 100%);
    }
    
    .hero-slider-wrapper h1 {
        margin-top: 50px !important;
        font-size: 24px !important;
        line-height: 1.3;
        margin-top: 10px !important;
    }
    .max-width-p {
        font-size: 13px !important;
        margin-bottom: 20px !important;
    }
    
    /* Tombol Aksi Mobile */
    .action-btn-group a {
        display: block !important;
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 12px 0 !important;
        font-size: 15px !important;
    }

    /* Jackpot Ticker Mobile */
    .jackpot-counter-box {
        padding: 12px 20px !important;
        width: 95%;
        margin: 0 auto;
    }
    .jackpot-numbers { 
        font-size: 22px !important; 
    }

    /* Layout Konten Artikel Mobile */
    .row {
        display: block !important;
    }
    .col-md-6 {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .video-placeholder-container { 
        max-width: 100%; 
        padding: 20px !important; 
    }
    .tech-center-logo { 
        max-height: 65px; 
    }

    /* Timer Grid Mobile */
    #countdown-wrapper { 
        display: flex !important;
        justify-content: space-between !important;
    }
    .timer-card { 
        flex: 1;
        margin: 0 3px !important; 
        padding: 8px 0 !important;
        min-width: 55px !important;
    }
/* 9. NAVBAR BARU (Integrasi Header Premium) */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.desktop-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu li {
    margin-left: 20px;
}

.desktop-menu a {
    color: #cbd5e1;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.desktop-menu a:hover, .desktop-menu a.active {
    color: #00f2ff;
}

/* Tombol Burger Mobile */
.mobile-toggle-btn {
    background: transparent;
    border: 1px solid #1e2530;
    color: #00f2ff;
    padding: 5px 10px;
    border-radius: 4px;
    display: none; /* Sembunyi di desktop */
    cursor: pointer;
}

/* Menu Dropdown Mobile */
.mobile-dropdown-menu {
    display: none;
    list-style: none;
    background: #0d0f12;
    border-bottom: 2px solid #00f2ff;
    padding: 20px;
    margin: 0;
    position: absolute;
    width: 100%;
    left: 0;
}

.mobile-dropdown-menu li {
    padding: 10px 0;
    text-align: center;
}

.mobile-dropdown-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Responsivitas Header Baru */
@media (max-width: 768px) {
    .desktop-menu { display: none !important; }
    .mobile-toggle-btn { display: block !important; }
}
}