/* ==========================================================================
   Black Friday wheel: tokens, base styles and page shell.
   Colors are sampled from the Figma screenshots. The page is dark-only by design.
   Breakpoint: one column below 1024px, two columns (content right, wheel left) above.
   ========================================================================== */

/* ---------- Font: the project's YekanBakh (FaNum renders digits as Persian) ---------- */
@font-face { font-family: 'YekanBakh'; font-style: normal; font-weight: 300; font-display: swap;
    src: url('../../assets/fonts/iranyekanBack/woff2/YekanBakhFaNum-Light.woff2') format('woff2'); }
@font-face { font-family: 'YekanBakh'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../../assets/fonts/iranyekanBack/woff2/YekanBakhFaNum-Regular.woff2') format('woff2'); }
@font-face { font-family: 'YekanBakh'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('../../assets/fonts/iranyekanBack/woff2/YekanBakhFaNum-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'YekanBakh'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../../assets/fonts/iranyekanBack/woff2/YekanBakhFaNum-Bold.woff2') format('woff2'); }
@font-face { font-family: 'YekanBakh'; font-style: normal; font-weight: 800; font-display: swap;
    src: url('../../assets/fonts/iranyekanBack/woff2/YekanBakhFaNum-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'YekanBakh'; font-style: normal; font-weight: 900; font-display: swap;
    src: url('../../assets/fonts/iranyekanBack/woff2/YekanBakhFaNum-Black.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
    color-scheme: dark;

    /* Surfaces */
    --bfw-bg: #070204;
    --bfw-surface: #170910;
    --bfw-surface-2: #21101a;
    --bfw-surface-glass: rgba(26, 10, 17, 0.8);

    /* Lines */
    --bfw-line: rgba(255, 255, 255, 0.08);
    --bfw-line-strong: rgba(255, 255, 255, 0.14);
    --bfw-line-pink: rgba(255, 77, 136, 0.5);

    /* Brand pink */
    --bfw-pink-300: #ff8db3;
    --bfw-pink-400: #ff5a93;
    --bfw-pink-500: #f5336f;
    --bfw-pink-600: #d91b5a;
    --bfw-pink-700: #a8123f;
    --bfw-pink-glow: rgba(245, 51, 111, 0.45);

    /* Gold (main wheel, promo cards) */
    --bfw-gold-300: #ffe08a;
    --bfw-gold-400: #f6c453;
    --bfw-gold-600: #c9922a;

    /* Text */
    --bfw-text: #ffffff;
    --bfw-text-2: #e6d6dc;
    --bfw-text-muted: #a08e96;

    /* Status */
    --bfw-success: #34d399;
    --bfw-danger: #ff5d6c;

    /* Shape */
    --bfw-radius-sm: 10px;
    --bfw-radius: 14px;
    --bfw-radius-lg: 20px;
    --bfw-radius-xl: 28px;
    --bfw-radius-pill: 999px;

    /* Layout */
    --bfw-font: 'YekanBakh', Tahoma, sans-serif;
    --bfw-header-h: 60px;
    --bfw-gutter: 16px;
    --bfw-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
    :root {
        --bfw-header-h: 72px;
        --bfw-gutter: 32px;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--bfw-header-h) + 12px);
}

body.bfw-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--bfw-text);
    font-family: var(--bfw-font);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    background:
        radial-gradient(120% 55% at 50% 0%, rgba(150, 12, 55, 0.38), transparent 62%),
        var(--bfw-bg);
    background-attachment: fixed;
}

@media (min-width: 1024px) {
    body.bfw-body {
        background:
            radial-gradient(45% 60% at 28% 42%, rgba(150, 12, 55, 0.4), transparent 70%),
            radial-gradient(60% 40% at 80% 0%, rgba(120, 10, 45, 0.25), transparent 70%),
            var(--bfw-bg);
        background-attachment: fixed;
    }
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--bfw-gold-400);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.bfw-noscript {
    margin: 40px 16px;
    text-align: center;
    color: var(--bfw-text-2);
}

/* ---------- Utilities ---------- */
.bfw-container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-left: max(var(--bfw-gutter), env(safe-area-inset-left));
    padding-right: max(var(--bfw-gutter), env(safe-area-inset-right));
}

.bfw-only-desktop { display: none; }

@media (min-width: 1024px) {
    .bfw-only-mobile { display: none; }
    .bfw-only-desktop { display: inline; }
}

.bfw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.bfw-icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: currentColor;
}

/* ---------- Buttons ---------- */
.bfw-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    text-decoration: none;
    white-space: nowrap;
    c‍ursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s, opacity 0.2s;
}

.bfw-btn:active:not(:disabled) { transform: scale(0.98); }
.bfw-btn:disabled { c‍ursor: not-allowed; opacity: 0.55; }

.bfw-btn--ghost {
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--bfw-line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--bfw-text);
    font-size: 14px;
    font-weight: 700;
}

.bfw-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.bfw-btn--primary {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border-radius: 16px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(180deg, var(--bfw-pink-400), var(--bfw-pink-600));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 10px 32px var(--bfw-pink-glow);
}

.bfw-btn--primary:hover:not(:disabled) {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        0 12px 40px rgba(245, 51, 111, 0.6);
}

/* ---------- Header ---------- */
.bfw-header {
    position: sticky;
    top: 0;
    z-index: 20;
    /* Room for the notch / status bar when the page is shown edge to edge (viewport-fit=cover). */
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid var(--bfw-line);
    background: rgba(7, 2, 4, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.bfw-header__inner {
    height: var(--bfw-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bfw-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Keep the transparent wordmark intact: it must not be cropped into a badge or given its own background. */
.bfw-brand__frame {
    display: block;
    flex: none;
    width: 130px;
}

.bfw-brand__logo {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 1024px) {
    .bfw-brand__frame { width: 220px; }
}

.bfw-brand__mark {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.bfw-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--bfw-pink-500);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bfw-nav { display: none; }

@media (min-width: 1024px) {
    .bfw-nav {
        display: flex;
        align-items: center;
        gap: 36px;
    }
}

.bfw-nav__link {
    color: var(--bfw-text-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.bfw-nav__link:hover { color: var(--bfw-text); }
.bfw-nav__link.is-active { color: var(--bfw-pink-400); }

/* Safety net: nothing decorative (glows, rotating layers) may widen the page on phones.
   `clip` rather than `hidden` so the sticky header keeps working. */
.bfw-page {
    overflow-x: hidden;
    overflow-x: clip;
}

/* ---------- Main stage: hero / wheel / step panel ---------- */
/* No z-index here on purpose: it would trap the mobile sheet (fixed, z-index 50) under the footer. */
.bfw-main {
    position: relative;
    /* Room under the last section now that there is no footer. */
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
    .bfw-main { padding-bottom: 80px; }
}

.bfw-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "hero"
        "wheel"
        "panel";
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 32px;
}

.bfw-stage__hero  { grid-area: hero; }
.bfw-stage__wheel { grid-area: wheel; }
.bfw-stage__panel { grid-area: panel; }

@media (min-width: 1024px) {
    /* RTL grid: the first column is on the right, so content sits right and the wheel left.
       Hero and panel meet at the vertical middle, which lines up with the wheel's center. */
    .bfw-stage {
        min-height: calc(100vh - var(--bfw-header-h));
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: 1fr 1fr;
        grid-template-areas:
            "hero  wheel"
            "panel wheel";
        column-gap: 64px;
        row-gap: 28px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .bfw-stage__hero  { align-self: end; }
    .bfw-stage__wheel { align-self: center; }
    .bfw-stage__panel { align-self: start; }
}

/* Hero */
.bfw-stage__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

@media (min-width: 1024px) {
    .bfw-stage__hero {
        align-items: flex-start;
        text-align: start;
    }
}

.bfw-hero-title {
    width: min(66vw, 280px);
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(245, 51, 111, 0.35));
}

@media (min-width: 1024px) {
    .bfw-hero-title { width: 420px; }
}

/* Countdown pill */
.bfw-countdown {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid var(--bfw-line-pink);
    border-radius: var(--bfw-radius-pill);
    background: rgba(40, 8, 20, 0.6);
    font-size: 13px;
}

.bfw-countdown__icon { color: var(--bfw-pink-400); }

.bfw-countdown__label {
    color: var(--bfw-text-2);
    font-weight: 600;
    white-space: nowrap;
}

.bfw-countdown__units {
    /* A timer reads like a clock even in Farsi: days on the left, seconds on the right. */
    direction: ltr;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.bfw-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 22px;
    line-height: 1.2;
}

.bfw-countdown__unit b {
    font-size: 15px;
    font-weight: 800;
}

.bfw-countdown__unit small {
    color: var(--bfw-text-muted);
    font-size: 10px;
}

.bfw-countdown__sep {
    color: var(--bfw-text-muted);
    font-weight: 700;
    line-height: 1.2;
}

/* ---------- Wheel ---------- */
.bfw-wheel {
    /* Main wheel palette (bright pink); the simple wheel overrides these below. */
    --w-rim-a: #ff5a93;
    --w-rim-b: #a8123f;
    --w-rim-fill: #14050b;
    --w-bright-0: #b3164a;
    --w-bright-1: #f0306e;
    --w-bright-2: #ff6a9c;
    --w-dark-0: #0e0307;
    --w-dark-1: #2a0915;
    --w-mid-0: #5a0f2a;
    --w-mid-1: #8e1a44;
    --w-label-bright: #ffffff;
    --w-label-dark: #ff7aa6;
    --w-label-mid: #ffd6e4;
    --w-light: #ffffff;
    --w-light-alt: #ff4f8a;
    --w-hub-ring: var(--bfw-pink-400);
    --w-glow: 0 0 50px rgba(245, 51, 111, 0.55), 0 0 130px rgba(245, 51, 111, 0.28);

    position: relative;
    width: min(86vw, 360px);
    aspect-ratio: 1;
    margin-inline: auto;
    transition: opacity 0.4s, filter 0.4s;
}

.bfw-wheel.is-simple {
    --w-rim-a: #f3a5c2;
    --w-rim-b: #7a2546;
    --w-rim-fill: #12050b;
    --w-bright-0: #2e0a18;
    --w-bright-1: #4d1229;
    --w-bright-2: #6a1a3b;
    --w-dark-0: #0b0306;
    --w-dark-1: #1d0811;
    --w-mid-0: #24081a;
    --w-mid-1: #3a0f26;
    --w-label-bright: #ffc2d6;
    --w-label-dark: #f09ab9;
    --w-label-mid: #ffd6e4;
    --w-light: #f7e3ea;
    --w-light-alt: #f3a5c2;
    --w-hub-ring: #f3a5c2;
    --w-glow: 0 0 40px rgba(245, 51, 111, 0.3), 0 0 110px rgba(245, 51, 111, 0.14);
}

@media (min-width: 1024px) {
    .bfw-wheel { width: 460px; }
}

.bfw-wheel.is-dimmed { opacity: 0.45; filter: saturate(0.6); }
.bfw-wheel.is-blurred { opacity: 0.6; filter: blur(3px); }

.bfw-wheel__glow {
    position: absolute;
    inset: 2%;
    border-radius: 50%;
    box-shadow: var(--w-glow);
}

.bfw-wheel__layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.bfw-wheel__disc-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 50%;
}

.bfw-wheel__disc {
    transform-origin: 50% 50%;
    will-change: transform;
}

/* Rim */
.bfw-wheel__rim { fill: var(--w-rim-fill); stroke-width: 4; }
.bfw-wheel__rim-stop-a { stop-color: var(--w-rim-a); }
.bfw-wheel__rim-stop-b { stop-color: var(--w-rim-b); }
.bfw-wheel__rim-inner { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; }

.bfw-wheel__light {
    fill: var(--w-light);
    animation: bfw-wheel-light 1.6s ease-in-out infinite;
}

.bfw-wheel__light.is-alt {
    fill: var(--w-light-alt);
    animation-delay: -0.8s;
}

.bfw-wheel.is-spinning .bfw-wheel__light { animation-duration: 0.36s; }

@keyframes bfw-wheel-light {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Slices */
.bfw-wheel__g-bright-0 { stop-color: var(--w-bright-0); }
.bfw-wheel__g-bright-1 { stop-color: var(--w-bright-1); }
.bfw-wheel__g-bright-2 { stop-color: var(--w-bright-2); }
.bfw-wheel__g-dark-0 { stop-color: var(--w-dark-0); }
.bfw-wheel__g-dark-1 { stop-color: var(--w-dark-1); }
.bfw-wheel__g-mid-0 { stop-color: var(--w-mid-0); }
.bfw-wheel__g-mid-1 { stop-color: var(--w-mid-1); }

.bfw-wheel__empty { fill: var(--w-dark-1); }

.bfw-wheel__slice { transition: opacity 0.4s; }
.bfw-wheel__slice-bg { stroke: rgba(0, 0, 0, 0.35); stroke-width: 1; }

.bfw-wheel__label {
    font-family: var(--bfw-font);
    font-weight: 800;
    fill: var(--w-label-dark);
}

.bfw-wheel__slice.is-bright .bfw-wheel__label { fill: var(--w-label-bright); }
.bfw-wheel__slice.is-mid .bfw-wheel__label { fill: var(--w-label-mid); }

/* Winning slice */
.bfw-wheel.has-winner .bfw-wheel__slice:not(.is-winner) { opacity: 0.5; }

.bfw-wheel__winner {
    fill: rgba(255, 211, 107, 0.1);
    stroke: var(--bfw-gold-400);
    stroke-width: 5;
    stroke-linejoin: round;
    animation: bfw-wheel-winner 1.2s ease-in-out infinite;
}

@keyframes bfw-wheel-winner {
    0%, 100% { stroke-opacity: 1; }
    50% { stroke-opacity: 0.55; }
}

/* Hub */
.bfw-wheel__hub {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 19%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 3px solid var(--w-hub-ring);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #2b0a17, #0f0308 75%);
    color: var(--w-hub-ring);
    box-shadow: 0 0 22px rgba(245, 51, 111, 0.45), inset 0 0 14px rgba(245, 51, 111, 0.35);
    transform: translate(-50%, -50%);
}

.bfw-wheel__hub .bfw-icon {
    width: 46%;
    height: 46%;
}

/* Pointer */
.bfw-wheel__front { filter: drop-shadow(0 4px 10px rgba(245, 51, 111, 0.6)); }

.bfw-wheel__pointer {
    transform-box: fill-box;
    transform-origin: 50% 15%;
}

/* ---------- Shared bits: spinner, text link ---------- */
.bfw-spinner {
    display: inline-block;
    flex: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bfw-rotate 0.7s linear infinite;
}

.bfw-spinner--pink {
    border-color: rgba(245, 51, 111, 0.25);
    border-top-color: var(--bfw-pink-400);
}

@keyframes bfw-rotate { to { transform: rotate(360deg); } }
@keyframes bfw-fade-in { from { opacity: 0; } }

.bfw-link {
    appearance: none;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bfw-pink-300);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    c‍ursor: pointer;
}

.bfw-link:disabled { opacity: 0.5; c‍ursor: default; }

/* ---------- Sheet: bottom sheet on mobile, card on desktop ---------- */
html.bfw-lock,
html.bfw-lock body { overflow: hidden; }

.bfw-sheet-root {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    transition: padding-bottom 0.15s ease-out;   /* padding-bottom = on-screen keyboard height */
}

/* The sheet and dialog take focus themselves on open (for screen readers); no ring for that. */
.bfw-sheet:focus,
.bfw-dialog:focus { outline: none; }

.bfw-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 1, 3, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: bfw-fade-in 0.25s ease-out;
}

.bfw-sheet {
    position: relative;
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    border-top: 1px solid var(--bfw-line-pink);
    border-radius: var(--bfw-radius-xl) var(--bfw-radius-xl) 0 0;
    background: linear-gradient(180deg, #1c0912, #0d0307);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6), 0 -2px 30px rgba(245, 51, 111, 0.15);
    animation: bfw-sheet-up 0.38s var(--bfw-ease-out);
}

@keyframes bfw-sheet-up { from { transform: translateY(100%); } }

.bfw-sheet__handle {
    width: 40px;
    height: 4px;
    margin: 0 auto 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
}

.bfw-sheet__close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bfw-line-strong);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--bfw-text-2);
    c‍ursor: pointer;
}

.bfw-sheet__close:hover { background: rgba(255, 255, 255, 0.1); }

@media (min-width: 1024px) {
    .bfw-sheet-root {
        position: static;
        display: block;
    }

    .bfw-sheet__backdrop,
    .bfw-sheet__handle { display: none; }

    .bfw-sheet {
        max-height: none;
        overflow: visible;
        padding: 36px 32px 28px;
        border: 1px solid var(--bfw-line-pink);
        border-radius: var(--bfw-radius-xl);
        background: linear-gradient(180deg, rgba(36, 12, 23, 0.94), rgba(15, 5, 9, 0.94));
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(245, 51, 111, 0.18);
        animation: bfw-card-in 0.35s var(--bfw-ease-out);
    }

    .bfw-sheet__close { top: 16px; left: 16px; }

    /* While a login step is open, the card replaces the hero and sits beside the wheel's center. */
    .bfw-stage.is-focus .bfw-stage__hero { display: none; }
    .bfw-stage.is-focus .bfw-stage__panel {
        grid-row: 1 / 3;
        align-self: center;
    }
}

@keyframes bfw-card-in { from { opacity: 0; transform: translateY(12px); } }

/* Step content swap inside the sheet */
.bfw-step-enter-active,
.bfw-step-leave-active { transition: opacity 0.18s, transform 0.18s; }
.bfw-step-enter-from { opacity: 0; transform: translateX(-12px); }
.bfw-step-leave-to { opacity: 0; transform: translateX(12px); }

/* ---------- Step layout ---------- */
.bfw-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bfw-step--center { text-align: center; }

.bfw-step__title {
    margin: 0;
    padding-left: 40px;   /* room for the close button */
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
}

.bfw-step--center .bfw-step__title { padding: 0 40px; }

.bfw-step__lead {
    margin: -8px 0 0;
    color: var(--bfw-text-2);
    font-size: 14px;
}

.bfw-step__lead b { white-space: nowrap; }

.bfw-step__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: -4px 0 0;
    color: var(--bfw-text-muted);
    font-size: 12px;
    text-align: center;
}

.bfw-step__error {
    margin: -6px 0 0;
    color: var(--bfw-danger);
    font-size: 13px;
}

.bfw-step__badge {
    width: 64px;
    height: 64px;
    margin: 4px auto 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, var(--bfw-pink-400), var(--bfw-pink-700));
    color: #fff;
    box-shadow: 0 0 0 7px rgba(245, 51, 111, 0.12), 0 0 40px rgba(245, 51, 111, 0.55);
}

.bfw-step__badge .bfw-icon { width: 28px; height: 28px; }

/* ---------- Text field ---------- */
.bfw-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bfw-field__label {
    color: var(--bfw-text-2);
    font-size: 14px;
    font-weight: 700;
}

.bfw-field__box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 16px;
    border: 1px solid var(--bfw-line-strong);
    border-radius: var(--bfw-radius);
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bfw-field__box:focus-within {
    border-color: var(--bfw-pink-400);
    box-shadow: 0 0 0 3px rgba(245, 51, 111, 0.2);
}

.bfw-field.is-error .bfw-field__box {
    border-color: var(--bfw-danger);
    box-shadow: 0 0 0 3px rgba(255, 93, 108, 0.14);
}

.bfw-field__icon { color: var(--bfw-text-muted); }

.bfw-field__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--bfw-text);
    font-size: 16px;   /* 16px+ stops iOS from zooming in on focus */
    font-weight: 700;
}

.bfw-field__input[dir="ltr"] { text-align: right; }
.bfw-field__input::placeholder { color: rgba(255, 255, 255, 0.28); font-weight: 400; }

.bfw-field__status.is-valid { color: var(--bfw-success); }
.bfw-field__status.is-error { color: var(--bfw-danger); }

.bfw-field__error {
    margin: 0;
    color: var(--bfw-danger);
    font-size: 13px;
}

/* ---------- OTP boxes ---------- */
.bfw-otp {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.bfw-otp__input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    font-size: 16px;
    text-align: center;
    c‍ursor: text;
}

.bfw-otp__input::selection { background: transparent; }

.bfw-otp__box {
    flex: 0 1 56px;
    min-width: 0;
    height: 60px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bfw-line-strong);
    border-radius: var(--bfw-radius);
    background: rgba(255, 255, 255, 0.035);
    font-size: 24px;
    font-weight: 800;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bfw-otp__box.is-filled { border-color: rgba(245, 51, 111, 0.45); }

.bfw-otp__box.is-active {
    border-color: var(--bfw-pink-400);
    box-shadow: 0 0 0 3px rgba(245, 51, 111, 0.22);
}

.bfw-otp.is-error .bfw-otp__box { border-color: var(--bfw-danger); }
.bfw-otp.is-shake { animation: bfw-shake 0.4s; }

@keyframes bfw-shake {
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.bfw-otp__caret {
    width: 2px;
    height: 26px;
    background: var(--bfw-pink-400);
    animation: bfw-caret 1s steps(2) infinite;
}

@keyframes bfw-caret { 50% { opacity: 0; } }

.bfw-otp__timer {
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: -6px 0 0;
    color: var(--bfw-text-muted);
    font-size: 13px;
}

/* ---------- "Checking" loader over the wheel ---------- */
.bfw-stage__wheel { position: relative; }

.bfw-checking {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(100%, 340px);
    padding: 28px 24px;
    border: 1px solid var(--bfw-line-pink);
    border-radius: var(--bfw-radius-xl);
    background: rgba(18, 6, 11, 0.9);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(245, 51, 111, 0.2);
    text-align: center;
    transform: translate(-50%, -50%);
    animation: bfw-fade-in 0.3s;
}

.bfw-checking__ring {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border: 4px solid rgba(245, 51, 111, 0.2);
    border-top-color: var(--bfw-pink-400);
    border-right-color: var(--bfw-pink-400);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(245, 51, 111, 0.4);
    animation: bfw-rotate 0.9s linear infinite;
}

.bfw-checking__title {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 800;
}

.bfw-checking__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: start;
}

.bfw-checking__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bfw-text-muted);
    font-size: 14px;
    transition: color 0.3s;
}

.bfw-checking__item.is-done { color: var(--bfw-text-2); }
.bfw-checking__item .bfw-icon { color: var(--bfw-success); }

/* ---------- Wheel screens (phase 4) ---------- */
.bfw-stage__wheel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.bfw-btn--block { width: 100%; height: 52px; font-size: 15px; }

/* Badge above the wheel */
.bfw-wheel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--bfw-radius-pill);
    font-size: 13px;
    font-weight: 800;
}

.bfw-wheel-badge.is-main {
    border: 1px solid rgba(246, 196, 83, 0.55);
    background: linear-gradient(180deg, rgba(246, 196, 83, 0.18), rgba(246, 196, 83, 0.06));
    color: var(--bfw-gold-300);
    box-shadow: 0 0 20px rgba(246, 196, 83, 0.15);
}

.bfw-wheel-badge.is-simple {
    border: 1px solid var(--bfw-line-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--bfw-text-2);
}

/* "۱ شانس هدیه" pill in the hero */
.bfw-chance-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 8px 0 18px;
    border: 1px solid var(--bfw-line-pink);
    border-radius: var(--bfw-radius-pill);
    background: rgba(40, 8, 20, 0.6);
    font-size: 15px;
    font-weight: 800;
}

.bfw-chance-pill__icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bfw-pink-500);
    box-shadow: 0 0 14px var(--bfw-pink-glow);
}

.bfw-chance-pill__icon .bfw-icon { width: 17px; height: 17px; }

/* B2B purchase card */
.bfw-user-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--bfw-line-pink);
    border-radius: var(--bfw-radius-lg);
    background: linear-gradient(180deg, rgba(40, 10, 22, 0.85), rgba(18, 5, 10, 0.85));
    box-shadow: 0 0 40px rgba(245, 51, 111, 0.15);
    text-align: start;
}

.bfw-user-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bfw-line);
}

.bfw-user-card__hello {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.bfw-multiplier {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--bfw-pink-400), var(--bfw-pink-600));
    box-shadow: 0 6px 20px var(--bfw-pink-glow);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.bfw-user-card__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.bfw-user-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.bfw-user-card__row dt {
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
    color: var(--bfw-text-muted);
}

.bfw-user-card__row dt .bfw-icon { color: var(--bfw-pink-400); width: 16px; height: 16px; }

.bfw-user-card__row dd {
    margin: 0;
    font-weight: 700;
    text-align: end;
}

.bfw-user-card__hint {
    margin: 0;
    color: var(--bfw-text-muted);
    font-size: 12px;
}

/* Progress bar */
.bfw-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--bfw-line);
    border-radius: var(--bfw-radius);
    background: rgba(255, 255, 255, 0.03);
}

.bfw-progress__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.bfw-progress__label { color: var(--bfw-text-2); font-weight: 700; }
.bfw-progress__value { color: var(--bfw-pink-300); white-space: nowrap; }
.bfw-progress__value b { color: var(--bfw-text); }

.bfw-progress__track {
    height: 8px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

/* RTL: the bar fills from the right. */
.bfw-progress__fill {
    height: 100%;
    margin-inline-start: 0;
    border-radius: 8px;
    background: linear-gradient(270deg, var(--bfw-pink-600), var(--bfw-pink-400));
    box-shadow: 0 0 12px var(--bfw-pink-glow);
    transition: width 0.8s var(--bfw-ease-out);
}

.bfw-progress.is-reached .bfw-progress__label { color: var(--bfw-gold-300); }
.bfw-progress.is-reached .bfw-progress__fill {
    background: linear-gradient(270deg, var(--bfw-gold-600), var(--bfw-gold-300));
    box-shadow: 0 0 12px rgba(246, 196, 83, 0.5);
}

/* Spin panel */
.bfw-spin-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

.bfw-spin-panel__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.bfw-spin-panel__lead {
    margin: -6px 0 4px;
    color: var(--bfw-text-2);
    font-size: 14px;
}

.bfw-spin-panel__note {
    margin: -4px 0 0;
    color: var(--bfw-text-muted);
    font-size: 13px;
}

@media (min-width: 1024px) {
    .bfw-spin-panel { text-align: start; }
}

/* Main-wheel teaser card */
.bfw-teaser {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(246, 196, 83, 0.45);
    border-radius: var(--bfw-radius-lg);
    background: linear-gradient(180deg, rgba(246, 196, 83, 0.1), rgba(246, 196, 83, 0.03));
    color: inherit;
    text-align: start;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.bfw-teaser:hover { border-color: var(--bfw-gold-400); }

.bfw-teaser__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bfw-teaser__title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--bfw-gold-300);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.bfw-teaser__title .bfw-icon { flex: none; }

.bfw-teaser__text {
    margin: 0;
    color: var(--bfw-text-2);
    font-size: 13px;
}

.bfw-teaser__prizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.bfw-teaser__prizes li {
    padding: 2px 10px;
    border: 1px solid rgba(246, 196, 83, 0.3);
    border-radius: var(--bfw-radius-pill);
    color: var(--bfw-gold-300);
    font-size: 12px;
}

.bfw-teaser__arrow { flex: none; color: var(--bfw-gold-400); }

.bfw-wheel.bfw-wheel--mini {
    --w-glow: 0 0 18px rgba(245, 51, 111, 0.45);
    flex: none;
    width: 92px;
    margin: 0;
}

.bfw-wheel--mini .bfw-wheel__hub { border-width: 2px; }
.bfw-wheel--mini .bfw-wheel__front { filter: none; }

/* Confirmation dialog */
.bfw-dialog-root {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
}

.bfw-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 1, 3, 0.7);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: bfw-fade-in 0.2s;
}

.bfw-dialog {
    position: relative;
    width: min(100%, 420px);
    padding: 26px 22px 22px;
    border: 1px solid rgba(246, 196, 83, 0.5);
    border-radius: var(--bfw-radius-xl);
    background: linear-gradient(180deg, #24101a, #10050a);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(246, 196, 83, 0.12);
    text-align: center;
    animation: bfw-card-in 0.3s var(--bfw-ease-out);
}

.bfw-dialog__title {
    margin: 0 0 12px;
    color: var(--bfw-gold-300);
    font-size: 20px;
    font-weight: 900;
}

.bfw-dialog__body {
    color: var(--bfw-text-2);
    font-size: 14px;
}

.bfw-dialog__body p { margin: 0 0 10px; }
.bfw-dialog__body b { color: var(--bfw-text); }

.bfw-dialog__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

/* ---------- Prize / result (phase 5) ---------- */
.bfw-prize {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

.bfw-prize__eyebrow {
    margin: 0;
    color: var(--bfw-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.bfw-prize__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, var(--bfw-pink-400), var(--bfw-pink-700));
    color: #fff;
    box-shadow: 0 0 0 8px rgba(245, 51, 111, 0.12), 0 0 44px rgba(245, 51, 111, 0.6);
    animation: bfw-pop 0.5s var(--bfw-ease-out);
}

.bfw-prize__icon .bfw-icon { width: 32px; height: 32px; }

.bfw-prize.is-empty .bfw-prize__icon {
    background: radial-gradient(circle at 50% 35%, #3a1a28, #1a0a12);
    color: var(--bfw-pink-300);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04);
}

@keyframes bfw-pop {
    0% { transform: scale(0.4); opacity: 0; }
    70% { transform: scale(1.08); opacity: 1; }
}

.bfw-prize__title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.5;
    white-space: pre-line;      /* the admin's message keeps its line breaks */
    overflow-wrap: anywhere;
}

.bfw-prize__text {
    margin: -6px 0 2px;
    color: var(--bfw-text-2);
    font-size: 14px;
}

/* Discount code + copy */
.bfw-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border: 1.5px dashed var(--bfw-pink-400);
    border-radius: var(--bfw-radius);
    background: rgba(245, 51, 111, 0.07);
}

.bfw-code__value {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: Consolas, 'Segoe UI', monospace;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: right;
    user-select: all;
}

.bfw-code__copy {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--bfw-pink-400), var(--bfw-pink-600));
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    c‍ursor: pointer;
    transition: background 0.2s;
}

.bfw-code__copy .bfw-icon { width: 17px; height: 17px; }
.bfw-code__copy.is-done { background: var(--bfw-success); color: #05291c; }

/* Product tracking code */
.bfw-tracking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--bfw-line);
    border-radius: var(--bfw-radius);
    background: rgba(255, 255, 255, 0.035);
    font-size: 13px;
}

.bfw-tracking span { color: var(--bfw-text-muted); }
.bfw-tracking b { font-size: 16px; letter-spacing: 0.5px; }

/* Already spun: same content as a card on the page */
.bfw-prize-card {
    padding: 24px 20px;
    border: 1px solid var(--bfw-line-pink);
    border-radius: var(--bfw-radius-xl);
    background: linear-gradient(180deg, rgba(36, 12, 23, 0.9), rgba(15, 5, 9, 0.9));
    box-shadow: 0 0 50px rgba(245, 51, 111, 0.15);
}

.bfw-prize-card .bfw-prize__icon { animation: none; }

/* Earlier prizes (B2B: simple wheel, then main wheel) */
.bfw-prize-card__earlier {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--bfw-line);
    list-style: none;
    color: var(--bfw-text-2);
    font-size: 13px;
}

.bfw-prize-card__earlier li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bfw-prize-card__earlier .bfw-icon { color: var(--bfw-pink-400); }
.bfw-prize-card__ref { margin-inline-start: auto; color: var(--bfw-text-muted); }

/* What's next after the spin: buy and come back / register */
.bfw-prize-card__next {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--bfw-line-pink);
    border-radius: var(--bfw-radius);
    background: rgba(245, 51, 111, 0.06);
    text-align: center;
}

.bfw-prize-card__next-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    color: var(--bfw-gold-400);
    font-weight: 800;
}

.bfw-prize-card__next-text {
    margin: 0;
    color: var(--bfw-text-2);
    font-size: 13px;
    line-height: 1.9;
}

/* Spin panel: the simple-wheel prize of a B2B user now spinning the main wheel */
.bfw-spin-panel__earlier {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 6px;
    margin: 0;
    padding: 10px 12px;
    border: 1px dashed var(--bfw-line-pink);
    border-radius: var(--bfw-radius);
    color: var(--bfw-text-2);
    font-size: 13px;
}

.bfw-spin-panel__earlier .bfw-icon { color: var(--bfw-pink-400); }

@media (min-width: 1024px) {
    .bfw-spin-panel__earlier { justify-content: flex-start; }
}

/* Confetti canvas over everything, never catching clicks */
.bfw-confetti {
    position: fixed;
    inset: 0;
    z-index: 70;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---------- Landing hero text + guest panel (phase 6) ---------- */
.bfw-hero-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Phones and tablets: the main button must be on the first screen without scrolling (product owner,
   2026-11-27). Tighter spacing, a smaller title, no lead paragraph (the «دو گردونه شانس» section says the
   same), and the stage wheel sized from the screen height: 100svh minus everything else above the button. */
@media (max-width: 1023px) {
    .bfw-stage { gap: 14px; padding-top: 12px; }
    .bfw-stage__hero { gap: 10px; }
    .bfw-hero-title { width: min(58vw, 240px); }
    .bfw-hero-text__headline { font-size: 20px; line-height: 1.4; }
    .bfw-hero-text__lead { display: none; }
    .bfw-stage__wheel .bfw-wheel {
        width: min(86vw, 360px, max(230px, 100vh - 370px));
        width: min(86vw, 360px, max(230px, 100svh - 370px));
    }
}

.bfw-hero-text__headline {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.5;
}

.bfw-hero-text__lead {
    max-width: 520px;
    margin: 0;
    color: var(--bfw-text-2);
    font-size: 14px;
}

@media (min-width: 1024px) {
    .bfw-hero-text__headline { font-size: 36px; }
    .bfw-hero-text__lead { font-size: 16px; }
}

.bfw-landing {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bfw-landing__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 1024px) {
    .bfw-landing__actions { flex-direction: row; }
    .bfw-landing__actions .bfw-btn--primary { flex: 1.4; }
    .bfw-landing__secondary { flex: 1; height: 56px; }
}

.bfw-landing__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    color: var(--bfw-text-muted);
    font-size: 13px;
}

.bfw-landing__note .bfw-icon { width: 15px; height: 15px; }

@media (min-width: 1024px) {
    .bfw-landing__note { justify-content: flex-start; }
}

.bfw-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.bfw-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    border: 1px solid var(--bfw-line);
    border-radius: var(--bfw-radius);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.bfw-stats__item b { font-size: 14px; font-weight: 800; }
.bfw-stats__item span { color: var(--bfw-text-muted); font-size: 11px; }

/* Status card: not started / ended / error */
.bfw-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 20px;
    border: 1px solid var(--bfw-line-pink);
    border-radius: var(--bfw-radius-xl);
    background: linear-gradient(180deg, rgba(36, 12, 23, 0.9), rgba(15, 5, 9, 0.9));
    text-align: center;
}

.bfw-status__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(245, 51, 111, 0.15);
    color: var(--bfw-pink-300);
}

.bfw-status.is-error .bfw-status__icon { background: rgba(255, 93, 108, 0.14); color: var(--bfw-danger); }
.bfw-status__icon .bfw-icon { width: 26px; height: 26px; }

.bfw-status__title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
}

.bfw-status__text {
    margin: -4px 0 4px;
    color: var(--bfw-text-2);
    font-size: 14px;
}

/* Loading skeleton */
.bfw-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px 0;
}

.bfw-skeleton__line,
.bfw-skeleton__button {
    display: block;
    height: 14px;
    width: 60%;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    background-size: 200% 100%;
    animation: bfw-shimmer 1.4s linear infinite;
}

.bfw-skeleton__line.is-wide { width: 85%; }
.bfw-skeleton__button { width: 100%; height: 56px; margin-top: 6px; border-radius: 16px; }

@keyframes bfw-shimmer { to { background-position: -200% 0; } }

/* ---------- Info sections ---------- */
.bfw-sections {
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding-top: 24px;
}

.bfw-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 900;
}

.bfw-section__title .bfw-icon { color: var(--bfw-pink-400); }

@media (min-width: 1024px) {
    .bfw-sections { gap: 80px; }
    .bfw-section__title { font-size: 28px; margin-bottom: 24px; }
}

/* Prizes grid */
.bfw-prizes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) { .bfw-prizes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The number of prizes comes from the admin: fill the row on desktop instead of a fixed 6. */
@media (min-width: 1024px) { .bfw-prizes { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }

.bfw-prizes__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    border: 1px solid var(--bfw-line-pink);
    border-radius: var(--bfw-radius-lg);
    background: linear-gradient(180deg, rgba(40, 10, 22, 0.7), rgba(16, 5, 10, 0.7));
    text-align: center;
}

.bfw-prizes__item.is-main { border-color: rgba(246, 196, 83, 0.55); }

.bfw-prizes__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, var(--bfw-pink-400), var(--bfw-pink-700));
    box-shadow: 0 0 22px rgba(245, 51, 111, 0.45);
}

.bfw-prizes__item.is-main .bfw-prizes__icon {
    background: radial-gradient(circle at 50% 35%, var(--bfw-gold-300), var(--bfw-gold-600));
    color: #2a1a00;
    box-shadow: 0 0 22px rgba(246, 196, 83, 0.45);
}

.bfw-prizes__icon.has-image {
    overflow: hidden;
    background: #fff;
}

.bfw-prizes__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bfw-prizes__item.is-empty .bfw-prizes__icon {
    background: #2a1420;
    color: var(--bfw-pink-300);
    box-shadow: none;
}

.bfw-prizes__name { font-size: 15px; font-weight: 800; }
.bfw-prizes__detail { color: var(--bfw-text-muted); font-size: 12px; }

/* The two wheels */
.bfw-wheels {
    display: grid;
    gap: 14px;
}

@media (min-width: 1024px) { .bfw-wheels { grid-template-columns: 1fr 1fr; } }

.bfw-wheels__card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--bfw-line-strong);
    border-radius: var(--bfw-radius-lg);
    background: rgba(255, 255, 255, 0.03);
}

.bfw-wheels__card.is-main {
    border-color: rgba(246, 196, 83, 0.5);
    background: linear-gradient(180deg, rgba(246, 196, 83, 0.08), rgba(246, 196, 83, 0.02));
}

.bfw-wheels__body {
    flex: 1;
    min-width: 0;
}

.bfw-wheels__name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.bfw-wheels__card.is-main .bfw-wheels__name .bfw-icon { color: var(--bfw-gold-400); }

.bfw-wheels__audience {
    margin: 2px 0 8px;
    color: var(--bfw-pink-300);
    font-size: 13px;
    font-weight: 800;
}

.bfw-wheels__card.is-main .bfw-wheels__audience { color: var(--bfw-gold-300); }

.bfw-wheels__text {
    margin: 0;
    color: var(--bfw-text-2);
    font-size: 13px;
}

.bfw-wheel.bfw-wheel--preview {
    --w-glow: 0 0 24px rgba(245, 51, 111, 0.4);
    flex: none;
    width: 108px;
    margin: 0;
}

@media (min-width: 1024px) {
    .bfw-wheel.bfw-wheel--preview { width: 132px; }
}

.bfw-wheel--preview .bfw-wheel__hub { border-width: 2px; }
.bfw-wheel--preview .bfw-wheel__front { filter: none; }

/* How it works */
.bfw-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 1024px) { .bfw-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bfw-steps__item {
    padding: 20px;
    border: 1px solid var(--bfw-line);
    border-radius: var(--bfw-radius-lg);
    background: rgba(255, 255, 255, 0.03);
}

.bfw-steps__num {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--bfw-pink-400), var(--bfw-pink-600));
    box-shadow: 0 6px 18px var(--bfw-pink-glow);
    font-size: 18px;
    font-weight: 900;
}

.bfw-steps__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
}

.bfw-steps__text {
    margin: 0;
    color: var(--bfw-text-muted);
    font-size: 13px;
}

/* FAQ */
.bfw-faq {
    display: grid;
    gap: 10px;
    align-items: start;
}

@media (min-width: 1024px) { .bfw-faq { grid-template-columns: 1fr 1fr; } }

.bfw-faq__item {
    border: 1px solid var(--bfw-line);
    border-radius: var(--bfw-radius);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s;
}

.bfw-faq__item[open] { border-color: var(--bfw-line-pink); }

.bfw-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    list-style: none;
    c‍ursor: pointer;
}

.bfw-faq__q::-webkit-details-marker { display: none; }

.bfw-faq__chevron {
    flex: none;
    color: var(--bfw-pink-400);
    transition: transform 0.2s;
}

.bfw-faq__item[open] .bfw-faq__chevron { transform: rotate(180deg); }

.bfw-faq__a {
    margin: 0;
    padding: 0 16px 16px;
    color: var(--bfw-text-2);
    font-size: 14px;
    white-space: pre-line;   /* line breaks typed in the admin */
}

/* ---------- Dev panel (Development only) ---------- */
.bfw-dev {
    position: fixed;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1000;
    width: max-content;
    max-width: calc(100vw - 24px);
    font-family: Consolas, 'Segoe UI', monospace;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

.bfw-dev__toggle {
    padding: 6px 10px;
    border: 1px solid var(--bfw-gold-600);
    border-radius: 8px;
    background: #1b1408;
    color: var(--bfw-gold-300);
    font: inherit;
    c‍ursor: pointer;
}

.bfw-dev__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 280px;
    max-width: 100%;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid var(--bfw-gold-600);
    border-radius: 10px;
    background: #14100a;
    color: #f1e6cf;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.bfw-dev__body label {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bfw-dev__body select {
    height: 30px;
    border: 1px solid #4a3c22;
    border-radius: 6px;
    background: #0d0a05;
    color: #f1e6cf;
    font: inherit;
}

.bfw-dev__warn,
.bfw-dev__hint { margin: 0; }
.bfw-dev__warn { color: #ffb4a8; }

.bfw-dev__actions {
    display: flex;
    gap: 6px;
}

.bfw-dev__actions button {
    flex: 1;
    height: 30px;
    border: 1px solid #4a3c22;
    border-radius: 6px;
    background: #2a2010;
    color: var(--bfw-gold-300);
    font: inherit;
    c‍ursor: pointer;
}

/* ---------- Footer ---------- */
.bfw-footer {
    margin-top: 48px;
    padding-top: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--bfw-line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--bfw-text-muted);
    font-size: 12px;
    text-align: center;
}
