/* ==================== WAY2PLAY - Light Theme ==================== */
:root {
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --gold: #D97706;
    --gold-light: #F59E0B;
    --green: #059669;
    --red: #DC2626;
    --blue: #2563EB;
    --bg: #F8FAFC;
    --bg2: #FFFFFF;
    --card-bg: #FFFFFF;
    --border: #E2E8F0;
    --text: #1E293B;
    --text2: #64748B;
    --text3: #94A3B8;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }

/* ==================== APP CONTAINER ==================== */
.app-container { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 70px; }

/* ==================== TOP BAR ==================== */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 100; }
.topbar a { color: #fff; }
.topbar .logo { font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }
.topbar .balance { background: rgba(255,255,255,0.2); padding: 5px 12px; border-radius: 20px; font-weight: 600; font-size: 13px; }

/* ==================== BOTTOM NAV ==================== */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: #fff; border-top: 1px solid var(--border); z-index: 100; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 0; font-size: 11px; color: var(--text2); gap: 2px; transition: color .2s; }
.bottom-nav a.active { color: var(--primary); font-weight: 600; }
.bottom-nav .nav-icon { font-size: 18px; }

/* ==================== SECTIONS ==================== */
.section { padding: 12px 16px; }
.section-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }

/* ==================== CARDS ==================== */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card-header { font-weight: 700; font-size: 15px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--text); }

/* ==================== GAMES GRID ==================== */
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.game-card { display: flex; flex-direction: column; align-items: center; padding: 20px 12px; border-radius: var(--radius); text-align: center; color: #fff; box-shadow: var(--shadow-md); transition: transform .2s; }
.game-card:hover { transform: translateY(-2px); }
.game-icon { font-size: 32px; margin-bottom: 8px; }
.game-name { font-weight: 700; font-size: 14px; }
.card-red { background: linear-gradient(135deg, #EF4444, #DC2626); }
.card-gold { background: linear-gradient(135deg, #F59E0B, #D97706); }
.card-blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.card-green { background: linear-gradient(135deg, #10B981, #059669); }
.card-wingo { background: linear-gradient(135deg, #1a1a3e, #2d1b69); }

/* ==================== WIN GO GAME ==================== */
.wingo-page { background: #0a0e27; min-height: 100vh; }
.wingo-page .topbar { background: linear-gradient(135deg, #141833, #1e2456); }
.wingo-page .balance { background: rgba(255,255,255,0.12); }
.wingo-page .bottom-nav { background: #0f1332; border-color: #1e2456; }
.wingo-page .bottom-nav a { color: rgba(255,255,255,0.45); }
.wingo-page .bottom-nav a.active { color: #60a5fa; }

.wingo-tabs { display: flex; padding: 8px 12px; gap: 6px; }
.wingo-tab { flex: 1; text-align: center; padding: 10px 4px; border-radius: 10px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); cursor: pointer; transition: all .25s; border: 1px solid transparent; }
.wingo-tab.active { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border-color: rgba(96,165,250,0.3); box-shadow: 0 4px 15px rgba(37,99,235,0.3); }
.wingo-tab .tab-icon { font-size: 18px; display: block; margin-bottom: 2px; }

.wingo-arena { margin: 8px 12px; background: linear-gradient(180deg, #131740, #0f1332); border-radius: 14px; border: 1px solid rgba(255,255,255,0.06); padding: 14px; }
.wingo-arena-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wingo-howto { font-size: 12px; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); padding: 5px 12px; border-radius: 8px; cursor: pointer; border: 1px solid rgba(255,255,255,0.08); }
.wingo-timer-area { text-align: right; }
.wingo-timer-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.wingo-countdown { display: flex; gap: 3px; justify-content: flex-end; }
.wingo-countdown .digit { width: 28px; height: 34px; background: #0a0e27; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; border: 1px solid rgba(255,255,255,0.1); }
.wingo-countdown .colon { font-size: 18px; font-weight: 800; color: rgba(255,255,255,0.4); display: flex; align-items: center; }
.wingo-game-label { font-size: 15px; font-weight: 700; color: #fff; }
.wingo-period { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }
.wingo-recent-balls { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.wingo-mini-ball { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.ball-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.ball-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.ball-violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.ball-red-violet { background: linear-gradient(135deg, #ef4444 50%, #8b5cf6 50%); }
.ball-green-violet { background: linear-gradient(135deg, #22c55e 50%, #8b5cf6 50%); }

.wingo-color-btns { display: flex; gap: 8px; margin-bottom: 10px; }
.wingo-color-btn { flex: 1; padding: 12px 8px; border-radius: 10px; text-align: center; font-weight: 700; font-size: 14px; color: #fff; cursor: pointer; transition: all .2s; border: 2px solid transparent; }
.wingo-color-btn:hover { transform: translateY(-1px); }
.wingo-color-btn.disabled { opacity: 0.4; pointer-events: none; }
.btn-green-color { background: linear-gradient(135deg, #22c55e, #16a34a); }
.btn-violet-color { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.btn-red-color { background: linear-gradient(135deg, #ef4444, #dc2626); }

.wingo-numbers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
.wingo-num-btn { width: 100%; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff; cursor: pointer; transition: all .2s; border: 3px solid transparent; position: relative; }
.wingo-num-btn:hover { transform: scale(1.08); }
.wingo-num-btn.disabled { opacity: 0.4; pointer-events: none; }

.wingo-size-btns { display: flex; gap: 8px; margin-bottom: 8px; }
.wingo-size-btn { flex: 1; padding: 12px; border-radius: 10px; text-align: center; font-weight: 700; font-size: 14px; color: #fff; cursor: pointer; transition: all .2s; border: 2px solid transparent; }
.wingo-size-btn:hover { transform: translateY(-1px); }
.wingo-size-btn.disabled { opacity: 0.4; pointer-events: none; }
.btn-big { background: linear-gradient(135deg, #d4a04a, #b8860b); }
.btn-small { background: linear-gradient(135deg, #4a8fd4, #3b82f6); }

.wingo-mult-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.wingo-random-btn { padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #22c55e; background: transparent; border: 1px solid rgba(34,197,94,0.3); cursor: pointer; transition: all .2s; }
.wingo-random-btn:hover { background: rgba(34,197,94,0.1); }
.wingo-mult-btn { padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); cursor: pointer; transition: all .2s; border: 1px solid transparent; }
.wingo-mult-btn.active { background: #22c55e; color: #fff; border-color: #22c55e; }

/* Win Go Bet Modal */
.wingo-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; backdrop-filter: blur(6px); }
.wingo-modal { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: linear-gradient(180deg, #4a8fd4, #3b6ab5); border-radius: 20px 20px 0 0; padding: 0; overflow: hidden; }
.wingo-modal-header { padding: 18px 20px 12px; text-align: center; }
.wingo-modal-title { font-size: 17px; font-weight: 700; color: #fff; }
.wingo-modal-subtitle { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.wingo-modal-body { padding: 16px 20px; }
.wingo-amt-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.wingo-amt-chips { display: flex; gap: 8px; margin-bottom: 14px; }
.wingo-amt-chip { flex: 1; padding: 10px 4px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 14px; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); cursor: pointer; transition: all .2s; border: 1px solid transparent; }
.wingo-amt-chip.active { background: #ef4444; color: #fff; border-color: #ef4444; }
.wingo-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wingo-qty-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); min-width: 65px; }
.wingo-qty-ctrl { display: flex; align-items: center; gap: 0; flex: 1; justify-content: flex-end; }
.wingo-qty-btn { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; cursor: pointer; transition: all .2s; border: none; }
.wingo-qty-minus { background: #3b82f6; color: #fff; border-radius: 8px 0 0 8px; }
.wingo-qty-plus { background: #ef4444; color: #fff; border-radius: 0 8px 8px 0; }
.wingo-qty-val { width: 60px; height: 36px; text-align: center; font-size: 16px; font-weight: 700; color: #fff; background: rgba(255,255,255,0.1); border: none; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.wingo-mult-chips { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.wingo-mult-chip { padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); cursor: pointer; transition: all .2s; border: 1px solid transparent; }
.wingo-mult-chip.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.wingo-agree { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; color: rgba(255,255,255,0.7); }
.wingo-agree input { width: 18px; height: 18px; accent-color: #22c55e; }
.wingo-agree a { color: #60a5fa; }
.wingo-modal-footer { display: flex; gap: 0; }
.wingo-modal-footer button { flex: 1; padding: 16px; border: none; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s; }
.wingo-cancel-btn { background: rgba(0,0,0,0.2); color: rgba(255,255,255,0.7); }
.wingo-confirm-btn { background: #2563eb; color: #fff; }
.wingo-confirm-btn:hover { background: #1d4ed8; }

/* Win Go Result Popup */
.wingo-result-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 300; backdrop-filter: blur(6px); align-items: center; justify-content: center; }
.wingo-result-overlay.show { display: flex; }
.wingo-result-popup { width: 90%; max-width: 340px; border-radius: 20px; overflow: hidden; text-align: center; animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes popIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wingo-win-popup { background: linear-gradient(180deg, #2196F3, #1976D2); }
.wingo-loss-popup { background: linear-gradient(180deg, #5c6bc0, #e91e63); }
.wingo-result-badge { padding: 20px 20px 0; }
.wingo-result-badge img, .wingo-result-icon { width: 80px; height: 80px; }
.wingo-result-icon { font-size: 60px; line-height: 80px; }
.wingo-result-title { font-size: 22px; font-weight: 800; color: #fff; margin: 8px 0; }
.wingo-result-tags { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.wingo-result-tag { padding: 4px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,0.9); color: #333; }
.wingo-result-number { font-size: 36px; font-weight: 900; color: #fff; }
.wingo-result-amount { font-size: 28px; font-weight: 800; color: #fff; padding: 16px; background: rgba(255,255,255,0.15); margin: 12px 20px; border-radius: 12px; }
.wingo-result-close { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); background: transparent; color: #fff; font-size: 18px; cursor: pointer; margin: 12px auto 16px; display: flex; align-items: center; justify-content: center; }

/* Win Go History Table */
.wingo-history { margin: 8px 12px; }
.wingo-hist-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.wingo-hist-tab { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; border: 1px solid rgba(255,255,255,0.1); }
.wingo-hist-tab.active { background: rgba(37,99,235,0.2); color: #60a5fa; border-color: rgba(96,165,250,0.3); }
.wingo-hist-tab:not(.active) { color: rgba(255,255,255,0.4); background: transparent; }
.wingo-hist-table { width: 100%; border-collapse: collapse; }
.wingo-hist-table th { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 600; padding: 10px 6px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.06); }
.wingo-hist-table td { font-size: 13px; color: rgba(255,255,255,0.75); padding: 10px 6px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.04); font-variant-numeric: tabular-nums; }
.wingo-hist-number { font-weight: 700; font-size: 15px; }
.wingo-color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.wingo-color-dot.dot-red { background: #ef4444; }
.wingo-color-dot.dot-green { background: #22c55e; }
.wingo-color-dot.dot-violet { background: #8b5cf6; }

/* Win Go Closed State */
.wingo-closed-msg { text-align: center; padding: 20px; color: rgba(255,255,255,0.4); font-size: 14px; background: rgba(255,255,255,0.03); border-radius: 12px; margin: 8px 12px; border: 1px dashed rgba(255,255,255,0.1); }

/* Win Go number flip animation */
.wingo-flip-container { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.wingo-flip-digit { width: 70px; height: 90px; background: rgba(255,255,255,0.06); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 900; color: #60a5fa; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; position: relative; }
.wingo-flip-digit.flipping { animation: flipDigit 0.5s ease-in-out; }
@keyframes flipDigit {
    0% { transform: rotateX(0); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0); }
}

/* ==================== DRAW TIMER (compact) ==================== */
.draw-timer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); margin: 8px 16px; border-radius: 10px; color: #fff; }
.timer-label { font-size: 12px; opacity: 0.85; }
.timer-value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.timer-sub { font-size: 11px; opacity: 0.75; }

/* ==================== WINNER CARD (compact, next to timer) ==================== */
.winner-card { margin: 0 16px 8px; padding: 10px 16px; background: linear-gradient(135deg, #FEF3C7, #FDE68A); border: 1px solid #F59E0B; border-radius: 10px; text-align: center; }
.wc-label { font-size: 11px; color: #92400E; font-weight: 500; }
.wc-result { font-size: 18px; font-weight: 800; color: #92400E; }
.matka-result { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 16px; font-weight: 700; color: #92400E; }
.matka-pana { font-size: 13px; }
.matka-digit { font-size: 20px; color: #B45309; }
.matka-sep { font-size: 14px; color: #D97706; }

/* ==================== THREE BOX RESULT ==================== */
.three-box-result { display: flex; gap: 8px; justify-content: center; }
.box-result { padding: 6px 14px; border-radius: 8px; text-align: center; }
.box-label { font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.box-digits { font-size: 16px; font-weight: 800; letter-spacing: 3px; }
.box-a-result { background: #EDE9FE; color: #5B21B6; }
.box-b-result { background: #FEF3C7; color: #92400E; }
.box-c-result { background: #D1FAE5; color: #065F46; }

/* ==================== PLAY AREA ==================== */
.play-area { padding: 12px 16px; }

/* ==================== CARD ITEMS (Super Card) ==================== */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.card-item { padding: 10px 6px; border: 2px solid var(--border); border-radius: 10px; text-align: center; cursor: pointer; background: #fff; transition: all .2s; }
.card-item:hover { border-color: var(--primary); }
.card-item.selected { border-color: var(--primary); background: #EEF2FF; box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }
.card-item .rank { font-size: 18px; font-weight: 800; }
.card-item .suit { font-size: 14px; }
.card-item .card-label { font-size: 9px; color: var(--text2); margin-top: 2px; }
.card-item.hearts, .card-item.diamonds { color: #DC2626; }
.card-item.clubs, .card-item.spades { color: #1E293B; }

/* ==================== IMAGE ITEMS (Diya Titlee) ==================== */
.images-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.image-item { padding: 10px 4px; border: 2px solid var(--border); border-radius: 10px; text-align: center; cursor: pointer; background: #fff; transition: all .2s; }
.image-item:hover { border-color: var(--gold); }
.image-item.selected { border-color: var(--gold); background: #FFFBEB; box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }
.img-icon { font-size: 24px; }
.img-name { font-size: 10px; color: var(--text2); margin-top: 2px; }

/* ==================== BET SECTION ==================== */
.bet-section { margin-top: 12px; }
.bet-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.bet-type-btn { padding: 8px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; background: #fff; transition: all .2s; color: var(--text); }
.bet-type-btn:hover { border-color: var(--primary); }
.bet-type-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==================== BOX SELECTOR ==================== */
.box-selector { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.box-btn { padding: 10px 20px; border: 2px solid var(--border); border-radius: 10px; font-weight: 700; cursor: pointer; background: #fff; transition: all .2s; color: var(--text); }
.box-btn.selected { color: #fff; }
.box-a.selected { background: #7C3AED; border-color: #7C3AED; }
.box-b.selected { background: #D97706; border-color: #D97706; }
.box-c.selected { background: #059669; border-color: #059669; }

/* ==================== AMOUNT CHIPS ==================== */
.amount-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; cursor: pointer; background: #fff; transition: all .2s; color: var(--text); }
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==================== DIGIT INPUTS ==================== */
.pair-input, .digit-input { display: flex; gap: 8px; justify-content: center; }
.pair-input input, .digit-input input { width: 50px; height: 50px; text-align: center; font-size: 22px; font-weight: 700; border: 2px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); outline: none; }
.pair-input input:focus, .digit-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }

/* ==================== BUTTONS ==================== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #B45309; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #047857; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 5px; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: #fff; color: var(--text); outline: none; transition: border .2s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }

/* ==================== AUTH PAGES ==================== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #EEF2FF, #E0E7FF); }
.auth-box { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 32px; box-shadow: var(--shadow-md); }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo h1 { font-size: 24px; color: var(--primary); }
.auth-logo p { font-size: 14px; color: var(--text2); margin-top: 4px; }

/* ==================== WALLET ==================== */
.wallet-balance { text-align: center; padding: 24px 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); margin: 12px 16px; border-radius: var(--radius); color: #fff; }
.wb-label { font-size: 13px; opacity: 0.85; }
.wb-amount { font-size: 36px; font-weight: 800; margin-top: 4px; }
.wallet-actions { display: flex; gap: 10px; padding: 0 16px; margin-bottom: 12px; }
.wallet-actions .btn { flex: 1; }

/* ==================== TABS ==================== */
.tabs { display: flex; padding: 0 16px; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--text2); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: all .2s; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
a.tab { text-decoration: none; }

/* ==================== HISTORY ITEMS ==================== */
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.hi-left { flex: 1; }
.hi-game { font-weight: 600; font-size: 13px; color: var(--text); }
.hi-type { font-size: 12px; color: var(--text2); }
.hi-time { font-size: 11px; color: var(--text3); margin-top: 2px; }
.hi-right { text-align: right; }
.hi-amount { font-weight: 700; font-size: 14px; }
.hi-won { color: var(--green); }
.hi-lost { color: var(--red); }

/* ==================== BADGES ==================== */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-approved, .badge-won { background: #D1FAE5; color: #065F46; }
.badge-rejected, .badge-lost { background: #FEE2E2; color: #991B1B; }

/* ==================== RESULT TABLE ==================== */
.result-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.result-table th { text-align: left; padding: 8px; color: var(--text2); font-weight: 600; border-bottom: 2px solid var(--border); font-size: 12px; }
.result-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); }

/* ==================== FLASH MESSAGES ==================== */
.flash { padding: 10px 16px; margin: 8px 16px; border-radius: 8px; font-size: 13px; }
.flash-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.flash-danger { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.flash-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }

/* ==================== MODALS ==================== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; backdrop-filter: blur(4px); }
.modal { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-radius: 16px 16px 0 0; padding: 24px; max-height: 85vh; overflow-y: auto; }
.modal h3 { font-size: 18px; margin-bottom: 16px; color: var(--text); }

/* ==================== COPY BUTTON ==================== */
.copy-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.copy-btn { background: var(--primary); color: #fff; border: none; padding: 3px 10px; border-radius: 6px; font-size: 11px; cursor: pointer; font-weight: 600; }
.copy-btn:hover { background: var(--primary-dark); }
.copy-btn.copied { background: var(--green); }

/* ==================== ADMIN ==================== */
.admin-container { max-width: 960px; margin: 0 auto; padding: 16px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.admin-nav a { padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; background: #fff; color: var(--text2); border: 1px solid var(--border); transition: all .2s; position: relative; }
.admin-nav a.active, .admin-nav a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-badge { background: var(--primary); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.notif-dot { display: inline-block; width: 8px; height: 8px; background: var(--red); border-radius: 50%; margin-left: 4px; vertical-align: super; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: var(--shadow); }
.stat-label { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--text); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 10px 8px; color: var(--text2); font-weight: 600; border-bottom: 2px solid var(--border); font-size: 12px; background: #F8FAFC; }
.admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:hover { background: #F8FAFC; }

/* ==================== COLLAPSIBLE RESULTS ==================== */
.result-group { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; overflow: hidden; }
.result-group-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #F8FAFC; cursor: pointer; font-size: 13px; font-weight: 600; }
.result-group-header:hover { background: #F1F5F9; }
.result-group-body { display: none; padding: 8px 14px; border-top: 1px solid var(--border); }
.result-group.open .result-group-body { display: block; }
.result-group .toggle-icon { transition: transform .2s; font-size: 12px; }
.result-group.open .toggle-icon { transform: rotate(180deg); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
    .images-grid { grid-template-columns: repeat(5, 1fr); }
    .cards-grid { grid-template-columns: repeat(4, 1fr); }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
