/* Bet slip styles, shared by index.html and mybets.html (moved out of home.css 2026-10-03). */
:root {
    --live: #ef4444;
    --accent2: #3b82f6;
}
/* FULL-SCREEN bet slip (owner, 2026-10-30): covers the whole screen, slides in from the right,
   ✕ / Esc returns you to the same page. Content sits in one centered column (max 760 px). */
.bet-slip {
    position: fixed;
    inset: 0;
    width: 100%;
    background: #111418;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding-inline: max(0px, calc((100% - 760px) / 2));
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

.bet-slip.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    .bet-slip, .bet-slip.open { transition: none; }
}

.bs-type-btn {
    flex: 1;
    background: #1e2430;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 6px 4px;
    border-radius: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.bs-type-btn:hover {
    background: #2a3242;
    color: #ffffff;
}
.bs-type-btn.active {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.bs-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bs-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 2px;
}

.bs-bankroll {
    font-size: 12px;
    color: var(--win);
    font-weight: bold;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.bs-max-btn {
    background: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    color: #000;
    border: none;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    margin-left: 6px;
}

.bs-max-btn:hover {
    opacity: 0.9;
    transform: scale(1.04);
}

.bs-debt-tokens {
    font-size: 11px;
    color: #EF4444;
    font-weight: bold;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 3px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bs-close-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.bs-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.bs-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bs-item {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: 12px;
}

.bs-item-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bs-item-team {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.bs-item-odds {
    font-size: 13px;
    color: var(--accent2);
    font-weight: bold;
}

.bs-item-type {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 12px;
}

.bs-wager-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bs-wager-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.bs-wager-input:focus {
    outline: none;
    border-color: var(--accent);
}

.betslip-odds-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 6px;
}
.betslip-odds-wrapper .odds-paren {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
}
.betslip-line-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #64748b;
}
.betslip-market-type {
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.betslip-line-wrapper .line-paren,
.betslip-line-wrapper .separator {
    color: #94a3b8;
    font-weight: 700;
}
.betslip-matchup-sub {
    color: #64748b;
    font-weight: 600;
}
.betslip-inline-input {
    background: #0f172a;
    color: #38bdf8;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.betslip-inline-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
    background: #1e293b;
    color: #ffffff;
}
.betslip-odds-input {
    width: 60px;
    text-align: center;
}
.betslip-line-input {
    width: 70px;
    text-align: center;
}

.bs-to-win {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    margin-top: 8px;
}

.bs-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.bs-place-btn {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.bs-place-btn:hover {
    opacity: 0.9;
}

/* Bet Slip Tabbed Layout */
.bs-tabs {
    display: flex;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    padding: 2px 20px;
    gap: 10px;
}

.bs-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    letter-spacing: 1.5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    text-transform: uppercase;
}

.bs-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.bs-tab:hover {
    color: var(--text);
}

.bs-active-wager-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    position: relative;
}

.bs-active-wager-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.bs-active-wager-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bs-active-wager-matchup {
    font-size: 9px;
    color: var(--muted);
    margin-bottom: 8px;
}

.bs-active-wager-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 4px;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge.won {
    background: rgba(16, 185, 129, 0.15);
    color: var(--win);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.lost {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.bs-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.bw-cell.clickable {
    cursor: pointer;
}

.bw-cell.clickable:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent);
}

.bs-remove {
    background: none;
    border: none;
    color: var(--live);
    cursor: pointer;
    font-size: 12px;
}
