/* ==========================================
   ELITSLOTS SPORTS - COUPON
========================================== */


/* ==========================================
   COUPON CONTAINER
========================================== */

#coupon {

    position: fixed;

    right: 20px;
    bottom: 20px;

    width: 360px;
    max-width: calc(100vw - 40px);

    background: rgba(18, 18, 22, 0.98);

    border: 1px solid rgba(255,255,255,0.10);

    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.45);

    overflow: hidden;

    z-index: 9999;

    transform: translateY(
        calc(100% + 30px)
    );

    opacity: 0;

    pointer-events: none;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;

}


/* ==========================================
   OPEN
========================================== */

#coupon.open {

    transform: translateY(0);

    opacity: 1;

    pointer-events: auto;

}


/* ==========================================
   COUPON HEADER
========================================== */

.coupon-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 18px;

    background: rgba(255,255,255,0.04);

    border-bottom:
        1px solid rgba(255,255,255,0.08);

}


.coupon-header-title {

    display: flex;

    align-items: center;

    gap: 9px;

    color: #fff;

    font-size: 16px;

    font-weight: 700;

}


.coupon-header-title i {

    font-size: 15px;

    opacity: 0.8;

}


.coupon-close {

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 8px;

    background: rgba(255,255,255,0.06);

    color: rgba(255,255,255,0.7);

    cursor: pointer;

    transition: 0.2s;

}


.coupon-close:hover {

    background:
        rgba(255,255,255,0.12);

    color: #fff;

}


/* ==========================================
   COUPON COUNT
========================================== */

.coupon-count {

    min-width: 20px;

    height: 20px;

    padding: 0 6px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: rgba(255,255,255,0.10);

    font-size: 11px;

    font-weight: 700;

}


/* ==========================================
   SELECTIONS
========================================== */

#coupon-selections {

    max-height: 380px;

    overflow-y: auto;

    padding: 12px;

}


/* ==========================================
   SCROLLBAR
========================================== */

#coupon-selections::-webkit-scrollbar {

    width: 5px;

}


#coupon-selections::-webkit-scrollbar-track {

    background: transparent;

}


#coupon-selections::-webkit-scrollbar-thumb {

    background:
        rgba(255,255,255,0.15);

    border-radius: 10px;

}


/* ==========================================
   SINGLE SELECTION
========================================== */

.coupon-selection {

    padding: 13px;

    margin-bottom: 9px;

    border-radius: 11px;

    background:
        rgba(255,255,255,0.045);

    border:
        1px solid rgba(255,255,255,0.07);

}


.coupon-selection:last-child {

    margin-bottom: 0;

}


/* ==========================================
   SELECTION TOP
========================================== */

.coupon-selection-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 10px;

}


.coupon-event {

    display: flex;

    align-items: center;

    gap: 5px;

    flex-wrap: wrap;

    color: rgba(255,255,255,0.9);

    font-size: 12px;

    line-height: 1.4;

}


.coupon-event span {

    opacity: 0.4;

}


.coupon-event strong {

    font-weight: 600;

}


/* ==========================================
   REMOVE BUTTON
========================================== */

.coupon-remove {

    flex-shrink: 0;

    width: 25px;

    height: 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 6px;

    background: transparent;

    color: rgba(255,255,255,0.45);

    cursor: pointer;

    transition: 0.2s;

}


.coupon-remove:hover {

    background:
        rgba(255,70,70,0.12);

    color: #ff7777;

}


/* ==========================================
   MARKET
========================================== */

.coupon-selection-market {

    display: flex;

    flex-direction: column;

    gap: 4px;

    margin-top: 10px;

    padding-top: 9px;

    border-top:
        1px solid rgba(255,255,255,0.06);

}


.coupon-market-title {

    font-size: 11px;

    color: rgba(255,255,255,0.45);

}


.coupon-outcome {

    font-size: 14px;

    font-weight: 600;

    color: #fff;

}


/* ==========================================
   SELECTION BOTTOM
========================================== */

.coupon-selection-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 10px;

    font-size: 12px;

    color: rgba(255,255,255,0.45);

}


.coupon-selection-bottom strong {

    color: #fff;

    font-size: 15px;

}


/* ==========================================
   EMPTY COUPON
========================================== */

.coupon-empty {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 35px 20px;

    color: rgba(255,255,255,0.45);

}


.coupon-empty i {

    margin-bottom: 12px;

    font-size: 28px;

    opacity: 0.5;

}


.coupon-empty span {

    font-size: 14px;

    font-weight: 600;

    color: rgba(255,255,255,0.7);

}


.coupon-empty small {

    max-width: 230px;

    margin-top: 7px;

    font-size: 11px;

    line-height: 1.5;

}


/* ==========================================
   COUPON SUMMARY
========================================== */

.coupon-summary {

    padding: 15px 17px;

    border-top:
        1px solid rgba(255,255,255,0.08);

    background:
        rgba(255,255,255,0.025);

}


/* ==========================================
   SUMMARY ROW
========================================== */

.coupon-summary-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 9px;

    font-size: 13px;

    color: rgba(255,255,255,0.55);

}


.coupon-summary-row strong {

    color: #fff;

    font-weight: 700;

}


#coupon-total-odds {

    font-size: 16px;

}


#coupon-potential-win {

    font-size: 16px;

}


/* ==========================================
   STAKE
========================================== */

.coupon-stake-wrapper {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 12px;

}


.coupon-stake-label {

    flex: 1;

    font-size: 13px;

    color: rgba(255,255,255,0.55);

}


#coupon-stake {

    width: 120px;

    height: 38px;

    padding: 0 12px;

    box-sizing: border-box;

    border-radius: 8px;

    border:
        1px solid rgba(255,255,255,0.10);

    outline: none;

    background:
        rgba(255,255,255,0.06);

    color: #fff;

    font-size: 14px;

    text-align: right;

    transition: 0.2s;

}


#coupon-stake:focus {

    border-color:
        rgba(255,255,255,0.25);

    background:
        rgba(255,255,255,0.08);

}


/* ==========================================
   COUPON BUTTONS
========================================== */

.coupon-actions {

    display: flex;

    gap: 9px;

    margin-top: 13px;

}


.coupon-clear {

    flex: 0 0 auto;

    height: 42px;

    padding: 0 14px;

    border: 1px solid
        rgba(255,255,255,0.08);

    border-radius: 9px;

    background:
        rgba(255,255,255,0.04);

    color:
        rgba(255,255,255,0.65);

    cursor: pointer;

    transition: 0.2s;

}


.coupon-clear:hover {

    background:
        rgba(255,255,255,0.09);

    color: #fff;

}


.coupon-place {

    flex: 1;

    height: 42px;

    border: none;

    border-radius: 9px;

    background:
        rgba(255,255,255,0.14);

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;

}


.coupon-place:hover {

    background:
        rgba(255,255,255,0.20);

}


/* ==========================================
   FLOATING COUPON BUTTON
========================================== */

.coupon-toggle {

    position: fixed;

    right: 20px;

    bottom: 20px;

    z-index: 9998;

    display: flex;

    align-items: center;

    gap: 9px;

    height: 48px;

    padding: 0 17px;

    border: 1px solid
        rgba(255,255,255,0.10);

    border-radius: 12px;

    background:
        rgba(20,20,24,0.96);

    color: #fff;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.35);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;

}


.coupon-toggle:hover {

    transform: translateY(-2px);

    background:
        rgba(35,35,40,0.98);

}


.coupon-toggle i {

    font-size: 15px;

}


.coupon-toggle span {

    font-size: 13px;

    font-weight: 600;

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    #coupon {

        right: 10px;

        bottom: 10px;

        width: calc(100vw - 20px);

        max-width: none;

    }


    .coupon-toggle {

        right: 10px;

        bottom: 10px;

    }


    #coupon-selections {

        max-height: 45vh;

    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 420px) {

    .coupon-actions {

        flex-direction: column;

    }


    .coupon-clear {

        width: 100%;

    }


    .coupon-place {

        width: 100%;

    }

}

/* Skin-stake coupon additions */
#coupon-stake-skin { width:100%; min-width:0; margin-top:8px; padding:12px 13px; border:1px solid rgba(139,92,246,.45); border-radius:10px; background:#151522; color:#fff; font:inherit; outline:none; }
#coupon-stake-skin:focus { border-color:#a78bfa; box-shadow:0 0 0 3px rgba(139,92,246,.14); }
.coupon-stake-skin-info { margin-top:7px; color:#a6a8bb; font-size:12px; line-height:1.45; }
.coupon-server-message { margin:8px 0; color:#c4b5fd; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.coupon-place:disabled { opacity:.65; cursor:wait; }
.coupon-history-wrap { border-top:1px solid rgba(255,255,255,.08); margin-top:14px; padding-top:12px; }
.coupon-history-wrap h3 { margin:0 0 8px; color:#b9bbca; font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.coupon-history { display:flex; flex-direction:column; gap:7px; }
.coupon-history-row { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:9px 10px; border:1px solid rgba(255,255,255,.07); border-radius:9px; background:rgba(255,255,255,.025); font-size:11px; }
.coupon-history-row div { display:flex; flex-direction:column; gap:4px; min-width:0; }
.coupon-history-row strong { color:#eee; text-transform:uppercase; }
.coupon-history-row span,.coupon-history-row small,.coupon-history-empty { color:#999caf; font-size:11px; }
.coupon-history-row small { max-width:48%; text-align:right; overflow-wrap:anywhere; }
.coupon-history-empty { margin:0; }

/* Multi-skin stake picker and expandable coupon history */
.coupon-stake-help{margin:6px 0 10px;color:#9da0b7;font-size:11px;line-height:1.45}
.coupon-stake-skins{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:none;overflow:visible;padding:2px 0}.coupon-stake-wrapper .coupon-stake-label,.coupon-stake-wrapper .coupon-stake-help{display:none}
.coupon-skin-option{display:flex;align-items:center;gap:9px;min-width:0;padding:8px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.025);cursor:pointer;transition:border-color .18s,background .18s}
.coupon-skin-option.selected{border-color:rgba(167,139,250,.8);background:rgba(124,58,237,.13)}
.coupon-skin-option input{accent-color:#a78bfa;flex:0 0 auto}
.coupon-skin-option img,.coupon-skin-placeholder{width:44px;height:34px;object-fit:contain;flex:0 0 44px;border-radius:6px;background:rgba(255,255,255,.04)}
.coupon-skin-placeholder{display:grid;place-items:center;color:#8b7abf}
.coupon-skin-option-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.coupon-skin-option-copy strong{font-size:11px;color:#f1f0fa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.coupon-skin-option-copy small{font-size:11px;color:#a78bfa}
.coupon-skin-option input:disabled{opacity:.3}
.coupon-history{display:flex;flex-direction:column;gap:9px;max-height:330px;overflow-y:auto;padding:2px}
.coupon-history-card{border:1px solid rgba(167,139,250,.24);border-radius:12px;overflow:hidden;background:rgba(22,22,34,.75);border-left:3px solid #a78bfa}
.coupon-history-card.status-pending{border-color:rgba(167,139,250,.42);border-left-color:#a78bfa;background:linear-gradient(110deg,rgba(124,58,237,.14),rgba(22,22,34,.82))}
.coupon-history-card.status-lost{border-color:rgba(248,113,113,.4);border-left-color:#ef4444;background:linear-gradient(110deg,rgba(220,38,38,.13),rgba(22,22,34,.82))}
.coupon-history-card.status-won{border-color:rgba(74,222,128,.4);border-left-color:#22c55e;background:linear-gradient(110deg,rgba(22,163,74,.14),rgba(22,22,34,.82))}
.coupon-history-card.status-void{border-left-color:#777}
.coupon-history-card summary{list-style:none;cursor:pointer;padding:10px}
.coupon-history-card summary::-webkit-details-marker{display:none}
.coupon-history-card-top,.coupon-history-stats{display:flex;justify-content:space-between;align-items:center;gap:8px}
.coupon-history-card-top>strong{font-size:12px;color:#f6f5ff}
.coupon-history-status{font-size:9px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;padding:4px 7px;border-radius:99px;background:rgba(167,139,250,.15);color:#c4b5fd}
.status-lost .coupon-history-status{color:#fca5a5;background:rgba(239,68,68,.14)}
.status-won .coupon-history-status{color:#86efac;background:rgba(34,197,94,.14)}
.coupon-history-date{margin-top:6px;font-size:10px;color:#9294aa}
.coupon-history-skins{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:9px 0}
.coupon-history-skins img,.coupon-history-skin-fallback{width:36px;height:27px;object-fit:contain;padding:2px;border-radius:5px;background:rgba(255,255,255,.06)}
.coupon-history-skin-fallback{display:grid;place-items:center;color:#aaa}
.coupon-history-skin-count{font-size:10px;color:#aaa;margin-left:3px}
.coupon-history-reward{display:flex;align-items:center;gap:9px;padding:8px;border-radius:8px;background:rgba(0,0,0,.18);color:#c4b5fd}
.coupon-history-reward>img{width:58px;height:42px;object-fit:contain}
.coupon-history-reward>i{width:58px;text-align:center;font-size:20px}
.coupon-history-reward span{display:flex;flex-direction:column;gap:3px;min-width:0}
.coupon-history-reward small{font-size:9px;color:#a5a6b9}
.coupon-history-reward strong{font-size:11px;color:#f3f1ff;overflow-wrap:anywhere}
.status-lost .coupon-history-reward{color:#f87171}
.status-won .coupon-history-reward{color:#4ade80}
.coupon-history-stats{margin-top:8px;font-size:10px;color:#999caf}
.coupon-history-stats b{color:#e5e5ef;margin-left:4px}
.coupon-history-expand{display:flex;justify-content:space-between;align-items:center;margin-top:9px;padding-top:7px;border-top:1px solid rgba(255,255,255,.07);font-size:10px;color:#b7b8ca}
.coupon-history-card[open] .coupon-history-expand i{transform:rotate(180deg)}
.coupon-history-expand i{transition:transform .2s}
.coupon-history-details{padding:0 10px 11px;border-top:1px solid rgba(255,255,255,.06)}
.coupon-history-details h4{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#a78bfa;margin:11px 0 7px}
.coupon-history-stake-row,.coupon-history-bet{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.045);font-size:10px}
.coupon-history-stake-row img,.coupon-history-stake-row>i{width:36px;height:28px;object-fit:contain;color:#a78bfa;display:grid;place-items:center}
.coupon-history-stake-row span,.coupon-history-bet>div{flex:1;min-width:0;overflow-wrap:anywhere;color:#ddd}
.coupon-history-stake-row b,.coupon-history-bet>b{color:#c4b5fd;white-space:nowrap}
.coupon-history-bet>div{display:flex;flex-direction:column;gap:4px}
.coupon-history-bet strong{font-size:10px;color:#f2f2f8}
.coupon-history-bet span{font-size:9px;color:#999caf}
@media(max-width:480px){#coupon{right:8px;bottom:8px;max-width:calc(100vw - 16px);width:370px}.coupon-history{max-height:260px}.coupon-stake-skins{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none}}


/* Skin picker modal: the coupon panel shows only the add button and chosen skins. */
.coupon-add-skin{display:grid;place-items:center;align-self:stretch;justify-self:stretch;min-width:0;min-height:72px;padding:8px;border:1px dashed rgba(167,139,250,.65);border-radius:10px;background:rgba(124,58,237,.12);color:#e9ddff;cursor:pointer}.coupon-add-skin>i{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#7c3aed;color:#fff;font-size:16px}.coupon-add-skin:disabled{opacity:.35;cursor:not-allowed}
.coupon-selected-skin-list{display:contents}.coupon-selected-skin{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:72px;padding:5px;border:1px solid rgba(167,139,250,.25);border-radius:9px;background:rgba(255,255,255,.045)}.coupon-selected-skin-image{display:grid;place-items:center;width:100%;height:39px}.coupon-selected-skin img,.coupon-selected-skin-image>i{width:100%;height:39px;object-fit:contain;color:#a78bfa}.coupon-selected-skin small{font-size:10px;color:#c4b5fd;font-weight:700}.coupon-selected-skin button{position:absolute;right:3px;top:2px;width:19px;height:19px;display:grid;place-items:center;border:0;border-radius:5px;background:rgba(10,10,16,.82);color:#fca5a5;font-size:16px;line-height:1;cursor:pointer}
.coupon-skin-modal[hidden]{display:none!important}.coupon-skin-modal{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;padding:18px}.coupon-skin-modal-backdrop{position:absolute;inset:0;background:rgba(4,5,12,.78);backdrop-filter:blur(5px)}.coupon-skin-modal-panel{position:relative;z-index:1;width:min(760px,100%);max-height:min(82vh,800px);display:flex;flex-direction:column;border:1px solid rgba(167,139,250,.4);border-radius:16px;background:#151520;box-shadow:0 25px 90px #0009;overflow:hidden}.coupon-skin-modal-panel>header,.coupon-skin-modal-panel>footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;background:#1c1b2a}.coupon-skin-modal-panel h3{margin:0;color:#f5f3ff;font-size:18px}.coupon-skin-modal-panel p{margin:5px 0 0;color:#a7a8ba;font-size:12px}.coupon-skin-modal-panel header>button{border:0;border-radius:8px;background:#2a2938;color:white;width:34px;height:34px;cursor:pointer}.coupon-skin-modal-grid{padding:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:9px;overflow:auto}.coupon-skin-option{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.035);cursor:pointer}.coupon-skin-option.selected{border-color:#8b5cf6;background:rgba(124,58,237,.16)}.coupon-skin-option input{accent-color:#8b5cf6;flex-shrink:0}.coupon-skin-option>img,.coupon-skin-placeholder{width:54px;height:42px;object-fit:contain;flex-shrink:0}.coupon-skin-placeholder{display:grid;place-items:center;color:#a78bfa}.coupon-skin-option-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.coupon-skin-option-copy strong{font-size:11px;line-height:1.35;color:#f3f1ff;overflow-wrap:anywhere}.coupon-skin-option-copy small{font-size:11px;color:#c4b5fd}.coupon-skin-modal-panel>footer{border-top:1px solid rgba(255,255,255,.07);color:#bcb9cf;font-size:12px}.coupon-skin-modal-panel>footer button{border:0;border-radius:9px;padding:10px 16px;background:#7c3aed;color:#fff;font-weight:800;cursor:pointer}.coupon-modal-open{overflow:hidden}
@media(max-width:560px){.coupon-skin-modal{padding:8px}.coupon-skin-modal-panel{max-height:90vh}.coupon-skin-modal-grid{grid-template-columns:1fr 1fr;padding:9px;gap:7px}.coupon-skin-option{padding:6px;gap:5px}.coupon-skin-option>img,.coupon-skin-placeholder{width:38px;height:34px}.coupon-skin-option-copy strong{font-size:10px}}
