/* ============================================================
   public/css/style.css – COMPLETE
   Includes: base, topbar, lobby, aviator, limbo, jili aces,
   wheel, slots, roulette, coin flip, hi-lo, vampire, crystal,
   modals, chat, footer, responsive
   ============================================================ */

:root {
    --bg: #0a0c10;
    --bg-panel: #161b22;
    --bg-panel2: #1c222b;
    --bg-input: #0f1319;
    --border: #2a3340;
    --text: #e8ecf1;
    --text-muted: #7c8798;
    --gold: #f5a623;
    --gold-dim: rgba(245,166,35,0.15);
    --gold-glow: rgba(245,166,35,0.3);
    --neon-blue: #00d4ff;
    --neon-purple: #8a3ffc;
    --neon-green: #00e676;
    --neon-red: #ff3b4e;
    --red: #e63946;
    --red-dark: #7a1622;
    --green: #00c853;
    --green-dark: #0a8f3c;
    --purple: #8a3ffc;
    --shadow: 0 10px 40px rgba(0,0,0,0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s ease;
    --crimson: #e50914;
    --crimson-dark: #b00710;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Segoe UI', Roboto, sans-serif; overscroll-behavior: none; overflow-x: hidden; width: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 12px; }

/* ----- TOPBAR ----- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--bg-panel); border-radius: var(--radius); margin-bottom: 12px; flex-wrap: wrap; gap: 8px; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 70; border: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; cursor: pointer; color: var(--gold); text-shadow: 0 0 20px var(--gold-glow); letter-spacing: 0.5px; }
.brandLogo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; border: 1px solid var(--gold); background: #10151b; flex-shrink: 0; }
.topRight { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.whoami { display: flex; align-items: center; gap: 6px; background: var(--bg-panel2); border: 1px solid var(--border); padding: 4px 10px 4px 4px; border-radius: 30px; font-size: 12px; cursor: pointer; max-width: 130px; overflow: hidden; transition: var(--transition); }
.whoami:hover { border-color: var(--gold); }
.whoami span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.whoami .av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--neon-purple)); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.bdtBadge { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--gold-dim), rgba(138,63,252,0.15)); border: 1px solid rgba(245,166,35,0.3); padding: 6px 14px; border-radius: 30px; font-weight: 800; color: var(--gold); font-size: 13px; white-space: nowrap; text-shadow: 0 0 10px var(--gold-glow); }
.iconBtn { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-panel2); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; transition: var(--transition); }
.iconBtn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.iconBtn .badge { position: absolute; top: -4px; right: -4px; background: var(--neon-red); color: #fff; border-radius: 50%; font-size: 9px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 0 12px var(--neon-red); }

/* ----- SCREENS ----- */
.screen { display: none; animation: fadeUp 0.4s ease; }
.screen.active { display: block; }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

/* ----- LOBBY CARDS ----- */
.lobbyCard { background: var(--bg-panel); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.lobbyCard:hover { border-color: rgba(245,166,35,0.2); }
.lobbyCard h3 { margin: 0 0 12px; font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; }
.promoBanner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: center; background: linear-gradient(145deg, #1a1f2a, #11151c); border: 1px solid rgba(245,166,35,0.15); }
.promoBanner img { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.promoCopy h4 { margin: 0 0 8px; font-size: 26px; background: linear-gradient(135deg, var(--gold), var(--neon-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.promoCopy p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: 14px; }

/* ----- AUTH ----- */
.authCard { background: linear-gradient(145deg, #171d27, #11151c); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; overflow: hidden; }
.authHead { padding: 24px 24px 0; text-align: center; }
.authHead .logoCircle { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #a86a00); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 30px; box-shadow: 0 0 40px var(--gold-glow); }
.authHead h2 { margin: 0 0 4px; font-size: 20px; color: var(--text); }
.authHead p { margin: 0 0 16px; font-size: 13px; color: var(--text-muted); }
.authTabs { display: flex; background: #0d1117; border-top: 1px solid var(--border); }
.authTabs button { flex: 1; padding: 14px 0; border: none; background: transparent; color: var(--text-muted); font-weight: 700; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; transition: var(--transition); }
.authTabs button.active { color: var(--gold); border-bottom-color: var(--gold); background: var(--gold-dim); }
.authBody { padding: 24px; }
.authGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:520px) { .authGrid { grid-template-columns: 1fr; } }
.authField { display: grid; gap: 6px; position: relative; }
.authField label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.authField .inputWrap { position: relative; }
.authField .inputWrap i.fld-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.authField input, .authField select { background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: var(--radius-sm); padding: 12px 14px 12px 40px; font-size: 14px; width: 100%; transition: var(--transition); }
.authField select { padding-left: 14px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c8798' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.authField input:focus, .authField select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 20px var(--gold-glow); }
.authField .togglePw { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); cursor: pointer; font-size: 14px; background: none; border: none; }
.authSubmitBtn { width: 100%; padding: 14px 0; margin-top: 8px; border: none; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--gold), #b57a00); color: #111; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 4px 15px var(--gold-glow); transition: var(--transition); }
.authSubmitBtn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px var(--gold-glow); }
.authSubmitBtn:active { transform: translateY(2px); }
.authFootNote { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 14px; line-height: 1.6; }

/* ----- GAME GRID ----- */
.gameGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.gameCard { background: var(--bg-panel2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 10px; text-align: center; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.gameCard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--gold-dim), transparent); opacity: 0; transition: var(--transition); }
.gameCard:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 8px 30px rgba(245,166,35,0.15); }
.gameCard:hover::before { opacity: 1; }
.gameCard .icon { font-size: 32px; margin-bottom: 8px; position: relative; z-index: 1; }
.gameCard .title { font-weight: 800; font-size: 14px; margin-bottom: 4px; position: relative; z-index: 1; }
.gameCard .desc { font-size: 10px; color: var(--text-muted); position: relative; z-index: 1; }
.gameCard .pill { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 30px; background: var(--gold-dim); color: var(--gold); font-size: 9px; font-weight: 700; position: relative; z-index: 1; }
.gameCard.disabled { opacity: 0.4; filter: grayscale(0.5); cursor: not-allowed; transform: none !important; }

/* ----- RESPONSIVE ----- */
@media(max-width:768px) { .promoBanner { grid-template-columns: 1fr; text-align: center; } .promoBanner img { max-height: 160px; } .promoCopy h4 { font-size: 20px; } .topbar { padding: 8px 12px; } .brand { font-size: 14px; } .brandLogo { width: 32px; height: 32px; } .bdtBadge { font-size: 11px; padding: 4px 10px; } .iconBtn { width: 34px; height: 34px; font-size: 13px; } .lobbyCard { padding: 14px; } .gameGrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .gameCard { padding: 12px 8px; } .gameCard .icon { font-size: 26px; } .modalBox { padding: 16px; max-width: 95vw; } }
@media(max-width:480px) { .wrap { padding: 8px; } .topRight { gap: 4px; } .whoami { max-width: 80px; font-size: 10px; padding: 3px 6px 3px 3px; } .whoami .av { width: 22px; height: 22px; font-size: 11px; } .bdtBadge { font-size: 10px; padding: 3px 8px; } .iconBtn { width: 30px; height: 30px; font-size: 11px; } .authHead { padding: 16px 16px 0; } .authHead .logoCircle { width: 48px; height: 48px; font-size: 22px; } .authHead h2 { font-size: 17px; } .authBody { padding: 16px; } .gameGrid { grid-template-columns: repeat(2, 1fr); } }

/* ----- FOOTER ----- */
.footer { margin-top: 30px; padding: 30px 20px 16px; border-top: 1px solid var(--border); background: var(--bg-panel); border-radius: var(--radius); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-bottom: 20px; }
.footer-col h4 { color: var(--gold); font-size: 13px; margin-bottom: 10px; letter-spacing: 0.5px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 13px; text-decoration: none; padding: 4px 0; transition: var(--transition); cursor: pointer; }
.footer-col a:hover { color: var(--gold); padding-left: 6px; }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.footer-bottom .badge-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.footer-bottom .badge-row span { background: var(--bg-panel2); padding: 4px 12px; border-radius: 30px; font-size: 10px; border: 1px solid var(--border); }

/* ----- CHAT WIDGET ----- */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 100; }
.chat-toggle { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #b57a00); border: none; color: #111; font-size: 28px; cursor: pointer; box-shadow: 0 4px 25px var(--gold-glow); transition: var(--transition); display: flex; align-items: center; justify-content: center; position: relative; }
.chat-toggle:hover { transform: scale(1.05); box-shadow: 0 6px 35px var(--gold-glow); }
.chat-toggle .badge-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; background: var(--neon-green); border-radius: 50%; border: 2px solid var(--bg); animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.chat-box { position: absolute; bottom: 72px; right: 0; width: 380px; max-width: calc(100vw - 32px); max-height: 500px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden; animation: fadeUp 0.3s ease; }
.chat-box.open { display: flex; }
.chat-header { padding: 14px 18px; background: linear-gradient(135deg, var(--gold-dim), rgba(138,63,252,0.15)); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.chat-header h4 { font-size: 14px; color: var(--gold); margin: 0; }
.chat-header .close-chat { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.chat-messages { flex: 1; padding: 14px; overflow-y: auto; max-height: 320px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; animation: fadeUp 0.2s ease; }
.chat-msg.bot { background: var(--bg-panel2); border: 1px solid var(--border); align-self: flex-start; color: var(--text); }
.chat-msg.user { background: linear-gradient(135deg, var(--gold), #b57a00); color: #111; align-self: flex-end; }
.chat-msg .time { font-size: 9px; opacity: 0.6; margin-top: 4px; display: block; }
.chat-msg.typing { background: var(--bg-panel2); border: 1px solid var(--border); align-self: flex-start; padding: 12px 18px; font-style: italic; color: var(--text-muted); }
.chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg-panel2); }
.chat-input-row input { flex: 1; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-input); color: #fff; font-size: 13px; outline: none; transition: var(--transition); }
.chat-input-row input:focus { border-color: var(--gold); }
.chat-input-row button { padding: 10px 18px; border: none; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--gold), #b57a00); color: #111; font-weight: 700; cursor: pointer; transition: var(--transition); }
.chat-input-row button:hover { transform: scale(1.02); }
.chat-input-row button:disabled { opacity: 0.5; cursor: not-allowed; }
@media(max-width:480px) { .chat-box { width: calc(100vw - 32px); right: 0; bottom: 68px; max-height: 420px; } .chat-toggle { width: 50px; height: 50px; font-size: 22px; } }

/* ----- MODALS ----- */
.modalOverlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 90; padding: 16px; }
.modalOverlay.show { display: flex; animation: fadeUp 0.3s ease; }
.modalBox { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); }
.modalBox h3 { margin: 0 0 16px; font-size: 18px; color: var(--gold); }
.modalBox .closeModal { width: 100%; margin-top: 16px; padding: 12px; border: none; border-radius: var(--radius-sm); background: var(--bg-panel2); color: var(--text); font-weight: 700; cursor: pointer; transition: var(--transition); border: 1px solid var(--border); }
.modalBox .closeModal:hover { border-color: var(--gold); color: var(--gold); }

/* ----- TOAST ----- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bg-panel2); border: 1px solid var(--gold); color: #fff; padding: 12px 24px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; z-index: 200; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; max-width: 92vw; text-align: center; box-shadow: var(--shadow); }
.toast.show { opacity: 1; }
.toast.success { border-color: var(--green); background: #16261d; }
.toast.error { border-color: var(--neon-red); background: #29161a; }

/* ----- SHARED COMPONENTS ----- */
.profileRow { display: flex; gap: 10px; flex-wrap: wrap; }
.profileChip { background: var(--bg-panel2); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; display: flex; align-items: center; gap: 10px; min-width: 140px; }
.profileChip.active { border-color: var(--gold); box-shadow: 0 0 20px var(--gold-glow); }
.profileChip .av { font-size: 24px; }
.profileChip .info { display: flex; flex-direction: column; }
.profileChip .info .nm { font-weight: 700; font-size: 14px; }
.profileChip .info .bal { font-size: 12px; color: var(--gold); }
.profileChip.host .nm::after { content: " 👑"; }
.userPanel { background: var(--bg-panel2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-top: 8px; }
.userPanel .hostNote { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.historyList { display: grid; gap: 6px; max-height: 200px; overflow: auto; }
.historyItem { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.emptyNote { color: var(--text-muted); font-size: 13px; text-align: center; padding: 16px 0; }
.hostNote { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.6; }
.amountPad { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.amountChip { background: var(--bg-panel2); border: 1px solid var(--border); color: #fff; padding: 6px 14px; border-radius: 30px; font-size: 12px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.amountChip:hover { border-color: var(--gold); color: var(--gold); }
.amountChip.active { background: var(--gold); color: #111; border-color: var(--gold); }
.betBtn { width: 100%; padding: 14px 0; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 800; cursor: pointer; color: #fff; background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%); box-shadow: 0 4px 0 #06691f; transition: transform 0.05s; }
.betBtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #06691f; }
.betBtn.cancel { background: linear-gradient(180deg, #3a4453 0%, #232b36 100%); box-shadow: 0 4px 0 #10151c; }
.betBtn.cashout { background: linear-gradient(180deg, var(--gold) 0%, #b57a00 100%); box-shadow: 0 4px 0 #7a5300; }
.betBtn small { display: block; font-size: 11px; font-weight: 600; opacity: 0.85; }
.betBtn:disabled { opacity: 0.5; cursor: not-allowed; }
.homeBtnRow { margin-bottom: 10px; }
.homeBtn { background: var(--bg-panel2); border: 1px solid var(--border); color: var(--text); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.homeBtn:hover { border-color: var(--gold); color: var(--gold); }
.fairBadge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: var(--neon-green); cursor: pointer; background: rgba(0,0,0,0.35); padding: 4px 12px; border-radius: 30px; border: 1px solid rgba(0,230,118,0.2); }
.fairBadge:hover { border-color: var(--neon-green); }

/* ===== AVIATOR (Spribe-style) ===== */
.aviator-container { background: var(--bg-panel); border-radius: var(--radius); position: relative; border: 1px solid var(--border); overflow: hidden; }
.history { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; scrollbar-width: thin; border-bottom: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.hchip { flex: 0 0 auto; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.c-low { background: #22303f; color: #8fb6d9; }
.c-mid { background: #3a2557; color: #c9a2ff; }
.c-high { background: #4a2a12; color: #ffb85c; }
.canvasWrap { position: relative; width: 100%; height: 300px; background: radial-gradient(ellipse at 50% 100%, #1a0c10 0%, #0c0d10 70%); border-radius: var(--radius-sm) var(--radius-sm) 0 0; overflow: hidden; border-bottom: 1px solid var(--border); }
canvas { width: 100%; height: 100%; display: block; }
.status { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--neon-blue); letter-spacing: 0.5px; pointer-events: none; text-transform: uppercase; }
.multOverlay { position: absolute; top: 45%; left: 0; right: 0; text-align: center; transform: translateY(-50%); pointer-events: none; }
.multOverlay .num { font-size: clamp(36px, 10vw, 56px); font-weight: 900; color: #fff; text-shadow: 0 0 40px rgba(230,57,70,0.5); }
.multOverlay .num.crashed { color: var(--crimson); }
.multOverlay .sub { font-size: 14px; color: var(--crimson); font-weight: 700; margin-top: 2px; display: none; }
.multOverlay.crashedState .sub { display: block; }
.flash { position: absolute; inset: 0; background: var(--crimson); opacity: 0; pointer-events: none; }
.roundBadge { position: absolute; top: 10px; right: 12px; font-size: 10px; font-weight: 700; color: var(--text-muted); pointer-events: none; }
.betpanels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; background: var(--bg-panel2); }
@media(max-width:560px) { .betpanels { grid-template-columns: 1fr; } }
.panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.amtRow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.amtRow button { width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px; border: none; background: #26303c; color: #fff; font-size: 16px; cursor: pointer; transition: var(--transition); }
.amtRow button:hover { background: #2f3b49; }
.amtRow input[type=number] { flex: 1; min-width: 0; text-align: center; background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: 6px; padding: 6px 4px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.amtRow input[type=number]:focus { outline: none; border-color: var(--gold); }
input[type=range] { width: 100%; accent-color: var(--gold); margin-bottom: 8px; }
.quickRow { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.quickRow button { flex: 1; min-width: 40px; background: var(--bg-panel2); border: 1px solid var(--border); color: var(--text-muted); padding: 5px 0; border-radius: 6px; font-size: 11px; cursor: pointer; transition: var(--transition); }
.quickRow button:hover { border-color: var(--gold); color: var(--gold); }
.autoRow { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; gap: 6px; }
.autoRow label { display: flex; align-items: center; gap: 6px; }
.switch { position: relative; width: 36px; height: 20px; background: #2a3340; border-radius: 30px; cursor: pointer; flex-shrink: 0; transition: var(--transition); }
.switch.on { background: var(--green-dark); }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: left 0.15s; }
.switch.on .knob { left: 18px; }
.autoAmt { width: 52px; background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: 6px; padding: 3px 4px; text-align: center; font-size: 11px; }
.mock-users-section { padding: 8px 12px 12px; background: var(--bg-panel2); border-top: 1px solid var(--border); }
.mock-users-section .mock-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.mock-users-bar { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.mock-user { display: flex; align-items: center; gap: 4px; background: var(--bg-input); padding: 3px 8px; border-radius: 30px; font-size: 10px; border: 1px solid var(--border); white-space: nowrap; flex-shrink: 0; }
.mock-user .avatar { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--neon-purple)); display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #111; }
.mock-user .amount { color: var(--gold); font-weight: 700; }
.mock-user .target { color: var(--neon-blue); font-weight: 600; }
.mock-user.cashed { border-color: var(--green); background: rgba(0,200,83,0.1); }
.mock-user.cashed .amount { color: var(--green); }
.auto-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 8px 12px 12px; border-top: 1px solid var(--border); background: var(--bg-panel2); }
.auto-controls .control-group { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.auto-controls .control-group input { width: 60px; background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: 6px; padding: 4px 6px; font-size: 12px; text-align: center; }
.auto-controls .control-group input:focus { outline: none; border-color: var(--gold); }
.auto-status { font-size: 11px; color: var(--neon-green); font-weight: 700; }

/* ===== LIMBO (enhanced) ===== */
.limbo-container { background: var(--bg-panel); border-radius: var(--radius); position: relative; border: 1px solid var(--border); }
.limbo-history-wrap { padding: 8px 10px 0; }
.limboHistory { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; }
.limboHistory .hchip { flex: 0 0 auto; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.limboHistory .hchip.win { background: #0f3d2a; color: var(--green); }
.limboHistory .hchip.lose { background: #3d1820; color: var(--red); }
.limboStage { display: flex; flex-direction: column; align-items: center; padding: 16px 8px; gap: 12px; }
.limboDisplay { width: 100%; max-width: 420px; height: 130px; border-radius: var(--radius-sm); background: radial-gradient(ellipse at 50% 100%, #1a0c10 0%, #0c0d10 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; border: 1px solid var(--border); }
.limboNum { font-size: clamp(30px, 9vw, 52px); font-weight: 800; color: #fff; transition: color 0.2s; }
.limboNum.win { color: var(--green); }
.limboNum.lose { color: var(--red); }
.limboResultBadge { font-size: 13px; font-weight: 700; margin-top: 4px; min-height: 20px; }
.limboTargetRow { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.limboTargetRow input { width: 80px; background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: var(--radius-sm); padding: 6px 8px; text-align: center; }
.limbo-input-row { display: flex; gap: 10px; align-items: center; width: 100%; max-width: 400px; }
.limbo-input-row input { flex: 1; background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: var(--radius-sm); padding: 8px 10px; text-align: center; font-weight: 700; font-size: 14px; }
.limbo-input-row .betBtn { flex: 1; padding: 10px 0; }
.limboInfoGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; max-width: 400px; background: var(--bg-panel2); border-radius: var(--radius-sm); padding: 10px; margin: 4px 0; font-size: 13px; }
.limboInfoGrid div { display: flex; justify-content: space-between; }
.limboInfoGrid b { color: var(--gold); }

/* ===== JILI ACES ===== */
.jili-stage { display: flex; flex-direction: column; align-items: center; padding: 16px 8px; gap: 12px; }
.jili-reels { display: flex; gap: 14px; background: #0d1015; padding: 20px 24px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.jili-reel { width: 70px; height: 90px; background: var(--bg-panel2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; color: #fff; border: 2px solid var(--border); transition: all 0.1s; }
.jili-reel span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.jili-payline { font-size: 28px; margin: 6px 0; letter-spacing: 4px; }

/* ===== OTHER GAMES ===== */
.rouletteWheel { width: 200px; height: 200px; max-width: 70vw; max-height: 70vw; border-radius: 50%; background: conic-gradient(#e63946 0 18deg, #8a3ffc 18deg 36deg, #ffb100 36deg 54deg, #00c853 54deg 72deg, #22303f 72deg 90deg, #3a4453 90deg 108deg, #e63946 108deg 126deg, #8a3ffc 126deg 144deg, #ffb100 144deg 162deg, #00c853 162deg 180deg, #22303f 180deg 198deg, #3a4453 198deg 216deg, #e63946 216deg 234deg, #8a3ffc 234deg 252deg, #ffb100 252deg 270deg, #00c853 270deg 288deg, #22303f 288deg 306deg, #3a4453 306deg 324deg, #e63946 324deg 342deg, #8a3ffc 342deg 360deg); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.35); transition: transform 3.6s ease; }
.rouletteWheel .needle { font-size: 28px; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.5)); }
.coin { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(145deg, #fff, #d9d9d9); display: flex; align-items: center; justify-content: center; font-size: 44px; box-shadow: 0 16px 28px rgba(0,0,0,0.25); transition: transform 0.4s ease; }
.coin.heads { transform: rotateY(0deg); }
.coin.tails { transform: rotateY(180deg); }
.slotsResult { font-size: 16px; font-weight: 800; min-height: 28px; text-align: center; }
.payTable { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; background: rgba(0,0,0,0.3); padding: 12px; border-radius: var(--radius-sm); font-size: 11px; color: var(--text-muted); }
.payItem span { color: var(--gold); font-weight: 800; }
.cardBox { width: 90px; height: 126px; background: #fff; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,0.4); }
.cardBox.red { color: var(--red); }
.cardBox.black { color: #1a1a1a; }
.hiloRow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hiloRow button { padding: 12px 24px; border: none; border-radius: var(--radius-sm); font-weight: 800; cursor: pointer; font-size: 14px; color: #fff; transition: var(--transition); }
.hiloRow button:hover { transform: scale(1.02); }
.btnHigher { background: linear-gradient(180deg, var(--green), var(--green-dark)); }
.btnLower { background: linear-gradient(180deg, var(--red), var(--red-dark)); }
.potInfo { font-size: 14px; color: var(--text-muted); text-align: center; }
.potInfo b { color: var(--gold); }
.wheelStage { display: flex; flex-direction: column; align-items: center; padding: 16px 8px; gap: 12px; }
.wheelBox { position: relative; width: 240px; height: 240px; max-width: 75vw; max-height: 75vw; }
.wheelPointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 28px; z-index: 2; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)); }
svg#wheelSvg { width: 100%; height: 100%; transition: transform 4s cubic-bezier(0.15,0.75,0.2,1); }
.wheelResult { font-size: 16px; font-weight: 800; min-height: 28px; text-align: center; }
.slotsStage { display: flex; flex-direction: column; align-items: center; padding: 16px 8px; gap: 12px; }
.reels { display: flex; gap: 10px; background: #0d1015; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.reel { width: 64px; height: 64px; background: var(--bg-panel2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 34px; overflow: hidden; }
.reel svg { width: 36px; height: 36px; }

/* ===== ADMIN / DEPOSIT ===== */
.hostSection { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.hostSection:last-child { border-bottom: none; }
.hostSection h4 { margin: 0 0 8px; font-size: 13px; color: var(--gold); }
.hostRow { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.hostRow select, .hostRow input { background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: 6px; padding: 5px 6px; font-size: 12px; }
.hostRow button { background: var(--purple); border: none; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.settingsGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media(max-width:520px) { .settingsGrid { grid-template-columns: 1fr; } }
.toggleRow { display: flex; align-items: center; justify-content: space-between; background: var(--bg-panel2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; gap: 8px; }
.toggleRow span { font-size: 12px; font-weight: 700; }
.bigSwitch { position: relative; width: 44px; height: 24px; background: #2a3340; border-radius: 20px; cursor: pointer; flex-shrink: 0; }
.bigSwitch.on { background: var(--green-dark); }
.bigSwitch .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: left 0.15s; }
.bigSwitch.on .knob { left: 23px; }
.saveSettingsBtn { width: 100%; padding: 12px 0; margin-top: 12px; border: none; border-radius: 8px; background: linear-gradient(180deg, var(--gold) 0%, #b57a00 100%); color: #111; font-weight: 800; font-size: 14px; cursor: pointer; }
.reqRow { background: var(--bg-panel2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 12px; }
.reqRow .top { display: flex; justify-content: space-between; margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
.reqRow .btns { display: flex; gap: 6px; }
.reqRow .btns button { flex: 1; border: none; padding: 6px 0; border-radius: 6px; font-weight: 700; font-size: 11px; cursor: pointer; color: #fff; }
.approveBtn { background: var(--green-dark); }
.denyBtn { background: var(--red-dark); }
.adminOverview { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px,1fr)); gap: 6px; margin-bottom: 14px; }
.adminOverview .ov { background: var(--bg-panel2); border: 1px solid var(--border); border-radius: 10px; padding: 8px; text-align: center; }
.adminOverview .ov .n { font-size: 16px; font-weight: 800; color: var(--gold); }
.adminOverview .ov .l { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }
.adminSearch { width: 100%; background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: 10px; padding: 11px 14px; font-size: 13px; margin-bottom: 10px; }
.plyRow { display: flex; align-items: stretch; flex-direction: column; background: var(--bg-panel2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 8px; font-size: 12px; gap: 6px; }
.plyRow .nm { font-weight: 700; font-size: 13px; }
.plyRow .bal { color: var(--gold); font-weight: 800; font-size: 14px; }
.plyRow .btns { display: flex; gap: 5px; flex-wrap: wrap; }
.plyRow .btns button { background: #26303c; border: 1px solid var(--border); color: #fff; min-width: 36px; height: 32px; padding: 0 8px; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 700; }
.plyRow .btns button:hover { background: #2f3b49; }
.plyRow .btns button.danger { background: var(--red-dark); }
.plyRow .btns button.danger:hover { background: #8c1a29; }
.plyRow .btns button.ok { background: var(--green-dark); }
.plyRow .btns button.ok:hover { background: #0c9e42; }
.plyRow .customAdj { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.plyRow .customAdj input { width: 64px; background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: 8px; padding: 8px 6px; font-size: 12px; text-align: center; }

/* ===== DEPOSIT/WITHDRAW ===== */
.payMethodGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 10px; }
.methodCard { background: var(--bg-panel2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; color: var(--text-muted); cursor: pointer; font-size: 11px; transition: var(--transition); }
.methodCard.active { border-color: var(--gold); color: #fff; box-shadow: inset 0 0 0 1px rgba(245,166,35,0.2); }
.guideBox { background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 10px 0; display: grid; gap: 8px; }
.guideStep { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--text-muted); }
.guideStep b { color: #fff; min-width: 24px; }
.depTabs { display: flex; gap: 6px; margin-bottom: 12px; }
.depTabs button { flex: 1; background: var(--bg-panel2); border: none; color: var(--text-muted); padding: 8px 0; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--transition); }
.depTabs button.active { background: #2d3846; color: #fff; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--text-muted); }
.field input, .field select { background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: 8px; padding: 9px 10px; font-size: 13px; width: 100%; }
.splitStack { display: grid; gap: 10px; }

/* ===== NOTIFICATIONS ===== */
.notifActions { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.notifActions button { background: var(--bg-panel2); border: 1px solid var(--border); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; flex: 1; transition: var(--transition); }
.notifActions button:hover { background: #2a3340; }
.notifActions .deleteAll { background: var(--red-dark); border-color: var(--red); }
.notifActions .markAllRead { background: var(--green-dark); border-color: var(--green); }
.notifItem { background: var(--bg-panel2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px; }
.notifItem .time { color: var(--text-muted); font-size: 10px; }
.notifItem .badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; margin-right: 6px; }
.notifItem .badge.admin { background: var(--purple); color: #fff; }
.notifItem .badge.user { background: var(--gold); color: #111; }
.notifItem .msg { flex: 1 1 100%; margin: 2px 0; }
.verifyBanner { background: rgba(245,166,35,0.12); border: 1px solid rgba(245,166,35,0.3); color: var(--gold); font-size: 12px; padding: 10px 12px; border-radius: 10px; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.verifyBanner button { background: var(--gold); border: none; color: #111; font-weight: 800; padding: 6px 12px; border-radius: 8px; font-size: 11px; cursor: pointer; }
.verifyBanner button.hidden { display: none; }
.otpBox { display: flex; gap: 8px; align-items: center; }
.otpBox input { flex: 1; text-align: center; letter-spacing: 6px; font-size: 18px; font-weight: 800; background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: 8px; padding: 10px; }
.rigTag { display: inline-block; background: #3a2557; color: #c9a2ff; font-size: 10px; padding: 2px 6px; border-radius: 5px; margin-left: 6px; }
.adminBadge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(0,200,83,0.12); color: var(--green); font-size: 11px; font-weight: 800; border: 1px solid rgba(0,200,83,0.2); margin-bottom: 8px; }

/* ===== BONUS INDICATOR ===== */
.bonus-indicator { background: linear-gradient(135deg, var(--gold-dim), rgba(138,63,252,0.15)); border: 1px solid var(--gold); border-radius: 30px; padding: 4px 12px; font-size: 11px; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: var(--transition); }
.bonus-indicator:hover { border-color: var(--gold); box-shadow: 0 0 20px var(--gold-glow); }
.bonus-indicator i { font-size: 12px; }

/* ===== FOOTER PAGE MODALS ===== */
.footer-page-content { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.footer-page-content h4 { color: var(--gold); margin: 16px 0 8px; font-size: 16px; }
.footer-page-content p { margin-bottom: 10px; }
.footer-page-content .coming-soon { text-align: center; padding: 30px 0; color: var(--text-muted); font-size: 16px; }
.footer-page-content .coming-soon i { font-size: 48px; color: var(--gold); display: block; margin-bottom: 16px; }

/* ===== BALANCE SWITCH ===== */
.balance-switch { display: flex; align-items: center; gap: 8px; background: var(--bg-panel2); border: 1px solid var(--border); border-radius: 30px; padding: 2px; }
.balance-switch button { background: transparent; border: none; color: var(--text-muted); padding: 4px 12px; border-radius: 30px; font-size: 11px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.balance-switch button.active { background: var(--gold); color: #111; box-shadow: 0 0 15px var(--gold-glow); }
.balance-switch button:hover:not(.active) { color: var(--text); }

/* ===== FAIR LOG STYLES ===== */
.fairLogItem { background: var(--bg-panel2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 6px; font-size: 11px; word-break: break-all; }
.fairLogItem .row { display: flex; justify-content: space-between; margin-bottom: 2px; }
.fairLogItem .row span { color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width:600px) {
    .canvasWrap { height: 210px; }
    .wheelBox { width: 200px; height: 200px; }
    .rouletteWheel { width: 170px; height: 170px; }
    .coin { width: 80px; height: 80px; font-size: 36px; }
    .cardBox { width: 78px; height: 108px; font-size: 30px; }
    .reel { width: 52px; height: 52px; }
    .reel svg { width: 28px; height: 28px; }
    .jili-reels { padding: 14px 16px; }
    .jili-reel { width: 56px; height: 72px; font-size: 32px; }
    .roulette-board { grid-template-columns: 28px repeat(12,minmax(22px,1fr)) 28px !important; grid-template-rows: repeat(5,28px) !important; font-size: 9px !important; }
    .casino-chip { width: 32px !important; height: 32px !important; font-size: 10px !important; }
    .modalBox { padding: 16px; max-width: 95vw; }
    .auto-controls .control-group input { width: 50px; font-size: 10px; }
    .balance-switch button { font-size: 10px; padding: 3px 8px; }
    .limboInfoGrid { grid-template-columns: 1fr; }
    .limbo-input-row { flex-direction: column; }
}
@media (max-width:380px) {
    .topRight { gap: 3px; }
    .iconBtn { width: 28px; height: 28px; font-size: 11px; }
    .bdtBadge { font-size: 9px; padding: 2px 6px; }
    .whoami { max-width: 70px; font-size: 9px; }
    .whoami .av { width: 20px; height: 20px; font-size: 10px; }
    .balance-switch button { font-size: 8px; padding: 2px 6px; }
}
