/* --- 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; }
}