/* ============================================================
   BetGame Theme — Dark Neon Sportsbook
   Phase 1 design system (Main / Login / Overview)
   All legacy element IDs & onclick handlers are preserved;
   this file only restyles. Load AFTER any legacy stylesheet.
   ============================================================ */

:root {
    --bg: #0a0e17;
    --bg-2: #070a12;
    --surface: #121826;
    --surface-2: #1a2233;
    --surface-3: #212c42;
    --line: #243049;
    --line-soft: #1b2436;

    --accent: #00e7a0;      /* neon green */
    --accent-2: #19c3ff;    /* neon blue  */
    --gold: #ffd45e;
    --danger: #ff4d5e;
    --warn: #ffb020;

    --text: #f6f9ff;     /* brighter near-white for better legibility */
    --muted: #b2bccd;    /* lifted secondary text */
    --muted-2: #7d899f;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;

    --glow-accent: 0 0 0 1px rgba(0,231,160,.35), 0 0 18px rgba(0,231,160,.45);
    --glow-blue: 0 0 0 1px rgba(25,195,255,.35), 0 0 18px rgba(25,195,255,.40);
    --shadow-card: 0 10px 30px rgba(0,0,0,.45);

    --font: 'Pretendard', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Nanum Square',
            'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-num: 'Rajdhani', 'Segoe UI', Tahoma, Verdana, sans-serif;
}

/* ---------- base ---------- */
.bg-app, body.bg-app {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(25,195,255,.10), transparent 60%),
        radial-gradient(1100px 700px at 95% 0%, rgba(0,231,160,.10), transparent 55%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font);
    font-weight: 500; /* slightly heavier base text for legibility */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

.bg-app::selection, .bg-app *::selection { background: rgba(0,231,160,.30); color: #fff; }

/* custom scrollbar */
.bg-app ::-webkit-scrollbar { width: 10px; height: 10px; }
.bg-app ::-webkit-scrollbar-track { background: var(--bg-2); }
.bg-app ::-webkit-scrollbar-thumb { background: #2a3650; border-radius: 8px; }
.bg-app ::-webkit-scrollbar-thumb:hover { background: #36456a; }

/* ---------- layout helpers ---------- */
.bg-shell { width: 1280px; margin: 0 auto; }
@media (max-width: 1300px) { .bg-shell { width: 1200px; } }

/* ---------- card ---------- */
.card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.card-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-weight: 800; letter-spacing: .3px;
}
.card-head .accent-bar {
    width: 4px; height: 18px; border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    box-shadow: var(--glow-accent);
}
.card-body { padding: 14px 18px; }

/* ---------- buttons ---------- */
.btn-neon, a.btn-neon, input.btn-neon, button.btn-neon {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #03121a; font-weight: 900; font-size: 15px; letter-spacing: .4px;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,231,160,.30);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-neon:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,231,160,.45); filter: brightness(1.06); }
.btn-neon:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    color: var(--text); font-weight: 700; cursor: pointer; text-decoration: none;
    transition: border-color .12s, background .12s, color .12s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,231,160,.06); }

.btn-danger {
    background: linear-gradient(135deg, #ff4d5e, #ff7a3d);
    color: #fff; border: none; border-radius: 10px; padding: 9px 16px;
    font-weight: 800; cursor: pointer;
}

/* ---------- inputs ---------- */
.field {
    width: 100%; box-sizing: border-box;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    padding: 14px 16px; font-size: 15px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--muted-2); }
.field:focus { border-color: var(--accent); box-shadow: var(--glow-accent); }

/* ---------- odds pill ---------- */
.odds {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 58px; padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0,231,160,.10);
    border: 1px solid rgba(0,231,160,.35);
    color: var(--accent);
    font-family: var(--font-num);
    font-weight: 800; font-size: 15px;
    box-shadow: inset 0 0 12px rgba(0,231,160,.12);
}

/* ---------- live dot ---------- */
.live-dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 0 rgba(255,77,94,.7);
    animation: live-pulse 1.6s infinite;
}
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,77,94,.7); }
    70%  { box-shadow: 0 0 0 8px rgba(255,77,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); }
}

/* ====== animations ====== */
@keyframes neon-sheen {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
