/* ============================================================================
   PAGES/PUBLIC.CSS — صفحات عمومی: قوانین · درباره · راهنما · قیمت
   ============================================================================
   مالک:      web/secondary/{about,rules,help_public,help_app,pricing}.html
              + اینکلود مشترک web/secondary/_help_content.html — گام ۴
   وابستگی:   dazzle.css (card/card-glass/alert/btn/eyebrow) + navbar/footer
              (تا گام ۵ سراسری‌اند)

   · ادغام وفادار ۵ فایل با **ترتیب آبشاری حفظ‌شده** (قبلاً: pricing و
     public-pages سراسری بودند و بقیه صفحه‌ای):
       §1 PRICING   (از pricing.css — سراسری سابق)
       §2 HELP      (از help_public.css — صفحه‌ای سابق)
       §3 HELP-APP  (از help_app.css — صفحه‌ای سابق)
       §4 ABOUT     (از about.css — صفحه‌ای سابق)
       §5 RULES     (از rules.css — صفحه‌ای سابق)
   · بخش سبزِ قدیمی public-pages.css (help-quick، secondary-hero، about-story،
     rules-shell و…) **کاملاً مرده بود** — هیچ قالبی استفاده نمی‌کند؛ پورت
     نشد. فقط دو رول زنده‌اش (فوتر) به لایهٔ کامپوننت dazzle.css §3.13 رفت
     چون footer کامپوننت مشترک ۸ صفحه است.
   · کلاس مردهٔ .help-page-app (نسخهٔ بدون -new) هم پورت نشد.
   · توکنایز بدون تغییر مقدار: #fff/#ffffff → var(--gray-0)،
     rgba(124,88,253,…) → rgba(var(--purple-rgb),…)، rgba(194,255,69,…) →
     rgba(var(--lime-rgb),…)، #6a5a8a → var(--purple-wash)، #4d3d72 →
     var(--purple-muted)، #8a7ab0 → var(--purple-quiet)، Literata,Georgia,serif
     → var(--font-display). بقیهٔ هگزها (سبز/تیل میراث pricing و پله‌های بنفش)
     دست‌نخورده — فاز ۵.
   ============================================================================ */


/* ============================================================================
   §1 — PRICING (پورت عیناً از pricing.css)
   ============================================================================ */
.pricing-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 82px;
}
.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 46px;
  align-items: end;
  margin-bottom: 38px;
}
.pricing-hero-copy {
  max-width: 760px;
}
.pricing-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: #eaf9f1;
  color: #16815a;
  font-size: 11px;
  font-weight: 800;
}
.pricing-hero h1 {
  margin: 13px 0 12px;
  color: #173b49;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.lang-fa .pricing-hero h1 {
  letter-spacing: 0;
  line-height: 1.45;
}
.pricing-hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: #6a7b7d;
  font-size: 15px;
  line-height: 2;
}
.pricing-account-state {
  padding: 18px 19px;
  border: 1px solid #dde9e4;
  border-radius: 17px;
  background: linear-gradient(145deg, #f7fbf9, var(--gray-0));
  box-shadow: 0 10px 26px rgba(24, 66, 55, 0.05);
}
.pricing-state-label {
  display: block;
  color: #7d8c87;
  font-size: 10.5px;
  font-weight: 800;
}
.pricing-account-state strong {
  display: block;
  margin-top: 5px;
  color: #25463f;
  font-size: 16px;
}
.pricing-account-state p {
  margin: 5px 0 0;
  color: #72817c;
  font-size: 11.5px;
  line-height: 1.8;
}
.pricing-account-state a {
  display: inline-flex;
  margin-top: 10px;
  color: #137d58;
  font-size: 11.5px;
  font-weight: 800;
}
.pricing-access-notice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: -12px 0 30px;
  padding: 18px 20px;
  border: 1px solid #f0d8a4;
  border-radius: 17px;
  background: #fffaf0;
  box-shadow: 0 10px 26px rgba(104, 73, 20, 0.05);
}
.pricing-access-notice.is-trial_expired,
.pricing-access-notice.is-subscription_expired,
.pricing-access-notice.is-subscription_required {
  border-color: #ead6d6;
  background: #fff8f8;
}
.pricing-access-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff0c8;
  color: #8a6420;
  font-weight: 900;
}
.pricing-access-notice.is-trial_expired .pricing-access-icon,
.pricing-access-notice.is-subscription_expired .pricing-access-icon,
.pricing-access-notice.is-subscription_required .pricing-access-icon {
  background: #fbe8e8;
  color: #a34c4c;
}
.pricing-access-copy strong {
  display: block;
  color: #3f4d48;
  font-size: 15px;
}
.pricing-access-copy p {
  margin: 5px 0 0;
  color: #6d7874;
  font-size: 12px;
  line-height: 1.9;
}
.pricing-access-copy .pricing-access-detail {
  margin-top: 2px;
  font-size: 11px;
}
.pricing-access-copy a {
  display: inline-flex;
  margin-top: 10px;
  color: #137d58;
  font-size: 11.5px;
  font-weight: 800;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid #dfe8e4;
  border-radius: 20px;
  background: var(--gray-0);
  box-shadow: 0 10px 30px rgba(21, 58, 48, 0.055);
}
.pricing-card.featured {
  border-color: #66ca9e;
  box-shadow: 0 16px 38px rgba(28, 142, 93, 0.11);
}
.pricing-card.current {
  box-shadow: inset 0 0 0 1px #48ba8a, 0 16px 38px rgba(28, 142, 93, 0.1);
}
.pricing-card-topline {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pricing-plan-code {
  color: #93a09b;
  font: 700 10px/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: var(--radius-full);
  background: #e8f8ef;
  color: #167652;
  font-size: 9.5px;
  font-weight: 800;
}
.pricing-badge.current {
  background: #eaf4ff;
  color: #176894;
}
.pricing-card h2 {
  margin: 12px 0 6px;
  color: #243d45;
  font-size: 23px;
  line-height: 1.45;
}
.pricing-description {
  min-height: 58px;
  margin: 0;
  color: #74827e;
  font-size: 12px;
  line-height: 1.9;
}
.pricing-price {
  display: grid;
  gap: 4px;
  margin: 22px 0;
  padding: 19px 0;
  border-top: 1px solid #edf1ef;
  border-bottom: 1px solid #edf1ef;
}
.pricing-price strong {
  color: #143f4d;
  font-size: 27px;
  line-height: 1.2;
}
.pricing-price span {
  color: #83908c;
  font-size: 10.5px;
}
.pricing-price .pricing-derived-saving {
  margin-top: 5px;
  color: #167652;
  font-weight: 800;
}
.pricing-price .pricing-derived-equivalent {
  color: #60736c;
}
.pricing-features {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 0 0 24px;
  padding: 0;
  color: #50625d;
  font-size: 11.5px;
  line-height: 1.75;
}
.pricing-features li {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}
.pricing-features li span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f8ef;
  color: #16805a;
  font-size: 10px;
  font-weight: 900;
}
.pricing-card-action {
  margin-top: auto;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: #173e4d;
  color: var(--gray-0);
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
}
.pricing-card.featured .pricing-card-action:not(:disabled) {
  background: #18845d;
}
.pricing-card-action:disabled {
  cursor: not-allowed;
  background: #eef3f1;
  color: #84918c;
}
.pricing-card-action.is-current {
  background: #e7f6ee;
  color: #167554;
}
.pricing-note {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid #e2ebe7;
  border-radius: 15px;
  background: #f8fbfa;
}
.pricing-note > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6f5ef;
  color: #16815a;
  font: 800 13px/1 var(--font-display);
}
.pricing-note strong {
  display: block;
  color: #3b514a;
  font-size: 11.5px;
}
.pricing-note p {
  margin: 3px 0 0;
  color: #7a8984;
  font-size: 10.5px;
  line-height: 1.8;
}
.pricing-empty {
  padding: 42px;
  border: 1px dashed #bdd3ca;
  border-radius: 18px;
  text-align: center;
  background: #f8fbfa;
}
.pricing-empty strong {
  color: #355149;
}
.pricing-empty p {
  margin: 7px 0 0;
  color: #7a8884;
  font-size: 12px;
}
@media (max-width: 900px) {
  .pricing-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .pricing-account-state {
    max-width: 520px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-description {
    min-height: 0;
  }
}
@media (max-width: 760px) {
  .pricing-main {
    width: min(100% - 28px, 680px);
    padding: 38px 0 58px;
  }
  .pricing-hero {
    margin-bottom: 26px;
  }
  .pricing-hero h1 {
    font-size: 35px;
  }
  .pricing-card {
    padding: 21px;
    border-radius: 17px;
  }
  .pricing-price strong {
    font-size: 25px;
  }
}


/* ============================================================================
   §2 — HELP (پورت عیناً از help_public.css) — مشترک بین help_public و
   _help_content (که در help_app هم include می‌شود)
   ============================================================================ */
.help-page-landing {
  position: relative;
  padding: 48px 16px 80px;
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--purple-rgb), 0.06) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(var(--lime-rgb), 0.04) 0%, transparent 45%),
    linear-gradient(180deg, #faf9ff 0%, var(--gray-0) 60%); /* فاز ۵: #faf9ff توکنایز */
  min-height: 100vh;
  overflow: hidden;
}

.help-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.help-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.help-orb-1 {
  width: 320px;
  height: 320px;
  background: var(--landing-purple);
  top: -90px;
  inset-inline-start: -70px;
}
.help-orb-2 {
  width: 240px;
  height: 240px;
  background: var(--landing-lime);
  bottom: 12%;
  inset-inline-end: -50px;
  opacity: 0.18;
}

.help-card-landing {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 44px 48px 40px;
  border-radius: 28px;
  /* استایل‌های شیشه‌ای از ترکیب card + card-glass در dazzle.css گرفته می‌شود */
}

/* ----- هدر Help ----- */
.help-hero-new {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(var(--purple-rgb), 0.08);
}
.help-icon-shell {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(var(--purple-rgb), 0.09);
  color: var(--landing-purple);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(var(--purple-rgb), 0.08);
}
.help-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--landing-purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-fa .help-kicker {
  letter-spacing: 0;
  text-transform: none;
}
.help-hero-new h1 {
  margin: 0 0 10px;
  color: var(--landing-ink);
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.lang-fa .help-hero-new h1 {
  line-height: 1.55;
  letter-spacing: 0;
}
.help-hero-new p {
  margin: 0;
  color: var(--purple-wash);
  font-size: 13.5px;
  line-height: 1.85;
  max-width: 620px;
}

/* ----- FAQ ----- */
.help-faq-new {
  margin-bottom: 36px;
}
.help-faq-head-new {
  margin-bottom: 18px;
}
.help-faq-head-new h2 {
  margin: 0;
  color: var(--landing-ink);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.lang-fa .help-faq-head-new h2 {
  letter-spacing: 0;
}
.help-faq-list-new {
  display: grid;
  gap: 10px;
}
.help-faq-item-new {
  padding: 18px 22px;
  border: 1px solid rgba(var(--purple-rgb), 0.12);
  border-radius: 14px;
  background: var(--gray-0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.help-faq-item-new[open] {
  border-color: rgba(var(--purple-rgb), 0.30);
  box-shadow: 0 8px 24px rgba(var(--purple-rgb), 0.08);
}
.help-faq-item-new summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--landing-ink);
  line-height: 1.5;
}
.help-faq-item-new summary::-webkit-details-marker {
  display: none;
}
.help-faq-plus-new {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--purple-rgb), 0.08);
  color: var(--landing-purple);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.help-faq-item-new[open] .help-faq-plus-new {
  transform: rotate(45deg);
  background: var(--landing-purple);
  color: var(--gray-0);
}
.help-faq-item-new p {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--purple-rgb), 0.08);
  color: var(--purple-muted);
  font-size: 13px;
  line-height: 1.95;
  max-width: 680px;
}

/* ----- کارت تماس ----- */
.help-contact-new {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(var(--purple-rgb), 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--purple-rgb), 0.06), rgba(var(--lime-rgb), 0.04));
}
.help-contact-icon-new {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gray-0);
  color: var(--landing-purple);
  display: grid;
  place-items: center;
  box-shadow: 0 5px 14px rgba(var(--purple-rgb), 0.08);
}
.help-contact-icon-new svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.help-contact-kicker {
  display: block;
  color: var(--landing-purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.lang-fa .help-contact-kicker {
  letter-spacing: 0;
  text-transform: none;
}
.help-contact-copy-new h2 {
  margin: 0 0 4px;
  color: var(--landing-ink);
  font-size: 16px;
  font-weight: 900;
}
.help-contact-copy-new p {
  margin: 0;
  color: var(--purple-wash);
  font-size: 12px;
  line-height: 1.7;
  max-width: 520px;
}

@media (max-width: 720px) {
  .help-page-landing {
    padding: 28px 12px 60px;
  }
  .help-card-landing {
    padding: 30px 22px 26px;
    border-radius: 22px;
  }
  .help-hero-new {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 24px;
  }
  .help-icon-shell {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .help-icon-shell svg {
    width: 24px;
    height: 24px;
  }
  .help-hero-new h1 {
    font-size: 22px;
  }
  .help-hero-new p {
    font-size: 12.5px;
  }
  .help-faq-new {
    margin-bottom: 28px;
  }
  .help-faq-head-new h2 {
    font-size: 18px;
  }
  .help-faq-item-new {
    padding: 16px 18px;
  }
  .help-faq-item-new summary {
    font-size: 13px;
  }
  .help-faq-item-new p {
    font-size: 12px;
  }
  .help-contact-new {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 16px;
  }
  .help-contact-icon-new {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .help-contact-new .btn {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 6px;
  }
}


/* ============================================================================
   §3 — HELP-APP (پورت عیناً از help_app.css) — همان اینکلود help در شل اپ
   ============================================================================ */
.help-page-app-new {
  max-width: 860px;
  margin: 0 auto;
}
.help-page-app-new .help-hero-new {
  /* overrideهای جزئی برای فضای اپ */
  margin-bottom: 32px;
}


/* ============================================================================
   §4 — ABOUT (پورت عیناً از about.css)
   ============================================================================ */
.about-page-landing {
  position: relative;
  padding: 48px 16px 80px;
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--purple-rgb), 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #faf9ff 0%, var(--gray-0) 60%); /* فاز ۵: #faf9ff توکنایز */
  min-height: 100vh;
  overflow: hidden;
}

.about-card {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 42px 44px 36px;
  border-radius: 28px;
}

/* ===== هدر (هماهنگ با help و contact) ===== */
.about-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(var(--purple-rgb), 0.08);
}
.about-icon-shell {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(var(--purple-rgb), 0.09);
  color: var(--landing-purple);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(var(--purple-rgb), 0.08);
}
.about-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--landing-purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-fa .about-kicker {
  letter-spacing: 0;
  text-transform: none;
}
.about-head h1 {
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.lang-fa .about-head h1 {
  line-height: 1.55;
  letter-spacing: 0;
}
.about-head p {
  margin: 10px 0 0;
  color: var(--purple-wash);
  font-size: 13.5px;
  line-height: 1.85;
  max-width: 620px;
}

/* ===== بخش‌ها ===== */
.about-section {
  margin-bottom: 40px;
}
.about-section:last-of-type {
  margin-bottom: 0;
}
.about-section h2 {
  margin: 0 0 14px;
  color: var(--landing-ink);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
}
.about-section p {
  margin: 0 0 12px;
  color: var(--purple-muted);
  font-size: 14px;
  line-height: 2.05;
}
.about-section p:last-child {
  margin-bottom: 0;
}

/* ===== گرید ارزش‌ها ===== */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.about-value-item {
  padding: 22px 20px;
  border: 1px solid rgba(var(--purple-rgb), 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(var(--purple-rgb), 0.04), rgba(var(--purple-rgb), 0.02));
}
.about-value-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(var(--purple-rgb), 0.10);
  color: var(--landing-purple);
  font: 800 11px/1 var(--font-display);
  margin-bottom: 14px;
}
.about-value-item h3 {
  margin: 0 0 8px;
  color: var(--landing-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}
.about-value-item p {
  margin: 0;
  color: var(--purple-wash);
  font-size: 12.5px;
  line-height: 1.85;
}

/* ===== گرید میکرولرنینگ ===== */
.about-micro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.about-micro-item {
  padding: 22px 20px;
  border: 1px solid rgba(var(--purple-rgb), 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(var(--purple-rgb), 0.04), rgba(var(--purple-rgb), 0.02));
}
.about-micro-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(var(--purple-rgb), 0.10);
  font-size: 22px;
  margin-bottom: 14px;
}
.about-micro-item h3 {
  margin: 0 0 8px;
  color: var(--landing-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}
.about-micro-item p {
  margin: 0;
  color: var(--purple-wash);
  font-size: 12.5px;
  line-height: 1.85;
}

@media (max-width: 720px) {
  .about-page-landing {
    padding: 28px 12px 60px;
  }
  .about-card {
    padding: 28px 22px 24px;
    border-radius: 22px;
  }
  .about-head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }
  .about-icon-shell {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .about-icon-shell svg {
    width: 24px;
    height: 24px;
  }
  .about-head h1 {
    font-size: 22px;
  }
  .about-head p {
    font-size: 12.5px;
  }
  .about-section {
    margin-bottom: 30px;
  }
  .about-section h2 {
    font-size: 18px;
  }
  .about-section p {
    font-size: 13px;
  }
  .about-values-grid,
  .about-micro-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }
  .about-value-item,
  .about-micro-item {
    padding: 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-card {
    transition: none;
  }
}


/* ============================================================================
   §5 — RULES (پورت عیناً از rules.css)
   ============================================================================ */
.rules-page-landing {
  position: relative;
  padding: 48px 16px 80px;
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--purple-rgb), 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(var(--lime-rgb), 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #faf9ff 0%, var(--gray-0) 60%); /* فاز ۵: #faf9ff توکنایز */
  min-height: 100vh;
  overflow: hidden;
}

/* ----- المان‌های تزئینی (اورب‌ها) ----- */
.rules-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.rules-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.rules-orb-1 {
  width: 340px;
  height: 340px;
  background: var(--landing-purple);
  top: -100px;
  inset-inline-start: -80px;
}
.rules-orb-2 {
  width: 260px;
  height: 260px;
  background: var(--landing-lime);
  bottom: 10%;
  inset-inline-end: -60px;
  opacity: 0.18;
}

/* ----- کارت اصلی (بقیه از card + card-glass در dazzle.css) ----- */
.rules-card {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 42px 44px 36px;
  border-radius: 28px;
}

/* ----- برند (مختص rules) ----- */
.rules-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-decoration: none;
  width: max-content;
}
.rules-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--landing-purple), var(--landing-purple-dark));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(var(--purple-rgb), 0.22);
}
.rules-brand-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}
.rules-brand-text {
  font: 800 22px/1 var(--font-display);
  color: var(--landing-purple-dark);
}

/* ----- هدر ----- */
.rules-head-new {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}
.rules-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(var(--purple-rgb), 0.09);
  color: var(--landing-purple);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(var(--purple-rgb), 0.08);
}
.rules-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--landing-purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-fa .rules-kicker {
  letter-spacing: 0;
  text-transform: none;
}
.rules-head-new h1 {
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.lang-fa .rules-head-new h1 {
  line-height: 1.55;
  letter-spacing: 0;
}
.rules-head-new p {
  margin: 10px 0 0;
  color: var(--purple-wash);
  font-size: 13.5px;
  line-height: 1.85;
  max-width: 620px;
}

/* ----- نوار نسخه و تاریخ ----- */
.rules-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--purple-rgb), 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(var(--purple-rgb), 0.06), rgba(var(--purple-rgb), 0.045));
}
.rules-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rules-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--landing-purple);
  flex-shrink: 0;
}
.rules-meta-item small {
  color: var(--purple-quiet);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.rules-meta-item strong {
  color: var(--landing-ink);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
.rules-meta-divider {
  width: 1px;
  height: 20px;
  background: rgba(var(--purple-rgb), 0.16);
  margin: 0 4px;
}

/* ----- محتوای شرایط (اسکرول‌دار) ----- */
.rules-document-new {
  padding: 28px 32px;
  border: 1px solid rgba(var(--purple-rgb), 0.12);
  border-radius: 18px;
  background: var(--gray-0);
  max-height: 60dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.rules-document-new::-webkit-scrollbar {
  width: 8px;
}
.rules-document-new::-webkit-scrollbar-thumb {
  background: rgba(var(--purple-rgb), 0.18);
  border-radius: var(--radius-full);
}
.rules-document-new h2 {
  position: relative;
  margin: 26px 0 12px;
  padding: 0 0 10px;
  font-size: 17px;
  line-height: 1.5;
  color: #2a1a40; /* فاز ۵: --gray-800 */
  font-weight: 800;
  border-bottom: 2px solid rgba(var(--purple-rgb), 0.12);
}
.rules-document-new h2:first-child {
  margin-top: 0;
}
.rules-document-new h3 {
  margin: 20px 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #3d2f5e; /* فاز ۵: --purple-800 */
  font-weight: 800;
}
.rules-document-new p,
.rules-document-new li {
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--purple-muted);
}
.rules-document-new p {
  margin: 0 0 14px;
}
.rules-document-new ul,
.rules-document-new ol {
  margin: 10px 0 18px;
  padding-inline-start: 22px;
}
.rules-document-new li + li {
  margin-top: 6px;
}
.rules-document-new blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-inline-start: 3px solid var(--landing-purple);
  background: rgba(var(--purple-rgb), 0.05);
  border-radius: 4px 10px 10px 4px;
  color: #3d2f5e;
  font-style: italic;
}
.lang-fa .rules-document-new blockquote {
  border-radius: 10px 4px 4px 10px;
  font-style: normal;
}
.rules-document-new a {
  color: var(--landing-purple-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rules-document-new a:hover {
  color: var(--landing-purple);
}
.rules-document-new hr {
  border: 0;
  border-top: 1px solid rgba(var(--purple-rgb), 0.12);
  margin: 26px 0;
}
.rules-document-new table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 12.5px;
}
.rules-document-new th,
.rules-document-new td {
  border: 1px solid #e5defc; /* فاز ۵: تینت بنفش توکنایز */
  padding: 10px 12px;
  text-align: start;
}
.rules-document-new th {
  background: #f7f4ff; /* فاز ۵: --landing-purple-light خانواده */
  color: #3d2f5e;
  font-weight: 800;
}
.rules-document-new code {
  direction: ltr;
  display: inline-block;
  padding: 2px 8px;
  background: rgba(var(--purple-rgb), 0.08);
  color: #3d2f5e;
  border-radius: 6px;
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.rules-document-new pre {
  direction: ltr;
  text-align: left;
  overflow: auto;
  padding: 14px 16px;
  border-radius: 10px;
  background: #1a1028; /* == --landing-ink */
  color: #f3f0ff; /* == --lavender-50 */
  font-size: 11.5px;
  line-height: 1.7;
}

/* ----- Fallback (وقتی محتوای HTML وجود ندارد) ----- */
.rules-sections-fallback {
  padding: 24px;
  border: 1px solid rgba(var(--purple-rgb), 0.12);
  border-radius: 18px;
  background: var(--gray-0);
}
.rules-section {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(var(--purple-rgb), 0.08);
}
.rules-section:last-child {
  border-bottom: 0;
}
.rules-section-number {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(var(--purple-rgb), 0.10);
  color: var(--landing-purple);
  display: grid;
  place-items: center;
  font: 800 11px/1 var(--font-display);
  letter-spacing: 0.02em;
}
.rules-section h2 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
  color: #2a1a40;
  font-weight: 800;
}
.rules-section p {
  margin: 0;
  font-size: 13px;
  line-height: 2;
  color: var(--purple-muted);
}

/* ----- کارت تماس ----- */
.rules-contact-new {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(var(--purple-rgb), 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--purple-rgb), 0.06), rgba(var(--lime-rgb), 0.04));
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.rules-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--gray-0);
  color: var(--landing-purple);
  display: grid;
  place-items: center;
  box-shadow: 0 5px 14px rgba(var(--purple-rgb), 0.08);
}
.rules-contact-icon svg {
  width: 22px;
  height: 22px;
}
.rules-contact-copy strong {
  display: block;
  color: var(--landing-ink);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 3px;
}
.rules-contact-copy p {
  margin: 0;
  color: var(--purple-wash);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ============================================================
   Responsive (فقط مختص rules)
   ============================================================ */
@media (max-width: 720px) {
  .rules-page-landing {
    padding: 24px 12px 60px;
  }
  .rules-card {
    padding: 28px 22px 24px;
    border-radius: 22px;
  }
  .rules-brand {
    margin-bottom: 16px;
  }
  .rules-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .rules-brand-icon img {
    width: 22px;
    height: 22px;
  }
  .rules-brand-text {
    font-size: 20px;
  }
  .rules-head-new {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 18px;
  }
  .rules-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .rules-icon svg {
    width: 24px;
    height: 24px;
  }
  .rules-head-new h1 {
    font-size: 22px;
  }
  .rules-head-new p {
    font-size: 12.5px;
  }
  .rules-meta {
    padding: 12px 14px;
    gap: 10px;
  }
  .rules-meta-divider {
    display: none;
  }
  .rules-document-new {
    padding: 20px;
    max-height: 55dvh;
  }
  .rules-document-new h2 {
    font-size: 15.5px;
  }
  .rules-document-new p,
  .rules-document-new li {
    font-size: 12.5px;
  }
  .rules-section {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }
  .rules-section-number {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }
  .rules-section h2 {
    font-size: 13.5px;
  }
  .rules-section p {
    font-size: 12px;
  }
  .rules-contact-new {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .rules-contact-icon {
    width: 40px;
    height: 40px;
  }
  .rules-contact-new .btn {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 4px;
  }
}

@media (max-width: 420px) {
  .rules-card {
    padding: 24px 16px 22px;
  }
  .rules-head-new h1 {
    font-size: 20px;
  }
  .rules-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .rules-document-new {
    padding: 16px;
  }
  .rules-document-new table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rules-card {
    animation: none;
  }
}

/* ============================================================================
   §6 — PAYMENT RESULT
   ============================================================================ */
.pricing-card-action-form {
  margin-top: auto;
}
.pricing-card-action-form .pricing-card-action {
  width: 100%;
  margin-top: 0;
  cursor: pointer;
}
.payment-result-main {
  width: min(760px, calc(100% - 40px));
  min-height: 62vh;
  margin: 0 auto;
  padding: 72px 0 88px;
  display: grid;
  place-items: start center;
}
.payment-result-card {
  width: 100%;
  padding: 34px;
  border: 1px solid #e0e9e5;
  border-radius: 22px;
  background: var(--gray-0);
  box-shadow: 0 18px 50px rgba(21, 58, 48, 0.08);
  text-align: center;
}
.payment-result-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1d6;
  color: #90671f;
  font-size: 28px;
  font-weight: 900;
}
.payment-result-card.is-success .payment-result-icon {
  background: #e7f7ef;
  color: #167554;
}
.payment-result-card.is-canceled .payment-result-icon,
.payment-result-card.is-failed .payment-result-icon,
.payment-result-card.is-not_found .payment-result-icon {
  background: #fbe8e8;
  color: #a34c4c;
}
.payment-result-card h1 {
  margin: 14px 0 10px;
  color: #243d45;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.4;
}
.payment-result-lead {
  max-width: 600px;
  margin: 0 auto;
  color: #6d7d78;
  font-size: 13.5px;
  line-height: 2;
}
.payment-result-details {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  border: 1px solid #e6eeea;
  border-radius: 16px;
  overflow: hidden;
  text-align: start;
}
.payment-result-details > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.7fr);
  gap: 18px;
  padding: 13px 16px;
  background: #fbfdfc;
}
.payment-result-details > div + div {
  border-top: 1px solid #e9efec;
}
.payment-result-details dt {
  color: #7b8984;
  font-size: 11px;
  font-weight: 800;
}
.payment-result-details dd {
  margin: 0;
  color: #334b43;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.payment-result-hint {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8e9;
  color: #806329;
  font-size: 11.5px;
  line-height: 1.9;
}
.payment-result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
@media (max-width: 600px) {
  .payment-result-main {
    width: min(100% - 28px, 760px);
    padding: 42px 0 64px;
  }
  .payment-result-card {
    padding: 26px 18px;
  }
  .payment-result-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .payment-result-actions .btn {
    width: 100%;
  }
}

/* Multi-gateway checkout */
.payment-provider-field {
  display: grid;
  gap: 7px;
  margin: 0 0 10px;
}
.payment-provider-field > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
}
.payment-provider-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-0);
  color: var(--gray-900);
  font: inherit;
}
.payment-gateway-redirect-main {
  width: min(560px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 48px 0;
}
.payment-gateway-redirect-card {
  width: 100%;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: var(--gray-0);
  box-shadow: 0 18px 50px rgba(21, 58, 48, 0.08);
}
.payment-gateway-redirect-card h1 {
  margin: 14px 0 8px;
  font-size: 22px;
}
.payment-gateway-redirect-card p {
  margin: 0 0 20px;
  color: var(--gray-600);
}
.payment-gateway-redirect-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary, #7c58fd);
  border-radius: 50%;
  animation: payment-gateway-spin 0.8s linear infinite;
}
@keyframes payment-gateway-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .payment-gateway-redirect-spinner { animation: none; }
}

/* Help center: visual FAQ hero + two focused next actions. */
.help-hero-new {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 28px;
  align-items: center;
}
.help-hero-copy-new { min-width: 0; }
.help-hero-visual-new {
  display: grid;
  place-items: center;
  min-width: 0;
}
.help-hero-visual-new img {
  display: block;
  width: min(100%, 230px);
  height: auto;
  object-fit: contain;
}
.help-section-kicker-new {
  display: block;
  margin-bottom: 5px;
  color: var(--landing-purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.lang-fa .help-section-kicker-new {
  letter-spacing: 0;
  text-transform: none;
}
.help-actions-new { margin-top: 4px; }
.help-action-grid-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.help-action-card-new {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(var(--purple-rgb), .11);
  border-radius: 16px;
  background: var(--gray-0);
  color: var(--landing-ink);
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(var(--purple-rgb), .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.help-action-card-new:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--purple-rgb), .25);
  box-shadow: 0 9px 24px rgba(var(--purple-rgb), .08);
}
.help-action-card-new:focus-visible {
  outline: 3px solid rgba(var(--purple-rgb), .28);
  outline-offset: 2px;
}
.help-action-visual-new {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(var(--purple-rgb), .035);
}
.help-action-visual-new img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.help-action-copy-new {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.help-action-copy-new strong {
  color: var(--landing-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
}
.help-action-copy-new small {
  color: var(--purple-muted);
  font-size: 11.5px;
  line-height: 1.7;
}
.help-action-arrow-new {
  color: var(--landing-purple);
  font-size: 20px;
  line-height: 1;
}
.lang-fa .help-action-arrow-new { transform: rotate(180deg); }

@media (max-width: 720px) {
  .help-hero-new {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }
  .help-hero-visual-new {
    order: -1;
  }
  .help-hero-visual-new img {
    width: min(72vw, 230px);
  }
  .help-hero-new p {
    margin-inline: auto;
  }
  .help-action-grid-new {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .help-action-card-new {
    grid-template-columns: 62px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 11px 12px;
  }
  .help-action-visual-new {
    width: 62px;
    height: 62px;
  }
}
