/* ==========================================================================
   1. ROOT VARIABLES & GLOBAL RESET
   ========================================================================== */
:root {
    --bg-dark: #08080d;
    --bg-card: #13131c;
    --primary-gold: #FFD700;
    --primary-hover: #e6c200;
    --text-light: #ffffff;
    --text-muted: #9b9bad;
    --accent-red: #ff3333;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Roboto, sans-serif; 
}

html { scroll-behavior: smooth; }

body { 
    background: radial-gradient(circle at top, #151521, var(--bg-dark) 70%); 
    color: var(--text-light); 
    overflow-x: hidden; 
    min-height: 100vh; 
}

#particles-bg { 
    position: fixed; 
    inset: 0; 
    pointer-events: none; 
    z-index: -1; 
    opacity: 0.6; 
}

/* ==========================================================================
   2. TOP BAR & HEADER
   ========================================================================== */
.top-bar { 
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(10px); 
    display: flex; 
    justify-content: space-between; 
    padding: 8px 24px; 
    font-size: 12px; 
    color: var(--text-muted); 
    border-bottom: 1px solid rgba(255, 215, 0, 0.1); 
}

.social-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    margin-left: 15px; 
    transition: var(--transition); 
}
.social-links a:hover { color: var(--primary-gold); }

header { 
    background: rgba(10, 10, 15, 0.9); 
    backdrop-filter: blur(15px); 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid rgba(255, 215, 0, 0.15); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: var(--shadow); 
}

/* --- Logo --- */
.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}
.logo img { 
    height: 45px; 
    width: auto; 
    object-fit: contain; 
    transition: var(--transition); 
}
.logo:hover img { 
    transform: scale(1.05); 
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4)); 
}
.logo span { 
    color: var(--primary-gold); 
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6); 
}

/* --- Navbar & Buttons --- */
.navbar { display: flex; gap: 20px; align-items: center; }
.navbar a { 
    color: var(--text-light); 
    text-decoration: none; 
    font-weight: 600; 
    text-transform: uppercase; 
    transition: var(--transition); 
}
.navbar a:hover, .navbar a.active { color: var(--primary-gold); }

.mobile-auth { display: none; }
.menu-toggle { display: none; font-size: 24px; color: var(--primary-gold); cursor: pointer; }

.auth-buttons button, .auth-buttons a, .mobile-auth button, .mobile-auth a, .btn-play, .filter-btn { 
    padding: 10px 25px; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: var(--transition); 
    border: none; 
    text-transform: uppercase; 
    text-decoration: none; /* Menghilangkan garis bawah bawaan link */
    display: inline-block; /* Memastikan ukuran padding kiri-kanan dibaca sempurna */
    text-align: center;
}

.btn-login { 
    background: transparent; 
    border: 2px solid var(--primary-gold) !important; 
    color: var(--primary-gold); 
}
.btn-login:hover { background: var(--primary-gold); color: var(--bg-dark); }

.btn-register { 
    background: linear-gradient(135deg, var(--primary-gold), #f7c400); 
    color: var(--bg-dark); 
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); 
}
.btn-register:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); 
}

/* ==========================================================================
   3. MARQUEE & HERO SLIDER
   ========================================================================== */
.marquee-container { 
    display: flex; 
    background: #1a1a24; 
    padding: 5px 0; 
    align-items: center; 
    border-bottom: 1px solid #333; 
}
.marquee-title { background: var(--primary-gold); color: var(--bg-dark); padding: 5px 15px; font-weight: bold; z-index: 2; }
.marquee-text { color: var(--text-light); font-size: 14px; padding-left: 10px; }

/* --- Slider Optimasi 8000x1792 --- */
.hero-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 8000 / 1792;
    min-height: 220px; 
    overflow: hidden;
    background-color: var(--bg-dark);
}

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.slide.active { opacity: 1; z-index: 1; }

.slide-bg { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center center; 
    z-index: 1; 
}

.slide a:hover .slide-bg { transform: scale(1.02); transition: transform 0.5s ease; }

/* Kotak Teks Fallback (Jika tidak pakai gambar full desain) */
.hero-content { 
    position: relative; 
    z-index: 2; 
    background: rgba(8, 8, 13, 0.65); 
    padding: 30px 50px; 
    border-radius: 15px; 
    backdrop-filter: blur(5px); 
    border: 1px solid rgba(255, 215, 0, 0.15); 
    max-width: 800px; 
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}
.slide h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; margin-bottom: 10px; }
.slide h1 span { color: var(--primary-gold); text-shadow: 0 0 20px var(--primary-gold); }
.slide p { color: var(--text-light); font-size: 1.2rem; }

/* --- Indikator Jackpot --- */
.floating-jackpot { 
    position: absolute; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 10; 
    background: rgba(10, 10, 15, 0.9); 
    backdrop-filter: blur(10px); 
    border: 1px solid var(--primary-gold); 
    padding: 10px 30px; 
    border-radius: 15px; 
    text-align: center; 
    box-shadow: var(--shadow); 
    animation: pulse 2s infinite; 
}
.floating-jackpot p { font-size: 0.8rem; color: var(--text-muted); font-weight: bold; }
.floating-jackpot h2 { color: var(--primary-gold); font-size: 2rem; letter-spacing: 1px; }

@keyframes pulse { 
    0%, 100% { transform: translateX(-50%) scale(1); } 
    50% { transform: translateX(-50%) scale(1.02); } 
}

/* ==========================================================================
   4. ABOUT SECTION
   ========================================================================== */
.about-section { padding: 10px 1%; border-top: 1px solid rgba(255,255,255,0.05); }
.about-container { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 40px; background: linear-gradient(135deg, var(--bg-card), #0a0a0f); padding: 40px; border-radius: 20px; border: 1px solid rgba(255, 215, 0, 0.1); box-shadow: var(--shadow); }

.about-image { flex: 1; border-radius: 15px; overflow: hidden; position: relative; }
.about-image img { width: 100%; display: block; transition: var(--transition); }
.about-image:hover img { transform: scale(1.05); }
.about-image::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--primary-gold); border-radius: 15px; pointer-events: none; opacity: 0.5; }

.about-content { flex: 1.2; }
.about-content h2 { font-size: 2.2rem; margin-bottom: 15px; }
.about-content h2 span, .about-content h3 { color: var(--primary-gold); }
.about-content p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.benefit-list li { background: rgba(26, 26, 36, 0.5); padding: 12px 15px; border-radius: 8px; border-left: 3px solid var(--primary-gold); transition: var(--transition); display: flex; gap: 10px; align-items: center; }
.benefit-list li:hover { transform: translateX(10px); background: rgba(255, 215, 0, 0.1); }
.benefit-list i { color: var(--primary-gold); font-size: 1.2rem; }

/* ==========================================================================
   5. GAME GRID & RTP
   ========================================================================== */
.provider-filter { display: flex; justify-content: center; gap: 10px; padding: 40px 20px 10px; flex-wrap: wrap; }
.filter-btn { background: var(--bg-card); border: 1px solid #333; color: var(--text-light); }
.filter-btn:hover, .filter-btn.active { background: var(--primary-gold); color: var(--bg-dark); border-color: var(--primary-gold); }

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; padding: 30px 5% 60px; }
.card { background: linear-gradient(180deg, var(--bg-card), #101018); border-radius: 15px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.05); transition: var(--transition); box-shadow: var(--shadow); }
.card:hover { transform: translateY(-10px); border-color: rgba(255, 215, 0, 0.3); box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15); }
.card.hide { display: none; }
.card img { width: 100%; height: 180px; object-fit: cover; transition: 0.4s; }
.card:hover img { transform: scale(1.05); }

.badge { position: absolute; top: 10px; right: 10px; padding: 5px 10px; border-radius: 5px; font-size: 12px; font-weight: bold; z-index: 2; }
.badge.hot { background: var(--accent-red); color: white; }
.badge.new { background: #00cc66; color: white; }

.card-info { padding: 20px; text-align: center; position: relative; z-index: 2; }
.card-info h3 { margin-bottom: 15px; }

.btn-play { background: linear-gradient(90deg, var(--primary-gold), #ffaa00); color: var(--bg-dark); width: 100%; margin-top: 5px; }
.btn-play:hover { transform: scale(1.03); }

/* --- RTP Bar --- */
.rtp-container { background: #000; border-radius: 20px; height: 24px; margin-bottom: 15px; position: relative; overflow: hidden; border: 1px solid #333; }
.rtp-bar { height: 100%; width: 0%; transition: width 1s ease; }
.rtp-bar.high { background: linear-gradient(90deg, #00C853, #00FF95); }
.rtp-bar.medium { background: linear-gradient(90deg, #FFD700, #FFAA00); }
.rtp-bar.low { background: linear-gradient(90deg, #ff4343, #d60000); }
.rtp-text { position: absolute; inset: 0; text-align: center; line-height: 24px; font-size: 12px; font-weight: bold; color: #fff; text-shadow: 1px 1px 2px #000; }

/* ==========================================================================
   6. PROVIDERS & PAYMENT
   ========================================================================== */
.section-title { text-align: center; margin-bottom: 30px; font-size: 2rem; }
.section-title span { color: var(--primary-gold); }
.partners-section, .payment-section { padding: 20px 5%; margin-bottom: 40px; }

.partners-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.partner-item { background: var(--bg-card); padding: 15px; border-radius: 10px; border: 1px solid #333; transition: var(--transition); }
.partner-item:hover { border-color: var(--primary-gold); transform: translateY(-3px); }

/* --- Payment Grid Khusus --- */
.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 15px; max-width: 800px; margin: 0 auto; }
.pay-item { background: #ffffff; padding: 12px 10px; border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pay-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2); }
.pay-item img { max-width: 100%; height: 22px; object-fit: contain; }

.status-online {
    position: absolute; top: -5px; left: -5px; width: 12px; height: 12px;
    background-color: #00ff66; border-radius: 50%; border: 2px solid var(--bg-dark);
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.8);
    animation: blinkIndicator 1.5s infinite ease-in-out;
}
@keyframes blinkIndicator {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(0, 255, 102, 0.8); }
    50% { opacity: 0.4; transform: scale(0.85); box-shadow: 0 0 2px rgba(0, 255, 102, 0.4); }
}

/* ==========================================================================
   7. FOOTER, FLOATING CHAT & BOTTOM NAV
   ========================================================================== */
footer { background: #050508; text-align: center; padding: 40px 20px; border-top: 1px solid #1a1a24; }
.footer-bottom { margin-top: 20px; padding-top: 20px; border-top: 1px solid #1a1a24; color: var(--text-muted); font-size: 14px; }

.floating-chat { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 1000; transition: var(--transition); text-decoration: none; box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
.floating-chat:hover { transform: scale(1.1); }

.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(15px); border-top: 1px solid rgba(255, 215, 0, 0.2); z-index: 1001; justify-content: space-around; padding: 12px 0; }
.nav-item { color: var(--text-muted); display: flex; flex-direction: column; align-items: center; font-size: 12px; gap: 5px; text-decoration: none; transition: var(--transition); }
.nav-item i { font-size: 20px; }
.nav-item.active, .nav-item:hover { color: var(--primary-gold); transform: translateY(-3px); }

/* ==========================================================================
   8. NOTIFIKASI
   ========================================================================== */
.notif-container { position: fixed; bottom: 20px; left: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
.notif-toast { background: rgba(18, 18, 24, 0.95); backdrop-filter: blur(10px); border-left: 4px solid var(--primary-gold); padding: 15px; border-radius: 8px; color: #fff; display: flex; align-items: center; gap: 15px; min-width: 300px; box-shadow: var(--shadow); animation: slideInLeft 0.5s forwards, fadeOut 0.5s 4.5s forwards; }
.notif-toast.wede { border-left-color: #00cc66; }
.notif-icon { font-size: 24px; }
.notif-content b { color: var(--primary-gold); }
.notif-toast.wede .notif-content b { color: #00cc66; }

@keyframes slideInLeft { from { transform: translateX(-120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 900px) {
    .about-container { flex-direction: column; }
    .floating-jackpot h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .navbar { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-dark); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--primary-gold); }
    .navbar.show { display: flex; }
    .menu-toggle { display: block; }
    .auth-buttons { display: none; } 
    
    .logo img { height: 35px; }
    
    .mobile-auth { display: flex; flex-direction: column; width: 100%; gap: 10px; margin-top: 10px; border-top: 1px solid #333; padding-top: 15px; }
    .mobile-auth button { width: 100%; margin: 0; }
    
    .floating-jackpot { bottom: 10px; padding: 8px 20px; width: 85%; }
    .floating-jackpot h2 { font-size: 1.4rem; }
    
    .bottom-nav { display: flex; }
    footer { padding-bottom: 90px; }
    
    .floating-chat { bottom: 85px; right: 15px; width: 50px; height: 50px; font-size: 25px; }
    
    .notif-container { bottom: auto; top: 80px; left: 10px; right: 10px; }
    .notif-toast { min-width: unset; width: 100%; animation: slideInDown 0.5s forwards, fadeOut 0.5s 4.5s forwards; }
    
    @keyframes slideInDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
}
/* Posisi tombol tepat di bawah jackpot */
.action-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px; /* Jarak dari jackpot */
    position: relative;
    z-index: 20; /* Pastikan tombol di atas slider */
    padding: 10px;
}

.btn-action {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    text-align: center;
    min-width: 140px;
}

/* Style Tombol Daftar (Warna Merah/Glow) */
.btn-register {
    background: linear-gradient(135deg, #ff1a1a, #cc0000);
    color: white;
    box-shadow: 0 0 15px rgba(255, 26, 26, 0.4);
}

/* Style Tombol Login (Warna Emas) */
.btn-login {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

/* Responsive: Kecilkan sedikit di HP */
@media (max-width: 768px) {
    .btn-action {
        padding: 10px 20px;
        min-width: 110px;
        font-size: 0.9rem;
    }
}