/* desktop.css — Extracted from index.html inline styles */

.game-row {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(20, 24, 41, 0.9), rgba(15, 18, 32, 0.95));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.game-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nba-blue), var(--nba-red));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.game-row:hover {
    background: linear-gradient(145deg, rgba(29, 66, 138, 0.15), rgba(15, 18, 32, 0.95));
    border-color: rgba(29, 66, 138, 0.4);
    box-shadow: 0 6px 24px rgba(29, 66, 138, 0.15);
    transform: translateY(-2px);
    cursor: pointer;
}

.game-row:hover::before { opacity: 1; }

.game-row a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.game-time {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #5b8def;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.live-score-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    background: linear-gradient(135deg, rgba(74,222,128,0.08), rgba(91,141,239,0.08));
    border: 1px solid rgba(74,222,128,0.15);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}
.live-score-bar.game-final {
    background: linear-gradient(135deg, rgba(148,163,184,0.08), rgba(148,163,184,0.05));
    border-color: rgba(148,163,184,0.15);
}
.live-score-team {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e2e8f0;
}
.live-score-pts {
    font-size: 1.4rem;
    font-weight: 800;
}
.live-score-leading { color: #4ade80; }
.live-score-trailing { color: #94a3b8; }
.live-score-center {
    text-align: center;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.live-dot-score {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #f87171;
    margin-right: 4px;
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.live-leaders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.65rem;
}
.live-leader-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.live-leader-card:last-child { text-align: right; flex-direction: row-reverse; }
.leader-name {
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}
.leader-stats {
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}
.leader-pts {
    color: #fbbf24;
    font-weight: 800;
}

.team-label {
    color: #475569;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
}

.odds-badge {
    background-color: rgba(29, 66, 138, 0.15);
    color: #5b8def;
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
}

.odds-row { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.game-right .odds-row { justify-content: flex-end; }

.game-team {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
}

.section-title {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8892b0;
}

.game-count-badge {
    background: rgba(91, 141, 239, 0.15);
    color: #5b8def;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: start;
}

.game-grid .game-center { text-align: center; }
.game-grid .game-right { text-align: right; }

.vs-divider {
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.pred-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.pred-score {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.pred-winner { color: #4ade80; }
.pred-loser { color: #475569; }

.pred-center { text-align: center; }
.pred-right { text-align: right; }

.conf-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.conf-high { background: rgba(74,222,128,0.15); color: #4ade80; }
.conf-mid { background: rgba(251,191,36,0.15); color: #fbbf24; }
.conf-low { background: rgba(249,115,22,0.15); color: #f97316; }

.pred-total {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.win-prob-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
    display: flex;
}

.win-prob-fill-home {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 2px 0 0 2px;
    transition: width 0.5s ease;
}

.win-prob-fill-away {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #5b8def);
    border-radius: 0 2px 2px 0;
    transition: width 0.5s ease;
}

.win-prob-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.58rem;
    font-weight: 700;
    margin-top: 3px;
    color: #64748b;
}

.edge-row {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 6px;
    font-weight: 600;
    text-align: center;
}

.edge-positive { color: #4ade80; }
.edge-negative { color: #f87171; }

.filter-bar {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
}

.filter-bar .form-select,
.filter-bar .form-control {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 0.72rem;
    padding: 5px 10px;
    height: auto;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.filter-bar .form-select:focus,
.filter-bar .form-control:focus {
    border-color: var(--nba-blue);
    box-shadow: 0 0 0 2px rgba(29, 66, 138, 0.2);
}

.filter-label {
    font-size: 0.55rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.value-pill {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(74,222,128,0.2), rgba(74,222,128,0.08));
    color: #4ade80;
    display: inline-block;
    margin-left: 6px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(74,222,128,0.15);
}

/* Smart Pick badge on game cards */
.smart-pick-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.55rem;
    font-weight: 800;
    color: #0b0e1a;
    background: linear-gradient(135deg, #4ade80, #4ade80cc);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(74,222,128,0.4);
    vertical-align: middle;
}

/* Value Play badge on prediction */
.value-play-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 800;
    color: #0b0e1a;
    background: linear-gradient(135deg, #fabf2f, #f5a623);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(250,191,47,0.4);
    vertical-align: middle;
}

/* Smart pick card glow */
.game-row.smart-pick {
    border-color: rgba(74,222,128,0.5) !important;
    box-shadow: 0 2px 16px rgba(74,222,128,0.2), 0 2px 12px rgba(0,0,0,0.3) !important;
}

/* EV summary row on game cards */
.ev-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    margin-top: 4px;
}
.ev-tag {
    font-size: 0.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.ev-tag-label {
    font-size: 0.55rem;
    font-weight: 700;
    color: #8892b0;
    margin-right: 3px;
}
.ev-positive { color: #4ade80; }
.ev-negative { color: #f87171; }

/* Bet modal: EV & Risk Zone section */
.ev-risk-section {
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    margin-bottom: 12px;
}
.ev-risk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.ev-badge-modal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    padding: 3px 10px;
    border-radius: 12px;
}
.ev-badge-modal.positive {
    color: #4ade80;
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.25);
}
.ev-badge-modal.negative {
    color: #f87171;
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.25);
}
.risk-zone-pill {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.risk-zone-pill.value { color: #4ade80; background: rgba(74,222,128,0.15); border: 1px solid rgba(74,222,128,0.3); }
.risk-zone-pill.neutral { color: #fbbf24; background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.25); }
.risk-zone-pill.risky { color: #f87171; background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.25); }
.ev-risk-explainer {
    font-size: 0.62rem;
    color: #8892b0;
}

/* Bet modal: Kelly section */
.kelly-section {
    padding: 10px 12px;
    background: rgba(74,222,128,0.04);
    border: 1px solid rgba(74,222,128,0.15);
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kelly-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.kelly-amount {
    font-size: 0.9rem;
    font-weight: 800;
    color: #4ade80;
    font-variant-numeric: tabular-nums;
}
.kelly-use-btn {
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    background: rgba(74,222,128,0.7);
    border: none;
    padding: 4px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.kelly-use-btn:hover {
    background: rgba(74,222,128,0.9);
}

.model-edge-box {
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    font-size: 0.7rem;
    color: #94a3b8;
}

.model-edge-title {
    font-size: 0.6rem;
    font-weight: 800;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.pred-loading {
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #64748b;
    font-size: 0.75rem;
}

.pm-badge {
    background-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pm-badge.flash {
    background-color: rgba(139, 92, 246, 0.5);
    color: #d4bbff;
}

.kl-badge {
    background-color: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.kl-badge.flash {
    background-color: rgba(6, 182, 212, 0.5);
    color: #67e8f9;
}

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    animation: live-pulse 2s ease-in-out infinite;
    vertical-align: middle;
}

.live-dot-pm { background: #a78bfa; }
.live-dot-kl { background: #22d3ee; }

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.source-label {
    font-weight: 800;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
}

.db-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.db-info {
    font-size: 0.85rem;
    color: #8892b0;
}

.db-info strong { color: #ccd6f6; }

.health-strip {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(10, 14, 28, 0.45);
}

.health-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

.health-pill-main {
    border-color: rgba(91,141,239,0.35);
    background: rgba(91,141,239,0.12);
}

.health-pill-label {
    font-size: 0.55rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.health-pill-value {
    font-size: 0.68rem;
    font-weight: 700;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.health-meta {
    margin-left: auto;
    font-size: 0.62rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.health-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.health-dot-checking {
    background: #64748b;
    animation: livePulse 1.5s ease-in-out infinite;
}

.health-dot-healthy { background: #4ade80; }
.health-dot-degraded { background: #fbbf24; }
.health-dot-down { background: #f87171; }


.btn-update {
    background: linear-gradient(135deg, #1D428A, #2a5298);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.btn-update:hover {
    background: linear-gradient(135deg, #2a5298, #3563ad);
    transform: translateY(-1px);
}

.btn-update:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.update-result {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 8px;
    display: none;
}

.update-result.success {
    display: block;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.update-result.error {
    display: block;
    background: rgba(200, 16, 46, 0.1);
    border: 1px solid rgba(200, 16, 46, 0.3);
    color: var(--nba-red);
}

.retrain-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

.retrain-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.retrain-info {
    font-size: 0.8rem;
    color: #8892b0;
}

.retrain-info strong { color: #ccd6f6; }

.progress-track {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
    display: none;
}

.progress-track.active { display: block; }

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nba-blue), #4ade80);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.injury-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.injury-team { font-size: 0.65rem; }

.injury-team-label {
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.injury-player {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 2px;
    line-height: 1.3;
}

.injury-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

.injury-dot-out { background: #ef4444; }
.injury-dot-dtd { background: #f97316; }
.injury-dot-other { background: #fbbf24; }

.injury-name { color: #cbd5e1; font-weight: 600; }
.injury-desc { color: #64748b; }
.injury-none { color: #334155; font-style: italic; }

.btn-bet {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.85), rgba(200, 16, 46, 0.65));
    color: white;
    border: 1px solid rgba(200, 16, 46, 0.3);
    border-radius: 8px;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.62rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    max-width: 140px;
}

.btn-bet:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
    background: linear-gradient(135deg, #C8102E, #e8334e);
}

.bet-buttons {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex;
    gap: 8px;
    justify-content: center;
}

.bet-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 0.8fr 1fr 0.9fr 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.75rem;
}

.live-pnl {
    text-align: right;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}
.live-pnl-flash {
    animation: pnlFlash 0.5s ease;
}
@keyframes pnlFlash {
    0% { background: rgba(91,141,239,0.3); }
    100% { background: transparent; }
}

.bet-won { border-left: 3px solid #4ade80; }
.bet-lost { border-left: 3px solid #f87171; }
.bet-push { border-left: 3px solid #fbbf24; }
.bet-open { border-left: 3px solid #5b8def; }

.pnl-positive { color: #4ade80; font-weight: 700; }
.pnl-negative { color: #f87171; font-weight: 700; }
.pnl-zero { color: #fbbf24; font-weight: 700; }

.ledger-stat {
    text-align: center;
    padding: 14px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
}

.ledger-stat-label {
    font-size: 0.55rem;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.ledger-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
}

.result-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.result-badge-won { background: rgba(74,222,128,0.15); color: #4ade80; }
.result-badge-lost { background: rgba(248,113,113,0.15); color: #f87171; }
.result-badge-push { background: rgba(251,191,36,0.15); color: #fbbf24; }

.btn-void {
    background: none;
    border: 1px solid rgba(248,113,113,0.3);
    color: #f87171;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-void:hover { background: rgba(248,113,113,0.1); }

/* Ensure bet modal scrolls within pywebview's fixed-height window */
#betModal .modal-dialog {
    max-height: 90vh;
    margin-top: 2vh;
    margin-bottom: 2vh;
}
#betModal .modal-content {
    max-height: 86vh;
    display: flex;
    flex-direction: column;
}
#betModal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
}
#betModal .modal-footer {
    flex-shrink: 0;
}

.modal-dark .form-control, .modal-dark .form-select {
    background: rgba(255,255,255,0.08);
    border-color: var(--card-border);
    color: white;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
}

.modal-dark .form-control:focus, .modal-dark .form-select:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--nba-blue);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(29,66,138,0.25);
}

/* Segmented Bet Type Picker */
.bet-type-segments {
    display: flex;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}
.seg-btn {
    flex: 1;
    padding: 8px 4px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #8892b0;
    background: transparent;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-right: 1px solid var(--card-border);
}
.seg-btn:last-child { border-right: none; }
.seg-btn:hover { color: white; background: rgba(255,255,255,0.04); }
.seg-btn.active {
    color: white;
    background: var(--nba-blue);
    box-shadow: 0 2px 8px rgba(29,66,138,0.3);
}

/* Tappable Market Price Buttons */
.market-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}
.market-source-label {
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
}
.market-source-label.dk { color: #f59e0b; }
.market-source-label.pm { color: #a78bfa; }
.market-source-label.kl { color: #22d3ee; }

.market-price-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 62px;
}
.market-price-btn:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.15);
}
.market-price-btn.selected {
    border-color: currentColor;
    background: rgba(255,255,255,0.1);
}
.market-price-btn .price-team {
    font-size: 0.5rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.market-price-btn .price-value {
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'SF Mono', 'Courier New', monospace;
    color: white;
}
.market-price-btn.dk .price-value { color: #f59e0b; }
.market-price-btn.pm .price-value { color: #a78bfa; }
.market-price-btn.kl .price-value { color: #22d3ee; }

/* Quick-Pick Stake Buttons */
.quick-stake-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}
.quick-stake-btn {
    flex: 1;
    padding: 5px 2px;
    font-size: 0.6rem;
    font-weight: 800;
    color: #8892b0;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'SF Mono', 'Courier New', monospace;
}
.quick-stake-btn:hover {
    color: white;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}
.quick-stake-btn.active {
    color: white;
    background: var(--nba-blue);
    border-color: var(--nba-blue);
}

/* Submit Button States */
#confirmBetBtn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Bet Toast Notification */
.bet-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    z-index: 100000;
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    pointer-events: none;
}
.bet-toast.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    #games-list { grid-template-columns: 1fr !important; }
    .db-status-bar { flex-direction: column; text-align: center; }
    .health-strip { justify-content: center; }
    .health-meta { width: 100%; text-align: center; margin-left: 0; }
    .bet-row { grid-template-columns: 1fr 1fr; }
    .filter-bar { gap: 8px; }
    .navbar-subtitle { display: none; }
}

@media (min-width: 1200px) {
    #games-list { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
}

/* ─── Design Refresh: Additive Enhancements ──────────────────────────────── */

/* Enhanced section titles with display font */
.section-title {
    font-family: var(--font-display, 'Montserrat', sans-serif);
    font-size: 1.25rem;
    letter-spacing: 3px;
}

/* Card visual hierarchy — primary cards get accent border + stronger shadow */
.nba-card.card-primary {
    border-color: rgba(91, 141, 239, 0.2);
    box-shadow: 0 4px 32px rgba(29, 66, 138, 0.12), 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Admin/secondary cards get a muted, recessed look */
.nba-card.card-admin {
    opacity: 0.92;
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.nba-card.card-admin:hover {
    opacity: 1;
}

/* Subtle hover transitions on section cards */
.nba-card {
    transition: box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.nba-card.card-primary:hover {
    box-shadow: 0 6px 40px rgba(29, 66, 138, 0.18), 0 4px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(91, 141, 239, 0.3);
}
.nba-card.card-admin:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Team color accent on game cards — left border only */
.game-row {
    border-left: 3px solid var(--home-color, transparent);
}
