/* ============================================================
   KitYar — styles.css  (premium redesign + design overhaul,
   2026-10-23)
   Identity: deep emerald (trust, craft) + warm gold (value).
   Typography is SELF-HOSTED (fonts/ folder, SIL OFL 1.1):
   Vazirmatn for Persian, Noto Kufi Arabic for Arabic,
   Plus Jakarta Sans for English — zero runtime external
   calls, so the page stays fast and can never break on a
   CDN outage. Mobile-first, RTL-safe (logical properties
   everywhere direction matters).
   ============================================================ */

/* ---------- self-hosted webfonts (fonts/, all SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("fonts/noto-kufi-arabic-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("fonts/noto-kufi-arabic-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  /* --- palette --- */
  --bg: #f5f6f2;                 /* warm paper */
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --ink: #122019;                /* green-tinted near-black */
  --ink-soft: #43554c;
  --muted: #74847b;
  --line: #dde4dc;
  --line-strong: #c9d4c9;

  --brand-950: #05231b;          /* deepest emerald — hero/footer */
  --brand-900: #07362a;
  --brand-800: #0a4a38;
  --brand: #0c6b4e;              /* primary emerald */
  --brand-dark: #084c37;
  --brand-soft: #e4f1ea;
  --teal: #0e7d74;               /* gradient partner */
  --gold: #d99a26;               /* warm gold accent */
  --gold-bright: #f0bc4e;
  --gold-soft: #fdf3da;
  --gold-ink: #7c5410;

  /* --- shape & depth --- */
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(7, 54, 42, 0.07);
  --shadow: 0 2px 6px rgba(7, 54, 42, 0.06), 0 14px 34px rgba(7, 54, 42, 0.08);
  --shadow-lift: 0 6px 12px rgba(7, 54, 42, 0.08), 0 22px 44px rgba(7, 54, 42, 0.14);
  --ring: 0 0 0 3px rgba(12, 107, 78, 0.28);

  --font: "Segoe UI", Tahoma, system-ui, -apple-system, "Helvetica Neue",
          "Noto Naskh Arabic", "Noto Kufi Arabic", Arial, sans-serif;
  --header-h: 64px;
}

/* Per-language stacks — the :root[lang] attribute picks the face
   (higher specificity than the :root default, so it always wins). */
:root[lang^="fa"] {
  --font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
}
:root[lang^="ar"] {
  --font: "Noto Kufi Arabic", "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
}
:root[lang^="en"] {
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(60rem 30rem at 108% -8%, rgba(217, 154, 38, 0.08), transparent 60%),
    radial-gradient(52rem 28rem at -12% 32%, rgba(12, 107, 78, 0.07), transparent 62%),
    radial-gradient(46rem 24rem at 50% 108%, rgba(14, 125, 116, 0.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold-bright); color: var(--brand-950); }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

.wrap {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

section[id], .anchor-target { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ================= header ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.45rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--ink);
  line-height: 1.25;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--teal) 60%, var(--brand-800) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(240, 188, 78, 0.75), var(--shadow-sm);
}
.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.main-nav {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  margin-inline-start: auto;
}
.main-nav a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.93rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.lang-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.lang-switch {
  border: 1.5px solid var(--line-strong);
  color: var(--ink-soft);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.lang-switch:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.lang-switch.active { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 720px) {
  .header-in { gap: 0.55rem 0.8rem; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .lang-nav { margin-inline-start: auto; }
}

/* ================= hero ================= */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(52rem 26rem at 88% -30%, rgba(240, 188, 78, 0.22), transparent 60%),
    radial-gradient(40rem 22rem at 6% 115%, rgba(14, 125, 116, 0.5), transparent 62%),
    linear-gradient(155deg, var(--brand-950) 0%, var(--brand-900) 46%, var(--brand-800) 100%);
  padding: 3.4rem 0 3rem;
}
.hero::before {           /* fine dot texture, pure CSS */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 188, 78, 0.55);
  background: rgba(240, 188, 78, 0.12);
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 700;
}
.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.85rem, 5.6vw, 3rem);
  line-height: 1.3;
  font-weight: 800;
  max-width: 22em;
}
.hero h1 .hl { color: var(--gold-bright); }
.hero p.lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  color: #cfe0d7;
  max-width: 46rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--brand-950);
  box-shadow: 0 8px 20px rgba(217, 154, 38, 0.35);
}
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.32rem 0.9rem;
  font-size: 0.88rem;
  color: #e6efe9;
}
.trust-chip svg { width: 16px; height: 16px; flex: none; color: var(--gold-bright); }

/* ---------- live rate badge ---------- */
.rate-box {
  margin-top: 1.7rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-md);
  padding: 0.95rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  max-width: 42rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rate-box .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.rate-box[data-rate-mode="live"] .dot {
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.rate-label { font-size: 0.92rem; color: #cfe3dc; }
.rate-value { font-size: 1.4rem; font-weight: 800; color: #fff; }
.rate-value::after {
  content: "";
  display: block;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
  margin-top: 2px;
}
.rate-updated { font-size: 0.85rem; color: #a9c4bb; width: 100%; }

/* ================= sections ================= */
section.block { padding: 2.8rem 0 0.6rem; }
.section-head { margin-bottom: 1.35rem; }
.section-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-head h2::before {
  content: "";
  width: 10px; height: 10px;
  flex: none;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.section-head p { margin: 0; color: var(--ink-soft); max-width: 54rem; }

/* ================= browse toolbar ================= */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}
.search-wrap { position: relative; max-width: 34rem; }
.search-wrap svg {
  position: absolute;
  inset-inline-start: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 19px; height: 19px;
  color: var(--muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  padding-inline-start: 2.7rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--brand); box-shadow: var(--ring); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-1px); }
.chip.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-800));
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.result-count { margin: 0; font-size: 0.88rem; color: var(--muted); }
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 2rem 1.2rem;
  font-size: 0.98rem;
}

/* ================= product grid & cards ================= */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset-inline: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--teal), var(--gold));
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card .cat {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.79rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.14rem 0.72rem;
}
.card .cat::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.card h3 { margin: 0.1rem 0 0; font-size: 1.13rem; line-height: 1.55; font-weight: 800; }
.card .for { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }
.card h4 { margin: 0.4rem 0 0; font-size: 0.92rem; color: var(--brand-dark); font-weight: 800; }
.card ul {
  margin: 0;
  padding-inline-start: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.card ul li { margin: 0.18rem 0; }
.card ul li::marker { color: var(--gold); }
.files-line {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.42rem 0.65rem;
  direction: ltr;
  text-align: left;
  word-break: break-all;
}

.price-row {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.price-toman { font-size: 1.38rem; font-weight: 800; color: var(--ink); line-height: 1.4; }
.price-toman .cur { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.price-usdt { font-size: 0.96rem; font-weight: 700; color: var(--brand-dark); direction: ltr; text-align: end; }
[dir="ltr"] .price-usdt { text-align: left; }
.price-note { font-size: 0.8rem; color: var(--muted); }

.buy-btn {
  margin-top: 0.75rem;
  width: 100%;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.68rem 1rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--ink-soft);
  cursor: not-allowed;
}
.launch-note { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 0.45rem 0 0; }

/* ================= coming soon ================= */
#soon .section-head h2::before { background: var(--line-strong); box-shadow: 0 0 0 4px var(--surface-2); }
.soon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 640px) { .soon-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .soon-list { grid-template-columns: 1fr 1fr 1fr; } }
.soon-list li {
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.badge-soon {
  flex: none;
  background: var(--gold-soft);
  color: var(--gold-ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.06rem 0.6rem;
}

/* ================= how it works ================= */
.how {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.6rem;
  display: grid;
  gap: 1.3rem;
}
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-950);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.6rem;
}
.how h3 { margin: 0 0 0.3rem; font-size: 1.03rem; }
.how p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ================= FAQ accordion ================= */
.faq { display: grid; gap: 0.65rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-inline-end: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details > p, .faq details > ul, .faq details > ol {
  margin: 0;
  padding: 0 1.15rem 0.95rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.faq details ul, .faq details ol { padding-inline-start: 2.2rem; }

/* ================= support / refund (trust block) ================= */
.support-box {
  margin-top: 0.4rem;
  background: linear-gradient(180deg, var(--surface), var(--brand-soft));
  border: 1.5px solid var(--brand);
  border-inline-start: 6px solid var(--gold);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.45rem;
}
.support-box h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.support-box h3 svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.support-box p { margin: 0.35rem 0; color: var(--ink-soft); font-size: 0.96rem; }
.support-box details {
  margin-top: 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.95rem;
}
.support-box summary { font-weight: 700; cursor: pointer; color: var(--brand-dark); }
.support-box ul, .support-box ol { margin: 0.3rem 0; padding-inline-start: 1.2rem; color: var(--ink-soft); font-size: 0.95rem; }
.support-contact { border-top: 1px dashed var(--line-strong); padding-top: 0.65rem; margin-top: 0.8rem; }

/* Telegram bot button slots (rendered by app.js only when
   support.json → contact.telegram_bot is set) */
.bot-cta { margin-top: 1rem; }
.site-footer .bot-cta { margin-top: 0.85rem; }
.btn-bot svg { width: 19px; height: 19px; flex: none; }

/* ================= footer ================= */
.site-footer {
  margin-top: 3.4rem;
  background:
    radial-gradient(36rem 14rem at 90% -20%, rgba(240, 188, 78, 0.14), transparent 60%),
    linear-gradient(160deg, var(--brand-950), var(--brand-900));
  color: #c8d8cf;
  padding: 2.2rem 0 2.4rem;
  font-size: 0.93rem;
}
.site-footer .cols { display: grid; gap: 1.4rem; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.25fr 1fr 1fr; } }
.site-footer p { margin: 0.3rem 0; }
.site-footer a { color: var(--gold-bright); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 1.05rem; border-radius: 10px; }
.footer-title { font-weight: 800; color: #fff; margin: 0 0 0.45rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.footer-links a { color: #c8d8cf; }
.footer-links a:hover { color: var(--gold-bright); }

/* ================= motion ================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .wrap > * { animation: rise 0.55s ease both; }
.hero .wrap > *:nth-child(2) { animation-delay: 0.06s; }
.hero .wrap > *:nth-child(3) { animation-delay: 0.12s; }
.hero .wrap > *:nth-child(4) { animation-delay: 0.18s; }
.hero .wrap > *:nth-child(5) { animation-delay: 0.24s; }
.hero .wrap > *:nth-child(6) { animation-delay: 0.3s; }

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

/* ============================================================
   WOW POLISH PASS (2026-10-23) — layered hero glow + drifting
   orbs, gradient headline, trust-stats strip, glass toolbar,
   gradient card borders, per-category icon chips, buy-flow
   steps, reveal-on-scroll. Pure CSS, zero assets. Everything
   degrades gracefully: no-JS / no-IO / reduced-motion users
   still see all content (JS arms .reveal only when IO exists
   and motion is allowed; the reduced-motion block above also
   neutralises these animations).
   ============================================================ */

/* slim brand scrollbar */
html { scrollbar-color: var(--brand) var(--surface-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--teal));
  border-radius: 8px;
  border: 2px solid var(--surface-2);
}

/* header gains depth once the page scrolls */
.site-header { transition: box-shadow 0.25s ease; }
.site-header.scrolled { box-shadow: 0 12px 32px rgba(7, 54, 42, 0.13); }

/* ---------- hero: richer layered gradient + glow orbs ---------- */
.hero {
  background:
    radial-gradient(52rem 26rem at 88% -30%, rgba(240, 188, 78, 0.22), transparent 60%),
    radial-gradient(36rem 18rem at 50% 135%, rgba(240, 188, 78, 0.13), transparent 62%),
    radial-gradient(40rem 22rem at 6% 115%, rgba(14, 125, 116, 0.5), transparent 62%),
    radial-gradient(30rem 16rem at 30% -20%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(155deg, var(--brand-950) 0%, var(--brand-900) 46%, var(--brand-800) 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(46px);
  will-change: transform;
}
.orb-gold {
  width: 320px; height: 320px;
  top: -130px; inset-inline-end: -50px;
  background: radial-gradient(circle, rgba(240, 188, 78, 0.5), transparent 65%);
  animation: drift-a 17s ease-in-out infinite alternate;
}
.orb-teal {
  width: 400px; height: 400px;
  bottom: -190px; inset-inline-start: -70px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.32), transparent 65%);
  animation: drift-b 22s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-34px, 30px) scale(1.1); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.05); }
  to { transform: translate(30px, -26px) scale(0.96); }
}
.hero .wrap > *:nth-child(7) { animation-delay: 0.36s; }

/* gradient headline + stat numbers (progressive enhancement) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(112deg, #ffffff 25%, #c4e6d4 68%, #8fd0b4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero h1 .hl {
    background: linear-gradient(112deg, var(--gold-bright) 10%, var(--gold) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .stat-num {
    background: linear-gradient(112deg, #ffffff 20%, var(--gold-bright) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* ---------- hero trust-stats strip (product count comes from data) ---------- */
.stats-strip {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 2.4rem;
}
.stat { display: flex; flex-direction: column; gap: 0.05rem; }
.stat-num { font-size: 1.7rem; font-weight: 800; line-height: 1.25; color: #fff; }
.stat-label { font-size: 0.86rem; color: #a9c4bb; }

/* ---------- primary button shine sweep ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* ---------- glass toolbar, sticky on desktop ---------- */
.toolbar {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
}
@media (min-width: 721px) {
  .toolbar {
    position: sticky;
    top: calc(var(--header-h) + 10px);
    z-index: 40;
    transition: box-shadow 0.25s ease;
  }
  .toolbar.is-stuck { box-shadow: var(--shadow-lift); }
}
.chip { display: inline-flex; align-items: center; gap: 0.35rem; }
.chip svg { width: 14px; height: 14px; flex: none; }

/* ---------- cards: gradient border ring + warm glow on hover ---------- */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(140deg, var(--brand), var(--teal) 45%, var(--gold) 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card:hover {
  box-shadow:
    0 6px 12px rgba(7, 54, 42, 0.08),
    0 24px 48px rgba(7, 54, 42, 0.15),
    0 18px 42px -16px rgba(217, 154, 38, 0.5);
}

/* ---------- per-category icon chips (letter = catalog_ref) ---------- */
.card .cat::before { display: none; }
.card .cat svg { width: 14px; height: 14px; flex: none; }
.cat-a { background: #e4f1ea; color: #084c37; }
.cat-b { background: #e0f2ef; color: #0b5a52; }
.cat-c { background: #fdf3da; color: #7c5410; }
.cat-d { background: #efeafd; color: #4b3a8a; }
.cat-e { background: #fdeef1; color: #8a3b52; }
.cat-f { background: #e8f0fe; color: #2b4a8a; }
.cat-g { background: linear-gradient(135deg, #fdf3da, #fbe6ae); color: #7c5410; }

/* ---------- reveal on scroll (classes armed by JS only) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- FAQ: frosted glass + soft open animation ---------- */
.faq details {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
}
.faq details[open] { background: rgba(255, 255, 255, 0.95); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}
.faq details[open] > *:not(summary) { animation: faq-in 0.32s ease both; }

/* ---------- how-it-works: gentle lift ---------- */
.how > div { transition: transform 0.2s ease; }
.how > div:hover { transform: translateY(-3px); }

/* ---------- buy flow: three visual steps ---------- */
.buy-steps { display: grid; gap: 1.15rem; position: relative; }
@media (min-width: 760px) {
  .buy-steps { grid-template-columns: repeat(3, 1fr); }
  .buy-steps::before {
    content: "";
    position: absolute;
    top: 44px;
    inset-inline: 13%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(217, 154, 38, 0.55) 30%, rgba(12, 107, 78, 0.5) 70%, transparent);
  }
}
.buy-step {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.3rem 1.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.buy-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-ico {
  position: relative;
  z-index: 1;
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--teal) 65%, var(--brand-800) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(240, 188, 78, 0.65), var(--shadow-sm);
  margin-bottom: 0.85rem;
}
.step-ico svg { width: 27px; height: 27px; }
.step-badge {
  position: absolute;
  top: -9px;
  inset-inline-end: -9px;
  width: 25px; height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-950);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.buy-step h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.buy-step p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ============================================================
   DESIGN OVERHAUL (2026-10-23) — owner feedback round:
   1) real Persian/Arabic/Latin webfonts (top of this file),
   2) a prominent glass language switcher (header + footer),
   3) striking theme elevation: Persian geometric hero
      pattern, oversized black-weight typography, glass stat
      cards, per-category card cover bands, alternating
      section bands, premium footer.
   The DOM contract app.js relies on is unchanged.
   ============================================================ */

/* Persian/Arabic need a touch more leading with the new faces. */
:root[lang^="fa"] body, :root[lang^="ar"] body { line-height: 1.9; }
:root[lang^="fa"] h1, :root[lang^="fa"] h2, :root[lang^="fa"] h3,
:root[lang^="ar"] h1, :root[lang^="ar"] h2, :root[lang^="ar"] h3 { line-height: 1.45; }

/* full-bleed section bands must never cause horizontal scroll */
html, body { overflow-x: clip; }

/* ---------- language switcher: glass segmented pill ---------- */
.lang-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  width: fit-content;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(12, 107, 78, 0.10), rgba(217, 154, 38, 0.14));
  border: 1px solid rgba(12, 107, 78, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow-sm);
}
.lang-ico {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-inline-start: 2px;
  color: var(--brand);
  flex: none;
}
.lang-ico svg { width: 17px; height: 17px; }
.lang-nav .lang-switch {
  border-color: transparent;
  padding: 0.34rem 0.9rem;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.lang-nav .lang-switch:hover {
  border-color: transparent;
  background: rgba(12, 107, 78, 0.10);
  color: var(--brand-dark);
}
.lang-nav .lang-switch.active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: transparent;
  color: var(--brand-950);
  box-shadow: 0 3px 12px rgba(217, 154, 38, 0.45);
}
/* footer variant sits on the dark emerald footer */
.lang-nav-footer {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(240, 188, 78, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.lang-nav-footer .lang-ico { color: var(--gold-bright); }
.lang-nav-footer .lang-switch { color: #c8d8cf; }
.lang-nav-footer .lang-switch:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.lang-nav-footer .lang-switch.active { color: var(--brand-950); }
@media (max-width: 720px) {
  .lang-nav { padding: 2px; gap: 1px; }
  .lang-nav .lang-switch { padding: 0.26rem 0.62rem; font-size: 0.82rem; }
  .lang-ico { display: none; }
}
@media (max-width: 480px) {
  .brand small { display: none; }
  .brand { font-size: 1.12rem; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.05rem; border-radius: 10px; }
}

/* ---------- hero: Persian geometric pattern + bolder type ---------- */
.hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.15;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--teal) 70%, transparent);
}
.hero h1 {
  font-size: clamp(2.05rem, 6.4vw, 3.45rem);
  font-weight: 900;
  letter-spacing: 0;
  max-width: 20em;
}
.hero-eyebrow { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* hero stats become individual glass cards */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  border-top: none;
  padding-top: 0;
  margin-top: 1.6rem;
}
@media (min-width: 820px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
  padding: 0.8rem 1rem 0.85rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.stat-num { font-size: 1.85rem; font-weight: 900; }

/* ---------- alternating full-bleed section bands ---------- */
.block.alt { position: relative; isolation: isolate; padding: 3rem 0 2.4rem; }
.block.alt::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(34rem 12rem at 85% 0%, rgba(217, 154, 38, 0.07), transparent 60%),
    linear-gradient(180deg, #edf3ed, #e6efe7);
  border-block: 1px solid var(--line);
  z-index: -1;
}
.block.alt::after {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - 2rem));
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 154, 38, 0.65), transparent);
}

/* ---------- product cards: per-category cover bands ---------- */
.card { padding: 0 0 1.35rem; }
.card::before { display: none; } /* the cover band replaces the top bar */
.card > *:not(.card-cover) { margin-inline: 1.3rem; }
.card-cover {
  position: relative;
  height: 106px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline-end: 1.25rem;
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand-800), var(--brand) 55%, var(--teal));
}
.card-cover::before { /* miniature girih star lattice */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Crect x='15' y='15' width='18' height='18'/%3E%3Crect x='15' y='15' width='18' height='18' transform='rotate(45 24 24)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 48px 48px;
  opacity: 0.13;
}
.card-cover::after { /* soft light falloff */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(16rem 7rem at 12% -30%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(0deg, rgba(5, 35, 27, 0.20), transparent 55%);
}
.card-cover svg {
  position: relative;
  z-index: 1;
  width: 54px; height: 54px;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 4px 10px rgba(5, 35, 27, 0.45));
}
.cover-a { background: linear-gradient(120deg, #07362a, #0c6b4e 55%, #0e7d74); }
.cover-b { background: linear-gradient(120deg, #06302a, #0b5a52 55%, #12907f); }
.cover-c { background: linear-gradient(120deg, #6d4a0c, #b97e17 55%, #d99a26); }
.cover-d { background: linear-gradient(120deg, #2e2260, #4b3a8a 55%, #6a55b8); }
.cover-e { background: linear-gradient(120deg, #5f2438, #8a3b52 55%, #b3556f); }
.cover-f { background: linear-gradient(120deg, #1d3560, #2b4a8a 55%, #3f6ab5); }
.cover-g { background: linear-gradient(120deg, #05231b, #0a4a38 45%, #a8741a 125%); }
.cover-x { background: linear-gradient(120deg, #07362a, #0c6b4e 55%, #0e7d74); }
/* the category chip floats over the cover's lower edge */
.card .cat {
  position: relative;
  z-index: 2;
  margin-top: -15px;
  box-shadow: 0 0 0 3px var(--surface), var(--shadow-sm);
  border: 1px solid var(--line);
}
/* price hierarchy: big black-weight price + gold pill alternative */
.price-toman { font-size: 1.58rem; font-weight: 900; }
.price-usdt {
  align-self: flex-start;
  background: var(--gold-soft);
  color: var(--gold-ink);
  padding: 0.14rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}
.buy-btn {
  border-color: rgba(217, 154, 38, 0.55);
  background: linear-gradient(180deg, #ffffff, var(--gold-soft));
  color: var(--gold-ink);
}

/* ---------- FAQ: gold spine on the open item ---------- */
.faq details[open] { border-inline-start: 4px solid var(--gold); }

/* ---------- premium footer ---------- */
.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal) 55%, var(--gold-bright));
}
.footer-title { position: relative; padding-bottom: 0.4rem; }
.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0; inset-inline-start: 0;
  width: 34px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
}
