/* =============================================================================
   مهدافزار — جشنواره فروش ویژه عید
   festival.css · Dark Luxury · Red Neon · Glassmorphism کنترل‌شده · RTL
   Mobile-first · بدون هیچ فریم‌ورکی
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1) DESIGN TOKENS
--------------------------------------------------------------------------- */
:root {
    /* رنگ‌ها */
    --red: #FF1A1A;
    --red-deep: #E50909;
    --red-dark: #B00606;
    --red-soft: rgba(255, 26, 26, 0.12);
    --red-glow: rgba(229, 9, 9, 0.35);

    --black-0: #050505;
    --black-1: #080808;
    --black-2: #0D0D0F;
    --black-3: #111114;
    --black-4: #17171C;

    --white: #FFFFFF;
    --white-90: rgba(255, 255, 255, 0.92);
    --white-70: rgba(255, 255, 255, 0.72);
    --white-50: rgba(255, 255, 255, 0.52);
    --white-30: rgba(255, 255, 255, 0.30);
    --white-12: rgba(255, 255, 255, 0.12);
    --white-08: rgba(255, 255, 255, 0.08);
    --white-04: rgba(255, 255, 255, 0.04);

    --gray: #8B8B8B;
    --gray-light: #BDBDBD;
    --gold: #D4AF37;
    --gold-soft: rgba(212, 175, 55, 0.18);

    /* تایپوگرافی */
    --font: "Vazirmatn", "IRANSans", Tahoma, "Segoe UI", -apple-system, sans-serif;

    /* فرم‌ها */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* سایه‌ها */
    --shadow-card: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
    --shadow-glass: 0 10px 40px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow-red: 0 12px 36px -8px rgba(229, 9, 9, 0.55);
    --shadow-red-lg: 0 18px 60px -10px rgba(229, 9, 9, 0.55);

    /* حرکت */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spin: cubic-bezier(0.12, 0.72, 0.06, 1);
    --t-fast: 0.18s;
    --t: 0.32s;
    --t-slow: 0.6s;

    --header-h: 68px;
    --container: 1200px;
}

/* ---------------------------------------------------------------------------
   2) RESET / BASE
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--black-0);
    color: var(--white-90);
    line-height: 1.75;
    font-size: 16px;
    font-weight: 400;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font-family: inherit; }
ul, ol { list-style: none; }

section[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

::selection { background: rgba(229, 9, 9, 0.45); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black-1); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--red-dark), var(--black-4));
    border-radius: 10px;
    border: 2px solid var(--black-1);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.section { padding: 72px 0; position: relative; }

.glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--white-08);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-glass);
}

.text-red {
    color: var(--red);
    text-shadow: 0 0 24px var(--red-glow);
}

/* ---------------------------------------------------------------------------
   3) BUTTONS
--------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    transition: transform var(--t) var(--ease-out),
                box-shadow var(--t) var(--ease-out),
                background var(--t), border-color var(--t), opacity var(--t);
    overflow: hidden;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    min-height: 46px;
}
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn svg { flex-shrink: 0; }

.btn-sm { padding: 9px 18px; min-height: 40px; font-size: 0.86rem; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; min-height: 54px; }
.btn-xl { padding: 18px 42px; font-size: 1.12rem; min-height: 60px; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, #FF2A2A 0%, var(--red-deep) 55%, var(--red-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-red), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-red-lg), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:active { transform: translateY(-1px) scale(0.985); }

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    border: 1px solid var(--white-12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    border-color: rgba(229, 9, 9, 0.55);
    background: var(--red-soft);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -12px var(--red-glow);
}
.btn-outline:active { transform: translateY(-1px) scale(0.985); }

.btn:disabled,
.btn.is-loading {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none !important;
    pointer-events: none;
}

/* Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.38);
    pointer-events: none;
    animation: ripple 0.6s ease-out forwards;
}
.btn-outline .ripple, .icon-btn .ripple { background: rgba(229, 9, 9, 0.35); }
@keyframes ripple {
    to { transform: scale(3.2); opacity: 0; }
}

/* Spinner داخل دکمه */
.btn-spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
   4) HEADER
--------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 900;
    height: var(--header-h);
    transition: background var(--t), box-shadow var(--t), height var(--t), -webkit-backdrop-filter var(--t);
    background: rgba(8, 8, 8, 0.35);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    height: 60px;
    background: rgba(8, 8, 8, 0.72);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.9);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* برند */
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 13px;
    background: linear-gradient(160deg, rgba(255, 26, 26, 0.16), rgba(229, 9, 9, 0.05));
    border: 1px solid rgba(229, 9, 9, 0.35);
    box-shadow: 0 0 22px -6px var(--red-glow);
    transition: transform var(--t) var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-badge {
    font-size: 0.66rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ناوبری */
.main-nav {
    display: none;
    align-items: center;
    gap: 6px;
    margin-inline: auto;
}
.main-nav a {
    position: relative;
    padding: 9px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--white-70);
    border-radius: 999px;
    transition: color var(--t-fast), background var(--t-fast);
}
.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    inset-inline: 16px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--t) var(--ease-out);
}
.main-nav a:hover { color: #fff; background: var(--white-04); }
.main-nav a:hover::after { transform: scaleX(1); }

/* اکشن‌های هدر */
.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
    position: relative;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    color: var(--white-70);
    border: 1px solid var(--white-08);
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--t-fast);
    overflow: hidden;
}
.icon-btn:hover {
    color: #fff;
    border-color: rgba(229, 9, 9, 0.45);
    background: var(--red-soft);
    box-shadow: 0 0 20px -6px var(--red-glow);
}
.cart-badge {
    position: absolute;
    top: -6px; inset-inline-end: -6px;
    min-width: 19px; height: 19px;
    padding: 0 5px;
    display: grid; place-items: center;
    background: var(--red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.7);
    border: 2px solid var(--black-0);
}

.account-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--white-08);
    background: rgba(255, 255, 255, 0.03);
    max-width: 200px;
}
.account-avatar {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px -4px var(--red-glow);
}
.account-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.account-hello { font-size: 0.68rem; color: var(--gray); }
.account-name {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-logout {
    display: grid; place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    color: var(--gray);
    transition: all var(--t-fast);
    flex-shrink: 0;
}
.account-logout:hover { color: var(--red); background: var(--red-soft); }

/* دکمه همبرگری */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--white-08);
    background: rgba(255, 255, 255, 0.03);
}
.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--white-90);
    transition: transform var(--t) var(--ease-out), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* منوی موبایل */
.main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: fixed;
    top: calc(var(--header-h) + 8px);
    inset-inline: 16px;
    padding: 12px;
    background: rgba(13, 13, 15, 0.92);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid var(--white-08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    animation: navDrop 0.35s var(--ease-out);
    margin: 0;
}
.main-nav.is-open a { padding: 13px 18px; font-size: 1rem; }
@keyframes navDrop {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------------
   5) HERO
--------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 30px);
    padding-bottom: 60px;
    overflow: hidden;
    background: var(--black-0);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 38%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 65% at 50% 38%, #000 30%, transparent 75%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}
.orb-1 {
    width: 480px; height: 480px;
    top: -12%; inset-inline-start: -8%;
    background: radial-gradient(circle, rgba(229, 9, 9, 0.32), transparent 68%);
    animation: floatOrb 16s ease-in-out infinite alternate;
}
.orb-2 {
    width: 420px; height: 420px;
    bottom: -18%; inset-inline-end: -10%;
    background: radial-gradient(circle, rgba(255, 26, 26, 0.22), transparent 68%);
    animation: floatOrb 20s ease-in-out infinite alternate-reverse;
}
.orb-3 {
    width: 300px; height: 300px;
    top: 30%; inset-inline-end: 22%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.10), transparent 70%);
    animation: floatOrb 24s ease-in-out infinite alternate;
}
@keyframes floatOrb {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

.hero-noise {
    position: absolute; inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 50%, rgba(5, 5, 5, 0.85) 100%);
}

.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 760px; margin-inline: auto; text-align: center; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white-90);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--white-08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.chip-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
    animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}
.chip-gold {
    color: var(--gold);
    font-size: 0.78rem;
    padding-inline-start: 10px;
    border-inline-start: 1px solid var(--white-12);
}

.hero-title {
    margin-top: 26px;
    font-size: clamp(1.9rem, 5.4vw, 3.6rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.025em;
}
.title-hl {
    position: relative;
    color: var(--white);
    white-space: nowrap;
}
.title-hl::after {
    content: "";
    position: absolute;
    bottom: 4px;
    inset-inline: 0;
    height: 10px;
    background: linear-gradient(90deg, transparent, var(--red) 20%, var(--red) 80%, transparent);
    opacity: 0.35;
    border-radius: 6px;
    z-index: -1;
    filter: blur(2px);
}

/* عدد تخفیف بزرگ */
.hero-discount {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 14px;
    margin: 26px auto 8px;
    padding: 4px 22px;
}
.discount-caption {
    font-size: clamp(1rem, 2.6vw, 1.4rem);
    font-weight: 700;
    color: var(--gray-light);
}
.discount-caption--bottom { align-self: flex-end; padding-bottom: 0.6em; font-size: clamp(0.85rem, 2vw, 1.1rem); }
.discount-number {
    font-size: clamp(4.2rem, 15vw, 9.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #FF4545 0%, var(--red) 45%, var(--red-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--red);
    filter: drop-shadow(0 0 26px rgba(229, 9, 9, 0.55)) drop-shadow(0 6px 30px rgba(229, 9, 9, 0.35));
    animation: discountPulse 3.2s ease-in-out infinite;
}
@keyframes discountPulse {
    0%, 100% { filter: drop-shadow(0 0 22px rgba(229, 9, 9, 0.45)) drop-shadow(0 6px 26px rgba(229, 9, 9, 0.3)); }
    50%      { filter: drop-shadow(0 0 40px rgba(229, 9, 9, 0.75)) drop-shadow(0 6px 40px rgba(229, 9, 9, 0.5)); }
}
.discount-glow {
    position: absolute;
    inset: -30% 10% auto;
    height: 90%;
    background: radial-gradient(ellipse at center, rgba(229, 9, 9, 0.22), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-sub {
    max-width: 560px;
    margin: 18px auto 0;
    color: var(--white-70);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}
.btn-gift { font-size: 1.15em; filter: drop-shadow(0 0 8px rgba(255, 220, 120, 0.6)); }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin-top: 30px;
    color: var(--gray-light);
    font-size: 0.85rem;
    font-weight: 500;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--red); }

/* المان‌های شناور */
.hero-floaters { display: none; }
.floater {
    position: absolute;
    font-size: 2.2rem;
    opacity: 0.5;
    filter: drop-shadow(0 0 18px rgba(229, 9, 9, 0.4));
    animation: floatY 6s ease-in-out infinite;
}
.floater-1 { top: 22%; inset-inline-start: 8%; animation-delay: 0s; }
.floater-2 { top: 58%; inset-inline-start: 13%; font-size: 1.7rem; animation-delay: 1.4s; }
.floater-3 { top: 30%; inset-inline-end: 9%; animation-delay: 2.6s; }
@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-22px) rotate(8deg); }
}

/* نشانگر اسکرول */
.hero-scroll-hint {
    position: absolute;
    bottom: 22px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    z-index: 1;
}
.mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--white-30);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}
.mouse .wheel {
    width: 3px; height: 8px;
    border-radius: 3px;
    background: var(--red);
    animation: wheelHint 1.6s ease-in-out infinite;
}
@keyframes wheelHint {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------------------------------------------------------------------------
   6) SECTION HEADINGS
--------------------------------------------------------------------------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.02em;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--red-soft);
    border: 1px solid rgba(229, 9, 9, 0.28);
    margin-bottom: 16px;
}
.section-eyebrow--fire { color: #FFB3B3; background: rgba(229, 9, 9, 0.18); }
.section-title {
    font-size: clamp(1.5rem, 3.6vw, 2.4rem);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.02em;
}
.section-sub {
    margin-top: 12px;
    color: var(--white-70);
    font-size: 0.96rem;
}

/* ---------------------------------------------------------------------------
   7) STATS
--------------------------------------------------------------------------- */
.stats-section { padding: 40px 0 10px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.stat-card {
    padding: 24px 18px;
    text-align: center;
    transition: transform var(--t) var(--ease-out), border-color var(--t);
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(229, 9, 9, 0.35); }
.stat-value {
    display: block;
    font-size: clamp(1.5rem, 4.6vw, 2.3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
}
.stat-value span { color: var(--red); text-shadow: 0 0 24px rgba(229, 9, 9, 0.4); }
.stat-label {
    display: block;
    margin-top: 6px;
    font-size: 0.83rem;
    color: var(--gray-light);
    font-weight: 500;
}

/* ---------------------------------------------------------------------------
   8) WHEEL
--------------------------------------------------------------------------- */
.wheel-section {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(229, 9, 9, 0.08), transparent 70%),
        var(--black-1);
}

.wheel-layout {
    display: grid;
    gap: 26px;
    align-items: center;
}

.wheel-side, .wheel-prizes { padding: 26px 22px; }
.wheel-side-title {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.wheel-side-title::before {
    content: "";
    width: 4px; height: 18px;
    border-radius: 4px;
    background: linear-gradient(var(--red), var(--red-dark));
    box-shadow: 0 0 12px var(--red-glow);
}

.wheel-rules li {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 11px 0;
    font-size: 0.9rem;
    color: var(--white-70);
    border-bottom: 1px dashed var(--white-08);
}
.wheel-rules li:last-child { border-bottom: 0; }
.rule-num {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--red-soft);
    border: 1px solid rgba(229, 9, 9, 0.35);
    color: var(--red);
    font-weight: 800;
    font-size: 0.85rem;
}
.wheel-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: #E8D9A0;
    font-size: 0.83rem;
}
.wheel-note svg { color: var(--gold); flex-shrink: 0; }
.wheel-note strong { color: var(--gold); }

/* صحنه گردونه */
.wheel-stage-wrap { display: flex; flex-direction: column; align-items: center; }
.wheel-stage {
    position: relative;
    width: min(88vw, 440px);
    aspect-ratio: 1;
    margin-inline: auto;
}

.wheel-glow {
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 9, 9, 0.30) 0%, rgba(229, 9, 9, 0.08) 45%, transparent 68%);
    animation: wheelGlowPulse 3.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes wheelGlowPulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.wheel-frame {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 30px 70px -20px rgba(0, 0, 0, 0.9),
        0 0 60px -14px rgba(229, 9, 9, 0.55),
        inset 0 2px 12px rgba(255, 255, 255, 0.08),
        inset 0 0 0 clamp(12px, 2.6vw, 22px) #101014,
        inset 0 0 0 clamp(13px, 2.9vw, 24px) rgba(212, 175, 55, 0.22),
        inset 0 0 0 clamp(16px, 3.4vw, 28px) #14141a,
        inset 0 -14px 28px rgba(0, 0, 0, 0.65),
        inset 0 10px 22px rgba(255, 255, 255, 0.05);
}
@media (min-width: 768px) {
    .wheel-frame {
        box-shadow:
            0 30px 70px -20px rgba(0, 0, 0, 0.9),
            0 0 60px -14px rgba(229, 9, 9, 0.55),
            inset 0 2px 12px rgba(255, 255, 255, 0.08),
            inset 0 0 0 22px #101014,
            inset 0 0 0 24px rgba(212, 175, 55, 0.22),
            inset 0 0 0 28px #14141a,
            inset 0 -14px 28px rgba(0, 0, 0, 0.65),
            inset 0 10px 22px rgba(255, 255, 255, 0.05);
    }
}
/* لامپ‌های محیطی (با JS ساخته می‌شوند) */
.bulb {
    position: absolute;
    top: 50%; left: 50%;
    width: 11px; height: 11px;
    border-radius: 50%;
    margin: -5.5px 0 0 -5.5px;
    animation: bulbTwinkle 1.6s ease-in-out infinite;
}
.bulb--red {
    background: #FF3B3B;
    box-shadow: 0 0 10px 2px rgba(255, 40, 40, 0.8);
}
.bulb--gold {
    background: var(--gold);
    box-shadow: 0 0 10px 2px rgba(212, 175, 55, 0.7);
}
@keyframes bulbTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.wheel-rotor {
    position: absolute;
    inset: 5.5%;
    width: 89%;
    height: 89%;
    border-radius: 50%;
    z-index: 1;
    transition: transform 5.6s var(--ease-spin);
    will-change: transform;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06), 0 0 30px rgba(0, 0, 0, 0.6);
}

.wheel-pointer {
    position: absolute;
    top: -2.5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    filter: drop-shadow(0 6px 14px rgba(229, 9, 9, 0.65));
    transform-origin: 50% 18%;
}
.wheel-stage.is-spinning .wheel-pointer { animation: pointerWobble 0.16s ease-in-out infinite alternate; }
@keyframes pointerWobble {
    from { transform: translateX(-50%) rotate(-9deg); }
    to   { transform: translateX(-50%) rotate(9deg); }
}

.wheel-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    width: 24%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background:
        radial-gradient(circle at 50% 35%, #FF3434 0%, var(--red-deep) 55%, #9C0505 100%);
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.18);
    outline: 2px solid rgba(212, 175, 55, 0.55);
    outline-offset: 3px;
    box-shadow:
        0 14px 34px -8px rgba(229, 9, 9, 0.75),
        0 0 44px -6px rgba(229, 9, 9, 0.65),
        inset 0 2px 8px rgba(255, 255, 255, 0.35);
    transition: transform var(--t) var(--ease-out), box-shadow var(--t), opacity var(--t);
    overflow: hidden;
}
.wheel-hub::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 115%, rgba(212, 175, 55, 0.35), transparent 55%);
}
.wheel-hub:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.07);
    box-shadow:
        0 18px 44px -8px rgba(229, 9, 9, 0.9),
        0 0 60px -4px rgba(229, 9, 9, 0.8),
        inset 0 2px 8px rgba(255, 255, 255, 0.4);
}
.wheel-hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(0.96); }
.wheel-hub:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.hub-label {
    font-size: clamp(0.95rem, 3.4vw, 1.35rem);
    font-weight: 900;
    position: relative;
    line-height: 1.2;
}
.hub-sub {
    font-size: clamp(0.58rem, 1.8vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    opacity: 0.85;
    position: relative;
}
.wheel-hub:disabled { cursor: not-allowed; }
.wheel-hub.is-used {
    background: radial-gradient(circle at 50% 35%, #2a2a31 0%, #17171c 60%, #101014 100%);
    outline-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), inset 0 1px 4px rgba(255, 255, 255, 0.08);
    color: var(--gray-light);
}
.wheel-hub .btn-spinner {
    position: relative;
    border-color: rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
}

.wheel-status {
    margin-top: 30px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white-70);
    min-height: 28px;
}
.wheel-status.is-loading { color: #FFB0B0; }
.wheel-status.is-done { color: #fff; }
.wheel-status .status-discount {
    color: var(--red);
    font-weight: 900;
    font-size: 1.1em;
}
.dots::after {
    content: "";
    animation: dots 1.2s steps(4) infinite;
}
@keyframes dots {
    0% { content: ""; } 25% { content: "."; }
    50% { content: ".."; } 75%, 100% { content: "..."; }
}

/* لیست جوایز */
.prize-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    font-size: 0.9rem;
    color: var(--white-70);
    border-bottom: 1px dashed var(--white-08);
}
.prize-list li:last-child { border-bottom: 0; }
.prize-list em {
    margin-inline-start: auto;
    font-style: normal;
    font-size: 0.75rem;
    color: var(--gray);
}
.prize-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.prize-dot--dark  { background: #2a2a31; border: 1px solid var(--white-12); }
.prize-dot--red   { background: var(--red); box-shadow: 0 0 8px var(--red-glow); }
.prize-dot--light { background: #e9e9ee; }
.prize-dot--gold  { background: var(--gold); box-shadow: 0 0 10px rgba(212, 175, 55, 0.7); }
.prize-jackpot { color: #E8D9A0 !important; }
.prize-jackpot em { color: var(--gold) !important; }

/* نتیجه */
.prize-result {
    max-width: 720px;
    margin: 40px auto 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--ease-out), opacity 0.5s var(--ease-out), margin 0.5s;
}
.prize-result.is-visible { max-height: 420px; opacity: 1; }
.prize-result-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
.prize-result-emoji { font-size: 2.4rem; filter: drop-shadow(0 0 16px rgba(229, 9, 9, 0.5)); }
.prize-result-text { flex: 1 1 260px; }
.prize-result-title { font-weight: 800; font-size: 1.02rem; }
.prize-result-discount { color: var(--white-70); font-size: 0.92rem; margin-top: 2px; }
.prize-result-discount strong { color: var(--red); font-size: 1.25rem; font-weight: 900; }
.prize-result-coupon {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.coupon-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    border: 1.5px dashed rgba(212, 175, 55, 0.55);
    transition: all var(--t-fast);
    cursor: copy;
}
.coupon-chip:hover { background: rgba(212, 175, 55, 0.16); box-shadow: 0 0 20px -6px rgba(212, 175, 55, 0.5); }
.coupon-chip--lg { padding: 12px 22px; font-size: 1.02rem; }

/* ---------------------------------------------------------------------------
   9) PRODUCTS
--------------------------------------------------------------------------- */
.products-section { background: var(--black-0); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--t) var(--ease-out), border-color var(--t), box-shadow var(--t);
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 9, 9, 0.45);
    box-shadow: var(--shadow-card), 0 20px 50px -18px rgba(229, 9, 9, 0.35);
}

.product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--white-08);
}
.g-red {
    background:
        radial-gradient(circle at 68% 22%, rgba(255, 26, 26, 0.32), transparent 55%),
        linear-gradient(160deg, #1b1014 0%, #0c0c0f 100%);
}
.g-dark {
    background:
        radial-gradient(circle at 68% 22%, rgba(255, 255, 255, 0.07), transparent 55%),
        linear-gradient(160deg, #17171d 0%, #0a0a0d 100%);
}
.product-media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}
.product-card:hover .product-media img { transform: scale(1.07); }
.product-emoji {
    font-size: clamp(3.4rem, 14vw, 5.2rem);
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.6));
    transition: transform 0.7s var(--ease-out);
}
.product-card:hover .product-emoji { transform: scale(1.12) rotate(-5deg); }

.product-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 6px 18px -4px var(--red-glow);
    z-index: 2;
}
.product-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.07) 47%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.9s var(--ease-out);
    pointer-events: none;
}
.product-card:hover .product-shine { transform: translateX(120%); }

.product-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.product-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.6;
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-prices { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.price-old {
    color: var(--gray);
    font-size: 0.85rem;
    text-decoration: line-through;
    text-decoration-color: rgba(229, 9, 9, 0.7);
}
.price-new { display: flex; align-items: baseline; gap: 6px; }
.price-new strong {
    font-size: 1.18rem;
    font-weight: 900;
    color: #fff;
}
.price-unit { font-size: 0.75rem; color: var(--gray-light); font-weight: 600; }
.product-body .btn { margin-top: 4px; }
.product-body .btn svg { transition: transform var(--t) var(--ease-out); }
.product-body .btn:hover svg { transform: translateX(-4px); }

/* ---------------------------------------------------------------------------
   10) FLASH SALE
--------------------------------------------------------------------------- */
.flash-section {
    background: #040404;
    overflow: hidden;
    border-block: 1px solid rgba(229, 9, 9, 0.14);
}
.flash-bg { position: absolute; inset: 0; pointer-events: none; }
.orb-flash-1 {
    width: 460px; height: 460px;
    top: -30%; inset-inline-start: -10%;
    background: radial-gradient(circle, rgba(229, 9, 9, 0.28), transparent 68%);
    animation: floatOrb 18s ease-in-out infinite alternate;
}
.orb-flash-2 {
    width: 380px; height: 380px;
    bottom: -30%; inset-inline-end: -8%;
    background: radial-gradient(circle, rgba(255, 26, 26, 0.18), transparent 68%);
    animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}
.flash-inner { position: relative; z-index: 1; }
.flash-content { text-align: center; max-width: 680px; margin-inline: auto; }

.flash-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: var(--shadow-red);
    margin-bottom: 22px;
}
.flash-bolt { animation: boltBlink 1.4s steps(2) infinite; }
@keyframes boltBlink { 50% { opacity: 0.35; } }

.flash-title {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: -0.02em;
}
.flash-sub { margin-top: 12px; color: var(--white-70); }

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 34px 0 8px;
    direction: ltr;
}
.count-box {
    min-width: 74px;
    padding: 14px 10px 10px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #141418, #0b0b0e);
    border: 1px solid var(--white-08);
    border-top: 2px solid rgba(229, 9, 9, 0.7);
    box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.9), 0 0 26px -10px rgba(229, 9, 9, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
}
.count-box::after {
    content: "";
    position: absolute;
    inset-inline: 0; top: 0;
    height: 40%;
    background: linear-gradient(rgba(255, 255, 255, 0.045), transparent);
}
.count-num {
    font-size: clamp(1.6rem, 6vw, 2.3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 18px rgba(229, 9, 9, 0.45);
}
.count-box--seconds .count-num { color: var(--red); text-shadow: 0 0 20px rgba(229, 9, 9, 0.7); }
.count-label {
    font-size: 0.72rem;
    color: var(--gray);
    font-weight: 600;
    direction: rtl;
}
.count-sep {
    font-size: 1.6rem;
    font-weight: 900;
    color: rgba(229, 9, 9, 0.6);
    align-self: flex-start;
    margin-top: 16px;
    animation: dotPulse 1s steps(2) infinite;
}
.countdown-ended {
    margin-top: 24px;
    color: var(--gold);
    font-weight: 700;
}
.flash-cta { margin-top: 30px; }

/* ---------------------------------------------------------------------------
   11) BENEFITS
--------------------------------------------------------------------------- */
.benefits-section { background: var(--black-1); }
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.benefit-card {
    padding: 30px 24px;
    text-align: center;
    transition: transform var(--t) var(--ease-out), border-color var(--t), box-shadow var(--t);
}
.benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(229, 9, 9, 0.4);
    box-shadow: var(--shadow-glass), 0 18px 44px -18px rgba(229, 9, 9, 0.4);
}
.benefit-icon {
    width: 60px; height: 60px;
    margin: 0 auto 18px;
    display: grid; place-items: center;
    border-radius: 18px;
    color: var(--red);
    background: linear-gradient(160deg, rgba(229, 9, 9, 0.16), rgba(229, 9, 9, 0.04));
    border: 1px solid rgba(229, 9, 9, 0.3);
    box-shadow: 0 0 26px -8px var(--red-glow);
    transition: transform var(--t) var(--ease-out);
}
.benefit-card:hover .benefit-icon { transform: scale(1.08) rotate(-4deg); }
.benefit-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.benefit-card p { font-size: 0.88rem; color: var(--white-70); }

/* ---------------------------------------------------------------------------
   12) FINAL CTA
--------------------------------------------------------------------------- */
.final-cta { padding: 96px 0; overflow: hidden; background: var(--black-0); }
.final-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 100%, rgba(229, 9, 9, 0.22), transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 0%, rgba(229, 9, 9, 0.10), transparent 70%);
    pointer-events: none;
}
.final-inner { position: relative; z-index: 1; text-align: center; }
.final-title {
    font-size: clamp(1.6rem, 4.6vw, 2.7rem);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.02em;
}
.final-sub { margin-top: 14px; color: var(--white-70); font-size: 1.02rem; }
.final-inner .btn { margin-top: 30px; }
.final-note { margin-top: 20px; font-size: 0.8rem; color: var(--gray); }

/* ---------------------------------------------------------------------------
   13) FOOTER
--------------------------------------------------------------------------- */
.site-footer {
    background: var(--black-1);
    border-top: 1px solid var(--white-08);
    padding: 56px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 40px;
}
.footer-brand p {
    margin-top: 16px;
    color: var(--gray-light);
    font-size: 0.88rem;
    max-width: 340px;
}
.footer-links h4, .footer-note h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 14px;
}
.footer-links a {
    display: block;
    padding: 6px 0;
    color: var(--gray-light);
    font-size: 0.88rem;
    transition: color var(--t-fast), transform var(--t-fast);
}
.footer-links a:hover { color: var(--red); transform: translateX(-4px); }
.footer-note p { color: var(--gray-light); font-size: 0.85rem; max-width: 300px; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-block: 22px;
    border-top: 1px solid var(--white-08);
    color: var(--gray);
    font-size: 0.8rem;
}
.footer-heart span { color: var(--red); }

/* ---------------------------------------------------------------------------
   14) MODALS
--------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 3, 4, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t) ease, visibility var(--t);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 36px 30px 30px;
    text-align: center;
    background: linear-gradient(170deg, rgba(24, 24, 29, 0.92), rgba(10, 10, 13, 0.94));
    border: 1px solid var(--white-12);
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95), 0 0 60px -20px rgba(229, 9, 9, 0.4);
    transform: translateY(26px) scale(0.94);
    opacity: 0;
    transition: transform 0.45s var(--ease-out), opacity 0.35s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--gray-light);
    border: 1px solid var(--white-08);
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--t-fast);
}
.modal-close:hover { color: #fff; background: var(--red-soft); border-color: rgba(229, 9, 9, 0.4); transform: rotate(90deg); }

.modal-icon {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    display: grid; place-items: center;
    border-radius: 22px;
    color: var(--red);
    background: linear-gradient(160deg, rgba(229, 9, 9, 0.18), rgba(229, 9, 9, 0.05));
    border: 1px solid rgba(229, 9, 9, 0.35);
    box-shadow: 0 0 34px -8px var(--red-glow);
}
.modal-title { font-size: 1.28rem; font-weight: 900; line-height: 1.5; }
.modal-text { margin-top: 12px; color: var(--white-70); font-size: 0.93rem; }
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
}
.modal-demo-note {
    margin: 18px 0 14px;
    font-size: 0.8rem;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
}
.modal-field { display: block; text-align: start; margin-bottom: 6px; }
.modal-field span {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--white-70);
    margin-bottom: 8px;
}
.modal-field input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--white-12);
    color: #fff;
    font-size: 0.95rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.modal-field input:focus {
    outline: none;
    border-color: rgba(229, 9, 9, 0.6);
    box-shadow: 0 0 0 3px rgba(229, 9, 9, 0.18);
}

/* مودل برد */
.modal-win { border-color: rgba(229, 9, 9, 0.35); overflow: hidden; }
.win-rays {
    position: absolute;
    top: -40%; left: 50%;
    width: 160%; aspect-ratio: 1;
    transform: translateX(-50%);
    background: conic-gradient(from 0deg,
        transparent 0 8deg, rgba(229, 9, 9, 0.10) 8deg 16deg,
        transparent 16deg 24deg, rgba(212, 175, 55, 0.08) 24deg 32deg,
        transparent 32deg 40deg, rgba(229, 9, 9, 0.10) 40deg 48deg,
        transparent 48deg 56deg, rgba(212, 175, 55, 0.08) 56deg 64deg,
        transparent 64deg 360deg);
    animation: raysSpin 14s linear infinite;
    pointer-events: none;
}
@keyframes raysSpin { to { transform: translateX(-50%) rotate(360deg); } }
.modal-emoji {
    font-size: 3.2rem;
    margin-bottom: 6px;
    animation: winBounce 0.8s var(--ease-out);
    filter: drop-shadow(0 10px 24px rgba(229, 9, 9, 0.5));
}
@keyframes winBounce {
    0% { transform: scale(0) rotate(-20deg); }
    60% { transform: scale(1.25) rotate(6deg); }
    100% { transform: scale(1) rotate(0); }
}
.win-title { color: #fff; }
.win-subtitle { color: var(--white-70); margin-top: 6px; font-size: 0.95rem; }
.win-discount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin: 8px 0 2px;
    direction: ltr;
}
.win-number {
    font-size: clamp(4.4rem, 20vw, 6.4rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, #FF5050, var(--red) 50%, var(--red-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(229, 9, 9, 0.6));
}
.win-percent { font-size: 2rem; font-weight: 900; color: var(--red); margin-top: 0.4em; }

.win-coupon {
    margin-top: 20px;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.win-coupon-label { font-size: 0.82rem; color: #E8D9A0; font-weight: 600; }
.win-coupon-expiry { font-size: 0.76rem; color: var(--gray); }

/* ---------------------------------------------------------------------------
   15) TOAST
--------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 22px;
    inset-inline: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 420px;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(20, 20, 24, 0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--white-12);
    box-shadow: var(--shadow-card);
    animation: toastIn 0.4s var(--ease-out);
    pointer-events: auto;
}
.toast.leaving { animation: toastOut 0.35s ease forwards; }
.toast--success { border-color: rgba(229, 9, 9, 0.5); }
.toast--success .toast-icon { color: var(--red); }
.toast--error { border-color: rgba(255, 90, 90, 0.45); }
.toast--error .toast-icon { color: #FF6B6B; }
.toast--info .toast-icon { color: var(--gold); }
.toast-icon { flex-shrink: 0; display: flex; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(24px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(16px) scale(0.96); }
}

/* ---------------------------------------------------------------------------
   16) CONFETTI
--------------------------------------------------------------------------- */
.confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 1150;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* ---------------------------------------------------------------------------
   17) SCROLL REVEAL
--------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------------
   18) RESPONSIVE
--------------------------------------------------------------------------- */
@media (min-width: 480px) {
    :root { --header-h: 72px; }
    .products-grid { gap: 18px; }
    .product-body { padding: 18px 18px 20px; }
    .count-box { min-width: 84px; }
    .stats-grid { gap: 16px; }
}

@media (min-width: 768px) {
    .section { padding: 96px 0; }
    .main-nav { display: flex; }
    .nav-toggle { display: none; }
    .account-chip { display: flex; }
    #headerLoginBtn { display: inline-flex; }

    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .wheel-layout {
        grid-template-columns: 1fr minmax(360px, 520px) 1fr;
        gap: 24px;
    }
    .wheel-stage { width: 100%; max-width: 520px; }
    .wheel-side, .wheel-prizes { align-self: center; }

    .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 28px; }

    .hero-floaters { display: block; }
    .modal-actions { flex-direction: row; }
    .modal-actions .btn { flex: 1; }
    .countdown { gap: 14px; }
    .count-box { min-width: 96px; padding: 18px 14px 12px; }
}

@media (min-width: 1024px) {
    .container { padding-inline: 32px; }
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .benefits-grid { grid-template-columns: repeat(4, 1fr); }
    .wheel-layout { gap: 34px; }
}

@media (min-width: 1280px) {
    :root { --container: 1240px; }
}

@media (min-width: 1440px) {
    :root { --container: 1320px; }
    .hero-title { font-size: 3.9rem; }
}

@media (max-width: 480px) {
    .btn-lg { padding: 14px 24px; font-size: 0.95rem; width: 100%; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .discount-caption--bottom { display: none; }
    .countdown { gap: 7px; }
    .count-box { min-width: 62px; padding: 12px 6px 8px; }
    .count-sep { margin-top: 12px; font-size: 1.2rem; }
    .prize-result-inner { flex-direction: column; }
    .account-text { display: none; }
    .account-chip { padding: 5px; max-width: none; gap: 0; }
    .account-logout { display: none; }
    .brand-badge { display: none; }
}

/* ---------------------------------------------------------------------------
   19) REDUCED MOTION / دسترس‌پذیری
--------------------------------------------------------------------------- */
@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;
    }
    .reveal { opacity: 1; transform: none; }
    .wheel-rotor { transition: transform 0.9s ease-out !important; }
}

/* وقتی منوی موبایل باز است، بک‌گراند اسکرول نشود */
body.nav-open { overflow: hidden; }
