.modal-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(20px);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    width: 100%;
    height: 100%;
}
.modal-card {
    border: 1px solid var(--border);
    width: 100%;
    max-width: 400px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    animation: modalIn 0.4s ease-out;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}
.modal-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.modal-title-group i {
    font-size: 1.2rem;
    color: #ffd700;
}
.modal-title-group h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.modal-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 26px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.modal-close-btn:hover {
    color: #ff4d4d;
    transform: rotate(90deg);
}
.modal-body {
    padding: 20px;
    overflow-y: auto; /* Scroll hanya di bagian ini */
    flex: 1; /* Mengambil sisa ruang yang tersedia */
    -webkit-overflow-scrolling: touch; /* Scroll halus di iOS */
}
.rules-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.rules-header {
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rules-content {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6;
}
.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
}
.btn-claim {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #ffd700, #ffae00);
    color: #000;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-claim:active {
    transform: scale(0.98);
}
.custom-scroll::-webkit-scrollbar {
    width: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

:root {
    /* Nama variabel dipertahankan sesuai permintaan */
    --gold: #D4AF37;
    --gold-grad: linear-gradient(135deg, #fceabb 0%, #d4af37 50%, #8b6d1b 100%);
    --dark-main: #060608;
    --card-bg: #0d0d11;
    --card-inner: #14141a;
    --shadow: #000 0px 4px 8px;
    --border: rgba(255, 255, 255, 0.05);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- RESET & HIDE SCROLLBAR --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    /* Sembunyikan garis scroll di semua browser */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

*::-webkit-scrollbar { 
    display: none; /* Chrome, Safari, Opera */
}

body {
    background: var(--dark-main);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    user-select: none;
    line-height: 1.4;
    min-height: 100vh;
}

/* --- BACKGROUND GLOSSY FX --- */
.bg-glow-overlay { 
    position: fixed; 
    inset: 0; 
    z-index: -2; 
    /* Gradasi Glossy Gold yang bergerak */
    background: linear-gradient(125deg, 
        #060608 0%, 
        #0d0d11 25%, 
        #1a1b25 50%, 
        #0d0d11 75%, 
        #060608 100%
    );
    background-size: 400% 400%;
    animation: glossyFlow 12s ease infinite;
}

/* Efek Aura Gold di atas background */
.bg-glow-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -10%, rgba(212, 175, 55, 0.12), transparent 70%);
    animation: goldPulse 8s infinite ease-in-out;
}

/* --- STARS FX --- */
.stars-container { 
    position: fixed; 
    inset: 0; 
    z-index: -1; 
    pointer-events: none; 
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
    animation: twinkle var(--duration) infinite ease-in-out;
}

/* --- ANIMATIONS --- */

/* Efek cahaya mengalir (Glossy) */
@keyframes glossyFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efek denyut cahaya emas */
@keyframes goldPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Bintang berkedip lebih tajam */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.3); filter: brightness(1.5) blur(0.5px); }
}

/* LOADER */
.gate-loader { position: fixed; inset: 0; background: #000; z-index: 999999; display: flex; align-items: center; justify-content: center; transition: 1s cubic-bezier(0.8, 0, 0.2, 1); }
.gate-content { text-align: center; width: 100%; max-width: 280px; }
.loader-visual-wrapper { position: relative; width: 100px; height: 100px; margin: 0 auto 30px; }
.hex-outer { position: absolute; inset: 0; background: var(--gold-grad); clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); display: flex; align-items: center; justify-content: center; animation: hexRotate 4s infinite linear; }
.hex-inner { width: 92px; height: 92px; background: #000; clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); display: flex; align-items: center; justify-content: center; }
.logo-main { font-size: 40px; color: var(--gold); filter: drop-shadow(0 0 10px var(--gold)); }
.loader-ring, .loader-ring-reverse { position: absolute; inset: -10px; border: 2px solid rgba(212, 175, 55, 0.1); border-top-color: var(--gold); border-radius: 50%; animation: rotate 2s linear infinite; }
.loader-ring-reverse { inset: -18px; border-top-color: #fff; animation: rotateReverse 3.5s linear infinite; }
.loader-brand { font-family: 'Orbitron', sans-serif; letter-spacing: 5px; font-size: 1.1rem; margin-bottom: 20px; text-transform: uppercase; }
.loading-progress-text { font-size: 0.55rem; color: #666; font-weight: 800; letter-spacing: 1px; margin-bottom: 8px; }
.loading-bar-container { width: 100%; height: 3px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.loading-bar-fill { width: 0%; height: 100%; background: var(--gold-grad); }

/* PAGE CONTENT */
.page-wrapper { opacity: 0; transform: translateY(20px); transition: 1.2s cubic-bezier(0.165, 0.84, 0.44, 1); }
.page-wrapper.show { opacity: 1; transform: translateY(0); }
.container { width: 100%; max-width: 900px; margin: 0 auto; padding: 12px; }
.main-card {
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 15px;
    box-shadow: var(--shadow);
    position: relative;
}
.banner-outer {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 18 / 9;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.slider-container { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.slide-item { min-width: 100%; height: 100%; }
.slide-item img { width: 100%; height: 100%; object-fit: inherit; }
.slider-dots { position: absolute; bottom: 10px; right: 15px; display: flex; gap: 4px; }
.dot { width: 4px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 50%; }
.dot.active { width: 15px; background: var(--gold); border-radius: 10px; }

/* ALERT TRANSACTION */
.alert-inline-container { position: absolute; bottom: 15px; left: 15px; width: auto; z-index: 10; pointer-events: none; }
.toast-mini { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); border-left: 3px solid var(--gold); padding: 6px 15px; border-radius: 8px; display: flex; align-items: center; gap: 10px; animation: toastUp 0.4s ease-out; }
.t-text { font-size: 0.6rem; font-weight: 700; color: #fff; }
.t-text b { color: var(--gold); }

/* HERO */
.hero-section { text-align: center; margin-bottom: 20px; }
.title-hero { font-family: 'Orbitron', sans-serif; font-size: 1rem; letter-spacing: 3px; margin-bottom: 10px; }
.status-tags { display: flex; justify-content: center; gap: 6px; }
.tag {
    font-size: 0.5rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    color: #555;
    border: 1px solid var(--border);
    white-space: nowrap;
    box-shadow: var(--shadow);
}
.tag i { color: var(--gold); }

/* INFO GRID */
.grid-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.info-card {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 5px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-icon-wrapper { width: 35px; height: 35px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--gold); }
.card-content span { display: block; font-size: 0.5rem; color: #555; font-weight: 800; }
.currency-text { font-size: 0.8rem; font-weight: 800; color: #fff; }

/* SPLIT SECTION */
.split-content-container { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 20px; }
@media (min-width: 768px) { .split-content-container { grid-template-columns: 1fr 1fr; } }

.content-column {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow);
}
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.header-title { font-size: 0.65rem; font-weight: 800; color: #666; display: flex; align-items: center; gap: 6px; }
.scroll-auto-tag {
    font-size: 0.45rem;
    background: var(--gold);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
    box-shadow: var(--shadow);
}

.promo-scroll-area { max-height: 180px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.promo-scroll-area::-webkit-scrollbar { display: none; }
.promo-item { list-style: none; border: 1px solid var(--border); padding: 10px; border-radius: 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.p-name { display: block; font-size: 0.65rem; font-weight: 700; color: #eee; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-sub { font-size: 0.5rem; color: #444; font-weight: 600; }
.p-badge { font-size: 0.6rem; font-weight: 900; color: var(--gold); }

/* BUTTONS */
.action-buttons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-main {
    height: 50px;
    border-radius: 15px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.btn-inner { display: flex; align-items: center; gap: 8px; z-index: 2; font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; }
.btn-register { background: var(--gold-grad); color: #000; }
.btn-login { background: #1a1b21; color: #fff; border: 1px solid var(--border); }
.btn-glow-effect { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: shine 3s infinite; }

/* FOOTER */
.site-footer { padding: 30px 0 10px; text-align: center; }
.social-grid { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.social-item { width: 40px; height: 40px; border-radius: 50%; background: var(--card-inner); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; color: #555; }
.footer-info { opacity: 0.4; }
.f-copyright { font-size: 0.55rem; margin-bottom: 8px; }
.certification-logos { font-size: 16px; display: flex; justify-content: center; gap: 12px; margin-bottom: 8px; }
.f-license { font-size: 0.45rem; color: #666; font-weight: 700; }

/* MODAL */
.modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.modal-title-group h3 { font-size: 0.7rem; font-weight: 800; color: var(--gold); }
.rules-content { font-size: 0.65rem; color: #888; line-height: 1.6; max-height: 200px; overflow-y: auto; }

element.style {
}
.btn-claim {
    display: flex;
    height: 45px;
    background: var(--gold-grad);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* ANIMATIONS */
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotateReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes hexRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes shine { from { left: -100%; } to { left: 200%; } }
@keyframes toastUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* PARTIKEL SEMPROT */
.confetti { position: absolute; width: 6px; height: 6px; border-radius: 2px; pointer-events: none; }