/* ============================================================
   VANA GOLD — design system
   Dark, luxurious, black + gold. RTL / Persian (Vazirmatn).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* gold ramp */
  --g-100: #fbf1cf;
  --g-200: #f6e3a8;
  --g-300: #efce7f;
  --g-400: #e3bb63;
  --g-500: #d4af37;   /* primary gold */
  --g-600: #b8902a;
  --g-700: #8f6d1d;

  /* metallic gradient for accents */
  --gold-grad: linear-gradient(135deg, #f6e3a8 0%, #e3bb63 28%, #c9992f 60%, #f3d987 100%);
  --gold-grad-soft: linear-gradient(135deg, #e7c977 0%, #c9a13c 100%);

  /* ink / surfaces */
  --ink-000: #07070a;
  --ink-050: #0b0b0f;
  --ink-100: #101015;
  --ink-150: #15151c;
  --ink-200: #1b1b23;
  --ink-300: #24242e;

  /* text */
  --tx-hi: #f4f0e6;
  --tx-mid: #b6b0a4;
  --tx-lo: #79746b;

  /* lines */
  --line: rgba(212, 175, 55, 0.16);
  --line-soft: rgba(255, 255, 255, 0.06);

  /* state */
  --up: #3ad994;
  --down: #ff5d6c;

  /* shape */
  --r: 16px;        /* base radius, tweakable */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 24px;
  --maxw: 1200px;

  /* accent (tweakable) */
  /* The whole --accent-* scale has to exist, not just the shades that happened to be needed first.
     A var() that resolves to nothing invalidates its ENTIRE declaration, so a missing shade does not
     degrade to a default colour — it deletes the property. The selected-tab pill was the visible case:
        .t2-tabs button.active { background: linear-gradient(..., var(--accent-400), var(--accent-600));
                                 color: #1a1400; }
     dropped its gold background and kept the near-black text meant to sit on it, so the active tab
     turned into unreadable dark-on-dark. Same for the KYC banner's «done» ticks and the leaderboard. */
  --accent-200: var(--g-200);
  --accent-300: var(--g-300);
  --accent-400: var(--g-400);
  --accent-500: var(--g-500);
  --accent-600: var(--g-600);
  --accent-grad: var(--gold-grad);

  /* surface alias used by the KYC step icons */
  --bg-card-2: var(--ink-200);

  --sh-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  --glow-gold: 0 0 0 1px rgba(212,175,55,0.18), 0 30px 80px -40px rgba(212,175,55,0.35);
}

/* --r-md is carried by each variant too; a theme that overrode only three of the four radii would leave
   the tab bar and position cards stuck at the default rounding while everything around them changed. */
[data-corners="sharp"] { --r: 4px;  --r-sm: 3px;  --r-md: 4px;  --r-lg: 6px; }
[data-corners="soft"]  { --r: 16px; --r-sm: 10px; --r-md: 14px; --r-lg: 24px; }
[data-corners="round"] { --r: 26px; --r-sm: 16px; --r-md: 21px; --r-lg: 34px; }

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Vazirmatn", system-ui, sans-serif;
  background: var(--ink-050);
  color: var(--tx-hi);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* ambient warm glow top */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(900px 600px at 8% 6%, rgba(190,140,40,0.07), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--g-400); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 128px); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.28em;
  color: var(--accent-500); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent-500); opacity: .7; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
h1, h2, h3 { font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; }
h2.title { font-size: clamp(30px, 4vw, 46px); margin-top: 18px; }
.lead { color: var(--tx-mid); font-size: clamp(16px, 1.4vw, 19px); margin-top: 18px; }

.gold-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Inline links ---------- */
/* The `a { color: inherit }` reset above is load-bearing: nav items, sidebar links,
   card-wide anchors, footer columns and .btn anchors all rely on it. So link styling is
   opt-in through .link, and auto-applied only inside prose containers — never to chrome.
   The prose list also picks up .summary .note a and .profile-section p a via .note / p.
   The :not() list is what keeps control-shaped anchors out if one ever lands in a <p>.
   Specificity here deliberately beats app.css's .auth-foot a / .check a (which load
   later) so those two stop being near-misses of the same gold. */
.link,
:is(p, .note, .hint, .rules-content, .check, .auth-foot) a:not(.btn):not(.chip):not(.badge):not(.more, .qa, .side-link, .brand, .tb-icon, .bankcard, .export-btn, .share-btn, .kyc-banner-btn) {
  color: var(--accent-200);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent-200) 45%, transparent);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.link:hover, .link:focus-visible,
:is(p, .note, .hint, .rules-content, .check, .auth-foot) a:not(.btn):not(.chip):not(.badge):not(.more, .qa, .side-link, .brand, .tb-icon, .bankcard, .export-btn, .share-btn, .kyc-banner-btn):is(:hover, :focus-visible) {
  color: var(--g-100);
  text-decoration-color: currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding-inline: 26px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 16px; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold {
  background: var(--accent-grad); color: #2a1f04;
  box-shadow: 0 14px 34px -14px rgba(212,175,55,0.6), inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(212,175,55,0.75), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.02); color: var(--tx-hi);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--g-500); background: rgba(212,175,55,0.07); transform: translateY(-2px); }
.btn-sm { height: 42px; font-size: 14.5px; padding-inline: 18px; }
.btn-block { width: 100%; }

/* chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding-inline: 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  font-size: 13.5px; color: var(--tx-mid);
}
.chip svg { width: 15px; height: 15px; color: var(--accent-500); }

.pct { font-weight: 600; font-size: 13px; }
.pct.up { color: var(--up); }
.pct.down { color: var(--down); }

/* ---------- Card ---------- */
.card {
  position: relative; border-radius: var(--r);
  background: linear-gradient(180deg, var(--ink-150), var(--ink-100));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
}
.card.lined { border-color: var(--line); }

/* ============================================================
   NAV
   ============================================================ */
.ticker {
  position: relative; z-index: 5;
  border-bottom: 1px solid var(--line-soft);
  background: var(--ink-000);
  font-size: 13px; color: var(--tx-mid);
  overflow: hidden;
}
.ticker .row {
  display: flex; gap: 36px; align-items: center;
  white-space: nowrap; padding-block: 9px;
  animation: ticker 34s linear infinite;
  width: max-content;
}
.ticker .row span { display: inline-flex; gap: 8px; align-items: center; }
.ticker b { color: var(--tx-hi); font-weight: 600; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
[data-ticker="off"] .ticker { display: none; }

header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink-050) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand .wm { font-weight: 700; font-size: 19px; letter-spacing: .04em; }
.brand .wm small { display: block; font-size: 10.5px; letter-spacing: .34em; color: var(--accent-500); font-weight: 600; }
.nav-links { display: flex; gap: 6px; margin-inline-start: 18px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: 15px; color: var(--tx-mid);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--tx-hi); background: rgba(255,255,255,0.04); }
.nav-cta { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--tx-hi); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* mobile menu */
.mobile-menu { display: none; }

/* ============================================================
   HERO  (3 layouts via [data-hero])
   ============================================================ */
.hero { position: relative; z-index: 1; padding-block: clamp(48px, 6vw, 92px) clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 70px); letter-spacing: -0.02em; }
.hero h1 .gold-text { display: inline-block; }
.hero .lead { max-width: 520px; font-size: clamp(16px, 1.5vw, 20px); }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* glowing coin visual */
.coin-stage { position: relative; display: grid; place-items: center; min-height: 360px; }
.coin-stage::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.30), transparent 62%);
  filter: blur(14px);
}
/* height:auto لازم است تا صفت های width/height روی خودِ تگ img فقط نسبت ابعاد را بدهند (جلوگیری از
   پرش چیدمان هنگام بارگذاری) و ارتفاع ۸۶۰ پیکسلی تصویر را تحمیل نکنند. */
.coin-stage img { position: relative; width: min(78%, 360px); height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)); }

/* price card */
.price-card { padding: 22px; }
.price-card .pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.price-card .pc-head .t { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--tx-mid); }
.price-card .pc-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(58,217,148,0.18); }
.price-big { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; }
.price-sub { color: var(--tx-lo); font-size: 13.5px; margin-top: 2px; }
.spark { margin-top: 14px; width: 100%; height: 96px; }
.pc-foot { display: flex; gap: 10px; margin-top: 16px; }
.tf-tabs { display: inline-flex; gap: 4px; background: var(--ink-200); padding: 4px; border-radius: 999px; }
.tf-tabs button { border: 0; background: transparent; color: var(--tx-mid); font-size: 12.5px; padding: 5px 12px; border-radius: 999px; }
.tf-tabs button.active { background: var(--accent-grad); color: #2a1f04; font-weight: 600; }

.hero-visual { display: grid; gap: 22px; }

/* hero default (1): split — copy + visual, strip hidden */
.hero-strip { display: none; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 46px; }

/* hero layout 2: centered */
[data-hero="2"] .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
[data-hero="2"] .hero .lead { margin-inline: auto; }
[data-hero="2"] .hero-actions, [data-hero="2"] .hero-trust { justify-content: center; }
[data-hero="2"] .hero-visual { order: -1; }
[data-hero="2"] .coin-stage { min-height: 220px; }
[data-hero="2"] .coin-stage img { width: min(56%, 220px); }
[data-hero="2"] .price-card { display: none; }
[data-hero="2"] .hero-strip { display: grid; }

/* hero layout 3: editorial — big type, market strip below */
[data-hero="3"] .hero-grid { grid-template-columns: 1fr; gap: 28px; }
[data-hero="3"] .hero-visual { display: none; }
[data-hero="3"] .hero h1 { font-size: clamp(42px, 8vw, 92px); max-width: 15ch; }
[data-hero="3"] .hero .lead { max-width: 640px; }
[data-hero="3"] .hero-strip { display: grid; }

/* market mini cards (used in strip + market section) */
.mkt { padding: 16px 18px; }
.mkt .name { font-size: 14px; color: var(--tx-mid); display: flex; align-items: center; gap: 8px; }
.mkt .val { font-size: 22px; font-weight: 700; margin-top: 8px; }
.mkt .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.mkt .unit { font-size: 12px; color: var(--tx-lo); }

/* ============================================================
   MARKET SECTION
   ============================================================ */
.mkt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ============================================================
   VAHED explainer
   ============================================================ */
.vahed { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.vahed-visual { position: relative; padding: 34px; }
.vahed-coin {
  display: grid; place-items: center; gap: 4px;
  aspect-ratio: 1; width: 190px; margin-inline: auto;
  border-radius: 50%; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 35%, rgba(212,175,55,0.14), transparent 70%);
}
.vahed-coin .u { font-size: 46px; font-weight: 800; }
.vahed-coin .l { font-size: 13px; color: var(--accent-500); letter-spacing: .2em; }
.vahed-eq { display: grid; gap: 12px; margin-top: 26px; }
.eq-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: rgba(255,255,255,0.015); }
.eq-row .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(212,175,55,0.1); color: var(--accent-500); flex: none; }
.eq-row .ic svg { width: 20px; height: 20px; }
.eq-row .k { font-size: 13.5px; color: var(--tx-lo); }
.eq-row .v { font-size: 18px; font-weight: 700; }
.eq-row .v small { font-size: 13px; color: var(--tx-mid); font-weight: 500; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 26px 24px 28px; position: relative; overflow: hidden; }
.step .n { font-size: 13px; font-weight: 700; color: var(--accent-500); letter-spacing: .2em; }
.step .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(212,175,55,0.16), rgba(212,175,55,0.04));
  border: 1px solid var(--line); color: var(--accent-200); margin: 14px 0 18px; }
.step .ic svg { width: 26px; height: 26px; }
.step h3 { font-size: 19px; }
.step p { color: var(--tx-mid); font-size: 14.5px; margin-top: 8px; }
.step .arrow { position: absolute; inset-inline-start: -10px; top: 40px; color: var(--line); }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 28px 26px; transition: transform .22s, border-color .22s; }
.feat:hover { transform: translateY(-4px); border-color: var(--line); }
.feat .ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(212,175,55,0.1); color: var(--accent-200); margin-bottom: 18px; border: 1px solid var(--line); }
.feat .ic svg { width: 24px; height: 24px; }
.feat h3 { font-size: 19px; }
.feat p { color: var(--tx-mid); font-size: 14.5px; margin-top: 10px; }

/* ============================================================
   CHART SECTION
   ============================================================ */
.chart-wrap { padding: 26px 26px 18px; }
.chart-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.chart-price { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.chart-svg { width: 100%; height: clamp(220px, 30vw, 320px); }
.chart-note { font-size: 12.5px; color: var(--tx-lo); margin-top: 10px; text-align: center; }

/* ============================================================
   REFERRAL
   ============================================================ */
.ref { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center;
  padding: clamp(34px, 4vw, 64px); border-radius: var(--r-lg); overflow: hidden; position: relative;
  border: 1px solid var(--line); background:
    radial-gradient(700px 300px at 85% 0%, rgba(212,175,55,0.12), transparent 60%),
    linear-gradient(180deg, var(--ink-150), var(--ink-100)); }
.ref-code { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; margin-top: 22px;
  border: 1px dashed var(--g-600); border-radius: var(--r-sm); background: rgba(212,175,55,0.06); max-width: 420px; flex-wrap: wrap; }
.ref-code .code { font-size: 22px; font-weight: 800; letter-spacing: .12em; color: var(--accent-200); }
.ref-code .ref-ph { display: inline-flex; align-items: center; gap: 9px; color: var(--tx-mid); font-size: 14.5px; }
.ref-code .ref-ph svg { width: 18px; height: 18px; color: var(--accent-500); flex: none; }
.ref-code .btn { margin-inline-start: auto; }
.ref-stats { display: grid; gap: 14px; }
.ref-stat { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.ref-stat .big { font-size: 30px; font-weight: 800; }
.ref-stat .lbl { color: var(--tx-mid); font-size: 14px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { text-align: center; padding: clamp(48px, 6vw, 84px); border-radius: var(--r-lg);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  background: radial-gradient(800px 380px at 50% -30%, rgba(212,175,55,0.18), transparent 65%), var(--ink-100); }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 50px); }
.cta-band .lead { margin: 18px auto 0; max-width: 540px; }
.cta-band .hero-actions { justify-content: center; }

/* ============================================================
   DOC PAGES (about / faq / contact) — public layout, long-form text
   ============================================================ */
.doc-page { padding-block: clamp(40px, 7vw, 84px) clamp(48px, 8vw, 96px); max-width: 820px; }
.doc-head { margin-bottom: 40px; }
.doc-head h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.3; }
.doc-head .doc-latin { display: block; font-size: .42em; letter-spacing: .22em; color: var(--tx-lo);
  font-weight: 600; margin-top: 8px; }
.doc-head .lead { color: var(--tx-mid); font-size: 17px; line-height: 2; margin-top: 18px; }
.doc-sec { margin-top: 40px; }
.doc-sec h2 { font-size: 21px; margin-bottom: 14px; }
.doc-sec p { color: var(--tx-mid); font-size: 15.5px; line-height: 2.1; margin-bottom: 14px; }
.doc-list { list-style: none; display: grid; gap: 12px; margin-top: 6px; }
.doc-list li { color: var(--tx-mid); font-size: 15.5px; line-height: 2; padding-inline-start: 20px; position: relative; }
.doc-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-grad); }
.doc-list b { color: var(--tx-hi); }
.doc-note { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* FAQ accordion. <details> keeps every answer in the DOM, so the FAQPage structured data on that page
   describes text that is genuinely present — which is what makes the markup legitimate. */
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--ink-050);
  margin-bottom: 10px; overflow: hidden; }
.faq-item > summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600;
  font-size: 15.5px; color: var(--tx-hi); display: flex; align-items: center; gap: 12px; transition: color .18s; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; margin-inline-start: auto; font-size: 20px; font-weight: 400;
  color: var(--accent-200); transition: transform .2s; }
.faq-item[open] > summary::after { content: "−"; }
.faq-item > summary:hover { color: var(--accent-200); }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--tx-mid); font-size: 15px; line-height: 2.1; }

/* ============================================================
   RULES PAGE
   Moved here from shell.css: /rules is a public document rendered by _LayoutPublic, which does
   not load the in-account stylesheets. The sticky offsets use the public header height (76px,
   .nav-in) rather than the app topbar variable that used to supply them.
   ============================================================ */
/* wider than the other doc pages: this one carries a sidebar TOC beside the text */
.rules-page { max-width: 1100px; }
.rules-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .rules-wrap { grid-template-columns: 1fr; } }
.rules-toc { position: sticky; top: calc(76px + 16px); display: flex; flex-direction: column; gap: 2px; }
.rules-toc a { padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--tx-mid); transition: .15s; border-inline-start: 2px solid transparent; }
.rules-toc a:hover { color: var(--tx-hi); background: rgba(255,255,255,0.03); }
.rules-toc a.active { color: var(--accent-200); background: rgba(212,175,55,0.08); border-inline-start-color: var(--g-500); }

/* Narrow screens: the contents list stops being a sidebar and becomes a row of chips above the article.
   Both parts matter:
     • `position: static` — a sticky TOC pinned to the viewport floats over the text as you scroll, which
       is what made the list and the sections appear on top of each other.
     • the chip styling — stacked bare links in the body column are indistinguishable from the article's
       own text, so the menu stopped reading as a menu at all.
   These rules used to exist only in shell.css, which is loaded by the in-account layout. /rules is served
   by _LayoutPublic (it moved there so a public, cacheable page would stop issuing antiforgery cookies),
   and that layout loads vana-gold.css alone — so the page kept its desktop sidebar behaviour on phones.
   They live here now, next to the styles they override, where the page can actually see them. */
@media (max-width: 900px) {
  .rules-wrap > * { min-width: 0; }   /* grid items must be allowed to shrink below their content width */
  .rules-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
  .rules-toc a { padding: 7px 13px; font-size: 13px; border-radius: 999px;
    border: 1px solid var(--line-soft); background: rgba(255,255,255,0.025); }
  .rules-toc a.active { border-color: var(--g-500); background: rgba(212,175,55,0.1); }
}

.rules-content { max-width: 760px; }
.rules-content section { margin-bottom: 40px; scroll-margin-top: calc(76px + 20px); }
.rules-content h2 { font-size: 22px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rules-content h2 .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 15px;
  background: rgba(212,175,55,0.1); color: var(--accent-200); border: 1px solid var(--line); flex: none; }
.rules-content p { color: var(--tx-mid); font-size: 15px; line-height: 1.9; margin-bottom: 12px; }
.rules-content ul { color: var(--tx-mid); font-size: 15px; line-height: 1.9; padding-inline-start: 22px; margin-bottom: 12px; }
.rules-content li { margin-bottom: 6px; }
.rules-content .callout { padding: 16px 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(212,175,55,0.05);
  display: flex; gap: 12px; margin: 16px 0; }
.rules-content .callout svg { width: 20px; height: 20px; color: var(--accent-200); flex: none; margin-top: 2px; }
.rules-content .callout p { color: var(--tx-hi); margin: 0; font-size: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.ft { border-top: 1px solid var(--line-soft); background: var(--ink-000); position: relative; z-index: 1; }
/* آخرین ستون «تماس با ما» است و باید آدرس ایمیل را در یک خط جا بدهد، وگرنه وسط کلمه می شکند. */
.ft-grid { display: grid; grid-template-columns: 1.2fr .85fr .85fr .95fr 1.65fr; gap: 32px; padding-block: 64px 40px; }
.ft .brand img { height: 38px; }
.ft p.desc { color: var(--tx-mid); font-size: 14px; margin-top: 16px; max-width: 280px; }
.ft h4 { font-size: 13px; letter-spacing: .14em; color: var(--tx-lo); text-transform: uppercase; margin-bottom: 16px; }
.ft ul { list-style: none; display: grid; gap: 11px; }
.ft ul a { color: var(--tx-mid); font-size: 14.5px; transition: color .2s; }
.ft ul a:hover { color: var(--accent-200); }
/* .ft-badges / .ft-badge removed with the placeholder trust seals they styled. Re-add here when a real
   نماد اعتماد الکترونیکی / ساماندهی badge exists — it will be a linked <img> from the issuer, not a
   dashed box, so the old rules would not have fitted anyway. */
.ft-bottom { border-top: 1px solid var(--line-soft); padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--tx-lo); font-size: 13px; }
.ft-social { display: flex; gap: 10px; }
.ft-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--tx-mid); transition: .2s; }
.ft-social a:hover { color: var(--accent-200); border-color: var(--line); }
.ft-social svg { width: 18px; height: 18px; }

/* نشانی و ایمیل تماس — هم در فوتر صفحهٔ اصلی و هم در پای صفحه های داخلی (_SiteContact) */
.site-contact { display: grid; gap: 12px; }
.sc-item { display: flex; align-items: flex-start; gap: 9px; color: var(--tx-mid); font-size: 14px; line-height: 1.8; }
.sc-item svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--accent-200); }
a.sc-item { transition: color .2s; }
a.sc-item:hover { color: var(--accent-200); }
/* آدرس ایمیل لاتین است؛ در متن راست‌چین باید جهت خودش را نگه دارد. overflow-wrap:anywhere به جای
   word-break:break-all، تا فقط وقتی واقعا جا نشد بشکند نه هر جا که به لبه رسید. */
.sc-item span[dir="ltr"] { unicode-bidi: isolate; overflow-wrap: anywhere; }

/* ============================================================
   Reveal animation
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* Hidden state only applies once JS adds .js-reveal — so if the observer
     never fires (some embedded/iframe contexts) content still shows. */
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js-reveal .reveal.in { opacity: 1; transform: none; }

  /* Stagger grid-card children when their container reveals */
  @keyframes vg-card-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
  .js-reveal .mkt-grid > *,
  .js-reveal .feat-grid > *,
  .js-reveal .steps > * { opacity: 0; }
  .js-reveal .mkt-grid.in > *,
  .js-reveal .feat-grid.in > *,
  .js-reveal .steps.in > * {
    animation: vg-card-in .6s cubic-bezier(.4,0,.2,1) both;
    animation-delay: calc(var(--ci, 0) * 70ms);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .coin-stage { order: -1; min-height: 220px; }
  .coin-stage img { width: min(56%, 230px); }
  .vahed { grid-template-columns: 1fr; gap: 32px; }
  .ref { grid-template-columns: 1fr; gap: 30px; }
  .mkt-grid, .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .step .arrow { display: none; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .nav-cta { margin-inline-start: auto; }
  .mobile-menu.open { display: block; position: fixed; inset: 76px 0 auto 0; z-index: 49;
    background: var(--ink-100); border-bottom: 1px solid var(--line); padding: 16px 28px 26px; }
  .mobile-menu.open a { display: block; padding: 13px 6px; font-size: 17px; color: var(--tx-hi); border-bottom: 1px solid var(--line-soft); }
  .mobile-menu.open .mm-cta { display: flex; gap: 12px; margin-top: 18px; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 18px; }
  .feat-grid, .steps, .mkt-grid, .hero-strip { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .brand .wm { font-size: 17px; }
  .ref-stats { grid-template-columns: 1fr; }
}
