/* ================================================================
   ایتلا — استایل اصلی سایت
   تم: سبز طلایی — راست‌به‌چپ — موبایل‌فرست
   ================================================================ */

/* ---------------- فونت ---------------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------------- توکن‌های طراحی ---------------- */
:root {
  --green:       oklch(0.30 0.07 152);
  --green-deep:  oklch(0.22 0.05 152);
  --green-2:     oklch(0.38 0.09 152);
  --green-soft:  oklch(0.95 0.02 152);
  --green-wash:  oklch(0.98 0.01 152);
  --green-text:  oklch(0.4 0.09 152);

  --gold:        oklch(0.74 0.13 83);
  --gold-deep:   oklch(0.6 0.13 75);
  --gold-ink:    oklch(0.2 0.04 90);
  --gold-soft:   oklch(0.93 0.03 83);
  --gold-wash:   oklch(0.97 0.015 90);
  --gold-text:   oklch(0.5 0.1 78);

  --bg:          #FFFFFF;
  --surface:     #FFFFFF;
  --surface-2:   oklch(0.98 0.005 150);
  --ink:         oklch(0.2 0.01 150);
  --ink-2:       oklch(0.45 0.01 150);
  --ink-3:       oklch(0.55 0.01 150);

  --ok:          oklch(0.5 0.14 152);
  --ok-soft:     oklch(0.95 0.03 152);
  --danger:      oklch(0.55 0.15 25);
  --danger-soft: oklch(0.95 0.03 25);
  --amber:       oklch(0.55 0.11 60);
  --amber-soft:  oklch(0.95 0.03 83);

  --line:        oklch(0.9 0.01 150);
  --line-soft:   oklch(0.94 0.005 150);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 152 / .06);
  --shadow:    0 10px 26px oklch(0.2 0.05 152 / .09);
  --shadow-lg: 0 20px 44px oklch(0.2 0.05 152 / .16);
  --shadow-gold: 0 10px 28px oklch(0.7 0.13 83 / .3);

  --wrap: 80vw;
  --wrap-narrow: 80vw;
  --gut: 20px;
}

/* ---------------- پایه ---------------- */
/* min-width: 0 خنثی‌کننده باگ معروف سرریز افقی در آیتم‌های flex/grid است؛
   بدون آن متن‌های طولانی بدون فاصله (مثل «سرمایه‌گذاری») می‌توانند
   عرض ستون را از عرض صفحه بیشتر کنند. */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }

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

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, 'Iranian Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-text); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--green); }

h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 800; line-height: 1.5; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); }
h3 { font-size: clamp(1.05rem, 2.1vw, 1.2rem); }
p  { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-sm { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--gut); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* ---------------- دکمه‌ها ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.7em;
  font: inherit; font-weight: 700; line-height: 1.2;
  border: 1.5px solid transparent;
  border-radius: var(--pill);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--gold-ink);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { color: var(--gold-ink); box-shadow: 0 14px 36px oklch(0.7 0.13 83 / .4); }

.btn-green {
  background: linear-gradient(135deg, var(--green-2) 0%, var(--green-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 26px oklch(0.25 0.05 152 / .28);
}
.btn-green:hover { color: #fff; box-shadow: 0 14px 34px oklch(0.25 0.05 152 / .36); }

.btn-outline {
  background: transparent; color: var(--green); border-color: var(--green);
}
.btn-outline:hover { background: var(--green-soft); color: var(--green-deep); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); border-radius: var(--r); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-text); }

.btn-lg { padding: .95em 2.1em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(-4px); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ================================================================
   هدر — کپسول شناور
   ================================================================ */
.site-header {
  position: sticky; top: 10px; z-index: 100;
  width: 80vw;
  margin: 10px auto 0;
}

.header-inner {
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px;
  background: linear-gradient(135deg, oklch(0.42 0.09 152 / .55), oklch(0.26 0.06 150 / .55));
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid oklch(1 0 0 / .16);
  border-radius: var(--pill);
  padding: 8px;
  min-height: 56px;
  box-shadow: 0 12px 32px oklch(0.22 0.05 152 / .22), inset 0 1px 0 oklch(1 0 0 / .12);
}

.header-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  background: oklch(1 0 0 / .14); border: none; border-radius: 50%;
  color: #fff; cursor: default;
  filter: drop-shadow(0 1px 3px oklch(0 0 0 / .35));
}
.header-icon-btn svg { width: 18px; height: 18px; }

.brand { display: flex; align-items: center; justify-self: center; gap: 8px; min-width: 0; }
.brand img { max-height: 34px; width: auto; filter: drop-shadow(0 1px 3px oklch(0 0 0 / .3)); }
.brand-text { font-size: 1.05rem; font-weight: 800; color: #fff; white-space: nowrap; text-shadow: 0 1px 4px oklch(0 0 0 / .35); }

.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; flex-shrink: 0;
  background: oklch(1 0 0 / .14); border: none; border-radius: 50%; cursor: pointer;
  filter: drop-shadow(0 1px 3px oklch(0 0 0 / .35));
}
.nav-toggle svg { width: 19px; height: 19px; color: #fff; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

/* --- کشوی ناوبری --- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: oklch(0.1 0.02 152 / .4);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.main-nav {
  position: absolute; inset-inline: 0; top: calc(100% + 10px); z-index: 91;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
  transition: max-height .28s ease, opacity .2s ease;
}
.main-nav.open { max-height: 520px; opacity: 1; pointer-events: auto; overflow: visible; }

.main-nav ul { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav a {
  display: block; padding: .85em .9em;
  color: var(--ink); font-weight: 700; font-size: .96rem;
  border-radius: var(--r);
  transition: background .18s ease, color .18s ease;
}
.main-nav a:hover { background: var(--green-soft); color: var(--green); }
.main-nav a.active { color: var(--green); background: var(--green-soft); }

@media (min-width: 720px) {
  .header-inner { padding: 8px 10px; }
  .brand-text { font-size: 1.1rem; }
}

/* ================================================================
   بنر مناسبتی
   ================================================================ */
.promo-banner {
  display: flex; align-items: center; justify-content: center;
  width: 100%; overflow: hidden; height: var(--banner-h, 180px);
}
.promo-banner img { height: 100%; width: auto; max-width: none; display: block; }

@media (max-width: 639px) {
  .promo-banner { height: var(--banner-h-mobile, var(--banner-h, 180px)); }
}

/* ================================================================
   هیرو
   ================================================================ */
.hero { padding: 0 0 12px; overflow: hidden; }

.hero-media {
  width: 100vw; position: relative; left: 50%; transform: translateX(-50%);
  height: var(--hero-img-h, 280px);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-media img { height: 100%; width: auto; max-width: none; display: block; }
@media (max-width: 639px) {
  .hero-media { height: var(--hero-img-h-mobile, var(--hero-img-h, 280px)); }
}

.hero-copy {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 26px 20px 4px; max-width: var(--wrap-narrow); margin-inline: auto;
}
.hero-copy h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0; }
.hero-copy .hero-sub { font-size: .95rem; color: var(--ink-2); line-height: 1.9; margin: 0; max-width: 46ch; }

@media (max-width: 639px) {
  /* در موبایل متن هیرو تقریباً تمام‌عرض می‌شود تا تیتر کمتر دوخطی شود */
  .hero-copy { max-width: none; width: calc(100vw - 16px); padding-inline: 12px; }
  .hero-copy h1 { font-size: clamp(1.2rem, 5.4vw, 1.5rem); }
}

.hero-cta-split {
  margin-top: 8px; display: flex; align-items: stretch;
  border-radius: var(--pill); overflow: hidden;
  background: linear-gradient(to left, var(--green-2), var(--green-deep));
  box-shadow: 0 12px 28px oklch(0.25 0.05 152 / .3);
  min-width: 270px;
}
.hero-cta-split a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 14px 22px; color: #fff; font-weight: 700; font-size: .95rem;
}
.hero-cta-split .div { width: 1px; background: oklch(1 0 0 / .3); flex: none; margin: 10px 0; }

/* --- کپسول قیمت لحظه‌ای --- */
.price-pill {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 16px; padding: 10px 20px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--pill); box-shadow: var(--shadow-sm);
  font-size: .86rem;
}
.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; color: var(--ok);
}
.live-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 0 oklch(0.5 0.14 152 / .55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.5 0.14 152 / .55); }
  70%  { box-shadow: 0 0 0 8px oklch(0.5 0.14 152 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.5 0.14 152 / 0); }
}
.price-pill-value { font-weight: 800; color: var(--ink); }
.price-pill-value .unit { font-weight: 600; color: var(--ink-3); font-size: .85em; margin-inline-start: 2px; }
.price-pill-value.flash { animation: priceFlash .9s ease; }
@keyframes priceFlash {
  0%   { color: var(--gold-text); }
  35%  { color: var(--gold-text); }
  100% { color: var(--ink); }
}
.price-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); }
.price-skeleton {
  display: inline-block; width: 90px; height: 1em;
  background: linear-gradient(90deg, var(--line-soft) 25%, #fff 50%, var(--line-soft) 75%);
  background-size: 200% 100%; border-radius: 6px;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 639px) {
  /* در موبایل کپسول قیمت تقریباً تمام‌عرض می‌شود تا متن‌ها دوخطی نشوند */
  .price-pill {
    width: calc(100vw - 16px);
    padding-inline: 12px;
    gap: 8px;
  }
  .price-pill-value,
  .price-meta { white-space: nowrap; }
}

/* ================================================================
   بخش‌ها
   ================================================================ */
.section { padding: clamp(38px, 6vw, 64px) 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--green-deep); color: #fff; }

.section-head { text-align: center; max-width: var(--wrap-narrow); margin: 0 auto clamp(22px, 3.5vw, 36px); }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--ink-2); margin: 0; font-size: .92rem; }

.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: oklch(0.92 0.02 150 / .8); }

.section-head .kicker {
  display: block; margin-bottom: .5em;
  color: var(--gold-text); font-weight: 700; font-size: .82rem; letter-spacing: .02em;
}

/* ---------------- نمادهای اعتماد ---------------- */
.trust-bg-image {
  width: 100%; overflow: hidden; height: var(--trust-bg-h, 200px);
  display: flex; align-items: center; justify-content: center;
}
.trust-bg-image img { height: 100%; width: auto; max-width: none; display: block; }
@media (max-width: 639px) {
  .trust-bg-image { height: var(--trust-bg-h-mobile, var(--trust-bg-h, 200px)); }
}

/* وقتی تصویر بالای بخش تنظیم شده: کادرها نیمی از ارتفاع تصویر (۵۰٪) را از پایین می‌پوشانند */
.trust-section.has-bg .trust-grid-wrap {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--trust-bg-h, 200px) / -2);
}
@media (max-width: 639px) {
  .trust-section.has-bg .trust-grid-wrap {
    margin-top: calc(var(--trust-bg-h-mobile, var(--trust-bg-h, 200px)) / -2);
  }
}

.trust-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr; /* موبایل: کادرها زیر هم */
  max-width: var(--wrap-narrow); margin-inline: auto;
}
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(380px, 1fr)); max-width: 60vw; } /* دسکتاپ: دوتایی وسط‌چین، عرض 60٪ */
}

.trust-card {
  display: flex; align-items: center; text-align: right; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-soft); }

.trust-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--green-soft);
  border-radius: 12px; color: var(--green);
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-card img.trust-badge-img { max-height: 42px; width: auto; flex-shrink: 0; }

.trust-card h3 { font-size: .95rem; margin: 0 0 .2em; }
.trust-card p { font-size: .82rem; color: var(--ink-2); margin: 0; line-height: 1.7; }

/* ---------------- نوار آمار ---------------- */
.stats-bar {
  max-width: 60vw; margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--green); border-radius: var(--r-xl);
  padding: 14px 16px; gap: 10px;
}
.stats-bar .stat { text-align: center; display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.stats-bar .stat:not(:first-child) { border-inline-start: 1px solid oklch(1 0 0 / .18); }
.stats-bar .stat .num { font-size: clamp(1.1rem, 3.4vw, 1.5rem); font-weight: 800; color: var(--gold-soft); }
.stats-bar .stat .lbl { font-size: .74rem; color: oklch(0.93 0.02 150 / .85); line-height: 1.6; }

@media (max-width: 639px) {
  /* در موبایل نوار آمار از پدینگ wrap بیرون می‌زند و تا ۸px مانده به لبه صفحه امتداد می‌یابد */
  .stats-bar {
    max-width: none;
    width: calc(100vw - 16px);
    margin-inline: calc(50% - 50vw + 8px);
  }
}

/* ---------------- تیزر سرمایه‌گذاری + ماشین‌حساب ---------------- */
.invest-teaser {
  max-width: 60vw; margin-inline: auto;
  background: linear-gradient(160deg, var(--gold-wash), var(--gold-soft));
  border-radius: var(--r-xl);
  padding: clamp(22px, 4vw, 34px);
  display: flex; flex-direction: column; gap: 18px;
}
.invest-teaser .kicker { color: var(--gold-text); font-weight: 700; font-size: .8rem; }
.invest-teaser p.lead { margin: 0; color: oklch(0.32 0.04 90); font-size: .95rem; line-height: 1.9; }

.invest-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.invest-image-col { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 12px; }

.invest-image {
  flex: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px dashed oklch(0.32 0.04 90 / .35);
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 639px) {
  .invest-image { flex: none; height: var(--invest-img-h-mobile, 180px); }
}
.invest-image img { height: 100%; width: auto; max-width: none; display: block; }
.invest-image-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: oklch(0.32 0.04 90 / .55); font-size: .78rem;
}
.invest-image-placeholder svg { width: 30px; height: 30px; }

@media (max-width: 639px) {
  /* در موبایل تیزر از پدینگ wrap بیرون می‌زند و تا ۸px مانده به لبه صفحه امتداد می‌یابد */
  .invest-teaser {
    max-width: none;
    width: calc(100vw - 16px);
    margin-inline: calc(50% - 50vw + 8px);
  }
  .invest-row { flex-direction: column; }
  .invest-image-col { order: -1; min-width: 0; }
  .calc-card { min-width: 0; }
}

.invest-more-link { text-align: left; }

.calc-card {
  background: #fff; border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--shadow); flex: 1; min-width: 260px;
  display: flex; flex-direction: column; gap: 14px;
}
.calc-card .calc-title { font-size: .84rem; font-weight: 700; color: var(--green); }
.calc-row { display: flex; flex-direction: column; gap: 8px; font-size: .8rem; color: var(--ink-2); }
.calc-row .between { display: flex; justify-content: space-between; align-items: baseline; }
.calc-row .between b { font-weight: 700; color: var(--green); }
.calc-slider { width: 100%; accent-color: var(--green); }

.calc-tabs { display: flex; gap: 6px; background: var(--surface-2); border-radius: var(--r-sm); padding: 4px; }
.calc-tabs button {
  flex: 1; border: none; background: transparent; color: var(--ink-3);
  padding: 8px 0; border-radius: 8px; font: 700 .78rem 'Vazirmatn', sans-serif; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.calc-tabs button.active { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }

.calc-result { text-align: center; padding: 10px 0 2px; }
.calc-result .rate-note { font-size: .72rem; color: var(--ink-3); margin-bottom: 6px; }
.calc-result .withdraw-note { font-size: .72rem; color: var(--ink-3); margin-bottom: 4px; }
.calc-result .total { font-size: 1.5rem; font-weight: 800; color: var(--gold-text); }
.calc-result .profit { font-size: .82rem; font-weight: 700; color: var(--ok); margin-top: 6px; }

.calc-card .btn { width: 100%; }

/* ---------------- خرید/فروش در چند ثانیه ---------------- */
.speed-panel {
  max-width: var(--wrap-narrow); margin-inline: auto; text-align: center;
}
.speed-image {
  width: 100%; overflow: hidden; height: var(--speed-img-h, 160px);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.speed-image img, .speed-image video { height: 100%; width: auto; max-width: none; display: block; }
@media (max-width: 639px) {
  .speed-image { height: var(--speed-img-h-mobile, var(--speed-img-h, 160px)); }
}
.speed-panel p { font-size: .92rem; color: var(--ink-2); max-width: 48ch; margin-inline: auto; }

/* ---------------- تماس سریع ---------------- */
.quick-contact {
  max-width: var(--wrap-narrow); margin-inline: auto;
  background: var(--surface-2); border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 34px) 22px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; text-align: center;
}
.quick-contact .item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1 1 160px; max-width: 220px; }
.quick-contact .ico {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.quick-contact .ico svg { width: 20px; height: 20px; }
.quick-contact .title { font-size: .95rem; font-weight: 700; }
.quick-contact .desc { font-size: .78rem; color: var(--ink-3); line-height: 1.7; }
.quick-contact a.title { color: var(--ink); }
.quick-contact a.title:hover { color: var(--green); }

/* ---------------- سرمایه‌گذاری (صفحه) ---------------- */
.invest-grid { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .invest-grid { grid-template-columns: 1.15fr .85fr; gap: 42px; } }

.invest-copy h2 { margin-bottom: .4em; }
.invest-copy > p { color: var(--ink-2); }

.stat-stack { display: grid; gap: 12px; }

/* ردیف افقیِ ارقام کلیدی، زیر ماشین‌حساب صفحه سرمایه‌گذاری */
.stat-stack-row { margin-top: 22px; }
@media (min-width: 640px) {
  .stat-stack-row { grid-template-columns: repeat(3, 1fr); }
}

.stat-card {
  padding: 18px 20px;
  background: var(--green);
  border: none;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  color: #fff;
}
.stat-card .label { display: block; font-size: .84rem; color: oklch(1 0 0 / .8); margin-bottom: 4px; }
.stat-card .value { font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 800; color: #fff; }
.stat-card .hint { display: block; font-size: .78rem; color: oklch(1 0 0 / .7); margin-top: 4px; }

.share-highlight {
  max-width: var(--wrap-narrow); margin: 0 auto 20px;
  background: linear-gradient(150deg, var(--gold-wash), var(--gold-soft));
  border-radius: var(--r-xl); padding: 24px 22px; text-align: right;
}
.share-highlight .lbl { font-size: .82rem; font-weight: 700; color: var(--gold-text); margin-bottom: 8px; display: block; }
.share-highlight .val { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; color: oklch(0.3 0.05 78); }
.share-highlight .note { font-size: .78rem; color: oklch(0.45 0.06 83); margin-top: 4px; }

.formula-note {
  margin-top: 6px; padding: 12px 16px;
  background: var(--gold-wash); border: 1px dashed var(--gold-soft);
  border-radius: var(--r); font-size: .84rem; color: var(--ink-2);
  max-width: var(--wrap-narrow); margin-inline: auto;
}

/* ---------------- درباره ---------------- */
.prose { max-width: 72ch; }
.prose p { color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; color: var(--ink-2); }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--r); margin: 1.4em 0; }
.prose blockquote {
  margin: 1.5em 0; padding: .2em 1.2em;
  border-inline-start: 4px solid var(--gold);
  background: var(--gold-wash); border-radius: var(--r-sm);
  color: var(--ink-2);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6em .8em; text-align: right; }
.prose th { background: var(--gold-wash); }

/* ---------------- وبلاگ ---------------- */
.post-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.post-thumb { position: relative; aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, var(--green-soft) 0 12px, var(--green-wash) 12px 24px); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.045); }
.post-thumb .placeholder { display: grid; place-items: center; height: 100%; color: var(--green); opacity: .5; }
.post-thumb .placeholder svg { width: 40px; height: 40px; }

.post-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.post-cat {
  align-self: flex-start; margin-bottom: 8px;
  color: var(--gold-text); font-size: .76rem; font-weight: 700;
}
.post-card h3 { font-size: 1rem; margin-bottom: .4em; line-height: 1.6; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--green); }
.post-card p { font-size: .86rem; color: var(--ink-2); margin-bottom: 1em; }
.post-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft);
  font-size: .78rem; color: var(--ink-3);
}
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta svg { width: 14px; height: 14px; opacity: .7; }

/* --- صفحه تک مطلب / تیتر عمومی صفحات --- */
.post-header { padding: clamp(24px, 4vw, 40px) 0 clamp(18px, 3vw, 28px); text-align: center; }
.post-header .wrap, .post-header .wrap-sm { max-width: var(--wrap-narrow); }
.post-header h1 { color: var(--ink); }
.post-header .post-meta { color: var(--ink-3); border-top-color: var(--line-soft); justify-content: center; }
.post-header p { color: var(--ink-2); }

/* On mobile, widen the post page: drop the 80vw cap and shrink the side gutter */
@media (max-width: 639px) {
  .post-page { --wrap: 100%; --wrap-narrow: 100%; --gut: 14px; }
}

/* On mobile, lay the post meta out as a centered 2×2 grid so nothing wraps mid-item */
@media (max-width: 639px) {
  .post-header .post-meta {
    display: grid; grid-template-columns: repeat(2, auto);
    justify-content: center; gap: 6px 20px; font-size: .78rem;
  }
  .post-header .post-meta span { white-space: nowrap; }
}

.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; font-size: .82rem; color: var(--ink-3); }
.breadcrumb a { color: var(--green-text); }
.breadcrumb a:hover { color: var(--green); }

.post-cover { margin: 6px auto 0; max-width: 820px; }
.post-cover img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }

.post-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .post-layout { grid-template-columns: 1fr 280px; gap: 40px; } }

.article-body { max-width: 720px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: .32em .9em; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: .82rem; color: var(--ink-2);
}
.tag-chip svg { width: 13px; height: 13px; flex-shrink: 0; opacity: .75; }
.tag-chip:hover { border-color: var(--green); color: var(--green); }

.sidebar-card {
  padding: 18px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
}
.sidebar-card h3 { font-size: .96rem; padding-bottom: .6em; border-bottom: 1px solid var(--line-soft); }
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { padding: .5em 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a { color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; }
.sidebar-list a:hover { color: var(--green); }
.sidebar-list .count { color: var(--ink-3); font-size: .82rem; }

/* --- نظرات --- */
.comments { margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--line-soft); }
.comment-list { display: grid; gap: 14px; margin-bottom: 30px; }

.comment {
  padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
}
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar {
  display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0;
  background: var(--green-soft);
  border-radius: 50%; color: var(--green); font-weight: 700;
}
.comment-author { font-weight: 700; font-size: .93rem; }
.comment-date { font-size: .78rem; color: var(--ink-3); }
.comment p { margin: 0; font-size: .92rem; color: var(--ink-2); }

.comment-reply {
  margin-top: 12px; padding: 12px 14px;
  background: var(--green-soft); border-inline-start: 3px solid var(--green); border-radius: var(--r-sm);
}
.comment-reply .who { display: block; font-size: .8rem; font-weight: 700; color: var(--green); margin-bottom: 4px; }

/* ---------------- فرم‌ها ---------------- */
.form-card {
  padding: 24px; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
}
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 620px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.field label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 700; color: var(--ink); }
.field .hint { display: block; margin-top: 5px; font-size: .78rem; color: var(--ink-3); }

.input, .textarea, .select {
  width: 100%; padding: .72em .9em;
  font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px oklch(0.5 0.09 152 / .16);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.select { cursor: pointer; }

/* ---------------- پیام‌ها ---------------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; margin-bottom: 18px;
  border-radius: var(--r); font-size: .9rem; border: 1px solid transparent;
}
.alert svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; }
.alert-success { background: var(--ok-soft); color: oklch(0.35 0.1 152); border-color: oklch(0.85 0.06 152); }
.alert-error   { background: var(--danger-soft); color: oklch(0.42 0.14 25); border-color: oklch(0.85 0.08 25); }
.alert-info    { background: var(--gold-wash);  color: oklch(0.42 0.06 83); border-color: var(--gold-soft); }

/* ---------------- حالت خالی ---------------- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-3); }
.empty-state svg { width: 56px; height: 56px; margin-bottom: 14px; color: var(--green-soft); }
.empty-state h3 { color: var(--ink-2); }

/* ---------------- صفحه‌بندی ---------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 36px; }
.pagination a, .pagination span {
  min-width: 40px; padding: .5em .8em;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink-2); font-size: .9rem; font-weight: 600;
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .current { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ---------------- جست‌وجو ---------------- */
.search-bar { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 28px; }
.search-bar .input { flex: 1; border-radius: var(--pill); }
.search-bar .btn { border-radius: var(--pill); }

/* ---------------- دسته‌های وبلاگ ---------------- */
.tag-list.categories { justify-content: center; }
.tag-chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: var(--wrap-narrow); margin-inline: auto; display: grid; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; cursor: pointer; font-weight: 700; font-size: .93rem; list-style: none;
  transition: background .18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--green-soft); }
.faq-item summary::after {
  content: '+'; flex-shrink: 0;
  width: 24px; height: 24px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green);
  border-radius: 50%; font-size: 1.1rem; font-weight: 700;
  transition: transform .22s ease;
}
.faq-item[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 18px 16px; color: var(--ink-2); font-size: .9rem; }

/* ---------------- تماس ---------------- */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); max-width: var(--wrap); margin-inline: auto; }
.contact-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
}
.contact-card .ico {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  background: var(--green-soft); border-radius: var(--r); color: var(--green);
}
.contact-card .ico svg { width: 20px; height: 20px; }
.contact-card .label { display: block; font-size: .82rem; color: var(--ink-3); margin-bottom: 2px; }
.contact-card .value { font-weight: 700; color: var(--ink); font-size: 1rem; }
.contact-card a.value:hover { color: var(--green); }

/* نوار فراخوان */
.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(22px, 4vw, 32px);
  background: linear-gradient(150deg, var(--gold-wash), var(--gold-soft));
  border-radius: var(--r-xl); color: var(--ink);
}
.callout h2 { color: var(--ink); margin-bottom: .25em; }
.callout p { color: oklch(0.4 0.03 90); margin: 0; }
.phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 800; color: var(--green);
  direction: ltr;
}
.phone:hover { color: var(--green-2); }
.phone svg { width: 22px; height: 22px; }

/* ================================================================
   فوتر
   ================================================================ */
.site-footer { background: var(--green-deep); color: oklch(0.9 0.02 150 / .85); margin-top: 16px; padding: clamp(34px, 5vw, 52px) 0 22px; }

.footer-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  padding-bottom: 28px; border-bottom: 1px solid oklch(1 0 0 / .12);
  max-width: var(--wrap); margin-inline: auto;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }

.footer-col h4 { color: var(--gold-soft); font-size: .95rem; margin-bottom: 1em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6em; font-size: .9rem; }
.footer-col a { color: oklch(0.9 0.02 150 / .85); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-about p { font-size: .9rem; line-height: 1.85; max-width: 40ch; }

.footer-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-badges img, .footer-badges a > img { max-height: 70px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }

.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: oklch(1 0 0 / .08); border: 1px solid oklch(1 0 0 / .14);
  border-radius: var(--r-sm); color: oklch(0.95 0.02 150);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }
.social-row svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--wrap); margin-inline: auto;
  padding-top: 20px; font-size: .84rem; color: oklch(0.85 0.02 150 / .65);
}
.footer-bottom a { color: oklch(0.85 0.02 150 / .75); }
.footer-bottom a:hover { color: var(--gold-soft); }
.footer-admin-link { background: none; border: none; cursor: pointer; font: inherit; }

/* ================================================================
   صفحه ۴۰۴
   ================================================================ */
.error-page { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.error-code {
  font-size: clamp(4.5rem, 16vw, 9rem); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ================================================================
   چاپ
   ================================================================ */
@media print {
  .site-header, .site-footer, .comments, .btn, .promo-banner { display: none !important; }
  body { background: #fff; }
}
