/* --- TEMA CYBERPUNK / NEON --- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    /* Warna Utama */
    --bg-deep: #05050a;
    --bg-card: rgba(20, 20, 35, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    /* Neon Colors */
    --primary-cyan: #00f3ff;
    --primary-pink: #bc13fe;
    --accent-green: #0aff0a;
    
    /* Text */
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    
    /* Border */
    --border-glow: 1px solid rgba(0, 243, 255, 0.3);
    --border-active: 1px solid var(--primary-cyan);
    
    /* Warna Baterai (Diperbarui) */
    --bat-high: #2ecc71;   /* Hijau Neon 90%+ */
    --bat-med: #f1c40f;    /* Kuning Neon 80%+ */
    --bat-low: #e74c3c;    /* Merah Neon 70%+ */
    --bat-empty: #555555;  /* Abu-abu <70% */
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(188, 19, 254, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 20%);
}

h1, h2, h3, .navbar .logo, .btn, .provider-name { font-family: 'Rajdhani', sans-serif; text-transform: uppercase; }

/* --- BACKGROUND CANVAS --- */
#neonCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0; z-index: 1000;
}
.navbar .container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

/* STYLING LOGO (UKURAN DIPERKECIL) */
.navbar .logo {
    display: flex; align-items: center; text-decoration: none;
    height: auto; line-height: 0;
}

.navbar .logo img {
    height: 35px; width: auto; object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(0, 243, 255, 0.4));
    transition: transform 0.3s ease;
}

.navbar .logo:hover img { transform: scale(1.02); }

.nav-menu { display: flex; gap: 20px; list-style: none; }
.nav-menu li a {
    color: var(--text-muted); text-decoration: none; font-weight: 600;
    font-size: 0.9rem; transition: 0.3s; position: relative;
}
.nav-menu li a:hover, .nav-menu li a.active { color: var(--primary-cyan); }
.nav-menu li a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background: var(--primary-pink); transition: 0.3s;
}
.nav-menu li a:hover::after { width: 100%; }

.auth-buttons { display: flex; gap: 10px; }
.btn {
    padding: 8px 20px; border-radius: 4px; font-weight: 700; text-decoration: none;
    font-size: 0.9rem; transition: all 0.3s ease; letter-spacing: 0.5px; clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}
.btn-masuk { 
    background: transparent; border: 1px solid var(--primary-cyan); 
    color: var(--primary-cyan); 
}
.btn-masuk:hover { background: rgba(0, 243, 255, 0.1); box-shadow: 0 0 15px rgba(0, 243, 255, 0.4); }
.btn-daftar { 
    background: linear-gradient(45deg, var(--primary-pink), #8a2be2); 
    color: #fff; border: none; 
}
.btn-daftar:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(188, 19, 254, 0.6); }

.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }

/* --- HERO --- */
.hero {
    margin-top: 80px; padding: 60px 20px; text-align: center; position: relative;
}
.hero-badge {
    display: inline-block; padding: 5px 15px; border-radius: 50px;
    background: rgba(10, 255, 10, 0.1); color: var(--accent-green);
    border: 1px solid var(--accent-green); font-size: 0.8rem; font-weight: 700;
    margin-bottom: 20px; box-shadow: 0 0 10px rgba(10, 255, 10, 0.2);
}
.hero h1 {
    font-size: 2.8rem; line-height: 1.2; margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, var(--primary-cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; }
.stats-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.stat-box {
    background: var(--bg-glass); padding: 10px 20px; border: var(--border-glow);
    border-radius: 5px; font-size: 0.9rem; font-weight: 600; color: var(--primary-cyan);
    backdrop-filter: blur(5px); box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}
.timer-box { display: flex; align-items: center; gap: 5px; }
.text-neon { color: var(--primary-pink); text-shadow: 0 0 5px var(--primary-pink); }

/* --- PROVIDER SECTION (UPDATE SLIDE MODE) --- */
.provider-section { 
    padding: 20px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

.section-label {
    font-size: 0.8rem; color: var(--text-muted); margin-bottom: 15px;
    text-align: left; padding-left: 20px; letter-spacing: 2px;
}

.provider-grid {
    display: flex;
    flex-wrap: nowrap; /* Penting: Jangan turun ke bawah */
    overflow-x: auto; /* Penting: Aktifkan scroll horizontal */
    justify-content: flex-start; /* Mulai dari kiri */
    gap: 15px;
    padding: 0 20px 20px 20px; /* Padding kiri/kanan agar logo tidak terpotong */
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE dan Edge */
    scrollbar-width: none;  /* Firefox */
}
.provider-grid::-webkit-scrollbar { display: none; }

.provider-item {
    flex-shrink: 0; width: 100px; 
    background: var(--bg-card); 
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; 
    padding: 10px; 
    text-align: center; 
    cursor: pointer;
    transition: 0.3s; position: relative;
}
.provider-item:hover { 
    border-color: var(--primary-pink); 
    transform: translateY(-5px); 
}
.provider-item.active {
    background: linear-gradient(180deg, rgba(188, 19, 254, 0.2), transparent);
    border-color: var(--primary-pink); 
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
}
.provider-item img { width: 50px; height: 50px; object-fit: contain; margin-bottom: 5px; }
.provider-name { font-size: 0.7rem; font-weight: 700; color: #fff; }

/* Badge Provider */
.provider-item[data-badge]::after {
    content: attr(data-badge); position: absolute; top: -8px; right: -8px;
    background: var(--accent-green); color: #000; font-size: 0.6rem; font-weight: 800;
    padding: 2px 6px; border-radius: 4px;
}

/* --- BANNER --- */
.banner-wrapper { padding: 20px 0; }
.promo-banner { width: 100%; border-radius: 10px; border:1px solid rgba(0, 243, 255, 0.3); }

/* --- GAMES GRID (UPDATE BATTERY) --- */
.games-section { padding: 20px 0; }
.section-title {
    text-align: center; font-size:1.5rem; margin-bottom: 20px; color: #fff;
    text-shadow: 0 0 5px var(--primary-cyan);
}

/* Grid System */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Mobile: 3 Kolom */
    gap: 8px;
}
@media (min-width: 768px) {
    .games-grid { grid-template-columns: repeat(6, 1fr); gap: 15px; }
}

.game-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px; overflow: hidden; position: relative;
    transition: 0.3s; cursor: pointer;
}
.game-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    transform: scale(1.02);
}

/* Gambar & Badge */
.game-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.game-badge {
    position: absolute; top: 5px; left: 5px; z-index: 2;
    background: var(--primary-pink); color: #fff; padding: 2px 6px;
    font-size: 0.6rem; font-weight: 700; border-radius: 2px; clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

/* Info Card */
.game-info { padding: 8px; background: rgba(0,0,0,0.6); }
.game-name { font-size: 0.7rem; font-weight: 700; color: #fff; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-provider { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px;}

/* --- BATTERY INDICATOR STYLES (CYBERPUNK VERSION) --- */
.game-rtp { margin-top: auto; }

.rtp-value { 
    font-size: 0.65rem; 
    font-weight: 600; 
    margin-bottom: 3px; 
    display: flex; 
    justify-content: space-between; 
}
/* Warna Teks Baterai */
.rtp-value.high { color: var(--bat-high); text-shadow: 0 0 3px rgba(46, 204, 113, 0.4); }   
.rtp-value.medium { color: var(--bat-med); }   
.rtp-value.low { color: var(--bat-low); }
.rtp-value.empty { color: #777; }

.battery-container {
    width: 100%;
    height: 12px; /* Tinggi kecil agar muat di grid */
    background-color: #1a1a1a;
    border: 2px solid var(--primary-cyan); /* Border Neon Cyan */
    border-radius: 3px;
    position: relative;
    margin-top: 4px;
    box-shadow: 0 0 2px rgba(0, 243, 255, 0.2);
}

/* Kaki Baterai (Nub) */
.battery-container::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    width: 3px;
    background-color: var(--primary-cyan);
    border-radius: 0 2px 2px 0;
}

.battery-fill {
    height: 100%;
    width: 0%; /* Diatur via JS */
    border-radius: 1px;
    transition: width 1s ease, background 0.3s;
    position: relative;
    overflow: hidden;
}

/* Gradien Warna Baterai */
.battery-fill.high { background: linear-gradient(90deg, #27ae60, var(--bat-high)); box-shadow: 0 0 5px rgba(46, 204, 113, 0.3); }
.battery-fill.medium { background: linear-gradient(90deg, #f39c12, var(--bat-med)); }
.battery-fill.low { background: linear-gradient(90deg, #c0392b, var(--bat-low)); }
.battery-fill.empty { background-color: var(--bat-empty); }

/* Animasi Kilau (Charging) */
.battery-fill:not(.empty)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: charge-shimmer 1.5s infinite linear;
}

@keyframes charge-shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* --- CONTENT ARTICLE --- */
.content-article { padding: 40px 0; }
.glass-card {
    background: var(--bg-glass); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); padding: 30px; border-radius: 10px;
}
.content-article h2 { color: var(--primary-cyan); margin-bottom: 20px; font-size: 1.8rem; }
.content-article h3 { color: var(--primary-pink); margin: 20px 0 10px; font-size: 1.3rem; }
.content-article p { color: #ccc; margin-bottom: 15px; font-size: 0.95rem; text-align: justify; }

/* --- FOOTER --- */
footer {
    background: #020205; padding: 40px 20px 100px; text-align: center;
    border-top: 1px solid rgba(188, 19, 254, 0.3);
}
.footer-brand { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand i { color: var(--primary-cyan); }
footer p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; }
.footer-menu a { color: var(--text-muted); text-decoration: none; margin: 0 10px; transition: 0.3s; }
.footer-menu a:hover { color: var(--primary-cyan); }
.copyright { margin-top: 30px; font-size: 0.8rem; color: #555; }

/* --- BOTTOM NAV --- */
.bottom-nav {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(5, 5, 10, 0.95); backdrop-filter: blur(10px);
    padding: 10px 15px; position: fixed; bottom: 0; width: 100%; z-index: 999;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    color: #666; font-size: 0.7rem; transition: 0.3s; width: 20%;
}
.nav-item i { font-size: 1.2rem; margin-bottom: 3px; }
.nav-item.active, .nav-item:hover { color: var(--primary-cyan); }
.nav-item.cta-register { color: var(--primary-pink); font-weight: 700; }

/* --- FLOATING WIDGET --- */
.floating-chat { position: fixed; bottom: 80px; right: 20px; z-index: 998; }
.chat-pulse {
    width: 50px; height: 50px; background: #25d366; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- MODALS --- */
.modal-content {
    background: #0f0f15 !important; border: 1px solid var(--primary-cyan) !important;
    color: #ddd !important; padding: 30px !important; width: 90%; max-width: 600px;
    border-radius: 10px; position: relative; margin: 10% auto; max-height: 85vh; overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}
.modal-header h2 { color: var(--primary-cyan) !important; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 20px; }
.modal-body p { color: #bbb; margin-bottom: 10px; font-size: 0.9rem; }
.close-modal {
    position: absolute; top: 15px; right: 20px; color: #fff; font-size: 24px; cursor: pointer;
}
.contact-btns { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.btn-contact {
    display: block; padding: 15px; text-align: center; color: #fff; text-decoration: none;
    font-weight: bold; border-radius: 5px; transition: 0.3s;
}
.btn-contact.wa { background: #25d366; }
.btn-contact.livechat { background: var(--primary-pink); }
.btn-contact:hover { filter: brightness(1.1); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: #05050a; flex-direction: column; padding: 20px;
        border-bottom: 2px solid var(--primary-cyan);
    }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2rem; }
    .modal-content { padding: 20px !important; width: 95%; margin: 10% auto; }
}
/* Styling untuk Gambar Hero Banner */
.hero-image-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 25px auto; /* Posisi tengah dengan jarak ke bawah */
    box-sizing: border-box;
    border-radius: 16px;
    overflow: hidden;
    /* Efek glow/neon cyber */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), 0 0 30px rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #0a0a12; /* Warna background saat gambar dimuat */
}

.hero-banner-img {
    width: 100%;
    /* Memaksa gambar memiliki rasio 16:9 */
    aspect-ratio: 16 / 9; 
    /* Memastikan gambar terpotong rapi (cover) tanpa terdistorsi */
    object-fit: cover; 
    display: block;
}

/* Efek hover saat disorot kursor (Desktop) */
.hero-image-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 40px rgba(255, 0, 255, 0.2);
}

/* Responsif untuk layar HP */
@media (max-width: 768px) {
    .hero-image-wrapper {
        max-width: 95%;
        margin-bottom: 20px;
    }
}
/* =========================================
   TEMA WARNA: BIRU & ORANGE
   ========================================= */

/* --- WARNA TULISAN UTAMA (DOMINAN) --- */
/* Judul Utama (H1) dan Judul Section (H2) jadi Biru Neon */
.hero h1, 
.content-article h2 {
    color: #00e5ff !important;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

/* Sub Judul (H3) dan Badge jadi Orange Neon */
.content-article h3,
.hero-badge {
    color: #ff8c00 !important;
    border-color: #ff8c00 !important;
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.6);
}

/* Subtitle Hero jadi Biru Lebih Lembut */
.hero .subtitle {
    color: #00bfff !important;
}

/* Tulisan di Stat Box (Jam & Update) */
.stats-container .stat-box {
    color: #ffffff !important;
}
.stats-container .timer-box {
    color: #ff8c00 !important; /* Tulisan Update: 60s jadi Orange */
}

/* Teks paragraf konten artikel (tetap putih biar enak dibaca, tapi strong/em jadi warna) */
.content-article p {
    color: #e0e0e0 !important;
}
.content-article strong {
    color: #ff8c00 !important; /* Kata tebal jadi Orange */
}
.content-article em {
    color: #00e5ff !important; /* Kata miring jadi Biru */
}

/* Tulisan di Footer */
.footer-brand {
    color: #00e5ff !important;
}
.footer-brand i {
    color: #ff8c00 !important;
}


/* --- WARNA TOMBOL LOGIN & DAFTAR --- */
/* Tombol LOGIN (Biru) */
.btn-masuk {
    background: linear-gradient(45deg, #0066ff, #00e5ff) !important;
    color: #ffffff !important;
    border: 1px solid #00e5ff !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4) !important;
    text-shadow: none !important;
}
.btn-masuk:hover {
    background: transparent !important;
    color: #00e5ff !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.8) !important;
}

/* Tombol DAFTAR (Orange) */
.btn-daftar {
    background: linear-gradient(45deg, #ff4500, #ff8c00) !important;
    color: #ffffff !important;
    border: 1px solid #ff8c00 !important;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.4) !important;
    text-shadow: none !important;
}
.btn-daftar:hover {
    background: transparent !important;
    color: #ff8c00 !important;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.8) !important;
}


/* --- NAVIGASI BAWAH (MOBILE) --- */
.bottom-nav .nav-item.active {
    color: #00e5ff !important; /* Icon Home aktif Biru */
}
.bottom-nav .cta-register {
    color: #ff8c00 !important; /* Icon Daftar Orange */
}
/* =========================================
   PERBAIKAN HEADER NAVBAR (TOMBOL LOGIN & DAFTAR)
   ========================================= */

/* Mengatur jarak antar elemen di navbar (Logo, Menu, Tombol) */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Jarak antar elemen agar tidak berdempetan */
}

/* Mengecilkan ukuran tombol Login & Daftar di Navbar */
.navbar .auth-buttons .btn {
    padding: 6px 14px !important; /* Mengecilkan padding atas-bawah & kiri-kanan */
    font-size: 12px !important;   /* Mengecilkan ukuran teks */
    margin-left: 5px !important;  /* Jarak antar tombol login & daftar */
    border-radius: 6px !important; /* Sedikit melengkungkan sudut */
    letter-spacing: 0.5px !important;
    white-space: nowrap; /* Mencegah teks tombol patah ke bawah */
}

/* Merapikan tombol menu hamburger (Mobile) */
.navbar .mobile-menu-btn {
    font-size: 20px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Memastikan logo tidak terlalu mepet */
.navbar .logo img {
    height: 35px; /* Sesuaikan tinggi logo, kecilkan jika perlu */
    width: auto;
}

/* Penyesuaian khusus untuk layar HP (Mobile) */
@media (max-width: 768px) {
    .navbar .auth-buttons .btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
        margin-left: 2px !important;
    }
    
    .navbar .logo img {
        height: 30px; /* Logo lebih kecil di HP */
    }
}