
/* =========================================
   LOTTERY & STL BETTING STYLES (lottery.css)
   ========================================= */

/* --- Lottery Game Selector Buttons --- */
.betbodyrow {
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    border: 2px solid snow;
    margin-bottom: 5px;
}

/* =========================================
   FANCY LOTTERY SELECTOR CARDS
   ========================================= */

/* 1. The Outer Wrapper (Glass-morphism Slip) */
.betrowcontent {
    display: flex;
    width: 31%; /* Fits 3-across perfectly on desktop */
    min-width: 280px;
    height: 220px;
    flex-direction: column;
    background: rgba(13, 18, 43, 0.8); /* Deep Blue base */
    border: 2px solid rgba(241, 196, 15, 0.3); /* Subtle Gold border */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 10px;
    cursor: pointer;
}
.swal2-container {
    z-index: 99999 !important;
}

/* Ensure your custom lotto classes don't accidentally hide it */
.lotto-popup-main {
    z-index: 100000 !important;
}
/* Hover State: Lifts up and glows Gold */
.betrowcontent:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #f1c40f;
    box-shadow: 0 15px 30px rgba(241, 196, 15, 0.2), 0 0 15px rgba(241, 196, 15, 0.4);
}

/* 2. The Game Icon/GIF Area */
.selectorbutton {
    flex-grow: 1;
    width: 100%;
    border: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%; /* Keeps the icons from hitting the edges */
    position: relative;
    transition: background-size 0.3s ease;
}

.betrowcontent:hover .selectorbutton {
    background-size: 70%; /* Subtle "zoom" effect on the game icon */
}

/* Dark gradient overlay to make icons/GIFs look "embedded" */
.selectorbutton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(13, 18, 43, 0.9));
}

/* 3. The Footer Label (The "Ticket" Header) */
#s2span, #s3span, .betrowcontent span {
    background: #f1c40f; /* Solid Gold */
    color: #0d122b; /* Deep Blue Text */
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 1.1em;
    font-weight: 900;
    text-align: center;
    padding: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-top: 2px solid #0d122b;
    z-index: 2; /* Sits above the gradient */
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

/* 4. The "WIN" Highlight (Optional Subtext) */
.betrowcontent::before {
    content: 'PLAY NOW';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c; /* Red tag */
    color: white;
    font-size: 0.6em;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 900px) {
    .betbodyrow {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .betrowcontent {
        width: 95%; /* Stack vertically on phones */
        height: 180px;
    }
}




#s2btn { background-color: rgba(23, 35, 196, 0.822); background-image: url("img/l2v2.gif"); background-size: 100% 50%; }
#s3btn { background-color: rgb(112, 183, 250); background-image: url("img/3dl.png"); background-size: 100% 50%; }
#l2btn { background-color: rgb(253, 202, 63); background-image: url("img/L2.png"); background-size: 100% 50%; }
#l3btn { background-color: rgb(174, 0, 255); background-image: url("img/L3.png"); background-size: 100% 50%; }
#btn2D { background-color: rgb(237, 253, 12); background-image: url("img/2DLv2.png"); background-size: 100% 50%; }
#btn4d { background-color: rgb(255, 0, 0); background-image: url("img/4Dv2.png"); background-size: 50% 50%; }

#s2btn:hover { background-color: rgba(46, 115, 243, 0.562); }
#s3btn:hover { background-color: rgb(210, 255, 11); }
#l2btn:hover { background-color: rgba(0, 211, 63, 0.562); }
#l3btn:hover { background-color: rgb(47, 219, 250); }
#btn2D:hover { background-color: rgb(255, 29, 29); }

#s2span, #s3span {
    background-color: rgb(7, 81, 243);
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: yellow;
    font-size: 0.85em;
    font-weight: 600;
    height: min-content;
    border-radius: 3px;
    padding: 10px 0;
}

/* --- Bet Details Slip (Cart) --- */
.lottery-theme-red-blue {
    background: #f4f7f6;
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.bet-header {
    background: #0d122b;
    color: #f1c40f;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-family: 'Special Gothic Expanded One', sans-serif;
    border-bottom: 4px solid #f1c40f;
}

#playspan {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    width: 100%;
    text-align: center;
}

.cutoff-alert {
    background: #e74c3c;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.75em;
    font-weight: bold;
    letter-spacing: 1px;
}

.bet-input-section {
    padding: 20px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.input-group label {
    font-size: 0.7em;
    font-weight: bold;
    color: #0d122b;
    margin-bottom: 5px;
    display: block;
}

.num-input, #drawselect {
    width: 100%;
    padding: 12px;
    border: 2px solid #0d122b;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    color: #0d122b;
    box-sizing: border-box;
    text-align: center;
}

.num-input:focus {
    outline: none;
    background-color: #1ab3ff;
    color: #ffffff;
    border: 3px solid #000000;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
}

.combinationdiv {
    display: flex;
    gap: 10px;
    width: 100%;
}

.add-to-slip-btn {
    background: #f1c40f;
    color: #0d122b;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 4px 0 #b8860b;
    transition: 0.2s;
}

.add-to-slip-btn:hover {
    background: rgb(210, 255, 11);
}

.bet-cart-section {
    flex-grow: 1;
    padding: 15px;
    background: #fff;
    overflow-y: auto;
}

.cart-header {
    color: #0d122b;
    font-size: 0.8em;
    font-weight: 900;
    margin-bottom: 10px;
    border-left: 4px solid #e74c3c;
    padding-left: 10px;
}

#bettbl {
    width: 100%;
    border-collapse: collapse;
    border: 3px solid black;
}

#bettbl th {
    background: #0d122b;
    color: white;
    font-size: 0.7em;
    padding: 8px;
    border: 2px solid black;
}

#bettbl td {
    border: 1px solid black;
    padding: 10px 5px;
    text-align: center;
    font-size: 0.9em;
    color: #333;
}

.btnX {
    padding: 5px;
    width: 100%;
    font-size: 1em;
    font-weight: 700;
    color: red;
    cursor: pointer;
    border: none;
    background: transparent;
}

.bet-footer-summary {
    background: #0d122b;
    color: white;
    padding: 20px;
    border-top: 4px solid #f1c40f;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

#proceedbtn {
    width: 100%;
    background: #f1c40f;
    color: #0d122b;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 4px 0 #b8860b;
    transition: transform 0.1s;
}

#proceedbtn:active {
    transform: translateY(2px);
    box-shadow: none;
}

.btn-back-bottom {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Lottery Checkout Confirmation Screen --- */
.divconfirm {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 5000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.confirm-card.premium-theme {
    background: #0d122b;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    border: 2px solid #f1c40f;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.2);
    overflow: hidden;
    color: white;
    animation: slideUp 0.4s ease-out;
}

.confirm-header {
    background: #f1c40f;
    padding: 15px;
    color: #0d122b;
    text-align: center;
    font-weight: 900;
    font-size: 1.1em;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.confirm-body { padding: 20px; }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.info-item .label {
    display: block;
    font-size: 0.65em;
    color: #f1c40f;
    margin-bottom: 4px;
}

.combination-container label {
    font-size: 0.7em;
    color: #ccc;
    display: block;
    margin-bottom: 8px;
    text-align: center;
}

.combination-list {
    background: white;
    color: #0d122b;
    border-radius: 10px;
    padding: 12px;
    height: 80px;
    overflow-y: auto;
    font-family: monospace;
    font-weight: bold;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.financial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid #f1c40f;
    margin-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.4em;
    font-weight: 900;
    margin-bottom: 5px;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #ccc;
}

.action-buttons {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

/* Responsive Overrides for Mobile Cart */
@media (max-width: 480px) {
    .betrowcontent { height: 180px; width: 100%; }
    .betfieldwrapper { flex-direction: column; }
    .combinationdiv { width: 100%; }
}