/* --- DARK RED FOUNDATION (STRUKTUR SAMA, WARNA DARK RED) --- */
*, *::before, *::after { box-sizing: border-box; }
:root {
    --primary: #8b0000; /* Dark Red Utama */
    --secondary: #ff4d4d; /* Red Glow untuk Aksen */
    --cosmic-gradient: linear-gradient(135deg, #2a0000, #8b0000, #b30000); /* Gradasi Merah Gelap ke Merah Pekat */
    --dark-deep: #070000; /* Hitam Merah Sangat Gelap */
    --dark-card: #180606; /* Merah Gelap untuk Card */
    --text-main: #ffffff; /* Putih Bersih untuk Judul dan Teks Utama */
    --text-muted: #b88a8a; /* Abu-abu Kemerahan Soft untuk Teks Pendukung */
    --text-dim: #d7b0b0; /* Teks tabel agar tetap terbaca */
}

body { 
    margin: 0; padding: 0; 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    background: var(--dark-deep); background-image: radial-gradient(circle at 50% 0%, #240000 0%, var(--dark-deep) 100%); color: var(--text-main); 
    overflow-x: hidden; 
    -webkit-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}
a { text-decoration: none; }

/* Kolom input pencarian atau modal tetap bisa diklik */
input, textarea, .modal-footer-content {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; position: relative; }

/* --- NAVBAR & SLIDER --- */
.navbar { background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); padding: 10px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(139, 0, 0, 0.35); }
.nav-content { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 40px; width: auto; }
.nav-actions { display: flex; gap: 8px; }
.btn-nav { padding: 8px 15px; border-radius: 6px; font-weight: 700; font-size: 13px; transition: 0.3s; cursor: pointer; border: none; }
.btn-nav.login { border: 1px solid var(--primary); color: #fff; background: transparent; }
.btn-nav.register { background: var(--cosmic-gradient); color: #fff; position: relative; overflow: hidden; box-shadow: 0 0 15px rgba(139, 0, 0, 0.45); }

.cat-strip { background: #000; padding: 12px 0; border-bottom: 2px solid var(--primary); }
.cat-content { display: flex; gap: 25px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 12px; font-weight: 800; }
.cat-content::-webkit-scrollbar { display: none; }
.cat-content a { color: #fff; text-decoration: none; transition: 0.3s; } 
.cat-content a:hover { color: var(--secondary); text-shadow: 0 0 10px var(--secondary); } 

.slider-container { width: 100%; overflow: hidden; background: #000; position: relative; }
.slider { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; }
.slide img { width: 100%; height: auto; display: block; }

/* --- SECTIONS --- */
.section-header { padding: 25px 0 15px 0; display: flex; justify-content: space-between; align-items: center; }
/* Judul Putih Bersih sesuai permintaan */
.section-title { font-size: 18px; font-weight: 800; border-left: 4px solid var(--secondary); padding-left: 12px; color: #fff; text-transform: uppercase; margin: 0; text-shadow: 0 0 10px rgba(255, 77, 77, 0.35); }

/* --- CAROUSEL BUTTONS --- */
.nav-btn { background: var(--cosmic-gradient); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; transition: 0.3s; }
.nav-btn:hover { transform: scale(1.1); box-shadow: 0 0 15px var(--primary); }
.btn-group { display: flex; gap: 10px; }

/* --- WRAPPERS --- */
.scroll-wrapper { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-wrapper::-webkit-scrollbar { display: none; }

/* --- CARDS (STRUKTUR DAN FILTER SAMA, WARNA DARK RED) --- */
.card { flex: 0 0 170px; background: var(--dark-card); border: 1px solid #3a0000; border-radius: 12px; padding: 10px; text-align: center; position: relative; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s; cursor: pointer; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; margin-bottom: 8px; background: #000; display: block; filter: grayscale(30%); transition: 0.4s; }
.card h4 { font-size: 12px; margin: 5px 0; height: 30px; overflow: hidden; color: #fff; }
.winrate-text { color: #00ff41; font-weight: 800; font-size: 11px; display: block; margin-bottom: 8px; text-shadow: 0 0 5px rgba(0, 255, 65, 0.3); }
.btn-claim { display: block; background: var(--cosmic-gradient); color: #fff; padding: 7px; border-radius: 6px; font-size: 10px; font-weight: 900; transition: all 0.1s ease-in-out; position: relative; overflow: hidden; box-shadow: 0 4px 0 #4d0000; }

.card:active { transform: scale(0.92); filter: brightness(1.2); }
.btn-nav:active, .btn-claim:active, .nav-btn:active { transform: scale(0.9); }

/* Shine Animation (WARNA DARK RED) */
.btn-nav.register::after, .btn-claim::after {
    content: ''; position: absolute; top: -50%; left: -60%; width: 20%; height: 200%; background: rgba(255, 255, 255, 0.3); transform: rotate(30deg); animation: shine 3s infinite;
}
@keyframes shine {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

/* Container Utama Card (Mencegah Redundansi tapi warna tetap Dark Red) */
.card {
    position: relative;
    background: var(--dark-card);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    border: 1px solid #3a0000;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    margin: 10px;
}

/* Efek Glow Khusus Card yang Viral (WARNA DARK RED) */
.card:has(.viral-badge) {
    border: 1px solid rgba(139, 0, 0, 0.55);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.15);
    animation: glowPulseDarkRed 2s infinite alternate;
}

/* Animasi Cahaya Bernapas (WARNA DARK RED) */
@keyframes glowPulseDarkRed {
    from { box-shadow: 0 0 5px rgba(139, 0, 0, 0.25); }
    to { box-shadow: 0 0 20px rgba(139, 0, 0, 0.55); }
}

/* Badge Viral yang Berkedip (STRUKTUR DAN ANIMASI SAMA, WARNA POP RED) */
.viral-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #b80000, #ffcc00); /* Pop color untuk kontras */
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.timer-text {
    display: block;
    font-size: 9px;
    color: #fff;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 2px;
}

/* Efek Hover Gambar Game (STRUKTUR SAMA) */
.card img {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(30%); /* Biar gak terlalu ngejreng di awal */
    transition: 0.4s;
}

.card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05) translateY(-5px);
}

/* Tombol Claim/Main yang Menyala (WARNA DARK RED) */
.btn-claim {
    display: block;
    background: var(--cosmic-gradient);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 0 #4d0000;
}

.btn-claim:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-2px);
}

.btn-claim:active {
    box-shadow: none;
    transform: translateY(2px);
}

/* Text Winrate agar Menonjol (STRUKTUR SAMA) */
.winrate-text {
    display: block;
    color: #00ff41; /* Hijau Matrix/Gacor tetap hijau */
    font-weight: bold;
    font-size: 13px;
    margin: 5px 0;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* Viral Badge (ANIMASI DAN STRUKTUR SAMA, WARNA DARK RED) */
.viral-badge {
    position: absolute; top: 5px; right: 5px; background: linear-gradient(45deg, #b80000, #ffcc00); color: black; font-size: 9px; font-weight: 900; padding: 3px 7px; border-radius: 4px; z-index: 2; box-shadow: 0 0 10px rgba(255, 0, 85, 0.6); animation: fire-glow-red 1.5s infinite alternate; display: flex; flex-direction: column; align-items: center; line-height: 1.2;
}
@keyframes fire-glow-red {
    from { box-shadow: 0 0 5px #b80000; transform: scale(1); }
    to { box-shadow: 0 0 15px rgba(139, 0, 0, 0.85); transform: scale(1.05); }
}
.timer-text { font-family: 'Courier New', Courier, monospace; font-size: 8px; color: #fff; display: block; margin-top: 2px; border-top: 1px solid rgba(255,255,255,0.2); }

/* --- TRANSACTION BOX (STRUKTUR DAN ANIMASI SAMA, WARNA DARK RED) --- */
.transaction-box-main { background: #080000; border: 2px solid var(--primary); border-radius: 12px; overflow: hidden; font-family: 'Segoe UI', Roboto, sans-serif; box-shadow: 0 0 25px rgba(139, 0, 0, 0.2); }
.transaction-header { display: flex; background: #260000; padding: 12px 10px; border-bottom: 2px solid var(--primary); font-weight: bold; color: var(--secondary); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.sync-box { height: 500px; overflow-y: auto; background: #000; scroll-behavior: smooth; }
.sync-box::-webkit-scrollbar { width: 4px; }
.sync-box::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.transaction-footer { padding: 12px; background: #080000; border-top: 1px solid #3a0000; font-size: 11px; color: var(--text-muted); text-align: center; font-family: monospace; }

@keyframes sukabetFadeIn {
    0% { opacity: 0; transform: translateY(-15px); background: rgba(139, 0, 0, 0.2); }
    100% { opacity: 1; transform: translateY(0); background: transparent; }
}
.sukabet-status-dot { height: 8px; width: 8px; background-color: #00ff00; border-radius: 50%; display: inline-block; margin-right: 5px; box-shadow: 0 0 10px #00ff00; animation: sukabetPulse 1.5s infinite; }
.sukabet-status-text { color: #00ff00; font-weight: bold; animation: sukabetTextBlink 2s infinite; }
@keyframes sukabetPulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes sukabetTextBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* CONTAINER UTAMA - BIAR BISA DIGESER SEMUA (STRUKTUR SAMA) */
.transaction-box-main {
    width: 100%;
    overflow-x: auto; /* Ini kunci gesernya */
    -webkit-overflow-scrolling: touch;
    background: #080000;
    border: 1px solid #3a0000;
    border-radius: 8px;
    display: block; /* Pastikan dia block */
}

/* HEADER DAN CONTAINER ISI HARUS PUNYA MIN-WIDTH YANG SAMA (STRUKTUR SAMA) */
.transaction-header, 
#sukabet-sync-box {
    min-width: 600px; /* INI WAJIB SAMA BIAR GAK JOMPLANG */
    display: block;
}

/* SETIAP BARIS DATA (HASIL INJECT JS) (STRUKTUR SAMA, WARNA DARK RED) */
.sync-row {
    display: flex; /* Biar kolom-kolomnya sejajar ke samping */
    width: 100%;
    padding: 10px;
    align-items: center;
    border-bottom: 1px solid #260000;
}

/* KOLOM HEADER (STRUKTUR SAMA, WARNA DARK RED) */
.transaction-header {
    display: flex;
    background: #260000;
    padding: 12px 10px;
    font-weight: bold;
    color: var(--secondary); /* Warna Red Glow */
    border-bottom: 2px solid #3a0000;
}

/* SEMUA DIV DI DALAMNYA (HEADER & ISI) (STRUKTUR SAMA, WARNA DARK RED) */
.transaction-header > div, 
.sync-row > div {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
    flex-shrink: 0; /* Biar kolomnya gak mengkeret */
    color: var(--text-dim);
}

/* SCROLLBAR DARK RED (WARNA DARK RED) */
.transaction-box-main::-webkit-scrollbar { height: 5px; }
.transaction-box-main::-webkit-scrollbar-thumb { background: var(--cosmic-gradient); border-radius: 10px; }

/* --- TESTIMONI (STRUKTUR SAMA, WARNA DARK RED) --- */
.testi-card { flex: 0 0 320px; background: linear-gradient(145deg, #260000, #080000); border: 1px solid rgba(139, 0, 0, 0.45); border-radius: 12px; padding: 20px; cursor: pointer; transition: transform 0.2s; }
.testi-card:active { transform: scale(0.92); filter: brightness(1.2); }
.testi-user { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testi-avatar { width: 40px; height: 40px; background: var(--cosmic-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; }
.testi-name { font-size: 14px; font-weight: 800; color: var(--secondary); margin: 0; }
.testi-comment { font-size: 13px; color: #ccc; line-height: 1.5; margin: 0; }

/* --- INFO BOX (STRUKTUR SAMA, WARNA DARK RED) --- */
.info-box { background: var(--dark-card); padding: 25px; border-radius: 15px; border: 1px solid #3a0000; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.info-table h2 { font-size: 1.1rem; color: #fff; border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin: 0 0 15px 0; }
.info-table p { font-size: 13px; color: var(--text-muted); margin: 15px 0; }
.info-table table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 10px 0; border-bottom: 1px solid #260000; font-size: 13px; color: var(--text-muted); }
.info-table ul { padding-left: 15px; margin: 0; color: #ccc; font-size: 13px; line-height: 1.8; }

/* --- FAQ (STRUKTUR SAMA, WARNA DARK RED) --- */
.faq-section { background: #050000; padding: 40px 0; border-top: 1px solid #3a0000; }
.faq-item { border-bottom: 1px solid #260000; padding: 15px 0; cursor: pointer; }
.faq-question { font-weight: 700; color: #fff; display: flex; justify-content: space-between; font-size: 14px; }
.faq-question:hover { color: var(--secondary); }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; color: #888; font-size: 13px; }
.faq-item.active .faq-answer { max-height: 100px; padding-top: 10px; }

/* --- FOOTER (STRUKTUR SAMA, WARNA DARK RED, PAYMENT IMG TIDAK DIUBAH) --- */
footer { background: #000; padding: 40px 0 100px 0; border-top: 1px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
footer h3 { color: #fff; font-size: 16px; margin-bottom: 15px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 8px 0; color: #777; font-size: 13px; display:table; cursor: pointer; transition: 0.3s; }
footer ul li:hover { color: var(--secondary); padding-left: 5px; }
.payment-img { width: 100%; max-width: 300px; filter: none; } /* Filter dihapus agar warna asli */
.copyright { text-align: center; padding: 15px; font-size: 11px; color: #444; background: #000; }

/* --- MODAL FOOTER (STRUKTUR SAMA, WARNA DARK RED) --- */
.modal-footer { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); overflow-y: auto; }
.modal-footer-content { background: #120303; margin: 10% auto; padding: 25px; border: 1px solid var(--primary); border-radius: 15px; width: 90%; max-width: 600px; color: #ccc; position: relative; box-shadow: 0 0 20px rgba(139, 0, 0, 0.35); }
.close-modal { color: var(--primary); float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.modal-footer-content h2 { color: #fff; margin-top: 0; border-bottom: 1px solid #3a0000; padding-bottom: 10px; }

/* --- MOBILE NAV (STRUKTUR SAMA, WARNA DARK RED) --- */
.mobile-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: #000; display: none; grid-template-columns: repeat(4, 1fr); padding: 10px 0; border-top: 2px solid var(--primary); z-index: 1001; }
.m-item { display: flex; flex-direction: column; align-items: center; font-size: 10px; font-weight: 800; color: #888; transition: all 0.1s ease-in-out; }
.m-item:active { transform: translateY(2px); filter: contrast(1.5); }
.m-item img { height: 20px; margin-bottom: 4px; filter: invert(16%) sepia(84%) saturate(3713%) hue-rotate(349deg) brightness(76%) contrast(110%); } /* Filter agar icon jadi dark red */

/* --- PROMO POPUP (STRUKTUR SAMA, WARNA DARK RED) --- */
.promo-modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.promo-content { position: relative; width: 90%; max-width: 450px; background: #120303; border: 2px solid var(--primary); border-radius: 15px; padding: 5px; box-shadow: 0 0 30px rgba(139, 0, 0, 0.55); animation: zoomIn 0.4s ease-out; }
@keyframes zoomIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.promo-content img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; }
.promo-close { position: absolute; top: -15px; right: -15px; background: var(--cosmic-gradient); color: #fff; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-family: Arial, sans-serif; font-weight: bold; cursor: pointer; border: 2px solid #000; z-index: 10001; transition: 0.3s; padding: 0; line-height: 0; }
.promo-close:hover { transform: scale(1.1) rotate(90deg); }

/* Styling Container Tombol di dalam Popup (STRUKTUR SAMA, WARNA DARK RED) */
.promo-buttons {
    display: flex;
    gap: 10px;
    padding: 15px 10px;
    background: #120303;
    border-radius: 0 0 10px 10px;
}

/* Styling Dasar Tombol Popup (STRUKTUR SAMA, WARNA DARK RED) */
.btn-popup {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 900;
    font-size: 14px;
    border-radius: 6px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative; /* Penting untuk efek mengkilau */
    overflow: hidden; /* Penting untuk efek mengkilau */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* Transisi halus */
}

/* --- EFEK MENGKILAU (SHINE ANIMATION) (STRUKTUR DAN ANIMASI SAMA, WARNA DARK RED) --- */
.btn-popup::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    animation: popupShine 3s infinite;
}

@keyframes popupShine {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

/* --- EFEK BUBBLE/PULSATE PADA TOMBOL DAFTAR (STRUKTUR DAN ANIMASI SAMA, WARNA DARK RED) --- */
@keyframes popupPulseDarkRed {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(139, 0, 0, 0.45); }
    50% { transform: scale(1.03); box-shadow: 0 0 20px rgba(180, 0, 0, 0.65); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(139, 0, 0, 0.45); }
}

/* Tombol Login (MASUK) (STRUKTUR SAMA, WARNA DARK RED) */
.btn-popup.login {
    border: 1px solid var(--primary);
    color: #fff;
    background: transparent;
}

/* Tombol Daftar (DAFTAR SEKARANG) (STRUKTUR SAMA, WARNA DARK RED) */
.btn-popup.register {
    background: var(--cosmic-gradient);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.45);
    /* Aktifkan Efek Menggelembung Pelan */
    animation: popupPulseDarkRed 1.5s infinite;
}

/* --- EFEK KLIK NGE-BOMB (ACTIVE EFFCT) (STRUKTUR SAMA) --- */
.btn-popup:active {
    transform: scale(0.85); /* Tombol menciut dulu */
    filter: brightness(1.3) contrast(1.2); /* Sedikit lebih terang dan tajam */
    transition: all 0.1s; /* Lebih cepat */
}

/* Biar gambar di popup nggak ada gap bawah (STRUKTUR SAMA) */
.promo-content img {
    border-radius: 10px 10px 0 0 !important;
}

@media (max-width: 480px) {
    .btn-popup {
        font-size: 11px;
        padding: 10px;
    }
}

/* --- RESPONSIVE (STRUKTUR SAMA, WARNA DARK RED) --- */
@media (max-width: 1024px) {
    .card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 5px 15px rgba(139, 0, 0, 0.35); }
}
@media (max-width: 768px) {
    .mobile-nav { display: grid; }
    .nav-search, .btn-group { display: none; }
    .info-box, .footer-grid { grid-template-columns: 1fr; }
    .card { flex: 0 0 150px; margin: 5px; }
    .testi-card { flex: 0 0 280px; }
}
@media (max-width: 480px) {
    .promo-content { max-width: 320px; }
    .promo-close { width: 30px; height: 30px; font-size: 20px; top: -10px; right: -10px; }
}