/* =====================================================
   BETTING SYSTEM STYLES — GPM
   ===================================================== */

/* --- Wallet Bar --- */
.bet-wallet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.bet-wallet-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.bet-wallet-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bet-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.bet-username {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.bet-wallet-coins {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(242, 211, 103, 0.1);
    border: 1px solid rgba(242, 211, 103, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    color: #f2d367;
    font-weight: 800;
    font-size: 1.1rem;
}

.bet-wallet-stats {
    display: flex;
    gap: 12px;
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 600;
}

.bet-stat-won { color: #2ecc71; }
.bet-stat-bet { color: #e74c3c; }

.bet-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #5865F2;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.bet-login-btn:hover { background: #4752C4; transform: translateY(-1px); }

/* --- Tabs --- */
.bet-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bet-tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #888;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-tab-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.bet-tab-btn.active {
    background: rgba(242, 211, 103, 0.12);
    color: #f2d367;
    border: 1px solid rgba(242, 211, 103, 0.3);
}

/* --- Match Cards --- */
.bet-match-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.bet-match-card:hover {
    border-color: rgba(242, 211, 103, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.bet-match-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.bet-match-time {
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
}

.bet-round-tag {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.bet-my-bets-tag {
    background: rgba(242, 211, 103, 0.15);
    color: #f2d367;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: auto;
}

.bet-match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.bet-team-side {
    flex: 1;
    text-align: center;
}

.bet-team-name {
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.bet-team-side.home .bet-team-name { text-align: right; display: block; }
.bet-team-side.away .bet-team-name { text-align: left; display: block; }

.bet-vs {
    color: #555;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 2px;
    flex-shrink: 0;
}

/* --- Markets --- */
.bet-market {
    margin-bottom: 12px;
}

.bet-market-label {
    color: #aab2c0;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.bet-odds-row {
    display: flex;
    gap: 8px;
}

.bet-odd-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.bet-odd-btn:hover {
    background: rgba(242, 211, 103, 0.08);
    border-color: rgba(242, 211, 103, 0.3);
    transform: translateY(-1px);
}

.bet-odd-team {
    color: #aab2c0;
    font-weight: 700;
    font-size: 0.85rem;
}

.bet-odd-value {
    color: #f2d367;
    font-weight: 900;
    font-size: 1rem;
}

/* --- More markets button --- */
.bet-more-markets-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.bet-more-markets-btn:hover {
    color: #f2d367;
    border-color: rgba(242, 211, 103, 0.3);
}

.bet-extra-markets { margin-top: 12px; }

/* --- Goal Scorer Grid --- */
.bet-scorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}

.bet-scorer-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 8px;
}
.bet-scorer-btn:hover {
    background: rgba(242, 211, 103, 0.06);
    border-color: rgba(242, 211, 103, 0.25);
}

.scorer-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
    text-align: left;
}

.scorer-pos {
    color: #888;
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.scorer-stats {
    color: #666;
    font-size: 0.7rem;
    font-weight: 600;
}

.scorer-odds {
    color: #f2d367;
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: right;
}

/* --- Exact Score Grid --- */
.bet-exact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 6px;
}

.bet-exact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.bet-exact-btn:hover {
    background: rgba(242, 211, 103, 0.06);
    border-color: rgba(242, 211, 103, 0.25);
}

.exact-score {
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}

.exact-odds {
    color: #f2d367;
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* --- Bet Slip Overlay --- */
.bet-slip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s;
}
.bet-slip-overlay.show { opacity: 1; }

.bet-slip-modal {
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    animation: betSlipIn 0.3s ease;
}

@keyframes betSlipIn {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.bet-slip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.bet-slip-header h3 {
    color: #f2d367;
    font-size: 1.1rem;
    margin: 0;
}
.bet-slip-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}
.bet-slip-close:hover { color: #fff; }

.bet-slip-match {
    color: #aab2c0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bet-slip-pick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 18px;
}
.bet-slip-type {
    color: #888;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.bet-slip-selection {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}
.bet-slip-odds {
    color: #f2d367;
    font-size: 1.4rem;
    font-weight: 900;
}

.bet-slip-input label {
    color: #aab2c0;
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.bet-amount-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.bet-amount-row input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    outline: none;
}
.bet-amount-row input:focus { border-color: #f2d367; }
.bet-slip-coins {
    color: #f2d367;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.bet-quick-amounts {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.bet-quick-amounts button {
    flex: 1;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #aab2c0;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.bet-quick-amounts button:hover {
    background: rgba(242, 211, 103, 0.1);
    border-color: rgba(242, 211, 103, 0.3);
    color: #f2d367;
}

.bet-slip-potential {
    text-align: center;
    color: #aab2c0;
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(46, 204, 113, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(46, 204, 113, 0.15);
}
.bet-slip-potential strong {
    color: #2ecc71;
    font-size: 1.3rem;
}

.bet-slip-confirm {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f2d367, #e6b800);
    border: none;
    border-radius: 10px;
    color: #0a0a0e;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.bet-slip-confirm:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 211, 103, 0.3); }

/* --- History Cards --- */
.bet-history-list { display: flex; flex-direction: column; gap: 8px; }

.bet-history-card {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border-left: 3px solid #888;
}
.bet-history-card.bet-won { border-left-color: #2ecc71; background: rgba(46, 204, 113, 0.04); }
.bet-history-card.bet-lost { border-left-color: #e74c3c; background: rgba(231, 76, 60, 0.04); }
.bet-history-card.bet-pending { border-left-color: #f2d367; }

.bet-history-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.bet-history-match { color: #fff; font-weight: 700; font-size: 0.9rem; }
.bet-history-date { color: #666; font-size: 0.75rem; }

.bet-history-details {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.bet-history-type { color: #888; font-size: 0.75rem; font-weight: 600; }
.bet-history-pick { color: #aab2c0; font-weight: 700; font-size: 0.9rem; }
.bet-history-odds { color: #f2d367; font-weight: 800; font-size: 0.85rem; }

.bet-history-bottom {
    display: flex;
    gap: 14px;
    align-items: center;
}
.bet-history-amount { color: #f2d367; font-weight: 700; font-size: 0.85rem; }
.bet-history-potential { font-weight: 800; font-size: 0.9rem; color: #aab2c0; }
.bet-won .bet-history-potential { color: #2ecc71; }
.bet-lost .bet-history-potential { color: #e74c3c; }
.bet-history-status { margin-left: auto; font-weight: 700; font-size: 0.8rem; }
.bet-won .bet-history-status { color: #2ecc71; }
.bet-lost .bet-history-status { color: #e74c3c; }
.bet-pending .bet-history-status { color: #f2d367; }

/* --- Leaderboard --- */
.bet-leaderboard {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.bet-lb-table {
    width: 100%;
    border-collapse: collapse;
}
.bet-lb-table th {
    padding: 10px 12px;
    text-align: left;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bet-lb-table td {
    padding: 10px 12px;
    color: #aab2c0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.bet-lb-me {
    background: rgba(242, 211, 103, 0.06) !important;
}
.bet-lb-me td { color: #f2d367 !important; }

/* --- Empty state --- */
.bet-empty {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}
.bet-empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.bet-empty p { font-size: 0.95rem; margin: 0; }

/* --- Toast --- */
.bet-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bet-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bet-toast-success { background: #1a3a2a; color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }
.bet-toast-error { background: #3a1a1a; color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }
.bet-toast-info { background: #1a2a3a; color: #3498db; border: 1px solid rgba(52, 152, 219, 0.3); }

/* --- Mobile --- */
@media (max-width: 768px) {
    .bet-match-teams { flex-direction: column; gap: 6px; }
    .bet-team-side.home .bet-team-name,
    .bet-team-side.away .bet-team-name { text-align: center; }
    .bet-scorer-grid { grid-template-columns: 1fr; }
    .bet-exact-grid { grid-template-columns: repeat(4, 1fr); }
    .bet-wallet-info { gap: 10px; }
    .bet-wallet-stats { margin-left: 0; }
    .bet-slip-modal { padding: 18px; }
}