/* ══════════════════════════════════════════════════════════════
   کوچ — استایل پایه مشترک همه صفحات (base.css)
   هر صفحه: base.css + فایل اختصاصی خودش (مثل about.css)
   ══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "IRANSansX";
  src: url("/fonts/IRANSansX-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("/fonts/IRANSansX-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("/fonts/IRANSansX-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --primary: #1f2937;
  --primary-2: #374151;
  --teal: #0891b2;
  --teal-deep: #08758e;
  --teal-bright: #06b6d4;
  --gold: #06b6d4;
  --gold-soft: #e0f7fa;
  --indigo: #0891b2;
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --card: #f8feff;
  --line: #dfe8f0;
  --muted: #64748b;
  --ink: #1f2937;
  --ink-soft: #374151;
  --danger: #e11d48;
  --shadow: 0 12px 34px rgba(31, 41, 55, .09);
  --shadow-lg: 0 28px 70px rgba(31, 41, 55, .16);
  --font: "IRANSansX", Tahoma, system-ui, sans-serif;
}

html[data-theme="dark"] {
  --primary: #1f2937;
  --primary-2: #374151;
  --teal: #06b6d4;
  --teal-deep: #22d3ee;
  --teal-bright: #a5f3fc;
  --gold: #06b6d4;
  --gold-soft: #e0f7fa;
  --indigo: #22d3ee;
  --bg: #111827;
  --bg-soft: #1f2937;
  --card: #1f2937;
  --line: rgba(255, 255, 255, .1);
  --muted: #cbd5e1;
  --ink: #f8fafc;
  --ink-soft: #e2e8f0;
  --shadow: 0 12px 34px rgba(0, 0, 0, .35);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .5);
}

/* ── پایه ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.9; overflow-x: hidden; transition: background .4s ease, color .4s ease; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
section[id], footer[id], div[id] { scroll-margin-top: 96px; }
::selection { background: var(--teal-deep); color: #ffffff; }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary-2), var(--teal-deep)); border-radius: 99px; }

.container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 880px; }
.section { padding: 84px 0; }
.section-soft { background: color-mix(in srgb, var(--bg-soft) 60%, transparent); position: relative; overflow: hidden; }
.section-soft::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(31, 41, 55,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 41, 55,.05) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent); }
html[data-theme="dark"] .section-soft::before { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }
.section-soft > .container { position: relative; }

/* گریدهای کمکی */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.center { text-align: center; }

/* ── آیکون ── */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }
.icon-xl { width: 32px; height: 32px; }
.icon-gold { color: var(--gold); }
.star { fill: var(--gold); stroke: var(--gold); }
.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars-center { display: flex; justify-content: center; }
.flip-x { transform: scaleX(-1); }

/* ── دکمه ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 14px; padding: 12px 20px; font-size: 14px; font-weight: 800; line-height: 1.6; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn-lg { padding: 15px 26px; font-size: 15px; border-radius: 16px; font-weight: 900; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(to left, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 12px 30px rgba(31, 41, 55,.25); }
html[data-theme="dark"] .btn-primary { background: linear-gradient(to left, var(--teal), var(--teal-deep)); color: #1f2937; box-shadow: 0 12px 30px rgba(6, 182, 212,.2); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(31, 41, 55,.3); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(6, 182, 212,.4); box-shadow: var(--shadow); }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 14px 34px rgba(0,0,0,.18); font-weight: 900; }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.24); }
.btn-teal { background: linear-gradient(to left, var(--teal-deep), #075f75); color: #ffffff; padding: 10px 18px; font-size: 13.5px; }
.btn-teal:hover { transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.08); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -70%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); transition: left .6s ease; }
.btn-shine:hover::after { left: 120%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.theme-toggle .icon { width: 22px; height: 22px; transition: transform .25s ease, color .25s ease; }
.theme-toggle:hover .icon { transform: rotate(-12deg) scale(1.08); }
.theme-icon-moon { color: var(--primary-2); }
.theme-icon-sun { color: var(--teal); }
html[data-theme="dark"] .theme-icon-moon { color: var(--ink-soft); }
html[data-theme="dark"] .theme-icon-sun { color: var(--teal-bright); }
.arrow-anim { transition: transform .25s ease; }
a:hover .arrow-anim, button:hover .arrow-anim { transform: translateX(-4px); }

/* ── تیتر بخش ── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid rgba(6, 182, 212,.25); background: rgba(6, 182, 212,.1); color: var(--teal-deep); padding: 6px 16px; font-size: 13px; font-weight: 800; }
html[data-theme="dark"] .eyebrow { color: var(--teal-bright); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eyebrow-gold { border-color: rgba(6, 182, 212,.3); background: rgba(6, 182, 212,.1); color: var(--teal-deep); }
html[data-theme="dark"] .eyebrow-gold { color: var(--gold-soft); }
.eyebrow-light { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: var(--gold-soft); }
.dot-pulse { animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; max-width: 640px; margin-inline: auto; }
.sec-head-start { align-items: flex-start; text-align: right; margin-inline: 0; }
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; line-height: 1.6; letter-spacing: -.02em; text-wrap: balance; }
.sec-desc { font-size: 15.5px; line-height: 2; color: var(--muted); }
.sec-head-light .sec-title { color: #fff; }
.sec-head-light .sec-desc { color: rgba(255,255,255,.7); }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.split-head .btn { flex-shrink: 0; }

/* ── انیمیشن ظاهرشدن ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.reveal-scale { transform: translateY(20px) scale(.97); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── لینک دسترسی ── */
.skip-link { position: absolute; right: -9999px; }
.skip-link:focus { right: 16px; top: 16px; z-index: 200; background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 800; }

/* ── نوار پیشرفت ── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold), var(--primary-2)); transition: width .15s linear; }

/* ═══ نوار بالا ═══ */
.topbar { background: var(--primary); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; position: relative; z-index: 40; }
html[data-theme="dark"] .topbar { background: #111827; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding-block: 6px; }
.topbar-note { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); font-weight: 600; }
.topbar-links { display: flex; align-items: center; gap: 20px; color: rgba(255,255,255,.8); font-weight: 600; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar-links a:hover { color: #fff; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 14px; font-size: 12px; font-weight: 800; color: var(--gold-soft); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal-bright); animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* ═══ سربرگ ═══ */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: all .3s ease; }
.site-header.scrolled { background: color-mix(in srgb, var(--card) 85%, transparent); border-bottom-color: var(--line); box-shadow: 0 10px 36px rgba(31, 41, 55,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border: 1px solid rgba(6, 182, 212,.18); border-radius: 14px; background: linear-gradient(145deg, #fff, #f8feff); box-shadow: 0 10px 24px rgba(31, 41, 55,.2); transition: transform .3s ease; overflow: hidden; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark img { display: block; width: 40px; height: 34px; object-fit: contain; }
.brand-mark-sm { width: 40px; height: 40px; border-radius: 12px; }
.brand-mark-sm img { width: 34px; height: 29px; }
.brand-text { line-height: 1.5; }
.brand-text strong { display: block; font-size: 16.5px; font-weight: 900; }
.brand-text > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text > span { color: rgba(255,255,255,.6); }
.brand-mark-glass { background: linear-gradient(145deg, #fff, #f8feff); box-shadow: 0 8px 22px rgba(0,0,0,.18); border-color: rgba(255,255,255,.55); }

.main-nav { display: flex; align-items: center; gap: 18px; font-size: 13.5px; font-weight: 700; }
.nav-link { position: relative; color: var(--muted); transition: color .2s; display: inline-flex; align-items: center; gap: 4px; padding-block: 8px; }
.nav-link:hover, .nav-link.active { color: var(--ink); font-weight: 900; }
.nav-link::after { content: ""; position: absolute; bottom: 2px; right: 0; width: 0; height: 2px; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; right: 50%; transform: translateX(50%) translateY(12px); width: 380px; max-width: 86vw; padding-top: 14px; opacity: 0; visibility: hidden; transition: all .28s cubic-bezier(.22,1,.36,1); }
.dropdown-sm { width: 300px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(50%) translateY(0); }
.drop-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; transition: background .2s; background: var(--card); }
.drop-item:hover { background: var(--bg-soft); }
.dropdown .drop-item:first-child { border-radius: 16px 16px 0 0; border: 1px solid var(--line); border-bottom: none; padding-top: 14px; }
.dropdown .drop-item:last-child { border-radius: 0 0 16px 16px; border: 1px solid var(--line); border-top: none; padding-bottom: 14px; }
.dropdown .drop-item:not(:first-child):not(:last-child) { border-inline: 1px solid var(--line); }
.drop-item strong { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.drop-item small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.drop-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; background: linear-gradient(135deg, rgba(6, 182, 212,.15), rgba(6, 182, 212,.15)); color: var(--teal-deep); transition: all .25s; }
html[data-theme="dark"] .drop-icon { color: var(--teal-bright); }
.drop-item:hover .drop-icon { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; }
.drop-icon-dark { background: rgba(31, 41, 55,.06); color: var(--primary-2); }
html[data-theme="dark"] .drop-icon-dark { background: rgba(255,255,255,.08); color: #fff; }
.drop-item:hover .drop-icon-dark { background: var(--primary); color: #fff; }
html[data-theme="dark"] .drop-item:hover .drop-icon-dark { background: var(--teal); color: #ffffff; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

/* کشو موبایل */
.drawer-overlay { position: fixed; inset: 0; z-index: 130; background: rgba(31, 41, 55,.5); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: all .3s; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 140; width: min(86%, 380px); background: var(--card); box-shadow: 0 0 60px rgba(0,0,0,.25); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .4s cubic-bezier(.22,1,.36,1); }
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand strong { font-size: 15px; font-weight: 900; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 700; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; transition: background .2s; color: var(--ink); }
.drawer-nav a:hover { background: var(--bg-soft); }
.drawer-nav a.current { background: rgba(6, 182, 212,.1); color: var(--teal-deep); }
html[data-theme="dark"] .drawer-nav a.current { color: var(--teal-bright); }
.drawer-nav a svg { opacity: .4; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); }

/* ═══ هیرو داخلی صفحات ═══ */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 72px; text-align: center; background:
  radial-gradient(600px 340px at 85% -10%, rgba(6, 182, 212,.14), transparent 62%),
  radial-gradient(700px 420px at 8% 10%, rgba(6, 182, 212,.12), transparent 60%); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(31, 41, 55,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 41, 55,.05) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
html[data-theme="dark"] .page-hero::before { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }
.page-hero > .container { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.crumbs { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; transition: all .2s; }
.crumbs a:hover { border-color: rgba(6, 182, 212,.4); color: var(--ink); }
.crumbs .sep { opacity: .5; transform: rotate(90deg); }
.crumbs .current { background: var(--primary); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; }
html[data-theme="dark"] .crumbs .current { background: var(--teal); color: #ffffff; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; line-height: 1.5; text-wrap: balance; }
.page-hero h1 .hl { background: linear-gradient(to left, var(--teal-deep), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] .page-hero h1 .hl { background: linear-gradient(to left, var(--teal-bright), var(--teal)); -webkit-background-clip: text; background-clip: text; }
.page-hero > .container > p { max-width: 640px; font-size: 15.5px; line-height: 2.1; color: var(--muted); }
.page-hero--img { color: #fff; }
.page-hero--img::before { opacity: .35; }
.page-hero--img .hero-bg { position: absolute; inset: 0; }
.page-hero--img .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--img .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,50,.94), rgba(8,22,50,.72) 55%, rgba(8,22,50,.6)); }
.page-hero--img h1, .page-hero--img > .container > p { color: #fff; }
.page-hero--img > .container > p { color: rgba(255,255,255,.82); }
.page-hero--img h1 .hl { background: linear-gradient(to left, var(--gold-soft), var(--gold)); -webkit-background-clip: text; background-clip: text; }
.page-hero--img .crumbs { color: rgba(255,255,255,.75); }
.page-hero--img .crumbs a { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.page-hero--img .crumbs .current { background: var(--gold); color: var(--primary); }

/* ═══ کارت عمومی ═══ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; box-shadow: 0 10px 24px rgba(6, 182, 212,.3); }
.card-icon.navy { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 24px rgba(31, 41, 55,.25); }
.card-icon.gold { background: linear-gradient(135deg, var(--gold), var(--teal-deep)); color: #fff; box-shadow: 0 10px 24px rgba(6, 182, 212,.2); }
.card-icon.indigo { background: linear-gradient(135deg, var(--indigo), var(--teal-deep)); color: #fff; box-shadow: 0 10px 24px rgba(6, 182, 212,.2); }
.card h3 { margin-top: 18px; font-size: 18px; font-weight: 900; }
.card p { margin-top: 10px; font-size: 14px; line-height: 2; color: var(--muted); }

/* چک‌لیست */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 600; line-height: 2; }
.check-list .icon { width: 22px; height: 22px; margin-top: 7px; color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-deep)); border-radius: 50%; padding: 5px; box-sizing: content-box; width: 14px; height: 14px; flex-shrink: 0; }
.check-list.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }

/* جعبه هشدار/نکته */
.note-box { display: flex; gap: 14px; border-radius: 18px; padding: 20px 22px; font-size: 14px; line-height: 2; }
.note-box .icon { flex-shrink: 0; margin-top: 6px; }
.note-gold { border: 1px dashed rgba(6, 182, 212,.45); background: rgba(6, 182, 212,.07); }
.note-gold .icon { color: var(--teal-deep); }
.note-teal { border: 1px dashed rgba(6, 182, 212,.4); background: rgba(6, 182, 212,.07); }
.note-teal .icon { color: var(--teal-deep); }
html[data-theme="dark"] .note-teal .icon { color: var(--teal-bright); }
.note-rose { border: 1px dashed rgba(225,29,72,.35); background: rgba(225,29,72,.06); }
.note-rose .icon { color: var(--danger); }

/* ═══ جدول ═══ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
table.info-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.info-table thead th { background: linear-gradient(to left, var(--primary), var(--primary-2)); color: #fff; font-weight: 800; padding: 16px; text-align: right; white-space: nowrap; }
html[data-theme="dark"] .info-table thead th { background: linear-gradient(to left, #1f2937, #374151); }
.info-table tbody td { padding: 15px 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; vertical-align: top; }
.info-table tbody tr { transition: background .2s; }
.info-table tbody tr:hover { background: color-mix(in srgb, var(--bg-soft) 70%, transparent); }
.info-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-soft) 38%, transparent); }
.info-table tbody tr:nth-child(even):hover { background: color-mix(in srgb, var(--bg-soft) 70%, transparent); }
.pill { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 800; background: rgba(6, 182, 212,.12); color: var(--teal-deep); white-space: nowrap; }
html[data-theme="dark"] .pill { color: var(--teal-bright); }
.pill.gold { background: rgba(6, 182, 212,.14); color: var(--teal-deep); }
html[data-theme="dark"] .pill.gold { color: var(--gold-soft); }
.pill.navy { background: rgba(31, 41, 55,.08); color: var(--primary-2); }
html[data-theme="dark"] .pill.navy { background: rgba(255,255,255,.1); color: #fff; }

/* ═══ آکاردئون ═══ */
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.acc-item.open { border-color: rgba(6, 182, 212,.4); box-shadow: var(--shadow); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: none; border: none; color: var(--ink); padding: 18px 20px; font-size: 15px; font-weight: 800; text-align: right; line-height: 1.9; }
.acc-btn .acc-plus { position: relative; width: 32px; height: 32px; border-radius: 10px; background: var(--bg-soft); flex-shrink: 0; transition: background .25s, transform .3s; }
.acc-btn .acc-plus::before, .acc-btn .acc-plus::after { content: ""; position: absolute; top: 50%; right: 50%; background: var(--teal-deep); border-radius: 99px; transform: translate(50%, -50%); }
html[data-theme="dark"] .acc-btn .acc-plus::before, html[data-theme="dark"] .acc-btn .acc-plus::after { background: var(--teal-bright); }
.acc-btn .acc-plus::before { width: 14px; height: 2px; }
.acc-btn .acc-plus::after { width: 2px; height: 14px; transition: opacity .25s; }
.acc-item.open .acc-plus { background: rgba(6, 182, 212,.15); transform: rotate(90deg); }
.acc-item.open .acc-plus::after { opacity: 0; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.22,1,.36,1); }
.acc-panel > div { padding: 0 20px 20px; font-size: 14px; line-height: 2.1; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 16px; margin: 0 20px 20px; padding-inline: 0; }

/* ═══ تب ═══ */
.tab-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-btn { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 14px; padding: 11px 22px; font-size: 14px; font-weight: 800; transition: all .25s; }
.tab-btn:hover { border-color: rgba(6, 182, 212,.4); color: var(--ink); }
.tab-btn.active { background: linear-gradient(to left, var(--primary), var(--primary-2)); border-color: transparent; color: #fff; box-shadow: 0 10px 24px rgba(31, 41, 55,.22); }
html[data-theme="dark"] .tab-btn.active { background: linear-gradient(to left, var(--teal), var(--teal-deep)); color: #ffffff; }
.tab-panel { display: none; animation: fadeUp .45s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ═══ چیپ فیلتر + جستجو ═══ */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 9px 20px; font-size: 13.5px; font-weight: 800; transition: all .25s; }
.chip:hover { border-color: rgba(6, 182, 212,.4); color: var(--ink); transform: translateY(-2px); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(31, 41, 55,.2); }
html[data-theme="dark"] .chip.active { background: var(--teal); border-color: var(--teal); color: #ffffff; }
.search-box { position: relative; }
.search-box .icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box input { width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 16px; padding: 14px 50px 14px 18px; font-size: 14.5px; outline: none; transition: border-color .25s, box-shadow .25s; }
.search-box input:focus { border-color: rgba(6, 182, 212,.5); box-shadow: 0 0 0 4px rgba(6, 182, 212,.12); }
.search-box input::placeholder { color: var(--muted); opacity: .7; }
.filter-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.empty-state { display: none; text-align: center; padding: 56px 24px; background: var(--card); border: 1px dashed var(--line); border-radius: 22px; color: var(--muted); }
.empty-state.show { display: block; }
.empty-state .icon { width: 44px; height: 44px; opacity: .4; margin-bottom: 12px; }
.empty-state strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 6px; }

/* ═══ فرم ═══ */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 800; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 14px; padding: 13px 16px; font-size: 14px; outline: none; transition: border-color .25s, box-shadow .25s, background .25s; width: 100%; }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea { background: rgba(255,255,255,.04); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(6, 182, 212,.55); box-shadow: 0 0 0 4px rgba(6, 182, 212,.12); background: var(--card); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 600; }
.field .err { display: none; font-size: 12px; color: var(--danger); font-weight: 700; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(225,29,72,.1); }
.field.invalid .err { display: block; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: left 18px center, left 13px center; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 40px; }
.char-row { display: flex; justify-content: space-between; align-items: center; }
.char-count { font-size: 12px; color: var(--muted); font-weight: 700; }

/* مراحل عمودی */
.v-steps { display: flex; flex-direction: column; gap: 0; }
.v-step { position: relative; display: flex; gap: 20px; padding-bottom: 32px; }
.v-step:last-child { padding-bottom: 0; }
.v-step::before { content: ""; position: absolute; top: 56px; bottom: 4px; right: 27px; width: 2px; background: linear-gradient(180deg, var(--teal), var(--line)); border-radius: 99px; }
.v-step:last-child::before { display: none; }
.v-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: 20px; font-weight: 900; flex-shrink: 0; box-shadow: 0 10px 24px rgba(31, 41, 55,.2); position: relative; z-index: 1; }
.v-step:nth-child(even) .v-num { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #ffffff; }
.v-step h3 { font-size: 17px; font-weight: 900; padding-top: 4px; }
.v-step p { margin-top: 6px; font-size: 14px; line-height: 2; color: var(--muted); }

/* مراحل افقی ۴تایی */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; text-align: center; transition: transform .3s, box-shadow .3s; overflow: hidden; }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-card .step-n { position: absolute; top: 12px; left: 16px; font-size: 44px; font-weight: 900; line-height: 1; color: var(--ink); opacity: .06; }
.step-card .card-icon { margin-inline: auto; }
.step-card h3 { margin-top: 16px; font-size: 16px; font-weight: 900; }
.step-card p { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* پنل آمار */
.stats-panel { position: relative; overflow: hidden; border-radius: 32px; background: linear-gradient(to left, var(--primary), #374151, var(--teal-deep)); color: #fff; padding: 52px; box-shadow: 0 30px 80px rgba(31, 41, 55,.3); }
html[data-theme="dark"] .stats-panel { background: linear-gradient(to left, #111827, #1f2937, #374151); }
.stats-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to left, black, transparent 80%); }
.stats-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.stats-head h2 { margin-top: 16px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.6; text-wrap: balance; }
.stats-grid { position: relative; margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.stat + .stat { border-right: 1px solid rgba(255,255,255,.15); }
.stat-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); color: var(--gold-soft); }
.stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; line-height: 1.2; }
.stat-label { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.75); }

/* ═══ بنر دعوت به اقدام ═══ */
.cta-section { padding-bottom: 96px; }
.cta-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; border-radius: 32px; background: linear-gradient(to top left, #1f2937, #374151 55%, #374151); border: 1px solid rgba(255,255,255,.12); color: #fff; padding: 48px; box-shadow: 0 30px 80px rgba(31, 41, 55,.35); }
html[data-theme="dark"] .cta-banner { background: linear-gradient(to top left, #111827, #1f2937 55%, #1f2937); }
.cta-banner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 16%, rgba(6, 182, 212,.22), transparent 34%), radial-gradient(circle at 88% 90%, rgba(6, 182, 212,.18), transparent 34%); }
.cta-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to left, black, transparent 82%); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { margin-top: 16px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.6; text-wrap: balance; }
.cta-banner > div > p { margin-top: 12px; max-width: 560px; font-size: 14.5px; line-height: 2; color: rgba(255,255,255,.8); }
.cta-points { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.cta-points span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 9px 15px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); }
.cta-points .icon { color: var(--teal-bright); }
.cta-side { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }
.cta-side small { text-align: center; font-size: 12px; color: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; gap: 6px; }
.cta-side small .icon { color: var(--teal-bright); }

/* آواتارها، ستاره، نوار متحرک پایه */
.avatar-stack { display: flex; }
.avatar-stack img, .avatar-fallback, .avatar-more { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); box-shadow: 0 4px 12px rgba(31, 41, 55,.15); }
.avatar-stack > *:not(:first-child) { margin-right: -12px; }
.avatar-fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--primary-2)); color: #fff; font-size: 13px; font-weight: 900; }
.avatar-more { display: grid; place-items: center; background: var(--gold); color: #fff; font-size: 12px; font-weight: 900; }

/* ═══ نوار متحرک پایه ═══ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding-block: 16px; direction: ltr; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { flex-shrink: 0; display: flex; align-items: center; justify-content: space-around; gap: 32px; padding-right: 32px; min-width: 100%; }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); border-radius: 26px; padding: 14px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.mini-stat { display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--bg-soft) 70%, transparent); border-radius: 16px; padding: 14px 16px; transition: background .25s; line-height: 1.6; }
.mini-stat:hover { background: rgba(6, 182, 212,.08); }
.mini-stat-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--teal-deep); box-shadow: 0 2px 8px rgba(31, 41, 55,.06); flex-shrink: 0; }
html[data-theme="dark"] .mini-stat-icon { color: var(--teal-bright); }
.mini-stat strong { display: block; font-size: 18px; font-weight: 900; }
.mini-stat small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.play-circle { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(6, 182, 212,.12); color: var(--teal-deep); transition: all .25s; }
html[data-theme="dark"] .play-circle { color: var(--teal-bright); }
.btn-ghost:hover .play-circle { background: var(--teal); color: #fff; }
.play-circle svg { fill: currentColor; }

/* متن حقوقی + فهرست */
.prose { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 44px; box-shadow: var(--shadow); }
.prose h2 { font-size: 19px; font-weight: 900; margin: 34px 0 12px; padding-top: 30px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 10px; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h2 .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(6, 182, 212,.12); color: var(--teal-deep); font-size: 15px; flex-shrink: 0; }
html[data-theme="dark"] .prose h2 .n { color: var(--teal-bright); }
.prose p, .prose li { font-size: 14.5px; line-height: 2.2; color: var(--ink-soft); }
.prose ul { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.prose ul li { position: relative; padding-right: 22px; }
.prose ul li::before { content: ""; position: absolute; right: 4px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.prose .updated { display: inline-block; margin-bottom: 8px; font-size: 12.5px; font-weight: 800; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 5px 14px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.toc { position: sticky; top: 100px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.toc strong { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; margin-bottom: 14px; }
.toc a { display: block; font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 12px; border-radius: 10px; border-right: 2px solid transparent; transition: all .2s; }
.toc a:hover { color: var(--ink); background: var(--bg-soft); }
.toc a.active { color: var(--teal-deep); background: rgba(6, 182, 212,.08); border-right-color: var(--teal); }
html[data-theme="dark"] .toc a.active { color: var(--teal-bright); }

/* ═══ پاورقی ═══ */
.site-footer { position: relative; overflow: hidden; background: #1f2937; color: #fff; }
html[data-theme="dark"] .site-footer { background: #111827; }
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px 300px at 25% 0%, rgba(6, 182, 212,.1), transparent 70%), radial-gradient(300px 300px at 75% 100%, rgba(6, 182, 212,.1), transparent 70%); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand > p { margin-top: 20px; max-width: 340px; font-size: 14px; line-height: 2; color: rgba(255,255,255,.7); }
.footer-contact { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--teal); }
.socials { margin-top: 24px; display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: all .25s; }
.socials a:hover { transform: translateY(-4px); background: var(--teal); border-color: var(--teal); color: #ffffff; }
.footer-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; margin-bottom: 20px; }
.footer-title::before { content: ""; width: 4px; height: 20px; border-radius: 99px; background: linear-gradient(to bottom, var(--teal), var(--gold)); }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links a { padding: 8px; margin-inline: -8px; border-radius: 8px; font-size: 14px; color: rgba(255,255,255,.7); transition: all .2s; }
.footer-links a:hover { transform: translateX(-4px); color: #fff; }
.footer-news > p { font-size: 13.5px; line-height: 2; color: rgba(255,255,255,.65); }
.newsletter { margin-top: 16px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 8px; transition: border-color .25s; }
.newsletter:focus-within { border-color: rgba(6, 182, 212,.6); }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: #fff; font-family: inherit; font-size: 14px; padding: 8px 12px; }
.newsletter input::placeholder { color: rgba(255,255,255,.4); }
.news-privacy { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.5); }
.news-privacy .icon { color: var(--teal-bright); }
.footer-mini { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.footer-mini > div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px; text-align: center; line-height: 1.7; }
.footer-mini strong { display: block; font-size: 18px; font-weight: 900; color: var(--gold-soft); }
.footer-mini strong.teal { color: var(--teal-bright); }
.footer-mini small { font-size: 11.5px; color: rgba(255,255,255,.6); }
.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.footer-bottom nav { display: flex; align-items: center; gap: 20px; }
.footer-bottom nav a { transition: color .2s; }
.footer-bottom nav a:hover { color: #fff; }
.built-with { display: inline-flex; align-items: center; gap: 6px; }

/* ═══ شناور و پیام ═══ */
.floating-tools { position: fixed; bottom: 20px; left: 20px; z-index: 110; display: flex; flex-direction: column; gap: 10px; }
.float-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 12px 30px rgba(31, 41, 55,.2); transition: all .3s; }
.float-btn:hover { transform: translateY(-4px); background: var(--primary); color: #fff; }
#toTop { opacity: 0; visibility: hidden; transform: translateY(16px); }
#toTop.show { opacity: 1; visibility: visible; transform: none; }
.float-cta { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); border-color: transparent; color: #fff; box-shadow: 0 12px 30px rgba(6, 182, 212,.35); }
.float-cta:hover { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); transform: translateY(-4px) scale(1.05); }
.toast { position: fixed; bottom: 24px; right: 50%; transform: translateX(50%) translateY(96px); z-index: 150; display: flex; align-items: center; gap: 12px; width: calc(100% - 40px); max-width: 440px; background: rgba(31, 41, 55,.95); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(16px); color: #fff; font-size: 13.5px; font-weight: 700; border-radius: 16px; padding: 16px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); opacity: 0; transition: all .4s cubic-bezier(.22,1,.36,1); }
.toast.show { transform: translateX(50%) translateY(0); opacity: 1; }
.toast .icon { color: var(--teal-bright); }

/* ═══ ریسپانسیو پایه ═══ */
@media (min-width: 768px) { .container { padding-inline: 28px; } }
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-right: none; }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-side { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 860px) {
  .topbar { display: none; }
  .section { padding: 64px 0; }
  .page-hero { padding: 48px 0 56px; }
  .stats-panel { padding: 36px 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .check-list.cols-2 { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .prose { padding: 30px 22px; }
}
@media (max-width: 640px) {
  .header-actions .btn-primary { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border-radius: 20px; }
  .mini-stat { min-width: 0; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px; border-radius: 14px; }
  .mini-stat-icon { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; }
  .mini-stat > span:last-child { width: 100%; min-width: 0; flex: 0 0 auto; text-align: right; }
  .mini-stat strong { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
  .mini-stat small { font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
  .cta-section { padding-bottom: 72px; }
  .cta-banner { padding: 32px 22px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .built-with { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ═══ کارت خدمت ═══ */
.svc-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px 26px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(to left, var(--teal), var(--teal-deep)); }
.svc-card:nth-child(2)::before { background: linear-gradient(to left, var(--indigo), var(--teal-deep)); }
.svc-card:nth-child(3)::before { background: linear-gradient(to left, var(--gold), var(--teal-deep)); }
.svc-card:nth-child(4)::before { background: linear-gradient(to left, var(--teal), var(--teal-deep)); }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc-card h3 { margin-top: 18px; font-size: 18px; font-weight: 900; }
.svc-card > p { margin-top: 8px; font-size: 13.5px; line-height: 2; color: var(--muted); }
.svc-feats { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.svc-feats li { display: flex; align-items: center; gap: 8px; }
.svc-feats .icon { color: var(--teal-deep); }
html[data-theme="dark"] .svc-feats .icon { color: var(--teal-bright); }
.svc-link { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; color: var(--teal-deep); transition: gap .25s; margin-top: auto; }
html[data-theme="dark"] .svc-link { color: var(--teal-bright); }
.svc-card > p + .svc-feats { margin-bottom: 20px; }
.svc-link:hover { gap: 12px; }

/* ═══ کارت مقصد تصویری ═══ */
.dest-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.dest-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.dest-media { position: relative; overflow: hidden; }
.dest-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.dest-card:hover .dest-media img { transform: scale(1.08); }
.dest-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,50,.8), transparent 60%); }
.dest-region { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 5px 14px; }
.dest-name { position: absolute; bottom: 14px; right: 18px; left: 18px; z-index: 2; color: #fff; }
.dest-name strong { display: block; font-size: 20px; font-weight: 900; }
.dest-name small { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.8); }
.dest-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.dest-body ul { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dest-body ul li { display: flex; align-items: center; gap: 8px; }
.dest-body ul .icon { color: var(--teal-deep); }
html[data-theme="dark"] .dest-body ul .icon { color: var(--teal-bright); }
.dest-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ═══ کارت مقاله ═══ */
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.article-media { position: relative; overflow: hidden; }
.article-media img { width: 100%; aspect-ratio: 16/9.5; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.article-card:hover .article-media img { transform: scale(1.07); }
.article-cat { position: absolute; top: 14px; right: 14px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 5px 14px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.article-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-body h3 { font-size: 16.5px; font-weight: 900; line-height: 1.9; }
.article-body h3 a { transition: color .2s; }
.article-body h3 a:hover { color: var(--teal-deep); }
html[data-theme="dark"] .article-body h3 a:hover { color: var(--teal-bright); }
.article-body p { font-size: 13.5px; line-height: 2; color: var(--muted); }
.article-meta { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta a { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-deep); font-weight: 900; }
html[data-theme="dark"] .article-meta a { color: var(--teal-bright); }
/* ════════════════════════════════════════════
   استایل‌های نوار متحرک (Marquee)
════════════════════════════════════════════ */
.marquee {
  width: 100%;
  overflow: hidden;
  display: flex;
  position: relative;
  /* برای اطمینان از اینکه عناصر بیرون‌زده باعث اسکرول افقی نشوند */
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  /* زمان 20s سرعت حرکت را تعیین می‌کند */
  animation: koochMarquee 20s linear infinite;
}

/* توقف انیمیشن با رفتن موس روی مارکی (اختیاری) */
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2rem; /* فاصله بین آیتم‌ها */
  padding-left: 2rem; /* هماهنگ با gap برای لوپ بدون پرش */
}

.marquee-group span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap; /* جلوگیری از شکستن متن به خط بعد */
}

/* کلید انیمیشن برای قالب RTL */
@keyframes koochMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    /* در صفحات راست‌چین، برای حرکت نوار به سمت راست از مقدار مثبت استفاده می‌کنیم.
       اگر می‌خواهید جهت حرکت برعکس شود، این مقدار را به -100% تغییر دهید. */
    transform: translateX(100%);
  }
}
