/* ============================================================
   ROOZI Landing — Modern Startup Stylesheet
   DH-SIG: RDH-ROOZI-2026-9F3A-CSS-LND
   ============================================================ */

@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakh-VF.woff2') format('woff2'),
       url('../fonts/YekanBakh-VF.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ─── اعداد فارسی ───
   فونت YekanBakh با سِت استیلیستیک ss01 ارقام لاتین را فارسی نمایش می‌دهد؛
   حتی اگر عدد به‌صورت لاتین در HTML/JS باشد، بصری فارسی دیده می‌شود.
   استثناها: ورودی‌ها (کد تأیید/کد تخفیف/کلید)، کلید لایسنس و متن فنی باید لاتین بمانند. */
html, body { font-feature-settings: "ss01" 1; }
input, textarea, select, option, code, kbd, pre, .latin-digits {
  font-feature-settings: normal;
}

:root {
  --primary: #B75224;
  --primary-hover: #9E4119;
  --primary-light: #D4723F;
  --primary-soft: #FDF4F0;
  --primary-subtle: #FFF9F6;
  --bg: #FAFBFD;
  --surface: #FFFFFF;
  --fg: #18181B;
  --fg-secondary: #3F3F46;
  --fg-muted: #71717A;
  --border: #E7E9EF;
  --border-light: #F0F1F4;
  --border-strong: #D1D5DB;
  --divider: #E7E9EF;
  --success: #15803D;   /* سبزِ متن‌خوانا روی پس‌زمینهٔ کم‌رنگ (نسبت کنتراست ≥ 4.5) */
  --success-soft: #EAF8EF;
  --error: #DC2626;
  --error-soft: #FEECEC;
  --shadow-sm: 0 1px 3px rgba(16,24,40,.05);
  --shadow-md: 0 8px 32px rgba(16,24,40,.07);
  --shadow-lg: 0 20px 60px rgba(16,24,40,.09);
  --radius: 14px;
  --radius-lg: 22px;

  /* ── سیستم عرض یکسان کل سایت (تنها مرجع عرض) ──
     --container-w : قاب ساختاری — ناوبری، هدرها، سکشن‌ها، صفحات اپ‌مانند
                     (خرید، تماس، داشبورد) و همه عناصر تمام‌عرض.
     --prose-w     : ستون متن — کارت‌های متنی/مقالاتی برای خوانایی خط
                     (درباره، قوانین، حریم خصوصی، تغییرات نسخه، دانلود، وبلاگ).
     هیچ مقدار عرض دیگری نباید به‌صورت hardcode در صفحات استفاده شود. */
  --container-w: 1120px;
  --prose-w: 760px;
  --page-pad: clamp(16px, 4vw, 24px);

  /* ── نوارهای سکشن‌های صفحهٔ اصلی (باندهای متناوب) ──
     اینها رنگ‌های hardcode بودند و باید با تم عوض شوند. */
  --band-solid: #FFFFFF;   /* سکشن سفید */
  --band-tint: #FDF9F7;    /* سکشن تنت گرم (گالری/پلن‌ها) */
  --band-line: #F2ECE7;    /* خط مویی بین دو نوار متمایز */
  --nav-bg: rgba(250,251,253,.75);
  --nav-bg-scrolled: rgba(255,255,255,.88);
  --hero-dot: rgba(24,24,27,.05);  /* نقش‌گذاری نقطه‌ای پس‌زمینهٔ هیرو */
  --hover-soft: rgba(24,24,27,.06); /* هاورِ خنثی روی هر دو تم */

  /* ── رنگ پُرِ برند (پس‌زمینهٔ دکمه/بنر با متن روشن) ──
     از --primary جداست چون در تم تاریک --primary باید روشن بماند
     تا به‌عنوان رنگ متن خوانا باشد؛ این‌ها اما هر دو تم نارنجیِ برندند. */
  --fill-1: #D4723F;
  --fill-2: #B75224;
  --fill-3: #9E4119;

  /* ── رنگ‌های وضعیتِ نرم (بَج‌ها، رگه‌ها، پیام‌ها) ──
     در تم تاریک به‌جای پَستِل روشن، نسخهٔ کم‌رنگ روشن می‌آیند. */
  --warn: #B45309;
  --warn-soft: #FFF7ED;
  --info-soft: #DBEAFE;
  --info-fg: #1E40AF;
  --neutral-soft: #E4E4E7;
  --neutral-fg: #52525B;
}

/* ============================================================
   تم تاریک — با data-theme روی <html> تعیین می‌شود
   (اسکریپت کوچکِ <head> مقدار را قبل از اولین رنگ‌آمیزی می‌گذارد
   تا پرشِ ناگهانیِ تم رخ ندهد)
   ============================================================ */
html[data-theme="dark"] {
  color-scheme: dark;

  --primary: #E08B5C;
  --primary-hover: #F0A57C;
  --primary-light: #C9713F;
  --primary-soft: rgba(224,139,92,.13);
  --primary-subtle: rgba(224,139,92,.07);

  --bg: #0D0E11;
  --surface: #15161A;
  --fg: #F4F4F5;
  --fg-secondary: #D4D4D8;
  --fg-muted: #9CA3AF;
  --border: #26272C;
  --border-light: #1E1F23;
  --border-strong: #3A3B42;
  --divider: #26272C;

  --success: #4ADE80;
  --success-soft: rgba(74,222,128,.13);
  --error: #F87171;
  --error-soft: rgba(248,113,113,.13);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.55);
  --shadow-md: 0 8px 32px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);

  --band-solid: #131417;
  --band-tint: #17140F;
  --band-line: #24252B;
  --nav-bg: rgba(13,14,17,.75);
  --nav-bg-scrolled: rgba(21,22,26,.9);
  --hero-dot: rgba(244,244,245,.055);
  --hover-soft: rgba(244,244,245,.09);

  --warn: #FBBF24;
  --warn-soft: rgba(251,191,36,.14);
  --info-soft: rgba(96,165,250,.14);
  --info-fg: #93C5FD;
  --neutral-soft: rgba(255,255,255,.08);
  --neutral-fg: #A1A1AA;

  /* رنگ پُرِ برند در تاریک هم نارنجیِ برند می‌ماند (متن سفید رویش خواناست) */
  --fill-1: #D4723F;
  --fill-2: #B75224;
  --fill-3: #A8451B;

  /* کاشی‌های رنگیِ مِک‌آپ هیرو (دستهٔ محصولات) — در تاریک به‌جای
     پَستِل روشن، لایهٔ رنگیِ شفاف روی سطح تاریک می‌آید. */
  .ph1 { background: rgba(224,139,92,.16); }
  .ph2 { background: rgba(74,222,128,.14); }
  .ph3 { background: rgba(248,113,113,.14); }
  .ph4 { background: rgba(96,165,250,.14); }
  .ph5 { background: rgba(251,191,36,.15); }
  .ph6 { background: rgba(167,139,250,.15); }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

::selection { background: rgba(183,82,36,.22); color: var(--fg); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

body {
  font-family: 'YekanBakh', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  direction: rtl;
  line-height: 1.9;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { display: block; }
section { scroll-margin-top: 84px; }
h1, h2, h3 { line-height: 1.5; }

/* ── عرض یکسان برای کل سایت ── */
.container, .page { max-width: var(--container-w); margin-inline: auto; padding-inline: var(--page-pad); }

/* همه هدرهای صفحات فرعی (درباره/قوانین/حریم/دانلود/تغییرات/تماس/وبلاگ/خرید)
   داخل قاب --container-w می‌نشینند تا لبه چپ/راست با ناوبری و فوتر یکی باشد. */
.about-hero, .terms-hero, .rel-hero, .dl-hero, .contact-hero, .blog-hero, .nf-hero {
  max-width: var(--container-w); margin-inline: auto; padding-inline: var(--page-pad);
}

/* ستون متن صفحات مقاله‌ای — طول سطر خوانا + لبه یکسان */
.prose-wrap, .about-wrap > *, .terms-card, .privacy-card, .rel-wrap, .dl-card,
.dl-steps, .dl-req, .faq-sec-list, .blog-list, .blog-article {
  max-width: var(--prose-w); margin-inline: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 12px; border: 1.5px solid transparent;
  min-height: 42px;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.btn-lg { padding: 13px 30px; font-size: 15px; border-radius: 14px; min-height: 50px; }
.btn-sm { padding: 6px 16px; font-size: 13px; min-height: 34px; }
/* دکمهٔ فقط-آیکن: عرضش باید دقیقاً با ارتفاع هم‌ردیف‌های متنی یکی باشد */
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; padding: 0; }
.btn-icon.btn-lg { width: 50px; padding: 0; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--fill-1) -20%, var(--fill-2) 55%);
  color: #fff; box-shadow: 0 4px 16px rgba(183,82,36,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--fill-1) -10%, var(--fill-3) 60%); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(183,82,36,.36), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(183,82,36,.3); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary); background: var(--primary-subtle); }
.btn-light { background: #fff; color: var(--fill-2); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn:disabled { opacity: .55; cursor: wait; transform: none !important; }

/* ===== NAV ===== */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all .35s ease;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); background: var(--nav-bg-scrolled); }
.nav-inner {
  max-width: var(--container-w); margin-inline: auto; padding: 12px var(--page-pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.nav-brand img { width: 40px; height: 40px; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.nav-brand-name { font-weight: 900; font-size: 17px; }
.nav-brand-sub { font-size: 9px; letter-spacing: 2.5px; color: var(--fg-muted); font-weight: 600; direction: ltr; }
.nav-links { display: flex; gap: 26px; justify-content: center; }
.nav-links a { text-decoration: none; color: var(--fg-secondary); font-size: 13.5px; font-weight: 600; transition: color .2s; position: relative; padding-bottom: 3px; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; inset-inline: 0; height: 2px;
  background: var(--fill-2); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--primary); }

/* اکشن‌های سمت چپ ناوبری: دکمه ورود (آیکنی) */
.nav-actions {
  display: flex; align-items: center; gap: 10px;
  justify-self: end;
}
/* ─── دکمه‌های هدر: یک سایز، یک رنگ، یک فرمت و یک سایز آیکن ───
   هر سه دکمه (ورود/ثبت‌نام، تم، بازگشت) ۳۴px ارتفاع، همان بوردر/Radius و همان
   رنگ خنثی دارند و هنگام hover همگی نارنجی می‌شوند. */
.nav-auth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 16px;
  background: transparent; border: 1.5px solid var(--border); border-radius: 12px;
  line-height: 1; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--fg-secondary);
  text-decoration: none;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.nav-auth-btn:hover { border-color: var(--primary-light); color: var(--primary); background: var(--primary-subtle); }
.nav-auth-btn svg, .nav-theme-btn svg, .nav-back-btn svg {
  width: 16px; height: 16px; flex-shrink: 0;
}

/* سوییچ تم روشن/تاریک — کنار دکمهٔ ورود، در همهٔ صفحات */
.nav-theme-btn {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: transparent; border: 1.5px solid var(--border); border-radius: 12px;
  color: var(--fg-secondary); cursor: pointer; padding: 0;
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.nav-theme-btn:hover { border-color: var(--primary-light); color: var(--primary); background: var(--primary-subtle); transform: translateY(-1px); }
.nav-theme-btn:active { transform: translateY(0) scale(.94); }
.nav-theme-btn svg {
  position: absolute; transition: opacity .28s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.nav-theme-btn .ti-sun  { opacity: 0; transform: rotate(-80deg) scale(.4); }
.nav-theme-btn .ti-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .nav-theme-btn .ti-sun  { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .nav-theme-btn .ti-moon { opacity: 0; transform: rotate(80deg) scale(.4); }

/* آیکن بازگشت در صفحات فرعی — هم‌اندازه دکمه ورود، کنار آن */
.nav-back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1.5px solid var(--border); border-radius: 12px;
  color: var(--fg-secondary); text-decoration: none; flex-shrink: 0;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.nav-back-btn:hover { border-color: var(--primary-light); color: var(--primary); background: var(--primary-subtle); }

/* منوی کاربر واردشده در صفحات فرعی */
.nav-user-menu[hidden] { display: none; }
.nav-user-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; min-width: 190px;
  display: flex; flex-direction: column; gap: 2px; z-index: 120;
}
.nav-user-menu a, .nav-user-menu button {
  display: flex; align-items: center; gap: 10px;
  text-align: right; font-family: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--fg); background: none; border: none; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; text-decoration: none;
  transition: background .18s, color .18s;
}
.nav-user-menu a svg, .nav-user-menu button svg {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--fg-muted); opacity: .9;
  transition: color .18s, transform .18s;
}
.nav-user-menu a span, .nav-user-menu button span { flex: 1; min-width: 0; }
.nav-user-menu a:hover, .nav-user-menu button:hover { background: var(--bg); }
.nav-user-menu a:hover svg { color: var(--primary); transform: scale(1.15); }
.nav-user-menu button {
  color: var(--error, #DC2626);
  margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
}
.nav-user-menu button:hover { background: rgba(220, 38, 38, .07); }
.nav-user-menu button:hover svg { color: var(--error, #DC2626); transform: scale(1.15); }

/* Hamburger — خطوط به‌صورت مطلق وسط‌چین تا هنگام تبدیل به ✕ کاملاً هم‌پوشان
   داشته باشند (در نسخهٔ قبلی با gap/پدینگ، خطوط وسطی چند پیکسل انحراف داشتند). */
.nav-hamburger {
  display: none; width: 42px; height: 42px; border: none; background: none;
  cursor: pointer; padding: 0; position: relative; flex-shrink: 0;
  border-radius: 11px; transition: background .2s;
}
.nav-hamburger:hover { background: var(--hover-soft); }
.nav-hamburger:active { transform: scale(.94); }
.nav-hamburger span {
  position: absolute; left: 50%; top: 50%;
  width: 21px; height: 2px; background: var(--fg); border-radius: 3px;
  transform: translate(-50%, -50%);
  transition: transform .34s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.nav-hamburger span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav-hamburger span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.nav-hamburger.active span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(.2); }
.nav-hamburger.active span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ===== HERO ===== */
/* padding-bottom و سایه‌های نارنجی زیر ماکاپ با هم اندازه‌گیری شده‌اند: سایهٔ عادی
   (0 20px 44px) تا 64px و سایهٔ hover (0 24px 48px) تا 72px زیر فریم امتداد دارد،
   یعنی دقیقاً به اندازهٔ padding-bottom می‌رسد و هرگز از لبهٔ overflow:hidden بریده
   نمی‌شود (خط افقی قابل مشاهده). padding از 100 به 72 کم شد تا فضای خالی زیر
   فریم شناور در دسکتاپ کوچک‌تر شود. */
/* فول‌اسکرین در همهٔ دیوایس‌ها: همیشه حداقل ارتفاع کامل viewport.
   dvh برای نوار آدرس موبایل (در iOS/Safari با vh سرریز می‌شد).
   وسط‌چین‌سازی عمودی با auto-margin روی فرزند انجام می‌شود (خط بعد). */
.hero {
  position: relative; padding: 150px 24px 72px; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
/* وسط‌چین‌سازی عمودی ایمن: auto-margin به‌جای justify-content تا اگر محتوا
   بلندتر از viewport شد (موبایل)، لبهٔ بالا کلیپ نشود. */
.hero > .hero-content { margin-block: auto; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 380px at 85% -5%, rgba(183,82,36,.09), transparent 60%),
    radial-gradient(600px 340px at 8% 12%, rgba(212,114,63,.07), transparent 60%),
    linear-gradient(var(--bg, #FAFBFD), var(--surface, #fff));
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--hero-dot) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 65%);
}
/* width:100% لازم است چون .hero از نوع flex است؛ بدون آن، .hero-content به‌عنوان
   flex-item به اندازهٔ max-content جمع می‌شد (640px) و ماکاپ با وجود
   max-width:880px هرگز به عرض طراحی‌شده نمی‌رسید. متن‌ها max-width خودشان را
   دارند (مثلاً .hero-desc روی 640px) و وسط‌چین می‌مانند. */
.hero-content { width: 100%; max-width: 1000px; margin-inline: auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 16px; font-size: 12.5px; font-weight: 700; color: var(--fg-secondary);
  box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
/* نسخهٔ کوتاه بنر نسخه در موبایل تا هرگز دوخطی نشود */
.hb-short { display: none; }

/* ─── ویجت شناور «تازه‌های نسخه» — پایین صفحه سمت راست (اعلان پنل مدیریت) ─── */
.ann-toast {
  position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 480;
  width: min(340px, calc(100vw - 36px));
  background: var(--surface); border: 1px solid var(--fill-1); border-radius: 18px;
  padding: 16px 18px; box-shadow: 0 14px 44px rgba(16,24,40,.16), 0 2px 8px rgba(16,24,40,.06);
  display: none; text-align: right;
}
.ann-toast.show { display: block; animation: annIn .45s cubic-bezier(.22,1,.36,1); }
@keyframes annIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.ann-head { display: flex; align-items: center; gap: 9px; }
.ann-icon {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.ann-head strong { font-size: 13.5px; font-weight: 800; flex: 1; line-height: 1.6; }
.ann-close {
  border: none; background: none; cursor: pointer; color: var(--fg-muted);
  width: 26px; height: 26px; border-radius: 8px; font-size: 13px; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.ann-close:hover { background: var(--bg); color: var(--fg); }
.ann-img {
  width: 100%; height: auto; border-radius: 12px; margin: 10px 0 4px;
  border: 1px solid var(--border); object-fit: cover; max-height: 170px;
}
.ann-body { font-size: 12.5px; color: var(--fg-secondary); line-height: 2; margin: 9px 0 8px; white-space: pre-line; }
.ann-link {
  display: inline-block; font-size: 12px; font-weight: 800; color: var(--primary);
  text-decoration: none; border: 1.5px solid var(--primary-light);
  background: var(--primary-soft); padding: 7px 14px; border-radius: 10px;
  transition: all .2s;
}
.ann-link:hover { background: var(--fill-2); color: #fff; }
@media (max-width: 640px) {
  .ann-toast { bottom: 12px; inset-inline-start: 12px; padding: 14px 15px; }
}
.hero h1 { font-size: clamp(30px, 5.2vw, 52px); font-weight: 900; line-height: 1.5; letter-spacing: -.5px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { max-width: 640px; margin: 20px auto 30px; color: var(--fg-muted); font-size: clamp(14px, 1.7vw, 16.5px); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.hero-points li { font-size: 12.5px; color: var(--fg-muted); font-weight: 700; }
.hero-points li::before { content: none; }

/* Mockup — بازسازی جزئی‌تر رابط برنامهٔ روزی (صندوق فروش) */
.hero-visual { position: relative; margin-top: 64px; perspective: 1400px; }
.hero-glow {
  position: absolute; inset: -8% 6% 10%;
  background: radial-gradient(55% 52% at 50% 45%, rgba(183,82,36,.18), transparent 72%);
  filter: blur(26px); pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite;
}
@keyframes glowPulse { 50% { opacity: .5; transform: scale(1.05); } }
.mockup {
  position: relative; max-width: 880px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg), 0 20px 44px rgba(183,82,36,.10);
  overflow: hidden; transform: rotateX(4deg);
  transition: transform .5s ease, box-shadow .5s ease;
  will-change: transform;
}
/* سایهٔ hover نباید از padding-bottom سکشن بیشتر شود تا هنگام hover بریده نشود */
.mockup:hover { transform: rotateX(0deg) translateY(-4px); box-shadow: var(--shadow-lg), 0 24px 48px rgba(183,82,36,.16); }

/* نوار پنجره + وضعیت آفلاین */
.mockup-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-bar span:nth-child(1) { background: #FCA5A5; }
.mockup-bar span:nth-child(2) { background: #FCD34D; }
.mockup-bar span:nth-child(3) { background: #86EFAC; }
.mockup-bar em { margin-inline: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--fg-muted); }
.mb-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9.5px; font-weight: 800; color: var(--success);
  background: var(--success-soft); border: 1px solid rgba(22,163,74,.25);
  border-radius: 999px; padding: 3px 9px;
}
.mb-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }

/* بدنه: کناره + اصلی + سبد */
.mockup-body { display: grid; grid-template-columns: 58px 1fr 168px; min-height: 320px; }
.mockup-side {
  border-inline-end: 1px solid var(--border); background: var(--bg);
  padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.m-logo {
  width: 28px; height: 28px; border-radius: 9px; position: relative; margin-bottom: 7px;
  background: linear-gradient(135deg, var(--fill-2), var(--fill-1));
  box-shadow: 0 4px 10px rgba(183,82,36,.30);
}
.m-logo::after { content: ''; position: absolute; inset: 7px; border-radius: 4px; background: rgba(255,255,255,.9); }
.m-navi {
  width: 34px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted); transition: background .25s, color .25s;
}
.m-navi svg { width: 15px; height: 15px; }
.m-navi.on {
  background: var(--primary-soft); color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(183,82,36,.25);
  animation: navGlow 4s ease-in-out infinite;
}
@keyframes navGlow { 50% { box-shadow: inset 0 0 0 1px rgba(183,82,36,.45), 0 0 0 4px rgba(183,82,36,.07); } }

.mockup-main { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.m-top { display: flex; gap: 10px; align-items: center; }
.m-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 11px; color: var(--fg-muted);
}
.m-search svg { width: 13px; height: 13px; flex: none; }
.m-search b {
  font-size: 11px; font-weight: 600; color: var(--fg-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.m-caret { width: 1.5px; height: 13px; background: var(--fill-2); animation: caretBlink 1.1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.m-clock {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--fg-secondary);
  background: var(--primary-soft); border: 1px solid rgba(183,82,36,.18); border-radius: 10px; padding: 8px 10px;
}
.m-clock svg { width: 13px; height: 13px; color: var(--primary); }

.m-cats { display: flex; gap: 7px; }
.m-cats span {
  display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 10px; font-weight: 700; color: var(--fg-muted); white-space: nowrap; transition: all .25s;
}
.m-cats span.on {
  background: var(--primary-soft); border-color: rgba(183,82,36,.35); color: var(--primary);
  animation: catGlow 5s ease-in-out infinite;
}
@keyframes catGlow { 50% { box-shadow: 0 0 0 4px rgba(183,82,36,.08); } }

.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-card {
  border: 1px solid var(--border); border-radius: 11px; overflow: hidden; background: var(--surface);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.m-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(183,82,36,.35); }
.m-card.hot { animation: cardPing 5.5s ease-in-out infinite; }
@keyframes cardPing {
  0%, 86%, 100% { box-shadow: 0 0 0 0 rgba(183,82,36,0); border-color: var(--border); }
  14% { box-shadow: 0 0 0 4px rgba(183,82,36,.16); border-color: var(--primary-light); }
  44% { box-shadow: 0 0 0 7px rgba(183,82,36,.05); border-color: var(--primary-light); }
}
.m-card i.ph { display: flex; align-items: center; justify-content: center; height: 52px; font-style: normal; font-size: 24px; }
.ph1 { background: #FDF0E7; } .ph2 { background: #EFF5EC; } .ph3 { background: #FBEEE9; }
.ph4 { background: #EDF2F8; } .ph5 { background: #FDF6E7; } .ph6 { background: #F1EEF8; }
.m-card b { display: block; font-size: 11px; font-weight: 800; margin: 8px 10px 1px; color: var(--fg); }
.m-card s { display: block; font-size: 10px; font-weight: 700; color: var(--fg-muted); margin: 0 10px 9px; text-decoration: none; }

/* سبد سفارش */
.mockup-cart {
  border-inline-start: 1px solid var(--border); background: var(--bg);
  padding: 13px 12px; display: flex; flex-direction: column; gap: 8px;
}
.m-cart-h { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 900; color: var(--fg-secondary); }
.m-cart-h span { font-size: 9px; background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 2px 8px; }
.m-item {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border-light); border-radius: 8px;
  padding: 7px 9px; font-size: 10px;
  animation: itemPop .55s cubic-bezier(.34,1.56,.64,1) both;
}
.m-item:nth-of-type(2) { animation-delay: .15s; }
.m-item:nth-of-type(3) { animation-delay: .3s; }
.m-item:nth-of-type(4) { animation-delay: .45s; }
@keyframes itemPop { from { opacity: 0; transform: translateY(9px) scale(.94); } to { opacity: 1; transform: none; } }
.m-item b { font-weight: 800; white-space: nowrap; }
.m-item s { color: var(--fg-muted); font-weight: 700; text-decoration: none; }
.m-total {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  background: var(--primary-soft); border: 1px solid rgba(183,82,36,.3); border-radius: 10px;
  padding: 9px 11px; font-size: 11px; font-weight: 900; color: var(--primary);
  animation: totalPulse 3.5s ease-in-out infinite;
}
@keyframes totalPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(183,82,36,.10); } 50% { box-shadow: 0 0 0 5px rgba(183,82,36,.04); } }
#mTotal { transition: opacity .25s ease; }
.m-btn {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--fill-2), var(--fill-1));
  color: #fff; text-align: center; font-size: 11px; font-weight: 900;
  padding: 11px; border-radius: 10px;
}
.m-btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: btnShine 3.2s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 60% { transform: translateX(-160%) skewX(-18deg); }
  92%, 100% { transform: translateX(340%) skewX(-18deg); }
}

/* توست «سفارش ثبت شد» */
.m-toast {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px;
  background: #101418; color: #fff; font-size: 10.5px; font-weight: 800;
  border-radius: 999px; padding: 8px 15px; box-shadow: 0 10px 26px rgba(0,0,0,.22);
  white-space: nowrap; animation: toastLoop 7s ease-in-out infinite;
}
.m-toast i { font-style: normal; color: #4ADE80; }
@keyframes toastLoop {
  0% { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.92); }
  8%, 72% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  84%, 100% { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.97); }
}

/* کارت‌های شناور — در همه دیوایس‌ها نمایان */
.hero-float {
  position: absolute; z-index: 2;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 9px 16px; font-size: 12px; font-weight: 800; color: var(--fg-secondary);
  box-shadow: var(--shadow-md); animation: floaty 5s ease-in-out infinite;
  white-space: nowrap;
}
.f1 { top: 8%; inset-inline-start: 4%; animation-delay: 0s; }
.f2 { bottom: 12%; inset-inline-end: 4%; animation-delay: 2.5s; }
.f3 { top: 6%; inset-inline-end: 3%; animation-delay: 1.2s; }
.f4 { bottom: 9%; inset-inline-start: 5%; animation-delay: 3.6s; }
@keyframes floaty { 50% { transform: translateY(-9px); } }

/* wrapper دو باکس موبایل: در دسکتاپ display:contents یعنی جعبه‌ای تولید نمی‌کند
   و f2/f4 دقیقاً مثل قبل نسبت به .hero-visual مطلق‌چین می‌شوند (بدون تغییر چیدمان). */
.hero-floats { display: contents; }

/* ─── درگ شناورها با GSAP: هنگام گرفتن، انیمیشن شناوری متوقف می‌شود
       تا transform انیمیشن با transform گس‌کتاب (GSAP) تداخل نکند ─── */
.hero-float { user-select: none; -webkit-user-select: none; }
@media (hover: hover) and (pointer: fine) {
  .hero-float { cursor: grab; }
}
.hero-float.dragging {
  animation: none !important;
  cursor: grabbing !important;
  z-index: 6;
  box-shadow: var(--shadow-lg);
  border-color: rgba(183, 82, 36, .35);
}
@media (max-width: 720px) {
  .hero-float { font-size: 10.5px; padding: 6px 11px; border-radius: 10px; }
  .hero-float svg { width: 13px; height: 13px; }
  .f1 { top: 1%; inset-inline-start: 0; }
  .f3 { top: 1%; inset-inline-end: 0; }

  /* ─── موبایل: فقط ۲ باکس (فیش حرارتی + داده‌ها) روی ناتیف «سفارش ثبت شد» ───
     باقی باکس‌ها (f1/f3) مخفی می‌شوند تا چیدمان شلوغ نباشد.
     wrapper به flex وسط‌چین تبدیل می‌شود تا جفت باکس‌ها (نه فقط شکافشان)
     روی ناتیف مرکز شوند — چون عرض‌ها نامتقارن است (f2 ≈ 153px، f4 ≈ 106px)
     و در breakpointهای مختلف هم عوض می‌شود.
     position با left/right + width:max-content است نه transform، تا هیچ
     حلقه‌ای برای بازنویسی توسط انیمیشن floaty یا درگ GSAP باقی نماند. */
  .f1, .f3 { display: none; }
  .hero-floats {
    display: flex; align-items: center; gap: 8px;
    position: absolute;
    left: 0; right: 0; width: max-content; margin-inline: auto;
    /* ناتیف bottom:14px و ارتفاع ~35px دارد → 57px یعنی ۸px بالاتر از آن */
    bottom: 57px;
    z-index: 2;
  }
  /* position:static کافی است — فرزند مطلق‌چین نیست پس top/bottom/left/right نادیده گرفته می‌شوند */
  .hero-floats .hero-float { position: static; }
}
@media (max-width: 420px) {
  .hero-float { font-size: 9.5px; padding: 5px 9px; }
}

/* ===== SECTION HEADINGS ===== */
.section-label {
  display: inline-flex; margin-inline: auto;
  color: var(--primary); background: var(--primary-soft);
  border: 1px solid rgba(183,82,36,.18); border-radius: 999px;
  padding: 5px 16px; font-size: 12px; font-weight: 800;
  box-shadow: 0 2px 10px rgba(183,82,36,.08);
}
.section-title { text-align: center; font-size: clamp(23px, 3.4vw, 33px); font-weight: 900; margin-top: 16px; letter-spacing: -.3px; }
.section-desc { text-align: center; color: var(--fg-muted); max-width: 560px; margin: 12px auto 0; font-size: 14.5px; }
.features, .how, .pricing, .faq { padding: 84px 24px 0; text-align: center; }
/* سؤالات متداول آخرین سکشن پیش از فوتر است؛ فاصله پایینی لازم دارد */
.faq { padding-bottom: 84px; }
.features-grid { max-width: 1060px; margin: 44px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; text-align: center; }

/* ===== FEATURES ===== */
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--fill-2), var(--fill-1));
  opacity: 0; transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(183,82,36,.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-subtle));
  border: 1px solid rgba(183,82,36,.16); color: var(--primary); margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 8px rgba(183,82,36,.08);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 15.5px; font-weight: 900; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--fg-muted); line-height: 1.95; }

/* ===== STATS (زیر هیرو) ===== */
.stats { padding: 56px 24px 0; }
.stats-inner {
  max-width: 1020px; margin-inline: auto;
  display: flex; align-items: stretch; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 16px; box-shadow: var(--shadow-sm);
}
.stat-item { flex: 1; text-align: center; padding-inline: 12px; transition: transform .3s ease; }
.stat-item:hover { transform: translateY(-4px); }
.stat-item h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; color: var(--primary); line-height: 1.4; font-variant-numeric: tabular-nums; }
.stat-item p { font-size: 12.5px; color: var(--fg-muted); font-weight: 700; white-space: nowrap; }
.stat-divider { width: 1px; background: linear-gradient(to bottom, transparent, var(--border), transparent); }
@media (max-width: 720px) {
  /* موبایل: شبکهٔ ۲×۲ — هر ردیف فقط دو آیتم تا بخش آمار فضای کمی بگیرد */
  .stats-inner {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px 0; padding: 22px 10px;
  }
  .stat-item { flex: none; padding-inline: 6px; }
  .stat-item h2 { font-size: clamp(19px, 5.6vw, 24px); }
  .stat-item p { font-size: 11.5px; white-space: normal; line-height: 1.7; }
  .stat-divider { display: none; }
  /* جداکنندهٔ ظریف بین سطرها و ستون‌ها.
     توجه: فرزندان فردِ .stats-inner خودِ آیتم‌ها هستند (جداکننده‌ها فرزند زوج‌اند و display:none). */
  .stat-item:nth-child(1), .stat-item:nth-child(3) {
    padding-bottom: 14px; border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-child(1), .stat-item:nth-child(5) {
    border-inline-end: 1px solid var(--border);
  }
}

/* Trust strip */
/* padding-bottom الزامی است: بدون آن، محتوای این سکشن دقیقاً به لبهٔ بالایی سکشن
   بعدی (features) می‌چسبد و مرز دو سکشن دیده می‌شود. */
.trust { padding: 14px 24px 24px; }
.trust-inner {
  max-width: 1020px; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  font-size: 12px; font-weight: 700; color: var(--fg-muted);
}
.trust-inner i { font-style: normal; color: var(--primary); }

/* ===== Reveal on scroll (GSAP manages initial state) ===== */

/* ===== STEPS ===== */
.steps { max-width: 1000px; margin: 44px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 24px; text-align: center; transition: all .3s;
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(183,82,36,.3); }
.step-num {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--fill-2), var(--fill-1));
  color: #fff; font-size: 18px; font-weight: 900; margin-bottom: 16px; margin-inline: auto;
  box-shadow: 0 6px 18px rgba(183,82,36,.3);
}
.step h3 { font-size: 15.5px; font-weight: 900; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--fg-muted); }

/* ===== PRICING ===== */
.price-wrap { max-width: 640px; margin: 44px auto 0; }
.price-card {
  background: var(--surface); border: 1.5px solid rgba(183,82,36,.28); border-radius: 26px;
  padding: 36px 38px; box-shadow: var(--shadow-lg), 0 30px 80px rgba(183,82,36,.1);
  position: relative; overflow: hidden; text-align: center;
}
.price-card::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 5px;
  background: linear-gradient(90deg, var(--fill-2), var(--fill-1), var(--fill-2));
}
.price-head {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-bottom: 24px; border-bottom: 1px dashed var(--border); margin-bottom: 24px;
}
.price-head-right { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.price-tag {
  display: inline-block; background: var(--primary-soft); color: var(--primary);
  font-size: 12.5px; font-weight: 800; padding: 6px 18px; border-radius: 999px;
  border: 1px solid rgba(183,82,36,.2);
}
.price-sub { font-size: 11.5px; color: var(--fg-muted); font-weight: 600; }
.price-amount { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.price-old { font-size: 15px; color: var(--fg-muted); opacity: .65; order: -1; }
.price-final { display: flex; align-items: center; justify-content: center; gap: 12px; }
.price-final strong { font-size: clamp(34px, 5vw, 46px); font-weight: 900; letter-spacing: -1px; color: var(--fg); line-height: 1.15; }
.price-final .unit { font-size: 14px; color: var(--fg-muted); font-weight: 700; align-self: flex-end; padding-bottom: 9px; }
/* مدال تخفیف — کنار قیمت (اول از راست) */
.off-badge {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #E8590C, var(--fill-2));
  color: #fff; transform: rotate(-10deg);
  box-shadow: 0 6px 18px rgba(183,82,36,.35), inset 0 0 0 2px rgba(255,255,255,.25);
  animation: badgePop .7s cubic-bezier(.34,1.56,.64,1) both;
  flex-shrink: 0;
}
@keyframes badgePop { from { opacity: 0; transform: rotate(-30deg) scale(.3); } to { opacity: 1; transform: rotate(-10deg) scale(1); } }
.off-badge span { font-size: 8.5px; font-weight: 700; opacity: .92; line-height: 1.2; letter-spacing: .5px; }
.price-save { font-size: 12px; font-weight: 800; color: var(--success); background: var(--success-soft); border-radius: 999px; padding: 3px 14px; }

/* ===== PURCHASE MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(24,24,27,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.buy-dialog {
  width: min(480px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: 24px; padding: 28px 30px 30px;
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
  transform: translateY(24px) scale(.97); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.modal-overlay.open .buy-dialog { transform: none; }
.buy-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.buy-header h3 { font-size: 17px; font-weight: 900; color: var(--fg); }
.buy-close {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); cursor: pointer; font-size: 13px; color: var(--fg-muted);
  transition: all .2s;
}
.buy-close:hover { background: var(--error-soft); color: var(--error); border-color: rgba(220,38,38,.3); }

/* Panes */
.buy-pane { display: none; animation: paneIn .35s ease both; }
.buy-pane.on { display: block; }
@keyframes paneIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

.f-label { display: block; font-size: 12px; font-weight: 800; color: var(--fg-secondary); margin: 13px 0 6px; }
.buy-dialog input[type="text"],
.buy-dialog input[type="email"],
.buy-dialog input[type="tel"] {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 13.5px; outline: none; background: var(--bg); text-align: right;
  transition: all .2s; color: var(--fg);
}
.buy-dialog input[dir="ltr"] { text-align: left; }
.buy-dialog input:focus { border-color: var(--fill-1); background: var(--surface); box-shadow: 0 0 0 4px rgba(183,82,36,.09); }
.f-hint { font-size: 11px; color: var(--fg-muted); margin-top: 12px; text-align: center; }

/* پیام فاکتور — تنها بخش باقی‌ماندهٔ مودال خرید قدیمی که هنوز در index.php استفاده می‌شود */
.inv-msg { font-size: 12px; font-weight: 700; min-height: 18px; margin-top: 10px; color: var(--fg-muted); }
.inv-msg.err { color: var(--error); }
.btn-back {
  display: block; margin: 12px auto 0; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--fg-muted);
}
.btn-back:hover { color: var(--primary); }
.price-feats { list-style: none; margin: 22px auto 26px; text-align: center; display: inline-block; }
.price-feats li { font-size: 13px; color: var(--fg-secondary); font-weight: 600; padding: 6px 0; }
.price-feats li::before { content: '✓'; color: var(--success); font-weight: 900; margin-inline-end: 10px; }
.pay-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 11.5px; color: var(--fg-muted); font-weight: 600;
}

/* Recovery box */
.recover-box {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 0 20px; text-align: right;
}
.recover-box summary {
  cursor: pointer; list-style: none; padding: 15px 0;
  font-size: 13px; font-weight: 800; color: var(--fg-secondary);
  display: flex; align-items: center; gap: 8px;
}
.recover-box summary::-webkit-details-marker { display: none; }
.recover-box[open] summary::after { content: '−'; margin-inline-start: auto; color: var(--primary); }
.recover-box summary::after { content: '+'; margin-inline-start: auto; color: var(--primary); font-size: 17px; }
.recover-form { display: flex; gap: 8px; padding-bottom: 6px; }
.recover-form input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 13px; text-align: left; outline: none; background: var(--bg);
}
.recover-form input:focus { border-color: var(--fill-1); background: var(--surface); }
.recover-result { font-size: 12.5px; padding: 4px 0 14px; color: var(--fg-secondary); line-height: 2; }
.recover-result.err { color: var(--error); font-weight: 700; }
.recover-title { font-weight: 800; margin-bottom: 6px; }
.recover-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 14px; margin-top: 7px;
}
.recover-row code {
  direction: ltr; font-family: 'Consolas', monospace; font-size: 13.5px;
  font-weight: 800; color: var(--primary); user-select: all;
}
.recover-row .st { font-size: 11px; font-weight: 700; color: var(--fg-muted); }
.recover-row .st.ok { color: var(--success); }
.recover-hint { font-size: 11px; color: var(--fg-muted); margin-top: 8px; }

/* Guarantees */
.guarantees {
  margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.g-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 8px; display: flex; flex-direction: column; gap: 2px; align-items: center;
}
.g-item strong { font-size: 12px; font-weight: 900; color: var(--fg); }
.g-item span { font-size: 10px; color: var(--fg-muted); }
@media (max-width: 480px) { .guarantees { grid-template-columns: 1fr; } }

/* ===== USER MODAL ===== */
#userModal .buy-dialog { max-height: 90vh; }

/* OTP Input - large centered digits */
.otp-input-group {
  display: flex; gap: 8px; justify-content: center; margin: 16px 0;
  direction: ltr;
}
.otp-input-group input {
  width: 52px !important; height: 60px;
  border: 2px solid var(--border) !important; border-radius: 14px !important;
  text-align: center !important; font-size: 26px !important; font-weight: 900;
  letter-spacing: 0 !important; direction: ltr;
  background: var(--bg) !important; color: var(--fg);
  transition: all .25s ease !important;
  -webkit-appearance: none; appearance: none;
}
.otp-input-group input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(183,82,36,.12) !important;
  background: var(--surface) !important;
  transform: scale(1.05);
}
.otp-input-group input.filled {
  border-color: var(--success) !important;
  background: var(--success-soft) !important;
  box-shadow: 0 0 0 3px rgba(22,163,74,.1) !important;
}
.otp-input-group input.error {
  border-color: var(--error) !important;
  background: var(--error-soft) !important;
  animation: shake .4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Phone input with icon — چیدمان LTR تا عددها روی آیکن نیفتند */
.phone-input-wrap {
  position: relative; margin-bottom: 8px;
  direction: ltr;
}
.phone-input-wrap .phone-icon {
  position: absolute; top: 50%; right: 14px;
  transform: translateY(-50%);
  width: 20px; height: 20px; opacity: .4;
  pointer-events: none;
}
.phone-input-wrap input {
  padding-right: 44px !important;
}

/* OTP timer */
.otp-timer {
  text-align: center; margin: 12px 0; font-size: 13px; color: var(--fg-muted); font-weight: 600;
}
.otp-timer .countdown {
  display: inline-block; min-width: 45px; text-align: center;
  font-weight: 900; color: var(--primary); font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.otp-timer.expired .countdown { color: var(--fg-muted); }
.otp-resend-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--primary); font-weight: 800; font-size: 13px;
  font-family: inherit; padding: 4px 8px; border-radius: 6px;
  transition: all .2s;
}
.otp-resend-btn:hover { background: var(--primary-soft); }
.otp-timer.expired .otp-resend-btn { display: inline; }
.otp-timer.expired .countdown { display: none; }

/* User step indicators */
.user-steps {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}
.user-step {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--fg-muted);
  transition: all .3s;
}
.user-step.active { color: var(--primary); }
.user-step.done { color: var(--success); }
.user-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 2px solid var(--border);
  font-size: 12px; font-weight: 900; transition: all .3s;
}
.user-step.active .user-step-num {
  background: var(--fill-2); border-color: var(--fill-2); color: #fff;
  box-shadow: 0 4px 12px rgba(183,82,36,.3);
}
.user-step.done .user-step-num {
  background: var(--success); border-color: var(--success); color: #fff;
}
.user-step-line {
  width: 40px; height: 2px; background: var(--border); border-radius: 1px;
  transition: background .3s;
}
.user-step.done + .user-step-line { background: var(--success); }

/* Dashboard cards */
.user-dash-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; transition: all .2s;
}
.user-dash-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }

/* Hide native validation bubbles globally */
input:invalid, select:invalid, textarea:invalid {
  box-shadow: none !important;
}

/* ===== GLOBAL: Nothing hidden ===== */
section, .features-grid, .steps, .faq-list, .price-wrap,
.footer-inner, .stats-inner, .trust-inner, .cta {
  visibility: visible;
}

/* ===== FAQ ===== */
.faq-list { max-width: 860px; margin: 36px auto 0; text-align: right; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item summary { white-space: nowrap; }
.faq-item summary::after { margin-inline-start: 12px; }
.faq-item:hover { border-color: rgba(183,82,36,.3); box-shadow: var(--shadow-sm); }
.faq-item[open] { border-color: rgba(183,82,36,.35); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 17px 0;
  font-size: 14px; font-weight: 800; color: var(--fg);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 19px; color: var(--primary); font-weight: 400; flex-shrink: 0; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; font-size: 13px; color: var(--fg-muted); line-height: 2; }
.faq-more { margin-top: 26px; }
.faq-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--primary); text-decoration: none;
  border: 1.5px solid var(--fill-1); background: var(--surface);
  padding: 10px 22px; border-radius: 12px; transition: all .2s;
}
.faq-more-btn:hover { background: var(--fill-2); color: #fff; border-color: var(--fill-2); }
.faq-more-btn svg { transform: scaleX(-1); }

/* ===== CTA — باکس نارنجی تمام‌عرض با آیکون‌های متحرک ===== */
.cta {
  margin: 90px 0 0; max-width: none; padding: 66px 28px;
  background: linear-gradient(140deg, var(--fill-1) -15%, var(--fill-2) 45%, var(--fill-3) 110%);
  border-radius: 0; text-align: center; color: #fff;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 70px rgba(183,82,36,.28);
}
.cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 200px at 85% 0%, rgba(255,255,255,.12), transparent),
    radial-gradient(360px 220px at 10% 100%, rgba(255,255,255,.07), transparent);
}
.cta-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cta-ico {
  position: absolute; color: #fff; opacity: .045; display: block; line-height: 0;
  animation: ctaDrift var(--cta-d, 20s) ease-in-out infinite alternate;
}
.cta-ico svg { width: 100%; height: 100%; display: block; }
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.cta-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .2px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  margin-bottom: 18px;
}
.cta h2 { font-size: clamp(21px, 3vw, 29px); font-weight: 900; }
.cta p { margin: 10px 0 26px; opacity: .92; font-size: 14px; }

/* موقعیت و اندازه آیکون‌های پس‌زمینه (مرتبط با کافه و رستوران) */
.ico-1 { top: 10%; right: 7%;  width: 66px; height: 66px; --cta-d: 19s; }
.ico-2 { top: 20%; left: 9%;  width: 54px; height: 54px; --cta-d: 24s; animation-delay: -4s; }
.ico-3 { bottom: 14%; right: 13%; width: 72px; height: 72px; --cta-d: 21s; animation-delay: -8s; }
.ico-4 { bottom: 18%; left: 15%; width: 60px; height: 60px; --cta-d: 26s; animation-delay: -2s; }
.ico-5 { top: 52%; right: 30%; width: 44px; height: 44px; --cta-d: 17s; animation-delay: -6s; }
.ico-6 { top: 42%; left: 33%; width: 50px; height: 50px; --cta-d: 28s; animation-delay: -11s; }
@keyframes ctaDrift {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-28px) rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) { .cta-ico { animation: none; } }

/* ===== FOOTER ===== */
body { display: flex; flex-direction: column; min-height: 100vh; }
.footer { margin-top: auto; padding: 44px 24px 28px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { max-width: var(--container-w); margin-inline: auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; text-align: right; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand strong { display: block; font-size: 16px; font-weight: 900; }
.footer-brand span { font-size: 12px; color: var(--fg-muted); }
.footer-desc { flex: 1; min-width: 260px; color: var(--fg-muted); font-size: 13px; line-height: 2; }

/* فوتر جمع‌وجور: برند در یک سو، لینک صفحات در سوی دیگر */
.footer-compact { align-items: center; }
.footer-brand img { width: 34px; height: 34px; }
.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--fg-muted); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { max-width: var(--container-w); margin: 22px auto 0; padding-top: 18px; border-top: 1px solid var(--border-light, #F0F1F4); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-bottom p { font-size: 11px; color: var(--fg-muted); margin: 0; }
.footer-copy {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; flex-wrap: wrap; gap: 8px;
}
.footer-copy a { text-decoration: none; color: inherit; font-weight: 700; }
.footer-copy a:hover { color: var(--primary); }
/* متن برند همیشه راست‌چین و چسبیده به لوگو بماند (حتی وقتی فوتر در موبایل وسط‌چین می‌شود) */
.footer-brand > div { text-align: right; }
.footer-menu {
  max-width: var(--container-w); margin-inline: auto; padding: 0 var(--page-pad) 14px;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.footer-menu-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px;
}
.footer-menu-row a {
  text-decoration: none; color: var(--fg-muted); font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 8px; transition: color .2s, background .2s;
}
.footer-menu-row a:hover { color: var(--primary); background: var(--primary-soft); }
.footer-sep { color: var(--border); font-size: 14px; font-weight: 700; user-select: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav-hamburger { display: flex; }

  /* چیدمان موبایل: برند راست، آیکن ورود + همبرگر چسبیده به هم در چپ */
  .nav-inner { display: flex; justify-content: flex-start; gap: 10px; }
  .nav-brand { margin-inline-end: auto; }
  .nav-actions { order: 3; }
  .nav-hamburger { order: 4; margin-inline-start: 2px; }
  .nav-cta { display: none; }
  .nav-auth-btn span { display: none; }
  .nav-auth-btn { padding: 9px; border-radius: 10px; }
  .nav-user-menu { inset-inline-end: 10px; }

  /* ─── منوی موبایل: کارت شناور با انیمیشن نرم ─── */
  .nav-links {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: calc(100% + 8px); inset-inline: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px) scale(.98); transform-origin: top center;
    transition: opacity .28s cubic-bezier(.4,0,.2,1),
                transform .28s cubic-bezier(.22,1,.36,1),
                visibility .28s;
    z-index: 110;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-links a {
    padding: 13px 16px; border-bottom: none; border-radius: 12px;
    font-size: 14.5px; font-weight: 700; color: var(--fg-secondary);
    transition: background .2s, color .2s;
  }
  .nav-links a:hover { background: var(--primary-soft); color: var(--primary); }
  .nav-links a::after { content: none; }
  /* دکمه CTA داخل منو */
  .nav-mobile-cta {
    margin-top: 8px; padding: 13px 16px !important;
    background: linear-gradient(135deg, var(--fill-1) -20%, var(--fill-2) 55%);
    color: #fff !important; text-align: center;
    box-shadow: 0 4px 16px rgba(183,82,36,.28);
  }
  .nav-mobile-cta:hover { filter: brightness(1.06); }

  /* اسکریم تیره پشت منو — فقط زیر هدر */
  .nav-scrim {
    position: fixed; inset-inline: 0; top: 64px; bottom: 0; z-index: 99;
    background: rgba(24,24,27,.35);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .28s ease, visibility .28s;
  }
  .nav-scrim.open { opacity: 1; visibility: visible; pointer-events: auto; }

  .mockup-body { grid-template-columns: 44px 1fr; }
  .mockup-cart { display: none; }
}
@media (min-width: 861px) {
  .nav-mobile-cta { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 110px; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 14px; padding: 0 8px; }
  /* بنر نسخه: نسخهٔ کوتاه + تک‌خطی تا فضای اضافه نگیرد و دوخطی نشود */
  .hero-badge {
    font-size: 11.5px; padding: 6px 13px; gap: 6px;
    margin-bottom: 22px; white-space: nowrap; max-width: 100%;
  }
  .hb-full { display: none; }
  .hb-short { display: inline; }
  /* دکمه‌های هیرو کنار هم (صرفه‌جویی در ارتفاع؛ به‌جای دو ردیف زیر هم) */
  .hero-actions { flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 8px; }
  .hero-actions .btn {
    flex: 1 1 0; min-width: 0; max-width: none; width: auto;
    padding-inline: 8px; font-size: 13px; gap: 5px;
  }
  .hero-actions .btn svg { width: 15px; height: 15px; flex-shrink: 0; }
  /* سه مزیت در یک ردیف (به‌جای سه ردیف زیر هم) */
  .hero-points { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; }
  .hero-points li { font-size: 11px; white-space: nowrap; }
  .hero-visual { margin-top: 40px; }
  .mockup { border-radius: 12px; }
  .mockup-body { min-height: 200px; }
  .m-grid { grid-template-columns: repeat(2, 1fr); }

  .features, .how, .pricing, .faq { padding: 56px 16px 0; }
  .faq { padding-bottom: 56px; }
  /* کارت‌ها در موبایل ۲ ستونه (نه ۳) — عرض بیشتر برای خوانایی متن. */
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* اگر کارتی تک ماند (تعداد فرد: ۳ کارت ماژول / ۳ مرحله) تمام‌عرض شود
     تا جای خالی ردیف دوم پر شود؛ با ۶ کارت امکانات آخرین فرزند زوج است
     و این قانون اعمال نمی‌شود. */
  .features-grid > :last-child:nth-child(odd),
  .steps > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  .step { text-align: center; padding: 20px 14px; }
  /* شماره مراحل: همیشه وسط‌چین (در RTL مقدار «auto 0» عنصر را به چپ می‌چسباند) */
  .step-num {
    margin-inline: auto; margin-bottom: 10px;
    width: 36px; height: 36px; font-size: 15px; border-radius: 11px;
  }
  .step h3 { font-size: 13.5px; margin-bottom: 6px; }
  .step p { font-size: 11.5px; line-height: 1.75; }

  /* کارت‌های امکانات/ماژول: جمع‌وجور اما خوانا در عرض ~۱۷۴px */
  .feature-card { padding: 20px 14px; }
  .feature-icon { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 10px; }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature-card h3 { font-size: 13.5px; margin-bottom: 6px; line-height: 1.6; }
  .feature-card p { font-size: 11.5px; line-height: 1.75; }
  .soon-pill { margin-inline-start: 4px; padding: 2px 8px; font-size: 10px; }

  .price-card { padding: 24px 18px; border-radius: 18px; }
  .price-head { flex-direction: column; gap: 12px; }
  .price-amount { align-items: center; text-align: center; }
  .price-feats { text-align: center; }

  .cta { margin: 60px 0 0; padding: 40px 20px; border-radius: 0; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; }
  /* کپی‌رایت در موبایل وسط‌چین؛ متن برند راست‌چین کنار لوگو */
  .footer-copy { justify-content: center; text-align: center; }
  .footer-brand { text-align: right; }
  .footer-brand > div { text-align: right; }

  .buy-dialog { border-radius: 18px; padding: 22px 20px; }
  .guarantees { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 24px; }
  /* دکمه‌های هیرو و سه مزیت باید حتی در عرض ۳۲۰px هم در یک ردیف بمانند */
  .hero-actions { gap: 6px; }
  .hero-actions .btn { font-size: 12px; padding-inline: 6px; gap: 0; }
  .hero-actions .btn svg { display: none; }
  .hero-points { gap: 5px 8px; }
  .hero-points li { font-size: 10.5px; }
  .stats-inner { gap: 12px 0; padding: 18px 8px; }
  .stat-divider { display: none; }
}

/* ===== HERO ENTRANCE ANIMATION (pure CSS — runs on load, no JS, no flash) ===== */
.hero-badge        { animation: heroIn .7s  cubic-bezier(.22,1,.36,1) .05s both; }
.hero-content h1   { animation: heroIn .9s  cubic-bezier(.22,1,.36,1) .18s both; }
.hero-desc         { animation: heroIn .8s  cubic-bezier(.22,1,.36,1) .32s both; }
.hero-actions      { animation: heroIn .7s  cubic-bezier(.22,1,.36,1) .46s both; }
.hero-points li    { animation: heroIn .6s  cubic-bezier(.22,1,.36,1) both; }
.hero-points li:nth-child(1) { animation-delay: .58s; }
.hero-points li:nth-child(2) { animation-delay: .68s; }
.hero-points li:nth-child(3) { animation-delay: .78s; }
.hero-visual       { animation: heroIn 1s   cubic-bezier(.22,1,.36,1) .62s both; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL REVEAL (CSS-based, no GSAP dependency) ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside features-grid and steps */
[data-reveal] .features-grid .feature-card,
[data-reveal] .steps .step {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}
[data-reveal].revealed .features-grid .feature-card:nth-child(1),
[data-reveal].revealed .steps .step:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
[data-reveal].revealed .features-grid .feature-card:nth-child(2),
[data-reveal].revealed .steps .step:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
[data-reveal].revealed .features-grid .feature-card:nth-child(3),
[data-reveal].revealed .steps .step:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
[data-reveal].revealed .features-grid .feature-card:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
[data-reveal].revealed .features-grid .feature-card:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
[data-reveal].revealed .features-grid .feature-card:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }
/* FAQ stagger */
[data-reveal] .faq-list .faq-item {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}
[data-reveal].revealed .faq-list .faq-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
[data-reveal].revealed .faq-list .faq-item:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
[data-reveal].revealed .faq-list .faq-item:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
[data-reveal].revealed .faq-list .faq-item:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
[data-reveal].revealed .faq-list .faq-item:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal] .features-grid .feature-card, [data-reveal] .steps .step, [data-reveal] .faq-list .faq-item {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ============================================================
   PAGE LOADER — جلوگیری از فلش پاپ‌آپ‌ها هنگام لود
   ============================================================ */
#pageLoader {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .45s ease, visibility .45s ease;
}
#pageLoader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.pl-ring-wrap {
  position: relative; width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  animation: heroIn .5s ease both;
}
.pl-ring-wrap img {
  width: 38px; height: 38px; object-fit: contain;
  position: relative; z-index: 1;
}
.pl-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(183,82,36,.15); border-top-color: var(--primary);
  animation: plSpin .9s linear infinite;
}
@keyframes plSpin { to { transform: rotate(360deg); } }
.pl-wrap > span { font-size: 13px; font-weight: 800; color: var(--fg-muted); }

/* تا آماده شدن صفحه هیچ پاپ‌آپ یا مودالی دیده نشود */
body:not(.ready) #updatePopup,
body:not(.ready) #annToast,
body:not(.ready) .modal-overlay,
body:not(.ready) #pageLoader ~ * .modal-overlay {
  opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
}
body.roozi-booting { overflow: hidden; }
.hidden { display: none !important; }

/* ============================================================
   TERMS & CONDITIONS — فرم خرید
   ============================================================ */
.terms-block { margin-top: 18px; text-align: right; }
.terms-check {
  display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: var(--fg-secondary); line-height: 1.8;
}
.terms-check input {
  width: 17px; height: 17px; margin-top: 6px; accent-color: var(--primary);
  cursor: pointer; flex-shrink: 0;
}
.terms-check a { color: var(--primary); text-decoration: none; border-bottom: 1px dashed var(--primary-light); }
.terms-check a:hover { border-bottom-style: solid; }
.terms-box {
  margin-top: 10px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 0 14px; max-height: 180px; overflow-y: auto;
  transition: border-color .3s;
}
.terms-box.attention { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(183,82,36,.12); }
.terms-box summary {
  cursor: pointer; list-style: none; padding: 11px 0;
  font-size: 12px; font-weight: 800; color: var(--fg-muted);
}
.terms-box summary::-webkit-details-marker { display: none; }
.terms-box[open] summary { color: var(--primary); }
.terms-text {
  font-size: 11.5px; color: var(--fg-muted); line-height: 2.1;
  padding: 0 2px 12px; white-space: pre-line; text-align: right;
}

/* ============================================================
   TRIAL LICENSE
   ============================================================ */
.trial-btn { margin-top: 10px; font-size: 13.5px; }
.trial-box {
  background: var(--primary-subtle); border: 1px dashed rgba(183,82,36,.35);
  border-radius: 14px; padding: 16px 18px; text-align: right;
}
.trial-box strong { display: block; font-size: 13px; font-weight: 900; margin-bottom: 4px; }
.trial-box p { font-size: 12px; color: var(--fg-muted); margin: 4px 0 12px; line-height: 1.9; }
.trial-box small { display: block; margin-top: 8px; font-size: 10.5px; color: var(--fg-muted); }
.trial-box.done { background: var(--success-soft); border-color: rgba(22,163,74,.35); }
.trial-box.done strong { color: var(--success); }
.trial-key-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; margin-top: 8px;
}
.trial-key-row code {
  direction: ltr; font-family: 'Consolas', monospace; font-size: 13px;
  font-weight: 800; color: var(--primary); user-select: all;
}

/* ============================================================
   COPY KEY BUTTONS + STATUS MESSAGES
   ============================================================ */
.copy-key-btn {
  background: var(--primary-soft); color: var(--primary); border: 1px solid rgba(183,82,36,.3);
  border-radius: 7px; padding: 3px 12px; font-family: inherit; font-size: 11px; font-weight: 800;
  cursor: pointer; white-space: nowrap; transition: all .2s;
}
.copy-key-btn:hover { background: var(--fill-2); color: #fff; }
.recover-actions { display: inline-flex; align-items: center; gap: 8px; }
.inv-msg.ok { color: var(--success); }
.user-dash-msg { text-align: center; }

/* ============================================================
   RESPONSIVE / RTL FIXES — موبایل
   ============================================================ */

/* لیست ویژگی‌ها: همیشه وسط‌چین */
.price-feats li { text-align: center; }

/* تضمین‌ها: در موبایل دو باکس در هر ردیف + آیتم آخر تمام‌عرض و وسط‌چین */
@media (max-width: 640px) {
  .guarantees { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .g-item { padding: 12px 10px; justify-content: center; text-align: center; }
}

/* اعداد و قیمت‌ها: تراز یکنواخت در موبایل */
.price-final strong { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .off-badge { width: 46px; height: 46px; }
  .off-badge b, .off-badge { font-size: 13px; }
  .price-final strong { font-size: 34px; }
}

/* بازیابی: فرم در موبایل زیر هم */
@media (max-width: 480px) {
  .recover-form { flex-direction: column; }
  .recover-form .btn { width: 100%; }
  .recover-row { flex-wrap: wrap; row-gap: 6px; }
}

/* مراحل ورود کاربر: فشرده‌تر در موبایل */
@media (max-width: 380px) {
  .otp-input-group input { width: 46px !important; height: 54px; font-size: 22px !important; }
  .user-step-line { width: 22px; }
  .otp-input-group { gap: 6px; }
}

/* مودال خرید در موبایل: فضای بهینه و راست‌چین کامل */
@media (max-width: 480px) {
  .buy-dialog { max-height: 94vh; padding: 20px 18px 24px; }
  .f-label { margin-top: 11px; }
  .buy-pane .btn-block { width: 100%; }
}

/* ============================================================
   USER MODAL — نظم و فاصله‌گذاری حرفه‌ای مراحل
   ============================================================ */

/* فرم مرحله دوم (کد + پروفایل): ستونی با فاصله یکنواخت */
#verifyOtpForm { display: flex; flex-direction: column; }
#verifyOtpForm > * { min-width: 0; }
#verifyOtpForm .f-label { margin-top: 18px; margin-bottom: 6px; }
#verifyOtpForm input[type="text"],
#verifyOtpForm input[type="email"] { margin-top: 0; }

/* دکمه اصلی هر فرم مودال: فاصله استاندارد از آخرین فیلد */
.buy-dialog form > .btn.btn-block { margin-top: 22px; flex-shrink: 0; }

/* تایمر و دکمه بازگشت: جدا و مرتب */
.otp-timer { display: flex; align-items: center; justify-content: center; gap: 10px; }
#backToPhone, #userPane2 .btn-back { margin-top: 16px; }

/* پیام وضعیت داخل مودال ورود */
#otpPhoneMsg, #userOtpMsg { text-align: center; }

/* ─── مودال ورود/ثبت‌نام: جمع‌وجور بدون اسکرول اضافه ─── */
#userModal .buy-dialog { width: min(400px, 100%); padding: 24px 24px 26px; }
#userModal .user-steps { margin-bottom: 14px; padding-bottom: 12px; }
#otpForm .f-label { margin-top: 12px; margin-bottom: 5px; }
#otpForm input { margin: 0; }
#otpForm .btn, #verifyOtpForm .btn-block { margin-top: 16px; }
#verifyOtpForm .otp-input-group { margin: 10px 0; }
#verifyOtpForm .otp-timer { margin: 6px 0; }
#verifyOtpForm .btn-back { margin-top: 10px; }

/* ============================================================
   RECOVERY — بازیابی دومرحله‌ای با کد تأیید
   ============================================================ */
.recover-step { padding-bottom: 12px; }
.recover-note {
  font-size: 10.5px; color: var(--fg-muted); margin-top: 8px;
  text-align: right; line-height: 1.8;
}
#recoverCodeHint {
  font-size: 12px; color: var(--fg-secondary); font-weight: 700;
  margin: 4px 0 10px; text-align: right;
}
.recover-form input { text-align: left; }
#recoverCodeInput { direction: ltr; letter-spacing: 6px; font-weight: 900; }

/* ============================================================
   PAYMENT METHODS — انتخاب روش پرداخت
   ============================================================ */
.pay-methods {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.pay-method {
  background: var(--bg); border: 2px solid var(--border); border-radius: 14px;
  padding: 14px 12px; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: inherit; transition: all .25s cubic-bezier(.4,0,.2,1);
}
.pay-method:hover { border-color: var(--primary-light); }
.pay-method.on {
  border-color: var(--primary); background: var(--primary-subtle);
  box-shadow: 0 4px 16px rgba(183,82,36,.12);
}
.pay-method .pm-icon { font-size: 24px; line-height: 1.2; }
.pay-method strong { font-size: 13px; font-weight: 900; color: var(--fg); }
.pay-method.on strong { color: var(--primary); }
.pay-method small { font-size: 10px; color: var(--fg-muted); line-height: 1.8; }

/* ============================================================
   CREDIT CARD — کارت اعتباری زیبا برای کارت به کارت
   ============================================================ */
.cc-card {
  background:
    radial-gradient(300px 160px at 85% -20%, rgba(255,255,255,.22), transparent),
    linear-gradient(135deg, #23272F 0%, #3B2A20 55%, #5A3418 100%);
  border-radius: 18px; padding: 20px 22px; color: #fff;
  box-shadow: 0 18px 44px rgba(35,39,47,.35);
  position: relative; overflow: hidden; margin-bottom: 16px;
}
.cc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cc-bank { font-size: 12.5px; font-weight: 800; opacity: .95; letter-spacing: .3px; }
.cc-chip {
  width: 38px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, #E8C56D, #C9A045 60%, #E8C56D);
  position: relative; flex-shrink: 0;
}
.cc-chip::after {
  content: ''; position: absolute; inset: 6px 8px;
  border: 1px solid rgba(90,60,10,.45); border-radius: 4px;
}
.cc-number {
  direction: ltr; text-align: center;
  font-family: 'Consolas', monospace; font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 900; letter-spacing: 3px; user-select: all;
  padding: 10px 8px; border-radius: 10px; cursor: pointer;
  transition: background .25s;
}
.cc-number:hover { background: rgba(255,255,255,.08); }
.cc-number.copied { background: rgba(46,204,113,.3); }
.cc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px;
}
.cc-holder { font-size: 12px; font-weight: 700; opacity: .95; }
.cc-copy-hint { font-size: 9.5px; opacity: .6; }

/* آپلود رسید */
.file-drop {
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--border-strong, #D1D5DB); border-radius: 12px;
  padding: 16px 12px; cursor: pointer; margin-bottom: 14px;
  font-size: 12.5px; font-weight: 700; color: var(--fg-secondary);
  background: var(--bg); transition: all .25s;
}
.file-drop:hover { border-color: var(--primary-light); background: var(--primary-subtle); color: var(--primary); }
.file-drop input[type="file"] { display: none; }

/* ============================================================
   UPDATE MODAL — مودال مرکزی با پس‌زمینه مات؛ کاربر باید انتخاب کند
   ============================================================ */
#updateOverlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(24,24,27,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
}
#updateOverlay.show { display: flex; }
#updatePopup {
  width: min(400px, 100%);
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px 26px 22px; box-shadow: var(--shadow-lg);
  animation: updateIn .4s cubic-bezier(.22,1,.36,1);
}
@keyframes updateIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
.up-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.up-close {
  border: none; background: none; cursor: pointer; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 9px; font-size: 13px; color: var(--fg-muted);
  display: flex; align-items: center; justify-content: center; font-family: inherit;
  transition: background .15s, color .15s;
}
.up-close:hover { background: var(--bg); color: var(--fg); }
.up-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-subtle));
  border: 1px solid rgba(183,82,36,.2); font-size: 21px;
  display: flex; align-items: center; justify-content: center;
}
.up-title { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.up-desc { font-size: 12.5px; color: var(--fg-muted); line-height: 1.9; font-weight: 500; }
.up-actions { display: flex; gap: 10px; }
.up-btn {
  flex: 1; text-align: center; padding: 11px 12px; border-radius: 11px;
  font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.up-btn-primary {
  background: linear-gradient(135deg, var(--fill-1) -20%, var(--fill-2) 55%);
  color: #fff; border: none; box-shadow: 0 3px 12px rgba(183,82,36,.28);
}
.up-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(183,82,36,.36); }
.up-btn-ghost { background: none; border: 1px solid var(--border); color: var(--fg-secondary); }
.up-btn-ghost:hover { border-color: var(--primary-light); color: var(--primary); background: var(--primary-subtle); }

/* Module selection */
.module-select { margin: 6px 0 18px; text-align: right; }
.module-select-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.module-select-head > span { font-size: 13px; font-weight: 800; color: var(--fg); }
.module-select-head > small { font-size: 11.5px; color: var(--fg-muted); line-height: 1.7; }
.module-list { display: flex; flex-direction: column; gap: 8px; }
.module-item {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 11px 12px; cursor: pointer; background: var(--bg);
  transition: border-color .15s, background .15s;
}
.module-item:hover { border-color: var(--primary-light); }
.module-item input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.module-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.module-info b { font-size: 13px; font-weight: 800; color: var(--fg); }
.module-info small { font-size: 11.5px; color: var(--fg-muted); line-height: 1.6; }
.module-price { font-size: 13px; font-weight: 900; color: var(--primary); white-space: nowrap; }

/* ── ماژولهای «به‌زودی» — حالت غیرفعال ── */
.soon-pill {
  display: inline-block; vertical-align: 2px; margin-inline-start: 8px;
  background: var(--bg); color: var(--fg-muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 10px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .2px;
}

/* کارت‌های بخش ماژولها تا زمان عرضه */
.modules-soon .feature-card { border-style: dashed; }
.modules-soon .feature-card .feature-icon { opacity: .45; }
.modules-soon .feature-card h3 { color: var(--fg-muted); }
.modules-soon .feature-card p { color: var(--fg-muted); }

/* آیتم‌های ماژول در پنجره خرید تا زمان عرضه */
.module-item.is-soon {
  border-style: dashed; background: transparent; opacity: .8; cursor: not-allowed;
}
.module-item.is-soon:hover { border-color: var(--border); }
.module-item.is-soon .module-info b { color: var(--fg-muted); }
.module-item.is-soon .module-price { color: var(--fg-muted); }
.module-item input:disabled { cursor: not-allowed; }
.module-soon-tag {
  background: var(--bg); color: var(--fg-muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px; font-size: 10.5px; font-weight: 800; white-space: nowrap;
}
.module-soon-note {
  margin: 10px 0 0; font-size: 11.5px; color: var(--fg-muted); line-height: 1.9;
  padding: 10px 14px; background: var(--bg); border: 1px dashed var(--border); border-radius: 10px;
}
.footer-credit { font-size: 12px; color: var(--fg-muted); margin-top: 4px; }
.footer-credit a { color: var(--primary); font-weight: 700; text-decoration: none; }

/* ??? ???? ?? ? ?? ??? ????? (?????? ?????) */
.upgrade-mode { margin: 4px 0 14px; }
.upgrade-mode-head {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 12px; border: 1.5px dashed var(--border); border-radius: 12px;
  cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s;
}
.upgrade-mode-head:hover { border-color: var(--primary-light); }
.upgrade-mode-head > span { font-size: 13px; font-weight: 800; color: var(--fg); }
.upgrade-mode-head > small { font-size: 11px; color: var(--fg-muted); margin-inline-start: auto; }
.upgrade-switch { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; margin-inline-start: 4px; }
.upgrade-panel { margin-top: 10px; padding: 12px; border: 1.5px solid var(--primary-light); border-radius: 12px; background: var(--primary-soft); }
.upgrade-select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 12.5px; background: var(--bg); color: var(--fg); direction: rtl;
}

/* Payment history rows in account */
.pay-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.user-dash-card { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }

/* ============================================================
   Auth tabs — ورود / ثبت‌نام
   ============================================================ */
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 5px; margin-bottom: 16px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px;
}
.auth-tab {
  padding: 10px 8px; border: none; border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 800;
  background: transparent; color: var(--fg-muted);
  transition: background .18s, color .18s, box-shadow .18s;
}
.auth-tab:hover { color: var(--fg); }
.auth-tab.active {
  background: var(--fill-2); color: #fff;
  box-shadow: 0 4px 14px rgba(183, 82, 36, .28);
}
#userModal .buy-pane .auth-tabs + .inv-msg { margin-top: 0; }
#registerFieldsWrap { margin-top: 2px; }

/* ============================================================
   P7 — زیرمنوی حساب کاربری در هدر (Hover/کلیک)
   ============================================================ */
/* display:flex حذف line-box پایینِ دکمهٔ inline-flex است؛ بدون آن wrap ۳px بلندتر
   از دکمه می‌شد و دکمه ۲px بالاتر از بقیهٔ آیتم‌های هدر قرار می‌گرفت. */
.nav-user-wrap { position: relative; display: flex; align-items: center; }
.nav-user-wrap .nav-user-menu {
  /* از لبهٔ inline-end (چپ در RTL) به داخل ناوبری باز می‌شود تا از کادر بیرون نزند */
  inset-inline-end: 0; inset-inline-start: auto;
  display: none;
  min-width: 244px; max-width: calc(100vw - 24px);
}
/* زیرمنوی حساب کاربری فقط برای کاربر واردشده باز می‌شود (کلاس authed از updateAuthBtn) */
.nav-user-wrap.menu-open .nav-user-menu { display: flex; }
/* باز شدن با hover فقط روی دسکتاپ؛ در لمس/موربایل با کلیک (کلاس menu-open) */
@media (hover: hover) and (pointer: fine) {
  .nav-user-wrap.authed:hover .nav-user-menu { display: flex; }
}

/* نسخهٔ نوار ناوبری مشترک صفحات فرعی (partials/nav.php):
   بدون position روی wrap، منو به‌جای دکمه به لبهٔ ناوبری سنجاق می‌شد */
.nav-auth-wrap { position: relative; }
.nav-auth-wrap .nav-user-menu {
  inset-inline-end: 0; inset-inline-start: auto;
  min-width: 244px; max-width: calc(100vw - 24px);
}

/* ============================================================
   P5 — داشبورد حساب: Buying Hub، پروفایل، لایسنس‌ها
   ============================================================ */
.hub-title { font-size: 13px; font-weight: 800; margin-bottom: 10px; text-align: right; }
.hub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.hub-card {
  display: flex; flex-direction: column; gap: 6px; text-align: right;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 14px;
  cursor: pointer; font-family: inherit; transition: all .2s; color: var(--fg); width: 100%;
}
.hub-card b { font-size: 13px; font-weight: 800; }
.hub-card small { font-size: 11.5px; color: var(--fg-muted); line-height: 1.8; }
.hub-card:hover:not(.hub-disabled) { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.hub-primary { border-color: rgba(183,82,36,.4); background: var(--primary-soft); }
.hub-primary b { color: var(--primary); }
.hub-disabled { opacity: .55; cursor: not-allowed; }
.dash-sec { margin-bottom: 16px; }
.dash-sec-title { font-size: 13px; font-weight: 800; margin-bottom: 10px; text-align: right; }
.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lic-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  margin-bottom: 10px;
}
.lic-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.lic-key { direction: ltr; font-family: monospace; font-size: 12px; font-weight: 800; color: var(--primary); user-select: all; }
.lic-status { font-size: 11px; font-weight: 800; white-space: nowrap; }
.lic-label-row { display: flex; gap: 6px; }
.lic-label-input {
  flex: 1; padding: 8px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: 9px;
  font-family: inherit; background: var(--bg); outline: none; color: var(--fg);
}
.lic-label-input:focus { border-color: var(--primary); }
.lic-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lic-mod-chip {
  font-size: 10.5px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border: 1px solid rgba(183,82,36,.18); border-radius: 999px; padding: 3px 10px;
}
.lic-meta { font-size: 11px; color: var(--fg-muted); margin-top: 6px; }
@media (max-width: 520px) {
  .hub-cards { grid-template-columns: 1fr; }
  .dash-grid-2 { grid-template-columns: 1fr; }
}

/* ===== HOME BLOG — آخرین مطالب وبلاگ در صفحه اصلی ===== */
.home-blog {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 78px var(--page-pad) 16px;
  text-align: center;
}
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 42px;
  text-align: right;
}
.home-blog-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(183,82,36,.3);
}
.hb-cover { display: block; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.hb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.home-blog-card:hover .hb-cover img { transform: scale(1.045); }
.hb-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.hb-cat {
  align-self: flex-start;
  font-size: 11px; font-weight: 800;
  color: var(--primary); background: var(--primary-soft);
  border: 1px solid rgba(183,82,36,.22);
  border-radius: 999px; padding: 3px 11px;
}
.hb-title { font-size: 15px; font-weight: 900; line-height: 1.85; color: var(--fg); }
.hb-ex {
  font-size: 12.5px; color: var(--fg-muted); line-height: 2; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hb-date {
  font-size: 11.5px; color: var(--fg-muted);
  padding-top: 10px; border-top: 1px dashed var(--border-light, #F0F1F4);
}
.home-blog-more { margin-top: 30px; }
@media (max-width: 560px) {
  .home-blog { padding-top: 56px; }
  .home-blog-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
}


/* ===== GALLERY — پیش‌نمایش زنده تب‌های نرم‌افزار ===== */
.gallery { padding: 84px 24px 0; text-align: center; }
.gal-frame {
  --g-bg: #F7F8FA;
  --g-surface: #FFFFFF;
  --g-fg: #18181B;
  --g-fg-2: #3F3F46;
  --g-muted: #71717A;
  --g-border: #E7E9EF;
  --g-soft: #F4F4F5;
  --g-primary: #B75224;
  --g-primary-soft: #FDF4F0;
  --g-ok: #16A34A;
  --g-warn: #D97706;
  --g-danger: #DC2626;
  max-width: 980px;
  margin: 44px auto 0;
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: 20px;
  overflow: hidden;
  text-align: right;
  box-shadow: var(--shadow-lg), 0 40px 90px rgba(183,82,36,.07);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.gal-frame[data-theme="dark"] {
  --g-bg: #101114;
  --g-surface: #17181C;
  --g-fg: #F4F4F5;
  --g-fg-2: #D4D4D8;
  --g-muted: #9CA3AF;
  --g-border: #26272C;
  --g-soft: #1E1F24;
  --g-primary: #E08B5C;
  --g-primary-soft: rgba(224,139,92,.12);
  --g-ok: #4ADE80;
  --g-warn: #FBBF24;
  --g-danger: #F87171;
  border-color: #2A2B31;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

/* نوار بالای قاب */
.gal-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--g-surface);
  border-bottom: 1px solid var(--g-border);
  transition: background .4s ease, border-color .4s ease;
}
.gal-dots { display: flex; gap: 6px; flex-shrink: 0; }
.gal-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--g-border); }
.gal-dots span:nth-child(1) { background: #FCA5A5; }
.gal-dots span:nth-child(2) { background: #FCD34D; }
.gal-dots span:nth-child(3) { background: #86EFAC; }
.gal-title {
  flex: 1;
  text-align: center;
  font-size: 12px; font-weight: 800; color: var(--g-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─── بدنهٔ برنامه: سایدبار راست + محتوای اصلی (شبیه‌سازی وفادارانهٔ خودِ اپ) ─── */
.gal-body { display: flex; align-items: stretch; min-height: 430px; }
.gal-side {
  width: 202px; flex-shrink: 0;
  background: var(--g-surface);
  border-inline-end: 1px solid var(--g-border);
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 14px;
  transition: background .4s ease, border-color .4s ease;
}
.gs-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--g-border);
}
.gs-head img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.gs-head b { display: block; font-size: 14px; font-weight: 900; color: var(--g-fg); line-height: 1.25; }
.gs-head span { display: block; font-size: 10px; font-weight: 700; color: var(--g-muted); }
.gs-nav { display: flex; flex-direction: column; gap: 5px; flex: 1; min-height: 0; overflow-y: auto; }
.gs-nav::-webkit-scrollbar { width: 4px; }
.gs-nav::-webkit-scrollbar-thumb { background: var(--g-border); border-radius: 4px; }
.gs-item {
  display: flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 12px; font-weight: 800;
  color: var(--g-fg-2); background: transparent;
  border: none; border-radius: 10px; padding: 9px 10px;
  cursor: pointer; text-align: right; white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.gs-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.gs-item:hover { background: var(--g-soft); color: var(--g-fg); }
.gs-item:active { transform: scale(.97); }
.gs-item.active {
  color: var(--g-primary); background: var(--g-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(183,82,36,.22);
}
.gal-frame[data-theme="dark"] .gs-item.active { box-shadow: inset 0 0 0 1px rgba(224,139,92,.28); }
.gs-foot { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--g-border); padding-top: 12px; }
.gs-clock {
  display: flex; align-items: center; gap: 9px;
  background: var(--g-bg); border: 1px solid var(--g-border);
  border-radius: 11px; padding: 8px 10px;
}
.gs-clock svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--g-primary); }
.gs-clock b { display: block; font-size: 13px; font-weight: 900; color: var(--g-fg); font-variant-numeric: tabular-nums; line-height: 1.2; }
.gs-clock span { display: block; font-size: 9.5px; font-weight: 700; color: var(--g-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-theme, .gs-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; font-family: inherit; font-size: 11.5px; font-weight: 800;
  background: transparent; border: 1px solid var(--g-border); border-radius: 10px;
  padding: 8px 10px; cursor: pointer; color: var(--g-fg-2);
  transition: all .2s ease;
}
.gs-theme svg, .gs-logout svg { width: 15px; height: 15px; flex-shrink: 0; }
.gs-theme:hover { border-color: var(--g-primary); color: var(--g-primary); }
.gs-logout { color: var(--g-danger); border-color: transparent; }
.gs-logout:hover { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.3); }
.gal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* صحنه نمایش */
.gal-stage { position: relative; min-height: 420px; }
.gal-pane { display: none; padding: 22px; animation: paneFade .45s cubic-bezier(.22,1,.36,1) both; }
.gal-pane.on { display: block; }
@keyframes paneFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── پن ۱: صندوق فروش ── */
.gp-pos { display: grid; grid-template-columns: 1fr 250px; gap: 18px; }
.gp-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gp-cats { display: flex; gap: 7px; flex-wrap: wrap; }
.gp-cats span {
  font-size: 11.5px; font-weight: 800; color: var(--g-muted);
  background: var(--g-surface); border: 1px solid var(--g-border);
  border-radius: 999px; padding: 6px 14px;
  transition: all .25s ease;
}
.gp-cats span.on {
  color: var(--g-primary); background: var(--g-primary-soft);
  border-color: rgba(183,82,36,.35);
}
.gp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gp-card {
  background: var(--g-surface); border: 1px solid var(--g-border);
  border-radius: 12px; padding: 12px 10px; text-align: center;
  display: flex; flex-direction: column; gap: 3px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.gp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--g-primary); }
.gp-card i { font-style: normal; font-size: 24px; line-height: 1.4; }
.gp-card b { font-size: 12px; font-weight: 900; color: var(--g-fg); }
.gp-card s { font-size: 11px; font-weight: 700; color: var(--g-muted); text-decoration: none; }
.gp-cart {
  background: var(--g-surface); border: 1px solid var(--g-border);
  border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.gp-cart-h {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 900; color: var(--g-fg);
}
.gp-cart-h span {
  font-size: 10px; font-weight: 800; color: var(--g-primary);
  background: var(--g-primary-soft); border-radius: 999px; padding: 3px 9px;
}
.gp-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--g-bg); border: 1px solid var(--g-border);
  border-radius: 9px; padding: 8px 10px; font-size: 11.5px;
  transition: border-color .25s ease;
}
.gp-item:hover { border-color: var(--g-primary); }
.gp-item b { font-weight: 800; color: var(--g-fg); }
.gp-item s { font-weight: 700; color: var(--g-muted); text-decoration: none; }
.gp-total {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--g-primary-soft); border: 1px solid rgba(183,82,36,.3);
  border-radius: 10px; padding: 10px 12px;
  font-size: 12.5px; font-weight: 900; color: var(--g-primary);
}
.gp-btn {
  background: linear-gradient(135deg, var(--g-primary), #D4723F);
  color: #fff; text-align: center; font-size: 12.5px; font-weight: 900;
  border-radius: 10px; padding: 12px;
}

/* ── KPI ها + نمودار (داشبورد / مالی) ── */
.g-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.g-kpis.three { grid-template-columns: repeat(3, 1fr); }
.g-kpi {
  background: var(--g-surface); border: 1px solid var(--g-border);
  border-radius: 13px; padding: 14px; text-align: right;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .3s ease, border-color .3s ease;
}
.g-kpi:hover { transform: translateY(-3px); border-color: var(--g-primary); }
.g-kpi span { font-size: 11px; font-weight: 800; color: var(--g-muted); }
.g-kpi b { font-size: 19px; font-weight: 900; color: var(--g-fg); letter-spacing: -.3px; }
.g-kpi em { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--g-muted); }
.g-kpi em.up { color: var(--g-ok); }
.g-kpi em.down { color: var(--g-danger); }
.g-chart {
  background: var(--g-surface); border: 1px solid var(--g-border);
  border-radius: 14px; padding: 16px;
}
.g-chart-h {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; font-weight: 900; color: var(--g-fg); margin-bottom: 14px;
}
.g-chart-h span { font-size: 10.5px; font-weight: 700; color: var(--g-muted); }
.g-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.g-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.g-bar i {
  display: block; width: 100%; height: var(--h, 50%);
  background: linear-gradient(to top, var(--g-primary), #E39A6D);
  border-radius: 7px 7px 3px 3px;
  transform-origin: bottom;
  animation: barGrow .9s cubic-bezier(.22,1,.36,1) both;
  opacity: .92;
  transition: opacity .25s;
}
.g-bar:hover i { opacity: 1; }
.g-bar:nth-child(2) i { animation-delay: .07s; }
.g-bar:nth-child(3) i { animation-delay: .14s; }
.g-bar:nth-child(4) i { animation-delay: .21s; }
.g-bar:nth-child(5) i { animation-delay: .28s; }
.g-bar:nth-child(6) i { animation-delay: .35s; }
.g-bar:nth-child(7) i { animation-delay: .42s; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.g-bar span { font-size: 10.5px; font-weight: 800; color: var(--g-muted); }

/* ── جدول‌ها (سفارش‌ها / آیتم‌ها / مالی) ── */
.g-table {
  background: var(--g-surface); border: 1px solid var(--g-border);
  border-radius: 14px; overflow: hidden;
}
.g-tr {
  display: grid; grid-template-columns: 1fr 1.3fr 1fr 1fr;
  gap: 10px; align-items: center;
  padding: 12px 16px;
  font-size: 12.5px; color: var(--g-fg-2);
  border-bottom: 1px solid var(--g-border);
  transition: background .2s ease;
}
.g-tr:last-child { border-bottom: none; }
.g-tr:not(.g-th):hover { background: var(--g-soft); }
.g-th {
  background: var(--g-bg);
  font-size: 11px; font-weight: 900; color: var(--g-muted);
}
.g-chip {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 900; border-radius: 999px;
  padding: 4px 11px;
}
.g-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.g-chip.ok { color: var(--g-ok); background: rgba(22,163,74,.10); }
.g-chip.wait { color: var(--g-warn); background: rgba(217,119,6,.10); }
.g-chip.cancel { color: var(--g-danger); background: rgba(220,38,38,.10); }
.g-chip.off { color: var(--g-muted); background: var(--g-soft); }

/* نوار ابزار آیتم‌ها */
.g-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.g-search {
  flex: 1; font-size: 12.5px; font-weight: 700; color: var(--g-muted);
  background: var(--g-surface); border: 1px dashed var(--g-border);
  border-radius: 11px; padding: 11px 15px;
}
.g-add {
  font-size: 12.5px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--g-primary), #D4723F);
  border-radius: 11px; padding: 11px 18px;
  box-shadow: 0 6px 18px rgba(183,82,36,.25);
}

/* ── پن مشتریان ── */
.g-list { display: flex; flex-direction: column; gap: 10px; }
.g-row {
  display: flex; align-items: center; gap: 13px;
  background: var(--g-surface); border: 1px solid var(--g-border);
  border-radius: 13px; padding: 13px 16px;
  transition: transform .3s ease, border-color .3s ease;
  animation: rowIn .5s cubic-bezier(.22,1,.36,1) both;
}
.g-row:nth-child(2) { animation-delay: .06s; }
.g-row:nth-child(3) { animation-delay: .12s; }
.g-row:nth-child(4) { animation-delay: .18s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.g-row:hover { transform: translateX(-4px); border-color: var(--g-primary); }
.g-row .av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 15px; font-weight: 900; color: #fff;
}
.av.a1 { background: linear-gradient(135deg, #B75224, #D4723F); }
.av.a2 { background: linear-gradient(135deg, #2563EB, #60A5FA); }
.av.a3 { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.av.a4 { background: linear-gradient(135deg, #059669, #34D399); }
.g-row div { flex: 1; display: flex; flex-direction: column; line-height: 1.7; }
.g-row b { font-size: 13.5px; font-weight: 900; color: var(--g-fg); }
.g-row small { font-size: 11px; font-weight: 700; color: var(--g-muted); direction: ltr; text-align: right; }
.g-row em { font-style: normal; font-size: 11.5px; font-weight: 900; color: var(--g-primary); }

/* ── پن گزارشات ── */
.g-tabs-mini { display: flex; gap: 7px; margin-bottom: 16px; }
.g-tabs-mini span {
  font-size: 11.5px; font-weight: 800; color: var(--g-muted);
  background: var(--g-surface); border: 1px solid var(--g-border);
  border-radius: 999px; padding: 6px 15px;
}
.g-tabs-mini span.on {
  color: var(--g-primary); background: var(--g-primary-soft);
  border-color: rgba(183,82,36,.35);
}
.g-hbars {
  background: var(--g-surface); border: 1px solid var(--g-border);
  border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 15px;
}
.g-hb { display: grid; grid-template-columns: 110px 1fr 44px; gap: 12px; align-items: center; }
.g-hb label { font-size: 12px; font-weight: 800; color: var(--g-fg-2); }
.g-hb .track {
  height: 12px; border-radius: 999px;
  background: var(--g-soft); overflow: hidden;
}
.g-hb .track i {
  display: block; height: 100%; width: var(--w, 50%);
  background: linear-gradient(90deg, var(--g-primary), #E39A6D);
  border-radius: 999px;
  transform-origin: right center;
  animation: hbGrow 1s cubic-bezier(.22,1,.36,1) both;
}
.g-hb:nth-child(2) .track i { animation-delay: .1s; }
.g-hb:nth-child(3) .track i { animation-delay: .2s; }
.g-hb:nth-child(4) .track i { animation-delay: .3s; }
@keyframes hbGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.g-hb b { font-size: 12px; font-weight: 900; color: var(--g-primary); text-align: left; direction: ltr; }
.g-legend { display: flex; gap: 20px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.g-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; color: var(--g-muted); }
.g-legend i { width: 10px; height: 10px; border-radius: 3px; }
.g-legend .d1 { background: var(--g-primary); }
.g-legend .d2 { background: #2563EB; }

/* ── پن تنظیمات ── */
.g-settings {
  background: var(--g-surface); border: 1px solid var(--g-border);
  border-radius: 14px; padding: 6px 18px;
  max-width: 560px; margin-inline: auto;
}
.g-field { padding: 15px 0; border-bottom: 1px solid var(--g-border); }
.g-field label { display: block; font-size: 11.5px; font-weight: 800; color: var(--g-muted); margin-bottom: 7px; }
.g-field .inp {
  font-size: 13px; font-weight: 700; color: var(--g-fg);
  background: var(--g-bg); border: 1px solid var(--g-border);
  border-radius: 10px; padding: 11px 14px;
}
.g-toggle-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--g-border);
}
.g-toggle-row:last-child { border-bottom: none; }
.g-toggle-row div:first-child { display: flex; flex-direction: column; line-height: 1.8; }
.g-toggle-row b { font-size: 13px; font-weight: 900; color: var(--g-fg); }
.g-toggle-row small { font-size: 11px; font-weight: 700; color: var(--g-muted); }
.g-switch {
  width: 46px; height: 26px; border-radius: 999px; flex-shrink: 0;
  background: var(--g-primary); position: relative;
  transition: background .3s ease;
}
.g-switch i {
  position: absolute; top: 3px; inset-inline-start: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.g-switch.on i { transform: translateX(-20px); }
.gal-frame[dir="rtl"] .g-switch.on i { transform: translateX(-20px); }

/* ── ریسپانسیو گالری ── */
@media (max-width: 860px) {
  .gp-pos { grid-template-columns: 1fr; }
  .gp-cart { max-width: none; }
  .g-kpis { grid-template-columns: repeat(2, 1fr); }
  .g-kpis.three { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .gallery { padding: 56px 16px 0; }
  .gal-frame { border-radius: 16px; margin-top: 32px; }
  .gal-chrome { gap: 10px; padding: 10px 12px; }
  /* سایدبار در موبایل جمع‌می‌شود و فقط آیکون‌ها می‌مانند — دقیقاً مانند
     حالت collapse خودِ نرم‌افزار روی صفحه‌های کوچک */
  .gal-side { width: 54px; padding: 10px 6px; gap: 8px; align-items: center; }
  .gs-head { justify-content: center; padding-bottom: 10px; }
  .gs-head div { display: none; }
  .gs-head img { width: 30px; height: 30px; }
  .gs-nav { width: 100%; align-items: center; gap: 4px; }
  .gs-item { justify-content: center; padding: 7px; gap: 0; width: 40px; }
  .gs-item span { display: none; }
  .gs-foot { padding-top: 10px; gap: 6px; width: 100%; }
  .gs-clock { justify-content: center; padding: 7px 6px; }
  .gs-clock div { display: none; }
  .gs-theme, .gs-logout { padding: 7px 6px; }
  .gs-theme span, .gs-logout span { display: none; }
  .gal-pane { padding: 16px 13px; }
  .gal-stage { min-height: 480px; }
  .gp-grid { grid-template-columns: repeat(2, 1fr); }
  .g-kpis, .g-kpis.three { grid-template-columns: repeat(2, 1fr); }
  .g-tr { grid-template-columns: 1fr 1fr; row-gap: 6px; padding: 11px 13px; }
  .g-th span:nth-child(n+3) { display: none; }
  .g-tr:not(.g-th) span:nth-child(n+3) { display: none; }
  .g-hb { grid-template-columns: 84px 1fr 38px; gap: 8px; }
  .g-bars { height: 120px; }
  .g-toolbar { flex-direction: column; }
}
@media (max-width: 420px) {
  .gal-title { display: none; }
  .g-kpis, .g-kpis.three { grid-template-columns: 1fr; }
  .gp-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ============================================================
   SECTION BANDS — متمایزسازی بصری سکشن‌های صفحهٔ اصلی
   بدون دست‌زدن به ساختار DOM: فقط پس‌زمینه/پدینگ سکشن‌ها
   به‌صورت متناوب عوض می‌شود تا صفحه یکنواخت به نظر نرسد.
   ریتم: سفید → سفیدی‌نما(#FAFBFD) → تint گرم → سفید → تint → نارنجی → سفید
   فاصلهٔ هر مرز ≈ ۸۸px (۴۴ بالا + ۴۴ پایین) تا ریتم قبلی حفظ شود.
   ============================================================ */
#features {
  padding: 84px 24px 44px;
  background: var(--band-solid);
  border-bottom: 1px solid var(--border-light);
}
#modules { padding: 44px 24px 44px; }

.gallery {
  padding: 44px 24px 44px;
  background:
    radial-gradient(760px 380px at 78% 0%, rgba(183,82,36,.075), transparent 62%),
    radial-gradient(640px 340px at 8% 100%, rgba(212,114,63,.055), transparent 60%),
    var(--band-tint);
  border-top: 1px solid var(--band-line);
  border-bottom: 1px solid var(--band-line);
}

.how {
  padding: 44px 24px 44px;
  background: var(--band-solid);
  border-bottom: 1px solid var(--border-light);
}

.pricing {
  padding: 44px 24px 44px;
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(183,82,36,.07), transparent 62%),
    var(--band-tint);
  border-bottom: 1px solid var(--band-line);
}

/* CTA بلافاصله به پلن‌ها می‌چسبد: چون رنگ پس‌زمینهٔ سکشن بعدی
   با قبلی فرق دارد، نباید هیچ فاصلهٔ بی‌رنگی میان دو نوار بیفتد. */
.cta { margin: 0; }

.faq {
  padding: 44px 24px 84px;
  background: var(--band-solid);
  border-bottom: 1px solid var(--border-light);
}

/* پیش‌نمایش وبلاگ در صفحهٔ اصلی از طریق PHP غیرفعال شده است
   (index.php → `if (false && $homePosts)`)؛ این قانون فقط محافظ اضافی است. */
#blog-preview { display: none; }

@media (max-width: 640px) {
  #features { padding: 56px 16px 32px; }
  #modules { padding: 32px 16px 32px; }
  .gallery { padding: 32px 16px 32px; }
  .how { padding: 32px 16px 32px; }
  .pricing { padding: 32px 16px 32px; }
  .cta { margin: 0; }
  .faq { padding: 32px 16px 56px; }
}
