/* ========================================================
   1. PENATAAN SENI BACKGROUND PREMIUM
   ======================================================== */
b/* GANTI SCRIPT BODY KAMU DENGAN INI BIAR PROPORSI BACKGROUND DI HP PRESISI */
body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #bfc3d6; /* Mengunci warna ungu pekat lo sebagai base paling dasar */
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Layer Utama Penggabung Gambar dan Efek Bintang */
.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Mengunci posisi agar berada di paling belakang konten web */
    overflow: hidden;
    pointer-events: none;
    
    /* Pengaturan Gradasi Ungu-Hitam + Gambar Pemain Lo */
    background-image: linear-gradient(to bottom, #0004388c, #0006388c), url('https://eventpinobola.ampspeedy.com/assets/images/bg-pino.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
}

/* 1. Efek Bintang Kecil */
.stars {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* ðŸ•¶ï¸ DIGELAPKAN: Ditambahkan lapisan kacamata hitam (rgba hitam 70%) di atas gambarnya */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://eventpinobola.ampspeedy.com/assets/images/bg-pino.png') repeat;
    
    opacity: 0.5; /* Tinggal mainkan opacity ini buat final touch-nya bor */
}

/* 2. Efek Kelap-Kelip */
.twinkling {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* ðŸ•¶ï¸ DIGELAPKAN: Kita lapisi kaca film hitam 75% biar gambarnya samar-samar misterius */
    background: linear-gradient(rgba(2, 2, 23, 0.75), rgba(3, 2, 23, 0.75)), 
                url('https://eventpinobola.ampspeedy.com/assets/images/bg-pino.png') repeat-x;
                
    /* Perlambat animasinya biar jalannya smooth banget gak bikin pusing */
    animation: move-twink-back 200s linear infinite; 
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* 3. Efek Bintang Jatuh Bergerak (Shooting Stars) */
.shooting-stars {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    transform: rotate(-45deg);
}

.shooting-stars span {
    position: absolute;
    left: 50%; top: 50%; height: 2px;
    background: linear-gradient(-45deg, #000000, rgba(0, 4, 255, 0)); 
    border-radius: 999px;
    filter: drop-shadow(0 0 6px #ffcc33); 
    animation: tail 3s ease-in-out infinite, shooting 3s ease-in-out infinite;
}

.shooting-stars span:nth-child(1) { top: 10%; left: 30%; animation-delay: 0s; animation-duration: 3.5s; }
.shooting-stars span:nth-child(2) { top: 25%; left: 60%; animation-delay: 1.2s; animation-duration: 4s; }
.shooting-stars span:nth-child(3) { top: 5%; left: 80%; animation-delay: 2.5s; animation-duration: 3s; }
.shooting-stars span:nth-child(4) { top: 40%; left: 15%; animation-delay: 0.8s; animation-duration: 4.5s; }
.shooting-stars span:nth-child(5) { top: 50%; left: 70%; animation-delay: 3.2s; animation-duration: 3.8s; }

@keyframes tail {
    0% { width: 0; }
    30% { width: 100px; }
    100% { width: 0; }
}

@keyframes shooting {
    0% { transform: translateX(0); }
    100% { transform: translateX(300px); }
}

/* Responsif Layar Mobile HP */
@media (max-width: 767px) {
    .space-background {
        background-size: auto 550px; /* Menjaga gambar pemain di HP tetap proporsional tinggi 550px */
    }
    .shooting-stars span {
        scale: 0.6;
    }
}

/* ========================================================
   2. AUTH BUTTONS - SKALA UTUT (MOBILE FIRST)
   ======================================================== */
.btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    /* Skala awal ukuran HP super kecil */
    font-size: 10px;
    padding: 6px 10px;
    border-radius: 5px;
}

/* Skala naik untuk HP Medium & Tablet (Resolusi mulai 375px ke atas) */
@media (min-width: 375px) {
    .btn-auth {
        font-size: 11px;
        padding: 7px 12px;
        border-radius: 6px;
    }
}

/* Skala naik untuk Desktop Monitor */
@media (min-width: 768px) {
    .btn-auth {
        font-size: 12.5px;
        padding: 8.5px 18px;
        border-radius: 8px;
    }
}

.btn-masuk {
    background-color: rgba(18, 15, 42, 0.7);
    color: #cccbe1;
    border: 1px solid rgba(78, 51, 234, 0.3);
}
.btn-masuk:hover { 
    background-color: rgba(63, 51, 234, 0.2); 
    border-color: rgba(51, 130, 234, 0.8);
    color: #ffffff; 
}

.btn-daftar {
    background: linear-gradient(to right, #f59e0b, #fbbf24, #f59e0b);
    color: #020217;
}
.btn-daftar:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
    filter: brightness(1.08);
}

/* Efek Shimmer Kilau Tombol Daftar */
@keyframes shimmer-effects {
    0% { transform: translateX(-150%) rotate(45deg); }
    100% { transform: translateX(150%) rotate(45deg); }
}
.shimmer-btn { position: relative; overflow: hidden; }
.shimmer-btn::after {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(45deg);
    animation: shimmer-effects 4.5s infinite linear;
}

/* ========================================================
   3. LINKS NAVIGASI VERSI DESKTOP (xl LAYOUT)
   ======================================================== */
@media (min-width: 1200px) {
    .nav-item-link {
        position: relative;
        color: #94a3b8 !important;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    .nav-item-link::after {
        content: '';
        position: absolute; bottom: -4px; left: 50%;
        width: 0; height: 2px;
        background: linear-gradient(to right, #f59e0b, #5580f7);
        transition: all 0.2s ease;
        transform: translateX(-50%);
    }
    .nav-item-link:hover::after,
    .nav-item-link.active::after { width: 100%; }
    .nav-item-link:hover, .nav-item-link.active { color: #f59e0b !important; }
}
.text-warning-glow { color: #7186fb !important; font-weight: 800; }

/* ========================================================
   4. LINK NAVIGASI VERSI LACI HP (MOBILE DRAWER ITEMS)
   ======================================================== */
.mobile-nav-link {
    color: #949bb8;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.15s ease-in-out;
    text-decoration: none !important;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: rgba(51, 100, 234, 0.08);
    color: #f59e0b;
    padding-left: 20px; /* Efek dorong bergeser cantik saat disentuh jari */
}

/* ========================================================
   5. RUNNING TEXT ENGINE
   ======================================================== */
@keyframes marquee-running {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.animate-marquee {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee-running 40s linear infinite;
}
.animate-marquee:hover { animation-play-state: paused; }

/* Custom Scrollbar Mini untuk Menu Dropdown Bahasa di HP */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(51, 109, 234, 0.4);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}
/* ========================================================
   REVISI TOTAL AREA INTERAKTIF EVENT - ALL DEVICE RESPONSIF
   ======================================================== */

/* Kartu angka countdown yang fleksibel */
.countdown-card {
    background: linear-gradient(to bottom, #0f162a, #020517);
    border: 1px solid rgba(54, 51, 234, 0.35);
    color: #fbbf24; /* Warna emas neon */
    font-weight: 900;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    border-radius: 8px;
    
    /* Ukuran HP Terkecil (Default Mobile-First) */
    font-size: 16px;
    padding: 6px 10px;
    min-w: 42px;
    text-center: center;
}

/* Ukuran naik otomatis di HP Medium (Android & iPhone Modern) */
@media (min-width: 400px) {
    .countdown-card {
        font-size: 20px;
        padding: 8px 12px;
        min-w: 50px;
    }
}

/* Ukuran naik otomatis di Tablet & Desktop */
@media (min-width: 768px) {
    .countdown-card {
        font-size: 28px;
        padding: 10px 16px;
        min-w: 64px;
    }
}

/* Label text bawah angka */
.countdown-label {
    font-size: 8px;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 4px;
    letter-spacing: 0.05em;
}
@media (min-width: 768px) {
    .countdown-label {
        font-size: 10px;
    }
}

/* Desain Tombol Emas Premium Bergetar */
.btn-hero-action {
    background: linear-gradient(to right, #eab308, #ffb700, #eab308);
    border: 1px solid #fef08a;
    animation: magnetic-pulse 2.5s infinite ease-in-out;
}
.btn-hero-action:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.5);
}

@keyframes magnetic-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(234, 179, 8, 0.25);
    }
    50% {
        box-shadow: 0 4px 30px rgba(234, 179, 8, 0.55), 0 0 15px rgba(234, 51, 234, 0.2);
        transform: scale(1.01);
    }
}

/* --- BADGE PERIODE STYLING CORNER --- */
.badge-periode-glow {
    position: absolute; 
    bottom: 6px; 
    right: 6px; 
    z-index: 20;
    padding: 1px; 
    min-width: 110px; 
    transition: all 0.8s ease-in-out; /* Transisi smooth */
    clip-path: polygon(12% 0%, 88% 0%, 100% 20%, 100% 80%, 50% 100%, 0% 80%, 0% 20%);
}

/* â˜€ï¸ Efek Menyala Siang Hari (Cyber Gold Glow) */
.badge-periode-glow.day-mode {
    background: linear-gradient(135deg, #eab308 0%, #451a03 100%);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.6);
}

/* ðŸŒ™ Efek Menyala Malam Hari (Laser Purple Neon) */
.badge-periode-glow.night-mode {
    background: linear-gradient(135deg, #5573f7 0%, #071064 100%);
    box-shadow: 0 0 15px rgba(85, 109, 247, 0.7);
}

.badge-inner-glow {
    background: #020314; 
    padding: 4px; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    clip-path: polygon(12% 0%, 88% 0%, 100% 20%, 100% 80%, 50% 100%, 0% 80%, 0% 20%);
}

.badge-glow-title { font-size: 5px; font-weight: 800; color: #fbbf24; }
.badge-glow-date { font-size: 6px; font-weight: 900; color: #ffffff; }
.badge-glow-year { font-size: 9px; font-weight: 900; color: #f59e0b; }

/* MEDIA QUERY UTK DESKTOP */
@media (min-width: 640px) {
    .badge-periode-glow { bottom: 12px; right: 24px; min-width: 220px; padding: 2px; }
    .badge-inner-glow { padding: 8px 12px; }
    .badge-glow-title { font-size: 10px; }
    .badge-glow-date { font-size: 11px; }
    .badge-glow-year { font-size: 18px; }
    
    .badge-periode-glow.day-mode { box-shadow: 0 0 25px rgba(234, 179, 8, 0.8); }
    .badge-periode-glow.night-mode { box-shadow: 0 0 25px rgba(85, 128, 247, 0.9); }
}

/* ========================================================
   DYNAMIC DAY & NIGHT SYSTEM - INDESTRUCTIBLE GRID
   ======================================================== */

.cyber-fixed-grid-container {
    display: grid;
    /* Menggunakan sistem otomatis: Kolom 1 & 2 selebar kontennya, Kolom 3 (Waktu) menghabiskan sisa ruang */
    grid-template-columns: 34% 25% 30%;
    align-items: center;
    border-radius: 10px;
    padding: 10px 8px;
    gap: 15px; /* Jarak antar kolom grid di mobile */
    max-width: 980px; /* Menyamakan lebar maksimal dengan .slider-wrapper agar sejajar pas di desktop */
    margin: 0 auto;  /* Mengunci posisi tetap di tengah layar desktop */
    transition: all 0.8s ease-in-out;
}

/* â˜€ï¸ [TEMA SIANG] - CYBER GOLD SHINE SUN */
.day-theme {
    background: linear-gradient(180deg, #1c1502 0%, #080601 100%);
    border: 1px solid #eab308;
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.35), inset 0 0 10px rgba(234, 179, 8, 0.15);
}
.day-theme .slant-text-fixed {
    background: linear-gradient(90deg, #854d0e 0%, #eab308 50%, #854d0e 100%);
    border: 1px solid #fef08a;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.6);
}

/* ðŸŒ™ [TEMA MALAM] - CYBERPUNK LASER NEON PURPLE */
.night-theme {
    background: linear-gradient(180deg, #070426 0%, #0d0101 100%);
    border: 1px solid #5588f7;
    box-shadow: 0 0 25px rgba(101, 85, 247, 0.45), inset 0 0 15px rgba(85, 155, 247, 0.2);
}
.night-theme .slant-text-fixed {
    background: linear-gradient(90deg, #071064 0%, #1a1c75 50%, #072064 100%);
    border: 1px solid #729bf4;
    box-shadow: 0 0 12px #4673ef;
}

/* --- SEGMEN KOMPONEN UTAMA (TETAP SEGARIS) --- */
.grid-col-action { 
    width: auto; 
    min-width: 102px; /* Mengunci lebar minimum tombol di HP agar teks tidak pecah bawah */
}
.btn-neon-gold-fixed {
    display: flex; align-items: center; justify-content: center; width: 100%;
    background: linear-gradient(90deg, #ca8a04, #fef08a, #ca8a04);
    border: 1px solid #ffffff; border-radius: 6px; height: 32px;
    color: #020617 !important; text-decoration: none !important; font-weight: 900;
    white-space: nowrap; box-shadow: 0 0 12px #eab308; 
    font-size: 7.5px; /* Sedikit dinaikkan agar pas terbaca di HP */
    padding: 0 4px;
}
.icon-arrow-fixed { width: 7px; height: 7px; margin-left: 3px; }

.grid-col-badge { 
    display: flex; justify-content: center; 
    width: auto;
    min-width: 75px; /* Mengunci lebar minimum teks tengah di HP */
}
.slant-text-fixed {
    width: 100%; text-align: center; color: #ffffff; font-weight: 900; line-height: 1.2; padding: 4px 3px; 
    font-size: 6.5px; /* Dioptimalkan agar teks "EVENT AKAN..." pas dalam potongan miring */
    clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
    white-space: nowrap;
    transition: all 0.5s ease;
}

.grid-col-timer { 
    display: flex; 
    justify-content: flex-end; 
    width: 100%; 
}
.timer-flex-row { 
    display: flex; align-items: center; justify-content: space-between; width: 100%; 
    max-width: 165px; /* Dikunci agar kotak angka di HP tetap padat dan tidak meluber keluar border */
}
.timer-unit { display: flex; flex-direction: column; align-items: center; flex: 1; }

.box-num-fixed {
    background: #000000; border: 1px solid #fbbf24; color: #fef08a; font-weight: 800; text-align: center;
    text-shadow: 0 0 4px #f59e0b; box-shadow: 0 0 6px #d97706; border-radius: 4px; 
    width: 120%; padding: 3px 0; 
    font-size: 10px; /* Ukuran pas di HP agar 3 digit angka Hari (423) aman melenggang bebas */
}
.label-txt-fixed { color: #cbd5e1; font-weight: 800; margin-top: 2px; font-size: 5px; }
.dots-fixed { color: #fbbf24; font-weight: 900; text-shadow: 0 0 5px #f59e0b; padding: 0 1px; margin-bottom: 6px; font-size: 10px; }

/* ========================================================
   MEDIA QUERIES DESKTOP EXPANSION (UKURAN FIX PX KOTAK UNGU)
   ======================================================== */
@media (min-width: 640px) {
    .cyber-fixed-grid-container { 
        padding: 10px 20px; 
        border-radius: 14px; 
        gap: 15px; 
        
        /* Menggunakan auto di tengah agar kolom mengikuti ukuran px asli kotak ungu di bawah */
        grid-template-columns: 34% 25% 38%;
        
        max-width: 960px; /* Lebar total container sejajar banner */
        margin: 0 auto;   
    }
    .grid-col-action { width: 100%; }
    
    /* Memastikan pembungkus kolom tengah memberikan ruang penuh */
    .grid-col-badge { 
        width: 100%; 
        display: flex;
        justify-content: center;
    }
    
    .btn-neon-gold-fixed { 
        height: 45px; 
        border-radius: 8px; 
        font-size: 12px; 
        padding: 0;  white-space: nowrap; 
    }
    .icon-arrow-fixed { width: 11px; height: 11px; margin-left: 6px; }
    
    /* ðŸŒŸ DISINI UKURAN PASTI (PX) KOTAK UNGU NYA, SILAKAN LO UBAH ANGKA NYA SESUAI SELERA */
    .slant-text-fixed { 
        width: 510px;        /* ðŸ‘ˆ PANJANG KOTAK UNGU (Silakan ganti angka px nya kalau kurang panjang) */
        line-height: 42px;   /* ðŸ‘ˆ TINGGI/LEBAR KOTAK UNGU (Disamakan 42px biar pas sejajar tinggi tombol emas) */
        padding: 0 !important; /* Reset padding biar ukurannya presisi murni dari line-height */
        
        font-size: 12px; 
        clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%); 
    }
    
    .grid-col-timer { width: 100%; display: flex; justify-content: flex-end; }
    .timer-flex-row { 
        max-width: 380px; 
        width: 100%;
    }
    .box-num-fixed { 
        font-size: 18px; 
        border-radius: 6px; 
        padding: 6px 0; 
        width: 88%; 
    }
    .label-txt-fixed { font-size: 8.5px; margin-top: 4px; }
    .dots-fixed { font-size: 20px; margin-bottom: 12px; padding: 0 4px; }
}

@media (min-width: 992px) {
    .cyber-fixed-grid-container {
        max-width: 960px;
    }
    .btn-neon-gold-fixed { font-size: 13px; }
    
    /* Ukuran di monitor gaban/besar */
    .slant-text-fixed { 
        width: 280px;        /* ðŸ‘ˆ Panjang kotak ungu di monitor besar */
        line-height: 44px;   /* ðŸ‘ˆ Tinggi kotak ungu di monitor besar */
        font-size: 12px; 
    }
    .box-num-fixed { font-size: 19px; }
    .label-txt-fixed { font-size: 9px; }
}

/* --- BADGE PERIODE STYLING CORNER --- */
.badge-periode-glow {
    position: absolute; bottom: 6px; right: 6px; z-index: 20;
    padding: 1px; min-width: 110px; transition: all 0.8s ease;
    clip-path: polygon(12% 0%, 88% 0%, 100% 20%, 100% 80%, 50% 100%, 0% 80%, 0% 20%);
}

/* Modifikasi Class Deteksi Mandiri agar Terpancing Sempurna */
.badge-periode-glow.day-mode, .day-theme ~ .badge-periode-glow {
    background: linear-gradient(135deg, #eab308 0%, #451a03 100%);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.5);
}
.badge-periode-glow.night-mode, .night-theme ~ .badge-periode-glow {
    background: linear-gradient(135deg, #557bf7 0%, #071564 100%);
    box-shadow: 0 0 15px rgba(85, 101, 247, 0.6);
}

.badge-inner-glow {
    background: #020314; padding: 4px; display: flex; flex-direction: column; align-items: center;
    clip-path: polygon(12% 0%, 88% 0%, 100% 20%, 100% 80%, 50% 100%, 0% 80%, 0% 20%);
}
.badge-glow-title { font-size: 5px; font-weight: 800; color: #fbbf24; }
.badge-glow-date { font-size: 6px; font-weight: 900; color: #ffffff; }
.badge-glow-year { font-size: 9px; font-weight: 900; color: #f59e0b; }

@media (min-width: 640px) {
    .badge-periode-glow { bottom: 12px; right: 24px; min-width: 210px; padding: 2px; }
    .badge-inner-glow { padding: 18px 12px; }
    .badge-glow-title { font-size: 18px; }
    .badge-glow-date { font-size: 16px; }
    .badge-glow-year { font-size: 18px; }
    .badge-periode-glow.day-mode { box-shadow: 0 0 25px rgba(234, 179, 8, 0.7); }
    .badge-periode-glow.night-mode { box-shadow: 0 0 25px rgba(85, 109, 247, 0.8); }
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    margin-top: -7px;
    border-radius: 12px;
}
#banner-image {
    width: 100%;
    display: block;
    height: auto;
}
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid #557bf7;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 30;
    border-radius: 4px;
    font-weight: bold;
}
.btn-left { left: 10px; }
.btn-right { right: 10px; }
.slide-btn:hover {
    background: #5560f7;
    box-shadow: 0 0 10px #5855f7;
}

/* ========================================================
   ADDITIONAL LOGIC - AUTO SLIDER DOTS (SINKRON UNIVERSAL)
   ======================================================== */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 35;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.slider-dots .dot.active {
    width: 20px;
    border-radius: 4px;
    background: #eab308;
    border: 1px solid #ffffff;
    box-shadow: 0 0 10px #eab308;
}

@media (min-width: 640px) {
    .slider-dots { bottom: 20px; gap: 12px; }
    .slider-dots .dot { width: 12px; height: 12px; }
    .slider-dots .dot.active { width: 30px; }
}

/* ========================================================
   STYLING BAGIAN 3: GAME GRID NEXT-GEN (6 KOLOM PAS)
   ======================================================== */
.games-section-wrapper {
    width: 100%;
    max-width: 960px; /* Dikunci sejajar presisi dengan banner & jackpot pool */
    margin: 0 auto 40px auto; /* Kunci 'auto' kanan-kiri wajib agar otomatis ke tengah */
    padding: 0 10px; /* Space aman di layar HP */
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Judul Utama */
.games-section-title {
    text-align: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Container Grid Utama */
.games-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Tampilan HP: Pecah 2 kolom rapi */
    gap: 12px;
    width: 100%;
}

/* Card Game Satuan - Gaya Premium Dark Cyber */
.game-card {
    background: linear-gradient(180deg, #040d26 0%, #01030a 100%);
    border: 1px solid rgba(51, 69, 234, 0.4);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efek Glow & Ganti Border Pas Di-hover */
.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #557bf7;
    box-shadow: 0 0 20px rgba(85, 142, 247, 0.4), inset 0 0 10px rgba(85, 115, 247, 0.2);
}

/* Gambar Menu Game */
.game-card-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 12px;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card-img {
    transform: scale(1.04); /* Gambar nge-zoom dikit saat di-hover */
}

/* Info Judul Game */
.game-card-info {
    width: 100%;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1; /* Mendorong tombol main selalu rata di bawah */
}

.game-card-info h3 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.8px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* Tombol Main Sekarang Kuning Emas Mengkilap */
.btn-play-now {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #ffe066 0%, #f5b000 100%);
    border: 1px solid #fff3bf;
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 10px;
    padding: 8px 0;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(245, 176, 0, 0.25);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.btn-play-now:hover {
    box-shadow: 0 6px 15px rgba(245, 176, 0, 0.5);
    filter: brightness(1.1);
}

/* ========================================================
   STYLING UTAMA: BAWAAN MOBILE / SMARTPHONE (BASE STYLE)
   ======================================================== */
.games-section-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 20px auto 30px auto;
    padding: 0 10px; /* Jaga jarak aman di HP agar tidak nempel mentok layar */
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.games-section-title {
    text-align: center;
    color: #ffffff;
    font-size: 12px; /* Ukuran pas untuk layar HP */
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.games-grid-container {
    display: grid;
    /* ðŸŒŸ UNTUK MOBILE: Dibagi 3 kolom sejajar (3 atas, 3 bawah) biar simetris dan pas */
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px; /* Jarak antar card agak rapat di HP */
    width: 100%;
}

.game-card {
    background: linear-gradient(180deg, #040f26 0%, #02010a 100%);
    border: 1px solid rgba(51, 100, 234, 0.4);
    border-radius: 8px; /* Sudut agak membulat rapi */
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    width: 100%;
}

.game-card-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 8px;
}

.game-card-info {
    width: 100%;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.game-card-info h3 {
    color: #ffffff;
    font-size: 9px; /* Disesuaikan agar teks "SPORTSBOOK" dll tidak patah berantakan di HP */
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
}

.btn-play-now {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #ffe066 0%, #f5b000 100%);
    border: 1px solid #fff3bf;
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 8px; /* Teks tombol proporsional di HP */
    padding: 6px 0;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(245, 176, 0, 0.2);
    box-sizing: border-box;
}

/* ========================================================
   MEDIA QUERIES DESKTOP: AMANKAN 6 KOLOM SIMETRIS
   ======================================================== */
@media (min-width: 768px) {
    .games-section-wrapper {
        padding: 0; /* Merapat presisi rata kanan-kiri dengan banner atas */
        margin: 0 auto 50px auto;
    }

    .games-section-title {
        font-size: 15px;
        letter-spacing: 2px;
        margin-bottom: 25px;
    }
    
    .games-grid-container {
        /* KUNCI: repeat(6) karena jumlah game lo ada 6 biji, wajib 6fr biar membagi rata & lurus di tengah! */
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
    
    .game-card {
        padding: 10px;
    }
    
    .game-card-info h3 {
        font-size: 12px;
    }
    
    .btn-play-now {
        font-size: 10px;
        padding: 9px 0;
    }
}

/* ========================================================
   STYLING BAGIAN 4: CYBER EVENT BOARD (BASE / MOBILE)
   ======================================================== */
.content-board-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 25px auto;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.main-cyber-board {
    background: linear-gradient(180deg, #060d2c 0%, #010414 100%);
    border: 1px solid #1d2f95;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(96, 85, 247, 0.2);
    overflow: hidden;
}

.board-banner-header {
    position: relative;
    width: 100%;
}

.board-img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 2px solid #eab308;
}

.banner-overlay-title {
    padding: 15px;
    background: linear-gradient(0deg, #0a062c 0%, rgba(9, 6, 44, 0.4) 100%);
}

.banner-overlay-title h5 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.provider-event {
    color: #94a3b8;
    font-size: 11px;
    margin: 0;
}

.date-highlight {
    color: #eab308;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(234, 179, 8, 0.3);
}

.board-body-container {
    padding: 15px;
}

/* Accordion Dropdown Modern */
.cyber-details {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #102b65;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.cyber-details[open] {
    border-color: #556df7;
    box-shadow: 0 0 10px rgba(85, 123, 247, 0.15);
}

.cyber-summary {
    padding: 12px 15px;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.cyber-summary::-webkit-details-marker {
    display: none;
}

.arrow-indicator {
    width: 8px;
    height: 8px;
    border-right: 2px solid #eab308;
    border-bottom: 2px solid #eab308;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.cyber-details[open] .arrow-indicator {
    transform: rotate(-135deg);
}

.details-content {
    padding: 15px;
    border-top: 1px solid #102b65;
    color: #e1cbdd;
    font-size: 12px;
    line-height: 1.6;
}

.sub-intro {
    color: #e2e8f0;
    margin-top: 0;
    font-size: 12px;
}

/* Tabel Hadiah Esports Style */
.table-responsive-wrapper {
    overflow-x: auto;
    margin: 15px 0;
    border-radius: 6px;
    border: 1px solid #072464;
}

.bonus-cyber-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 11px;
}

.bonus-cyber-table th {
    background: #102e65;
    color:#ffb700;
    font-weight: 800;
    padding: 10px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #5573f7;
}

.bonus-cyber-table td {
    padding: 10px;
    border-bottom: 1px solid #102b65;
    background: rgba(5, 5, 29, 0.6);
    color: #ffffff;
}

.bonus-cyber-table tr:hover td {
    background: rgba(85, 96, 247, 0.1);
}

.badge-tim {
    background: #1d4795;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 5px;
    border: 1px solid #556df7;
}

.prize-txt {
    color: #ffb700 !important;
    font-weight: 900;
    font-size: 12px;
}

/* List Aturan Main */
.rules-box {
    margin-top: 15px;
}

.rules-heading {
    color: #eab308;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
}

.custom-neon-list {
    padding-left: 20px;
    margin: 0 0 15px 0;
}

.custom-neon-list li {
    margin-bottom: 8px;
    color: #cbd5e1;
}

.glow-yellow { color: #ffb700; font-weight: bold; }
.glow-red { color: #f87171; font-weight: bold; }
.glow-green { color: #63de4a; font-weight: bold; }

.example-card, .format-box {
    background: #020314;
    border-left: 3px solid #eab308;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 12px 0;
}

.example-card ul { margin: 5px 0 0 0; padding-left: 15px; }
.text-yellow { color: #ffb700; }
.text-green { color: #80de4a; }
.text-red { color: #ef4444; }

.format-box code {
    color: #ffb700;
    font-family: monospace;
    font-size: 11px;
}

.wa-link {
    color: #544ade;
    text-decoration: underline;
    font-weight: bold;
}

.link-glow {
    color: #ffb700;
    text-decoration: underline;
    font-weight: 900;
}

.share-invitation {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
}

/* Tombol Footer Utama */
.btn-cyber-action-footer {
    width: 100%;
    background: linear-gradient(180deg, #ca8a04 0%, #854d0e 100%);
    border: none;
    border-top: 1px solid #eab308;
    padding: 14px 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
}

.btn-cyber-action-footer:hover {
    background: linear-gradient(180deg, #fef08a 0%, #ca8a04 100%);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.6);
    color: #000000;
}


/* ========================================================
   MEDIA QUERIES DESKTOP: AMANKAN 6 KOLOM SIMETRIS (NO SISA)
   ======================================================== */
@media (min-width: 768px) {
    .games-section-wrapper {
        padding: 0; 
        margin: 0 auto 50px auto; /* Memastikan wrapper utama tegak lurus di tengah */
    }

    .games-section-title {
        font-size: 15px;
        letter-spacing: 2px;
        margin-bottom: 25px;
    }
    
    .games-grid-container {
        /* KUNCI UTAMA: Wajib dikunci 6fr agar membagi 6 bagian sama besar tanpa sisa kolom kosong */
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 10px;
        width: 100% !important;
    }
    
    .game-card {
        padding: 10px;
        width: 100% !important; /* Memaksa tiap card melebar penuh mengisi ruang 1fr nya */
        box-sizing: border-box;
    }
    
    .game-card-info h3 {
        font-size: 11px; /* Dikecilkan sedikit agar teks pas di layar tablet/desktop tanggung */
    }
    
    .btn-play-now {
        font-size: 10px;
        padding: 9px 0;
    }
}


/* ========================================================
   ðŸŒŸ INTEGRASI TOMBOL LASER KE KELAS .btn-cyber-action-footer
   ======================================================== */
.btn-cyber-action-footer {
    position: relative;
    background: linear-gradient(to bottom, #ffd700, #b8860b);
    padding: 16px 30px;
    margin: 0px; 
    display: block; 
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    letter-spacing: 2.5px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow:
        inset 0 2px 0 rgb(255 255 255 / 0.6),
        0 2px 8px rgba(184, 134, 11, 0.7),
        0 2px 4px 1px rgb(255 255 255 / 0.8);
    border: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    user-select: none;
    transform: translate(0, 0);
    transition: opacity 0.2s ease-in-out;
    z-index: 0;
}

.btn-cyber-action-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #9395f5;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
    z-index: -1;
}

.btn-cyber-action-footer:hover::before {
    opacity: 0.2;
}

.btn-cyber-action-footer span {
    position: absolute;
    pointer-events: none;
}

/* Memastikan teks tetap terlihat jelas di lapisan atas */
.btn-cyber-action-footer .btn-text {
    position: relative;
    display: block;
    z-index: 5;
    pointer-events: auto;
}

/* Gerakan Animasi Jalur Laser Sisi Atas */
.btn-cyber-action-footer span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to left, rgba(255, 215, 0, 0), #ffffff);
    animation: animateTop 2s linear infinite;
}
@keyframes animateTop {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Gerakan Animasi Jalur Laser Sisi Kanan */
.btn-cyber-action-footer span:nth-child(2) {
    top: 0;
    right: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to top, rgba(255, 215, 0, 0), #ffffff);
    animation: animateRight 2s linear -1s infinite;
}
@keyframes animateRight {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

/* Gerakan Animasi Jalur Laser Sisi Bawah */
.btn-cyber-action-footer span:nth-child(3) {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, rgba(255, 215, 0, 0), #ffffff);
    animation: animateBottom 2s linear infinite;
}
@keyframes animateBottom {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Gerakan Animasi Jalur Laser Sisi Kiri */
.btn-cyber-action-footer span:nth-child(4) {
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0), #ffffff);
    animation: animateLeft 2s linear -1s infinite;
}
@keyframes animateLeft {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}


/* ========================================================
   SISA CSS TAMBAHAN LAINNYA BAWAAN LO
   ======================================================== */
.btn {
    display: inline-block;
    padding: 4px 10px;
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 5px;
    font: 250 22px BebasNeue, sans-serif;
    width: 100%;
    color: #fff;
    text-shadow: 0 0 3px #000;
    letter-spacing: 1.1px;
    transition: all 0.3s ease;
}

.login-btn {
    background: #b8860b;
    border: 1px solid #fff8dc;
    box-shadow: 0px 4px 4px rgba(0,0,0,0.25), inset 0px -19px 12px rgba(0,0,0,0.34);
    transition: all 0.4s ease;
}
.login-btn:hover {
    background: #ffd700;
    opacity: 0.8;
}

.daftar-btn {
    background: #aa7f00;
    border: 1px solid #8a6d3b;
    box-shadow: 0px 4px 4px rgba(0,0,0,0.25), inset 0px -19px 12px rgba(0,0,0,0.34);
    transition: all 0.4s ease;
}
.daftar-btn:hover {
    background: #fff200;
    opacity: 0.8;
}

.speed-dial-active .speed-dial-item:nth-child(2) { transition-delay: 0.05s; }
.speed-dial-active .speed-dial-item:nth-child(3) { transition-delay: 0.1s; }
.speed-dial-active .speed-dial-item:nth-child(4) { transition-delay: 0.15s; }
.speed-dial-active .speed-dial-item:nth-child(5) { transition-delay: 0.2s; }
.speed-dial-active .speed-dial-item:nth-child(6) { transition-delay: 0.25s; }   

.fireworks-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 90;
    pointer-events: none;
}


/* ========================================================
   MEDIA QUERIES DESKTOP: GAYA KONTEN TETAP SAMA KONSISTEN
   ======================================================== */
@media (min-width: 640px) {
    .games-section-wrapper {
        padding: 0;
        margin-bottom: 50px; /* Jarak aman stabil antar seksi di layar lebar */
    }
    
    .games-grid-container {
        grid-template-columns: repeat(7, 1fr); /* Grid dilebarkan otomatis jadi 7 kolom horizontal */
        gap: 8px;
    }

    .content-board-wrapper {
        padding: 0;
    }
    
    /* Seluruh komponen teks, dropdown accordion, tabel hadiah, dan 
       gaya animasi tombol footer tidak diubah (sama persis dengan mobile) */
}


/* ========================================================
   STYLING BAGIAN 5: TWIN NEON GLOW BOARD (BASE / MOBILE)
   ======================================================== */
.announcement-board-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 35px auto;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    
}

.main-announcement-board {
    background: linear-gradient(135deg, #050426 0%, #00000a 100%);
    border: 1px solid rgba(85, 115, 247, 0.5);
    border-radius: 14px;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
    /* Gunakan Grid 2 Kolom Sejajar di Semua Device */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: center;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.8), 
        inset 0 0 25px rgba(85, 96, 247, 0.2),
        0 0 20px rgba(92, 107, 246, 0.15);
}

.stat-box {
    background: rgba(2, 5, 12, 0.8) !important;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 0; /* Mencegah jebol layout pada screen sempit */
}

/* Neon Cyan Theme (Active Players) */
.box-blue { 
    border: 1px solid rgba(43, 255, 0, 0.3); 
    box-shadow: inset 0 0 12px rgba(43, 255, 0, 0.05);
}
.box-blue .icon-indicator { color: #00ff15; animation: neonBlink 1.2s infinite; text-shadow: 0 0 6px #00d4ff; }

/* Neon Gold Theme (Mega Jackpot) */
.box-gold { 
    border: 1px solid rgba(255, 170, 0, 0.3); 
    box-shadow: inset 0 0 12px rgba(255, 170, 0, 0.05);
}
.box-gold .icon-indicator { color: #ffaa00; animation: neonBlink 1s infinite; text-shadow: 0 0 6px #ffaa00; }

@keyframes neonBlink {
    0%, 100% { opacity: 0.4; filter: drop-shadow(0 0 1px currentColor); }
    50% { opacity: 1; filter: drop-shadow(0 0 8px currentColor); }
}

.stat-title {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

/* Font Angka Statistik Menyala & Anti-Jadul */
.stat-value {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 13px; /* Ukuran pas di HP agar angka milyaran tidak overflow */
    font-weight: 900;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Efek Glow Laser Biru */
.text-glow-blue {
    color: #00ff22;
    text-shadow: 
        0 0 4px rgba(1, 255, 56, 0.6),
        0 0 12px rgba(0, 255, 64, 0.4);
}

/* Efek Glow Laser Emas */
.text-glow-gold {
    color: #ffb700;
    text-shadow: 
        0 0 4px rgba(255, 183, 0, 0.6),
        0 0 12px rgba(255, 183, 0, 0.4);
}

/* ========================================================
   MEDIA QUERIES DESKTOP (OPTIMASI LAYAR LEBAR)
   ======================================================== */
@media (min-width: 768px) {
    .announcement-board-wrapper {
        padding: 0;
    }

    .main-announcement-board {
        padding: 20px;
        gap: 20px;
    }

    .stat-box {
        padding: 18px;
    }

    /* Efek Hover Interaktif Premium Desktop */
    .stat-box:hover {
        transform: translateY(-3px) scale(1.01);
        background: rgba(14, 7, 28, 0.9) !important;
    }
    
    .box-blue:hover { 
        border-color: #00ff40; 
        box-shadow: 0 0 25px rgba(0, 255, 13, 0.3), inset 0 0 15px rgba(0, 240, 255, 0.1); 
    }
    
    .box-gold:hover { 
        border-color: #ffb700; 
        box-shadow: 0 0 25px rgba(255, 183, 0, 0.3), inset 0 0 15px rgba(255, 183, 0, 0.1); 
    }

    .stat-title { font-size: 12px; }
    .stat-value { font-size: 22px; letter-spacing: 1px; } /* Angka membesar megah di monitor desktop */
}

/* ========================================================
   STYLING BAGIAN 5: FEATURES & PROMO SECTION
   ======================================================== */
.features-promo-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 40px auto;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* --- 1. SEKSI HEADER & FITUR UTAMA --- */
.features-wrapper {
    background: rgba(8, 5, 32, 0.7);
    border: 1px solid rgba(51, 54, 234, 0.3);
    border-radius: 14px;
    padding: 20px 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(51, 54, 234, 0.1);
}

.features-main-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Grid Keunggulan Otomatis Membagi Sesuai Device */
.features-grid {
    display: grid;
    grid-template-columns: 1fr; /* Di HP: numpuk vertikal */
    gap: 16px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(2, 3, 15, 0.6);
    border: 1px solid rgba(85, 115, 247, 0.15);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #111065 0%, #1e1b4b 100%);
    border: 1px solid rgba(101, 85, 247, 0.3);
}

.feature-icon svg {
    width: 18px;
    height: 18px;
    color: #eab308; /* Warna emas menyala ikon */
    filter: drop-shadow(0 0 4px #eab308);
}

.feature-text h3 {
    margin: 0 0 3px 0;
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.feature-text p {
    margin: 0;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.3;
}


/* --- 2. GRID BANNER PROMOSI (3 BANNER BESAR) --- */
.promo-banners-grid {
    margin-top: 10px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr; /* Default HP: Numpuk 1 kolom */
    gap: 16px;
}

.promo-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    padding: 24px 20px;
    min-height: 170px;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

/* Gradasi Latar Belakang Setiap Kartu Promo Agar Berdimensi */
.card-welcome {
    background: linear-gradient(135deg, #0e0b36 0%, #04081a 50%, #09062b 100%);
    border: 1px solid #facc15;
}
.card-deposit {
    background: linear-gradient(135deg, #2d1c05 0%, #0f0a02 50%, #3a1a04 100%);
    border: 1px solid #facc15;
}
.card-cashback {
    background: linear-gradient(135deg, #09203f 0%, #050b14 50%, #1e0b36 100%);
    border: 1px solid #facc15;
}

.promo-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.promo-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 6px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.promo-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Angka Persentase Besar Menyala */
.promo-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    margin: 6px 0;
}

.card-welcome .promo-value { color: #facc15; text-shadow: 0 0 15px rgba(250, 204, 21, 0.6); }
.card-deposit .promo-value { color: #facc15; text-shadow: 0 0 15px rgba(250, 204, 21, 0.6); }
.card-cashback .promo-value { color: #facc15; text-shadow: 0 0 15px rgba(250, 204, 21, 0.6); }

.promo-sub {
    margin: 0 0 16px 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Tombol Klaim Berkilau */
.btn-claim {
    display: inline-block;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 6px;
    color: #000000;
    background: linear-gradient(180deg, #ffe066 0%, #f5b000 100%);
    border: 1px solid #fff3bf;
    box-shadow: 0 4px 12px rgba(245, 176, 0, 0.3);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.btn-claim:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 176, 0, 0.5);
    filter: brightness(1.1);
}

/* Efek Cahaya Latar Belakang Kartu */
.light-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(85, 101, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    transform: rotate(-15deg);
    pointer-events: none;
}
.card-deposit .light-glow { background: radial-gradient(circle, rgba(234, 179, 8, 0.12) 0%, rgba(0,0,0,0) 70%); }
.card-cashback .light-glow { background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0,0,0,0) 70%); }


/* ========================================================
   MEDIA QUERIES DESKTOP / TABLET (RESPONSIVE CODES)
   ======================================================== */
@media (min-width: 550px) {
    /* Mengubah grid fitur/FAQ menjadi 2 kolom di tablet */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .features-promo-container {
        padding: 0;
    }

    /* Mengubah grid fitur/FAQ menjadi 5 kolom sejajar rapi di desktop */
    .features-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
        padding: 14px 8px;
    }

    .feature-text h3 { font-size: 10px; }
    .feature-text p { font-size: 9px; }

    /* Mengubah 3 Banner Promosi menjadi Berjejer Samping Sempurna */
    .promo-banners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .promo-card:hover {
        transform: translateY(-5px);
    }
    .card-welcome:hover { border-color: #facc15; box-shadow: 0 15px 30px #977901; }
    .card-deposit:hover { border-color: #facc15; box-shadow: 0 15px 30px #977901; }
    .card-cashback:hover { border-color: #facc15; box-shadow: 0 15px 30px #977901; }
}


/* Pastikan kontainer kartu siap menampung gambar absolut */
.promo-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    padding: 24px 20px;
    min-height: 180px;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
    z-index: 1;
}

/* STYLING UTAMA UNTUK INPUT GAMBAR BANNER */
.promo-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Biar gambar otomatis pas/tidak penyet */
    object-position: center; /* Gambar fokus di tengah */
    z-index: 1; /* Di bawah teks kontent */
    pointer-events: none; /* Biar gambar gak bisa di-drag user */
    transition: transform 0.5s ease;
}

/* Pastikan konten teks naik ke atas gambar background */
.promo-content {
    position: relative;
    z-index: 3; /* Naik ke lapisan paling depan */
    width: 100%;
    pointer-events: auto;
}

/* Efek Variasi: Saat kartu di-hover, gambarnya nge-zoom dikit (efek modern) */
.promo-card:hover .promo-bg-img {
    transform: scale(1.06);
}

/* Tambahan Gelap Otomatis (Overlay) jika gambar lo terlalu terang, 
   supaya tulisan teks depannya tetep terbaca jelas */
.promo-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ========================================================
   STYLING BAGIAN 6: PREMIUM CYBER FOOTER
   ======================================================== */
.main-footer-wrapper {
    width: 100%;
    background: #00000a;
    border-top: 1px solid rgba(78, 51, 234, 0.2);
    padding: 30px 0 20px 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    width: 100%;
    max-width: 960px; /* Lebar dikunci pas lurus sejajar dengan banner atas */
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Track Baris Logo Flexbox Responsif */
.footer-row {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.logo-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Di HP otomatis melipat rapi ke bawah */
    gap: 20px;
}

/* Item Kotak Logo Satuan */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-item img {
    height: 18px; /* Tinggi disesuaikan pas ukuran di screenshot */
    width: auto;
    object-fit: contain;
    filter: grayscale(1) opacity(0.5); /* Tampilan awal abu-abu mewah anti-norak */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efek Sorot Hover Menyala Alami */
.logo-item:hover img {
    filter: grayscale(0) opacity(1); /* Kembali ke warna asli logo asli */
    transform: scale(1.08); /* Efek nge-zoom presisi */
}

/* Teks Garis Pembatas Tengah (Metode Pembayaran Terlengkap) */
.footer-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.footer-divider::before,
.footer-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-divider span {
    padding: 0 15px;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Warna khusus row bank biar keliatan beda tipis */
.payment-row .logo-item img {
    height: 14px; /* Logo bank biasanya lebih lebar, jadi tingginya dikecilkan dikit agar proporsional */
}

/* Copyright Seksi Paling Bawah */
.footer-copyright {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 15px;
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    color: #474969;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

/* ========================================================
   MEDIA QUERIES FOOTER DESKTOP (MERAPAT DAN SEJAJAR)
   ======================================================== */
@media (min-width: 768px) {
    .main-footer-wrapper {
        padding: 40px 0 25px 0;
    }
    
    .logo-track {
        flex-wrap: nowrap; /* Di desktop dikunci lurus sejajar horizontal tanpa patah */
        justify-content: space-between; /* Membagi jarak kiri-kanan rata mepet ujung container */
        gap: 10px;
    }

    .logo-item img {
        height: 22px; /* Di monitor besar, gambar sedikit dinaikkan agar jelas */
    }

    .payment-row .logo-item img {
        height: 16px;
    }
}

/* ========================================================
   STYLING BAGIAN 7: FLOATING BOTTOM NAVBAR GLASSMORPHISM
   ======================================================== */

/* Default: Sembunyikan total di layar Desktop/Monitor */
.mobile-bottom-navbar {
    display: none;
}

@media (max-width: 767px) {
    .mobile-bottom-navbar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: linear-gradient(180deg, rgba(4, 9, 38, 0.92) 0%, rgba(13, 1, 1, 0.98) 100%);
        backdrop-filter: blur(10px); /* Efek kaca transparan premium */
        -webkit-backdrop-filter: blur(10px);
        border-top: 2px solid rgba(51, 78, 234, 0.4); /* Border neon ungu atas */
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        z-index: 9999; /* Wajib paling depan menimpa konten apapun */
        padding-bottom: env(safe-area-inset-bottom); /* Amankan layar HP berponi bawah / iPhone X+ */
    }

    .nav-container {
        display: flex;
        width: 100%;
        height: 100%;
        position: relative;
        justify-content: space-around;
        align-items: center;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        width: 25%;
        height: 100%;
        position: relative;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
    }

    /* Styling Icon Default */
    .icon-box {
        position: relative;
        font-size: 18px;
        color: #94a3b8; /* Abu-abu redup saat tidak aktif */
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-label {
        font-size: 9px;
        font-weight: 800;
        color: #94a3b8;
        margin-top: 4px;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }

    /* --- EFEK JIKA MENU AKTIF/DI-KLIK --- */
    .nav-item.active .icon-box {
        color: #5565f7; /* Berubah ungu neon menyala */
        transform: translateY(-5px) scale(1.1); /* Efek melompat naik dikit */
        text-shadow: 0 0 10px rgba(85, 101, 247, 0.8);
    }

    .nav-item.active .nav-label {
        color: #ffffff;
        font-weight: 900;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    /* --- KHUSUS MENU PROMO (KUNING EMAS MENGKILAP) --- */
    .icon-box-special {
        position: relative;
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, #ffe066 0%, #f5b000 100%);
        border: 1px solid #ffffff;
        border-radius: 50%; /* Bulat ikonnya */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        color: #000000; /* Icon hitam di dalam bulatan emas */
        box-shadow: 0 0 12px rgba(245, 176, 0, 0.6);
        transition: all 0.3s ease;
        overflow: hidden;
        margin-top: -12px; /* Setengah melayang keluar navbar biar WOW */
    }

    .text-gold {
        color: #facc15 !important;
        font-weight: 900;
    }

    /* Efek Animasi Cahaya Mengkilap (Glossy Sheen) Berjalan Otomatis di tombol Promo */
    .sheen-effect {
        position: absolute;
        top: 0; left: -100%;
        width: 100%; height: 100%;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
        transform: skewX(-25deg);
        animation: globalSheen 3s infinite linear;
    }

    @keyframes globalSheen {
        0% { left: -100%; }
        30% { left: 100%; }
        100% { left: 100%; }
    }

    .nav-item.active .icon-box-special {
        transform: scale(1.15) translateY(-2px);
        box-shadow: 0 0 18px rgba(245, 176, 0, 0.9);
    }

    /* --- NOTIFIKASI DOT MERAH DI HOT NEWS --- */
    .hot-badge {
        position: absolute;
        top: -2px;
        right: -4px;
        width: 7px;
        height: 7px;
        background: #445eef; /* Merah menyala */
        border-radius: 50%;
        box-shadow: 0 0 8px #446cef;
        animation: pulseBadge 1.5s infinite;
    }

    @keyframes pulseBadge {
        0% { transform: scale(0.9); opacity: 0.7; }
        50% { transform: scale(1.2); opacity: 1; }
        100% { transform: scale(0.9); opacity: 0.7; }
    }

    /* --- INDIKATOR GELOMBANG CAHAYA UNTUK MENU AKTIF --- */
    .nav-indicator-glow {
        position: absolute;
        top: -2px;
        left: 0;
        width: 25%; /* Pas 1 kolom */
        height: 3px;
        background: linear-gradient(90deg, transparent, #557bf7, #facc15, transparent);
        box-shadow: 0 4px 15px rgb(85, 115, 247);
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        pointer-events: none;
    }
}

/* ========================================================
   STYLING BAGIAN 8: SIDEBAR WITH IMAGE TOGGLE BUTTON
   ======================================================== */
.floating-right-sidebar {
    position: fixed;
    top: 25%; /* Posisi ideal untuk layar Desktop */
    right: -85px; /* Sembunyi di kanan layar awal */
    width: 85px;
    background: linear-gradient(180deg, #051636 0%, #010712 100%);
    border-left: 2px solid #556df7;
    border-top: 2px solid #5573f7;
    border-bottom: 2px solid #557bf7;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.8), inset 1px 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 99999; 
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.floating-right-sidebar.is-open {
    right: 0 !important;
}

/* --- WRAPPER TOMBOL GAMBAR PENARIK (DESKTOP) --- */
.sidebar-toggle-img-btn {
    position: absolute;
    top: 15px; 
    left: -32px; /* Ukuran menonjol keluar untuk Desktop */
    width: 32px; 
    height: auto;
    cursor: pointer;
    filter: drop-shadow(-3px 2px 5px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-toggle-img-btn img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px; 
}

.sidebar-toggle-img-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(-3px 2px 8px rgba(85, 115, 247, 0.5));
}

/* --- KONTEN SIDEBAR --- */
.sidebar-menu-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
    box-sizing: border-box;
}

.sidebar-header-logo {
    width: 100%;
    padding: 4px;
    margin-bottom: 8px;
    text-align: center;
    border-bottom: 1px solid rgba(247, 85, 85, 0.2);
}

.sidebar-header-logo img {
    width: 85%;
    height: auto;
    object-fit: contain;
}

.sidebar-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 2px;
    background: #030c21;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sidebar-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.sidebar-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-label {
    font-size: 8px;
    font-weight: 800;
    color: #cbd5e1;
    text-align: center;
    letter-spacing: 0.3px;
}

.item-rtp {
    background: linear-gradient(135deg, #070d47 0%, #020324 100%);
    border-color: #facc15;
}
.item-rtp .sidebar-label { color: #facc15; }
.item-android .sidebar-icon-box { background: #ffffff; color: #22c55e; }
.item-whatsapp .sidebar-icon-box { background: #25d366; color: #ffffff; }
.item-telegram .sidebar-icon-box { background: #0284c7; color: #ffffff; }
.item-livescore .sidebar-icon-box { background: #02c75b; color: #ffffff; }

.sidebar-item:hover {
    transform: scale(1.04);
    border-color: #55a9f7;
    background: #150a3d;
}
.sidebar-item:hover .sidebar-icon-box {
    transform: scale(1.1);
}

.sidebar-sheen {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: sideSheen 2.5s infinite linear;
}

@keyframes sideSheen {
    0% { left: -100%; }
    30% { left: 100%; }
    100% { left: 100%; }
}

/* ========================================================
   ðŸŒŸ KUNCI RESPONSIVE: ATURAN KHUSUS DEVICE MOBILE & HP
   ======================================================== */
@media (max-width: 767px) {
    .floating-right-sidebar {
        top: 15%; /* Dinaikkan sedikit di HP agar tidak mentok menutupi bottom navbar */
        width: 80px; /* Lebar dikecilkan tipis agar space layar HP lebih lega */
        right: -80px; /* Sesuai dengan lebar barunya */
    }

    /* --- TOMBOL GAMBAR DI HP (DIBUAT LEBIH BESAR / USER FRIENDLY) --- */
    .sidebar-toggle-img-btn {
        top: 10px;
        width: 36px;  /* Ditambah ukurannya dari 32px ke 36px agar gampang ditekan jempol */
        left: -35px; /* Disesuaikan majunya agar tidak menyisakan celah bolong */
        filter: drop-shadow(-2px 2px 4px rgba(0, 0, 0, 0.6));
    }

    /* Sempurnakan padding menu di dalam HP */
    .sidebar-menu-content {
        padding: 8px 3px;
    }

    .sidebar-item {
        padding: 6px 2px; /* Lebih rapat vertikalnya */
        border-radius: 6px;
    }

    .sidebar-icon-box {
        width: 30px;  /* Icon dikecilkan sedikit di HP */
        height: 30px;
        font-size: 16px;
        margin-bottom: 2px;
    }

    .sidebar-label {
        font-size: 7.5px; /* Ukuran font teks menu disesuaikan */
    }
}