/* ============================================
   MARCH MADNESS WITH SETH — NBA JAM RETRO THEME
   ============================================ */

:root {
    --bg-dark: #0a0a1a;
    --bg-card: #12122a;
    --bg-card-hover: #1a1a3a;
    --bg-input: #0d0d20;
    --border: #2a2a5a;
    --border-glow: #4a4aff;

    --fire-orange: #ff6b35;
    --fire-red: #ff2d2d;
    --fire-yellow: #ffd700;
    --neon-blue: #00d4ff;
    --neon-green: #00ff41;
    --neon-pink: #ff00ff;

    --text-primary: #ffffff;
    --text-secondary: #8888cc;
    --text-muted: #555588;

    --win: #00ff41;
    --loss: #ff2d2d;
    --push: #ffd700;
    --pending: #00d4ff;

    --font-pixel: 'Press Start 2P', monospace;
    --font-body: 'Press Start 2P', monospace;

    --radius: 4px;
    --shadow-glow: 0 0 20px rgba(74, 74, 255, 0.3);
    --shadow-fire: 0 0 30px rgba(255, 107, 53, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.2rem;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.8;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(74, 74, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 107, 53, 0.06) 0%, transparent 50%);
}

/* Scanline overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ---- NAVBAR ---- */
.navbar {
    background: linear-gradient(180deg, #1a0a2e 0%, #0a0a1a 100%);
    border-bottom: 3px solid var(--fire-orange);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(255, 107, 53, 0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-logo {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    color: var(--fire-orange);
    text-decoration: none;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.8), 0 0 40px rgba(255, 107, 53, 0.4);
    white-space: nowrap;
    animation: fireGlow 2s ease-in-out infinite alternate;
}

@keyframes fireGlow {
    from { text-shadow: 0 0 20px rgba(255, 107, 53, 0.8), 0 0 40px rgba(255, 107, 53, 0.4); }
    to { text-shadow: 0 0 30px rgba(255, 45, 45, 0.9), 0 0 60px rgba(255, 107, 53, 0.6), 0 0 80px rgba(255, 215, 0, 0.3); }
}

.fire { animation: fireFlicker 0.5s ease-in-out infinite alternate; }
@keyframes fireFlicker {
    from { opacity: 1; }
    to { opacity: 0.7; }
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.nav-link {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-admin { color: var(--fire-yellow); }
.nav-admin:hover, .nav-admin.active {
    color: var(--fire-yellow);
    border-color: var(--fire-yellow);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.user-name {
    color: var(--neon-green);
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.logout { color: var(--text-muted) !important; font-size: 0.9rem; }

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius);
}

/* ---- CONTENT ---- */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 160px);
}

/* ---- FOOTER ---- */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
}

.footer-inner {
    animation: fireGlow 3s ease-in-out infinite alternate;
    color: var(--fire-orange);
}

/* ---- FLASH MESSAGES ---- */
.flash-container { margin-bottom: 2rem; }

.flash {
    font-size: 1.1rem;
    padding: 1.2rem 1.6rem;
    border: 2px solid;
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.flash-success { border-color: var(--win); background: rgba(0, 255, 65, 0.1); }
.flash-danger { border-color: var(--loss); background: rgba(255, 45, 45, 0.1); }
.flash-info { border-color: var(--neon-blue); background: rgba(0, 212, 255, 0.1); }

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    font-family: var(--font-body);
}

/* ---- PAGE HEADERS ---- */
.page-header {
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: var(--font-pixel);
    font-size: 2.4rem;
    color: var(--fire-orange);
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    margin-bottom: 0.5rem;
}

.event-name {
    font-size: 1.2rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.back-link {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.back-link:hover { color: var(--neon-blue); }

/* ---- CARDS ---- */
.card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-glow);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* ---- BUTTONS ---- */
.btn {
    font-family: var(--font-pixel);
    font-size: 1rem;
    padding: 1rem 2rem;
    border: 2px solid;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.4;
}

.btn-fire {
    background: linear-gradient(180deg, var(--fire-orange) 0%, var(--fire-red) 100%);
    border-color: var(--fire-yellow);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: var(--shadow-fire);
}

.btn-fire:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.btn-refresh {
    background: transparent;
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.btn-refresh:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-cancel {
    background: transparent;
    border-color: var(--loss);
    color: var(--loss);
}

.btn-cancel:hover {
    background: rgba(255, 45, 45, 0.1);
}

.btn-bet {
    background: linear-gradient(180deg, var(--neon-green) 0%, #00cc33 100%);
    border-color: var(--neon-green);
    color: #000;
    font-weight: bold;
}

.btn-bet:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
    transform: translateY(-1px);
}

.btn-bet:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.btn-small {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.btn-full { width: 100%; }

/* ---- FORMS ---- */
.form-group {
    margin-bottom: 1.6rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    color: var(--neon-blue);
    margin-bottom: 0.6rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.1rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.form-help {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: var(--fire-orange);
}

/* ---- CREDITS BAR ---- */
.credits-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 2px solid var(--fire-yellow);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.credits-bar.compact { padding: 1rem 1.5rem; }

.credit-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.credit-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.credit-value {
    font-size: 1.6rem;
    color: var(--fire-yellow);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.credit-value.action { color: var(--neon-blue); }
.credit-value.available { color: var(--neon-green); }

.refresh-status {
    font-size: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* ---- GAMES GRID ---- */
.section-title {
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    display: block;
}

.game-card.upcoming:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.game-card.live {
    border-color: var(--fire-red);
    box-shadow: 0 0 20px rgba(255, 45, 45, 0.2);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 45, 45, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 45, 45, 0.4); }
}

.game-card.completed {
    border-color: var(--text-muted);
    opacity: 0.7;
}

.game-time {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.live-badge {
    color: var(--fire-red) !important;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.game-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.team {
    font-size: 1.1rem;
}

.team.winner { color: var(--neon-green); text-shadow: 0 0 10px rgba(0, 255, 65, 0.3); }

.score {
    font-size: 1.4rem;
    color: var(--fire-yellow);
    margin-left: 0.5rem;
}

.vs {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.vs-small { color: var(--text-muted); font-size: 0.8em; }

.game-odds-preview {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.odd-chip {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: var(--radius);
    color: var(--neon-blue);
}

.odd-chip.spread {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--fire-yellow);
    color: var(--fire-yellow);
}

.odd-chip.total {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.no-odds {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.your-action {
    font-size: 0.9rem;
    color: #ff69b4;
    font-weight: bold;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

/* ---- PLACE BET PAGE ---- */
.game-time-detail {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.locked-banner {
    text-align: center;
    border-color: var(--fire-red);
    background: rgba(255, 45, 45, 0.1);
}

.locked-banner p { font-size: 1.4rem; }

.final-score {
    font-size: 1.6rem;
    color: var(--fire-yellow);
    margin-top: 1rem;
}

.stale-warning {
    border: 2px solid var(--fire-orange);
    background: rgba(255, 107, 53, 0.12);
    text-align: center;
    padding: 1.5rem;
    font-size: 1.15rem;
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: var(--fire-orange); box-shadow: 0 0 8px rgba(255,107,53,0.3); }
    50% { border-color: var(--fire-yellow); box-shadow: 0 0 16px rgba(255,215,0,0.4); }
}

/* ---- MATCHUP BOARD (two-column bet layout) ---- */
.matchup-board {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-glow);
}

.board-header {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    background: linear-gradient(180deg, #1a0a2e 0%, var(--bg-card) 100%);
    border-bottom: 2px solid var(--fire-orange);
}

.board-header .board-col-away,
.board-header .board-col-home {
    padding: 1.4rem 1.5rem;
    font-size: 1.3rem;
    color: var(--fire-orange);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.board-header .board-col-away { text-align: right; padding-right: 2rem; }
.board-header .board-col-home { text-align: left; padding-left: 2rem; }

.board-header .board-col-market {
    padding: 1.4rem 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.board-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.board-row:last-child { border-bottom: none; }

.board-col-away {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.board-col-home {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.board-col-market {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0.5rem;
}

.board-bet-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: nowrap;
}

.board-col-away .board-bet-card {
    flex-direction: row-reverse;
    text-align: right;
}

.board-line {
    font-size: 1.2rem;
    color: var(--fire-yellow);
    white-space: nowrap;
}

.board-odds {
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
}

.board-odds.plus { color: var(--neon-green); }
.board-odds.minus { color: var(--fire-orange); }

.board-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.board-row + .board-row {
    border-top: 2px solid rgba(255, 107, 53, 0.15);
}

.matchup-board.board-stale {
    opacity: 0.35;
    pointer-events: none;
    position: relative;
}

.matchup-board.board-stale::after {
    content: "REFRESH ODDS TO BET";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--fire-orange);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
    letter-spacing: 0.15em;
    pointer-events: none;
}

/* Legacy styles kept for other pages */
.odds-section { display: grid; gap: 2rem; }
.odds-card { border-color: var(--neon-blue); }
.odds-title { font-size: 1.2rem; color: var(--neon-blue); margin-bottom: 1.5rem; }
.bet-team { font-size: 1.1rem; }
.bet-point { color: var(--fire-yellow); }

.bet-odds {
    font-size: 1.3rem;
    font-weight: bold;
    min-width: 6rem;
    text-align: center;
}

.bet-odds.plus { color: var(--neon-green); }
.bet-odds.minus { color: var(--fire-orange); }

.bet-input-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.bet-amount {
    font-family: var(--font-body);
    font-size: 1.1rem;
    padding: 0.6rem;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--fire-yellow);
    width: 120px;
    text-align: center;
}

.bet-amount:focus {
    border-color: var(--fire-yellow);
    outline: none;
}

.payout-preview {
    font-size: 0.8rem;
    color: var(--neon-green);
    text-align: center;
    display: none;
}

/* ---- BETS LIST ---- */
.bets-section { margin-bottom: 3rem; }

.bets-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bet-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
}

.bet-row.won { border-left: 4px solid var(--win); }
.bet-row.lost { border-left: 4px solid var(--loss); }
.bet-row.push { border-left: 4px solid var(--push); }
.bet-row.pending { border-left: 4px solid var(--pending); }

.bet-game-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    width: 100%;
}

.bet-game-time {
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.bet-info {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex: 1;
}

.bet-desc { font-size: 1.1rem; }

.bet-odds-display {
    font-size: 1rem;
    color: var(--text-muted);
}

.bet-amounts {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.bet-risk { font-size: 1rem; }
.bet-win { font-size: 0.9rem; color: var(--neon-green); }

.won-amount { color: var(--win); font-weight: bold; }
.lost-amount { color: var(--loss); font-weight: bold; }

.bet-status-badge {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius);
}

.bet-status-badge.won { color: var(--win); border: 1px solid var(--win); }
.bet-status-badge.lost { color: var(--loss); border: 1px solid var(--loss); }
.bet-status-badge.push { color: var(--push); border: 1px solid var(--push); }
.bet-status-badge.pending { color: var(--pending); border: 1px solid var(--pending); }

/* ---- STATS GRID ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-card.highlight {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.stat-value {
    font-size: 2rem;
    color: var(--fire-yellow);
    margin-bottom: 0.5rem;
}

.stat-value.positive { color: var(--neon-green); }
.stat-value.negative { color: var(--fire-red); }

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- STANDINGS TABLE ---- */
.standings-table-wrap {
    overflow-x: auto;
    margin-bottom: 3rem;
}

.standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.4rem;
}

.standings-table th {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.standings-table td {
    padding: 1rem;
    background: var(--bg-card);
    font-size: 1rem;
}

.standings-table tr td:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.standings-table tr td:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.standings-table tr.current-user td {
    border-top: 2px solid var(--neon-blue);
    border-bottom: 2px solid var(--neon-blue);
    background: rgba(0, 212, 255, 0.08);
}

.standings-table tr.current-user td:first-child { border-left: 2px solid var(--neon-blue); }
.standings-table tr.current-user td:last-child { border-right: 2px solid var(--neon-blue); }

.standings-table tr.first-place td {
    border-top: 2px solid var(--fire-yellow);
    border-bottom: 2px solid var(--fire-yellow);
}

.rank-col { width: 50px; text-align: center; }
.player-col { min-width: 150px; }

.rank-badge {
    font-size: 1.4rem;
}

.rank-badge.gold { text-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }

.player-name {
    font-size: 1.1rem;
    display: inline;
}

.you-badge {
    font-size: 0.7rem;
    background: var(--neon-blue);
    color: #000;
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.fire-badge { margin-left: 0.3rem; }

.credits-col .big-number {
    font-size: 1.4rem;
    color: var(--fire-yellow);
}

.action-amount { color: var(--neon-blue); }
.action-detail { font-size: 0.8rem; color: var(--text-muted); display: block; }
.no-action { color: var(--text-muted); }

.positive { color: var(--neon-green); }
.negative { color: var(--fire-red); }

/* ---- RIVALS ---- */
.rivals-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.rival-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rivals-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rival-game-card {
    border-color: var(--border);
}

.rival-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.rival-game-header h3 {
    font-size: 1.2rem;
}

.game-status-badge {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius);
}

.game-status-badge.completed { color: var(--text-muted); border: 1px solid var(--text-muted); }
.game-status-badge.live { color: var(--fire-red); border: 1px solid var(--fire-red); }

.rival-bets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rival-player-bets {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.rival-player-bets.is-you { border-color: var(--neon-blue); }

.rival-player-name {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.rival-bet {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.rival-bet-desc { flex: 1; }
.rival-bet-amount { color: var(--fire-yellow); }
.rival-bet-result.won { color: var(--win); }
.rival-bet-result.lost { color: var(--loss); }
.rival-bet-result.push { color: var(--push); }

/* ---- RIVAL COMPARISON ---- */
.rival-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.rival-col-header {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid;
}

.you-header { border-color: var(--neon-blue); color: var(--neon-blue); }
.rival-header { border-color: var(--fire-orange); color: var(--fire-orange); }

.empty-rival {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ---- LOGIN PAGE ---- */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at center, rgba(255, 107, 53, 0.15) 0%, transparent 60%),
        var(--bg-dark);
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 3rem;
}

.login-title {
    text-align: center;
    margin-bottom: 3rem;
}

.login-title h1 {
    font-family: var(--font-pixel);
    font-size: 3rem;
    color: var(--fire-orange);
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.8), 0 0 80px rgba(255, 107, 53, 0.4);
    animation: fireGlow 2s ease-in-out infinite alternate;
    line-height: 1.4;
}

.fire-row {
    font-size: 2rem;
    margin: 0.5rem 0;
    letter-spacing: 1rem;
}

.tagline {
    font-size: 0.9rem;
    color: var(--neon-blue);
    margin-top: 1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.login-form {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-glow);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-footer a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
}

.login-footer a:hover { color: var(--neon-blue); }

/* ---- ADMIN ---- */
.admin-actions {
    margin-bottom: 2rem;
}

.admin-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-sections {
    display: grid;
    gap: 2rem;
}

.admin-list {
    margin-top: 1rem;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.item-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.active-badge {
    font-size: 0.8rem;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 0.1rem 0.5rem;
    border-radius: 2px;
}

.admin-badge {
    font-size: 0.7rem;
    color: var(--fire-yellow);
    border: 1px solid var(--fire-yellow);
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
}

.active-event { background: rgba(0, 255, 65, 0.05); }

/* Admin games */
.games-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-admin-card { padding: 1.5rem; }

.game-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-admin-teams strong { font-size: 1.1rem; }
.game-admin-teams .game-time { display: block; font-size: 0.9rem; color: var(--text-muted); }

.status-badge {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius);
    border: 1px solid;
}

.status-badge.upcoming { color: var(--neon-blue); border-color: var(--neon-blue); }
.status-badge.live { color: var(--fire-red); border-color: var(--fire-red); }
.status-badge.completed { color: var(--text-muted); border-color: var(--text-muted); }

.game-admin-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.score-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-input {
    font-family: var(--font-body);
    font-size: 1rem;
    width: 70px;
    padding: 0.5rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--fire-yellow);
    text-align: center;
}

.score-dash { color: var(--text-muted); }

/* Admin user cards */
.admin-user-card { padding: 1.5rem; }

.user-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.user-card-header h3 { font-size: 1.1rem; }

.username-tag {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.user-credits {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.user-admin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-dropdown {
    position: relative;
}

.admin-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.admin-dropdown summary::-webkit-details-marker { display: none; }

.dropdown-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dropdown-form input {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    width: 140px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    html { font-size: 9px; }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
    }

    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .nav-user { display: none; }
    .nav-logo { font-size: 0.85rem; }

    .page-header h1 { font-size: 1.8rem; }

    .credits-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .bet-option {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .board-header,
    .board-row {
        grid-template-columns: 1fr 60px 1fr;
    }

    .board-col-away, .board-col-home { padding: 0.6rem 0.8rem; }
    .board-col-market { font-size: 0.8rem; }
    .board-bet-card { gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
    .board-col-away .board-bet-card { justify-content: center; flex-direction: row; }
    .board-odds { font-size: 1rem; }
    .board-line { font-size: 1rem; }

    .board-header .board-col-away,
    .board-header .board-col-home {
        font-size: 1.1rem;
        text-align: center;
        padding: 1rem 0.5rem;
    }

    .bet-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .rival-comparison {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hide-mobile { display: none; }

    .standings-table { font-size: 0.9rem; }
    .standings-table td, .standings-table th { padding: 0.6rem 0.5rem; }
}

@media (max-width: 480px) {
    .login-title h1 { font-size: 2.4rem; }
    .content { padding: 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- UNIFIED BET SLIP (games page) ---- */
.slip-page {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.slip-game-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.slip-game-card.has-pick {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
}

.slip-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.slip-matchup {
    font-size: 1.05rem;
    color: var(--fire-orange);
}

.slip-game-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slip-odds-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.slip-odds-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-top: 1px solid rgba(42, 42, 90, 0.5);
}

.slip-odds-row:first-child { border-top: none; }

.slip-odds-row.row-ml {
    background: rgba(0, 212, 255, 0.04);
}

.slip-odds-row.row-spread {
    background: rgba(255, 215, 0, 0.04);
}

.slip-odds-row.row-total {
    background: rgba(0, 255, 65, 0.04);
}

.slip-row-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 70px;
    white-space: nowrap;
}

.slip-row-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.slip-option {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.slip-option-inner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.row-ml .slip-option-inner {
    border-color: rgba(0, 212, 255, 0.2);
}

.row-spread .slip-option-inner {
    border-color: rgba(255, 215, 0, 0.2);
}

.row-total .slip-option-inner {
    border-color: rgba(0, 255, 65, 0.2);
}

.slip-option.selected .slip-option-inner {
    border-color: var(--neon-green);
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
}

.slip-option:hover .slip-option-inner {
    border-color: var(--text-secondary);
}

.slip-pick { color: var(--text-primary); }

.slip-odds {
    font-weight: bold;
}

.slip-odds.plus { color: var(--neon-green); }
.slip-odds.minus { color: var(--fire-orange); }

.slip-clear-game {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Bet slip sidebar */
.bet-slip-wrap {
    position: sticky;
    top: 80px;
}

.bet-slip {
    background: var(--bg-card);
    border: 2px solid var(--fire-orange);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.15);
}

.bet-slip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bet-slip-title {
    color: var(--fire-orange);
    font-size: 1.1rem;
}

.btn-slip-clear {
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-slip-clear:hover {
    border-color: var(--loss);
    color: var(--loss);
}

.slip-leg-row {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.slip-leg-row:last-child { border-bottom: none; }

.slip-leg-game {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.slip-leg-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bet-slip-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
}

.slip-type-badge {
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.slip-type-badge.straight-type {
    background: rgba(0, 212, 255, 0.15);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

.slip-type-badge.parlay-type {
    background: rgba(255, 215, 0, 0.15);
    color: var(--fire-yellow);
    border: 1px solid var(--fire-yellow);
}

.slip-stale-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--fire-orange);
    background: transparent;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--fire-orange);
    border-radius: var(--radius);
    cursor: pointer;
    animation: pulse-border 2s ease-in-out infinite;
    transition: background 0.15s;
}

.slip-stale-btn:hover {
    background: rgba(255, 107, 53, 0.15);
}

.parlay-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.parlay-stat .plus { color: var(--neon-green); font-weight: bold; }
.parlay-stat .minus { color: var(--fire-orange); font-weight: bold; }

.payout-row {
    font-size: 1.1rem;
    color: var(--neon-green);
    font-weight: bold;
}

.parlay-wager {
    margin: 1rem 0;
}

.parlay-wager label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.parlay-wager input {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: center;
}

/* Parlay display in bets/rivals */
.parlay-row {
    border-left: 3px solid var(--fire-yellow);
}

.parlay-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.parlay-badge {
    background: var(--fire-yellow);
    color: var(--bg-body);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.parlay-combined-odds {
    font-weight: bold;
    font-size: 1.1rem;
}

.parlay-legs-list {
    margin: 0.5rem 0;
    padding-left: 0.5rem;
}

.parlay-leg-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.parlay-leg-item .leg-game {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.parlay-leg-item.won .leg-pick { color: var(--neon-green); }
.parlay-leg-item.lost .leg-pick { color: #ff4444; text-decoration: line-through; }

.parlay-indicator {
    border-left: 2px solid var(--fire-yellow);
    padding-left: 0.5rem;
}

/* Rivals parlay card */
.rival-parlay-card {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    margin-top: 0.4rem;
}

.rival-parlay-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.rival-parlay-odds.plus { color: var(--neon-green); font-weight: bold; }
.rival-parlay-odds.minus { color: var(--fire-orange); font-weight: bold; }
.rival-parlay-hidden { color: var(--text-muted); font-style: italic; font-size: 0.8rem; }

.rival-parlay-leg {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    margin: 0.2rem 0;
    border-left: 3px solid var(--fire-yellow);
    font-size: 0.85rem;
}

.rival-parlay-leg.leg-won { border-left-color: var(--neon-green); }
.rival-parlay-leg.leg-lost { border-left-color: #ff4444; }
.rival-parlay-leg.leg-pending { border-left-color: var(--fire-yellow); }
.rival-parlay-leg.leg-push { border-left-color: var(--text-muted); }

.rival-parlay-leg-icon { font-size: 0.8rem; }
.rival-parlay-leg-pick { color: var(--text-primary); }
.rival-parlay-leg-odds { color: var(--text-muted); font-size: 0.8rem; }
.rival-parlay-leg-game { color: var(--text-muted); font-size: 0.75rem; width: 100%; }

.rival-parlay-result {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border);
    font-weight: bold;
    font-size: 0.9rem;
}

.rival-parlay-result.won { color: var(--neon-green); }
.rival-parlay-result.lost { color: #ff4444; }
.rival-parlay-result.push { color: var(--text-muted); }

@media (max-width: 768px) {
    .slip-page {
        grid-template-columns: 1fr;
    }
    .slip-games.slip-open {
        padding-bottom: 52vh;
    }
    .slip-odds-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .slip-row-label {
        min-width: auto;
    }
    .bet-slip-wrap {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        padding: 0;
    }
    .bet-slip {
        border-radius: var(--radius) var(--radius) 0 0;
        max-height: 50vh;
        overflow-y: auto;
        box-shadow: 0 -4px 30px rgba(255, 107, 53, 0.3);
    }
}
