/* =========================
   Betslip Table Styling
   ========================= */
#betslip, #betslip-placeholder {
    background: #1e1e22;
    padding: 10px;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #fff;
}

#betslip p, #betslip-placeholder p {
    color: #999;
    font-style: italic;
    text-align: center;
}

@media (max-width: 430px) {
    .match-top {
        font-size: 14px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}
/* =========================
   Bet Card Layout
   ========================= */
.bet-card {
    background: #2a2a2f;
    border: 1px solid #444;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
}

/* Header (bet type + remove icon) */
.bet-card-header {
    font-weight: bold;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Remove × icon */
.bet-card-header .remove-bet {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    margin-left: 8px;
    transition: color 0.2s ease;
}

.bet-card-header .remove-bet:hover {
    color: #ff4444;
}

/* Bet info section */
.bet-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    font-size: 13px;
    color: #ddd;
}

/* Odds + Stake inputs */
.bet-inputs {
    display: flex;
    gap: 6px;
    margin: 8px 12px;
}

.bet-inputs input {
    background: #1e1e22;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    text-align: center;
    padding: 6px;
    font-size: 13px;
    flex: 1; /* Make both share width equally */
    min-width: 0; /* Prevent overflow */
}

/* Place bet button */
.place-bet-btn {
    background: linear-gradient(90deg, #b84dac, #ff8400); /* purple → orange */
    color: #fff;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    padding: 8px;
    margin: 8px 12px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.place-bet-btn:hover {
    background: linear-gradient(90deg, #a23b98, #e67300); /* darker hover */
}



/* =========================
   Mobile tweaks
   ========================= */
@media (max-width: 480px) {
    #betslip, #betslip-placeholder {
        padding: 8px;
        font-size: 13px;
    }

    .bet-card-header {
        padding: 6px 10px;
        font-size: 13px;
    }

    .bet-card-header .remove-bet {
        font-size: 20px;   /* Bigger tap target */
        margin-left: 10px;
    }

    .bet-info {
        font-size: 12px;
        padding: 6px 10px;
    }

    .bet-inputs {
        margin: 6px 10px;
        gap: 4px;
    }

    .bet-inputs input {
        padding: 4px;
        font-size: 12px;
    }

    .place-bet-btn {
        padding: 6px;
        font-size: 13px;
        margin: 6px 10px 10px;
    }
}

/* ================================
   Betslip Buttons & Spinner
================================ */
.place-bet-btn {
    color: #fff;
    padding: 8px 12px;
    margin-top: 8px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* BACK (orange) */
.back-btn {
    background: #ff8400;
}
.back-btn:hover {
    background: linear-gradient(135deg, #cc5500, #ff6a00);
}
.back-btn.loading {
    background: linear-gradient(135deg, #993d00, #cc5500) !important;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* LAY (purple) */
.lay-btn {
    background: #b84dac;
}
.lay-btn:hover {
    background: linear-gradient(135deg, #8a357f, #b84dac);
}
.lay-btn.loading {
    background: linear-gradient(135deg, #5a1d56, #8a357f) !important;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}