@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&family=Oswald:wght@500;700&display=swap');

/* =========================================================
   1. GLOBAL VARIABLES & VIP CASINO THEME
   ========================================================= */
:root {
    --bg-dark: #0a0a0a;
    --bg-panel: #141414;
    --gold-main: #d4af37;
    --gold-light: #f9f59f;
    --gold-dark: #996515;
    --red-dark: #4a0404;
    --red-glow: #ff0000;
    --glossy-gradient: linear-gradient(180deg, #333 0%, #111 49%, #000 50%, #111 100%);
    --gold-gradient: linear-gradient(180deg, #f0c265 0%, #b8860b 25%, #ffd700 50%, #b8860b 75%, #f0c265 100%);
}

html, body { overflow-x: hidden; margin: 0; padding: 0; min-height: 100vh; }
body { 
    background-color: var(--bg-dark); 
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    color: #fff; 
    font-family: 'Poppins', sans-serif; 
}

/* Tombol Glossy Mewah */
.glossy-btn-gold { background: var(--gold-gradient); color: #000; font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700; padding: 15px; border: 2px solid #fff; border-radius: 8px; cursor: pointer; text-transform: uppercase; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4), inset 0 2px 5px rgba(255,255,255,0.8); text-shadow: 0 1px 1px rgba(255,255,255,0.5); transition: 0.2s; width: 100%; }
.glossy-btn-gold:active { transform: translateY(4px); box-shadow: inset 0 4px 10px rgba(0,0,0,0.5); }

.glossy-btn-gold-small { background: var(--gold-gradient); color: #000; font-weight: 900; font-size: 12px; padding: 8px 15px; border: 1px solid #fff; border-radius: 6px; cursor: pointer; box-shadow: inset 0 2px 4px rgba(255,255,255,0.8); }
.glossy-btn-red-small { background: linear-gradient(180deg, #ef4444, #991b1b); color: #fff; font-weight: 900; font-size: 12px; padding: 8px 15px; border: 1px solid #ffbaba; border-radius: 6px; cursor: pointer; box-shadow: inset 0 2px 4px rgba(255,255,255,0.3); }

/* FAKE LOGIN SCREEN (Scam Vibe) */
.fake-marquee { background: var(--red-dark); border-bottom: 2px solid var(--gold-main); color: var(--gold-light); font-weight: bold; font-size: 14px; padding: 8px 0; overflow: hidden; white-space: nowrap; position: fixed; top: 0; width: 100%; z-index: 3100; box-shadow: 0 5px 15px rgba(255,0,0,0.2); }
.fake-marquee span { display: inline-block; padding-left: 100%; animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

#login-screen { position: fixed; inset: 0; background: radial-gradient(circle, #2a0808 0%, #000 100%); z-index: 3000; display: flex; justify-content: center; align-items: center; padding: 20px; padding-top: 60px; /* Jarak atas biar ga nabrak marquee promo */ }
.login-box { 
    background: var(--glossy-gradient); 
    padding: 30px 35px; 
    border-radius: 16px; 
    border: 2px solid var(--gold-main); 
    width: 100%; 
    max-width: 480px; /* Diperlebar sedikit biar kolom captcha lega */
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(0,0,0,0.8); 
    max-height: 70vh; /* Maksimal tinggi 70% layar */
    overflow-y: auto; /* Otomatis memunculkan scroll kalau isi panjang */
}

.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-size: 12px; color: #ccc; margin-bottom: 5px; font-weight: 600; text-transform: uppercase; }
.login-input { width: 100%; padding: 12px; background: #000; border: 1px solid #444; color: var(--gold-light); border-radius: 6px; box-sizing: border-box; font-size: 14px; outline: none; transition: 0.3s; box-shadow: inset 0 2px 5px rgba(0,0,0,0.8); }
.login-input:focus { border-color: var(--gold-main); box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), inset 0 2px 5px rgba(0,0,0,0.8); }
.fake-badges { display: flex; justify-content: space-between; margin-top: 15px; font-size: 11px; color: #10b981; font-weight: bold; }

/* NAVBAR & LOBBY */
.simple-nav { display: flex; justify-content: space-between; align-items: center; background: var(--bg-panel); border-bottom: 2px solid var(--gold-main); padding: 15px 25px; box-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.nav-logo { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--gold-light); }
.nav-btn { background: transparent; color: #aaa; border: 1px solid #555; padding: 6px 15px; border-radius: 4px; font-size: 12px; cursor: pointer; }
.nav-btn:hover { color: #fff; border-color: #fff; }

#lobby-screen { display: flex; flex-direction: column; align-items: center; padding: 20px; box-sizing: border-box; min-height: 100vh; background: #0a0a0a; }
.lobby-container { max-width: 1000px; width: 100%; margin-top: 60px; }
.lobby-header { text-align: center; margin-bottom: 30px; }
.lobby-header h1 { color: var(--gold-light); font-family: 'Oswald', sans-serif; font-size: 36px; margin: 0 0 10px; text-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }

.panel-saldo-global { background: var(--glossy-gradient); border: 1px solid var(--gold-dark); border-radius: 12px; padding: 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 10px 20px rgba(0,0,0,0.5); }
.saldo-text { color: #aaa; font-size: 12px; font-weight: bold; letter-spacing: 1px; }
.saldo-value { color: var(--gold-main); font-size: 28px; font-weight: 900; font-family: monospace; text-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
.saldo-actions { display: flex; gap: 10px; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.game-card { background: #141414; border: 2px solid #333; border-radius: 12px; padding: 25px; cursor: pointer; transition: 0.3s; text-align: center; position: relative; overflow: hidden; }
.game-card:hover { border-color: var(--gold-main); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2); }
.rtp-bar { position: absolute; top: 0; left: 0; width: 100%; height: 25px; background: #222; border-bottom: 1px solid #444; }
.rtp-fill { height: 100%; background: linear-gradient(90deg, #10b981, #059669); }
.rtp-text { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 11px; font-weight: 900; text-shadow: 1px 1px 2px #000; }
.game-icon { font-size: 60px; margin: 30px 0 15px; filter: drop-shadow(0 5px 10px #000); }
.game-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; font-family: 'Oswald', sans-serif;}
.game-desc { font-size: 12px; color: #888; }
.hot-tag, .edu-tag { position: absolute; top: 40px; right: -30px; background: var(--red-glow); color: #fff; font-size: 10px; font-weight: bold; padding: 5px 30px; transform: rotate(45deg); box-shadow: 0 2px 5px #000; }
.edu-tag { background: #3b82f6; }

/* =========================================================
   MODAL POPUPS (DEPOSIT & PANDUAN)
   ========================================================= */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 4000; display: none; flex-direction: column; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(5px); }
.modal-box { background: var(--glossy-gradient); border: 2px solid var(--gold-main); width: 100%; max-width: 480px; border-radius: 16px; padding: 30px; text-align: left; box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 15px rgba(212, 175, 55, 0.2); }

/* FAKE REK BOX & DEPOSIT FORM */
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: #111; border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: var(--gold-main); }

.payment-tabs { display: flex; gap: 5px; background: #000; padding: 5px; border-radius: 8px; border: 1px solid #333; }
.pay-tab { flex: 1; background: transparent; color: #888; border: none; padding: 10px 5px; font-size: 11px; font-weight: 800; border-radius: 4px; cursor: pointer; transition: 0.3s; text-transform: uppercase; font-family: 'Oswald', sans-serif; letter-spacing: 1px; }
.pay-tab.active { background: var(--gold-gradient); color: #000; box-shadow: inset 0 2px 5px rgba(255,255,255,0.5); }
.pay-tab:hover:not(.active) { color: #fff; background: #222; }

.input-note { font-size: 11px; color: #10b981; margin-top: 8px; font-weight: 600; letter-spacing: 0.5px; }

.warning-box { background: rgba(220, 38, 38, 0.1); border: 1px dashed #ef4444; border-radius: 8px; padding: 15px; margin-top: 25px; }
.warning-box p { color: #fca5a5; font-size: 11px; line-height: 1.6; margin: 0 0 10px 0; text-align: justify; }
.warning-box p:last-child { margin-bottom: 0; }

/* =========================================================
   MAIN SLOT UI (LANDSCAPE VIP FRAME)
   ========================================================= */
.slot-landscape-wrapper { display: flex; flex-direction: row; justify-content: center; align-items: stretch; gap: 20px; max-width: 1200px; width: 100%; margin: 80px auto 20px; padding: 0 20px; box-sizing: border-box; }

/* Sidebar Kiri */
.slot-sidebar { flex: 0 0 250px; display: flex; flex-direction: column; gap: 15px; }
.sunk-cost-box { background: var(--red-dark); border: 1px solid #ef4444; border-radius: 10px; padding: 15px; text-align: center; color: #fca5a5; font-size: 11px; font-weight: bold; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); }
.sunk-value { color: #fff; font-size: 18px; font-weight: 900; margin-top: 5px; text-shadow: 0 0 10px #ef4444; }

.meter-container { background: var(--bg-panel); border: 1px solid #333; padding: 15px; border-radius: 10px; box-shadow: inset 0 0 15px rgba(0,0,0,0.5); }
.meter-label { font-size: 11px; font-weight: bold; margin-bottom: 8px; display: flex; justify-content: space-between; }
.meter-bg { background: #000; height: 12px; border-radius: 6px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.8); overflow: hidden; }
.meter-fill { background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444); height: 100%; width: 0%; transition: 0.5s ease-out; }

.kontrol-ekstra { display: flex; gap: 10px; }
.glossy-btn-dark { flex: 1; background: var(--glossy-gradient); border: 1px solid #555; color: #fff; padding: 10px; border-radius: 8px; font-weight: bold; font-size: 12px; cursor: pointer; box-shadow: inset 0 2px 5px rgba(255,255,255,0.1), 0 5px 10px rgba(0,0,0,0.5); transition: 0.2s; }
.glossy-btn-dark:hover { border-color: var(--gold-main); }
.glossy-btn-dark.aktif { border-color: #10b981; box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.4); }

/* TENGAH: MESIN SLOT 3D REALISTIS */
.slot-machine-center { flex: 1; max-width: 600px; display: flex; flex-direction: column; }
.machine-frame { 
    background: linear-gradient(145deg, #b8860b, #ffd700, #b8860b);
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 10px #fff;
    position: relative;
}
.area-mesin { 
    display: grid; gap: 6px; 
    background: #000; 
    padding: 20px; 
    border-radius: 10px; 
    /* EFEK MENDALAM (3D INSET) */
    box-shadow: inset 0 30px 30px rgba(0,0,0,1), inset 0 -30px 30px rgba(0,0,0,1), 0 0 10px rgba(255,255,255,0.5); 
    width: 100%; box-sizing: border-box;
    position: relative;
}
/* Payline Indikator (Garis Tembus) */
.area-mesin::before {
    content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px;
    background: rgba(255, 0, 0, 0.5); box-shadow: 0 0 10px red; pointer-events: none; z-index: 5;
}

.reel-container { 
    background: #f8fafc; /* Latar putih agar simbol jelas */
    border-radius: 6px; 
    display: flex; justify-content: center; align-items: center; 
    position: relative; overflow: hidden; 
    aspect-ratio: 1/1;
    /* Efek melengkung ke dalam (Cylinder) */
    box-shadow: inset 0 15px 15px rgba(0,0,0,0.4), inset 0 -15px 15px rgba(0,0,0,0.4), inset 0 0 5px rgba(0,0,0,0.2);
} 
.reel { font-size: clamp(24px, 4vw, 45px); filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3)); transition: 0.1s; }

/* EFEK SPIN BLUR REALISTIS */
.spin-blur {
    filter: blur(4px) drop-shadow(0 15px 0 rgba(0,0,0,0.1)) drop-shadow(0 -15px 0 rgba(0,0,0,0.1));
    transform: scaleY(1.4) translateY(10px);
    opacity: 0.8;
}

.win-glow { background: rgba(255, 215, 0, 0.3); border: 2px solid var(--gold-main); box-shadow: inset 0 0 20px var(--gold-main), 0 0 20px var(--gold-main); z-index: 10; border-radius: 4px; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; animation: pulseGlow 0.5s infinite alternate;}
@keyframes pulseGlow { from { filter: brightness(1); } to { filter: brightness(1.5); } }

.status-info { background: #000; color: var(--gold-light); font-family: 'Oswald', sans-serif; font-size: 16px; padding: 10px; text-align: center; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; letter-spacing: 2px; box-shadow: inset 0 5px 10px rgba(0,0,0,0.8); margin-top: -5px; z-index: 2; position: relative;}

/* Sidebar Kanan/Bawah: Controls */
.slot-controls-right { flex: 0 0 250px; display: flex; flex-direction: column; gap: 15px; }
.panel-bet { background: var(--bg-panel); border: 1px solid #333; padding: 15px; border-radius: 10px; text-align: center; box-shadow: inset 0 0 15px rgba(0,0,0,0.5); }
.grid-taruhan { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.btn-taruhan { background: #111; color: #888; border: 1px solid #444; padding: 10px; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.2s; box-shadow: inset 0 2px 4px rgba(255,255,255,0.05); }
.btn-taruhan.aktif { background: var(--red-dark); border-color: #ef4444; color: #fff; box-shadow: inset 0 0 10px #ef4444; }

.glossy-btn-spin { 
    background: linear-gradient(180deg, #10b981 0%, #047857 50%, #022c22 100%);
    border: 3px solid #6ee7b7; border-radius: 50%;
    width: 130px; height: 130px; margin: 20px auto 0;
    cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8), inset 0 10px 20px rgba(255,255,255,0.4);
    transition: 0.1s;
}
.glossy-btn-spin:active { transform: scale(0.95); box-shadow: 0 5px 15px rgba(0,0,0,0.9), inset 0 5px 10px rgba(0,0,0,0.6); }
.glossy-btn-spin:disabled { filter: grayscale(100%); pointer-events: none; }
.spin-text { color: #fff; font-family: 'Oswald', sans-serif; font-size: 32px; font-weight: 900; text-shadow: 0 2px 4px #000; letter-spacing: 2px; }
.spin-sub { color: #a7f3d0; font-size: 10px; font-weight: bold; }

/* HYPE OVERLAY */
#hype-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 2000; display: none; justify-content: center; align-items: center; background: rgba(0,0,0,0.8); }
.hype-text { font-size: 60px; font-family: 'Oswald', sans-serif; font-weight: 900; text-transform: uppercase; text-align: center; animation: popHype 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.win-gold { color: var(--gold-light); text-shadow: 0 0 50px var(--gold-main), 0 5px 0 #b45309; }
.lose-red { color: #ef4444; text-shadow: 0 0 50px #dc2626, 0 5px 0 #7f1d1d; }
@keyframes popHype { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* VERA SYSTEM (Sesuai aslinya, Z-Index tinggi) */
#vera-guide-ui { position: fixed !important; bottom: 35px; left: 35px; z-index: 999999 !important; display: flex; align-items: flex-end; gap: 18px; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform: translateY(150%); opacity: 0; pointer-events: none; }
#vera-guide-ui.aktif { transform: translateY(0); opacity: 1; pointer-events: auto; }
.vera-v-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--glossy-gradient); display: flex; justify-content: center; align-items: center; font-size: 42px; box-shadow: 0 12px 30px rgba(0,0,0,0.8); border: 3px solid var(--gold-main); cursor: pointer; }
.vera-v-bubble { background: rgba(10, 10, 10, 0.95); padding: 20px 30px; border-radius: 22px; border-bottom-left-radius: 0; box-shadow: 0 20px 45px rgba(0,0,0,0.9); max-width: 350px; border: 2px solid var(--gold-main); color: #fff; }
.vera-v-name { font-size: 12px; font-weight: 900; color: var(--gold-main); letter-spacing: 1.5px; margin-bottom: 6px; }
.vera-v-text { font-size: 14px; font-weight: 500; line-height: 1.6; min-height: 45px; }
.vera-v-cursor { animation: blinkVeraV 1s step-end infinite; color: var(--gold-main); }
.vera-fokus { position: relative !important; z-index: 8001 !important; box-shadow: 0 0 0 6px var(--gold-main), 0 0 45px rgba(212, 175, 55, 0.8) !important; transition: all 0.4s; border-radius: inherit; }
#vera-gelap { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 8000; opacity: 0; pointer-events: none; transition: 0.5s; }
#vera-gelap.aktif { opacity: 1; }

/* MEDIA QUERIES (Ubah ke Vertical di HP) */
@media (max-width: 900px) {
    .slot-landscape-wrapper { flex-direction: column; align-items: center; margin-top: 70px; gap: 15px; }
    .slot-sidebar, .slot-controls-right { flex: unset; width: 100%; max-width: 450px; }
    .slot-machine-center { width: 100%; max-width: 450px; }
    .grid-taruhan { grid-template-columns: repeat(4, 1fr); }
    .glossy-btn-spin { width: 100%; height: 60px; border-radius: 12px; margin: 10px 0; flex-direction: row; gap: 10px; }
    .spin-sub { display: none; }
    #vera-guide-ui { bottom: 20px; left: 15px; right: 15px; gap: 10px; }
    .vera-v-avatar { width: 50px; height: 50px; font-size: 26px; }
    .vera-v-bubble { flex: 1; max-width: none; padding: 15px; }
}

/* =========================================================
   ANIMASI DEPOSIT MERIAH BUKAN MAIN (DOPAMINE HIT)
   ========================================================= */
#depo-success-anim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000; /* Harus di atas segalanya */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Class ini bakal ditambahin lewat JS pas Bandar klik ACC */
#depo-success-anim.show {
    opacity: 1;
    pointer-events: auto;
}

/* Cahaya Muter (Sunburst) */
.sunburst {
    position: absolute;
    width: 200vw;
    height: 200vw;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 215, 0, 0.2) 0deg 15deg,
        transparent 15deg 30deg
    );
    animation: rotateSunburst 10s linear infinite;
    z-index: 1;
}

@keyframes rotateSunburst {
    100% { transform: rotate(360deg); }
}

.depo-anim-content {
    position: relative;
    z-index: 10;
    text-align: center;
    transform: scale(0);
}

#depo-success-anim.show .depo-anim-content {
    animation: popInMeriah 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popInMeriah {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.depo-icon-meriah {
    font-size: 120px;
    filter: drop-shadow(0 0 30px #ffd700);
    animation: bounceIcon 0.8s infinite alternate;
}

@keyframes bounceIcon {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-20px) scale(1.1); }
}

.depo-text-meriah {
    font-family: 'Oswald', sans-serif;
    font-size: 55px;
    color: #fff;
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000, 0 5px 0 #8b0000;
    margin: 10px 0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.depo-sub-meriah {
    font-size: 20px;
    color: #ffd700;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 25px;
    border-radius: 30px;
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Fisik Koin Jatuh */
#coin-rain-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
}

.falling-coin {
    position: absolute;
    font-size: 35px;
    animation: fallCoin linear forwards;
}

@keyframes fallCoin {
    to { transform: translateY(110vh) rotate(720deg); }
}