:root {
    --bg-color: #0b0f19;
    --card-color: #151f32;
    --accent-color: #00ffcc;
    --special-color: #ff3366;
    --yellow-glow: #ffcc00;
    --real-money-color: #4ade80;
    --text-color: #f1f5f9;
    --text-muted: #64748b;
    --neon-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

/* Anti-cheat Blur Effect */
body.anti-cheat-blur > *:not(.modal-overlay) {
    filter: blur(20px) grayscale(100%);
    transition: filter 0.2s ease;
    pointer-events: none;
    user-select: none;
}

.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #111827, #151f32);
    padding: 12px 16px;
    border-bottom: 2px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left-wallet {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wallet-badge {
    font-size: 0.8rem;
    font-weight: bold;
    background: #0f172a;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #1e293b;
}
.wallet-badge.reg { color: var(--accent-color); text-shadow: 0 0 5px rgba(0,255,204,0.3); }
.wallet-badge.spc { color: var(--special-color); text-shadow: 0 0 5px rgba(255,51,102,0.3); }

.header-right-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.wallet-badge.real { color: var(--real-money-color); text-shadow: 0 0 5px rgba(74,222,128,0.3); }

.vip-status-btn {
    background: linear-gradient(90deg, #ff3366, #ffcc00);
    color: #000;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,204,0,0.4);
}

.glowing-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 900;
    background: linear-gradient(90deg, #00ffcc, #ff3366, #ffcc00, #00ffcc);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
    padding: 15px 0 2px 0;
    margin: 0;
    letter-spacing: 3px;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.running-text-container {
    margin: 5px auto 15px auto;
    max-width: 600px;
    border: 2px solid var(--special-color);
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.4);
    background-color: #090d16;
    border-radius: 25px;
    overflow: hidden;
    padding: 6px 12px;
}
.running-text-container marquee {
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--yellow-glow);
}
.marquee-blink {
    animation: textBlinkEffect 1s linear infinite;
}
@keyframes textBlinkEffect {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 15px 120px 15px;
}

.card {
    background-color: var(--card-color);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid #22314d;
    transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
    border-color: #2e4368;
}

h3 { margin-top: 0; color: var(--accent-color); display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; letter-spacing: 0.5px;}
h4 { margin: 10px 0 5px 0; color: #cbd5e1;}

input, select, button {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    border-radius: 12px;
    border: 1px solid #2a3b5c;
    background-color: #0b0f19;
    color: white;
    box-sizing: border-box;
    font-size: 0.95rem;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--accent-color);
}

button {
    background-color: var(--accent-color);
    color: #0b0f19;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 255, 204, 0.2);
}
button:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: var(--neon-shadow); }
.btn-special { background: linear-gradient(135deg, var(--special-color), #bc00dd); color: white; box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3); }
.btn-special:hover { box-shadow: 0 0 15px rgba(255, 51, 102, 0.6); }
.btn-danger { background-color: #ef4444; color: white; }
.btn-secondary { background-color: #334155; color: white; }
.btn-lock { background-color: #1e293b; color: #475569; cursor: not-allowed; box-shadow: none; border: 1px dashed #334155; }

.misi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 10px;
    background: #090d16;
    border-radius: 14px;
    border: 1px solid #1e293b;
}

.misi-box {
    background: linear-gradient(135deg, #1e293b, #151f32);
    padding: 12px 5px;
    text-align: center;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.9rem;
    color: #94a3b8;
    border: 1px solid #2a3b5c;
    transition: all 0.2s;
}
.misi-box:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}
.misi-box.Selesai { 
    background: linear-gradient(135deg, #064e3b, #059669) !important; 
    color: #a7f3d0 !important; 
    border: 1px solid #10b981 !important;
    cursor: not-allowed;
    box-shadow: 0 0 8px rgba(16,185,129,0.3);
}
.misi-box.Mudah { border-bottom: 3px solid #10b981; color: #e2e8f0; }
.misi-box.Sedang { border-bottom: 3px solid #f59e0b; color: #e2e8f0; }
.misi-box.Sulit { border-bottom: 3px solid #ef4444; color: #e2e8f0; }

.arena {
    background: #090d16;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #2a3b5c;
}

.tts-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
    background: #0f172a;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #334155;
}
.tts-grid-table {
    border-collapse: collapse;
    margin-bottom: 15px;
}
.tts-cell {
    width: 45px;
    height: 45px;
    border: 1px solid #475569;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    font-size: 1.2rem;
    position: relative;
    background-color: #0b0f19;
    color: var(--accent-color);
}
.tts-cell.block {
    background-color: #1e293b !important;
    border: 1px solid #1e293b;
}
.tts-cell-num {
    position: absolute;
    top: 1px;
    left: 2px;
    font-size: 0.65rem;
    color: var(--yellow-glow);
    font-weight: normal;
}
.tts-clues {
    text-align: left;
    width: 100%;
    background: #1e293b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.tts-clues h5 {
    margin: 0 0 5px 0;
    color: var(--yellow-glow);
    font-size: 0.95rem;
}

.kebun-container {
    background: #0f172a;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #2a3b5c;
    margin: 15px 0;
    text-align: left;
}
.status-jagung-box {
    font-size: 0.9rem;
    background: #090d16;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--yellow-glow);
}

.chat-box {
    height: 220px;
    overflow-y: auto;
    border: 1px solid #2a3b5c;
    padding: 10px;
    background: #090d16;
    border-radius: 10px;
}
.chat-box-premium-info {
    background: #1e1b4b;
    border: 1px solid var(--special-color);
    padding: 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #f8fafc;
    margin-bottom: 10px;
}
.chat-msg { margin-bottom: 8px; font-size: 0.9rem; word-wrap: break-word; }
.chat-msg.admin { color: var(--accent-color); }
.chat-msg.user { color: var(--special-color); }
.chat-img-preview { max-width: 150px; border-radius: 8px; display: block; margin-top: 5px; border: 1px solid #334155; }

.badge {
    background: #1e293b;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid #334155;
}
.flex-space { display: flex; justify-content: space-between; align-items: center; }

.navbar {
    position: fixed !important;
    bottom: 0 !important; 
    left: 0 !important; 
    right: 0 !important;
    background-color: var(--card-color) !important;
    justify-content: space-around !important;
    padding: 14px 0 !important;
    border-top: 2px solid #1e293b !important;
    z-index: 999999 !important;
    transform: none !important;
    animation: none !important;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5) !important;
}
.nav-item { 
    color: #64748b !important; 
    cursor: pointer !important; 
    font-size: 0.85rem !important; 
    text-align: center !important; 
    flex: 1 !important; 
    font-weight: 500 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    animation: none !important;
    box-shadow: none !important;
    width: auto !important;
}
.nav-item:hover {
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}
.nav-item.active { color: var(--accent-color) !important; font-weight: bold !important; text-shadow: var(--neon-shadow) !important; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-content {
    background: var(--card-color);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    width: 100%;
    max-width: 550px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 0 25px rgba(0,255,204,0.3);
}

.running-wd-text-container {
    margin: 15px auto 5px auto;
    max-width: 600px;
    border: 2px solid #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
    background-color: #050811;
    border-radius: 8px;
    overflow: hidden;
    padding: 6px 12px;
}
.running-wd-text-container marquee {
    font-size: 0.85rem;
    color: #4ade80;
    font-weight: bold;
}

footer { text-align: center; padding: 25px 10px; margin-top: 30px; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid #151f32; line-height: 1.5; }
.pro-note { font-style: italic; color: #475569; margin-top: 5px; font-size: 0.75rem; }

.game-canvas-container {
    position: relative;
    background: #05070c;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    margin: 15px 0;
    overflow: hidden;
    height: 320px;
    cursor: crosshair;
}
.game-target-object {
    position: absolute;
    font-size: 2rem;
    user-select: none;
    transition: transform 0.1s;
}
.game-gun-pointer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    z-index: 10;
    pointer-events: none;
}
.game-hud {
    display: flex;
    justify-content: space-between;
    background: #111827;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    border: 1px solid #1e293b;
}
.laser-flash {
    position: absolute;
    background: rgba(0, 255, 204, 0.6);
    width: 4px;
    z-index: 5;
    pointer-events: none;
}
.file-upload-wrapper {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.file-upload-wrapper input[type="file"] {
    width: auto;
    padding: 5px;
    font-size: 0.8rem;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.auth-tab-btn {
    flex: 1;
    padding: 10px;
    background: #090d16;
    color: var(--text-muted);
    border: 1px solid #2a3b5c;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}
.auth-tab-btn.active {
    background: var(--accent-color);
    color: #0b0f19;
    border-color: var(--accent-color);
    box-shadow: var(--neon-shadow);
}

.gold-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 320px;
    margin: 15px auto;
}
.gold-grid-block {
    height: 52px;
    background: linear-gradient(135deg, #451a03, #78350f);
    border: 2px solid #b45309;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease-in-out;
}
.gold-grid-block:hover {
    transform: scale(1.05);
    border-color: #f59e0b;
}

.wheel-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 20px auto;
}
.wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
    transition: transform 4s cubic-bezier(0.1, 0.8, 0.1, 1);
    background: conic-gradient(
        #ff3366 0deg 60deg,
        #1e293b 60deg 120deg,
        #00ffcc 120deg 180deg,
        #1e293b 180deg 240deg,
        #ffcc00 240deg 300deg,
        #0b0f19 300deg 360deg
    );
}
.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #ffcc00;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.wheel-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    color: black;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 3px solid var(--special-color);
    box-shadow: 0 0 10px rgba(255,51,102,0.6);
    user-select: none;
    z-index: 12;
}

.prize-preview-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
    background: #090d16;
    padding: 10px;
    border-radius: 12px;
    border: 1px dashed #2a3b5c;
}
.prize-item {
    font-size: 0.75rem;
    padding: 6px;
    background: #1e293b;
    border-radius: 6px;
    border: 1px solid #334155;
    font-weight: bold;
}
.prize-item.highlight {
    border-color: var(--yellow-glow);
    color: var(--yellow-glow);
    text-shadow: 0 0 5px rgba(255,204,0,0.5);
}
.prize-item.highlight-special {
    border-color: var(--accent-color);
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(0,255,204,0.5);
}

.premium-game-box {
    background: radial-gradient(circle, #1a233a, #0d1321);
    border: 2px solid var(--special-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 51, 102, 0.3);
}
.premium-timer {
    font-size: 1.2rem;
    color: var(--special-color);
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 51, 102, 0.5);
    margin-bottom: 10px;
}
.premium-soal {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin: 15px 0;
    letter-spacing: 2px;
}

.papan-admin-container {
    max-width: 600px;
    margin: 15px auto 5px auto;
    box-sizing: border-box;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px;
}
.border-pilihan-1 { border: 3px dashed var(--accent-color); background: #0f1c24; border-radius: 10px; color: var(--accent-color); }
.border-pilihan-2 { border: 3px double var(--special-color); background: #240f16; border-radius: 15px; color: var(--special-color); }
.border-pilihan-3 { border: 3px solid var(--yellow-glow); background: #24200f; border-radius: 5px; color: var(--yellow-glow); }

@keyframes kedipAnim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
@keyframes goyangAnim {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px) rotate(-1deg); }
    75% { transform: translateX(6px) rotate(1deg); }
}
@keyframes pantulAnim {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-15px); }
    75% { transform: translateX(15px); }
}

.expert-box {
    background: #090d16;
    border: 1px solid var(--special-color);
    padding: 15px;
    border-radius: 12px;
    margin: 10px 0;
    text-align: left;
}
.expert-soal-display {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    background: #151f32;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--special-color);
}
.math-expert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.math-expert-input {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px !important;
    margin: 0 !important;
}

.visual-math-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: 150px;
    margin: 10px auto;
    background: #0f172a;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid var(--accent-color);
}
.matrix-cell {
    background: #1e293b;
    padding: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent-color);
    border-radius: 4px;
}

.border-expert-vip {
    border: 3px solid #ff007f !important;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.6), inset 0 0 15px rgba(255, 0, 127, 0.4) !important;
    background: linear-gradient(145deg, #1f051a, #0d0214) !important;
    border-radius: 18px !important;
}

.popup-tab-header {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid #22314d;
    padding-bottom: 5px;
}
.popup-tab-btn {
    flex: 1;
    padding: 8px 5px;
    font-size: 0.8rem;
    background: #090d16;
    color: var(--text-muted);
    border: 1px solid #2a3b5c;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
}
.popup-tab-btn.active {
    background: var(--special-color);
    color: white;
    border-color: var(--special-color);
}
.popup-tab-content {
    display: none;
}
.popup-tab-content.active {
    display: block;
}

.transaksi-item {
    background: #151f32;
    border: 1px solid #2a3b5c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
}
