/* V157: edge-to-edge tabs, compact discount promo, copied controls. */
.roulette-preview [hidden], .roulette-discount-overlay[hidden] { display: none !important; }
.roulette-mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(440px, 100%); margin: 0 auto 28px; gap: 0; padding: 0; overflow: hidden; border-radius: 18px; border: 1px solid rgba(184,137,255,.18); background: rgba(255,255,255,.045); }
.roulette-mode-tab { appearance: none; cursor: pointer; border: 0; border-radius: 0; min-width: 0; min-height: 54px; padding: 10px 12px; background: rgba(255,255,255,.045); color: #d0c7e2; font: inherit; font-weight: 800; font-size: 17px; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
.roulette-mode-tab.is-active, .roulette-mode-tab[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, #7a24da, #b32cf5); box-shadow: 0 5px 17px rgba(127,34,232,.25); }
@media (hover: hover) {
    .roulette-mode-tabs:hover .roulette-mode-tab.is-active:not(:hover) { color: #d0c7e2; background: rgba(255,255,255,.045); box-shadow: none; }
    .roulette-mode-tab:not(.is-active):hover { color: #fff; background: linear-gradient(135deg, #7a24da, #b32cf5); box-shadow: 0 5px 17px rgba(127,34,232,.25); }
}
.roulette-mode-tab:focus-visible { outline: 2px solid #cfa6ff; outline-offset: -3px; }
.roulette-discounts-panel { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }
.roulette-discounts-panel .roulette-preview-heading { margin-bottom: 0; }
.roulette-discounts-wheel-stage { margin: 12px auto 6px; }
.roulette-discount-slot .roulette-preview-slot-art { min-height: 50px; }
.roulette-discount-slot .roulette-preview-slot-art span { display: inline-flex; align-items: center; justify-content: center; width: clamp(46px, 10vw, 77px); height: clamp(46px, 10vw, 77px); border-radius: 50%; border: 2px solid rgba(255,255,255,.2); background: radial-gradient(circle at 30% 25%, #bd4aff, #6d209b 80%); color: #fff; font-weight: 900; letter-spacing: -.04em; font-size: clamp(18px, 4vw, 27px); text-shadow: 0 2px 6px rgba(0,0,0,.6); box-shadow: 0 5px 20px rgba(0,0,0,.24); }
.roulette-discount-slot:nth-child(even) .roulette-preview-slot-art span { background: radial-gradient(circle at 30% 25%, #5e6488, #27213f 80%); }
.roulette-discount-slot:last-child .roulette-preview-slot-art span { background: radial-gradient(circle at 35% 25%, #ffcf55, #9e4f00 85%); border-color: rgba(255,223,128,.8); }
.roulette-discounts-actions { margin-top: -2px; }
.roulette-discount-promo { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 13px; text-align: center; border-radius: 18px; padding: 20px clamp(12px, 4vw, 26px); width: min(525px, 100%); border: 1px solid rgba(170,103,250,.35); background: rgba(67,25,112,.24); box-sizing: border-box; }
.roulette-discount-promo-row { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 11px; width: 100%; min-width: 0; min-height: 54px; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; box-sizing: border-box; }
.roulette-discount-promo-row .discount-badge { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; white-space: nowrap; margin: 0; font-size: 13px; }
.roulette-discount-modal-code-label { color: #ccc5da; font-size: 15px; font-weight: 700; }
.roulette-discount-promo-code, .roulette-discount-modal-code { max-width: 100%; min-width: 0; overflow-wrap: anywhere; color: #fff; font-size: clamp(20px, 5vw, 29px); font-weight: 900; letter-spacing: .05em; }
.roulette-discount-promo-code { text-align: center; flex: 0 1 auto; }
.roulette-discount-promo-timer { color: #d7ffa5; font-weight: 800; font-variant-numeric: tabular-nums; }
.roulette-discount-promo-timer.is-inactive { color: #a6a0b6; }
.roulette-preview .roulette-discount-promo .rental-copy-btn { width: 42px; min-width: 42px; height: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(255,255,255,.055); color: #f7f5ff; box-shadow: none !important; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.roulette-preview .roulette-discount-promo .rental-copy-btn img { display: block; width: 21px; height: 21px; object-fit: contain; filter: brightness(0) invert(1); pointer-events: none; }
.roulette-preview .roulette-discount-promo .rental-copy-btn:hover:not(:disabled) { transform: translateY(-1px); background: rgba(217,47,255,.14); border-color: rgba(217,47,255,.44); box-shadow: none !important; }
.roulette-preview .roulette-discount-promo .rental-copy-btn.copied { transform: none !important; background: rgba(111,216,0,.10) !important; border-color: rgba(111,216,0,.46) !important; box-shadow: none !important; }
.roulette-preview .roulette-discount-promo .rental-copy-btn.copied img { filter: none; }
.roulette-discount-copy-feedback, .roulette-discount-modal-feedback { color: #ffcece; font-size: 13px; }
.roulette-preview .roulette-discount-shopping { display: inline-flex; align-items: center; justify-content: center; width: min(100%, 260px) !important; text-decoration: none !important; text-transform: uppercase; }
.roulette-discount-overlay .roulette-preview-modal { display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(500px, calc(100vw - 24px)); padding: 48px 25px 30px; text-align: center; }
.roulette-discount-overlay .roulette-preview-modal-content { width: 100%; align-items: center; justify-content: center; text-align: center; }
.roulette-discount-modal-percent { font-size: clamp(54px, 12vw, 96px); line-height: 1.06; font-weight: 900; background: linear-gradient(160deg, #fcdb72, #b23df4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.roulette-discount-overlay .roulette-preview-modal-content p { color: #c8c2d0; }
@media (max-width: 640px) { .roulette-mode-tabs { margin-bottom: 18px; } .roulette-discount-slot .roulette-preview-slot-art span { width: clamp(38px, 11vw, 60px); height: clamp(38px, 11vw, 60px); font-size: clamp(16px, 4.5vw, 23px); } }

@media (max-width: 400px) {
    .roulette-discount-promo-row { gap: 7px; padding: 0; }
    .roulette-discount-promo-row .discount-badge { padding: 4px 6px; font-size: 12px; }
    .roulette-discount-promo-code { font-size: clamp(16px, 4.8vw, 21px); }
    .roulette-preview .roulette-discount-promo .rental-copy-btn { width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
}
