/* Benira Prize Wheel — mobile-first, isolated component */
.benira-wheel-shell {
    --bw-primary: var(--bn-color-secondary,#008efa);
    --bw-secondary: #00c0ff;
    --bw-pointer: #e11d48;
    --bw-text: #101828;
    --bw-muted: #667085;
    --bw-line: #e7ebf0;
    --bw-soft: #f7f9fc;
    --bw-card: #fff;
    --bw-radius: 24px;
    width: 100%;
    max-width: 680px;
    margin: 20px auto;
    position: relative;
    direction: rtl;
    color: var(--bw-text);
    font-family: inherit;
    isolation: isolate;
}
.benira-wheel-shell *,
.benira-wheel-shell *::before,
.benira-wheel-shell *::after { box-sizing: border-box; }
.benira-wheel-shell [hidden] { display: none !important; }
.benira-wheel-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(var(--bn-color-text-rgb,15,23,42), .08);
    border-radius: var(--bw-radius);
    background: var(--bw-card);
    box-shadow: 0 22px 70px rgba(var(--bn-color-text-rgb,15,23,42), .11);
}
.benira-wheel-content {
    min-height: 480px;
    position: relative;
    padding: 14px;
    background:
        radial-gradient(circle at 50% 24%, color-mix(in srgb, var(--bw-primary) 11%, transparent), transparent 38%),
        linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}
.benira-wheel-app { width: 100%; }
.benira-wheel-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 11px 12px;
    border: 1px solid var(--bw-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
}
.benira-wheel-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
}
.benira-wheel-brand img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
}
.benira-wheel-brand h2 {
    margin: 0;
    color: var(--bw-text);
    font-size: clamp(15px, 4.4vw, 21px);
    font-weight: 900;
    line-height: 1.55;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.benira-wheel-brand p {
    margin: 1px 0 0;
    color: var(--bw-muted);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.benira-wheel-balance {
    min-width: 58px;
    min-height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-content: center;
    gap: 0;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--bw-primary) 20%, #e7ebf0);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bw-primary) 7%, #fff);
    text-align: center;
}
.benira-wheel-balance span { color: var(--bw-muted); font-size: 9px; font-weight: 700; }
.benira-wheel-balance strong { color: var(--bw-primary); font-size: 17px; font-weight: 900; line-height: 1.2; }

.benira-wheel-tabs {
    margin: 10px 0;
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    border: 1px solid var(--bw-line);
    border-radius: 15px;
    background: #f2f5f8;
}
.benira-wheel-tab {
    min-width: 0;
    min-height: 38px;
    padding: 7px 4px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--bn-color-muted,#64748b);
    font: inherit;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.benira-wheel-tab:hover { color: var(--bw-text); }
.benira-wheel-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--bw-primary) 25%, transparent); outline-offset: 2px; }
.benira-wheel-tab.is-active {
    background: #fff;
    color: var(--bw-primary);
    box-shadow: 0 4px 14px rgba(var(--bn-color-text-rgb,15,23,42), .08);
}
.benira-wheel-deck { width: 100%; }
.benira-wheel-panel { width: 100%; }
.benira-wheel-panel--wheel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.benira-wheel-panel--info {
    min-height: 350px;
    padding: 13px;
    border: 1px solid var(--bw-line);
    border-radius: 19px;
    background: linear-gradient(145deg, #fff, var(--bn-color-surface,#f8fafc));
    animation: benira-wheel-panel-in .24s ease both;
}
.benira-wheel-panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    text-align: right;
}
.benira-wheel-panel-heading > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--bw-primary) 10%, #fff);
    color: var(--bw-primary);
    font-size: 20px;
    font-weight: 900;
}
.benira-wheel-panel-heading h3,
.benira-wheel-history h3 { margin: 0; color: var(--bw-text); font-size: 14px; font-weight: 900; line-height: 1.6; }
.benira-wheel-panel-heading p { margin: 1px 0 0; color: var(--bw-muted); font-size: 10px; line-height: 1.7; }

.benira-wheel-stage {
    --bw-stage-size: min(82vw, 385px);
    width: var(--bw-stage-size);
    aspect-ratio: 1;
    max-width: 100%;
    position: relative;
    display: grid;
    place-items: center;
    margin: 9px auto 11px;
    filter: drop-shadow(0 15px 24px rgba(var(--bn-color-text-rgb,15,23,42), .13));
}
.benira-wheel-stage-ring {
    position: absolute;
    inset: -7px;
    z-index: 0;
    border: 6px solid #fff;
    border-radius: 50%;
    background: conic-gradient(from -10deg, var(--bw-primary), var(--bw-secondary), var(--bw-primary), var(--bw-secondary), var(--bw-primary));
    box-shadow: 0 0 0 1px rgba(var(--bn-color-text-rgb,15,23,42), .08), 0 14px 34px color-mix(in srgb, var(--bw-primary) 18%, transparent);
}
.benira-wheel-stage-ring::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: inherit;
    background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.85) 0deg 1deg, transparent 1deg 15deg);
    opacity: .55;
}
.benira-wheel-svg {
    position: relative;
    z-index: 1;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    display: block;
    overflow: visible;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(var(--bn-color-text-rgb,15,23,42), .06);
}
.benira-wheel-rotor { transform-box: fill-box; transform-origin: center; will-change: transform; }
.benira-wheel-slice-text {
    font-family: inherit;
    font-weight: 900;
    pointer-events: none;
    paint-order: stroke fill;
    stroke: rgba(var(--bn-color-text-rgb,15,23,42), .12);
    stroke-width: .3px;
    letter-spacing: -.15px;
}
.benira-wheel-empty-text { fill: #98a2b3; font-family: inherit; font-size: 13px; font-weight: 800; }
.benira-wheel-pointer {
    position: absolute;
    top: -11px;
    left: 50%;
    z-index: 6;
    width: 34px;
    height: 39px;
    margin-left: -17px;
    border: 4px solid #fff;
    border-radius: 13px 13px 19px 19px;
    background: var(--bw-pointer);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    filter: drop-shadow(0 6px 6px rgba(var(--bn-color-text-rgb,15,23,42), .22));
    transform-origin: 50% 0;
    animation: benira-wheel-pointer-float 2.6s ease-in-out infinite;
}
.is-spinning .benira-wheel-pointer { animation: benira-wheel-pointer-tick .13s ease-in-out infinite alternate; }
.benira-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    width: clamp(57px, 18%, 75px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #edf2f7);
    box-shadow: 0 8px 20px rgba(var(--bn-color-text-rgb,15,23,42), .23), inset 0 0 0 1px rgba(var(--bn-color-text-rgb,15,23,42),.05);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.benira-wheel-center img { width: 72%; height: 72%; object-fit: contain; }
.benira-wheel-center span { color: var(--bw-primary); font-size: 30px; font-weight: 900; }

.benira-wheel-spin-button {
    width: min(100%, 390px);
    min-height: 50px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    padding: 11px 18px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--bw-primary), var(--bw-secondary));
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--bw-primary) 25%, transparent);
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.7;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.benira-wheel-spin-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 13px 30px color-mix(in srgb, var(--bw-primary) 30%, transparent); }
.benira-wheel-spin-button:active:not(:disabled) { transform: translateY(1px) scale(.995); }
.benira-wheel-spin-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--bw-primary) 28%, transparent); outline-offset: 3px; }
.benira-wheel-spin-button:disabled { cursor: not-allowed; opacity: .62; box-shadow: none; }
.benira-wheel-spin-button[data-state="no_chance"],
.benira-wheel-spin-button[data-state="unavailable"],
.benira-wheel-spin-button[data-state="empty"] { background: #e6eaf0; color: #7c8799; }
.benira-wheel-spin-button[data-state="error"],
.benira-wheel-spin-button[data-state="retry"] { background: linear-gradient(135deg, #334155, var(--bn-color-muted,#64748b)); }
.benira-wheel-button-spinner {
    width: 17px;
    height: 17px;
    display: none;
    flex: 0 0 17px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: benira-wheel-spin .7s linear infinite;
}
.benira-wheel-spin-button[data-state="loading"] .benira-wheel-button-spinner,
.benira-wheel-spin-button[data-state="submitting"] .benira-wheel-button-spinner,
.benira-wheel-spin-button[data-state="spinning"] .benira-wheel-button-spinner { display: block; }
.benira-wheel-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); animation: benira-wheel-ripple .62s linear; pointer-events: none; }
.benira-wheel-message { min-height: 20px; margin: 6px 0 0; color: var(--bn-color-muted,#64748b); font-size: 10.5px; font-weight: 600; line-height: 1.8; }
.benira-wheel-message.is-error { color: #b42318; }
.benira-wheel-message.is-success { color: #067647; }

.benira-wheel-chance-list,
.benira-wheel-prize-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82%, 1fr);
    gap: 9px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    padding: 1px 1px 7px;
}
.benira-wheel-chance-list::-webkit-scrollbar,
.benira-wheel-prize-list::-webkit-scrollbar,
.benira-wheel-history-list::-webkit-scrollbar { display: none; }
.benira-wheel-chance-card,
.benira-wheel-prize-card,
.benira-wheel-empty-card {
    min-height: 104px;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--bw-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(var(--bn-color-text-rgb,15,23,42),.045);
    text-align: right;
}
.benira-wheel-list-icon,
.benira-wheel-prize-card > span,
.benira-wheel-prize-card > img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--bw-primary) 9%, #fff);
    color: var(--bw-primary);
    font-size: 20px;
    font-weight: 900;
    object-fit: contain;
}
.benira-wheel-prize-card > span { background: var(--prize-color, var(--bw-primary)); box-shadow: inset 0 0 0 5px rgba(255,255,255,.75); }
.benira-wheel-chance-card > div:nth-child(2),
.benira-wheel-prize-card > div { min-width: 0; flex: 1; }
.benira-wheel-chance-card strong,
.benira-wheel-prize-card strong,
.benira-wheel-empty-card strong { display: block; color: var(--bw-text); font-size: 12px; font-weight: 900; line-height: 1.7; }
.benira-wheel-chance-card span,
.benira-wheel-prize-card p,
.benira-wheel-empty-card span { display: block; margin: 1px 0 0; color: var(--bw-muted); font-size: 10px; line-height: 1.7; }
.benira-wheel-chance-card small,
.benira-wheel-prize-card small { display: block; margin-top: 4px; color: #98a2b3; font-size: 8.5px; line-height: 1.7; }
.benira-wheel-chance-card b { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #ecfdf3; color: #067647; font-size: 13px; font-weight: 900; }
.benira-wheel-empty-card { min-height: 125px; flex-direction: column; justify-content: center; text-align: center; }

.benira-wheel-guide-grid { display: grid; gap: 8px; }
.benira-wheel-guide-grid > div { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--bw-line); border-radius: 14px; background: #fff; text-align: right; }
.benira-wheel-guide-grid strong { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 10px; background: #eef7ff; color: var(--bw-primary); font-size: 12px; font-weight: 900; }
.benira-wheel-guide-grid span { color: #475467; font-size: 10.5px; font-weight: 600; line-height: 1.8; }
.benira-wheel-history { margin-top: 12px; }
.benira-wheel-history h3 { margin-bottom: 7px; }
.benira-wheel-history-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(72%, 1fr); gap: 7px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: inline mandatory; }
.benira-wheel-history-list > div { scroll-snap-align: start; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid var(--bw-line); border-radius: 12px; background: #fff; }
.benira-wheel-history-list span { color: #344054; font-size: 10px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.benira-wheel-history-list small { color: #98a2b3; font-size: 8px; white-space: nowrap; }

.benira-wheel-result {
    min-height: 452px;
    padding: 24px 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--bw-line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--bw-primary) 13%, transparent), transparent 33%),
        linear-gradient(145deg, #fff, var(--bn-color-surface,#f8fafc));
    animation: benira-wheel-result-in .42s cubic-bezier(.16,1,.3,1) both;
}
.benira-wheel-result:focus { outline: none; }
.benira-wheel-result-badge { min-height: 28px; padding: 5px 12px; border-radius: 999px; background: #ecfdf3; color: #067647; font-size: 10px; font-weight: 900; }
.benira-wheel-result.is-loss .benira-wheel-result-badge { background: #f2f4f7; color: #667085; }
.benira-wheel-result-media { width: 96px; height: 96px; margin: 13px 0 9px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--bw-line); border-radius: 28px; background: #fff; box-shadow: 0 12px 30px rgba(var(--bn-color-text-rgb,15,23,42),.1); }
.benira-wheel-result-image { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.benira-wheel-result-icon { color: var(--bw-primary); font-size: 42px; font-weight: 900; }
.benira-wheel-result.is-loss .benira-wheel-result-icon { color: #667085; }
.benira-wheel-result-title { margin: 2px 0 5px; color: var(--bw-text); font-size: clamp(19px, 5vw, 25px); font-weight: 950; line-height: 1.6; }
.benira-wheel-result-description { max-width: 430px; margin: 0 0 9px; color: var(--bw-muted); font-size: 11.5px; line-height: 1.9; }
.benira-wheel-result-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom: 9px; }
.benira-wheel-result-details span { padding: 5px 8px; border: 1px solid var(--bw-line); border-radius: 999px; background: #fff; color: #475467; font-size: 8.5px; font-weight: 700; }
.benira-wheel-coupon {
    width: min(100%, 360px);
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 8px 8px;
    border: 1px dashed color-mix(in srgb, var(--bw-primary) 42%, #cbd5e1);
    border-radius: 15px;
    background: #fff;
    color: var(--bw-text);
    font: inherit;
    cursor: pointer;
}
.benira-wheel-coupon-code { direction: ltr; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 900; letter-spacing: .7px; }
.benira-wheel-coupon small { padding: 6px 9px; border-radius: 9px; background: #eef7ff; color: var(--bw-primary); font-size: 9px; font-weight: 900; }
.benira-wheel-coupon.is-copied { border-color: #12b76a; background: #f6fef9; }
.benira-wheel-coupon.is-copied small { background: #dcfae6; color: #067647; }
.benira-wheel-result .benira-wheel-action { margin-top: 8px; }
.benira-wheel-result-balance { margin-top: 9px; color: #667085; font-size: 10px; font-weight: 700; }
.benira-wheel-result-balance strong { color: var(--bw-primary); font-size: 14px; font-weight: 900; }
.benira-wheel-again { min-height: 38px; margin-top: 7px; padding: 6px 14px; border: 0; background: transparent; color: #475467; font: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.benira-wheel-again:focus-visible { outline: 2px solid var(--bw-primary); border-radius: 9px; }

/* Skeleton follows the site's neutral shimmer language. */
.benira-wheel-skeleton { min-height: 452px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 2px; }
.benira-wheel-skeleton > span { display: block; position: relative; overflow: hidden; background: #eef1f5; }
.benira-wheel-skeleton > span::after { content: ""; position: absolute; inset: 0; transform: translateX(100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent); animation: benira-wheel-shimmer 1.3s infinite; }
.benira-wheel-skeleton__line { height: 15px; border-radius: 7px; }
.benira-wheel-skeleton__line--title { width: 52%; margin-top: 10px; }
.benira-wheel-skeleton__line--subtitle { width: 72%; height: 10px; }
.benira-wheel-skeleton__tabs { width: 100%; height: 46px; margin-top: 4px; border-radius: 15px; }
.benira-wheel-skeleton__wheel { width: min(76vw, 330px); aspect-ratio: 1; border-radius: 50%; margin-top: 2px; }
.benira-wheel-skeleton__button { width: min(100%, 390px); height: 50px; border-radius: 15px; }

/* OTP modal — never opened until explicit user action. */
.benira-wheel-auth-overlay { position: fixed; inset: 0; z-index: 1000005; display: none; align-items: flex-end; justify-content: center; padding: 12px; }
.benira-wheel-auth-overlay.is-open { display: flex; }
.benira-wheel-auth-backdrop { position: absolute; inset: 0; background: rgba(var(--bn-color-text-rgb,15,23,42),.54); backdrop-filter: blur(5px); }
.benira-wheel-auth-modal { width: min(100%, 430px); position: relative; z-index: 1; padding: 22px 18px 18px; border-radius: 24px 24px 18px 18px; background: #fff; box-shadow: 0 26px 80px rgba(var(--bn-color-text-rgb,15,23,42),.28); text-align: center; animation: benira-wheel-auth-in .35s cubic-bezier(.16,1,.3,1) both; }
.benira-wheel-auth-close { position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 12px; background: #f2f4f7; color: #475467; font-family: inherit; font-size: 25px; font-weight: 400; line-height: 1; cursor: pointer; }
.benira-wheel-auth-handle { width: 42px; height: 4px; margin: -11px auto 14px; border-radius: 99px; background: #d0d5dd; }
.benira-wheel-auth-logo img { width: 56px; height: 56px; margin-bottom: 6px; object-fit: contain; border-radius: 16px; }
.benira-wheel-auth-modal h3 { margin: 4px 0; color: var(--bw-text); font-size: 19px; font-weight: 900; line-height: 1.7; }
.benira-wheel-auth-modal p { margin: 3px 0 12px; color: var(--bw-muted); font-size: 11px; line-height: 1.9; }
.benira-wheel-phone-wrap { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #dfe4ea; border-radius: 15px; background: var(--bn-color-surface,#f8fafc); direction: ltr; }
.benira-wheel-phone-wrap:focus-within { border-color: var(--bw-primary); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bw-primary) 13%, transparent); }
.benira-wheel-phone-wrap span { color: #98a2b3; font-size: 12px; font-weight: 800; }
.benira-wheel-phone { width: 100%; height: 100%; padding: 0; border: 0 !important; outline: 0 !important; background: transparent !important; color: var(--bw-text); font-family: inherit; font-size: 15px; font-weight: 700; direction: ltr; text-align: left; box-shadow: none !important; }
.benira-wheel-send-code { width: 100%; min-height: 49px; margin-top: 10px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--bw-primary), var(--bw-secondary)); color: #fff; font-family: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.benira-wheel-send-code:disabled { opacity: .55; cursor: wait; }
.benira-wheel-code-boxes { display: flex; justify-content: center; gap: 7px; margin: 15px 0 10px; }
.benira-wheel-code-boxes input { width: 45px; height: 51px; padding: 0; border: 1px solid #dfe4ea; border-radius: 13px; background: var(--bn-color-surface,#f8fafc); color: var(--bw-text); font-family: inherit; font-size: 20px; font-weight: 900; text-align: center; outline: 0; }
.benira-wheel-code-boxes input:focus { border-color: var(--bw-primary); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bw-primary) 13%, transparent); }
.benira-wheel-timer { margin: 5px 0 !important; color: #667085 !important; font-size: 10.5px !important; }
.benira-wheel-auth-actions { display: flex; justify-content: center; gap: 7px; margin-top: 8px; }
.benira-wheel-auth-actions button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--bn-color-border,#e2e8f0); border-radius: 10px; background: var(--bn-color-surface,#f8fafc); color: #475467; font-family: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.benira-wheel-resend { border-color: #abefc6 !important; background: #ecfdf3 !important; color: #067647 !important; }
.benira-wheel-auth-message { min-height: 20px; margin: 7px 0 0 !important; color: #b42318 !important; }
.benira-wheel-auth-legal { margin: 13px 0 0 !important; color: #98a2b3 !important; font-size: 9px !important; }
.benira-wheel-auth-legal a { color: var(--bw-primary); font-weight: 800; text-decoration: none; }
.benira-wheel-auth-lock { overflow: hidden; }

.benira-wheel-confetti { position: absolute; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; }
.benira-wheel-confetti i { position: absolute; top: -20px; left: var(--x); width: 7px; height: 13px; border-radius: 2px; background: hsl(var(--hue), 85%, 55%); animation: benira-wheel-confetti-fall 2.65s var(--delay) ease-in forwards; }

/* Popup mode is intentionally separate from the shortcode/card mode. */
.benira-wheel-shell--popup { max-width: none; margin: 0; }
.benira-wheel-shell--popup .benira-wheel-card { border: 0; border-radius: 18px; background: transparent; box-shadow: none; }
.benira-wheel-shell--popup .benira-wheel-content { min-height: 0; padding: 0; background: transparent; }
.benira-wheel-shell--popup .benira-wheel-hero { min-height: 54px; padding: 8px 10px; }
.benira-wheel-shell--popup .benira-wheel-brand p { display: none; }
.benira-wheel-shell--popup .benira-wheel-tabs { margin: 7px 0; }
.benira-wheel-shell--popup .benira-wheel-stage {
    --bw-stage-size: clamp(210px, min(77vw, calc(100dvh - 285px)), 350px);
    margin-top: 5px;
    margin-bottom: 8px;
}
.benira-wheel-shell--popup .benira-wheel-panel--info { min-height: min(350px, calc(100dvh - 220px)); }
.benira-wheel-shell--popup .benira-wheel-result { min-height: min(425px, calc(100dvh - 92px)); padding-top: 16px; }
.benira-wheel-shell--popup .benira-wheel-skeleton { min-height: min(420px, calc(100dvh - 90px)); }

@media (min-width: 540px) {
    .benira-wheel-content { padding: 18px; }
    .benira-wheel-brand h2 { font-size: 21px; }
    .benira-wheel-brand p { font-size: 11.5px; }
    .benira-wheel-tab { font-size: 11.5px; }
    .benira-wheel-panel--info { min-height: 378px; padding: 16px; }
    .benira-wheel-chance-list,
    .benira-wheel-prize-list { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
    .benira-wheel-history-list { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
    .benira-wheel-auth-overlay { align-items: center; }
    .benira-wheel-auth-modal { border-radius: 24px; }
}
@media (max-width: 350px) {
    .benira-wheel-content { padding: 9px; }
    .benira-wheel-hero { padding: 8px; }
    .benira-wheel-brand img { width: 32px; height: 32px; flex-basis: 32px; }
    .benira-wheel-brand h2 { font-size: 14px; }
    .benira-wheel-tab { font-size: 9.3px; padding-inline: 2px; }
    .benira-wheel-stage { --bw-stage-size: min(80vw, 280px); }
    .benira-wheel-shell--popup .benira-wheel-stage { --bw-stage-size: clamp(198px, min(75vw, calc(100dvh - 270px)), 280px); }
    .benira-wheel-code-boxes { gap: 4px; }
    .benira-wheel-code-boxes input { width: 39px; height: 47px; }
}
@media (max-height: 650px) and (orientation: landscape) {
    .benira-wheel-shell--popup .benira-wheel-hero { display: none; }
    .benira-wheel-shell--popup .benira-wheel-stage { --bw-stage-size: min(56dvh, 280px); }
    .benira-wheel-shell--popup .benira-wheel-tabs { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .benira-wheel-shell *,
    .benira-wheel-shell *::before,
    .benira-wheel-shell *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .benira-wheel-pointer { animation: none; }
}

@keyframes benira-wheel-spin { to { transform: rotate(360deg); } }
@keyframes benira-wheel-pointer-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes benira-wheel-pointer-tick { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes benira-wheel-ripple { to { transform: scale(4); opacity: 0; } }
@keyframes benira-wheel-panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes benira-wheel-result-in { from { opacity: 0; transform: rotateY(-12deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes benira-wheel-auth-in { from { opacity: .7; transform: translateY(35px); } to { opacity: 1; transform: none; } }
@keyframes benira-wheel-confetti-fall { to { transform: translateY(640px) rotate(var(--rotate)); opacity: .15; } }
@keyframes benira-wheel-shimmer { to { transform: translateX(-100%); } }

.benira-wheel-rule-state {
    width: max-content;
    margin-top: 5px;
    padding: 3px 7px;
    display: inline-flex;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647;
    font-size: 8.5px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.6;
}
.benira-wheel-chance-card.is-limit_reached { background: #fafbfc; }
.benira-wheel-chance-card.is-limit_reached .benira-wheel-rule-state { background: #f2f4f7; color: #667085; }
.benira-wheel-chance-card.is-limit_reached > b { background: #f2f4f7; color: #98a2b3; }
.benira-wheel-chance-card.is-login_required .benira-wheel-rule-state { background: #eff8ff; color: #175cd3; }

/* Viewport-height wheel layout and won-prize vouchers. */
.benira-wheel-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0 auto;
    overflow: hidden;
}
.benira-wheel-card,
.benira-wheel-content,
.benira-wheel-app,
.benira-wheel-deck,
.benira-wheel-panel.is-active,
.benira-wheel-skeleton,
.benira-wheel-result {
    height: 100%;
    min-height: 0;
    max-height: 100%;
}
.benira-wheel-card,
.benira-wheel-content,
.benira-wheel-app,
.benira-wheel-deck,
.benira-wheel-panel,
.benira-wheel-panel--info,
.benira-wheel-result,
.benira-wheel-skeleton { overflow: hidden; }
.benira-wheel-content { display: flex; flex-direction: column; }
.benira-wheel-app { display: flex; flex-direction: column; }
.benira-wheel-hero,
.benira-wheel-tabs { flex: 0 0 auto; }
.benira-wheel-deck { flex: 1 1 auto; display: flex; min-height: 0; }
.benira-wheel-panel.is-active { flex: 1 1 auto; min-height: 0; }
.benira-wheel-panel--wheel { min-height: 0; }
.benira-wheel-panel--wheel .benira-wheel-spin-button { flex: 0 0 auto; margin-top: auto; }
.benira-wheel-panel--wheel .benira-wheel-message { flex: 0 0 auto; }
.benira-wheel-panel--info { display: flex; flex-direction: column; }
.benira-wheel-panel-heading { flex: 0 0 auto; }
.benira-wheel-chance-list,
.benira-wheel-prize-list { flex: 1 1 auto; min-height: 0; overflow-y: hidden; }

/* Wheel diameter reduced by 15%. */
.benira-wheel-stage {
    --bw-stage-size: clamp(120px, min(69.7vw, calc(100dvh - 300px)), 327px);
    flex: 0 1 auto;
}
.benira-wheel-shell--popup {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
}
.benira-wheel-shell--popup .benira-wheel-stage {
    --bw-stage-size: clamp(120px, min(65.45vw, calc(100dvh - 335px)), 298px);
}
.benira-wheel-shell--popup .benira-wheel-card,
.benira-wheel-shell--popup .benira-wheel-content,
.benira-wheel-shell--popup .benira-wheel-app,
.benira-wheel-shell--popup .benira-wheel-deck { height: 100%; min-height: 0; max-height: 100%; }
.benira-wheel-shell--popup .benira-wheel-panel--info,
.benira-wheel-shell--popup .benira-wheel-result,
.benira-wheel-shell--popup .benira-wheel-skeleton { height: 100%; min-height: 0; max-height: 100%; }

/* Won-prize cards use the same coupon language as the site vouchers. */
.benira-wheel-prize-list {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(88%, 1fr);
    align-items: start;
    overflow-x: auto;
    padding-bottom: 8px;
}
.benira-wheel-prize-card {
    position: relative;
    display: block;
    min-height: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--bw-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(var(--bn-color-text-rgb,15,23,42),.06);
    text-align: right;
}
.benira-wheel-prize-card::before,
.benira-wheel-prize-card::after {
    content: "";
    position: absolute;
    top: 58%;
    width: 18px;
    height: 18px;
    border: 1px solid var(--bw-line);
    border-radius: 50%;
    background: var(--bn-color-surface,#f8fafc);
    transform: translateY(-50%);
    z-index: 2;
}
.benira-wheel-prize-card::before { right: -10px; }
.benira-wheel-prize-card::after { left: -10px; }
.benira-wheel-prize-card-head { display: flex; align-items: center; gap: 10px; }
.benira-wheel-prize-card-head > div { min-width: 0; flex: 1; }
.benira-wheel-prize-media {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--bw-primary) 10%, #fff);
    color: var(--bw-primary);
    object-fit: contain;
    font-size: 20px;
    font-weight: 900;
}
.benira-wheel-prize-card strong { display: block; color: var(--bw-text); font-size: 12px; font-weight: 900; line-height: 1.75; }
.benira-wheel-prize-status {
    width: max-content;
    margin-top: 4px;
    padding: 3px 8px;
    display: inline-flex;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647;
    font-size: 8.5px;
    font-weight: 900;
}
.benira-wheel-prize-card > p { margin: 9px 0 0; color: var(--bw-muted); font-size: 10px; line-height: 1.8; }
.benira-wheel-prize-card > small { display: block; margin-top: 5px; color: #98a2b3; font-size: 8.5px; line-height: 1.8; }
.benira-wheel-prize-card-cut { margin: 12px -14px 10px; border-top: 2px dashed var(--bw-line); }
.benira-wheel-prize-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border-radius: 12px;
    background: var(--bn-color-text,#0f172a);
}
.benira-wheel-prize-code code {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--bn-color-primary,#befa00);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .8px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.benira-wheel-prize-copy {
    min-height: 34px;
    padding: 6px 10px;
    border: 0;
    border-radius: 9px;
    background: var(--bn-color-primary,#befa00);
    color: var(--bn-color-text,#0f172a);
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}
.benira-wheel-prize-copy.is-copied { background: #fff; color: #067647; }
.benira-wheel-prize-use {
    width: 100%;
    min-height: 40px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--bw-primary), var(--bw-secondary));
    color: #fff;
    font-size: 10.5px;
    font-weight: 900;
    text-decoration: none;
}
.benira-wheel-prize-card.is-used .benira-wheel-prize-status,
.benira-wheel-prize-card.is-expired .benira-wheel-prize-status { background: #e5e7eb; color: #6b7280; }
.benira-wheel-prize-card.is-inactive {
    border-color: #d8dde5;
    background: #f2f4f7;
    box-shadow: none;
    filter: grayscale(1);
    opacity: .78;
}
.benira-wheel-prize-card.is-inactive .benira-wheel-prize-copy,
.benira-wheel-prize-use.is-disabled,
.benira-wheel-result .benira-wheel-action.is-disabled {
    background: #d0d5dd;
    color: #667085;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.benira-wheel-deadline {
    width: 100%;
    margin-top: 10px;
    padding: 9px 10px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}
.benira-wheel-deadline-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.benira-wheel-deadline-head span { color: #475467; font-size: 9px; font-weight: 800; }
.benira-wheel-deadline-head strong { color: var(--bw-primary); font-size: 10px; font-weight: 900; }
.benira-wheel-deadline-track { height: 5px; margin: 7px 0 5px; overflow: hidden; border-radius: 99px; background: #e4e7ec; direction: ltr; }
.benira-wheel-deadline-track span { width: 100%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--bw-secondary), var(--bw-primary)); transition: width .5s linear; }
.benira-wheel-deadline-date { display: block; color: #667085; font-size: 8px; line-height: 1.7; }
.benira-wheel-deadline.is-inactive { border-color: #d0d5dd; background: #e5e7eb; }
.benira-wheel-deadline.is-inactive .benira-wheel-deadline-head strong,
.benira-wheel-deadline.is-inactive .benira-wheel-deadline-date { color: #667085; }
.benira-wheel-deadline.is-inactive .benira-wheel-deadline-track span { background: #98a2b3; }
.benira-wheel-result-timeline { width: min(100%, 360px); margin: 0 0 9px; text-align: right; }
.benira-wheel-result.is-inactive { filter: grayscale(.9); }
.benira-wheel-coupon:disabled { border-color: #d0d5dd; background: #e5e7eb; color: #667085; cursor: not-allowed; }
.benira-wheel-coupon:disabled small { background: #d0d5dd; color: #667085; }

@media (min-width: 540px) {
    .benira-wheel-prize-list {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: minmax(47%, 1fr);
        overflow-x: auto;
        overflow-y: hidden;
    }
}
@media (max-width: 350px) {
    .benira-wheel-stage { --bw-stage-size: clamp(110px, min(68vw, calc(100dvh - 285px)), 238px); }
    .benira-wheel-shell--popup .benira-wheel-stage { --bw-stage-size: clamp(110px, min(63.75vw, calc(100dvh - 315px)), 238px); }
}
@media (max-height: 650px) and (orientation: landscape) {
    .benira-wheel-shell--popup .benira-wheel-stage { --bw-stage-size: min(47.6dvh, 238px); }
}

@media (max-height: 650px) and (orientation: landscape) {
    .benira-wheel-result { padding: 7px 12px; }
    .benira-wheel-result-media { display: none; }
    .benira-wheel-result-badge { min-height: 23px; padding: 3px 10px; }
    .benira-wheel-result-title { margin: 1px 0 2px; font-size: 17px; line-height: 1.45; }
    .benira-wheel-result-description { margin-bottom: 4px; font-size: 10px; line-height: 1.55; }
    .benira-wheel-result-details { margin-bottom: 4px; }
    .benira-wheel-result-details span { padding: 3px 7px; }
    .benira-wheel-result-timeline { margin-bottom: 5px; padding: 6px 8px; }
    .benira-wheel-coupon { min-height: 42px; padding-block: 5px; }
    .benira-wheel-result .benira-wheel-action { min-height: 42px; margin-top: 5px; }
    .benira-wheel-result-balance { margin-top: 4px; }
    .benira-wheel-again { min-height: 28px; margin-top: 1px; padding-block: 3px; }
}

@media (max-height: 650px) and (orientation: landscape) {
    .benira-wheel-panel--info { padding: 8px; }
    .benira-wheel-panel-heading { margin-bottom: 5px; }
    .benira-wheel-panel-heading > span { width: 32px; height: 32px; flex-basis: 32px; font-size: 16px; }
    .benira-wheel-panel-heading h3 { font-size: 12px; }
    .benira-wheel-panel-heading p { font-size: 8.5px; line-height: 1.45; }
    .benira-wheel-prize-card { height: 100%; padding: 6px 9px; }
    .benira-wheel-prize-card-head { gap: 7px; }
    .benira-wheel-prize-media { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
    .benira-wheel-prize-card > p,
    .benira-wheel-prize-card > small { display: none; }
    .benira-wheel-prize-status { margin-top: 1px; padding: 2px 6px; font-size: 7.5px; }
    .benira-wheel-prize-timeline { margin-top: 4px; padding: 4px 7px; }
    .benira-wheel-prize-timeline .benira-wheel-deadline-track { margin: 3px 0 0; }
    .benira-wheel-prize-timeline .benira-wheel-deadline-date { display: none; }
    .benira-wheel-prize-card-cut { margin: 4px -9px 3px; }
    .benira-wheel-prize-code { padding: 3px 5px; border-radius: 9px; }
    .benira-wheel-prize-code code { font-size: 10px; }
    .benira-wheel-prize-copy { min-height: 27px; padding: 4px 8px; }
    .benira-wheel-prize-use { min-height: 30px; margin-top: 3px; border-radius: 9px; }
}

@media (max-height: 650px) and (orientation: landscape) {
    .benira-wheel-shell--popup .benira-wheel-stage {
        --bw-stage-size: clamp(80px, calc(100dvh - 209px), 238px);
    }
}

@media (max-height: 650px) and (orientation: landscape) {
    .benira-wheel-shell--popup .benira-wheel-result-badge { display: none; }
    .benira-wheel-shell--popup .benira-wheel-again { min-height: 22px; font-size: 9px; }
    .benira-wheel-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .benira-wheel-guide-grid > div { min-height: 58px; padding: 6px 7px; gap: 6px; }
    .benira-wheel-guide-grid strong { width: 25px; height: 25px; flex-basis: 25px; }
    .benira-wheel-guide-grid span { font-size: 8.5px; line-height: 1.55; }
    .benira-wheel-history { margin-top: 6px; }
    .benira-wheel-history h3 { margin-bottom: 4px; font-size: 11px; }
    .benira-wheel-history-list > div { padding: 6px 8px; }
}

@media (max-height: 650px) and (orientation: landscape) {
    .benira-wheel-shell--popup .benira-wheel-result-balance { display: none; }
}

/* Final integration: retain the v1.3.0 wheel presentation while using the
 * configurable diameter and scroll-safe popup sizing from the current build. */
.benira-wheel-shell {
    --bw-wheel-diameter: 327px;
}
.benira-wheel-tab {
    display: grid;
    place-items: center;
    text-decoration: none;
}
.benira-wheel-tab:visited { color: var(--bn-color-muted,#64748b); }
.benira-wheel-tab.is-active:visited { color: var(--bw-primary); }
.benira-wheel-stage {
    --bw-stage-size: clamp(180px, min(var(--bw-wheel-diameter), calc(100vw - 40px)), var(--bw-wheel-diameter));
}
.benira-wheel-shell--popup {
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 0;
    display: block;
    overflow: visible;
}
.benira-wheel-shell--popup .benira-wheel-stage {
    --bw-stage-size: clamp(180px, min(var(--bw-wheel-diameter), calc(100vw - 42px), calc(100dvh - 270px)), var(--bw-wheel-diameter));
}
@media (max-width: 350px) {
    .benira-wheel-stage {
        --bw-stage-size: clamp(180px, min(var(--bw-wheel-diameter), calc(100vw - 34px)), var(--bw-wheel-diameter));
    }
    .benira-wheel-shell--popup .benira-wheel-stage {
        --bw-stage-size: clamp(180px, min(var(--bw-wheel-diameter), calc(100vw - 42px), calc(100dvh - 270px)), var(--bw-wheel-diameter));
    }
}
@media (max-height: 650px) and (orientation: landscape) {
    .benira-wheel-shell--popup .benira-wheel-stage {
        --bw-stage-size: clamp(110px, min(var(--bw-wheel-diameter), 47.6dvh, 238px), var(--bw-wheel-diameter));
    }
}
@media (max-width: 767px), (hover: none), (pointer: coarse) {
    .benira-wheel-hero {
        background: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .benira-wheel-auth-backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Keep the automatic back control inside the existing viewport-height wheel shell. */
.benira-wheel-shell--with-back {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
    box-sizing: border-box;
}
.benira-wheel-shell--with-back > .back-btn-wrapper-box {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 16px !important;
    margin: 0 auto !important;
}
.benira-wheel-shell--with-back > .benira-wheel-card {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 100%;
}
.benira-wheel-shell--with-back > .back-btn-wrapper-box .back-btn-element {
    min-height: 22px;
}

/* Benira product-design guardrails: wheel focus visibility and readable metadata. */
.benira-wheel-coupon:focus-visible,
.benira-wheel-auth-close:focus-visible,
.benira-wheel-send-code:focus-visible,
.benira-wheel-auth-actions button:focus-visible,
.benira-wheel-prize-copy:focus-visible {
    outline: 2px solid var(--bn-color-text,#0f172a) !important;
    outline-offset: 2px !important;
}
.benira-wheel-history-list small {
    color: #667085 !important;
}

/* Benira contrast guardrails: wheel helper text on light surfaces. */
.benira-wheel-chance-card small,
.benira-wheel-prize-card small,
.benira-wheel-history-list small,
.benira-wheel-phone-wrap span,
.benira-wheel-auth-legal,
.benira-wheel-chance-card.is-limit_reached > b,
.benira-wheel-prize-card > small {
    color: #667085 !important;
}

/* Benira focus guardrails: wheel primary controls use a consistent high-contrast ring. */
.benira-wheel-tab:focus-visible,
.benira-wheel-spin-button:focus-visible,
.benira-wheel-again:focus-visible {
    outline: 2px solid var(--bn-color-text,#0f172a) !important;
    outline-offset: 2px !important;
}
