/* =========================================================
   404 TEAM — Telegram Shop
   ساختار فایل:
   1) فونت‌ها و متغیرها (رنگ، فاصله، شعاع)  ← برای تغییر ظاهر کلی اینجا را ویرایش کنید
   2) پایه و ابزارها
   3) هدر / منو
   4) هیرو (معرفی)
   5) فروشگاه (سبک Fragment)
   6) سرویس‌ها (مراحل خرید)
   7) ویژگی‌ها
   8) قیمت‌ها
   9) درباره ما + سوالات متداول
   10) فوتر
   11) مودال سفارش و اعلان
   12) انیمیشن‌ها و واکنش‌گرایی
   ========================================================= */

/* ---------- 1) فونت‌ها و متغیرها ---------- */
@font-face { font-family: "YekanBakh"; src: url("../assets/fonts/YekanBakhFaNum-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "YekanBakh"; src: url("../assets/fonts/YekanBakhFaNum-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "YekanBakh"; src: url("../assets/fonts/YekanBakhFaNum-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/Montserrat-SemiBold-latin.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;

  /* رنگ‌ها (برگرفته از طراحی اصلی) */
  --bg: #0E0C15;
  --bg-glass: rgba(15, 12, 23, .62);
  --bg-card: rgba(14, 12, 21, .35);
  --bg-soft: rgba(57, 56, 63, .28);
  --line: rgba(202, 198, 221, .13);
  --line-strong: rgba(202, 198, 221, .24);

  --text: #CAD1E9;
  --text-strong: #F2F3FB;
  --text-soft: #CAC6DD;
  --muted: #8E8BA3;

  --pink: #b50d61;
  --purple: #9208b1;
  --indigo: #3a0fd3;
  --blue: #4349FF;
  --magenta: #F33CC0;
  --tg: #0A7CFF;
  --ok: #2fbf71;
  --error: #ff6b8b;

  --grad-brand: linear-gradient(90deg, var(--pink), var(--indigo));
  --grad-label: linear-gradient(90deg, var(--purple), var(--pink));
  --grad-text: linear-gradient(90deg, var(--blue) 15%, var(--magenta) 75%);
  --grad-border: linear-gradient(120deg, #090EDB, #E73DC4);

  /* فونت‌ها */
  --font: "YekanBakh", "Vazirmatn", Tahoma, system-ui, sans-serif;
  --font-latin: "Montserrat", "YekanBakh", system-ui, sans-serif;

  /* اندازه‌ها */
  --container: 1165px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --nav-h: 64px;
  --section-gap: clamp(5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- 2) پایه ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("../assets/img/noise.webp");
  background-size: 400px;
  overflow-x: hidden;
  min-height: 100vh; min-height: 100dvh;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 32px); }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.latin { font-family: var(--font-latin); direction: ltr; unicode-bidi: isolate; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* برچسب بالای هر بخش */
.label {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 14px; min-height: 26px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: var(--grad-label); border-radius: 6px;
}

.section { padding-block: var(--section-gap) 0; position: relative; }

.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem; margin-bottom: 1.4rem; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 600; line-height: 1.5; color: var(--text); text-wrap: balance; }
.section-sub { max-width: 34rem; font-size: 1rem; color: var(--text-soft); text-wrap: balance; }

/* دکمه‌ها */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 22px;
  font-size: 14px; font-weight: 600; color: #fff;
  border-radius: 9px; border: 1.6px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s;
  white-space: nowrap;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary { background: var(--grad-brand) border-box; box-shadow: 0 6px 24px -10px rgba(181, 13, 97, .8); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(181, 13, 97, .95); }

.btn-outline { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad-label) border-box; }
.btn-ghost   { background: linear-gradient(#231f35, #231f35) padding-box, linear-gradient(90deg, #3b08b1, #b50d618a) border-box; }
.btn-tg      { background: var(--tg); box-shadow: 0 6px 22px -8px var(--tg); }
.btn-block   { width: 100%; }
.btn-lg      { min-height: 52px; font-size: 15px; }

/* ---------- 3) هدر / منو ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  padding-top: 12px;
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: 10px 14px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(123, 119, 119, .31);
  border-radius: 12px;
  transition: box-shadow .3s;
}
.site-header.is-scrolled .nav { box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .9); }

.brand { display: flex; align-items: center; gap: .45rem; flex-shrink: 0; }
.brand img { width: 54px; height: 54px; }
.brand-name { font-family: var(--font-latin); font-weight: 600; font-size: 15px; color: var(--text); letter-spacing: .02em; direction: ltr; }

.nav-links { display: none; align-items: center; gap: clamp(1rem, 2.6vw, 2.2rem); }
.nav-links a { position: relative; font-size: 16px; font-weight: 600; color: #D9D9D9; padding-block: 6px; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad-label); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a.is-active::after, .nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .btn { min-height: 44px; padding: 0 20px; font-size: 13px; white-space: nowrap; }
/* تا رسیدن تنظیمات از سرور، فضای دکمه‌ها حفظ می‌شود ولی دیده نمی‌شود (بدون پرش) */
.nav-actions[data-account]:not(.is-ready) { visibility: hidden; }
.nav-actions[data-account] { transition: opacity .3s; }

.nav-toggle { display: inline-flex; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; transition: transform .3s var(--ease), background .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  margin-top: 10px; padding: 12px;
  background: rgba(15, 12, 23, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); border-radius: 12px;
}
.mobile-menu.is-open { display: block; animation: modal-in .3s var(--ease); }
.mobile-menu a:not(.btn) { display: flex; align-items: center; min-height: 44px; padding: 10px; font-weight: 600; border-radius: 8px; }
.mobile-menu a:not(.btn):hover, .mobile-menu a.is-active { background: var(--bg-soft); color: #fff; }
.mobile-menu .nav-actions { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.mobile-menu .nav-actions .btn { flex: 1; }

/* ---------- 4) هیرو ---------- */
.hero { position: relative; padding-top: 1.6rem; text-align: center; isolation: isolate; }
.hero::before { /* هاله رنگی پشت تصویر */
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 150px; width: min(1100px, 100%); aspect-ratio: 1920 / 1417;
  transform: translateX(-50%);
  background: url("../assets/img/glow-wide.webp") center / contain no-repeat;
  opacity: .9; pointer-events: none;
}
.hero-title { margin-top: 1rem; font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 600; line-height: 1.6; text-wrap: balance; }
.hero-title .line-1 { background: linear-gradient(180deg, var(--blue) 10%, var(--magenta) 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-title .line-2 { color: var(--blue); position: relative; display: inline-block; }
.hero-title .line-2::after { /* خط زیر عنوان */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -4px; height: 12px;
  background: url("../assets/img/underline.png") center / 100% 100% no-repeat;
}
.hero-en { margin-top: .9rem; font-size: .95rem; color: var(--text-soft); text-wrap: balance; max-width: 22rem; margin-inline: auto; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero-cta .btn { flex: 1 1 100%; }
.hero-cta .btn-ghost { flex: 1 1 calc(50% - .5rem); }

.hero-stage { position: relative; width: min(820px, 100%); margin: 1.2rem auto 0; }
.hero-art { width: min(440px, 78%); margin-inline: auto; filter: drop-shadow(0 30px 60px rgba(67, 73, 255, .25)); }

.chip {
  display: flex; align-items: center; gap: .7rem;
  padding: 7px 10px 7px 18px;
  text-align: start;
  background: rgba(14, 12, 21, .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(202, 198, 221, .18);
  border-radius: 12px; color: #fff;
}
.chip img { width: 42px; height: 42px; flex-shrink: 0; }
.chip strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; }
.chip small { display: block; font-size: 12px; color: var(--text-soft); line-height: 1.5; }

.hero-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: -.5rem; }
.hero-chips .chip { position: static; padding: 8px 10px; gap: .5rem; }
.hero-chips .chip img { width: 32px; height: 32px; }
.hero-chips .chip strong { font-size: 12.5px; }
.hero-chips .chip small { font-size: 12px; }

/* ---------- 5) فروشگاه ---------- */
.store-tabs {
  display: flex; gap: 4px; width: 100%; margin: 0 auto 1.6rem; padding: 4px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
}
.store-tab {
  display: flex; align-items: center; gap: .5rem;
  flex: 1; justify-content: center; min-height: 44px; padding: 0 10px; border-radius: 9px;
  font-weight: 600; font-size: 14px; color: var(--text-soft);
  transition: background .25s, color .25s;
}
.store-tab img { width: 22px; height: 22px; }
.store-tab:hover { color: #fff; }
.store-tab[aria-selected="true"] { background: var(--grad-brand); color: #fff; }

.store-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }

.glass {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.store-card { padding: clamp(1.25rem, 3vw, 2rem); }
.store-card + .store-card { margin-top: 0; }
.field-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-strong); margin-bottom: .6rem; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: .5rem; }
.field-error { font-size: 12.5px; color: var(--error); margin-top: .5rem; }

.input-wrap {
  display: flex; align-items: center; direction: ltr;
  min-height: 52px; padding-inline: 16px;
  background: rgba(10, 8, 16, .55);
  border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.input-wrap:focus-within { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(243, 60, 192, .12); }
.input-wrap.is-invalid { border-color: var(--error); }
.input-wrap.is-valid { border-color: rgba(47, 191, 113, .7); }
.input-prefix { color: var(--muted); font-family: var(--font-latin); margin-right: 2px; }
.input-wrap input { flex: 1; min-width: 0; height: 50px; background: none; border: 0; outline: 0; font-family: var(--font-latin); font-size: 16px; color: #fff; }
.input-wrap input::placeholder { color: #5f5c72; }
.input-state { width: 20px; height: 20px; color: var(--ok); opacity: 0; transition: opacity .2s; }
.input-wrap.is-valid .input-state { opacity: 1; }

.pack-group { margin-top: 1.75rem; }
.pack-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }

/* ردیف‌های بسته پریمیوم */
.plan-list { display: grid; gap: .6rem; }
.plan-option { position: relative; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option label {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .9rem;
  padding: 14px 16px; cursor: pointer;
  background: rgba(10, 8, 16, .4);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background .2s;
}
.plan-option label:hover { border-color: var(--line-strong); }
.plan-option input:checked + label { border-color: transparent; background: linear-gradient(rgba(22, 17, 36, .95), rgba(22, 17, 36, .95)) padding-box, var(--grad-border) border-box; }
.plan-option input:focus-visible + label { outline: 2px solid var(--magenta); outline-offset: 2px; }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: border-color .2s; }
.radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-label); transform: scale(0); transition: transform .25s var(--ease); }
.plan-option input:checked + label .radio-dot { border-color: var(--magenta); }
.plan-option input:checked + label .radio-dot::after { transform: scale(1); }
.plan-name { font-weight: 600; color: var(--text-strong); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.plan-meta { display: block; font-size: 12.5px; color: var(--muted); }
.plan-price { grid-column: 2; text-align: start; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-price small { font-weight: 400; font-size: 12px; color: var(--muted); margin-right: 3px; }
.tag { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 20px; color: #fff; background: var(--grad-label); }
.tag-soft { background: rgba(47, 191, 113, .16); color: #7fe0ac; }

/* بسته‌های استارز */
.stars-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.star-pack input { position: absolute; opacity: 0; pointer-events: none; }
.star-pack label {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 8px; cursor: pointer; text-align: center;
  background: rgba(10, 8, 16, .4); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.star-pack label:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.star-pack input:checked + label { border-color: transparent; background: linear-gradient(rgba(22, 17, 36, .95), rgba(22, 17, 36, .95)) padding-box, var(--grad-border) border-box; }
.star-pack input:focus-visible + label { outline: 2px solid var(--magenta); outline-offset: 2px; }
.star-pack .star-count { display: flex; align-items: center; gap: 4px; font-weight: 700; color: #fff; font-size: 17px; }
.star-pack .star-count svg { width: 16px; height: 16px; color: #FFC53D; }
.star-pack .star-price { font-size: 12.5px; color: var(--text-soft); font-variant-numeric: tabular-nums; }

.custom-amount { margin-top: .9rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.custom-amount .input-wrap { flex: 1; min-width: 180px; min-height: 46px; }
.custom-amount .input-wrap input { height: 44px; }

/* ---------- گیفت‌ها (ویترین به سبک Fragment) ---------- */
.gift-count { font-size: 12.5px; color: var(--muted); }
.gift-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; }
.gift-search { flex: 1 1 220px; min-height: 44px; direction: rtl; gap: .5rem; }
.gift-search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.gift-search input { height: 44px; font-family: var(--font); font-size: 16px; }
.gift-search input::-webkit-search-cancel-button { filter: invert(.6); }
.select-wrap { position: relative; flex: 1 1 100%; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 44px; padding: 0 14px 0 38px; min-width: 140px;
  font-family: var(--font); font-size: 16px; color: var(--text-strong);
  background: rgba(10, 8, 16, .55); border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer;
}
.select-wrap select:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.select-wrap option { background: #120f1c; }
.select-wrap svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.gift-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 1rem; }
.filter-chip {
  min-height: 44px; padding: 0 16px; border-radius: 30px;
  font-size: 14px; font-weight: 600; color: var(--text-soft);
  background: rgba(10, 8, 16, .4); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s;
}
@media (hover: hover) { .filter-chip:hover { color: #fff; border-color: var(--line-strong); } }
.filter-chip[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(#1a1429, #1a1429) padding-box, var(--grad-label) border-box; }

.gift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.gift-item input { position: absolute; opacity: 0; pointer-events: none; }
.gift-item label {
  display: flex; flex-direction: column; height: 100%; cursor: pointer; overflow: hidden;
  background: rgba(10, 8, 16, .5); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.gift-item label:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.gift-item input:checked + label { border-color: transparent; background: linear-gradient(#15111f, #15111f) padding-box, var(--grad-border) border-box; box-shadow: 0 10px 30px -14px rgba(231, 61, 196, .7); }
.gift-item input:focus-visible + label { outline: 2px solid var(--magenta); outline-offset: 2px; }
.gift-art {
  --g: #7950FF;
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--g) 55%, transparent) 0%, color-mix(in srgb, var(--g) 18%, transparent) 55%, transparent 80%), #110e1a;
}
.gift-visual { position: relative; display: grid; place-items: center; width: 72%; height: 72%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); transition: transform .35s var(--ease); }
.gift-visual > svg, .gift-visual > img, .gift-visual > video, .gift-lottie { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.gift-visual.has-anim > img, .gift-visual.has-anim > svg { visibility: hidden; }
.gift-item label:hover .gift-visual { transform: scale(1.05); }
.gift-item.is-sold-out label { opacity: .5; cursor: not-allowed; }
.gift-item.is-sold-out label:hover { transform: none; }
.gift-badge { position: absolute; top: 8px; right: 8px; font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 20px; color: #fff; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gift-info { padding: 9px 11px 11px; display: grid; gap: 2px; }
.gift-name { font-size: 13.5px; font-weight: 600; color: var(--text-strong); line-height: 1.6; }
.gift-stars { display: flex; align-items: center; gap: 3px; font-size: 12px; color: #FFC53D; font-weight: 600; }
.gift-stars svg { width: 13px; height: 13px; }
.gift-price { font-size: 12.5px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.gift-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line-strong); border-radius: 14px; }

.gift-extra { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.gift-extra .field-label { margin-bottom: 0; }
.optional { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.textarea-wrap { position: relative; margin-top: -.4rem; }
.textarea-wrap textarea {
  width: 100%; resize: vertical; min-height: 88px; padding: 12px 14px 28px;
  font-family: var(--font); font-size: 16px; line-height: 1.8; color: #fff;
  background: rgba(10, 8, 16, .55); border: 1px solid var(--line-strong); border-radius: 12px; outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.textarea-wrap textarea:focus { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(243, 60, 192, .12); }
.textarea-wrap textarea::placeholder { color: #5f5c72; }
.char-count { position: absolute; inset-inline-end: 12px; bottom: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.switch { display: flex; align-items: center; gap: .8rem; cursor: pointer; width: fit-content; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 44px; height: 26px; flex-shrink: 0; border-radius: 30px; background: rgba(202, 198, 221, .18); transition: background .25s; }
.switch-track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + .switch-track { background: var(--grad-brand); }
.switch input:checked + .switch-track::after { transform: translateX(-18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--magenta); outline-offset: 3px; }
.switch strong { display: block; font-size: 14px; color: var(--text-strong); font-weight: 600; line-height: 1.6; }
.switch small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.summary-gift { width: 140px; height: 140px; display: grid; place-items: center; }
.summary-gift .gift-visual { width: 130px; height: 130px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .5)); }
.summary-gift.is-swapping { animation: pop .45s var(--ease); }

.notice { max-width: 640px; margin: 0 auto 1.2rem; padding: .8rem 1.1rem; text-align: center; font-size: 14px; color: #ffd8a8; background: rgba(240, 160, 32, .1); border: 1px solid rgba(240, 160, 32, .35); border-radius: 12px; }

/* خلاصه سفارش */
.summary { position: static; top: calc(var(--nav-h) + 36px); padding: 1.5rem; overflow: hidden; }
.summary-art { position: relative; height: 150px; display: grid; place-items: center; margin: -.25rem 0 1rem; }
.summary-art::before { content: ""; position: absolute; inset: -30%; background: url("../assets/img/glow-1.webp") center / contain no-repeat; opacity: .7; z-index: -1; }
.summary-art img { height: 140px; width: auto; object-fit: contain; transition: transform .5s var(--ease), opacity .3s; }
.summary h3 { font-size: 1.15rem; color: var(--text-strong); text-align: center; }
.summary dl { margin-top: 1.1rem; display: grid; gap: .1rem; }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { color: var(--text-strong); font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.summary .total dd { font-size: 1.35rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.summary .total { border-bottom: 0; align-items: center; padding-top: 14px; }
.summary .btn { margin-top: 1rem; }
.summary-note { margin-top: .8rem; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.7; }

/* ---------- 6) سرویس‌ها (مراحل) ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; counter-reset: step; }
.step {
  --cut: 44px;
  position: relative; padding: 1px; /* ضخامت حاشیه گرادیانی */
  background: linear-gradient(115deg, rgba(9, 14, 219, .75), rgba(231, 61, 196, .75));
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  border-radius: 22px;
  transition: transform .35s var(--ease);
}
@media (hover: hover) { .step:hover { transform: translateY(-4px); } }
.step-inner {
  height: 100%; padding: 1.1rem 1rem;
  background: linear-gradient(140deg, #0E0C15 20%, #13101e 100%);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  border-radius: 21px;
  display: flex; flex-direction: column; gap: .7rem;
}
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-top img { width: 46px; height: 46px; }
.step-num { font-family: var(--font-latin); font-size: 13px; color: var(--muted); direction: ltr; }
.step h3 { font-size: 1.15rem; color: #D6DDF8; font-weight: 600; }
.step p { font-size: 14px; color: var(--text-soft); line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.step .text-link { margin-top: auto; min-height: 44px; padding-top: .4rem; font-size: 14px; font-weight: 600; color: #D6DDF8; display: inline-flex; align-items: center; gap: .35rem; width: fit-content; }
.step .text-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.step .text-link:hover svg { transform: translateX(-4px); }

/* ---------- 7) ویژگی‌ها ---------- */
#features { isolation: isolate; }
#features::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 12%; transform: translateX(-50%);
  width: min(900px, 100%); aspect-ratio: 1; background: url("../assets/img/glow-1.webp") center / contain no-repeat; opacity: .75; pointer-events: none;
}
.feature-list { display: grid; gap: 1.5rem; max-width: 940px; margin-inline: auto; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem;
  padding: 1.1rem 1rem;
  background: rgba(14, 12, 21, .2);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(202, 198, 221, .13); border-top: 2px solid var(--c); border-radius: 15px;
}
.feature-rail { display: none; flex-direction: column; align-items: center; }
.feature-rail .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--c); display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: 0 0 22px -2px var(--c); }
.feature-rail .dot svg { width: 20px; height: 20px; }
.feature-rail .rail { flex: 1; width: 2.4px; margin-top: 4px; min-height: 60px; background: linear-gradient(var(--c), transparent); border-radius: 2px; box-shadow: 0 0 10px var(--c); }
.feature { --c: #1E21E9; }
.feature:nth-child(2), .feature:nth-child(2) .feature-rail { --c: #7950FF; }
.feature:nth-child(3), .feature:nth-child(3) .feature-rail { --c: #19a34a; }
.feature-body h3 { font-size: clamp(1.15rem, 2.3vw, 1.35rem); color: var(--text); font-weight: 600; margin-bottom: .6rem; line-height: 1.6; }
.feature-body p { color: var(--text); font-size: 15px; line-height: 2; max-width: 36rem; }
.perks { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem 1.2rem; margin-top: 1rem; }
.perks li { display: flex; align-items: flex-start; gap: .5rem; font-size: 14px; color: var(--text-soft); line-height: 1.8; }
.perks svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: var(--magenta); }
.feature-art { order: -1; align-self: center; justify-self: start; width: 96px; margin-bottom: -.3rem; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }

/* ---------- 8) قیمت‌ها ---------- */
#pricing { isolation: isolate; }
#pricing::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 18%; transform: translateX(-50%);
  width: min(620px, 100%); aspect-ratio: 1; background: url("../assets/img/glow-2.webp") center / contain no-repeat; pointer-events: none;
}
.price-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 1rem; }
.price-card {
  width: 100%; padding: 1.75rem 1.5rem 1.6rem; text-align: center;
  background: rgba(14, 12, 21, .2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(202, 198, 221, .22); border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  transition: transform .35s var(--ease), border-color .3s;
}
.price-card:hover { border-color: rgba(202, 198, 221, .4); }
@media (hover: hover) { .price-card:hover { transform: translateY(-6px); } }
.price-card.is-featured { padding-block: 2.4rem 2.2rem; border-color: transparent; background: linear-gradient(rgba(16, 13, 26, .78), rgba(16, 13, 26, .78)) padding-box, var(--grad-border) border-box; }
.price-card h3 { font-size: 1.7rem; color: #fff; font-weight: 600; line-height: 1.4; }
.price-card .desc { font-size: 13px; color: var(--text-soft); max-width: 15rem; }
.price-card .amount { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 700; color: #fff; line-height: 1.3; font-variant-numeric: tabular-nums; }
.price-card .unit { font-size: 13px; color: var(--muted); margin-top: -.6rem; }
.price-card .btn { width: 100%; margin-top: .4rem; }
.price-card ul { width: 100%; margin-top: .6rem; text-align: start; }
.price-card li { display: flex; gap: .5rem; align-items: center; font-size: 13.5px; color: var(--text-soft); padding: .7rem .4rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.price-card li:last-child { border-bottom: 0; }
.price-card li svg { width: 16px; height: 16px; color: var(--magenta); flex-shrink: 0; }
.price-foot { text-align: center; margin-top: 1.6rem; font-size: 13px; color: var(--muted); }

/* ---------- 9) درباره ما + سوالات ---------- */
.about { position: relative; isolation: isolate; text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.about::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: url("../assets/img/glow-wide.webp") center / min(1000px, 130%) auto no-repeat;
  pointer-events: none;
}
.about-tagline { font-size: clamp(1.7rem, 4.2vw, 2.3rem); font-weight: 600; line-height: 1.7; color: var(--text); text-wrap: balance; }
.about-tagline .brand-grad { font-family: var(--font-latin); direction: ltr; display: inline-block; background: linear-gradient(90deg, #fefefe 16%, #c51628 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-text { max-width: 38rem; margin: 1.2rem auto 0; color: var(--text-soft); font-size: 15.5px; text-wrap: pretty; }
.about-points { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.about-points li { padding: 6px 16px; font-size: 13.5px; border-radius: 30px; background: rgba(14, 12, 21, .45); border: 1px solid var(--line-strong); color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.about .btn { margin-top: 2rem; }
.disclaimer { margin-top: 1.4rem; font-size: 12.5px; color: var(--muted); }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .7rem; }
.faq details { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, background .25s; }
.faq details[open] { border-color: var(--line-strong); background: rgba(22, 18, 34, .55); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.3rem; cursor: pointer; font-weight: 600; color: var(--text-strong); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--magenta); }
.faq .answer { padding: 0 1.3rem 1.15rem; color: var(--text-soft); font-size: 14.5px; line-height: 2; }

/* ---------- 10) فوتر ---------- */
.site-footer { margin-top: var(--section-gap); }
.footer-top { display: flex; align-items: center; justify-content: center; text-align: center; gap: 1.5rem; flex-wrap: wrap; padding-block: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem clamp(1.2rem, 4vw, 3rem); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--text-soft); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: var(--bg); }
.footer-bottom .container { display: flex; align-items: center; justify-content: center; text-align: center; gap: 1rem; flex-wrap: wrap; min-height: 88px; padding-block: 1rem; }
.copyright { font-family: var(--font-latin); font-size: 13px; color: #fff; direction: ltr; }
.copyright span { color: rgb(233, 42, 42); }
.socials { display: flex; gap: .75rem; }
.socials a { display: block; border-radius: 50%; transition: transform .25s var(--ease), filter .25s; }
@media (hover: hover) { .socials a:hover { transform: translateY(-3px); filter: brightness(1.25); } }
.socials img { width: 44px; height: 44px; }

/* ---------- 11) مودال و اعلان ---------- */
.modal { margin: auto; width: min(460px, calc(100% - 32px)); padding: 0; color: var(--text); background: #120f1c; border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
.modal::backdrop { background: rgba(6, 5, 10, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .35s var(--ease); }
.modal-body { padding: 1.6rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.modal-head h2 { font-size: 1.2rem; color: #fff; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); }
@media (hover: hover) { .icon-btn:hover { color: #fff; border-color: var(--line-strong); } }
.icon-btn svg { width: 18px; height: 18px; }
.modal p { font-size: 14px; color: var(--text-soft); }
.modal dl { margin: 1rem 0; padding: .4rem 1rem; background: rgba(10, 8, 16, .5); border: 1px solid var(--line); border-radius: 12px; }
.modal dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.modal dl div:last-child { border-bottom: 0; }
.modal dt { color: var(--muted); }
.modal dd { color: #fff; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.modal-actions { display: grid; gap: .6rem; margin-top: 1.1rem; }
.modal .support-id { font-family: var(--font-latin); direction: ltr; unicode-bidi: isolate; color: #fff; user-select: all; }

.toast {
  position: fixed; z-index: 100; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 10px; font-size: 14px; color: #fff;
  background: #1b1628; border: 1px solid var(--line-strong);
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 12) انیمیشن‌ها ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(8px); } to { opacity: 1; transform: none; } }

.hero-art { animation: float 6s ease-in-out infinite; }
.summary-art img.is-swapping { animation: pop .45s var(--ease); }

/* نمایش تدریجی هنگام اسکرول (فقط برای عناصر پایین صفحه؛ با JS فعال می‌شود) */
.reveal-pending { opacity: 0; transform: translateY(22px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

/* ---------- واکنش‌گرایی (mobile-first؛ نقطه‌شکست‌های استاندارد: 480 / 768 / 1024 / 1280) ----------
   پایه‌ی بالاتر برای ۳۶۰px نوشته شده؛ اینجا فقط بزرگ‌تر شدن عرض اعمال می‌شود. */
@media (min-width: 768px) {
  .section-head { margin-bottom: 2.75rem; }
  .price-grid { gap: 1.5rem; }
  .price-card { width: min(290px, 100%); }
  .steps { gap: 1.2rem; }
  .step-inner { padding: 1.5rem 1.5rem 1.4rem; }
  :root { --nav-h: 72px; }
  .site-header { padding-top: 20px; }
  .hero { padding-top: 2.4rem; }
  .hero-en { font-size: clamp(.95rem, 1.8vw, 1.1rem); max-width: none; margin-inline: 0; }
  .hero-stage { margin-top: 2.2rem; }
  .hero-chips { gap: .7rem; margin-top: 1.4rem; }
  .hero-cta .btn, .hero-cta .btn-ghost { flex: 0 1 auto; }
  .section-title { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
  .store-tabs { width: fit-content; }
  .store-tab { flex: 0 1 auto; justify-content: flex-start; padding: 0 22px; }
  .select-wrap { flex: 0 0 auto; }
  .select-wrap select { width: auto; }
  .stars-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gift-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .plan-option label { grid-template-columns: auto 1fr auto; }
  .plan-price { grid-column: auto; text-align: end; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .step:last-child { grid-column: 1 / -1; }
  .feature { grid-template-columns: 40px minmax(0, 1fr) 150px; gap: clamp(1rem, 3vw, 2.2rem); padding: clamp(1.4rem, 3.5vw, 2.4rem); border-top-width: 1px; border-top-color: rgba(202, 198, 221, .13); }
  .feature-rail { display: flex; }
  .feature-art { width: 140px; order: 0; justify-self: center; margin-bottom: 0; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top, .footer-bottom .container { justify-content: space-between; text-align: start; }
  .socials img { width: 46px; height: 46px; }
}

@media (min-width: 1024px) {
  /* هدر دسکتاپ: لینک‌ها دیده می‌شوند و همبرگر/منوی موبایل کنار می‌روند */
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu, .mobile-menu.is-open { display: none; }
  .hero-chips { display: block; margin-top: 0; }
  .hero-chips .chip { position: absolute; padding: 7px 10px 7px 18px; gap: .7rem; animation: float 7s ease-in-out infinite; }
  .hero-chips .chip:nth-child(1) { top: 10%;  right: 0; }
  .hero-chips .chip:nth-child(2) { top: 18%;  left: 0; animation-delay: -1.8s; }
  .hero-chips .chip:nth-child(3) { bottom: 14%; right: 3%; animation-delay: -3.4s; }
  .hero-chips .chip:nth-child(4) { bottom: 8%;  left: 3%; animation-delay: -5s; }
  .hero-chips .chip img { width: 42px; height: 42px; }
  .hero-chips .chip strong { font-size: 13px; }
  .hero-chips .chip small { font-size: 12px; }
  .store-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .summary { position: sticky; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps .step:last-child { grid-column: auto; }
  .price-grid { flex-wrap: nowrap; align-items: center; }
  .price-card { width: 290px; }
  .feature { grid-template-columns: 40px minmax(0, 1fr) 190px; }
  .feature-art { width: 170px; }
}

/* نوار اعلان بالای سایت (از پنل ادمین) */
.announce {
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 38px; padding: 6px 16px;
  font-size: 13px; font-weight: 600; color: #fff; text-align: center;
  background: linear-gradient(90deg, rgba(58, 15, 211, .85), rgba(181, 13, 97, .85));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
a.announce:hover { filter: brightness(1.12); }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: announce-pulse 2s infinite; flex-shrink: 0; }
@keyframes announce-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .announce-dot { animation: none; } }

/* ---------- انتقال نرم بین صفحه‌ها (مرورگرهای پشتیبان) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.22, .8, .24, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* اندازه‌ی لوگو از پنل مدیریت (--logo-h) */
.brand img { height: calc(var(--logo-h, 46px) * 1.15); width: auto; max-width: 240px; object-fit: contain; }
.brand-name[hidden], .pl-name[hidden] { display: none !important; }
