:root { --primary: #6366f1; --accent: #8b5cf6; --success: #10b981; --danger: #ef4444; --glass-bg: rgba(15, 23, 42, 0.6); --glass-border: rgba(255, 255, 255, 0.08); --text-main: #f8fafc; --text-muted: #94a3b8; }
* { box-sizing: border-box; outline: none; }
body { background-color: #020617; background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%); background-size: 200% 200%; animation: gradientBG 15s ease infinite; color: var(--text-main); font-family: 'Inter', sans-serif; margin: 0; padding: 20px; min-height: 100vh; }
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.container { max-width: 1100px; margin: 0 auto; }
.glass-panel { background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); overflow: hidden; padding: 24px; margin-bottom: 20px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 10px; }
h1 { font-family: 'Poppins', sans-serif; font-size: 1.8rem; margin: 0; background: linear-gradient(to right, #818cf8, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 1px; }
.badge { font-size: 0.75rem; background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); }
.dashboard-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
@media (max-width: 850px) { .dashboard-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
input, select, textarea { width: 100%; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--glass-border); color: white; padding: 12px 15px; border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 0.9rem; transition: all 0.3s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
.btn { width: 100%; padding: 14px; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; transition: 0.2s; font-family: 'Poppins', sans-serif; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text-main); }
.btn-danger { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.result-card { background: linear-gradient(180deg, rgba(30, 41, 59, 0) 0%, rgba(99, 102, 241, 0.05) 100%); padding: 30px; text-align: center; border-bottom: 1px solid var(--glass-border); position: relative; }
.big-digit { font-family: 'Poppins', sans-serif; font-size: 4.5rem; font-weight: 700; background: linear-gradient(to bottom, #ffffff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 10px 0; }
.history-wrapper { padding: 20px; height: 300px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { text-align: left; padding: 10px; color: var(--text-muted); border-bottom: 1px solid var(--glass-border); }
td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.win-row { color: var(--success); } .lose-row { color: var(--danger); }
.saved-area { padding: 20px; margin-top: 24px; }
.saved-item { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 8px; padding: 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
#loginOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #020617; z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.lock-card { background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(255,255,255,0.1); padding: 40px; border-radius: 24px; text-align: center; backdrop-filter: blur(20px); width: 90%; max-width: 400px; }
.ai-builder-group { display: flex; gap: 10px; } .ai-builder-group input { width: 80px; text-align: center; font-weight: bold; color: var(--accent); }
body.light-mode { background-image: radial-gradient(at 0% 0%, #e0f2fe 0, transparent 50%), radial-gradient(at 50% 0%, #bae6fd 0, transparent 50%), radial-gradient(at 100% 0%, #e0f2fe 0, transparent 50%); background-color: #f0f9ff; --text-main: #0f172a; --text-muted: #475569; --glass-bg: rgba(255, 255, 255, 0.65); --glass-border: rgba(0, 0, 0, 0.1); }
body.light-mode input, body.light-mode select, body.light-mode textarea { background: rgba(255, 255, 255, 0.8); color: #0f172a; border-color: #cbd5e1; }
body.light-mode .result-card { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(99, 102, 241, 0.1) 100%); }
body.light-mode h1 { background: linear-gradient(to right, #4f46e5, #9333ea); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.light-mode .badge { color: #4f46e5; border-color: #4f46e5; background: rgba(79, 70, 229, 0.1); }
/* MENU & CHAT STYLES */
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 25px; }
@media (max-width: 480px) { .menu-grid { grid-template-columns: repeat(4, 1fr); gap:8px; } }
.menu-item { position: relative; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--glass-border); border-radius: 16px; padding: 15px 5px; text-align: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.menu-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--item-color, white); opacity: 0.5; transition: 0.3s; }
.menu-item:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.05); border-color: var(--item-color, white); box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 20px var(--item-glow, rgba(255,255,255,0.1)); }
.menu-item:hover::after { opacity: 1; height: 4px; }
.menu-item:active { transform: scale(0.95); }
.menu-icon { font-size: 1.8rem; margin-bottom: 8px; transition: all 0.3s ease; filter: grayscale(100%) brightness(1.2); opacity: 0.7; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.menu-item:hover .menu-icon { transform: scale(1.1) translateY(-2px); opacity: 1; filter: grayscale(100%) brightness(200%) drop-shadow(0 0 5px var(--item-color)); }
.menu-text { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s; }
.menu-item:hover .menu-text { color: white; }
.app-page { display: none; animation: fadeInPage 0.4s ease forwards; } #page-dashboard { display: block; }
@keyframes fadeInPage { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.chat-box { height: 350px; overflow-y: auto; background: rgba(0,0,0,0.2); border-radius: 12px; padding: 15px; margin-bottom: 15px; border: 1px solid var(--glass-border); }
.chat-bubble { background: rgba(99, 102, 241, 0.2); padding: 10px 14px; border-radius: 10px; border-bottom-left-radius: 2px; margin-bottom: 10px; font-size: 0.9rem; color: white; border: 1px solid rgba(99, 102, 241, 0.3); }
body.light-mode .chat-bubble { color: #0f172a; background: white; }
#helpBoxArea { display: flex; flex-direction: column; }
.admin-reply { align-self: flex-start; margin-right: 20%; border: 1px solid #10b981 !important; background: rgba(16, 185, 129, 0.2) !important; }
.user-sent { align-self: flex-end; margin-left: 20%; background: var(--primary); border: 1px solid var(--accent); }
.free-theme { border: 2px dashed #f59e0b; } .free-badge { background: #f59e0b; color: black; padding: 8px; border-radius: 8px; text-align: center; font-weight: bold; margin-bottom: 20px; }
/* RUNNING TEXT */
@keyframes runningText { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.ticker-wrap { width: 100%; overflow: hidden; background: rgba(0,0,0,0.6); border-top: 1px solid #f59e0b; border-bottom: 1px solid #f59e0b; margin-bottom: 15px; white-space: nowrap; box-sizing: border-box; }
.ticker-move { display: inline-block; white-space: nowrap; padding-left: 100%; animation: runningText 15s linear infinite; }
.ticker-item { display: inline-block; color: #f59e0b; font-family: 'Courier New', monospace; font-weight: bold; font-size: 0.9rem; padding: 8px 0; }

/* --- REKAP PRO STYLES --- */
.rekap-tab-container { display: flex; gap: 10px; margin-bottom: 20px; }
.rekap-tab-btn { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid #444; color: #aaa; padding: 12px; border-radius: 10px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.rekap-tab-btn.active { background: var(--primary); color: white; border-color: white; box-shadow: 0 0 15px var(--primary); }

/* WARNA KHUSUS PER LEVEL */
.theme-2d .filter-btn.active { background: cyan; color: black; box-shadow: 0 0 10px cyan; border-color: cyan; }
.theme-3d .filter-btn.active { background: #d946ef; color: white; box-shadow: 0 0 10px #d946ef; border-color: #d946ef; }
.theme-4d .filter-btn.active { background: #facc15; color: black; box-shadow: 0 0 10px #facc15; border-color: #facc15; }

.filter-group { background: rgba(0,0,0,0.3); padding: 10px; border-radius: 10px; margin-bottom: 10px; border: 1px dashed #444; }
.filter-label { display: block; font-size: 0.75rem; color: #aaa; margin-bottom: 8px; font-weight: bold; text-transform: uppercase; }
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.filter-btn { background: transparent; border: 1px solid #555; color: #888; padding: 8px 2px; font-size: 0.7rem; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.filter-btn:hover { border-color: #fff; color: #fff; }

textarea.rekap-in { height: 60px; font-family: monospace; letter-spacing: 1px; }
.rekap-result-box { background: rgba(0,0,0,0.5); padding: 15px; border-radius: 10px; min-height: 100px; font-family: 'Courier New', monospace; font-size: 0.9rem; color: white; word-wrap: break-word; border: 1px solid #333; }