/* ============================================================
   مهدی رابطی — دیزاین‌سیستم لوکس تیره / گلس‌مورفیسم
   RTL-first • Vazirmatn • WCAG-friendly
   ============================================================ */

/* ---------- فونت‌های محلی (خودکفا، آفلاین) ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- توکن‌ها ---------- */
:root {
  --bg: #070a12;
  --bg-soft: #0b101c;
  --ink: #eef1f8;
  --muted: #a9b1c4;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --gold: #e5c376;
  --gold-deep: #d4af37;
  --teal: #5eead4;
  --danger: #f87171;
  --radius: 18px;
  --radius-sm: 12px;
  --blur: 14px;
  --max: 1140px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-h: 68px;
}

/* ---------- ریست ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  text-align: right;
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(720px 420px at 88% -60px, rgba(229, 195, 118, 0.13), transparent 62%),
    radial-gradient(640px 460px at 6% 12%, rgba(94, 234, 212, 0.07), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(212, 175, 55, 0.06), transparent 65%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style-position: inside; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(229, 195, 118, 0.35); color: #fff; }

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

.container { width: min(var(--max), 92%); margin-inline: auto; }

/* ---------- پرش به محتوا (دسترس‌پذیری) ---------- */
.skip-link {
  position: absolute; top: -60px; inset-inline-start: 12px; z-index: 200;
  background: var(--gold); color: #10131c; padding: 8px 16px;
  border-radius: 0 0 10px 10px; font-weight: 800; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- هدر و ناوبری ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  background: rgba(7, 10, 18, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold); font-size: 0.9rem; font-weight: 800;
  flex: 0 0 auto;
}
.brand small { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 400; line-height: 1.2; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 10px;
  font-size: 0.95rem; color: var(--muted);
  transition: color .18s, background .18s;
  background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-item:focus-within > .nav-link {
  color: var(--ink); background: var(--glass-strong);
}
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link .chev { transition: transform .2s; font-size: 0.7em; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0;
  min-width: 250px; padding: 8px;
  background: rgba(11, 16, 28, 0.96);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 9px;
  font-size: 0.92rem; color: var(--muted);
}
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--glass-strong); color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; line-height: 1.4;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s, border-color .16s;
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #141007; box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover { box-shadow: 0 14px 36px rgba(212, 175, 55, 0.38); transform: translateY(-2px); }
.btn-ghost {
  background: var(--glass); border-color: rgba(229, 195, 118, 0.4); color: var(--gold);
  backdrop-filter: blur(var(--blur));
}
.btn-ghost:hover { background: rgba(229, 195, 118, 0.12); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.header-cta { margin-inline-start: 6px; }

.nav-toggle {
  display: none; margin-inline-start: auto;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line);
  cursor: pointer; place-items: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; transition: background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; inset-inline-start: 0; width: 20px; height: 2px;
  background: var(--ink); transition: transform .2s, top .2s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- هیرو ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 44px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(229, 195, 118, 0.35);
  color: var(--gold); font-size: 0.85rem; font-weight: 700;
  backdrop-filter: blur(var(--blur));
}
.badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px var(--teal);
}
h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  line-height: 1.45; font-weight: 800;
  margin: 18px 0 16px; letter-spacing: -0.02em;
}
h1 .accent {
  background: linear-gradient(120deg, var(--gold) 20%, #fff2cf 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note {
  margin-top: 18px; font-size: 0.88rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

.hero-visual { position: relative; }
.frame {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 10, 18, 0.55));
  pointer-events: none;
}
.float-card {
  position: absolute; bottom: -22px; inset-inline-start: -18px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(11, 16, 28, 0.9);
  border: 1px solid rgba(229, 195, 118, 0.35);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  font-size: 0.88rem; font-weight: 700; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.float-card small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; }

/* ---------- نوار اعتماد ---------- */
.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 0;
}
.trust-list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 34px; font-size: 0.92rem; color: var(--muted);
  list-style: none;
}
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list svg { color: var(--gold); flex: 0 0 auto; }

/* ---------- بخش‌ها ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  color: var(--gold); font-size: 0.86rem; font-weight: 800;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.55; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.7; }
.section-head p { color: var(--muted); margin-top: 10px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- کارت‌های گلس ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  overflow: hidden;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  position: relative;
}
.card:hover { transform: translateY(-5px); border-color: rgba(229, 195, 118, 0.4); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; }
.card-tag {
  display: inline-block; font-size: 0.76rem; color: var(--teal);
  background: rgba(94, 234, 212, 0.09); border: 1px solid rgba(94, 234, 212, 0.25);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.card h3 a { transition: color .18s; }
.card h3 a:hover { color: var(--gold); }
.card p { color: var(--muted); font-size: 0.94rem; margin-top: 8px; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.price { font-weight: 800; color: var(--gold); font-size: 1.02rem; }
.price small { color: var(--muted); font-weight: 400; font-size: 0.78rem; }
.link-more { color: var(--ink); font-size: 0.9rem; font-weight: 700; }
.link-more:hover { color: var(--gold); }
.link-more::after { content: ' ←'; color: var(--gold); }

/* ---------- کارت بنیان‌گذار ---------- */
.founder {
  display: grid; grid-template-columns: auto 1fr; gap: 26px;
  padding: 30px; align-items: start;
}
.monogram {
  width: 108px; height: 108px; border-radius: 26px;
  background: linear-gradient(140deg, rgba(229, 195, 118, 0.2), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(229, 195, 118, 0.45);
  display: grid; place-items: center;
  font-size: 2.1rem; font-weight: 800; color: var(--gold);
  box-shadow: inset 0 0 30px rgba(229, 195, 118, 0.12);
}
.founder blockquote {
  font-size: 1.02rem; color: var(--ink); line-height: 1.9;
}
.founder cite { display: block; margin-top: 12px; font-style: normal; color: var(--muted); font-size: 0.9rem; }

/* ---------- نردبان ریزه‌کاری ---------- */
.breadcrumbs {
  padding: 18px 0 0; font-size: 0.86rem; color: var(--muted);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumbs li::after { content: '‹'; margin-inline-start: 6px; color: rgba(255,255,255,.3); }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---------- صفحات ستونی ---------- */
.page-hero { padding: 40px 0 30px; }
.page-hero .lead { margin-top: 12px; }

.detail-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px;
  align-items: start; padding-bottom: 40px;
}
.prose { max-width: 72ch; }
.prose h2 { margin: 34px 0 12px; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; }
.prose p { margin: 12px 0; color: #d5dae6; }
.prose ul, .prose ol { margin: 14px 0; padding-inline-start: 0; color: #d5dae6; }
.prose li { margin: 8px 0; padding-inline-start: 4px; list-style: none; position: relative; padding-inline-start: 26px; }
.prose ul > li::before {
  content: ''; position: absolute; inset-inline-start: 4px; top: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px rgba(229, 195, 118, 0.6);
}
.prose ol { counter-reset: item; }
.prose ol > li::before {
  counter-increment: item; content: counter(item);
  position: absolute; inset-inline-start: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(229, 195, 118, 0.15); border: 1px solid rgba(229, 195, 118, 0.5);
  color: var(--gold); font-size: 0.72rem; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.prose strong { color: #fff; }
.prose blockquote {
  margin: 22px 0; padding: 16px 20px;
  border-inline-start: 3px solid var(--gold);
  background: rgba(229, 195, 118, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink); font-size: 1.02rem;
}

.sticky-card { position: sticky; top: calc(var(--header-h) + 18px); }
.price-card { padding: 26px; text-align: center; }
.price-card .amount { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1.4; }
.price-card .amount small { font-size: 0.95rem; color: var(--muted); font-weight: 400; }
.price-card .btn { width: 100%; margin-top: 16px; }
.price-card .guarantee {
  margin-top: 14px; font-size: 0.84rem; color: var(--muted);
  border-top: 1px dashed var(--line); padding-top: 14px;
}
.meta-list { margin-top: 18px; text-align: right; font-size: 0.9rem; }
.meta-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  list-style: none; color: var(--muted);
}
.meta-list li:last-child { border-bottom: 0; }
.meta-list b { color: var(--ink); font-weight: 700; }

/* ---------- سرفصل‌ها ---------- */
.modules { display: grid; gap: 12px; margin-top: 18px; }
.module {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--line);
}
.module .num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(229, 195, 118, 0.14); border: 1px solid rgba(229, 195, 118, 0.5);
  color: var(--gold); font-weight: 800; font-size: 0.86rem;
  display: grid; place-items: center; line-height: 1;
}
.module p { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

/* ---------- پرسش‌وپاسخ (details) ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq details[open] { border-color: rgba(229, 195, 118, 0.4); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 20px; font-weight: 700; font-size: 0.98rem;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--gold); font-size: 1.3rem; font-weight: 400;
  transition: transform .2s; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA باند ---------- */
.cta-band {
  margin: 20px 0; padding: 44px 34px; text-align: center;
  border-radius: 26px;
  background:
    linear-gradient(140deg, rgba(229, 195, 118, 0.14), rgba(255, 255, 255, 0.03) 55%),
    var(--glass);
  border: 1px solid rgba(229, 195, 118, 0.35);
  backdrop-filter: blur(var(--blur));
}
.cta-band h2 { max-width: 30ch; margin-inline: auto; }
.cta-band p { color: var(--muted); margin-top: 10px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- فرم‌ها ---------- */
.form-card { padding: 30px; }
.form-grid { display: grid; gap: 16px; }
.field label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line);
  border-radius: 10px; transition: border-color .18s, box-shadow .18s;
  font-size: 0.98rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(229, 195, 118, 0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .error { display: none; color: var(--danger); font-size: 0.83rem; margin-top: 5px; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error { display: block; }
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status {
  display: none; margin-top: 14px; padding: 12px 16px;
  border-radius: 10px; font-size: 0.92rem;
  background: rgba(94, 234, 212, 0.1); border: 1px solid rgba(94, 234, 212, 0.4);
}
.form-status.show { display: block; }
.form-status.err { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.45); }

.contact-side { display: grid; gap: 16px; }
.contact-card { padding: 22px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card a.big {
  display: block; font-size: 1.2rem; font-weight: 800; color: var(--gold);
  margin: 6px 0; direction: ltr; text-align: right; unicode-bidi: plaintext;
}
.contact-card a.big:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- دیالوگ پیش‌فاکتور ---------- */
dialog.proforma {
  border: 1px solid rgba(229, 195, 118, 0.4);
  border-radius: 22px; padding: 0;
  background: #0d1220; color: var(--ink);
  width: min(560px, 92vw); box-shadow: var(--shadow);
}
dialog.proforma::backdrop { background: rgba(4, 6, 12, 0.75); backdrop-filter: blur(4px); }
dialog.proforma[open] { animation: modal-in .22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.proforma-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.proforma-head h3 { color: var(--gold); }
.proforma-close {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink);
  font-size: 1.1rem; line-height: 1;
}
.proforma-close:hover { border-color: var(--gold); color: var(--gold); }
.proforma-body { padding: 20px 22px 24px; }
.proforma-body .opt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.proforma-body .opt:hover { border-color: rgba(229, 195, 118, 0.45); }
.proforma-body .opt:has(input:checked) {
  border-color: var(--gold); background: rgba(229, 195, 118, 0.07);
}
.proforma-body .opt input { accent-color: var(--gold-deep); width: 17px; height: 17px; }
.proforma-body .opt .n { flex: 1; font-weight: 700; font-size: 0.94rem; }
.proforma-body .opt .p { color: var(--gold); font-weight: 800; font-size: 0.9rem; direction: ltr; }
.proforma-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-weight: 800;
}
.proforma-total .t { color: var(--gold); font-size: 1.3rem; direction: ltr; }
.proforma-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.proforma-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* ---------- نویسنده / مقاله ---------- */
.article-wrap { padding-bottom: 50px; }
.article-head { padding: 26px 0 8px; max-width: 72ch; }
.article-meta { color: var(--muted); font-size: 0.86rem; margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.author-box {
  display: flex; gap: 16px; align-items: center;
  margin-top: 36px; padding: 20px 22px;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
}
.author-box .monogram { width: 64px; height: 64px; font-size: 1.3rem; border-radius: 18px; }
.author-box p { color: var(--muted); font-size: 0.9rem; }
.related { margin-top: 34px; }
.related h2 { font-size: 1.2rem; margin-bottom: 16px; }

/* ---------- فوتر ---------- */
.site-footer {
  margin-top: 40px; border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3); padding: 46px 0 26px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
}
.footer-grid h2 { font-size: 0.95rem; color: var(--gold); margin-bottom: 12px; font-weight: 800; }
.footer-grid ul li { list-style: none; margin-bottom: 8px; }
.footer-grid a { color: var(--muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 40ch; }
.footer-bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.82rem;
}

/* ---------- داک پایین موبایل ---------- */
.bottom-dock { display: none; }

/* ---------- انیمیشن ورود (بدون JS هم محتوا دیده می‌شود) ---------- */
.reveal.pre { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
}

@media (max-width: 768px) {
  body { font-size: 15px; padding-bottom: 60px; }
  .section { padding: 46px 0; }
  .hero { padding: 46px 0 40px; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(8, 11, 20, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 14px 5% 22px; gap: 4px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }
  .dropdown {
    position: static; min-width: 0; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; background: rgba(255, 255, 255, 0.03);
    border: 0; margin: 2px 0 8px; display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .header-cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .float-card { inset-inline-start: 10px; bottom: -16px; }
  h1 { font-size: 1.7rem; }
  .cta-band { padding: 32px 20px; }
  .form-card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* داک چسبان پایین — ۵۰ پیکسل */
  .bottom-dock {
    display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 120;
    height: 50px;
    background: rgba(8, 11, 20, 0.96);
    border-top: 1px solid rgba(229, 195, 118, 0.35);
    backdrop-filter: blur(var(--blur));
  }
  .bottom-dock a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 800; font-size: 0.92rem;
  }
  .bottom-dock a:first-child { color: var(--gold); border-inline-end: 1px solid var(--line); }
  .bottom-dock a:last-child { color: var(--teal); }
}

@media (max-width: 400px) {
  .hero-cta .btn { width: 100%; }
}

/* ---------- حرکت کم ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- چاپ پیش‌فاکتور ---------- */
@media print {
  body * { visibility: hidden; }
  dialog.proforma[open], dialog.proforma[open] * { visibility: visible; }
  dialog.proforma[open] {
    position: absolute; inset: 0; width: 100%; border: 0; box-shadow: none;
    background: #fff; color: #000;
  }
  .proforma-close, .proforma-actions, .proforma-note { display: none !important; }
  .proforma-head h3, .proforma-total .t, .proforma-body .opt .p { color: #000; }
  .proforma-body .opt { border-color: #bbb; }
}

/* ============================================================
   فاز ۲ — کامپوننت‌های داینامیک (کتاب‌فروشی، اخبار، سبد خرید، موس)
   ============================================================ */

/* ---------- ابزارها ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container.narrow { max-width: 820px; }
.container.center, .center { text-align: center; }
.center .hero-cta { justify-content: center; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.eyebrow { color: var(--gold); font-size: 0.86rem; font-weight: 800; letter-spacing: 0.06em; margin-bottom: 8px; }
.lead-2 { color: var(--muted); font-size: 1.02rem; line-height: 2; }
.section-foot-link { margin-top: 30px; text-align: center; }
.text-link { color: var(--gold); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
.wm-inline { letter-spacing: 0.14em; font-size: 0.78rem; opacity: 0.7; }

/* نشانگر استاندارد سیستم؛ بدون حلقه‌ی دنبال‌کننده */
@media (pointer: fine) {
  a[href], button, select, summary, label, [role="button"] { cursor: pointer; }
}

/* ---------- هیرو با عکس واقعی ---------- */
.hero { position: relative; overflow: hidden; min-height: 540px; display: flex; align-items: center; }
.hero .hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero .hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(7, 10, 18, 0.94) 6%, rgba(7, 10, 18, 0.78) 46%, rgba(7, 10, 18, 0.35) 100%);
}
.hero .hero-grid { position: relative; z-index: 1; grid-template-columns: 1fr; width: 100%; padding: 72px 0; }
.hero-copy { max-width: 640px; }
.hero-phone { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }
.hero-phone a { color: var(--gold); font-weight: 800; text-decoration: none; }
.hero-phone a:hover { text-decoration: underline; }

/* ---------- نوار کارنامه ---------- */
.status-band { border-block: 1px solid rgba(229, 195, 118, 0.28); background: rgba(255, 255, 255, 0.025); padding: 30px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; text-align: center; }
.stats-row strong { display: block; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--gold); line-height: 1.3; }
.stats-row span { color: var(--muted); font-size: 0.88rem; }
.cred-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; list-style: none; }
.cred-row li {
  padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; color: var(--ink);
  background: var(--glass); border: 1px solid var(--line);
}
.cred-row li::before { content: '◆'; color: var(--teal); font-size: 0.6rem; margin-inline-end: 8px; }

/* ---------- کارت‌های ستون (پیلار) ---------- */
.pillar-card {
  position: relative; display: block; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
  aspect-ratio: 4 / 3; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.pillar-card:hover { transform: translateY(-5px); border-color: rgba(229, 195, 118, 0.45); box-shadow: var(--shadow); }
.pillar-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.pillar-card:hover img { transform: scale(1.05); }
.pillar-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.05) 35%, rgba(7, 10, 18, 0.88) 100%);
}
.pillar-name {
  position: absolute; z-index: 2; bottom: 44px; inset-inline: 18px;
  font-weight: 800; font-size: 1.12rem; color: #fff;
}
.pillar-cta {
  position: absolute; z-index: 2; bottom: 16px; inset-inline: 18px;
  color: var(--gold); font-size: 0.85rem; font-weight: 700; opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.pillar-card:hover .pillar-cta, .pillar-card:focus-visible .pillar-cta { opacity: 1; transform: none; }
.pillar-wide { aspect-ratio: 21 / 7; }
.pillar-card.static { aspect-ratio: auto; padding: 26px 20px; display: flex; flex-direction: column; gap: 10px; }
.pillar-card.static .pillar-name { position: static; }
.pillar-card.static .pillar-cta { position: static; opacity: 1; transform: none; color: var(--muted); font-weight: 400; }
.tag-new {
  font-style: normal; font-size: 0.72rem; background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.4); color: var(--teal);
  padding: 2px 9px; border-radius: 999px; vertical-align: middle; margin-inline-start: 8px;
}
.iuxa-list { list-style: none; display: grid; gap: 12px; counter-reset: iu; }
.iuxa-list li {
  counter-increment: iu; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--line); position: relative; padding-inline-start: 56px;
}
.iuxa-list li::before {
  content: counter(iu); position: absolute; inset-inline-start: 14px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(229, 195, 118, 0.14); border: 1px solid rgba(229, 195, 118, 0.5);
  color: var(--gold); font-weight: 800; font-size: 0.85rem;
}
.iuxa-list strong { display: block; color: var(--ink); }
.iuxa-list span { color: var(--muted); font-size: 0.9rem; }

/* ---------- کارت دوره ---------- */
.course-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s; }
.course-card:hover { transform: translateY(-5px); border-color: rgba(229, 195, 118, 0.4); box-shadow: var(--shadow); }
.cc-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.course-card:hover .cc-img img { transform: scale(1.05); }
.cc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cc-meta { color: var(--teal); font-size: 0.82rem; font-weight: 700; }
.cc-lead { color: var(--muted); font-size: 0.93rem; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.price-line { color: var(--muted); font-size: 0.95rem; }
.price-line strong { color: var(--gold); font-size: 1.12rem; font-weight: 800; }
.price-line.big { font-size: 1.05rem; margin-top: 14px; }
.price-line.big strong { font-size: 1.35rem; }
.rate-inline { display: inline-block; margin-inline-start: 10px; font-size: 0.82rem; color: var(--teal); }
.badge-free {
  display: inline-block; margin-inline-start: 10px; font-size: 0.78rem; font-weight: 700;
  color: var(--teal); background: rgba(94, 234, 212, 0.1); border: 1px solid rgba(94, 234, 212, 0.4);
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- ردیف‌های دوره (فهرست دوره‌ها) ---------- */
.course-rows { display: grid; gap: 34px; }
.course-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: center; }
.course-row:nth-child(even) .frame { order: 2; }
.course-row .frame { aspect-ratio: 16 / 10; }
.for-whom { color: var(--muted); font-size: 0.95rem; }
.for-whom strong, .for-list + strong { color: var(--ink); }
.for-list { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.for-list li { position: relative; padding-inline-start: 24px; color: #d5dae6; }
.for-list li::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: 11px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px rgba(229, 195, 118, 0.6);
}
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin-top: 20px; color: var(--muted); font-size: 0.88rem; }
.trust-line li::before, .trust-line span::before { content: '✓'; color: var(--teal); margin-inline-end: 7px; font-weight: 800; }
.pill-note {
  margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; color: var(--muted);
  background: rgba(94, 234, 212, 0.06); border: 1px dashed rgba(94, 234, 212, 0.35);
}
.pill-note a, .pill-note strong { color: var(--gold); }
.center-note { text-align: center; margin-bottom: 24px; }

/* ---------- سرفصل‌ها (مدل جدید) ---------- */
.mod-list { list-style: none; display: grid; gap: 12px; counter-reset: none; }
.mod-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.95rem; line-height: 1.9;
}
.mod-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(229, 195, 118, 0.14); border: 1px solid rgba(229, 195, 118, 0.5);
  color: var(--gold); font-weight: 800; font-size: 0.86rem;
}
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-inline-start: 28px; color: #d5dae6; line-height: 1.9; }
.check-list li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--teal); font-weight: 800; font-size: 1.05rem;
}

/* ---------- پرسش‌وپاسخ مدل جدید ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 17px 20px; font-weight: 700; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 1.35rem; font-weight: 400; transition: transform 0.2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 0.95rem; line-height: 2; }
.faq-a a { color: var(--gold); }
.faq-a p { margin: 8px 0; }

/* ---------- کتاب‌فروشی ---------- */
.books-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.book-mini { display: grid; gap: 8px; text-decoration: none; transition: transform 0.2s; }
.book-mini:hover { transform: translateY(-4px); }
.book-mini img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-soft); }
.book-mini span { color: var(--muted); font-size: 0.82rem; line-height: 1.7; }
.book-mini:hover span { color: var(--gold); }
.books-grid { display: grid; gap: 30px; }
.book-card {
  display: grid; grid-template-columns: 230px 1fr; gap: 26px;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; align-items: start;
}
.book-cover { position: relative; }
.book-cover img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stars {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  background: rgba(7, 10, 18, 0.88); border: 1px solid rgba(229, 195, 118, 0.5);
  color: var(--gold); font-size: 0.8rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.typo-cover {
  width: 100%; aspect-ratio: 5 / 7; border-radius: 12px;
  border: 1px solid rgba(229, 195, 118, 0.45);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(229, 195, 118, 0.16), transparent 55%),
    linear-gradient(160deg, #0e1526, #0a0f1c 60%, #131a2c);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 14px; padding: 22px 16px; text-align: center;
}
.tc-author { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; }
.tc-title { color: var(--gold); font-size: 1.25rem; font-weight: 800; line-height: 1.8; }
.tc-note { color: rgba(169, 177, 196, 0.7); font-size: 0.72rem; border-top: 1px dashed var(--line); padding-top: 12px; width: 100%; }
.book-info h2 { font-size: 1.45rem; }
.book-meta { color: var(--muted); font-size: 0.87rem; line-height: 2; margin-top: 6px; }
.book-desc { color: #d5dae6; line-height: 2.1; margin-top: 12px; font-size: 0.96rem; }
.review-block { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 16px; display: grid; gap: 12px; }
.review-h { color: var(--teal); font-size: 0.85rem; font-weight: 800; }
.review-card {
  margin: 0; padding: 14px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border-inline-start: 3px solid var(--gold);
  color: var(--ink); font-size: 0.93rem; line-height: 2;
}
.review-card footer { margin-top: 8px; color: var(--muted); font-size: 0.8rem; }
.buy-box {
  margin-top: 34px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px;
  background: linear-gradient(140deg, rgba(229, 195, 118, 0.1), rgba(255, 255, 255, 0.02) 55%), var(--glass);
  border: 1px solid rgba(229, 195, 118, 0.32); border-radius: 22px; padding: 30px;
}
.steps { list-style: none; counter-reset: st; display: grid; gap: 10px; margin-top: 14px; }
.steps li { counter-increment: st; position: relative; padding-inline-start: 34px; color: var(--muted); }
.steps li::before {
  content: counter(st); position: absolute; inset-inline-start: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(229, 195, 118, 0.15); border: 1px solid rgba(229, 195, 118, 0.5);
  color: var(--gold); font-size: 0.75rem; font-weight: 800;
}
.buy-side { text-align: center; display: grid; gap: 12px; align-content: start; }
.price-big strong { display: block; font-size: 2rem; font-weight: 800; color: var(--gold); }
.price-big span { color: var(--muted); font-size: 0.9rem; }
.buy-side p { color: var(--muted); font-size: 0.88rem; }

/* ---------- سبد خرید ---------- */
.cart-fab {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 130;
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(229, 195, 118, 0.55);
  background: linear-gradient(135deg, rgba(229, 195, 118, 0.95), rgba(180, 138, 55, 0.95));
  color: #141007; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cart-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(212, 175, 55, 0.5); }
.cart-fab .ico { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  background: #0d1220; border: 1px solid var(--teal); color: var(--teal);
  font-size: 0.75rem; font-weight: 800; display: grid; place-items: center;
}
.cart-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-row .cr-title { flex: 1; font-weight: 700; font-size: 0.94rem; }
.cart-row .cr-price { color: var(--gold); font-weight: 800; font-size: 0.88rem; }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty button {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--glass); color: var(--ink); font-weight: 800; cursor: pointer;
}
.cart-qty button:hover { border-color: var(--gold); color: var(--gold); }
.cart-qty span { min-width: 18px; text-align: center; font-weight: 800; }
.cart-empty { color: var(--muted); text-align: center; padding: 18px 0; font-size: 0.93rem; }
@media (max-width: 768px) { .cart-fab { bottom: 64px; } }

/* ---------- اخبار ترند روز ---------- */
.news-date { margin-top: 12px; color: var(--teal); font-weight: 800; font-size: 0.95rem; }
.news-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--glass); border: 1px solid rgba(229, 195, 118, 0.35);
  border-radius: 22px; overflow: hidden; margin-bottom: 26px;
}
.nf-img { min-height: 300px; }
.nf-img img { width: 100%; height: 100%; object-fit: cover; }
.nf-body { padding: 28px 30px; align-self: center; }
.nf-body h2 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin: 8px 0 12px; }
.nf-body h2 a { color: var(--ink); text-decoration: none; }
.nf-body h2 a:hover { color: var(--gold); }
.nf-body p { color: var(--muted); line-height: 2; font-size: 0.95rem; }
.news-meta { color: var(--teal); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.22s, border-color 0.22s;
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(229, 195, 118, 0.4); }
.nc-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); display: block; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .nc-img img { transform: scale(1.05); }
.nc-body { padding: 16px 18px 20px; display: grid; gap: 8px; }
.nc-body h3 { font-size: 1rem; line-height: 1.9; }
.nc-body h3 a { color: var(--ink); text-decoration: none; }
.nc-body h3 a:hover { color: var(--gold); }
.nc-body p { color: var(--muted); font-size: 0.88rem; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trend-link {
  margin-top: 26px; padding: 18px 22px; border-radius: 16px; text-align: center;
  background: rgba(94, 234, 212, 0.05); border: 1px dashed rgba(94, 234, 212, 0.35);
  color: var(--muted); display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.archive-list { list-style: none; display: grid; gap: 8px; }
.archive-list li {
  display: flex; gap: 16px; padding: 12px 16px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line); font-size: 0.9rem;
}
.ar-date { color: var(--teal); font-weight: 800; flex: 0 0 auto; }
.ar-title { color: var(--muted); }

/* ---------- مقالات ---------- */
.art-list { display: grid; gap: 18px; }
.art-row {
  padding: 24px 26px; background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color 0.2s, transform 0.2s;
}
.art-row:hover { border-color: rgba(229, 195, 118, 0.4); transform: translateY(-3px); }
.art-row h2 { font-size: 1.22rem; margin: 6px 0 8px; }
.art-row h2 a { color: var(--ink); text-decoration: none; }
.art-row h2 a:hover { color: var(--gold); }
.art-row p { color: var(--muted); font-size: 0.94rem; line-height: 1.9; }
.art-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.art-card:hover { border-color: rgba(229, 195, 118, 0.4); transform: translateY(-4px); }
.ac-body { padding: 20px 22px 22px; display: grid; gap: 8px; }
.ac-meta { color: var(--muted); font-size: 0.8rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ac-body h3 a, .art-row .ac-meta + h2 a { color: var(--ink); text-decoration: none; }
.ac-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.9; }
.trend-tag {
  font-size: 0.72rem; color: var(--teal); background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.3); padding: 2px 9px; border-radius: 999px;
}
.art-head { padding: 10px 0 6px; }
.art-head .lead { margin-top: 14px; }
.art-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.art-aside {
  margin-top: 38px; padding: 26px 28px; border-radius: 20px;
  background: linear-gradient(140deg, rgba(229, 195, 118, 0.1), rgba(255, 255, 255, 0.02) 60%), var(--glass);
  border: 1px solid rgba(229, 195, 118, 0.3);
}
.art-aside h2 { font-size: 1.15rem; color: var(--gold); }
.art-aside p { color: var(--muted); line-height: 2; margin-top: 8px; }

/* ---------- درباره / صداها ---------- */
.bio-list { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.bio-list li { position: relative; padding-inline-start: 26px; color: #d5dae6; }
.bio-list li::before { content: '◆'; position: absolute; inset-inline-start: 0; color: var(--gold); font-size: 0.8rem; top: 4px; }
.quote-card {
  margin: 0; padding: 24px; background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px;
}
.quote-card p { color: var(--ink); line-height: 2.1; font-size: 0.97rem; }
.quote-card footer { color: var(--muted); font-size: 0.84rem; margin-top: auto; }
.teaser-note {
  margin-top: 22px; padding: 12px 18px; border-radius: 12px; text-align: center;
  color: var(--muted); font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03); border: 1px dashed var(--line);
}

/* ---------- تماس ---------- */
.contact-info h2 { margin-bottom: 14px; }
.big-phone a {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--gold);
  text-decoration: none; letter-spacing: 0.02em;
}
.big-phone a:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact-list { list-style: none; display: grid; gap: 10px; margin-top: 18px; color: var(--muted); }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--gold); }
.contact-form h2 { margin-bottom: 6px; }
.form-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.form-msg { margin-top: 10px; font-size: 0.86rem; color: var(--teal); min-height: 1.2em; }
.form-msg.err { color: var(--danger); }
.sub-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.sub-form input {
  flex: 1 1 160px; min-width: 0; padding: 10px 12px; font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
}
.sub-form input:focus { outline: none; border-color: var(--gold); }
.foot-note { color: var(--muted); font-size: 0.86rem; }
.foot-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.foot-badges span {
  font-size: 0.74rem; color: var(--muted); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; background: var(--glass);
}
.footer-about a.big { display: inline-block; color: var(--gold); font-weight: 800; text-decoration: none; margin-top: 8px; }
.footer-about a.big:hover { text-decoration: underline; }

/* ---------- سازمان‌ها / پیش‌فاکتور ---------- */
.gauge-list { list-style: none; display: grid; gap: 14px; }
.gauge-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--glass); border: 1px solid var(--line); border-radius: 12px;
  color: var(--muted); font-size: 0.93rem;
}
.gauge-list b { color: var(--gold); font-size: 1.15rem; font-weight: 800; }
.pf-inner { padding: 22px 24px 26px; }
.pf-inner h2 { color: var(--gold); font-size: 1.25rem; }
.pf-sub { color: var(--muted); font-size: 0.88rem; margin: 6px 0 16px; }
.pf-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 0.94rem;
}
.pf-row.total { border: 0; border-top: 1px dashed var(--line); border-radius: 0; margin-top: 14px; font-weight: 800; }
.pf-row.total .t, .pf-row.total strong { color: var(--gold); font-size: 1.25rem; font-weight: 800; }
.pf-row label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.pf-row input[type='checkbox'] { width: 17px; height: 17px; accent-color: var(--gold-deep); }
.pf-row select {
  padding: 9px 12px; background: rgba(0, 0, 0, 0.35); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; font-size: 0.92rem;
}
.pf-row .p { color: var(--gold); font-weight: 800; font-size: 0.88rem; }
.pf-row:has(input:checked) { border-color: var(--gold); background: rgba(229, 195, 118, 0.07); }
.pf-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; min-height: 1.2em; }
.pf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- واکنش‌گرایی فاز ۲ ---------- */
@media (max-width: 980px) {
  .split, .course-row, .news-featured, .buy-box { grid-template-columns: 1fr; }
  .course-row:nth-child(even) .frame { order: 0; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .books-row { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .pillar-wide { aspect-ratio: 16 / 7; }
}
@media (max-width: 768px) {
  .hero { min-height: 0; }
  .hero .hero-grid { padding: 52px 0 44px; }
  .book-card { grid-template-columns: 1fr; padding: 20px; }
  .book-cover { max-width: 250px; }
  .news-grid { grid-template-columns: 1fr; }
  .books-row { grid-template-columns: repeat(2, 1fr); }
  .nf-img { min-height: 200px; }
  .trend-link { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .stats-row { grid-template-columns: 1fr; }
}

label.pf-row { cursor: pointer; }

/* ---------- فاز ۲ — بخش‌ها: اقدام روز، کارت ارتباطی ---------- */
.news-action {
  display: block; margin-top: 4px; padding: 11px 14px;
  border-radius: 10px; border-inline-start: 3px solid var(--gold);
  background: rgba(229, 195, 118, 0.07); color: var(--ink) !important;
  font-size: 0.9rem; line-height: 1.95; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.nf-body .news-action { -webkit-line-clamp: unset; font-size: 0.95rem; background: rgba(229, 195, 118, 0.1); }
.news-slogan { max-width: 60ch; margin: 26px auto 0; color: var(--gold); font-weight: 700; }

.channels-card {
  margin-top: 20px; padding: 18px 20px; border-radius: 16px;
  border: 1px dashed rgba(229, 195, 118, 0.5); background: rgba(255, 255, 255, 0.025);
}
.channels-card h3 { font-size: 1.02rem; color: var(--gold); margin-bottom: 6px; }
.channels-text {
  white-space: pre-wrap; font-size: 0.9rem; line-height: 2.1; color: var(--ink);
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 15px; margin: 10px 0 12px;
}


/* ---------- نمایش کامل پرتره‌ها در تمام اندازه‌ها ---------- */
.frame.portrait-frame {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #0b101c;
}
.frame.portrait-frame::after { display: none; }
.frame.portrait-frame img.portrait {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(74vh, 760px);
  object-fit: contain;
  object-position: center;
}
@media (max-width: 768px) {
  .frame.portrait-frame img.portrait { max-height: none; }
}

/* ---------- راهنمای دوستانه برای دکمه‌های کلیدی ---------- */
.friendly-tip-target { position: relative; }
.friendly-tip {
  position: fixed;
  z-index: 10001;
  width: min(290px, calc(100vw - 32px));
  padding: 10px 13px;
  border: 1px solid rgba(229,195,118,.45);
  border-radius: 12px;
  background: #111827;
  color: #f3f4f6;
  box-shadow: 0 12px 34px rgba(0,0,0,.38);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.8;
  text-align: right;
  direction: rtl;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.friendly-tip::before {
  content: '✦'; color: var(--gold); margin-inline-end: 5px; font-size: .8rem;
}
.friendly-tip[data-visible='true'] {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.click-spark {
  position: fixed; z-index: 10000; pointer-events: none;
  color: var(--gold); font-size: 20px; line-height: 1;
  text-shadow: 0 0 12px rgba(229,195,118,.7);
  transform: translate(-50%,-50%) scale(.4) rotate(-20deg);
  animation: spark-pop .58s cubic-bezier(.15,.8,.35,1) forwards;
}
@keyframes spark-pop {
  30% { opacity: 1; transform: translate(-50%,-75%) scale(1.2) rotate(18deg); }
  100% { opacity: 0; transform: translate(-50%,-120%) scale(.65) rotate(40deg); }
}
@media (prefers-reduced-motion: reduce) {
  .click-spark { animation-duration: .01ms; }
  .friendly-tip { transition: none; }
}

/* ============================================================
   I.U.X.A — صفحه‌ی مرجع و بازطراحی آرامِ بخش خانه
   ============================================================ */
.home-iuxa { padding-block: clamp(72px, 10vw, 124px); }
.iuxa-intro { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.iuxa-intro h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); margin: 6px 0 14px; }
.iuxa-intro .lead-2 { max-width: 64ch; margin-inline: auto; }
.iuxa-central {
  margin: 26px auto 0; max-width: 66ch; padding: 16px 22px;
  border-inline-start: 2px solid rgba(229,195,118,.52);
  color: #e8dfca; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 2.1;
}
.iuxa-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-block: 1px solid var(--line);
}
.iuxa-unit { padding: 20px 22px 24px; border-inline-start: 1px solid var(--line); }
.iuxa-unit:last-child { border-inline-start: 0; }
.iuxa-status { display: inline-block; margin-bottom: 10px; color: var(--teal); font-size: .76rem; }
.iuxa-unit h3 { font-size: 1.05rem; margin-bottom: 6px; }
.iuxa-unit p { color: var(--muted); font-size: .9rem; line-height: 2; }
.iuxa-pending .iuxa-status { color: #c6b995; }
.iuxa-pending { background: rgba(255,255,255,.012); }
.iuxa-analogy { max-width: 68ch; margin: 24px auto 0; text-align: center; color: var(--muted); line-height: 2; }
.iuxa-links { text-align: center; margin-top: 18px; }

.iuxa-page { --iuxa-line: rgba(235,232,222,.12); }
.iuxa-page .section { padding-block: clamp(64px, 9vw, 104px); }
.iuxa-page .container.narrow { max-width: 850px; }
.iuxa-page-hero { padding: clamp(68px, 10vw, 126px) 0 72px; border-bottom: 1px solid var(--iuxa-line); }
.iuxa-page-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 50px; align-items: center; }
.iuxa-page-hero h1 { max-width: 15ch; font-size: clamp(2rem, 4.7vw, 3.6rem); line-height: 1.55; }
.iuxa-page-hero .accent { color: #d8cba9; }
.iuxa-deck { max-width: 56ch; margin-top: 20px; color: #d8d9dc; font-size: clamp(1.12rem, 2vw, 1.35rem); line-height: 2.1; }
.iuxa-credit { max-width: 66ch; margin-top: 16px; color: var(--muted); line-height: 2; }
.iuxa-center-figure { color: #d8cba9; text-align: center; }
.iuxa-center-figure svg { display: block; width: min(100%, 260px); margin-inline: auto; }
.iuxa-center-figure text { fill: currentColor; font-family: 'Vazirmatn', sans-serif; font-size: 14px; }
.iuxa-center-figure figcaption { margin-top: 9px; color: var(--muted); font-size: .75rem; }
.iuxa-quote-section { padding: 56px 0; border-bottom: 1px solid var(--iuxa-line); background: rgba(255,255,255,.012); }
.iuxa-quote { max-width: 30ch; margin-top: 10px; font-size: clamp(1.5rem, 3.5vw, 2.35rem); line-height: 1.9; font-weight: 600; }
.iuxa-note { color: var(--muted); margin-top: 12px; max-width: 65ch; }
.iuxa-components .section-head { max-width: 68ch; }
.iuxa-components .iuxa-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.iuxa-components .iuxa-unit { min-height: 172px; padding: 24px 26px; }
.iuxa-explain p, .iuxa-universe .section-head > p:last-child,
.iuxa-influences p, .iuxa-closing p { max-width: 72ch; color: #d0d2d8; line-height: 2.15; }
.iuxa-explain h2, .iuxa-influences h2 { margin-bottom: 14px; }
.iuxa-metaphors { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 34px; }
.iuxa-metaphors article { border-top: 1px solid var(--iuxa-line); padding-top: 16px; }
.metaphor-mark { display: block; color: #d8cba9; font-size: 1.8rem; line-height: 1.4; margin-bottom: 8px; }
.iuxa-metaphors h3, .u-factor h3, .principle-list h3 { font-size: 1rem; margin-bottom: 6px; }
.iuxa-metaphors p, .u-factor p, .principle-list p { color: var(--muted); font-size: .91rem; line-height: 2; }
.u-factor-list { border-top: 1px solid var(--iuxa-line); }
.u-factor { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--iuxa-line); }
.u-factor-num { color: #d8cba9; font-size: .9rem; padding-top: 2px; }
.iuxa-shovel { display: grid; grid-template-columns: 52px 1fr; gap: 16px; margin-top: 28px; padding: 18px 0; border-block: 1px solid rgba(229,195,118,.3); }
.shovel-icon { color: #d8cba9; font-size: 2rem; }
.iuxa-shovel h3 { margin-bottom: 5px; }
.iuxa-shovel p { color: var(--muted); line-height: 2; }
.principle-list { border-top: 1px solid var(--iuxa-line); }
.principle-list article { padding: 18px 0; border-bottom: 1px solid var(--iuxa-line); }
.iuxa-hierarchy { margin-top: 24px; text-align: center; color: #e0d4b6; font-size: clamp(1.15rem, 2.6vw, 1.65rem); letter-spacing: .02em; }
.iuxa-hierarchy span { color: var(--muted); padding-inline: 8px; }
.influence-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.influence-list li { padding: 5px 12px; border: 1px solid var(--iuxa-line); border-radius: 999px; color: var(--muted); font-size: .85rem; }
.iuxa-closing { padding: 68px 0 88px; border-top: 1px solid var(--iuxa-line); background: rgba(255,255,255,.012); }
.iuxa-closing h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 8px 0 10px; font-weight: 600; }
.iuxa-closing .text-link { display: inline-block; margin-top: 18px; }
@media (max-width: 980px) {
  .iuxa-page-hero-grid { grid-template-columns: 1fr 220px; gap: 24px; }
  .iuxa-grid { grid-template-columns: repeat(2,1fr); }
  .iuxa-unit:nth-child(2) { border-inline-start: 0; }
  .iuxa-unit:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .iuxa-page-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .iuxa-center-figure { grid-row: 1; }
  .iuxa-center-figure svg { width: 190px; }
  .iuxa-page-hero h1 { max-width: none; }
  .iuxa-grid { grid-template-columns: 1fr; }
  .iuxa-unit, .iuxa-unit:last-child { border-inline-start: 0; border-top: 1px solid var(--line); padding: 18px 4px; }
  .iuxa-unit:first-child { border-top: 0; }
  .iuxa-components .iuxa-grid { grid-template-columns: 1fr; }
  .iuxa-components .iuxa-unit { min-height: 0; }
  .iuxa-metaphors { grid-template-columns: 1fr; gap: 18px; }
}
.iuxa-why p, .iuxa-baseline p, .iuxa-book-plan > .container > p { max-width: 72ch; color: #d0d2d8; line-height: 2.15; margin-top: 10px; }
.baseline-steps { position: relative; height: 120px; margin: 28px 0 6px; border-bottom: 1px solid var(--iuxa-line); }
.baseline-step { position: absolute; inset-inline-start: 12%; bottom: 0; width: 28%; height: 50px; border-top: 2px solid #d8cba9; border-inline-end: 2px solid #d8cba9; }
.baseline-step::before { content: ''; position: absolute; inset-inline-start: 0; bottom: -1px; width: 100%; border-bottom: 2px dashed rgba(216,203,169,.65); }
.baseline-old, .baseline-new { position: absolute; color: var(--muted); font-size: .82rem; }
.baseline-old { inset-inline-start: 12%; bottom: 58px; }
.baseline-new { inset-inline-start: 42%; bottom: 8px; }
.iuxa-baseline .baseline-caption { font-size: .78rem; color: var(--muted); }
.book-part-list { list-style: none; margin-top: 20px; border-top: 1px solid var(--iuxa-line); }
.book-part-list li { padding: 14px 0; border-bottom: 1px solid var(--iuxa-line); color: #e5e3dc; }
.book-part-list li span { color: var(--muted); font-size: .84rem; }
.iuxa-opening-quote { margin-top: 34px; padding: 22px 24px; border-inline-start: 2px solid rgba(229,195,118,.45); background: rgba(255,255,255,.015); }
.iuxa-opening-quote p { color: var(--muted); line-height: 2.1; margin-bottom: 8px; }
.iuxa-opening-quote p:first-child { color: #e5dfd1; font-size: 1.08rem; }
.iuxa-opening-quote .hafez-verse { color: #e5dfd1; padding-inline-start: 12px; }

/* ---------- بازپرداخت بصری صفحه‌ی I.U.X.A: زنده اما کم‌هیاهو ---------- */
.iuxa-page {
  background:
    radial-gradient(760px 420px at 10% 10%, rgba(93,162,154,.07), transparent 65%),
    radial-gradient(700px 460px at 96% 34%, rgba(207,178,112,.055), transparent 68%);
}
.iuxa-page-hero { position: relative; overflow: hidden; }
.iuxa-page-hero-grid { position: relative; z-index: 1; }
.iuxa-center-figure {
  position: relative; isolation: isolate;
  width: min(100%, 320px); margin-inline: auto;
  padding: 20px; border: 1px solid rgba(229,195,118,.16); border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(229,195,118,.08), rgba(11,16,28,.22) 64%, transparent 66%);
}
.iuxa-center-figure::before, .iuxa-center-figure::after {
  content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
}
.iuxa-center-figure::before { inset: 9%; border: 1px dashed rgba(94,234,212,.14); }
.iuxa-center-figure::after { inset: -9%; background: radial-gradient(circle, rgba(94,234,212,.055), transparent 66%); filter: blur(8px); }
.iuxa-center-figure svg { width: 100%; animation: iuxa-breathe 7s ease-in-out infinite; }
.iuxa-orbit-dot { transform-origin: 130px 130px; animation: iuxa-orbit 14s linear infinite; }
@keyframes iuxa-orbit { to { transform: rotate(360deg); } }
@keyframes iuxa-breathe { 0%,100% { transform: scale(.98); } 50% { transform: scale(1.025); } }
.iuxa-toc { position: sticky; top: var(--header-h); z-index: 50; border-bottom: 1px solid var(--iuxa-line); background: rgba(7,10,18,.88); backdrop-filter: blur(12px); }
.iuxa-toc-inner { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: thin; }
.iuxa-toc-inner > span { flex: 0 0 auto; color: var(--muted); font-size: .78rem; margin-inline-end: 5px; }
.iuxa-toc-inner a { flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; color: #d8d9dc; font-size: .8rem; transition: background .2s, color .2s; }
.iuxa-toc-inner a:hover, .iuxa-toc-inner a:focus-visible { color: #f4e7c5; background: rgba(229,195,118,.1); }
.iuxa-quote-section { position: relative; overflow: hidden; }
.iuxa-quote-section::before { content: '“'; position: absolute; inset-inline-start: 7%; top: -44px; color: rgba(229,195,118,.09); font: 240px/1 Georgia,serif; pointer-events: none; }
.iuxa-components .iuxa-grid { gap: 12px; border: 0; }
.iuxa-components .iuxa-unit {
  position: relative; overflow: hidden; min-height: 205px; padding: 23px 24px;
  border: 1px solid var(--iuxa-line); border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  transition: transform .22s, border-color .22s, background .22s;
}
.iuxa-components .iuxa-unit:hover { transform: translateY(-3px); border-color: rgba(229,195,118,.34); background: linear-gradient(145deg, rgba(229,195,118,.055), rgba(255,255,255,.015)); }
.iuxa-components .iuxa-unit:nth-child(2) .iuxa-element-mark { color: #80cfc3; border-color: rgba(128,207,195,.32); }
.iuxa-components .iuxa-unit.iuxa-pending { background: linear-gradient(145deg, rgba(255,255,255,.018), rgba(255,255,255,.008)); }
.iuxa-element-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 14px; border: 1px solid rgba(229,195,118,.32); background: rgba(229,195,118,.08); color: #e4d2a6; font: 700 1.15rem/1 'Vazirmatn',sans-serif; direction: ltr; }
.iuxa-components .iuxa-unit .iuxa-status { position: absolute; inset-inline-end: 17px; top: 18px; padding: 3px 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; }
.iuxa-metaphors article { padding: 19px 18px 20px; border: 1px solid var(--iuxa-line); border-radius: 16px; background: rgba(255,255,255,.018); transition: border-color .2s, transform .2s; }
.iuxa-metaphors article:hover { border-color: rgba(94,234,212,.3); transform: translateY(-2px); }
.metaphor-mark { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 24px; color: #dbc99e; background: radial-gradient(circle,rgba(229,195,118,.1),rgba(255,255,255,.012)); }
.metaphor-mark svg { display: block; width: 66px; height: 66px; }
.u-factor { padding: 20px 18px; border-bottom: 1px solid var(--iuxa-line); transition: background .2s; }
.u-factor:nth-child(odd) { background: rgba(255,255,255,.013); }
.u-factor:hover { background: rgba(94,234,212,.035); }
.u-factor-num { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(94,234,212,.25); border-radius: 50%; color: #9bd9d0; background: rgba(94,234,212,.05); }
.iuxa-shovel { align-items: center; padding: 22px 20px; border: 1px solid rgba(229,195,118,.25); border-radius: 16px; background: linear-gradient(110deg,rgba(229,195,118,.055),transparent 75%); }
.shovel-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; border: 1px solid rgba(229,195,118,.3); background: rgba(229,195,118,.08); }
.baseline-steps { border-bottom: 0; border-radius: 14px; background: linear-gradient(180deg, transparent 0 62%, rgba(255,255,255,.025) 62% 100%); }
.baseline-step { border-color: #dbc99e; }
.baseline-step::before { border-color: #80cfc3; }
.iuxa-hierarchy { padding: 17px; border: 1px solid var(--iuxa-line); border-radius: 15px; background: rgba(255,255,255,.02); }
.principle-list article { padding-inline: 15px; transition: background .18s; }
.principle-list article:hover { background: rgba(255,255,255,.018); }
.iuxa-opening-quote { border-radius: 0 14px 14px 0; background: linear-gradient(100deg,rgba(229,195,118,.06),rgba(255,255,255,.012)); }
.iuxa-closing { background: radial-gradient(ellipse at 82% 90%,rgba(94,234,212,.045),transparent 60%), rgba(255,255,255,.012); }
@media (max-width: 700px) {
  .iuxa-center-figure { width: 228px; padding: 14px; }
  .iuxa-toc-inner { width: 100%; }
  .iuxa-components .iuxa-grid { gap: 10px; }
  .iuxa-components .iuxa-unit { min-height: 0; padding: 19px; }
  .iuxa-quote-section::before { inset-inline-start: 0; font-size: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .iuxa-center-figure svg, .iuxa-orbit-dot { animation: none !important; }
}

/* ---------- پوشه‌های تعاملی I.U.X.A (HTML native details/summary) ---------- */
.iuxa-folders { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.iuxa-folder-card {
  --folder-accent: #d8cba9;
  position: relative; min-width: 0; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(230,228,218,.13); border-radius: 21px;
  background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.01));
  box-shadow: 0 18px 42px rgba(0,0,0,.15);
  transition: transform .24s ease,border-color .24s ease,box-shadow .24s ease;
}
.iuxa-folder-card:nth-child(2) { --folder-accent:#83cfc3; }
.iuxa-folder-card:nth-child(3),.iuxa-folder-card:nth-child(4) { --folder-accent:#b9b4a6; }
.iuxa-folder-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb,var(--folder-accent) 42%,transparent); box-shadow: 0 22px 48px rgba(0,0,0,.23); }
.iuxa-folder-card[open] { border-color: color-mix(in srgb,var(--folder-accent) 48%,transparent); }
.iuxa-folder-card summary {
  position: relative; z-index: 1; min-height: 176px; display: flex; align-items: flex-end; gap: 15px;
  padding: 27px 24px 23px; list-style: none; cursor: pointer; outline: none;
  background: radial-gradient(130% 115% at 10% 0%, color-mix(in srgb,var(--folder-accent) 11%,transparent),transparent 63%),
              linear-gradient(145deg,rgba(16,23,34,.42),rgba(8,12,20,.78));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.iuxa-folder-card summary::-webkit-details-marker { display:none; }
.iuxa-folder-card summary::before {
  content:''; position:absolute; z-index:-1; top:-1px; inset-inline-start:25px; width:90px; height:17px;
  border:1px solid rgba(255,255,255,.12); border-bottom:0; border-radius:11px 11px 0 0;
  background:linear-gradient(90deg,rgba(255,255,255,.075),rgba(255,255,255,.018));
}
.iuxa-folder-card summary::after {
  content:''; position:absolute; z-index:-2; left:7%; right:7%; top:15px; height:110px;
  border-radius:14px; border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(125deg,rgba(94,234,212,.09),rgba(229,195,118,.045),rgba(255,255,255,.02));
  transform:rotate(-2deg) translateY(4px); transition:transform .35s ease;
}
.iuxa-folder-card[open] summary::after { transform:rotate(-4deg) translateY(-3px); }
.iuxa-folder-card summary:focus-visible { outline:2px solid var(--folder-accent); outline-offset:-5px; border-radius:20px; }
.folder-letter { flex:0 0 53px; width:53px; height:53px; display:grid; place-items:center; border-radius:17px;
  border:1px solid color-mix(in srgb,var(--folder-accent) 45%,transparent); color:var(--folder-accent);
  background:color-mix(in srgb,var(--folder-accent) 9%,#0b101c); font:700 1.4rem/1 'Vazirmatn',sans-serif; direction:ltr;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 8px 24px rgba(0,0,0,.15); }
.folder-heading { min-width:0; display:grid; gap:5px; }
.folder-status { color:var(--folder-accent); font-size:.75rem; }
.folder-title { color:#f0eee8; font-size:1.06rem; font-weight:700; line-height:1.7; }
.folder-toggle { flex:0 0 34px; width:34px; height:34px; display:grid; place-items:center; margin-inline-start:auto;
  border:1px solid rgba(255,255,255,.16); border-radius:50%; color:var(--folder-accent); font:300 1.45rem/1 sans-serif;
  transition:transform .3s ease,background .3s ease; }
.iuxa-folder-card[open] .folder-toggle { transform:rotate(45deg); background:rgba(255,255,255,.06); }
.folder-detail { padding:0 24px 23px; color:#c9cbd1; line-height:2; animation:folder-in .25s ease both; }
.folder-detail p { margin-top:10px; }
.folder-detail a { display:inline-block; margin-top:13px; color:var(--folder-accent); font-size:.85rem; font-weight:700; text-underline-offset:4px; }
.folder-detail a:hover { text-decoration:underline; }
.folder-tags { list-style:none; display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.folder-tags li { padding:4px 10px; border:1px solid rgba(255,255,255,.11); border-radius:999px; color:#cbd4d2; background:rgba(94,234,212,.035); font-size:.78rem; }
.folder-boundary { padding:10px 12px; border-inline-start:2px solid rgba(229,195,118,.45); background:rgba(255,255,255,.025); color:#d0cec7; font-size:.88rem; }
@keyframes folder-in { from{opacity:0;transform:translateY(-5px)} to{opacity:1;transform:translateY(0)} }
@media(max-width:700px) { .iuxa-folders{grid-template-columns:1fr;gap:13px}.iuxa-folder-card summary{min-height:146px;padding:22px 18px 18px}.folder-detail{padding-inline:18px} }
@media(prefers-reduced-motion:reduce) { .iuxa-folder-card,.folder-toggle,.iuxa-folder-card summary::after{transition:none}.folder-detail{animation:none} }

/* ---------- روایت‌های آموزنده (تحریریه‌ای و بازبینی‌شده) ---------- */
.editorial-stories { display: grid; gap: 24px; }
.editorial-story {
  padding: clamp(20px, 4vw, 36px); border-radius: 22px;
  background: var(--glass); border: 1px solid rgba(229, 195, 118, 0.28);
}
.editorial-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.editorial-kind { color: var(--teal); font-size: .8rem; font-weight: 800; }
.editorial-meta time { color: var(--muted); font-size: .8rem; }
.editorial-story h2 { color: var(--ink); font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.75; margin-bottom: 14px; }
.editorial-copy { max-width: 76ch; }
.editorial-copy p, .editorial-insight p { color: var(--muted); line-height: 2.15; margin: 0 0 12px; }
.editorial-insight { margin-top: 20px; padding: 16px 18px; border-inline-start: 3px solid var(--teal); background: rgba(94, 234, 212, .05); border-radius: 12px; }
.editorial-insight h3 { color: var(--teal); font-size: .95rem; margin-bottom: 6px; }
.editorial-insight p { margin-bottom: 0; }
.editorial-story .news-action { margin-top: 14px; display: block; }
.editorial-source { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.editorial-source a { color: var(--gold); text-underline-offset: 3px; }
.editorial-empty { padding: 36px 22px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }
.editorial-empty h2 { color: var(--ink); font-size: 1.2rem; }
.editorial-empty p { margin-top: 8px; line-height: 1.9; }
