/* Lucky spin wheel: draggable button, pop-up + 5 designs, prizes page, checkout prize cards, admin page */

/* ============ draggable button: the real wheel turning by itself, no card behind it ============ */
.spin-fab {
    position: fixed; right: 8px; bottom: 130px; z-index: 900; display: grid; justify-items: center; gap: 0; width: 66px; padding: 0; color: #fff;
    font: inherit; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; border: 0; background: none; box-shadow: none;
    -webkit-tap-highlight-color: transparent; animation: sf-bob 3.2s ease-in-out infinite;
}
.spin-fab[hidden] { display: none; }
.spin-fab.is-dragging { cursor: grabbing; animation: none; transform: scale(1.08); }
.spin-fab:focus-visible { outline: 3px solid #fde68a; outline-offset: 4px; border-radius: 50%; }
.spin-fab-disc { display: block; width: 58px; padding-top: 5px; }
.spin-fab .sw { width: 100%; margin: 0; }
.spin-fab .sw-disc { animation: sf-turn 16s linear infinite; }
.spin-fab .sw-svg { filter: drop-shadow(0 4px 5px rgba(15, 23, 42, .45)); }
.spin-fab .sw-pointer { top: -5px; border-left-width: 5px; border-right-width: 5px; border-top-width: 12px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.sw-fab-hub { position: absolute; top: 50%; left: 50%; z-index: 2; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fbbf24, 0 2px 4px rgba(0, 0, 0, .4); }
.spin-fab-tx {
    margin-top: 1px; font-size: .64rem; font-weight: 800; white-space: nowrap; line-height: 1.15; text-align: center; color: #fff;
    text-shadow: 0 1px 0 #4c1d95, 0 -1px 0 #4c1d95, 1px 0 0 #4c1d95, -1px 0 0 #4c1d95, 0 2px 6px rgba(76, 29, 149, .8);
}
.spin-fab-pin { position: absolute; top: 2px; right: 4px; width: 13px; height: 13px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; animation: sf-ping 1.8s ease-out infinite; }
@keyframes sf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sf-turn { to { transform: rotate(360deg); } }
@keyframes sf-ping { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 100% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); } }

/* ============ the wheel ============ */
.sw { position: relative; width: min(84vw, 330px); aspect-ratio: 1; margin: 0 auto; }
.sw-disc { width: 100%; height: 100%; border-radius: 50%; will-change: transform; }
.sw-svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 12px 18px rgba(15, 23, 42, .35)); }
.sw-text { font-family: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif; paint-order: stroke; }
.sw-slot { transition: filter .2s ease; }
.sw-slot-off { opacity: .45; }
.sw::before { content: ''; position: absolute; inset: -9%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, var(--sp-glow, rgba(99, 102, 241, .45)) 0%, rgba(0, 0, 0, 0) 68%); filter: blur(14px); pointer-events: none; }
.sw-disc { position: relative; z-index: 1; }
/* RGB light bulbs: colours roll red - orange - yellow - green - blue - violet, the light also chases round the rim */
.sw-bulb { animation: sw-rgb 4.2s linear infinite, sw-chase 1.4s ease-in-out infinite; }
.sw-halo { opacity: .4; animation: sw-rgb 4.2s linear infinite, sw-chase-halo 1.4s ease-in-out infinite; }
.sw.is-spinning .sw-bulb, .sw.is-spinning .sw-halo { animation-duration: 1.6s, .45s; }
@keyframes sw-rgb {
    0% { fill: #ff2d55; } 16% { fill: #ff9500; } 32% { fill: #ffe600; } 48% { fill: #34c759; } 64% { fill: #00c7ff; } 80% { fill: #af52de; } 100% { fill: #ff2d55; }
}
@keyframes sw-chase { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes sw-chase-halo { 0%, 100% { opacity: .55; } 50% { opacity: .08; } }
.sw-pointer {
    position: absolute; top: -10px; left: 50%; z-index: 3; width: 0; height: 0; transform: translateX(-50%); transform-origin: 50% 0;
    border-left: 17px solid transparent; border-right: 17px solid transparent; border-top: 40px solid var(--sp-pointer, #ef4444); filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .4));
}
.sw.is-spinning .sw-pointer { animation: sw-tick .14s linear infinite; }
@keyframes sw-tick { 0%, 100% { transform: translateX(-50%) rotate(0); } 50% { transform: translateX(-50%) rotate(-9deg); } }
.sw-hub {
    position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; place-items: center; width: 19%; aspect-ratio: 1; padding: 0; transform: translate(-50%, -50%);
    font: inherit; font-size: 1.15rem; color: #fff; cursor: pointer; border: 0; border-radius: 50%; background: var(--sp-btn, #4f46e5); box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}
.sw-hub:disabled { opacity: .6; cursor: default; }
.sw-hub:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.sw-mini { width: 100%; }
.sw-mini .sw-bulb, .sw-mini .sw-halo { animation: none; }
.sw-mini::before { display: none; }
.sw-mini .sw-svg { filter: none; }

/* ============ pop-up ============ */
body.spin-lock { overflow: hidden; }
.spin-modal {
    --sp-bg: #ffffff; --sp-fg: #1e1b4b; --sp-btn: linear-gradient(135deg, #4f46e5, #0891b2); --sp-btn-fg: #fff; --sp-pointer: #ef4444; --sp-soft: rgba(79, 70, 229, .1); --sp-glow: rgba(79, 70, 229, .35);
    position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 12px;
    background: radial-gradient(circle at 50% 42%, var(--sp-glow, rgba(79, 70, 229, .35)) 0%, rgba(6, 8, 22, .88) 62%);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: spin-fade .2s ease both;
}
@keyframes spin-fade { from { opacity: 0; } to { opacity: 1; } }
.spin-card {
    position: relative; width: 100%; max-width: 410px; max-height: 96vh; max-height: 96dvh; overflow-x: hidden; overflow-y: auto; padding: 14px 8px 16px; text-align: center;
    color: #fff; background: transparent; border-radius: 30px; box-shadow: none; text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
    animation: spin-pop .45s cubic-bezier(.22, 1.2, .36, 1) both;
}
@keyframes spin-pop { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
.spin-x {
    position: absolute; top: 10px; right: 10px; z-index: 5; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: inherit; cursor: pointer;
    border: 0; border-radius: 50%; background: var(--sp-soft);
}
.spin-x .icon { width: 18px; height: 18px; }
.spin-x:focus-visible, .spin-go:focus-visible, .spin-use:focus-visible, .spin-prizes:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.spin-h { margin: 2px 40px 6px; font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
.spin-note { margin: 0 6px 6px; padding: 8px 12px; font-size: .86rem; font-weight: 700; border-radius: 14px; background: var(--sp-soft); }
.spin-note.is-bad { color: #fff; background: #e11d48; }
.spin-stage { position: relative; padding: 16px 4px 14px; min-height: 120px; }
.spin-loading { width: 40px; height: 40px; margin: 40px auto; border-radius: 50%; border: 4px solid var(--sp-soft); border-top-color: #6366f1; animation: spin-rot .8s linear infinite; }
@keyframes spin-rot { to { transform: rotate(360deg); } }
.spin-go {
    display: block; width: 100%; min-height: 54px; padding: 0 16px; font: inherit; font-size: 1.08rem; font-weight: 800; color: var(--sp-btn-fg); cursor: pointer;
    border: 0; border-radius: 999px; background: var(--sp-btn); box-shadow: 0 12px 26px var(--sp-glow); transition: transform .15s ease, opacity .2s ease;
}
.spin-go:active:not(:disabled) { transform: scale(.97); }
.spin-go:disabled { opacity: .55; cursor: default; box-shadow: none; }
.spin-result { display: grid; gap: 5px; margin-top: 4px; padding: 14px 12px; border-radius: 22px; animation: spin-pop .4s cubic-bezier(.22, 1.2, .36, 1) both; }
.spin-result.is-win { background: linear-gradient(135deg, rgba(16, 185, 129, .2), rgba(245, 158, 11, .22)); box-shadow: inset 0 0 0 2px rgba(16, 185, 129, .45); }
.spin-result.is-lose { background: var(--sp-soft); }
.spin-result-ic { font-size: 2.4rem; line-height: 1; }
.spin-result-k { margin: 0; font-size: .9rem; font-weight: 700; opacity: .85; }
.spin-result-t { font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.spin-result-s { font-size: .82rem; opacity: .85; }
.spin-use {
    display: inline-flex; align-items: center; justify-content: center; justify-self: center; min-height: 46px; margin-top: 8px; padding: 0 24px; font-weight: 800; color: #fff;
    text-decoration: none; border-radius: 999px; background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 10px 22px rgba(5, 150, 105, .35);
}
.spin-use:hover { text-decoration: none; }
.spin-links { margin-top: 10px; }
.spin-prizes { font-size: .88rem; font-weight: 800; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.spin-confetti { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.spin-cf {
    position: absolute; top: -14px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--c); opacity: 0;
    animation: spin-cf var(--d) var(--w) ease-in forwards;
}
@keyframes spin-cf { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: .9; transform: translate3d(var(--dx), 640px, 0) rotate(var(--r)); } }

/* ---- the 5 designs (the pop-up gets data-design) ---- */
.spin-modal[data-design="neon"] { --sp-bg: linear-gradient(160deg, #0b1020, #1b1340); --sp-fg: #e0f2fe; --sp-btn: linear-gradient(135deg, #22d3ee, #a855f7); --sp-btn-fg: #06101f; --sp-pointer: #f472b6; --sp-soft: rgba(34, 211, 238, .14); --sp-glow: rgba(34, 211, 238, .5); }
.spin-modal[data-design="neon"] .spin-card { box-shadow: 0 0 0 1px rgba(34, 211, 238, .55), 0 0 40px rgba(34, 211, 238, .35), 0 30px 80px rgba(0, 0, 0, .6); }
.spin-modal[data-design="royal"] { --sp-bg: linear-gradient(160deg, #2e1065, #4c1d95 60%, #701a75); --sp-fg: #fef3c7; --sp-btn: linear-gradient(135deg, #f5d36b, #d4a017); --sp-btn-fg: #3b0764; --sp-pointer: #fcd34d; --sp-soft: rgba(253, 230, 138, .16); --sp-glow: rgba(212, 160, 23, .5); }
.spin-modal[data-design="royal"] .spin-card { box-shadow: 0 0 0 2px rgba(212, 160, 23, .75), 0 30px 80px rgba(0, 0, 0, .55); }
.spin-modal[data-design="fresh"] { --sp-bg: linear-gradient(160deg, #ecfdf5, #d1fae5 60%, #cffafe); --sp-fg: #064e3b; --sp-btn: linear-gradient(135deg, #059669, #14b8a6); --sp-btn-fg: #fff; --sp-pointer: #f97316; --sp-soft: rgba(5, 150, 105, .13); --sp-glow: rgba(5, 150, 105, .4); }
.spin-modal[data-design="festive"] { --sp-bg: linear-gradient(160deg, #fffbeb, #fee2e2 70%, #fef3c7); --sp-fg: #7f1d1d; --sp-btn: linear-gradient(135deg, #dc2626, #f59e0b); --sp-btn-fg: #fff; --sp-pointer: #16a34a; --sp-soft: rgba(220, 38, 38, .1); --sp-glow: rgba(220, 38, 38, .4); }

/* ============ "My prizes" page ============ */
.spin-prizes .sp-hero { margin: 8px 0 18px; padding: 24px 18px; text-align: center; color: #fff; border-radius: 28px; background: linear-gradient(135deg, #7c3aed, #db2777 60%, #f59e0b); box-shadow: 0 18px 40px rgba(124, 58, 237, .34); }
.sp-hero-ic { display: block; font-size: 2.6rem; line-height: 1; }
.sp-hero-t { margin: 6px 0 4px; font-size: 1.45rem; font-weight: 800; }
.sp-hero-s { margin: 0 0 12px; font-size: .9rem; color: rgba(255, 255, 255, .92); }
.sp-hero-btn { min-height: 46px; padding: 0 24px; font: inherit; font-weight: 800; color: #7c2d12; cursor: pointer; border: 0; border-radius: 999px; background: linear-gradient(135deg, #fef3c7, #fcd34d); box-shadow: 0 10px 22px rgba(15, 23, 42, .25); }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sp-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; border: 1px solid var(--glass-border); }
.sp-card-ic { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; font-size: 1.6rem; border-radius: 16px; background: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(245, 158, 11, .2)); }
.sp-card-tx { display: grid; gap: 2px; min-width: 0; }
.sp-card-tx strong { font-size: 1.02rem; line-height: 1.3; }
.sp-card-tx small { font-size: .8rem; color: var(--muted); }
.sp-left { color: #b45309 !important; font-weight: 700; }
.sp-use { margin: 14px 2px 0; font-size: .86rem; color: var(--muted); }
.sp-sub { margin: 22px 2px 10px; font-size: 1rem; font-weight: 800; }
.sp-card-past { opacity: .6; }

/* ============ checkout: use a prize ============ */
.spin-co-help { margin: 0 0 10px; font-size: .84rem; color: var(--muted); }
.spin-co-list { display: grid; gap: 8px; }
.spin-co-item { display: block; cursor: pointer; }
.spin-co-item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.spin-co-card { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: var(--glass); border: 2px solid var(--glass-border); transition: border-color .2s ease, box-shadow .25s ease, background .2s ease; }
.spin-co-ic { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; font-size: 1.3rem; border-radius: 12px; background: rgba(124, 58, 237, .12); }
.spin-co-tx { display: grid; gap: 1px; flex: 1 1 auto; min-width: 0; }
.spin-co-tx strong { font-size: .95rem; line-height: 1.3; }
.spin-co-tx small { font-size: .76rem; color: var(--muted); }
.spin-co-tick { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #059669, #10b981); opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.spin-co-tick .icon { width: 14px; height: 14px; }
.spin-co-item input:checked + .spin-co-card { border-color: #10b981; background: var(--glass-strong); box-shadow: 0 8px 20px rgba(5, 150, 105, .18); }
.spin-co-item input:checked + .spin-co-card .spin-co-tick { opacity: 1; transform: scale(1); }
.spin-co-item input:focus-visible + .spin-co-card { outline: 3px solid rgba(5, 150, 105, .4); outline-offset: 2px; }
.spin-co-warn { margin: 8px 0 0; color: #b45309; }

/* ============ admin page ============ */
.sa-hero { position: relative; overflow: hidden; margin: 0 0 16px; padding: 22px 18px; color: #fff; border-radius: 26px; background: linear-gradient(135deg, #581c87 0%, #be185d 55%, #f59e0b 100%); box-shadow: 0 18px 40px rgba(190, 24, 93, .3); }
.sa-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.sa-orb-1 { width: 190px; height: 190px; right: -50px; top: -70px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 70%); }
.sa-orb-2 { width: 120px; height: 120px; left: -30px; bottom: -40px; background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%); }
.sa-kicker { position: relative; display: inline-block; padding: 4px 12px; font-size: .78rem; font-weight: 700; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); }
.sa-title { position: relative; margin: 8px 0 4px; font-size: 1.6rem; font-weight: 800; }
.sa-sub { position: relative; margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.sa-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.sa-stats li { display: grid; gap: 1px; padding: 8px 4px; text-align: center; border-radius: 14px; background: rgba(255, 255, 255, .16); }
.sa-stats strong { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.sa-stats span { font-size: .68rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.sa-warn { margin: 8px 0 0; padding: 8px 12px; font-size: .84rem; font-weight: 700; color: #92400e; border-radius: 12px; background: rgba(245, 158, 11, .18); }
.sa-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 0 0 14px; }
.sa-design { display: block; cursor: pointer; }
.sa-design input, .sa-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sa-design-card { display: grid; gap: 6px; padding: 8px; text-align: center; border-radius: 18px; background: var(--glass); border: 2px solid var(--glass-border); transition: border-color .2s ease, box-shadow .25s ease; }
.sa-design-view { display: block; }
.sa-design-name { font-size: .8rem; font-weight: 800; }
.sa-design input:checked + .sa-design-card { border-color: #7c3aed; box-shadow: 0 10px 24px rgba(124, 58, 237, .25); }
.sa-design input:focus-visible + .sa-design-card { outline: 3px solid rgba(124, 58, 237, .45); outline-offset: 2px; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sa-chip { cursor: pointer; }
.sa-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; font-size: .88rem; font-weight: 800; border-radius: 999px; background: var(--glass); border: 2px solid var(--glass-border); }
.sa-chip input:checked + span { color: #fff; border-color: transparent; background: var(--primary-grad); }
.sa-chip input:focus-visible + span { outline: 3px solid rgba(79, 70, 229, .4); outline-offset: 2px; }
.sa-onoff { margin: 0 0 8px; font-weight: 800; }
.sa-sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: 8px 0; padding: 10px 14px; font-size: .88rem; font-weight: 700; border-radius: 14px; }
.sa-sum.is-ok { color: #065f46; background: rgba(16, 185, 129, .15); }
.sa-sum.is-off { color: #92400e; background: rgba(245, 158, 11, .18); }
.sa-board { display: grid; justify-items: center; gap: 8px; margin: 14px 0; }
.sa-board-wheel { width: min(100%, 340px); padding-top: 14px; }
.sa-board .sw { width: 100%; }
.sa-board .sw-slot { cursor: pointer; }
.sa-board .sw-slot:hover, .sa-board .sw-slot:focus { filter: brightness(1.15); outline: none; }
.sa-board-hint { margin: 0; text-align: center; }
.sa-slots { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.sa-slot { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); }
.sa-slot.is-off { opacity: .6; }
.sa-slot-ic { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; font-size: 1.4rem; border-radius: 14px; background: rgba(124, 58, 237, .12); }
.sa-slot-main { display: grid; gap: 3px; flex: 1 1 auto; min-width: 0; }
.sa-slot-t { font-size: .98rem; line-height: 1.3; }
.sa-slot-m { font-size: .78rem; color: var(--muted); }
.sa-slot-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sa-bar { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(100, 116, 139, .16); }
.sa-fill { display: block; width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7c3aed, #f59e0b); }
.sa-add { display: grid; }
.sa-add-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 16px; font-weight: 800; color: var(--primary); text-decoration: none; border-radius: 18px; border: 2px dashed var(--primary); background: var(--glass); }
.sa-add-btn:hover { text-decoration: none; background: var(--glass-strong); }
.sa-plus { display: inline-grid; place-items: center; width: 34px; height: 34px; font-size: 1.5rem; font-weight: 800; line-height: 1; color: #fff; border-radius: 50%; background: var(--primary-grad); }
.sa-plus-sm { width: 26px; height: 26px; font-size: 1.15rem; }
.sa-kind-in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sa-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.sa-kind { display: grid; gap: 2px; padding: 12px; cursor: pointer; text-align: center; border-radius: 18px; background: var(--glass); border: 2px solid var(--glass-border); transition: border-color .2s ease, box-shadow .25s ease, background .2s ease; }
.sa-kind-ic { font-size: 1.7rem; line-height: 1.1; }
.sa-kind-t { font-size: .92rem; font-weight: 800; }
.sa-kind-d { font-size: .72rem; line-height: 1.35; color: var(--muted); }
#k_discount:checked ~ .sa-kinds .sa-kind-discount,
#k_free_delivery:checked ~ .sa-kinds .sa-kind-free_delivery,
#k_free_product:checked ~ .sa-kinds .sa-kind-free_product,
#k_none:checked ~ .sa-kinds .sa-kind-none { border-color: #7c3aed; background: var(--glass-strong); box-shadow: 0 10px 24px rgba(124, 58, 237, .22); }
.sa-kind-in:focus-visible ~ .sa-kinds .sa-kind { outline-offset: 2px; }
.sa-fields .f-discount, .sa-fields .f-product, .sa-fields .f-min { display: none; }
#k_discount:checked ~ .sa-fields .f-discount { display: grid; }
#k_free_product:checked ~ .sa-fields .f-product { display: block; }
#k_discount:checked ~ .sa-fields .f-min, #k_free_delivery:checked ~ .sa-fields .f-min, #k_free_product:checked ~ .sa-fields .f-min { display: block; }

@media (min-width: 700px) {
    .sa-kinds { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .spin-fab, .spin-fab-pin, .sw-bulb, .sw-halo, .spin-card, .spin-result, .spin-modal, .spin-loading { animation: none; }
    .sw.is-spinning .sw-pointer { animation: none; }
}

/* ============ pop-up on the dimmed page: no white card (all designs) ============ */
.spin-modal[data-design] .spin-card { background: transparent; box-shadow: none; color: #fff; }
.spin-x { color: #fff; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); text-shadow: none; }
.spin-x:hover { background: rgba(255, 255, 255, .3); }
.spin-note { color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.spin-note.is-bad { color: #fff; background: rgba(225, 29, 72, .9); border-color: transparent; }
.spin-result { text-shadow: none; background: rgba(15, 23, 42, .62); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.spin-result.is-win { background: linear-gradient(135deg, rgba(5, 150, 105, .6), rgba(217, 119, 6, .55)); box-shadow: 0 0 0 2px rgba(110, 231, 183, .6), 0 16px 40px rgba(0, 0, 0, .35); }
.spin-result.is-lose { background: rgba(15, 23, 42, .62); }
.spin-result-img { display: block; width: 64px; height: 64px; margin: 0 auto 2px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.spin-prizes { color: #fff; }
.sw-hub { box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 6px 14px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: reduce) {
    .spin-fab, .spin-fab .sw-disc, .sw-bulb, .sw-halo { animation: none; }
}
.spin-fab .sw::before { display: none; }
