/* =====================================================================
   بلک‌فرایدی سیژن ۱۴۰۵ — style.css
   منطبق ۱۰۰٪ با طراحی مرجع blackfriday.zip · RTL · Mobile-First
   ---------------------------------------------------------------------
   فهرست
     ⚙   تنظیم سرعت انیمیشن‌های هاور (بالاترین بخش)
     00  توکن‌های طراحی و تم کمپین‌ها (Global Settings)
     01  پایه و ابزارک‌ها
     02  کامپوننت‌ها (دکمه، بج، کارت محصول)
     03  هدر، تیکر و نوار پیشرفت
     04  سکشن ۲ · گردونهٔ شانس
     05  سکشن ۳ · محصولات ویژهٔ تایم‌دار و شمارنده معکوس
     06  سکشن ۴ · بنرهای دوتایی
     07  سکشن ۵ · محصولات شگفت‌انگیز
     08  سکشن ۶ · قفسه‌های موضوعی و پلکانی
     09  سکشن ۷ · نوار اعتمادسازی
     10  سکشن ۸ · فوتر کمپین
     11  حرکت: نمایش با اسکرول و کیفریم‌های مشترک
     12  دسترس‌پذیری و کاهش حرکت
     13  الحاقات تمام‌صفحه، بنرهای اعتمادسازی و اعلان سبد خرید
   ===================================================================== */

:root {
  --hover-speed: 1;

  /* کارت محصول (مطابق blackfriday.zip) */
  --hv-card-lift:   calc(1.5s / var(--hover-speed));   /* بالا آمدن کارت */
  --hv-card-border: calc(1.5s / var(--hover-speed));   /* رنگ‌گرفتن خط دور باکس */
  --hv-card-shadow: calc(1.5s / var(--hover-speed));   /* سایه/درخشش دور باکس */
  --hv-card-image:  calc(1.5s / var(--hover-speed));   /* بزرگ‌شدن تصویر محصول */
  --hv-card-shine:  calc(1.5s / var(--hover-speed));   /* جاروی نور روی تصویر */

  /* دکمه‌ها */
  --hv-btn:        calc(1.5s / var(--hover-speed));    /* بالا آمدن و سایه */
  --hv-btn-color:  calc(1.5s / var(--hover-speed));    /* تغییر رنگ و خط دور */
  --hv-btn-shine:  calc(1.5s / var(--hover-speed));    /* جاروی نور */

  /* بنرها */
  --hv-banner:        calc(.6s  / var(--hover-speed));
  --hv-banner-border: calc(.4s  / var(--hover-speed));
  --hv-banner-image:  calc(1.2s / var(--hover-speed));
  --hv-banner-shine:  calc(1.1s / var(--hover-speed));

  /* کاور قفسه‌های موضوعی */
  --hv-shelf:      calc(.5s / var(--hover-speed));
  --hv-shelf-icon: calc(.9s / var(--hover-speed));

  /* کارت‌های اعتماد */
  --hv-trust:        calc(.5s  / var(--hover-speed));
  --hv-trust-border: calc(.35s / var(--hover-speed));
  --hv-trust-icon:   calc(.6s  / var(--hover-speed));

  /* لوگو، شبکه‌های اجتماعی، لینک‌ها و فلش‌ها */
  --hv-logo:   calc(.8s  / var(--hover-speed));
  --hv-social: calc(.45s / var(--hover-speed));
  --hv-link:   calc(.3s  / var(--hover-speed));
}

/* =====================================================================
   00 · فونت‌ها و توکن‌های طراحی — «تنظیمات عمومی» ماژول
   ===================================================================== */
@font-face {
  font-family: "YekanBakh";
  src: url("../fonts/YekanBakhFaLight.woff") format("woff");
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakh";
  src: url("../fonts/YekanBakh-Regular.woff") format("woff");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakh";
  src: url("../fonts/YekanBakh-Bold.woff") format("woff");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --t {
  syntax: "<integer>";
  inherits: true;
  initial-value: 0;
}

@counter-style fa-pad {
  system: numeric;
  symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹";
  pad: 2 "۰";
}

:root {
  color-scheme: dark;

  /* — هویت بصری — */
  --primary: #ffc72c;          /* رنگ اصلی: CTA، تأکیدها */
  --primary-2: #ff9a00;        /* انتهای گرادیان رنگ اصلی */
  --primary-ink: #1a1203;      /* رنگ متن روی رنگ اصلی */
  --accent: #ff3860;           /* رنگ فرعی: بج تخفیف، هشدار */
  --accent-ink: #ffffff;

  --bg: #09090c;
  --surface: #14141b;
  --surface-2: #1c1c26;
  --text: #f6f6f8;
  --muted: #a9a9b8;
  --line: rgb(255 255 255 / .09);
  --success: #2ee59d;

  /* — تایپوگرافی — */
  --font: "YekanBakh", "Vazirmatn", "Vazir", "IRANSansX", Tahoma, "Segoe UI", system-ui, sans-serif;

  /* — مشتق‌ها (با Fallback برای مرورگرهای قدیمی‌تر + color-mix در مرورگرهای مدرن) — */
  --primary-soft: rgba(255, 199, 44, .15);
  --primary-line: rgba(255, 199, 44, .42);
  --accent-soft: rgba(255, 56, 96, .16);
  --glow: rgba(255, 199, 44, .55);
  --grad-primary: linear-gradient(135deg, #ffe184, var(--primary) 42%, var(--primary-2));

  --primary-soft: color-mix(in oklab, var(--primary) 15%, transparent);
  --primary-line: color-mix(in oklab, var(--primary) 42%, transparent);
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --glow: color-mix(in oklab, var(--primary) 55%, transparent);
  --grad-primary: linear-gradient(135deg, color-mix(in oklab, var(--primary) 52%, #fff), var(--primary) 42%, var(--primary-2));

  /* — پس‌زمینهٔ سکشن گردونه — */
  --wheel-bg-mobile:
    radial-gradient(32rem 26rem at 50% 30%, color-mix(in oklab, var(--primary) 22%, transparent), transparent 70%),
    radial-gradient(22rem 20rem at 100% 0%, color-mix(in oklab, var(--accent) 24%, transparent), transparent 70%);
  --wheel-bg-desktop:
    radial-gradient(60rem 42rem at 24% 50%, color-mix(in oklab, var(--primary) 20%, transparent), transparent 66%),
    radial-gradient(44rem 30rem at 96% 4%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 62%);

  /* — شکل و حرکت — */
  --r-sm: .75rem;
  --r-md: 1.1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --section-pad: clamp(3rem, 6.5vw, 5.25rem);
}

:root[data-campaign="yalda"] {
  --primary: #ff5a76;
  --primary-2: #e11d48;
  --primary-ink: #2b0510;
  --accent: #ffb547;
  --accent-ink: #2b1700;
  --bg: #12050a;
  --surface: #1d0a12;
  --surface-2: #28101b;
  --muted: #c4a4af;
}
:root[data-campaign="nowruz"] {
  --primary: #4ade80;
  --primary-2: #16a34a;
  --primary-ink: #04210f;
  --accent: #fbbf24;
  --accent-ink: #261a00;
  --bg: #05100b;
  --surface: #0c1c14;
  --surface-2: #12281c;
  --muted: #9db8a9;
}
:root[data-campaign="mothers-day"] {
  --primary: #ff8fc0;
  --primary-2: #e5539c;
  --primary-ink: #2a0a1a;
  --accent: #b69cff;
  --accent-ink: #1b0f3d;
  --bg: #12060d;
  --surface: #1e0c16;
  --surface-2: #2a1221;
  --muted: #c5a7b7;
}

/* =====================================================================
   01 · پایه و ابزارک‌ها
   ===================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .7s var(--ease);
}

h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--primary); color: var(--primary-ink); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: .5rem;
}

.container {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  z-index: 200;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 800;
  translate: 0 -200%;
  transition: translate .3s var(--ease);
}
.skip-link:focus-visible { translate: 0 0; }

.icon {
  inline-size: 1.2em;
  block-size: 1.2em;
  flex: none;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.module { position: relative; padding-block: var(--section-pad); }
.module[data-enabled="false"] { display: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--primary-line);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.6;
}

.section-head {
  display: grid;
  justify-items: start;
  gap: .8rem;
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 4.5vw, 3rem);
}
.section-title {
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3.1rem);
  font-weight: 900;
  line-height: 1.3;
  text-wrap: balance;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(.95rem, .9rem + .25vw, 1.1rem);
  text-wrap: pretty;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--primary);
  font-weight: 800;
  font-size: .95rem;
  transition: gap var(--hv-link) var(--ease), color var(--hv-link);
}
.link-arrow .icon { transition: translate var(--hv-link) var(--ease); }
@media (hover: hover) {
  .link-arrow:hover .icon { translate: -.35rem 0; }
}

/* =====================================================================
   02 · کامپوننت‌ها
   ===================================================================== */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-bd: var(--line);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-block-size: 3rem;
  padding: .65rem 1.5rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--hv-btn) var(--ease), box-shadow var(--hv-btn) var(--ease), color var(--hv-btn-color), border-color var(--hv-btn-color), opacity .35s, filter .35s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .42) 50%, transparent 65%);
  translate: 140% 0;
  transition: translate var(--hv-btn-shine) var(--ease);
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::before { translate: -140% 0; }
}
.btn:active { transform: translateY(0) scale(.98); transition-duration: .12s; }
.btn.is-disabled,
.btn[disabled] {
  opacity: .65;
  cursor: not-allowed;
}

.btn--primary {
  --btn-bg: var(--grad-primary);
  --btn-fg: var(--primary-ink);
  --btn-bd: transparent;
  box-shadow: 0 14px 34px -14px var(--glow), inset 0 1px 0 rgb(255 255 255 / .55);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-bd: color-mix(in oklab, var(--text) 22%, transparent);
}
@media (hover: hover) {
  .btn--ghost:hover { --btn-bd: var(--primary); color: var(--primary); }
}
.btn--sm { min-block-size: 2.5rem; padding: .4rem 1.1rem; font-size: .88rem; }
.btn--lg { min-block-size: 3.4rem; padding: .8rem 2.2rem; font-size: 1.05rem; }
.btn--block { inline-size: 100%; }

/* دکمهٔ خرید روی کارت */
.btn--buy {
  --btn-bg: var(--primary-soft);
  --btn-fg: var(--primary);
  --btn-bd: var(--primary-line);
  position: relative;
  z-index: 2;
  min-block-size: 2.7rem;
  padding-inline: .8rem;
  font-size: .88rem;
}
@media (hover: hover) {
  .btn--buy:hover { --btn-bg: var(--grad-primary); --btn-fg: var(--primary-ink); --btn-bd: transparent; box-shadow: 0 12px 28px -12px var(--glow); }
}

/* — بج — */
.badge {
  position: absolute;
  inset-block-start: .6rem;
  inset-inline-start: .6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .12rem .7rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.7;
  box-shadow: 0 8px 20px -8px var(--accent);
}
.badge .icon { inline-size: 1em; block-size: 1em; }
.badge--tier {
  background: hsl(var(--shelf-hue, 265) 90% 64%);
  color: #12091f;
  box-shadow: 0 8px 20px -8px hsl(var(--shelf-hue, 265) 90% 64%);
}

/* — کارت محصول (مشترک بین همهٔ ماژول‌ها مطابق blackfriday.zip) — */
.card {
  --hue: 42;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), color-mix(in oklab, var(--surface) 72%, var(--bg)));
  transition: transform var(--hv-card-lift) var(--ease), border-color var(--hv-card-border), box-shadow var(--hv-card-shadow) var(--ease);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-line);
    box-shadow: 0 28px 50px -26px rgb(0 0 0 / .85), 0 22px 60px -34px var(--glow);
  }
}
.card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - .45rem);
  background:
    radial-gradient(circle at 50% 40%, hsl(var(--hue) 85% 55% / .4), transparent 62%),
    linear-gradient(160deg, hsl(var(--hue) 38% 17%), var(--surface-2));
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgb(255 255 255 / .12) 50%, transparent 62%);
  translate: 130% 0;
  transition: translate var(--hv-card-shine) var(--ease);
}
.card__media :is(img, .art) {
    inline-size: 100%;
    block-size: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    color: hsl(var(--hue) 92% 62%);
    transition: transform var(--hv-card-image) var(--ease);
}

@media (hover: hover) {
    .card:hover .card__media :is(img, .art) {
        transform: scale(1.06);
    }

    .card:hover .card__media::after {
        translate: -130% 0;
    }
}
.card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-block-size: 3.4em;
  padding-inline: .2rem;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.7;
}
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.card__price {
  display: grid;
  gap: .05rem;
  margin-block-start: auto;
  padding-inline: .2rem;
}
.card__old {
  color: var(--muted);
  font-size: .92rem;
  text-decoration-thickness: 1px;
}
.card__now {
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.5;
}
.card__now small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.card__tier {
  justify-self: start;
  margin-block-start: .2rem;
  padding: .05rem .65rem;
  border-radius: 999px;
  background: hsl(var(--shelf-hue, 265) 80% 62% / .16);
  color: hsl(var(--shelf-hue, 265) 90% 76%);
  font-size: .74rem;
  font-weight: 700;
}

/* نوار موجودی (کارت‌های تایم‌دار) */
.stock { display: grid; gap: .35rem; padding-inline: .2rem; color: var(--muted); font-size: .76rem; font-weight: 600; }
.stock i {
  position: relative;
  display: block;
  block-size: .4rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(255 255 255 / .1);
}
.stock i::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: calc(var(--sold) * 1%);
  border-radius: inherit;
  background: linear-gradient(270deg, var(--accent), var(--primary));
  transform-origin: right center;
  animation: stock-fill 1.4s var(--ease) both;
}

/* =====================================================================
   03 · نوار پیشرفت اسکرول و برندینگ
   ===================================================================== */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 70;
  block-size: 3px;
  background: var(--grad-primary);
  transform-origin: right center;
  scale: 0 1;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.3rem;
  font-weight: 900;
}
.brand__mark {
  display: grid;
  place-items: center;
  inline-size: 2.4rem;
  aspect-ratio: 1;
  border-radius: .85rem;
  background: var(--grad-primary);
  color: var(--primary-ink);
  box-shadow: 0 10px 26px -10px var(--glow);
  transition: rotate var(--hv-logo) var(--ease-spring);
}
.brand__mark svg { inline-size: 1.3rem; block-size: 1.3rem; }
.brand--hero { font-size: 1.9rem; }
.brand--hero .brand__mark { inline-size: 3.4rem; border-radius: 1.1rem; }
.brand--hero .brand__mark svg { inline-size: 1.8rem; block-size: 1.8rem; }
@media (hover: hover) {
  .brand:hover .brand__mark { rotate: 90deg; }
}

.bf-top-brand {
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--line);
  background: rgba(14, 14, 20, .75);
}
.bf-top-brand__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bf-top-brand__title {
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  font-weight: 900;
}

/* =====================================================================
   04 · سکشن ۲ — گردونهٔ شانس (Lucky Wheel)
   ===================================================================== */
.wheel {
  --spin-time: 7s;
  --turns: 6;
  --wheel-gold: var(--primary);
  --wheel-gold-ink: var(--primary-ink);
  --wheel-dark: #181821;
  --wheel-dark-ink: var(--primary);
  --wheel-hot: var(--accent);
  --wheel-hot-ink: var(--accent-ink);

  overflow-x: clip;
  padding-block: clamp(2rem, 5vw, 4.5rem) var(--section-pad);
  background: var(--wheel-bg-mobile) center / cover no-repeat;
}
.wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(75% 70% at 50% 40%, #000, transparent);
}
@media (min-width: 48em) {
  .wheel { background-image: var(--wheel-bg-desktop); }
}

.wheel__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "stage" "form";
  justify-items: center;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 3rem) clamp(2rem, 5vw, 5rem);
}
.wheel__intro { grid-area: intro; display: grid; justify-items: center; gap: 1.1rem; max-inline-size: 40rem; text-align: center; }
.wheel__stage { grid-area: stage; }
.wheel__form { grid-area: form; }
@media (min-width: 62em) {
  .wheel__layout {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "intro stage" "form stage";
    justify-items: start;
    align-content: center;
  }
  .wheel__intro { justify-items: start; text-align: start; }
}

.wheel__title {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.25;
  text-wrap: balance;
}

.wheel__stage {
  --size: clamp(16rem, min(calc(100vw - 2.5rem), 46dvh), 34rem);
  --stop-slice: 0;
  --jitter: 0deg;
  position: relative;
  inline-size: var(--size);
  aspect-ratio: 1;
  font-size: calc(var(--size) * .0525);
}
@media (min-width: 62em) {
  .wheel__stage {
    --size: clamp(24rem, 40vw, 34rem);
    justify-self: center;
    align-self: start;
    position: sticky;
    top: 6rem;
  }
}

.wheel__halo {
  position: absolute;
  inset: -11%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--primary) 46%, transparent), transparent 64%);
  filter: blur(26px);
  animation: halo 4.5s ease-in-out infinite alternate;
}

.wheel__frame {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg,
    color-mix(in oklab, var(--primary) 40%, #fff), var(--primary) 12%, var(--primary-2) 30%,
    color-mix(in oklab, var(--primary) 35%, #fff) 46%, var(--primary) 62%, var(--primary-2) 80%,
    color-mix(in oklab, var(--primary) 40%, #fff));
  box-shadow:
    0 34px 80px -24px rgb(0 0 0 / .85),
    0 0 0 .55rem rgb(0 0 0 / .28),
    inset 0 0 0 .18rem rgb(255 255 255 / .4);
}
.wheel__frame::after {
  content: "";
  position: absolute;
  inset: 5.4%;
  border-radius: 50%;
  background: #0b0b10;
  box-shadow: inset 0 0 0 .22rem rgb(0 0 0 / .55);
}

.wheel__bulbs { position: absolute; inset: 0; }
.wheel__bulbs i {
  position: absolute;
  inset: 50% auto auto 50%;
  inline-size: calc(var(--size) * .03);
  aspect-ratio: 1;
  margin: calc(var(--size) * -.015) 0 0 calc(var(--size) * -.015);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #fff1ad 45%, #ffcf3a);
  box-shadow: 0 0 .55rem .12rem rgb(255 226 130 / .85);
  transform: rotate(calc(var(--i) * 18deg)) translateY(calc(var(--size) * -.4705));
  animation: bulb 1.6s steps(1, end) infinite;
  animation-delay: calc(var(--i) * -.08s);
}

.wheel__disc {
  position: absolute;
  inset: 6.2%;
  z-index: 1;
  overflow: hidden;
  border-radius: 50%;
  --final: calc(var(--turns) * 360deg - var(--stop-slice) * 36deg + var(--jitter));
}
.wheel__disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 .28rem rgb(0 0 0 / .5), inset 0 0 1.6rem rgb(0 0 0 / .5);
  pointer-events: none;
}
.wheel__slices { position: absolute; inset: 0; }
.wheel__slices::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -18.4deg, rgb(0 0 0 / .42) 0 .8deg, transparent .8deg 36deg);
  pointer-events: none;
}

.slice {
  --slice-bg: var(--wheel-dark);
  --slice-ink: var(--wheel-dark-ink);
  position: absolute;
  inset: 0;
  color: var(--slice-ink);
  transform: rotate(calc(var(--i) * 36deg));
}
.slice[data-tone="gold"] { --slice-bg: var(--wheel-gold); --slice-ink: var(--wheel-gold-ink); }
.slice[data-tone="dark"] { --slice-bg: var(--wheel-dark); --slice-ink: var(--wheel-dark-ink); }
.slice[data-tone="hot"],
.slice[data-tone="jackpot"] { --slice-bg: var(--wheel-hot);  --slice-ink: var(--wheel-hot-ink); }
.slice::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgb(0 0 0 / .34), transparent 58%),
    var(--slice-bg);
  clip-path: polygon(50% 50%, 33.18% 0, 66.82% 0);
}
.slice__label {
  position: absolute;
  top: 6%;
  left: 50%;
  translate: -50% 0;
  writing-mode: vertical-rl;
  text-align: center;
  font-size: calc(var(--size) * .05);
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}
.slice__label b,
.slice__label small { display: block; }
.slice__label small { font-size: max(.66em, 9.5px); font-weight: 700; opacity: .85; }

.wheel__pegs i {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  inline-size: calc(var(--size) * .026);
  aspect-ratio: 1;
  margin: calc(var(--size) * -.013) 0 0 calc(var(--size) * -.013);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffe08a 50%, #c98a00);
  box-shadow: 0 .1rem .25rem rgb(0 0 0 / .6);
  transform: rotate(calc(18deg + var(--i) * 36deg)) translateY(calc(var(--size) * -.4125));
}

.wheel__gloss {
  position: absolute;
  inset: 6.2%;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 24% 14%, rgb(255 255 255 / .2), transparent 42%),
    radial-gradient(circle at 50% 50%, transparent 60%, rgb(0 0 0 / .32));
}

.wheel__pointer {
  position: absolute;
  inset-block-start: -4.8%;
  left: 50%;
  z-index: 5;
  inline-size: 10.5%;
  aspect-ratio: 44 / 58;
  translate: -50% 0;
  transform-origin: 50% 36%;
  color: var(--accent);
  filter: drop-shadow(0 .5rem .55rem rgb(0 0 0 / .55));
}

.wheel__hub {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  inline-size: 21%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  color: var(--primary-ink);
  background: radial-gradient(circle at 34% 28%, color-mix(in oklab, var(--primary) 35%, #fff), var(--primary) 44%, var(--primary-2));
  box-shadow:
    0 0 0 calc(var(--size) * .014) #0b0b10,
    0 0 0 calc(var(--size) * .02) var(--primary-line),
    0 1rem 2rem rgb(0 0 0 / .55),
    inset 0 -.6rem 1rem rgb(0 0 0 / .22);
  cursor: pointer;
  pointer-events: auto;
  filter: saturate(.35) brightness(.8);
  transition: filter .6s var(--ease), scale .5s var(--ease-spring);
}
.wheel__hub::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.wheel__hub > * { grid-area: 1 / 1; transition: opacity .4s var(--ease), scale .4s var(--ease-spring); }
.hub__ico { inline-size: 38%; block-size: 38%; }
.hub__ico--done { opacity: 0; scale: .4; }
.hub__go { display: grid; justify-items: center; gap: .1rem; opacity: 0; scale: .6; font-size: calc(var(--size) * .032); font-weight: 900; line-height: 1.1; }
.hub__go svg { inline-size: 2.1em; block-size: 2.1em; }

/* — فرم ثبت شماره — */
.wheel__form {
  position: relative;
  display: grid;
  gap: 1.1rem;
  inline-size: 100%;
  max-inline-size: 31rem;
  padding: clamp(1.25rem, 3.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)),
    color-mix(in oklab, var(--bg) 66%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 40px 90px -50px rgb(0 0 0 / .95), inset 0 1px 0 rgb(255 255 255 / .08);
}
.wheel__form-title { font-size: 1.2rem; font-weight: 900; }

.field { display: grid; gap: .55rem; }
.field__label { font-size: .95rem; font-weight: 800; }
.field__box {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-block-size: 3.6rem;
  padding-inline: 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(0 0 0 / .38);
  transition: border-color .3s, box-shadow .3s, opacity .5s, filter .5s, translate .15s;
}
.field__box.is-shake {
  animation: field-shake .36s ease-in-out;
}
@keyframes field-shake {
  0%, 100% { translate: 0 0; }
  25% { translate: -6px 0; }
  75% { translate: 6px 0; }
}
.field__box > .icon { inline-size: 1.35rem; block-size: 1.35rem; color: var(--muted); }
.field__box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field__input {
  flex: 1;
  inline-size: 100%;
  min-inline-size: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
}
.field__input::placeholder { color: color-mix(in oklab, var(--muted) 50%, transparent); font-weight: 500; letter-spacing: .08em; }
.field__box > .field__ok {
  color: var(--success);
  opacity: 0;
  scale: .3;
  transition: opacity .35s var(--ease), scale .5s var(--ease-spring);
}
.field__hints { display: grid; min-block-size: 1.7em; margin-block-start: .5rem; }
.hint {
  grid-area: 1 / 1;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  translate: 0 -.3rem;
  transition: opacity .35s var(--ease), translate .35s var(--ease);
}
.hint--error { color: color-mix(in oklab, var(--accent) 60%, #fff); }

.field[data-phone-invalid="true"] .field__box {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field[data-phone-invalid="true"] .hint--error {
  opacity: 1;
  translate: 0 0;
}

.field[data-phone-valid="true"] .field__box {
  border-color: color-mix(in oklab, var(--success) 70%, transparent);
}
.field[data-phone-valid="true"] .field__ok {
  opacity: 1;
  scale: 1;
}
.field[data-phone-valid="true"] .hint--ok {
  opacity: 1;
  translate: 0 0;
}

#wheel-spin, #prize-close, #prize-open { display: none; }
.wheel:has(#wheel-spin:focus-visible) .wheel__hub { outline: 3px solid var(--text); outline-offset: 4px; }

.wheel__result {
  display: grid;
  grid-template-rows: 0fr;
  margin-block-start: -1.1rem;
  opacity: 0;
  visibility: hidden;
}
.wheel__result-in {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-block-size: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary-line);
}
.wheel__result-in > * { margin-block: .75rem; }
.wheel__result-in > :first-child { margin-inline-start: 1rem; }
.wheel__result-in > :last-child { margin-inline-end: 1rem; }
.wheel__result-ico { display: grid; place-items: center; inline-size: 2.4rem; aspect-ratio: 1; border-radius: .8rem; background: var(--grad-primary); color: var(--primary-ink); }
.wheel__result-in p { flex: 1; font-size: .95rem; }
.wheel__result-in p b { color: var(--primary); }

@media (max-width: 47.99em) {
  .wheel__form { gap: .85rem; }
  .field__hints { min-block-size: 1.5em; }
}

/* تضمین قابل کلیک و تایپ بودن دائمی فیلد شماره موبایل */
#wheel-spin, #prize-close, #prize-open {
  display: none !important;
  pointer-events: none !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  position: absolute !important;
  opacity: 0 !important;
  z-index: -1 !important;
}
.field, .field__box, .field__input {
  position: relative;
  z-index: 5;
  pointer-events: auto !important;
}
.field__input[readonly],
.field__input:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* ۱) فقط و فقط زمانی که شماره ۱۱ رقمی معتبر وارد و تایید شده باشد گردونه آماده چرخش می‌شود */
.wheel[data-phone-ready="true"]:not([data-spins-left="0"]) .wheel__hub {
  pointer-events: auto;
  filter: none;
}
.wheel[data-phone-ready="true"]:not([data-spins-left="0"]) .wheel__hub::after {
  animation: hub-ping 2.2s ease-out infinite;
}
.wheel[data-phone-ready="true"]:not([data-spins-left="0"]) .hub__ico--lock,
.wheel[data-phone-ready="true"]:not([data-spins-left="0"]):not([data-state="spun"]) .hub__ico--done {
  opacity: 0;
  scale: .4;
}
.wheel[data-phone-ready="true"]:not([data-spins-left="0"]):not([data-state="spun"]) .hub__go {
  opacity: 1;
  scale: 1;
}

@media (hover: hover) {
  .wheel[data-phone-ready="true"]:not([data-spins-left="0"]):not([data-state="spun"]) .wheel__hub:hover {
    scale: 1.06;
  }
}

/* ۲) گردونه در حال چرخش یا تازه چرخیده */
.wheel[data-state="spun"] #wheel-spin,
.wheel:has(#wheel-spin:checked) #wheel-spin {
  display: none;
}
.wheel[data-state="spun"] .wheel__disc,
.wheel:has(#wheel-spin:checked) .wheel__disc {
  will-change: transform;
  animation: wheel-spin var(--spin-time) linear forwards;
}
.wheel[data-state="spun"] .wheel__pointer,
.wheel:has(#wheel-spin:checked) .wheel__pointer {
  animation: pointer-buzz .075s ease-in-out .35s 36, pointer-ticks 3.95s linear 3.05s both;
}
.wheel[data-state="spun"] .wheel__hub::after,
.wheel:has(#wheel-spin:checked) .wheel__hub::after {
  animation: none;
}
.wheel[data-state="spun"] .hub__go,
.wheel:has(#wheel-spin:checked) .hub__go {
  opacity: 0;
  scale: .6;
}
.wheel[data-state="spun"] .hub__ico--done,
.wheel:has(#wheel-spin:checked) .hub__ico--done {
  animation: appear .6s var(--ease-spring) var(--spin-time) forwards;
}
.wheel[data-state="spun"] .wheel__result,
.wheel:has(#wheel-spin:checked) .wheel__result {
  opacity: 0;
  visibility: hidden;
  grid-template-rows: 0fr;
}
.wheel[data-state="spun"] .wheel__halo,
.wheel:has(#wheel-spin:checked) .wheel__halo {
  animation-duration: 1.4s;
}

/* ۲-ب) کاربری که قبلاً چرخانده */
.wheel[data-state="already-spun"] .wheel__disc {
  transform: rotate(var(--final));
}
.wheel[data-state="already-spun"] .hub__ico--lock {
  opacity: 0;
  scale: .4;
}
.wheel[data-state="already-spun"] .hub__ico--done {
  opacity: 1;
  scale: 1;
}
.wheel[data-state="already-spun"] .wheel__result,
.wheel[data-has-last-win="true"]:not([data-state="spun"]) .wheel__result {
  grid-template-rows: 1fr;
  margin-block-start: 0;
  opacity: 1;
  visibility: visible;
}

/* ۳) سقف چرخش تمام شده */
.wheel[data-spins-left="0"]:not([data-state="spun"]) #wheel-spin {
  display: none;
}
.wheel[data-spins-left="0"]:not([data-state="spun"]) .hint--ok {
  opacity: 0 !important;
}
.wheel[data-spins-left="0"]:not([data-state="spun"]) .hint--limit {
  opacity: 1;
  translate: 0 0;
  margin-block-start: .6rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.7;
}

.wheel[data-state="spun"]:not(:has(#prize-close:checked)) #prize-close,
.wheel[data-state="already-spun"]:not(:has(#prize-close:checked)) #prize-close,
.wheel:has(#wheel-spin:checked):not(:has(#prize-close:checked)) #prize-close {
  display: block;
}
.wheel[data-state="spun"]:has(#prize-close:checked) #prize-open,
.wheel[data-state="already-spun"] #prize-open,
.wheel:has(#wheel-spin:checked):has(#prize-close:checked) #prize-open {
  display: block;
}

/* — پاپ‌آپ جایزه — */
.prize {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  padding: 1rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
}
.prize__backdrop {
  position: fixed;
  inset: 0;
  background: rgb(4 4 8 / .74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.prize__card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .9rem;
  inline-size: min(100%, 28rem);
  margin: auto;
  padding: 2.4rem 1.5rem 1.5rem;
  border: 1px solid var(--primary-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 70% at 50% 0%, var(--primary-soft), transparent 62%),
    var(--surface);
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / .9), 0 0 90px -24px var(--glow);
  text-align: center;
}
.prize__close {
  position: absolute;
  inset-block-start: .8rem;
  inset-inline-end: .8rem;
  display: grid;
  place-items: center;
  inline-size: 2.4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / .08);
  color: var(--muted);
  cursor: pointer;
  transition: background-color .3s, color .3s, rotate .5s var(--ease);
}
.prize__close svg { inline-size: 1.15rem; block-size: 1.15rem; }
.prize__close:hover { background: rgb(255 255 255 / .16); color: var(--text); rotate: 90deg; }
#prize-close:focus-visible ~ .prize__close { outline: 3px solid var(--primary); outline-offset: 3px; }
.prize__icon {
  display: grid;
  place-items: center;
  inline-size: 4.6rem;
  aspect-ratio: 1;
  border-radius: 1.4rem;
  background: var(--grad-primary);
  color: var(--primary-ink);
  box-shadow: 0 16px 40px -14px var(--glow);
  rotate: -6deg;
}
.prize__icon svg { inline-size: 2.4rem; block-size: 2.4rem; }
.prize__eyebrow { color: var(--primary); font-size: .95rem; font-weight: 800; }
.prize__title { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); font-weight: 900; line-height: 1.5; }
.prize__title span { color: var(--primary); font-size: 1.45em; }
.prize__text { color: var(--muted); font-size: .92rem; }
.prize__code {
  display: grid;
  gap: .35rem;
  inline-size: 100%;
  padding: 1rem;
  border: 2px dashed var(--primary-line);
  border-radius: var(--r-md);
  background: rgb(0 0 0 / .3);
}
.prize__code-label { color: var(--muted); font-size: .82rem; font-weight: 700; }
.prize__code-value {
  justify-self: center;
  padding: .1rem .8rem;
  border-radius: .7rem;
  color: var(--primary);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 1rem + 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: .12em;
  direction: ltr;
  cursor: pointer;
  user-select: all;
  -webkit-user-select: all;
  transition: background-color .25s;
}
.prize__code-value:hover { background: var(--primary-soft); }
.prize__code-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem .85rem; }
.prize__copy {
  position: relative;
  display: inline-grid;
  padding: .5rem 1rem;
  border: 1px solid var(--primary-line);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s, scale .25s var(--ease-spring);
}
.prize__copy-idle, .prize__copy-done {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: opacity .3s var(--ease), translate .35s var(--ease);
}
.prize__copy-done { opacity: 0; translate: 0 .6rem; }
.prize__copy:hover { background: var(--primary); color: var(--primary-ink); }
.prize__copy:active { scale: .95; }
.prize__copy:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.prize__copy::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--success);
  opacity: 0;
  pointer-events: none;
}

.prize__code[data-copied] .prize__copy { background: var(--success); border-color: transparent; color: #04210f; }
.prize__code[data-copied] .prize__copy-idle { opacity: 0; translate: 0 -.6rem; }
.prize__code[data-copied] .prize__copy-done { opacity: 1; translate: 0 0; }
.prize__code[data-copied] .prize__copy .icon { animation: copy-pop .5s var(--ease-spring) both; }
.prize__code[data-copied] .prize__copy::after { animation: copy-ring .8s var(--ease) both; }
.prize__code[data-copied] .prize__code-value { animation: code-flash 1.1s var(--ease) both; }

@keyframes copy-pop  { from { scale: 0; rotate: -40deg; } to { scale: 1; rotate: 0deg; } }
@keyframes copy-ring { from { opacity: .9; box-shadow: 0 0 0 0 var(--success); } to { opacity: 0; box-shadow: 0 0 0 .9rem transparent; } }
@keyframes code-flash {
  0%   { background: color-mix(in oklab, var(--success) 35%, transparent); color: var(--success); scale: 1.06; }
  100% { background: transparent; color: var(--primary); scale: 1; }
}

.confetti { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.confetti i {
  --a: calc(var(--i) * 12.857deg);
  --d: calc(8rem + mod(var(--i) * 37, 9) * 1.1rem);
  position: absolute;
  inset-block-start: 6rem;
  inset-inline-start: 50%;
  inline-size: .55rem;
  block-size: 1rem;
  border-radius: .15rem;
  background: hsl(calc(var(--i) * 47) 95% 62%);
  opacity: 0;
}

.wheel[data-state="spun"] .prize,
.wheel:has(#wheel-spin:checked) .prize {
  animation: prize-in .5s var(--ease) calc(var(--spin-time) + .6s) forwards;
}
.wheel[data-state="spun"] .prize__card,
.wheel:has(#wheel-spin:checked) .prize__card {
  animation: card-pop .9s var(--ease-spring) calc(var(--spin-time) + .6s) both;
}
.wheel[data-state="spun"] .confetti i,
.wheel:has(#wheel-spin:checked) .confetti i {
  animation: confetti 2.2s cubic-bezier(.1, .7, .25, 1) calc(var(--spin-time) + .7s) both;
}
.wheel[data-state="spun"]:has(#prize-close:checked) .prize,
.wheel[data-state="already-spun"]:has(#prize-close:checked) .prize,
.wheel[data-has-last-win="true"]:has(#prize-close:checked) .prize,
.wheel:has(#wheel-spin:checked):has(#prize-close:checked) .prize {
  animation: prize-out .4s var(--ease) forwards;
}
.wheel[data-state="spun"]:has(#prize-open:checked) .prize,
.wheel[data-state="already-spun"]:has(#prize-open:checked) .prize,
.wheel[data-has-last-win="true"]:has(#prize-open:checked) .prize,
.wheel:has(#wheel-spin:checked):has(#prize-open:checked) .prize {
  animation: prize-in .5s var(--ease) forwards;
}
.wheel[data-state="already-spun"]:has(#prize-open:checked) .prize__card,
.wheel[data-has-last-win="true"]:has(#prize-open:checked) .prize__card {
  animation: card-pop .5s var(--ease-spring) both;
}

/* =====================================================================
   05 · سکشن ۳ — تیتر «تخفیف ساعتی ویژه» و شمارنده معکوس (منطبق با blackfriday.zip)
   ===================================================================== */
.deals-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  overflow: clip;
  border: 1px solid var(--primary-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 130% at 50% 0%, var(--primary-soft), transparent 70%),
    linear-gradient(180deg, var(--surface), color-mix(in oklab, var(--surface) 55%, var(--bg)));
  box-shadow: 0 40px 90px -50px rgb(0 0 0 / .9), 0 0 90px -40px var(--glow);
  text-align: center;
}
.deals-hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--deals-art, none) center / cover no-repeat;
}
.deals-hero__ghost {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  align-content: center;
  gap: clamp(.65rem, 2vw, 1.1rem);
  padding: 1rem clamp(1rem, 3vw, 2rem);
  opacity: .8;
  filter: blur(12px) saturate(1.2);
  pointer-events: none;
}
.deals-hero__ghost .ghost:nth-child(n + 3) { display: none; }
@media (min-width: 52em) { .deals-hero__ghost .ghost:nth-child(n + 3) { display: grid; } }
.deals-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 75% at 50% 45%, rgb(7 7 11 / .62), transparent 85%);
  pointer-events: none;
}
.deals-hero::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: -1;
  inline-size: 38%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .09), transparent);
  translate: 260% 0;
  skew: -18deg;
  animation: deals-shine 5.5s var(--ease) infinite;
  pointer-events: none;
}
.deals-hero__ico {
  display: grid;
  place-items: center;
  inline-size: 3.6rem;
  aspect-ratio: 1;
  border-radius: 1.2rem;
  background: var(--grad-primary);
  color: var(--primary-ink);
  box-shadow: 0 14px 34px -12px var(--glow);
  animation: deals-pulse 2.4s ease-in-out infinite;
}
.deals-hero__ico svg { inline-size: 2rem; block-size: 2rem; }
.deals-hero__title {
  font-size: clamp(2.2rem, 1.2rem + 5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.25;
  text-wrap: balance;
}
.deals-hero__timer { display: grid; justify-items: center; gap: .7rem; margin-block-start: .6rem; }
.deals-hero__timer-label { color: var(--muted); font-size: clamp(.95rem, .9rem + .3vw, 1.15rem); font-weight: 800; }

.cd {
  --n: var(--out, 0);
  display: inline-flex;
  align-items: flex-start;
  gap: clamp(.3rem, 1.5vw, .6rem);
  direction: ltr;
  --t: var(--n);
  animation:
    cd-run calc(var(--n) * 1s) steps(var(--n), end),
    cd-zero 100000000s linear calc(var(--n) * 1s);
}
.cd[data-js-cd] {
  animation: none;
}
.cd__cell { display: grid; justify-items: center; gap: .4rem; }
.cd__num {
  display: grid;
  place-items: center;
  min-inline-size: clamp(3.2rem, 14vw, 4.6rem);
  padding-block: .5rem;
  padding-inline: .4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .03));
  box-shadow: inset 0 -.25rem .7rem rgb(0 0 0 / .35), 0 14px 30px -18px rgb(0 0 0 / .9);
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.7rem);
  font-weight: 900;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.cd .cd__num::before { content: none !important; display: none !important; }
.cd { animation: none !important; }
.cd .cd__num--s.is-tick { animation: tick .38s ease-out; }
.cd[data-timer-state="expired"] .cd__sep,
.cd[data-timer-state="idle"] .cd__sep {
  animation: none;
  opacity: .55;
}
.cd__label { color: var(--muted); font-size: .78rem; font-weight: 700; }
.cd__sep {
  padding-block-start: .4rem;
  color: var(--primary);
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  animation: blink 1s steps(1, end) infinite;
}
@keyframes cd-run { from { --t: var(--n); } to { --t: 0; } }
@keyframes cd-zero { from, to { --t: 0; } }
@keyframes tick   { 0% { translate: 0 -.1em; opacity: .55; } 40%, 100% { translate: 0 0; opacity: 1; } }
@keyframes blink  { 50% { opacity: .2; } }

@keyframes on-at  { from { opacity: 0; visibility: hidden; }  to { opacity: 1; visibility: visible; } }
@keyframes off-at { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes progress   { from { scale: 1 1; } to { scale: 0 1; } }
@keyframes lock-wiggle { 0%, 86%, 100% { rotate: 0deg; } 89% { rotate: -9deg; } 92% { rotate: 8deg; } 95% { rotate: -4deg; } }
@keyframes ping {
  0%       { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 70%, transparent); }
  75%, 100% { box-shadow: 0 0 0 .55rem transparent; }
}

.deals {
  --cols: 2;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--surface) 55%, transparent) 30%, transparent);
}
@media (min-width: 52em) { .deals { --cols: 4; } }
.dot {
  display: inline-block;
  inline-size: .5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}
.dot--live { background: var(--accent); opacity: 1; animation: ping 1.6s ease-out infinite; }

/* صحنه بازه‌های ساعتی (یکپارچه در داخل باکس اصلی .deals-hero بدون قاب و پس‌زمینه دوگانه) */
.deals__stage {
  position: relative;
  display: grid;
  inline-size: 100%;
  gap: 1.25rem;
  margin-block-start: .75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.slot {
  position: relative;
  display: grid;
  padding: 0;
  border-radius: var(--r-lg);
  background: var(--slot-bg, none) center / cover no-repeat;
  text-align: right;
}

.slot__live {
  display: block;
  opacity: 1;
  visibility: visible;
}
.slot__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: clamp(.65rem, 2vw, 1.1rem);
}

/* نوار وضعیت زندهٔ بازه + پیشرفت زمان */
.slot__bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.25rem;
  margin-block-end: 1rem;
  padding: .9rem 1.1rem 1.1rem;
  overflow: hidden;
  border: 1px solid var(--primary-line);
  border-radius: var(--r-md);
  background: linear-gradient(270deg, var(--primary-soft), transparent 80%);
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .1rem .85rem;
  border-radius: 99px;
  background: var(--accent-soft);
  color: color-mix(in oklab, var(--accent) 62%, #fff);
  font-size: .85rem;
  font-weight: 800;
}
.slot__bar-text { flex: 1; min-inline-size: 12rem; color: var(--muted); font-size: .92rem; }
.slot__bar-text b { color: var(--text); }
.slot__progress { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 3px; background: var(--line); }
.slot__progress i {
  display: block;
  block-size: 100%;
  background: var(--grad-primary);
  transform-origin: right center;
  animation: progress calc((var(--out, 3600) + var(--elapsed, 0)) * 1s) linear calc(var(--elapsed, 0) * -1s) both;
}

/* لایهٔ ماسک: اسکلت محو + شمارندهٔ معکوس */
.slot__mask {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(.9rem, 2.5vw, 1.4rem);
}
.slot__ghost {
  grid-area: 2 / 1;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: clamp(.65rem, 2vw, 1.1rem);
  align-self: stretch;
  opacity: .85;
  filter: blur(10px) saturate(1.15);
  -webkit-mask-image: linear-gradient(180deg, #000 18%, rgb(0 0 0 / .4));
  mask-image: linear-gradient(180deg, #000 18%, rgb(0 0 0 / .4));
}
.ghost {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: .7rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.ghost__img {
  aspect-ratio: 1;
  border-radius: calc(var(--r-lg) - .45rem);
  background: radial-gradient(circle at 50% 42%, hsl(var(--hue) 90% 60% / .9), hsl(var(--hue) 45% 20%) 72%);
}
.ghost__line { block-size: .9rem; border-radius: 99px; background: rgb(255 255 255 / .28); }
.ghost__line--s { inline-size: 55%; }
.ghost__btn { align-self: end; block-size: 2.7rem; border-radius: 99px; background: var(--primary-soft); }

.slot__lock {
  grid-area: 1 / 1;
  place-self: start center;
  display: grid;
  justify-items: center;
  gap: .85rem;
  inline-size: min(100%, 36rem);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: color-mix(in oklab, var(--bg) 58%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .95), inset 0 1px 0 rgb(255 255 255 / .08);
  text-align: center;
}
.slot__lock-ico {
  display: grid;
  place-items: center;
  inline-size: 3.4rem;
  aspect-ratio: 1;
  border: 1px solid var(--primary-line);
  border-radius: 1.1rem;
  background: var(--primary-soft);
  color: var(--primary);
  animation: lock-wiggle 4.5s ease-in-out infinite;
}
.slot__lock-ico svg { inline-size: 1.9rem; block-size: 1.9rem; }
.slot__lock-title { font-size: clamp(1.1rem, 1rem + .8vw, 1.5rem); font-weight: 900; line-height: 1.7; text-wrap: balance; }
.slot__lock-title b { color: var(--primary); }
.slot__lock-note { color: var(--muted); font-size: .88rem; text-wrap: balance; }

.slot__over {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .7rem;
  min-block-size: 14rem;
  padding: 2rem 1rem;
  text-align: center;
}

.cd--start { --n: var(--in); }
.cd--end { --n: var(--out); }
.cd--sm { gap: .25rem; }
.cd--sm .cd__num { min-inline-size: 2.5rem; padding-block: .1rem; border-radius: .65rem; font-size: 1.15rem; box-shadow: none; }
.cd--sm .cd__sep { padding-block-start: .05rem; font-size: 1.15rem; }

/* ماسک سراسری «پایان تخفیف» */
.deals-over {
  --end: calc(var(--deals-end, 99999999) * 1s);
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
  background: rgb(5 5 8 / .93);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  animation:
    deals-hold 100000000s linear var(--end),
    on-at 1s var(--ease) var(--end);
}
html:has(.deals-over) { animation: deals-lock 100000000s linear calc(var(--deals-end, 99999999) * 1s); }
@keyframes deals-lock { from, to { overflow: hidden; } }
@keyframes deals-hold { from, to { opacity: 1; visibility: visible; } }
@keyframes deals-card-hold { from, to { opacity: 1; } }

.deals-over__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.deals-over__blob {
  position: absolute;
  inline-size: min(60vw, 34rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: deals-drift 14s ease-in-out infinite alternate;
}
.deals-over__blob--1 { inset: -10% auto auto -8%; background: var(--primary); }
.deals-over__blob--2 { inset: auto -10% -14% auto; background: var(--accent); animation-duration: 17s; animation-delay: -4s; }
.deals-over__blob--3 { inset: 30% auto auto 40%; inline-size: min(40vw, 22rem); background: var(--primary-2); opacity: .32; animation-duration: 11s; animation-delay: -7s; }
.deals-over__spark {
  position: absolute;
  inset-inline-start: var(--x);
  inset-block-start: var(--y);
  inline-size: var(--s);
  block-size: var(--s);
  color: var(--primary);
  animation: deals-twinkle 3.2s ease-in-out var(--d) infinite;
}

.deals-over__card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
  inline-size: min(100%, 34rem);
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--primary-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(110% 70% at 50% 0%, var(--primary-soft), transparent 65%),
    color-mix(in oklab, var(--bg) 72%, transparent);
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / .9), 0 0 100px -24px var(--glow);
  text-align: center;
  opacity: 0;
  animation:
    deals-card-hold 100000000s linear calc(var(--deals-end, 99999999) * 1s + .25s),
    card-pop .9s var(--ease-spring) calc(var(--deals-end, 99999999) * 1s + .25s);
}
.deals-over__ico {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 5rem;
  aspect-ratio: 1;
  border-radius: 1.6rem;
  background: var(--grad-primary);
  color: var(--primary-ink);
  box-shadow: 0 18px 44px -14px var(--glow);
}
.deals-over__ico svg { inline-size: 2.8rem; block-size: 2.8rem; }
.deals-over__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: deals-ring 2.6s ease-out infinite;
}
.deals-over__ring--2 { animation-delay: 1.3s; }
.deals-over__title { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem); font-weight: 900; line-height: 1.3; text-wrap: balance; }
.deals-over__text { max-inline-size: 26rem; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); text-wrap: balance; }

@keyframes deals-drift {
  from { translate: 0 0; scale: 1; }
  to   { translate: 6vw 5vh; scale: 1.18; }
}
@keyframes deals-twinkle {
  0%, 100% { opacity: .15; scale: .6; rotate: 0deg; }
  50%      { opacity: 1;   scale: 1.15; rotate: 45deg; }
}
@keyframes deals-ring {
  from { opacity: .7; scale: 1; }
  to   { opacity: 0;  scale: 1.9; }
}
@keyframes deals-shine { 0%, 55% { translate: 260% 0; } 100% { translate: -420% 0; } }
@keyframes deals-pulse {
  0%, 100% { scale: 1; }
  50%      { scale: 1.1; }
}

/* =====================================================================
   06 · سکشن ۴ — بنرهای دوتایی داینامیک (Promotional Banner Grid)
   ===================================================================== */
.banners { padding-block: clamp(1rem, 3vw, 2rem); }
.banners__grid { display: grid; gap: clamp(.75rem, 2.2vw, 1.5rem); }
@media (min-width: 40em) {
  .banners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.banner {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 30px 60px -36px rgb(0 0 0 / .9);
  transition: transform var(--hv-banner) var(--ease), box-shadow var(--hv-banner) var(--ease), border-color var(--hv-banner-border);
}
.banner picture {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}
.banner img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform var(--hv-banner-image) var(--ease);
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 38%, rgb(255 255 255 / .17) 50%, transparent 62%);
  translate: 130% 0;
  transition: translate var(--hv-banner-shine) var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .banner:hover { transform: translateY(-6px); border-color: var(--primary-line); box-shadow: 0 40px 70px -36px rgb(0 0 0 / .95), 0 0 60px -30px var(--glow); }
  .banner:hover img { transform: scale(1.06); }
  .banner:hover::after { translate: -130% 0; }
}

/* =====================================================================
   07 · سکشن ۵ — قفسهٔ محصولات شگفت‌انگیز (Featured Products Showcase)
   ===================================================================== */
.featured__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.65rem, 2vw, 1.25rem);
}
@media (min-width: 52em) {
  .featured__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.featured__foot { display: flex; justify-content: center; margin-block-start: clamp(1.75rem, 4vw, 2.75rem); }
.featured__foot .icon { transition: translate var(--hv-link) var(--ease); }
@media (hover: hover) { .featured__foot .btn:hover .icon { translate: -.4rem 0; } }

/* =====================================================================
   08 · سکشن ۶ — قفسه‌های موضوعی و پلکانی (Dynamic Tiered Shelves)
   ===================================================================== */
.shelf {
  --shelf-hue: 150;
  --shelf-c: hsl(var(--shelf-hue) 92% 62%);
  margin-block-start: clamp(2.25rem, 5vw, 3.75rem);
}
.shelf:first-of-type { margin-block-start: 0; }
.shelf__head { display: flex; align-items: center; gap: 1rem; margin-block-end: 1rem; }
.shelf__icon {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 3.1rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--shelf-c);
  color: #10101a;
  box-shadow: 0 12px 30px -12px var(--shelf-c);
}
.shelf__icon svg { inline-size: 1.5rem; block-size: 1.5rem; }
.shelf__icon img { inline-size: 1.8rem; block-size: 1.8rem; object-fit: contain; }
.shelf__titles { flex: 1; min-inline-size: 0; }
.shelf__titles h3 { font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); font-weight: 900; line-height: 1.5; }
.shelf__titles p { color: var(--muted); font-size: .9rem; }

.shelf__rail {
  position: relative;
  display: flex;
  gap: 1rem;
  margin-inline: -.25rem;
  padding: .5rem .25rem 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: .25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--shelf-c) transparent;
  cursor: grab;
}
.shelf__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.shelf__rail > * { flex: none; inline-size: clamp(10.25rem, 44vw, 14.5rem); scroll-snap-align: start; }

.shelf__cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: .3rem;
  padding: 1.2rem;
  border: 1px solid hsl(var(--shelf-hue) 80% 62% / .4);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 10% 0%, hsl(var(--shelf-hue) 95% 62% / .55), transparent 62%),
    linear-gradient(165deg, hsl(var(--shelf-hue) 55% 24%), hsl(var(--shelf-hue) 45% 9%));
  transition: transform var(--hv-shelf) var(--ease), box-shadow var(--hv-shelf) var(--ease);
}
.shelf__cover-ico {
  position: absolute;
  inset-block-start: -1.2rem;
  inset-inline-end: -1.2rem;
  z-index: -1;
  inline-size: 9rem;
  block-size: 9rem;
  color: hsl(var(--shelf-hue) 95% 72% / .24);
  rotate: -12deg;
  transition: rotate var(--hv-shelf-icon) var(--ease), scale var(--hv-shelf-icon) var(--ease);
}
.shelf__cover-small { color: hsl(var(--shelf-hue) 90% 82%); font-size: .9rem; font-weight: 700; }
.shelf__cover-big { font-size: 1.4rem; font-weight: 900; line-height: 1.35; }
.shelf__cover-big b { display: block; color: var(--shelf-c); font-size: 2.7rem; line-height: 1.15; }
.shelf__cover-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-block-start: .7rem;
  padding: .3rem .95rem;
  border-radius: 99px;
  background: var(--shelf-c);
  color: #10101a;
  font-size: .85rem;
  font-weight: 800;
}
.shelf__cover-cta .icon { transition: translate var(--hv-link) var(--ease); }
@media (hover: hover) {
  .shelf__cover:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -26px hsl(var(--shelf-hue) 90% 50% / .6); }
  .shelf__cover:hover .shelf__cover-ico { rotate: 0deg; scale: 1.15; }
  .shelf__cover:hover .shelf__cover-cta .icon { translate: -.3rem 0; }
}

/* پلکان تخفیف سبد خرید */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: .6rem;
  margin-block-end: 1rem;
}
.tiers__step {
  display: grid;
  align-content: end;
  gap: .1rem;
  min-block-size: calc(4.4rem + var(--lvl) * 1.15rem);
  padding: .8rem 1rem;
  border: 1px solid hsl(var(--shelf-hue) 70% 62% / .32);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, hsl(var(--shelf-hue) 70% 62% / calc(.06 + var(--lvl) * .07)), transparent),
    var(--surface);
}
.tiers__step b { color: var(--shelf-c); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 900; line-height: 1.2; }
.tiers__step span { color: var(--muted); font-size: .8rem; line-height: 1.55; }

/* دکمه‌های پیشین/بعدی اسکرول (CSS Carousel؛ Chromium) */
@supports selector(::scroll-button(*)) and (hover: hover) and (pointer: fine) {
  .shelf__rail { anchor-scope: --rail; anchor-name: --rail; }
  .shelf__rail::scroll-button(*) {
    position: fixed;
    position-anchor: --rail;
    z-index: 5;
    display: grid;
    place-items: center;
    inline-size: 2.8rem;
    aspect-ratio: 1;
    border: 1px solid var(--primary-line);
    border-radius: 50%;
    background: color-mix(in oklab, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 900;
    direction: ltr;
    box-shadow: 0 14px 30px -12px rgb(0 0 0 / .9);
    cursor: pointer;
    transition: scale .3s var(--ease-spring), opacity .3s, background-color .3s, color .3s;
  }
  .shelf__rail::scroll-button(*):hover { scale: 1.1; background: var(--primary); color: var(--primary-ink); }
  .shelf__rail::scroll-button(*):active { scale: .94; }
  .shelf__rail::scroll-button(*):disabled { opacity: 0; pointer-events: none; }
  .shelf__rail::scroll-button(inline-start) { content: "›" / "قبلی"; position-area: inline-start center; translate: 20% -1rem; }
  .shelf__rail::scroll-button(inline-end) { content: "‹" / "بعدی"; position-area: inline-end center; translate: -20% -1rem; }
}

/* =====================================================================
   09 · سکشن ۷ — نوار اعتمادسازی و مزیت‌های رقابتی (Trust & Value Props)
   ===================================================================== */
.trust { --cols: 3; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.trust[data-cols="1"] { --cols: 1; }
.trust[data-cols="2"] { --cols: 2; }
.trust__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 40em) {
  .trust__grid { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .trust__grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), color-mix(in oklab, var(--surface) 70%, var(--bg)));
  transition: transform var(--hv-trust) var(--ease), border-color var(--hv-trust-border), box-shadow var(--hv-trust) var(--ease);
}
.trust__icon {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 3.7rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--primary-line);
  border-radius: 1.15rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition: rotate var(--hv-trust-icon) var(--ease-spring), background-color var(--hv-trust-border), color var(--hv-trust-border);
}
.trust__icon svg { inline-size: 1.9rem; block-size: 1.9rem; }
.trust__icon img { inline-size: 2.1rem; block-size: 2.1rem; object-fit: contain; }
.trust__item h3 { font-size: 1.05rem; font-weight: 900; line-height: 1.6; }
.trust__item p { margin-block-start: .1rem; color: var(--muted); font-size: .88rem; line-height: 1.8; }
@media (hover: hover) {
  .trust__item:hover { transform: translateY(-4px); border-color: var(--primary-line); box-shadow: 0 26px 50px -30px rgb(0 0 0 / .9), 0 20px 60px -40px var(--glow); }
  .trust__item:hover .trust__icon { rotate: -8deg; background: var(--primary); color: var(--primary-ink); }
}
.banner--wide { margin-block-start: 1.5rem; aspect-ratio: 2 / 1; }
.banner--wide img { object-position: right center; }
@media (min-width: 40em) { .banner--wide { aspect-ratio: 4 / 1; } }

/* =====================================================================
   10 · سکشن ۸ — فوتر اختصاصی کمپین (Campaign Footer)
   ===================================================================== */
.footer {
  padding-block: clamp(3rem, 7vw, 5rem) 0;
  border-block-start: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--surface) 65%, transparent));
}
.footer .container { width: min(100% - 2rem, 54rem); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem 2.5rem; }
@media (min-width: 36em) { .footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
@media (min-width: 48em) { .footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; } }
.footer__brand { display: grid; align-content: start; justify-items: start; gap: 1rem; }
.footer__brand p { max-inline-size: 26rem; color: var(--muted); font-size: .92rem; }
.social { display: flex; flex-wrap: wrap; gap: .6rem; }
.footer__trust { display: grid; align-content: start; justify-items: start; gap: 1rem; }
@media (min-width: 36em) and (max-width: 47.99em) { .footer__trust { grid-column: 2; } }
.footer__badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.badge-logo {
    display: grid;
    place-items: center;
    justify-items: center;
    gap: .3rem;
    inline-size: 5.6rem;
    min-block-size: 5.6rem;
    padding: .5rem;
    border: 1.5px dashed color-mix(in oklab, var(--text) 24%, transparent);
    border-radius: var(--r-md);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    background: #ffffff
}
.badge-logo img, .namad .item img {
  max-inline-size: 4.5rem;
  max-block-size: 4.5rem;
  object-fit: contain;
}
.footer__intro {
  max-inline-size: 28rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.85;
}
.badge-logo svg { inline-size: 2.2rem; block-size: 2.2rem; color: var(--primary); }
.social a {
  display: grid;
  place-items: center;
  inline-size: 2.8rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / .04);
  color: var(--muted);
  transition: transform var(--hv-social) var(--ease-spring), background-color var(--hv-link), color var(--hv-link), border-color var(--hv-link);
}
.social svg { inline-size: 1.3rem; block-size: 1.3rem; }
@media (hover: hover) {
  .social a:hover { transform: translateY(-4px) rotate(-6deg); border-color: transparent; background: var(--primary); color: var(--primary-ink); }
}
.footer__title {
  position: relative;
  margin-block-end: 1rem;
  padding-inline-start: .9rem;
  font-size: 1rem;
  font-weight: 900;
}
.footer__title::before {
  content: "";
  position: absolute;
  inset-block: .35em;
  inset-inline-start: 0;
  inline-size: 4px;
  border-radius: 4px;
  background: var(--grad-primary);
}
.contact { display: grid; gap: .8rem; }
.contact li { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .92rem; }
.contact .icon { color: var(--primary); }
.contact a { transition: color var(--hv-link); }
.contact a:hover { color: var(--text); }
.support { display: grid; gap: .7rem; }
.support li { display: grid; gap: .05rem; padding: .7rem .95rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgb(255 255 255 / .03); }
.support b { font-size: .92rem; }
.support span { color: var(--muted); font-size: .8rem; }
.links { display: grid; gap: .5rem; }
.links a { display: inline-block; color: var(--muted); font-size: .92rem; transition: color var(--hv-link), translate var(--hv-link) var(--ease); }
.links a:hover { color: var(--text); translate: -.35rem 0; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  margin-block-start: 2.5rem;
  padding-block: 1.4rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.footer__bottom a { color: var(--primary); font-weight: 700; transition: opacity var(--hv-link); }
.footer__bottom a:hover { opacity: .8; text-decoration: underline; text-underline-offset: .25em; }

/* =====================================================================
   11 · حرکت
   ===================================================================== */
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: grow linear both; animation-timeline: scroll(root block); }
  @keyframes grow { to { scale: 1 1; } }
}
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry calc(var(--i, 0) * 6%) entry calc(36% + var(--i, 0) * 6%);
  }
  @keyframes reveal-up {
    from { opacity: 0; translate: 0 2.2rem; scale: .975; }
    to   { opacity: 1; translate: 0 0; scale: 1; }
  }
}

.wheel__intro > * { animation: rise .9s var(--ease) both; }
.wheel__intro > :nth-child(2) { animation-delay: .08s; }
.wheel__intro > :nth-child(3) { animation-delay: .16s; }
.wheel__intro > :nth-child(4) { animation-delay: .24s; }
.wheel__stage { animation: stage-in 1.4s var(--ease) .1s both; }
.wheel__form { animation: rise .9s var(--ease) .3s both; }
@keyframes rise     { from { opacity: 0; translate: 0 1.6rem; } }
@keyframes stage-in { from { opacity: 0; scale: .82; rotate: -40deg; } }

@keyframes stock-fill { from { scale: 0 1; } }
@keyframes halo   { from { opacity: .55; scale: .96; } to { opacity: .95; scale: 1.05; } }
@keyframes bulb   { 0%, 49.99% { opacity: 1; } 50%, 100% { opacity: .3; filter: brightness(.6) saturate(.5); } }
@keyframes rotate { to { rotate: 360deg; } }
@keyframes hub-ping {
  0%   { opacity: .9; box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 75%, transparent); }
  100% { opacity: 0;  box-shadow: 0 0 0 calc(var(--size) * .1) transparent; }
}

@keyframes window {
  0%, 98% { opacity: 1; visibility: visible; translate: 0 0; }
  100%    { opacity: 0; visibility: hidden;  translate: 0 -.45rem; }
}
@keyframes appear {
  from { opacity: 0; visibility: hidden;  translate: 0 .45rem; }
  to   { opacity: 1; visibility: visible; translate: 0 0; }
}
@keyframes result-in {
  from { grid-template-rows: 0fr; margin-block-start: -1.1rem; opacity: 0; visibility: visible; }
  to   { grid-template-rows: 1fr; margin-block-start: 0;       opacity: 1; visibility: visible; }
}

@keyframes wheel-spin {
  0%   { transform: rotate(0deg);  animation-timing-function: cubic-bezier(.33, 0, .4, 1); }
  5%   { transform: rotate(-9deg); animation-timing-function: cubic-bezier(.35, .3, .1, 1); }
  100% { transform: rotate(var(--final)); }
}
@keyframes pointer-buzz { 0%, 100% { rotate: 0deg; } 45% { rotate: -15deg; } }
@keyframes pointer-ticks {
  0%   { rotate: 0deg; }
  1.901% { rotate: 0deg; animation-timing-function: ease-in; }
  2.675% { rotate: -22deg; animation-timing-function: ease-out; }
  3.522% { rotate: 4deg; animation-timing-function: ease-in-out; }
  4.557% { rotate: 0deg; animation-timing-function: linear; }
  4.86% { rotate: 0deg; animation-timing-function: ease-in; }
  5.71% { rotate: -22deg; animation-timing-function: ease-out; }
  6.661% { rotate: 4deg; animation-timing-function: ease-in-out; }
  7.823% { rotate: 0deg; animation-timing-function: linear; }
  8.126% { rotate: 0deg; animation-timing-function: ease-in; }
  9.066% { rotate: -22deg; animation-timing-function: ease-out; }
  10.14% { rotate: 4deg; animation-timing-function: ease-in-out; }
  11.453% { rotate: 0deg; animation-timing-function: linear; }
  11.757% { rotate: 0deg; animation-timing-function: ease-in; }
  12.804% { rotate: -22deg; animation-timing-function: ease-out; }
  14.029% { rotate: 4deg; animation-timing-function: ease-in-out; }
  15.526% { rotate: 0deg; animation-timing-function: linear; }
  15.83% { rotate: 0deg; animation-timing-function: ease-in; }
  17.007% { rotate: -22deg; animation-timing-function: ease-out; }
  18.421% { rotate: 4deg; animation-timing-function: ease-in-out; }
  20.149% { rotate: 0deg; animation-timing-function: linear; }
  20.452% { rotate: 0deg; animation-timing-function: ease-in; }
  21.792% { rotate: -22deg; animation-timing-function: ease-out; }
  23.387% { rotate: 4deg; animation-timing-function: ease-in-out; }
  25.337% { rotate: 0deg; animation-timing-function: linear; }
  25.779% { rotate: 0deg; animation-timing-function: ease-in; }
  27.329% { rotate: -22deg; animation-timing-function: ease-out; }
  28.924% { rotate: 4deg; animation-timing-function: ease-in-out; }
  30.873% { rotate: 0deg; animation-timing-function: linear; }
  32.05% { rotate: 0deg; animation-timing-function: ease-in; }
  33.886% { rotate: -22deg; animation-timing-function: ease-out; }
  35.481% { rotate: 4deg; animation-timing-function: ease-in-out; }
  37.43% { rotate: 0deg; animation-timing-function: linear; }
  39.68% { rotate: 0deg; animation-timing-function: ease-in; }
  41.933% { rotate: -22deg; animation-timing-function: ease-out; }
  43.528% { rotate: 4deg; animation-timing-function: ease-in-out; }
  45.477% { rotate: 0deg; animation-timing-function: linear; }
  49.509% { rotate: 0deg; animation-timing-function: ease-in; }
  52.455% { rotate: -22deg; animation-timing-function: ease-out; }
  54.05% { rotate: 4deg; animation-timing-function: ease-in-out; }
  56% { rotate: 0deg; animation-timing-function: linear; }
  64.166% { rotate: 0deg; animation-timing-function: ease-in; }
  68.47% { rotate: -22deg; animation-timing-function: ease-out; }
  70.065% { rotate: 4deg; animation-timing-function: ease-in-out; }
  72.014% { rotate: 0deg; animation-timing-function: linear; }
  100% { rotate: 0deg; }
}

@keyframes prize-in  { from { opacity: 0; visibility: hidden; }  to { opacity: 1; visibility: visible; } }
@keyframes prize-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes card-pop {
  0%   { opacity: 0; translate: 0 2.5rem; scale: .82; rotate: -2deg; }
  100% { opacity: 1; translate: 0 0;      scale: 1;   rotate: 0deg; }
}
@keyframes confetti {
  0%   { opacity: 1; transform: translateY(0) translate(-50%, -50%) rotate(0deg) translateY(0) rotate(0deg); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(7rem) translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(560deg); }
}

/* =====================================================================
   12 · دسترس‌پذیری و کاهش حرکت
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .wheel__intro > *,
  .wheel__stage,
  .wheel__form,
  .wheel__halo,
  .wheel__bulbs i,
  .wheel__pointer,
  .wheel__hub::after,
  .deals-hero,
  .deals-hero::before,
  .deals-hero__ico,
  .deals-over__blob,
  .deals-over__spark,
  .deals-over__ring,
  .dot--live,
  .slot__lock-ico,
  .cd__sep,
  .prize__copy::after,
  .prize__copy .icon,
  .prize__code-value,
  .cd__num--s,
  .stock i::after,
  .confetti i,
  .btn::before { animation: none !important; }
  .confetti { display: none; }
  .wheel { --spin-time: 1.6s; --turns: 2; }
  .card, .banner, .trust__item, .shelf__cover, .btn { transition-duration: .01ms; }
}

@media print {
  .scroll-progress, .demo, .prize { display: none !important; }
}

/* =====================================================================
   13 · الحاقات تمام‌صفحه، بنرهای اعتمادسازی و اعلان افزودن به سبد خرید
   ===================================================================== */
html, body.bf-fullpage {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

.bf-announcement {
  padding-block: .55rem;
  background: var(--grad-primary);
  color: var(--primary-ink);
  font-size: .88rem;
  font-weight: 800;
  text-align: center;
}

.brand__logo-img {
  max-height: 2.6rem;
  width: auto;
  object-fit: contain;
}

.trust__banners {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(.75rem, 2vw, 1.5rem);
  margin-block-start: 1.5rem;
}
@media (min-width: 48em) {
  .trust__banners[data-banner-cols="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust__banners[data-banner-cols="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.badge-logo img {
  max-width: 100%;
  max-height: 3.4rem;
  object-fit: contain;
}

/* Toast اعلان سبد خرید */
.bf-toast {
  position: fixed;
  inset-block-end: 1.25rem;
  left: 50%;
  z-index: 150;
  display: flex;
  align-items: center;
  max-width: calc(100vw - 2rem);
  gap: .85rem;
  padding: .75rem 1.25rem;
  border: 1px solid var(--primary-line);
  border-radius: 999px;
  background: rgba(16, 16, 22, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: .9rem;
  font-weight: 700;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .9);
  translate: -50% 150%;
  opacity: 0;
  pointer-events: none;
  transition: translate .35s var(--ease), opacity .35s var(--ease);
}
.bf-toast.is-visible {
  translate: -50% 0;
  opacity: 1;
  pointer-events: auto;
}
.bf-toast__link {
  padding: .25rem .85rem;
  border-radius: 999px;
  background: var(--grad-primary);
  color: var(--primary-ink);
  font-size: .82rem;
  font-weight: 900;
}

/* =====================================================================
   14 · نمایش تعداد شانس باقیمانده گردونه و رفتار ۴ حالته تخفیف ساعتی
   ===================================================================== */
.wheel__quota {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  justify-self: center;
  inline-size: 100%;
  padding: .6rem 1.1rem;
  border: 1px solid var(--primary-line);
  border-radius: var(--r-md);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.wheel__quota-ico {
  inline-size: 1.15rem;
  block-size: 1.15rem;
  flex: none;
}
.wheel__quota[data-quota-state="partial"] {
  border-color: color-mix(in oklab, var(--primary) 65%, transparent);
  background: color-mix(in oklab, var(--primary) 18%, transparent);
}
.wheel__quota[data-quota-state="exhausted"] {
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  background: var(--accent-soft);
  color: color-mix(in oklab, var(--accent) 65%, #fff);
}

/* =====================================================================
   معماری تک‌باکس (Single-Box Overlay) بخش تخفیف ساعتی ویژه:
   ۱. حالت Upcoming (تا ثانیه صفر): دقیقاً مشابه تصویر مرجع با لایه محو، آیکون ساعت، عنوان «تخفیف ساعتی ویژه» و تایمر شمارش معکوس
   ۲. حالت Revealing (لحظه رسیدن به ۰۰:۰۰:۰۰): موج انفجار طلایی، کنار رفتن لایه محو و محو شدن کامل عنوان/آیکون/تایمر و نمایان شدن محصولات پشت آن در همان باکس
   ۳. حالت Active (در جریان تخفیف): نمایش محصولات درون همان باکس بدون هیچ باکس اضافه، بدون تایمر و بدون آیکون ساعت، همراه با هدر ترغیب‌کننده «تخفیف تا ساعت ۲»
   ۴. حالت Expiring / Expired (لحظه اتمام تخفیف): انیمیشن سینمایی و چشم‌نواز پایان حراج همراه با ذرات طلایی، حلقه‌های مداری و کارت شیشه‌ای پایان تخفیف
   ===================================================================== */
.deals-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  transition:
    padding .65s var(--ease),
    border-color .65s var(--ease),
    box-shadow .65s var(--ease),
    background .65s var(--ease);
}

.deals-hero__veil {
  grid-area: 1 / 1;
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
  inline-size: 100%;
  text-align: center;
  transform-origin: center center;
}

.deals-hero__shockwave {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  inline-size: 2rem;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 40px 8px var(--glow), inset 0 0 25px var(--primary-soft);
  opacity: 0;
  pointer-events: none;
}

/* تپش هیجانی ۱۰ ثانیه پایانی قبل از صفر شدن تایمر */
.cd.is-final-countdown .cd__num {
  border-color: color-mix(in oklab, var(--primary) 70%, transparent);
  box-shadow:
    inset 0 -.25rem .7rem rgb(0 0 0 / .35),
    0 0 24px -6px var(--glow);
  animation: cd-final-pulse .95s ease-in-out infinite;
}
@keyframes cd-final-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); border-color: var(--primary); }
}

/* ۱) حالت اول (قبل از شروع - Upcoming): دقیقاً مطابق تصویر مرجع */
.deals-hero[data-slot-state="upcoming"] {
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
}
.deals-hero[data-slot-state="upcoming"] .deals-hero__veil {
  display: grid;
  opacity: 1;
  visibility: visible;
}
.deals-hero[data-slot-state="upcoming"] .deals-hero__ghost {
  opacity: .85;
  visibility: visible;
  filter: blur(12px) saturate(1.2);
  transition: opacity .85s var(--ease), filter .85s var(--ease), transform .85s var(--ease);
}
.deals-hero[data-slot-state="upcoming"] .deals__stage,
.deals-hero[data-slot-state="upcoming"] .deals-hero__finale {
  display: none !important;
  pointer-events: none;
  user-select: none;
}

/* ۲) حالت دوم (لحظه صفر شدن تایمر - Revealing): انیمیشن بازگشایی سینمایی در همان باکس */
.deals-hero[data-slot-state="revealing"] {
  padding: clamp(1.2rem, 2.8vw, 1.85rem) clamp(1rem, 2.6vw, 1.85rem);
}
.deals-hero__golden-flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--primary) 68%, #fff), color-mix(in oklab, var(--primary) 32%, transparent) 46%, transparent 74%);
  mix-blend-mode: screen;
}
.deals-hero.is-revealing .deals-hero__golden-flash {
  animation: deals-golden-burst 1.15s var(--ease) both;
}
.deals-hero.is-revealing .deals-hero__shockwave {
  animation: deals-shockwave-ring 1.05s cubic-bezier(.16, 1, .3, 1) both;
}
.deals-hero[data-slot-state="revealing"] .deals-hero__veil {
  display: grid;
  pointer-events: none;
  animation: deals-veil-dissolve 1.05s cubic-bezier(.22, 1, .36, 1) forwards;
}
.deals-hero.is-revealing .deals-hero__ghost {
  animation: deals-ghost-clear .95s var(--ease) forwards;
}
.cd.is-zero-flash .cd__num {
  border-color: var(--primary);
  box-shadow: 0 0 34px -2px var(--glow), inset 0 0 18px var(--primary-soft);
  color: var(--primary);
}

/* ۳) حالت سوم (فعال - Active): حذف کامل عنوان «تخفیف ساعتی ویژه»، آیکون ساعت و تایمر؛ نمایش محصولات در همان باکس */
.deals-hero[data-slot-state="active"] {
  padding: clamp(1.2rem, 2.8vw, 1.85rem) clamp(1rem, 2.6vw, 1.85rem);
}
.deals-hero[data-slot-state="active"] .deals-hero__veil,
.deals-hero[data-slot-state="expiring"] .deals-hero__veil,
.deals-hero[data-slot-state="expired"] .deals-hero__veil {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.deals-hero[data-slot-state="active"] .deals-hero__ghost,
.deals-hero[data-slot-state="expiring"] .deals-hero__ghost,
.deals-hero[data-slot-state="expired"] .deals-hero__ghost {
  opacity: 0;
  visibility: hidden;
  filter: blur(0px);
  transform: scale(1.04);
  pointer-events: none;
}
.deals-hero[data-slot-state="active"] .deals-hero__finale,
.deals-hero[data-slot-state="revealing"] .deals-hero__finale {
  display: none !important;
}

.deals-hero[data-slot-state="revealing"] .deals__stage,
.deals-hero[data-slot-state="active"] .deals__stage,
.deals-hero[data-slot-state="expiring"] .deals__stage,
.deals-hero[data-slot-state="expired"] .deals__stage {
  grid-area: 1 / 1;
  z-index: 2;
  display: grid;
  inline-size: 100%;
  margin-block-start: 0;
}

.slot.slot--upcoming {
  display: none;
  pointer-events: none;
  user-select: none;
}
.slot.slot--active {
  display: grid;
}

/* هدر ترغیب‌کننده فوق‌حرفه‌ای «تخفیف تا ساعت ۲» در بالای کارت‌های محصولات درون همان باکس */
.slot__urgency-bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block-end: clamp(.95rem, 2.2vw, 1.35rem);
  padding: clamp(.75rem, 1.8vw, 1rem) clamp(.95rem, 2.4vw, 1.4rem);
  border: 1px solid color-mix(in oklab, var(--primary) 46%, transparent);
  border-radius: calc(var(--r-lg) + .1rem);
  background:
    radial-gradient(90% 180% at 95% 0%, color-mix(in oklab, var(--accent) 24%, transparent), transparent 62%),
    radial-gradient(85% 160% at 8% 100%, color-mix(in oklab, var(--primary) 22%, transparent), transparent 64%),
    linear-gradient(135deg, rgb(28 22 32 / .94), rgb(16 16 24 / .96));
  box-shadow:
    0 20px 45px -24px rgb(0 0 0 / .9),
    0 0 38px -18px var(--glow),
    inset 0 1px 0 rgb(255 255 255 / .12);
}
.slot__urgency-glow {
  position: absolute;
  inset-block: 0;
  inset-inline-start: -35%;
  z-index: -1;
  inline-size: 32%;
  background: linear-gradient(105deg, transparent, rgb(255 255 255 / .11), transparent);
  skew: -20deg;
  animation: urgency-sheen 4.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes urgency-sheen {
  0%, 45% { translate: 420% 0; }
  100%    { translate: -220% 0; }
}
.slot__urgency-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
}
.slot__urgency-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .9rem;
}
.slot__urgency-live {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .28rem .85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 60%, #fff);
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 76%, #900));
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: -.01em;
  box-shadow: 0 8px 22px -6px var(--accent);
}
.slot__urgency-live .icon {
  inline-size: 1.1em;
  block-size: 1.1em;
  animation: flame-flicker 1.5s ease-in-out infinite alternate;
}
@keyframes flame-flicker {
  from { transform: scale(1) rotate(-4deg); }
  to   { transform: scale(1.14) rotate(4deg); }
}
.slot__urgency-pulse {
  inline-size: .48rem;
  block-size: .48rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgb(255 255 255 / .8);
  animation: urgency-dot-ping 1.5s ease-out infinite;
}
@keyframes urgency-dot-ping {
  0%        { box-shadow: 0 0 0 0 rgb(255 255 255 / .85); }
  80%, 100% { box-shadow: 0 0 0 .45rem transparent; }
}
.slot__urgency-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0;
  color: var(--text);
  font-size: clamp(.94rem, .86rem + .38vw, 1.14rem);
  font-weight: 800;
  line-height: 1.65;
}
.slot__urgency-time-badge {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .18rem .88rem;
  border-radius: 999px;
  background: var(--grad-primary);
  color: var(--primary-ink);
  font-size: 1.03em;
  font-weight: 900;
  box-shadow:
    0 10px 26px -8px var(--glow),
    inset 0 1px 0 rgb(255 255 255 / .65);
  animation: badge-attention 2.4s ease-in-out infinite;
}
.slot__urgency-time-badge em {
  font-style: normal;
  font-weight: 900;
  font-size: 1.1em;
  text-decoration: none;
}
@keyframes badge-attention {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-1.5px) scale(1.035); box-shadow: 0 14px 30px -6px var(--glow), inset 0 1px 0 rgb(255 255 255 / .8); }
}
.slot__urgency-left {
  display: flex;
  align-items: center;
}
.slot__urgency-fomo {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .28rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--primary-line);
  background: rgb(255 199 44 / .1);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
}
.slot__urgency-progress {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 3px;
  background: rgb(255 255 255 / .08);
  overflow: hidden;
}
.slot__urgency-progress i {
  display: block;
  inline-size: var(--slot-progress, 100%);
  block-size: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform-origin: right center;
  transition: inline-size .4s linear;
}

/* انیمیشن ورود هدر ترغیب‌کننده و کارت‌های محصول در لحظه صفر شدن تایمر */
.slot.is-stagger-reveal .slot__urgency-bar {
  animation: urgency-bar-reveal .78s var(--ease-spring) .12s both;
}
.slot.is-stagger-reveal .card {
  animation: card-stagger-reveal .82s var(--ease-spring) calc(var(--card-idx, 0) * .1s + .22s) both;
}

@keyframes deals-veil-dissolve {
  0% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1) translateY(0);
  }
  24% {
    opacity: 1;
    filter: blur(0px) brightness(1.3);
    transform: scale(1.03) translateY(-2px);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    filter: blur(22px) brightness(1.6);
    transform: scale(1.1) translateY(-18px);
  }
}
@keyframes deals-ghost-clear {
  0% {
    opacity: .85;
    filter: blur(12px) saturate(1.2);
    transform: scale(1);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    filter: blur(0px) saturate(1.5);
    transform: scale(1.05);
  }
}
@keyframes deals-shockwave-ring {
  0% {
    opacity: .95;
    inline-size: 3rem;
    border-width: 4px;
  }
  100% {
    opacity: 0;
    inline-size: min(130%, 68rem);
    border-width: 1px;
  }
}
@keyframes urgency-bar-reveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, -1.2rem, 0) scale(.95);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes deals-golden-burst {
  0%   { opacity: 0; transform: scale(.85); }
  28%  { opacity: .95; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.16); }
}
@keyframes card-stagger-reveal {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: translate3d(0, 1.85rem, 0) scale(.91);
  }
  65% {
    border-color: var(--primary);
    box-shadow: 0 24px 48px -20px var(--glow);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* ۴) حالت چهارم (لحظه اتمام تخفیف و وضعیت منقضی‌شده - Expiring & Expired) */
.deals-hero[data-slot-state="expiring"],
.deals-hero[data-slot-state="expired"] {
  padding: clamp(1.25rem, 2.8vw, 1.85rem) clamp(1rem, 2.6vw, 1.85rem);
  border-color: color-mix(in oklab, var(--primary) 34%, var(--line));
  box-shadow:
    0 40px 95px -45px rgb(0 0 0 / .95),
    0 0 85px -38px color-mix(in oklab, var(--accent) 45%, var(--glow));
}
.deals-hero[data-slot-state="expiring"] .slot__urgency-bar,
.deals-hero[data-slot-state="expired"] .slot__urgency-bar,
.slot.slot--over .slot__urgency-bar {
  max-block-size: 0;
  margin-block-end: 0;
  padding-block: 0;
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(.96);
  transition:
    max-block-size .55s var(--ease),
    margin-block-end .55s var(--ease),
    padding-block .55s var(--ease),
    opacity .45s var(--ease),
    transform .45s var(--ease);
}

/* عقب‌نشینی سه‌بعدی و مخملی کارت‌ها در پس‌زمینه هنگام اتمام تخفیف */
.slot.slot--over {
  display: none;
  pointer-events: none;
  user-select: none;
}
.deals-hero[data-slot-state="expiring"] .slot.slot--over:first-of-type,
.deals-hero[data-slot-state="expired"] .slot.slot--over:first-of-type {
  display: grid;
}
.slot.slot--active ~ .slot.slot--active {
  display: none;
}
.deals-hero[data-slot-state="expiring"] .slot__grid .card,
.deals-hero[data-slot-state="expired"] .slot__grid .card,
.slot.slot--over .card {
  filter: blur(14px) saturate(.42) brightness(.38);
  opacity: .34;
  transform: scale(.955) translateY(4px);
  pointer-events: none;
  user-select: none;
  transition:
    filter .9s var(--ease),
    opacity .9s var(--ease),
    transform .9s var(--ease);
}

/* صحنه و کارت سینمایی پایان تخفیف (Finale Overlay) در مرکز همان باکس */
.deals-hero__finale {
  grid-area: 1 / 1;
  position: relative;
  z-index: 8;
  display: none;
  place-items: center;
  inline-size: 100%;
  min-block-size: clamp(19rem, 32vw, 24rem);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  text-align: center;
}
.deals-hero[data-slot-state="expiring"] .deals-hero__finale,
.deals-hero[data-slot-state="expired"] .deals-hero__finale {
  display: grid;
}

.deals-finale__fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.deals-finale__orb {
  position: absolute;
  inline-size: min(44vw, 22rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(58px);
  opacity: .42;
  animation: deals-drift 11s ease-in-out infinite alternate;
}
.deals-finale__orb--1 {
  inset: -18% auto auto -8%;
  background: var(--primary);
}
.deals-finale__orb--2 {
  inset: auto -8% -20% auto;
  background: var(--accent);
  animation-duration: 14s;
  animation-delay: -3s;
}
.deals-finale__orb--3 {
  inset: 20% auto auto 38%;
  inline-size: min(32vw, 16rem);
  background: var(--primary-2);
  opacity: .28;
  animation-duration: 9s;
  animation-delay: -5s;
}

.deals-finale__wave {
  position: absolute;
  inset: 50% auto auto 50%;
  inline-size: 2.5rem;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 2.5px solid var(--primary);
  box-shadow: 0 0 36px 4px var(--glow);
  opacity: 0;
}
.deals-hero.is-expiring .deals-finale__wave {
  animation: finale-shockwave 1.35s cubic-bezier(.16, 1, .3, 1) both;
}
.deals-hero.is-expiring .deals-finale__wave--2 {
  border-color: var(--accent);
  box-shadow: 0 0 36px 4px var(--accent);
  animation: finale-shockwave 1.55s cubic-bezier(.16, 1, .3, 1) .16s both;
}
@keyframes finale-shockwave {
  0% {
    opacity: .95;
    inline-size: 2.5rem;
  }
  100% {
    opacity: 0;
    inline-size: min(135%, 70rem);
  }
}

/* ذرات طلایی و اخگرهای شناور پایان تخفیف */
.deals-finale__sparks {
  position: absolute;
  inset: 0;
}
.deals-finale__sparks i {
  --x: calc(5% + mod(var(--i) * 19, 90) * 1%);
  --y: calc(14% + mod(var(--i) * 29, 72) * 1%);
  --sz: calc(.34rem + mod(var(--i), 4) * .12rem);
  --dur: calc(2.8s + mod(var(--i), 5) * .55s);
  --del: calc(var(--i) * -.19s);
  position: absolute;
  inset-inline-start: var(--x);
  inset-block-start: var(--y);
  inline-size: var(--sz);
  block-size: var(--sz);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 15%, var(--primary) 65%, transparent);
  box-shadow: 0 0 12px 2px var(--glow);
  animation: finale-spark-float var(--dur) ease-in-out var(--del) infinite;
}
.deals-finale__sparks i:nth-child(3n) {
  background: radial-gradient(circle, #fff 15%, var(--accent) 68%, transparent);
  box-shadow: 0 0 12px 2px var(--accent);
}
@keyframes finale-spark-float {
  0%, 100% {
    opacity: .18;
    transform: translateY(8px) scale(.65);
  }
  50% {
    opacity: 1;
    transform: translateY(-14px) scale(1.25);
  }
}

.deals-finale__stage {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: .85rem;
  inline-size: min(100%, 38rem);
  padding: clamp(1.5rem, 3.8vw, 2.35rem) clamp(1.2rem, 3.5vw, 2.2rem);
  border: 1px solid color-mix(in oklab, var(--primary) 48%, transparent);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 85% at 50% 0%, color-mix(in oklab, var(--primary) 20%, transparent), transparent 64%),
    radial-gradient(90% 80% at 50% 100%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 66%),
    color-mix(in oklab, var(--bg) 76%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 36px 90px -28px rgb(0 0 0 / .92),
    0 0 75px -24px var(--glow),
    inset 0 1px 0 rgb(255 255 255 / .14);
  animation: finale-stage-pop .85s var(--ease-spring) both;
}
@keyframes finale-stage-pop {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, 1.8rem, 0) scale(.86);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.deals-finale__crest {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 5.4rem;
  aspect-ratio: 1;
  margin-block-end: .15rem;
}
.deals-finale__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in oklab, var(--primary) 65%, transparent);
  animation: rotate 14s linear infinite;
}
.deals-finale__orbit--inner {
  inset: .48rem;
  border-style: solid;
  border-color: color-mix(in oklab, var(--accent) 55%, transparent) transparent;
  animation-direction: reverse;
  animation-duration: 9s;
}
.deals-finale__halo {
  position: absolute;
  inset: .35rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  filter: blur(8px);
  animation: deals-pulse 2.2s ease-in-out infinite;
}
.deals-finale__emblem {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  inline-size: 3.6rem;
  aspect-ratio: 1;
  border-radius: 1.25rem;
  background: var(--grad-primary);
  color: var(--primary-ink);
  box-shadow:
    0 14px 32px -10px var(--glow),
    inset 0 1px 0 rgb(255 255 255 / .65);
  rotate: -6deg;
  animation: emblem-float 3s ease-in-out infinite alternate;
}
@keyframes emblem-float {
  from { transform: translateY(2px) rotate(-6deg) scale(.98); }
  to   { transform: translateY(-4px) rotate(6deg) scale(1.04); }
}
.deals-finale__svg-main {
  inline-size: 2rem;
  block-size: 2rem;
}

.deals-finale__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .24rem .9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
  background: var(--accent-soft);
  color: color-mix(in oklab, var(--accent) 65%, #fff);
  font-size: .82rem;
  font-weight: 800;
}
.deals-finale__title {
  margin: 0;
  background: linear-gradient(135deg, #fff 15%, var(--primary) 58%, var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.65rem, 1.2rem + 2.2vw, 2.55rem);
  font-weight: 900;
  line-height: 1.35;
  text-wrap: balance;
}
.deals-finale__desc {
  max-inline-size: 31rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.92rem, .88rem + .22vw, 1.04rem);
  line-height: 1.75;
  text-wrap: balance;
}
.deals-finale__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-block-start: .2rem;
}
.deals-finale__chip {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .26rem .82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / .05);
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
}
.deals-finale__chip .icon {
  color: var(--success);
}
.deals-finale__chip--gold {
  border-color: var(--primary-line);
  background: var(--primary-soft);
  color: var(--primary);
}
.deals-finale__chip--gold .icon {
  color: var(--primary);
}
.deals-finale__cta {
  margin-block-start: .35rem;
}

.prize.is-open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: prize-in .45s var(--ease) forwards !important;
}
.prize.is-open .prize__card {
  animation: card-pop .55s var(--ease-spring) both !important;
}
.prize.is-open .confetti i {
  animation: confetti 2.2s cubic-bezier(.1, .7, .25, 1) .1s both !important;
}
.wheel__quota.is-shake {
  animation: field-shake .36s ease-in-out;
}

/* پس‌زمینه سفید برای کادر اینماد تا رنگ اصلی لوگوی مشکی اینماد کاملاً واضح نمایش داده شود */
.badge-logo--enamad,
.badge-logo:has(a[href*="enamad"]),
.badge-logo:has(img[src*="namad1"]),
.badge-logo:has(img[alt*="نماد اعتماد"]),
.badge-logo:has(img[alt*="اینماد"]) {
  background: #ffffff !important;
  border-color: rgb(255 255 255 / .2) !important;
  border-style: solid !important;
}

/* عدم نمایش بخش لینک‌ها و زیرمجموعه‌های آن در فوتر */
.footer__links-columns,
.footer .links {
  display: none !important;
}

