/* ============ Base ============ */
:root {
  --bg: #08090c;
  --surface: #10131a;
  --surface-2: #151a23;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef1f6;
  --muted: #98a2b3;
  --gold: #e6c069;
  --gold-2: #c99a3c;
  --green: #3ddc97;
  --red: #ff6b6b;
  --radius: 20px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.narrow { width: min(820px, 92vw); }

/* ambient glow */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.glow-1 { width: 520px; height: 520px; background: #8a6a1f; top: -180px; right: -120px; }
.glow-2 { width: 460px; height: 460px; background: #1e3a5f; bottom: -220px; left: -160px; opacity: 0.25; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(135deg, #f0d090, var(--gold) 45%, var(--gold-2));
  color: #1a1305;
  box-shadow: 0 10px 30px -12px rgba(230, 192, 105, 0.75);
}
.btn-gold:hover { box-shadow: 0 16px 38px -12px rgba(230, 192, 105, 0.9); transform: translateY(-1px); }

.btn-outline { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-outline:hover { border-color: rgba(230, 192, 105, 0.5); color: var(--gold); }

.btn-ghost { color: var(--muted); padding-inline: 14px; }
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 14px 30px; font-size: 15.5px; }
.btn-block { width: 100%; padding: 14px; font-size: 15px; margin-top: 6px; }

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 9, 12, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.header.is-scrolled { border-color: var(--line); background: rgba(8, 9, 12, 0.92); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

/* نشان نسخهٔ آزمایشی */
.demo-flag {
  position: fixed;
  inset-inline-start: 14px;
  bottom: 14px;
  z-index: 40;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(230, 192, 105, 0.35);
  background: rgba(12, 14, 19, 0.86);
  color: #e6c069;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
@media print { .demo-flag { display: none; } }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 7px 16px rgba(230, 192, 105, 0.26));
}
.logo-mark img { width: 40px; height: 40px; display: block; }
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { display: flex; flex-direction: column; font-weight: 800; font-size: 17px; line-height: 1.15; white-space: nowrap; }
.logo-text small { font-size: 8.5px; letter-spacing: 1.9px; color: var(--muted); font-weight: 600; }

.nav { display: flex; gap: 22px; font-size: 14.5px; color: var(--muted); align-items: center; }
.nav a { transition: color 0.18s ease; position: relative; }
.nav a:hover { color: var(--gold); }

/* منوی کشویی خرید فلز */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit; font: inherit; background: none; border: 0; cursor: pointer; padding: 0;
  transition: color 0.18s ease;
}
.nav-drop-btn:hover, .nav-drop:focus-within .nav-drop-btn { color: var(--gold); }
.nav-drop-btn .chev {
  width: 7px; height: 7px; margin-top: -3px;
  border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.18s ease, margin 0.18s ease;
}
.nav-drop:hover .chev, .nav-drop:focus-within .chev { transform: rotate(225deg); margin-top: 2px; }
.nav-drop-panel {
  position: absolute; top: calc(100% + 12px); inset-inline-start: -12px;
  min-width: 196px; padding: 6px; display: grid; gap: 2px; z-index: 30;
  background: #0d1016; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.9);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; transform: none; }
/* پل نامرئی بین دکمه و پنل تا با حرکت موس به سمت فهرست بسته نشود */
.nav-drop-panel::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
.nav-drop-panel a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--muted); }
.nav-drop-panel a:hover { background: rgba(230, 192, 105, 0.08); color: var(--gold); }

/* ============ منوی شمش فیزیکی (Goldbars) و زیرمنوها ============ */
.nav-drop-en {
  font-size: 9.5px; letter-spacing: 0.6px; color: var(--muted);
  opacity: 0.75; font-weight: 600;
}
.nav-drop-goldbars .nav-drop-panel { min-width: 232px; }
.nav-sub { position: relative; }
.nav-sub-btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 13.5px; text-align: start;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-sub-btn:hover, .nav-sub-btn:focus-visible,
.nav-sub:focus-within .nav-sub-btn, .nav-sub.is-open .nav-sub-btn {
  background: rgba(230, 192, 105, 0.08); color: var(--gold);
}
.nav-sub-btn .chev {
  width: 6px; height: 6px; margin-top: 0;
  transform: rotate(135deg); transition: transform 0.18s ease;
}
.nav-sub.is-open .nav-sub-btn .chev { transform: rotate(225deg); }
.nav-sub-panel {
  position: absolute; top: -6px; inset-inline-start: calc(100% + 4px);
  min-width: 148px; padding: 6px; display: grid; gap: 2px; z-index: 31;
  background: #0d1016; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.9);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-sub:hover .nav-sub-panel, .nav-sub:focus-within .nav-sub-panel, .nav-sub.is-open .nav-sub-panel {
  opacity: 1; visibility: visible; transform: none;
}
.nav-sub-panel a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--muted); }
.nav-sub-panel a:hover { background: rgba(230, 192, 105, 0.08); color: var(--gold); }
.nav-drop-foot { margin-top: 4px; padding-top: 5px; border-top: 1px solid var(--line); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.guest-actions { display: flex; align-items: center; gap: 6px; }
.guest-actions[hidden] { display: none; }

/* ============ کاربر واردشده در هدر ============ */
#headerActions .user-menu { position: relative; display: flex; align-items: center; gap: 2px; }
#headerActions .user-menu[hidden] { display: none; }
#headerActions .user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease;
}
#headerActions .user-chip:hover { border-color: rgba(230, 192, 105, 0.45); background: rgba(230, 192, 105, 0.06); }
#headerActions .user-avatar {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; flex: none;
  font-size: 11.5px; font-weight: 700; color: #0a0b0e;
  background: linear-gradient(140deg, #f2d68a, #d3a94f);
}
#headerActions .user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
#headerActions .user-name { display: flex; flex-direction: column; line-height: 1.25; font-size: 12.5px; font-weight: 700; max-width: 116px; }
#headerActions .user-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#headerActions .user-name small { font-size: 9.5px; font-weight: 400; color: var(--muted); }
#headerActions .user-more {
  width: 22px; height: 30px; display: grid; place-items: center;
  background: none; border: 0; color: var(--muted); cursor: pointer;
}
#headerActions .user-more:hover { color: var(--gold); }
#headerActions .user-more .chev {
  width: 7px; height: 7px; margin-top: -3px;
  border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.18s ease, margin 0.18s ease;
}
#headerActions .user-more[aria-expanded="true"] .chev { transform: rotate(225deg); margin-top: 2px; }
#headerActions .user-panel {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  width: 296px; max-width: calc(100vw - 24px); padding: 12px;
  display: grid; gap: 10px; z-index: 60;
  background: #0d1016; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 48px -26px rgba(0, 0, 0, 0.92);
}
#headerActions .user-panel[hidden] { display: none; }
#headerActions .user-panel-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 9px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
#headerActions .user-panel-head b { font-size: 13px; }
#headerActions .user-panel-head span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
#headerActions .user-summary { display: grid; gap: 7px; }
#headerActions .user-summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
#headerActions .user-summary span { color: var(--muted); }
#headerActions .user-summary b { font-weight: 700; }
#headerActions .user-panel-actions { display: flex; gap: 6px; padding-top: 2px; }
#headerActions .user-panel-actions .btn { flex: 1; justify-content: center; font-size: 12.5px; padding: 9px 10px; }
#headerActions .user-panel-actions form { margin: 0; flex: none; }

@media (max-width: 520px) {
  #headerActions .user-name { display: none; }
  #headerActions .user-chip { padding: 4px; }
  #headerActions .user-panel { width: 272px; }
}

/* ============ خلاصهٔ داشبورد در منوی موبایل ============ */
.nav-user { display: none; }

@media (max-width: 1000px) {
  .nav-user:not([hidden]) {
    display: grid; gap: 9px; margin: 12px 0 14px; padding: 12px;
    border: 1px solid rgba(230, 192, 105, 0.28); border-radius: 14px;
    background: linear-gradient(160deg, rgba(230, 192, 105, 0.1), rgba(230, 192, 105, 0.02));
  }
  .nav-user-head { display: flex; align-items: center; gap: 9px; }
  .nav-user-avatar {
    width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; flex: none;
    font-size: 12px; font-weight: 700; color: #0a0b0e;
    background: linear-gradient(140deg, #f2d68a, #d3a94f);
  }
  .nav-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .nav-user-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13px; font-weight: 700; }
  .nav-user-id small { font-size: 10.5px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
  .nav-user-summary { display: grid; gap: 6px; }
  .nav-user-summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
  .nav-user-summary span { color: var(--muted); }
  .nav-user-summary b { font-weight: 700; }
  .nav-user-cta { justify-content: center; font-size: 13px; padding: 10px 12px; }
}

.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; border-radius: 10px; border: 1px solid var(--line); }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: 64px 0 40px; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(230, 192, 105, 0.28);
  background: rgba(230, 192, 105, 0.08);
  color: var(--gold);
  font-size: 12.5px;
  margin-bottom: 22px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(230, 192, 105, 0.16); }

h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.35; font-weight: 800; letter-spacing: -0.5px; }
.grad { background: linear-gradient(120deg, #f7e4b6, var(--gold), #b9873a); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead { color: var(--muted); font-size: 16px; max-width: 52ch; margin-top: 18px; }

.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-points { display: grid; gap: 10px; margin-top: 32px; font-size: 14px; color: #cdd4de; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points svg { width: 17px; height: 17px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ============ Trade card ============ */
.trade-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.trade-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 192, 105, 0.55), transparent);
}

.trade-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.trade-title { display: block; font-weight: 700; font-size: 15px; }
.trade-sub { font-size: 12px; color: var(--muted); }

.change {
  font-size: 12.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(61, 220, 151, 0.12); color: var(--green);
  direction: ltr;
}
.change.down { background: rgba(255, 107, 107, 0.12); color: var(--red); }

.trade-price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.trade-price span { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.trade-price small { color: var(--muted); font-size: 13px; }

.trade-updated { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.spark { height: 76px; margin: 12px -4px 4px; }
.spark svg { width: 100%; height: 100%; }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px; border-radius: 14px; margin: 10px 0 16px;
}
.tab { padding: 9px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: 0.18s; }
.tab.is-active { background: linear-gradient(135deg, rgba(230,192,105,0.22), rgba(201,154,60,0.12)); color: var(--gold); }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color 0.18s, background 0.18s;
}
.input-wrap:focus-within { border-color: rgba(230, 192, 105, 0.55); background: rgba(230, 192, 105, 0.05); }
.input-wrap input {
  flex: 1; background: none; border: 0; outline: 0;
  color: var(--text); font-size: 16px; font-weight: 600;
  padding: 12px 0; font-family: inherit; direction: ltr; text-align: right;
}
.unit { font-size: 12px; color: var(--muted); white-space: nowrap; }

.summary {
  border-top: 1px dashed var(--line);
  margin-top: 14px; padding-top: 12px;
  display: grid; gap: 7px; font-size: 12.5px;
}
.summary div { display: flex; justify-content: space-between; color: var(--muted); }
.summary b { color: var(--text); font-weight: 600; }

.disclaimer { font-size: 11px; color: #6f7787; text-align: center; margin-top: 10px; }

/* ============ Stats ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 56px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.stat { text-align: center; }
.stat b { display: block; font-size: 24px; font-weight: 800; color: var(--gold); }
.stat span { font-size: 12px; color: var(--muted); }

/* ============ Sections ============ */
.section { padding: 84px 0; position: relative; z-index: 1; }
.section-alt { background: rgba(255, 255, 255, 0.017); border-block: 1px solid var(--line); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { font-size: 12.5px; color: var(--gold); letter-spacing: 0.5px; font-weight: 600; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-top: 8px; }
.section-head p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.licenses { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(230, 192, 105, 0.35); }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 13.5px; color: var(--muted); }

.icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(230, 192, 105, 0.1);
  border: 1px solid rgba(230, 192, 105, 0.22);
  margin-bottom: 16px;
  color: var(--gold);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 38px; height: 38px; }
.icon-sm svg { width: 19px; height: 19px; }

.license h3 { font-size: 14px; }
.license p { font-size: 12.5px; }

.note { text-align: center; font-size: 12px; color: #6f7787; margin-top: 22px; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 9, 12, 0.5);
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #f4d79b, var(--gold-2));
  color: #1a1305; font-weight: 800; font-size: 17px;
  margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ============ Split / delivery ============ */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.split h2 { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 14px; }
.split-copy p { color: var(--muted); font-size: 14.5px; }

.address-box {
  margin: 22px 0;
  padding: 16px 18px;
  border-inline-start: 3px solid var(--gold);
  background: rgba(230, 192, 105, 0.06);
  border-radius: 12px;
  display: grid; gap: 4px;
}
.address-box strong { font-size: 13px; color: var(--gold); }
.address-box span { font-size: 13px; color: #cdd4de; }

.split-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid; gap: 16px;
}
.bar-row { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.bar-row span { width: 52px; flex-shrink: 0; }
.bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-2), #f0d090); }
.split-note { font-size: 11.5px; color: #6f7787; border-top: 1px solid var(--line); padding-top: 12px; }

/* ============ FAQ ============ */
.faq { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.is-open { border-color: rgba(230, 192, 105, 0.35); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px;
  font-size: 14.5px; font-weight: 600; text-align: right;
}
.chev {
  width: 9px; height: 9px; flex-shrink: 0;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  transition: transform 0.22s;
  margin-left: 4px;
}
.faq-item.is-open .chev { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 20px 18px; font-size: 13.5px; color: var(--muted); }

/* ============ CTA ============ */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(230, 192, 105, 0.28);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(230, 192, 105, 0.16), transparent 60%),
    var(--surface);
}
.cta h2 { font-size: clamp(21px, 2.6vw, 28px); }
.cta p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 24px; background: rgba(255,255,255,0.012); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.3fr 1.1fr 1fr; gap: 32px; }
.footer h4 { font-size: 14px; margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; font-size: 13px; color: var(--muted); }
/* دسترسی سریع دو ستونه */
.footer .quick-links { grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 9px; align-content: start; }
.footer .quick-links li { line-height: 1.7; }
.footer a:hover { color: var(--gold); }
.footer-about { font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 34ch; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: 0.2s;
}
.socials a:hover { color: var(--gold); border-color: rgba(230,192,105,0.45); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.footer-links { display: inline-flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #6f7787; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: #6f7787;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 140%);
  background: #1a1f2b;
  border: 1px solid rgba(230, 192, 105, 0.4);
  color: var(--text);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: 0 20px 50px -18px #000;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ============ نوار اطلاع‌رسانی توقف فروش/تعمیر ============ */
.site-notice {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(720px, calc(100% - 24px));
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(230, 192, 105, 0.45);
  background: rgba(16, 14, 10, 0.97);
  color: #f5e8cc;
  font-size: 12.5px;
  line-height: 1.9;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  text-align: right;
}
.site-notice-row { display: flex; flex-wrap: wrap; gap: 4px; }
.site-notice b { color: var(--gold); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .licenses { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* منو در تبلت و موبایل: همبرگر + گروه‌های کشویی */
  .nav {
    position: absolute;
    top: 74px; inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: #0c0f14;
    border-bottom: 1px solid var(--line);
    padding: 8px 6vw 16px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s;
  }
  .nav.is-open { max-height: 78vh; visibility: visible; overflow-y: auto; }
  .nav > a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-drop { width: 100%; }
  .nav-drop-btn { width: 100%; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-drop-panel {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; padding: 2px 0 6px 14px; display: none;
  }
  .nav-drop-panel::before { display: none; }
  .nav-drop.is-open .nav-drop-panel { display: grid; }
  .nav-drop.is-open .nav-drop-btn { color: var(--gold); }
  .nav-drop.is-open .chev { transform: rotate(225deg); margin-top: 2px; }
  .nav-drop-panel a { padding: 10px 0; font-size: 13px; }
  .nav-drop-en { display: none; }
  .nav-sub-btn { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px; }
  .nav-sub-panel {
    position: static; min-width: 0; padding: 2px 12px 4px 0;
    opacity: 1; visibility: visible; transform: none; display: none;
    background: transparent; border: 0; box-shadow: none;
  }
  .nav-sub.is-open .nav-sub-panel { display: grid; }
  .nav-sub-panel a { padding: 9px 0; font-size: 12.5px; }
  .nav-drop-foot { margin-top: 2px; }
  .burger { display: flex; }
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 760px) {
  .hero { padding-top: 40px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; margin-top: 40px; }
  .stat b { font-size: 20px; }
  .features, .licenses, .steps, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .cta { padding: 26px; }
  .trade-card { padding: 20px; }
  .trade-price span { font-size: 27px; }
}

/* ============ شکل دکمه‌ها: چهارگوش با گوشه‌های کمی گرد ============ */
:root { --btn-radius: 6px; }

button,
.btn,
a.btn,
input[type="button"],
input[type="submit"],
.chip-btn,
.tab,
.side-link,
.pill,
[role="button"] {
  border-radius: var(--btn-radius) !important;
}

/* ============ خلاصهٔ سبد خرید در منوی سایت ============ */
.cart-head-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(230, 192, 105, 0.32);
  border-radius: 6px;
  background: rgba(230, 192, 105, 0.09);
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
  transition: border-color 0.18s, background 0.18s;
}
.cart-head-chip[hidden] { display: none; }
.cart-head-chip:hover { border-color: rgba(230, 192, 105, 0.62); background: rgba(230, 192, 105, 0.14); }
.cart-head-chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-head-chip .cart-head-text { display: flex; flex-direction: column; }
.cart-head-chip b { font-size: 12px; font-weight: 700; }
.cart-head-chip small { font-size: 10.5px; color: var(--muted); }
@media (max-width: 560px) {
  .cart-head-chip { padding: 6px 8px; gap: 6px; }
  .cart-head-chip small { display: none; }
}
