.betting-balance-bar {
    text-align: right;
    padding: 6px 0 2px;
    font-size: 0.85rem;
    color: #93c5fd;
}

.btn-signin {
    display: inline-block;
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 14px;
    border: 1px solid rgba(147,197,253,0.3);
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn-signin:hover {
    background: rgba(147,197,253,0.1);
    border-color: rgba(147,197,253,0.5);
    color: #fff;
    text-decoration: none;
}

.btn-signout {
    color: #93c5fd;
    text-decoration: underline;
    cursor: pointer;
}

/* Schedule card wrapper */
.schedule-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 130px;
    position: relative;
}

.schedule-card-bet--post {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 5px 6px;
}

/* ── Three stars popup ───────────────────────────────────── */
.stars-popup {
    background: #0f172a;
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 190px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.stars-popup-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: #93c5fd;
    margin-bottom: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stars-popup-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    margin-bottom: 3px;
}

.stars-popup-row:last-child {
    margin-bottom: 0;
}

.stars-popup-num {
    color: #fbbf24;
    font-size: 0.62rem;
    min-width: 18px;
}

.stars-popup-name {
    flex: 1;
    color: #e2e8f0;
}

.stars-popup-stat {
    color: #94a3b8;
    font-size: 0.68rem;
}

.schedule-card-odds {
    display: block;
    font-size: 0.7rem;
    color: #bfdbfe;
    margin-top: 2px;
    text-align: center;
}

.schedule-card-bet {
    display: flex;
    align-items: stretch;
    gap: 4px;
    padding: 4px 6px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(147, 197, 253, 0.12);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.schedule-card-bet--locked {
    justify-content: center;
}

.bet-locked-label {
    font-size: 0.7rem;
    color: #6b7280;
}

.btn-bet {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e3a5f;
    color: #93c5fd;
    border: 1px solid #2d5a8e;
    border-radius: 4px;
    padding: 3px 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-bet:hover:not(:disabled) {
    background: #2d5a8e;
}

.btn-bet:disabled {
    opacity: 0.5;
    cursor: default;
}

.bet-placed {
    font-size: 0.75rem;
    padding: 4px 6px;
    border-radius: 4px;
    display: block;
    width: 100%;
    text-align: center;
}

.bet-placed--pending { color: #93c5fd; }
.bet-placed--won     { color: #4ade80; }
.bet-placed--lost    { color: #f87171; }
.bet-placed--void    { color: #9ca3af; }

/* Login page */
.betting-login-card {
    max-width: 400px;
    margin: 80px auto;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #e2e8f0;
}

/* Leaderboard scrollable on narrow screens */
#leaderboardSection {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .btn-bet {
        padding: 4px 4px;
    }
}

@media (max-width: 480px) {
    .betting-balance-bar {
        font-size: 0.8rem;
        padding: 4px 0 2px;
    }

    .betting-login-card {
        margin: 40px 10px;
        padding: 24px 20px;
    }

    .schedule-card-wrapper {
        min-width: 115px;
    }
}

.betting-login-card h2 {
    color: #93c5fd;
    margin-bottom: 8px;
    font-size: 1.6rem;
}

.login-tagline {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.login-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-perks li::before {
    content: '✓ ';
    color: #4ade80;
    font-weight: 700;
}

.btn-google-signin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid rgba(66,133,244,0.5);
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn-google-signin:hover {
    background: rgba(66,133,244,0.15);
    border-color: rgba(66,133,244,0.8);
    color: #fff;
    text-decoration: none;
}

.google-icon {
    flex-shrink: 0;
}

.login-error {
    color: #f87171;
    font-size: 0.85rem;
}

/* Leaderboard table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.leaderboard-table th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #2d5a8e;
    color: #93c5fd;
    font-weight: 600;
}

.leaderboard-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.leaderboard-table tr:first-child td {
    color: #fbbf24;
}

/* Betting history table */
.bet-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.bet-history-table th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #2d5a8e;
    color: #93c5fd;
    font-weight: 600;
}

.bet-history-table td {
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.bet-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bet-status--pending { background: rgba(147,197,253,0.1); color: #93c5fd; }
.bet-status--won     { background: rgba(74,222,128,0.12); color: #4ade80; }
.bet-status--lost    { background: rgba(248,113,113,0.12); color: #f87171; }
.bet-status--void    { background: rgba(156,163,175,0.1); color: #9ca3af; }

.bet-net--won     { color: #4ade80; }
.bet-net--lost    { color: #f87171; }
.bet-net--pending { color: #6b7280; }

.bet-puckdrop {
    white-space: nowrap;
    color: #94a3b8;
    font-size: 0.8rem;
}

.bet-pick-highlight {
    font-weight: 700;
    color: #93c5fd;
}

.bet-pick-vs {
    color: #64748b;
}

/* ── Bet placement modal ─────────────────────────────────── */
.bet-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.bet-modal {
    background: #0f172a;
    border: 1px solid rgba(147,197,253,0.2);
    border-radius: 14px;
    padding: 28px 24px 24px;
    width: calc(100vw - 40px);
    max-width: 320px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}

.bet-modal-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #93c5fd;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bet-modal-matchup {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.bet-modal-meta {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 20px;
}

.bet-modal-odds-label {
    color: #475569;
}

.bet-modal-stake-row {
    margin-bottom: 22px;
}

.bet-modal-stake-label {
    display: block;
    font-size: 0.72rem;
    color: #93c5fd;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.bet-modal-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-stake-slider {
    flex: 1;
    accent-color: #93c5fd;
    cursor: pointer;
}

.modal-stake-input {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(147,197,253,0.2);
    border-radius: 6px;
    color: #e2e8f0;
    padding: 8px 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
}

.modal-stake-input:focus {
    border-color: rgba(147,197,253,0.5);
}

.modal-stake-input--error {
    border-color: #f87171 !important;
    color: #f87171;
}

.modal-stake-input::placeholder {
    color: #475569;
}

.bet-modal-error {
    font-size: 0.78rem;
    color: #f87171;
    margin: 0 0 14px;
    display: none;
}

.bet-modal-actions {
    display: flex;
    gap: 10px;
}

.btn-bet-modal-confirm {
    flex: 1;
    padding: 10px;
    background: #1e3a5f;
    border: 1px solid #2d5a8e;
    color: #93c5fd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-bet-modal-confirm:hover {
    background: #2d5a8e;
}

.btn-bet-modal-confirm:disabled {
    opacity: 0.4;
    cursor: default;
}

.btn-bet-modal-cancel {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(148,163,184,0.2);
    color: #94a3b8;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-bet-modal-cancel:hover {
    background: rgba(148,163,184,0.07);
}
