/* ==========================================================
   رادار اسپید — RadarSpeed
   ساختار: فونت ← توکن‌ها ← پایه ← اجزای مشترک ← بخش‌ها ← واکنش‌گرایی
   ========================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-wght.woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* فونت جایگزین هم‌اندازه تا پرش متن هنگام لود فونت کم شود */
@font-face {
  font-family: "Vazirmatn Fallback";
  src: local("Tahoma"), local("Segoe UI"), local("Arial");
  size-adjust: 104%;
  ascent-override: 100%;
  descent-override: 32%;
}

/* ---------- توکن‌ها: تم تیره (پیش‌فرض) ---------- */
:root {
  color-scheme: dark;
  --bg: #050B16;
  --bg-2: #081428;
  --surface: rgba(16, 30, 54, .55);
  --surface-strong: rgba(18, 36, 66, .82);
  --border: rgba(120, 200, 255, .12);
  --border-strong: rgba(120, 220, 255, .28);
  --text: #EAF2FF;
  --muted: #9AB0C8;
  --primary: #2EF2A0;
  --primary-ink: #03140D;
  --secondary: #38BDF8;
  --blue: #3B82F6;
  --glow: rgba(46, 242, 160, .45);
  --glow-blue: rgba(56, 189, 248, .35);
  --globe-a: #12345E;
  --globe-b: #071A33;
  --grid-line: rgba(56, 189, 248, .22);
  --header-bg: rgba(5, 11, 22, .72);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -24px rgba(0, 0, 0, .8);

  --font: "Vazirmatn", "Vazirmatn Fallback", Tahoma, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.3rem + 3.6vw, 3.75rem);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --gutter: 16px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- تم روشن ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F7FB;
  --bg-2: #E8F0F8;
  --surface: rgba(255, 255, 255, .78);
  --surface-strong: #FFFFFF;
  --border: rgba(10, 40, 80, .10);
  --border-strong: rgba(3, 105, 161, .30);
  --text: #0A1A2F;
  --muted: #4A5D74;
  --primary: #0E9F6E;
  --primary-ink: #FFFFFF;
  --secondary: #0369A1;
  --blue: #1D4ED8;
  --glow: rgba(14, 159, 110, .28);
  --glow-blue: rgba(3, 105, 161, .18);
  --globe-a: #D6E8FA;
  --globe-b: #B9D6F2;
  --grid-line: rgba(3, 105, 161, .25);
  --header-bg: rgba(243, 247, 251, .8);
  --shadow-card: 0 1px 2px rgba(10, 30, 60, .06), 0 16px 32px -20px rgba(10, 30, 60, .25);
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { margin: 0; line-height: 1.4; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
[lang="en"] { font-feature-settings: normal; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--primary); color: var(--primary-ink); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .55em 1.25em;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s, border-color .2s;
}
.btn-lg { min-height: 54px; padding-inline: 1.6em; font-size: 1.0625rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #22D3EE);
  color: var(--primary-ink);
  box-shadow: 0 10px 30px -10px var(--glow);
}
:root[data-theme="light"] .btn-primary { background: linear-gradient(135deg, #0E9F6E, #0284C7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--glow); }
.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--secondary); background: var(--glow-blue); }
.btn:active { transform: translateY(0) scale(.98); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid var(--border); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface); }

/* ---------- پرچم‌ها ---------- */
.flag {
  display: inline-block; width: 1.5em; aspect-ratio: 3 / 2; flex: none;
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}
.flag svg { width: 100%; height: 100%; }
.flag-lg { width: 44px; border-radius: 6px; }

/* ---------- هدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); }
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-fa { color: var(--text); font-weight: 800; font-size: 1.125rem; }
.brand-en { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-align: right; }

.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: .975rem;
  transition: color .2s, background-color .2s;
}
.primary-nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding-inline: 12px; border-radius: 12px;
  border: 1px solid var(--border); color: var(--muted); font-weight: 700; font-size: .875rem;
}
.lang-pill .icon { width: 1.1em; height: 1.1em; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.menu-toggle .icon-close { display: none; }
.site-header[data-menu-open] .menu-toggle .icon-menu { display: none; }
.site-header[data-menu-open] .menu-toggle .icon-close { display: block; }

/* موبایل: منوی کشویی */
@media (max-width: 1023px) {
  .header-cta { display: none; }
  .primary-nav {
    position: absolute; inset-inline: 0; top: 100%;
    display: none;
    padding: 12px var(--gutter) 20px;
    background: var(--surface-strong);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .7);
  }
  .site-header[data-menu-open] .primary-nav { display: block; animation: menu-in .22s var(--ease-out); }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a:not(.btn) { padding: 12px 14px; font-size: 1.0625rem; color: var(--text); }
  .nav-cta { display: flex; width: 100%; margin-top: 12px; }
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .primary-nav { margin-inline-start: 24px; }
}
@media (max-width: 420px) {
  .lang-pill { display: none; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- هیرو ---------- */
.hero {
  position: relative;
  padding-block: 40px 56px;
  overflow: hidden;
  isolation: isolate;
}
/* شبکه‌ی ریز و هاله‌ی پس‌زمینه */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; inset-inline-end: -300px; top: -300px;
  background: radial-gradient(circle, var(--glow-blue), transparent 60%);
  opacity: .6;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }

.hero-copy { max-width: 600px; }
.h1-main {
  display: block;
  font-size: var(--step-4); line-height: 1.32; font-weight: 900;
  letter-spacing: -.01em;
}
.h1-sub {
  display: block; margin-top: 14px;
  font-size: var(--step-1); font-weight: 700; line-height: 1.6;
  color: var(--primary);
}
.hero-lead { margin-top: 18px; color: var(--muted); font-size: 1.125rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.trust-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: var(--text); }
.trust-list .icon {
  width: 34px; height: 34px; padding: 7px; border-radius: 10px;
  color: var(--primary); background: var(--glow-blue);
  border: 1px solid var(--border);
}

/* تصویر هیرو: رادار */
.hero-visual {
  position: relative;
  width: 100%; max-width: 540px; margin-inline: auto;
  aspect-ratio: 1 / 1.08;
}
.radar {
  position: absolute; top: 0; inset-inline: 6%;
  aspect-ratio: 1;
  container-type: inline-size;
}
.radar-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.r-ring { fill: none; stroke: var(--grid-line); stroke-width: 1; stroke-dasharray: 2 6; }
.r-grid { fill: none; stroke: var(--grid-line); stroke-width: 1; }
.r-edge { fill: none; stroke: var(--secondary); stroke-opacity: .5; stroke-width: 1.5; }
.r-links { fill: none; stroke: var(--primary); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .7; }

.sweep {
  position: absolute; inset: 3%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 280deg, rgba(46, 242, 160, 0) 280deg, rgba(46, 242, 160, .38) 359deg, rgba(46, 242, 160, .9) 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 69%, transparent 70%);
  mask-image: radial-gradient(circle, #000 69%, transparent 70%);
  animation: sweep 4s linear infinite;
  mix-blend-mode: screen;
}
:root[data-theme="light"] .sweep { mix-blend-mode: multiply; opacity: .55; }
@keyframes sweep { to { transform: rotate(1turn); } }

.blip {
  position: absolute; left: var(--x); top: var(--y);
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--glow);
}
.blip::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: ping 4s var(--ease-out) var(--d) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .9; }
  30% { transform: scale(4.2); opacity: 0; }
  100% { transform: scale(4.2); opacity: 0; }
}
.blip-label {
  position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%);
  padding: 1px 8px; border-radius: 6px;
  background: var(--surface-strong); border: 1px solid var(--border);
  font-size: max(12px, 2.6cqw); font-weight: 700; white-space: nowrap; line-height: 1.6;
}

.orbit-chip {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 12px; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: max(12px, 2.7cqw); font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.orbit-chip .icon { width: 1.25em; height: 1.25em; color: var(--secondary); }

/* لپ‌تاپ و گوشی نمایشی */
.device { position: absolute; container-type: inline-size; }
.laptop { bottom: 0; inset-inline-end: 3%; width: 58%; }
.laptop-screen {
  aspect-ratio: 16 / 10;
  padding: 6cqw 6cqw 5cqw;
  border-radius: 3.5cqw 3.5cqw 0 0;
  border: 2.4cqw solid #0D1B30;
  border-bottom-width: 3cqw;
  background: linear-gradient(160deg, #0B1E38, #06101F);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--border-strong);
  color: #EAF2FF;
  display: flex; flex-direction: column; gap: 4cqw;
}
.laptop-base {
  height: 4cqw; margin-inline: -6%;
  border-radius: 0 0 4cqw 4cqw;
  background: linear-gradient(#1B2C46, #0C1729);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .8);
}
.app-bar { display: flex; justify-content: space-between; align-items: center; font-size: 4.2cqw; font-weight: 800; }
.app-status {
  display: inline-flex; align-items: center; gap: 1.6cqw;
  color: #2EF2A0; font-size: 3.6cqw;
}
.app-status::before { content: ""; width: 2cqw; height: 2cqw; border-radius: 50%; background: #2EF2A0; box-shadow: 0 0 2cqw #2EF2A0; }
.app-body { flex: 1; display: flex; align-items: center; gap: 6cqw; }
.power {
  display: grid; place-items: center;
  width: 30cqw; aspect-ratio: 1; border-radius: 50%;
  color: #2EF2A0;
  background: radial-gradient(circle, rgba(46, 242, 160, .25), rgba(46, 242, 160, .04) 70%);
  box-shadow: 0 0 0 1.6cqw rgba(46, 242, 160, .12), 0 0 8cqw rgba(46, 242, 160, .35);
}
.power .icon { width: 13cqw; height: 13cqw; stroke-width: 2.4; }
.app-info { display: flex; flex-direction: column; gap: 2.4cqw; font-size: 4cqw; font-weight: 700; }
.app-loc { display: inline-flex; align-items: center; gap: 2cqw; }
.app-loc .flag { width: 6.5cqw; }
.app-timer { font-size: 6.4cqw; font-weight: 800; color: #EAF2FF; letter-spacing: .03em; text-align: right; }
.app-meter { display: flex; gap: 1.4cqw; align-items: flex-end; height: 5cqw; }
.app-meter i { width: 2cqw; border-radius: 1cqw; background: #2EF2A0; }
.app-meter i:nth-child(1) { height: 35%; } .app-meter i:nth-child(2) { height: 60%; }
.app-meter i:nth-child(3) { height: 80%; } .app-meter i:nth-child(4) { height: 100%; opacity: .45; }

.phone { bottom: 4%; inset-inline-start: 0; width: 27%; }
.phone-screen {
  aspect-ratio: 9 / 18.5;
  padding: 16cqw 9cqw 10cqw;
  border-radius: 16cqw;
  border: 4cqw solid #0D1B30;
  background: linear-gradient(170deg, #0B1E38, #06101F);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--border-strong);
  color: #EAF2FF;
  display: flex; flex-direction: column; gap: 6cqw;
  position: relative;
}
.phone-screen::before {
  content: ""; position: absolute; top: 5cqw; left: 50%; width: 30cqw; height: 6cqw;
  transform: translateX(-50%); border-radius: 6cqw; background: #0D1B30;
}
.phone-title { font-size: 9cqw; font-weight: 800; margin-bottom: 2cqw; }
.phone-row {
  display: flex; align-items: center; gap: 5cqw;
  padding: 6cqw 7cqw; border-radius: 9cqw;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(120, 200, 255, .1);
  font-size: 8.5cqw; font-weight: 700;
}
.phone-row .flag { width: 15cqw; }
.phone-row b {
  margin-inline-start: auto; width: 13cqw; height: 7cqw;
  background:
    linear-gradient(#2EF2A0, #2EF2A0) 0 100% / 2.6cqw 40% no-repeat,
    linear-gradient(#2EF2A0, #2EF2A0) 5.2cqw 100% / 2.6cqw 70% no-repeat,
    linear-gradient(#2EF2A0, #2EF2A0) 10.4cqw 100% / 2.6cqw 100% no-repeat;
  opacity: .8;
}
.phone-row.is-active { border-color: rgba(46, 242, 160, .55); background: rgba(46, 242, 160, .1); }

/* ---------- بخش‌های عمومی ---------- */
.section { padding-block: 72px; content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section-tint {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--glow-blue), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--border);
}
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }

/* ---------- ویژگی‌ها ---------- */
.feature-grid { display: grid; gap: 16px; }
.feature {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), transparent 140%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  color: var(--primary);
  background: linear-gradient(140deg, rgba(46, 242, 160, .16), rgba(56, 189, 248, .10));
  border: 1px solid var(--border-strong);
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: var(--step-1); }
.feature p { margin-top: 6px; color: var(--muted); }
.feature-ai { border-color: var(--border-strong); }
.feature-ai .feature-icon { color: var(--secondary); }

/* ---------- لوکیشن‌ها ---------- */
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.location {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s;
}
.location .flag-lg { grid-row: span 2; }
.loc-name { font-weight: 800; font-size: 1.0625rem; line-height: 1.4; }
.loc-region { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.location:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 14px 30px -18px var(--glow-blue); }

/* ---------- قیمت‌ها ---------- */
.plan-group + .plan-group { margin-top: 48px; }
.plan-group-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  font-size: var(--step-2); margin-bottom: 18px;
}
.plan-group-title span { font-size: .9rem; font-weight: 700; color: var(--primary); }
.plan-grid { display: grid; gap: 16px; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface), rgba(8, 20, 40, .2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-out), border-color .25s;
}
:root[data-theme="light"] .plan { background: var(--surface-strong); }
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan-badge {
  position: absolute; top: -13px; inset-inline-start: 22px;
  padding: 3px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 800; line-height: 1.6;
  background: var(--secondary); color: #021320;
}
:root[data-theme="light"] .plan-badge { color: #fff; }
.plan-trial { border-color: rgba(56, 189, 248, .45); }
.plan-best {
  border-color: rgba(46, 242, 160, .6);
  background: linear-gradient(170deg, rgba(46, 242, 160, .12), var(--surface) 55%);
  box-shadow: 0 0 0 1px rgba(46, 242, 160, .18), 0 30px 60px -30px var(--glow);
}
.plan-best .plan-badge { background: var(--primary); color: var(--primary-ink); }
.plan-volume { display: flex; align-items: baseline; gap: 8px; font-weight: 700; color: var(--muted); line-height: 1.1; }
.plan-volume .num {
  font-size: clamp(2.75rem, 2.2rem + 2vw, 3.5rem); font-weight: 900; color: var(--text);
  letter-spacing: 0;
}
.plan-duration {
  align-self: flex-start;
  margin-top: 14px; padding: 2px 12px; border-radius: 999px;
  font-size: .875rem; font-weight: 700;
  color: var(--secondary); border: 1px solid var(--border-strong);
}
.plan-features { display: grid; gap: 8px; margin-block: 20px 22px; padding-top: 18px; border-top: 1px dashed var(--border-strong); }
.plan-features li { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--muted); }
.plan-features .icon { color: var(--primary); width: 18px; height: 18px; stroke-width: 2.4; }
.plan-price { margin-top: auto; font-size: .95rem; font-weight: 700; color: var(--muted); }
.plan-amount { font-size: 1.75rem; font-weight: 900; color: var(--text); margin-inline-end: 4px; }
.plan-btn { width: 100%; margin-top: 16px; }

.plan-grid.plan-grid-single { grid-template-columns: minmax(0, 1fr); }
.plan-wide { gap: 8px; }
.plan-wide .plan-features { margin-block: 12px; }

/* ---------- Gemini ---------- */
.gemini {
  position: relative;
  background:
    radial-gradient(ellipse 50% 60% at 15% 50%, rgba(76, 141, 255, .18), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 30%, rgba(46, 242, 160, .10), transparent 70%);
}
.gemini-grid { display: grid; gap: 32px; align-items: center; }
.gemini-art { max-width: 380px; width: 80%; margin-inline: auto; }
.gemini-art svg { width: 100%; height: auto; overflow: visible; }
.ai-orbits { fill: none; stroke: var(--grid-line); stroke-width: 1.2; }
.ai-nodes circle { fill: var(--secondary); }
.ai-nodes circle:nth-child(odd) { fill: var(--primary); }
.gemini-copy h2 { font-size: var(--step-3); }
.gemini-sub { margin-top: 8px; font-size: var(--step-1); font-weight: 700; color: var(--secondary); }
.gemini-copy > p:not(.gemini-sub):not(.fine-print) { margin-top: 16px; color: var(--muted); max-width: 36em; }
.ai-list { display: grid; gap: 10px; margin-top: 22px; }
.ai-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 700;
}
.ai-list .icon { color: var(--secondary); }
.ai-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ai-tags > span {
  padding: 4px 14px; border-radius: 999px;
  font-size: .875rem; font-weight: 700;
  color: var(--primary); background: rgba(46, 242, 160, .08); border: 1px solid rgba(46, 242, 160, .3);
}
.fine-print { margin-top: 16px; font-size: .85rem; color: var(--muted); opacity: .85; }

/* ---------- دستگاه‌ها و آموزش ---------- */
.device-grid { display: grid; gap: 16px; align-items: start; }
.device-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
:root[data-theme="light"] .device-card { background: var(--surface-strong); }
.device-icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 14px;
  color: var(--secondary); background: var(--glow-blue); border: 1px solid var(--border-strong);
}
.device-icon .icon { width: 28px; height: 28px; }
.device-card h3 { font-size: var(--step-2); }
.device-sub { color: var(--muted); }
.device-apps { margin-top: 10px; font-size: .95rem; }
.device-apps b { color: var(--primary); }
.guide { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 6px; }
.guide summary, .faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; list-style: none;
}
.guide summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.guide summary { padding-block: 10px; font-weight: 700; color: var(--secondary); min-height: 44px; }
.guide summary .icon, .faq summary .icon { transition: transform .25s var(--ease-out); }
.guide[open] summary .icon, .faq[open] summary .icon { transform: rotate(180deg); }
.guide ol { counter-reset: step; display: grid; gap: 10px; padding-block: 6px 4px; }
.guide li {
  counter-increment: step;
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  font-size: .95rem; color: var(--muted); line-height: 1.75;
}
.guide li::before {
  content: counter(step, persian);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: .8rem; font-weight: 800; color: var(--primary); border: 1px solid var(--border-strong);
}

/* ---------- مراحل ---------- */
.steps { display: grid; gap: 16px; counter-reset: none; }
.step {
  position: relative; overflow: hidden;
  padding: 28px 24px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), transparent 130%);
  border: 1px solid var(--border);
}
.step-num {
  position: absolute; inset-inline-end: 18px; top: 10px;
  font-size: 6rem; font-weight: 900; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  pointer-events: none;
}
.step-icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px;
  color: var(--primary-ink);
  background: linear-gradient(135deg, var(--primary), #22D3EE);
  box-shadow: 0 10px 30px -10px var(--glow);
}
:root[data-theme="light"] .step-icon { background: linear-gradient(135deg, #0E9F6E, #0284C7); }
.step-icon .icon { width: 26px; height: 26px; }
.step h3 { font-size: var(--step-1); }
.step p { margin-top: 6px; color: var(--muted); }

/* ---------- سوالات متداول ---------- */
.faq-list { display: grid; gap: 10px; }
.faq {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s;
}
:root[data-theme="light"] .faq { background: var(--surface-strong); }
.faq[open] { border-color: var(--border-strong); }
.faq summary { padding: 16px 20px; min-height: 56px; }
.faq summary h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.6; }
.faq summary .icon { color: var(--secondary); }
.faq p { padding: 0 20px 18px; color: var(--muted); }
.faq a { color: var(--secondary); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- پشتیبانی ---------- */
.support-card {
  position: relative; overflow: hidden;
  display: grid; gap: 22px; align-items: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(46, 242, 160, .16), transparent 60%),
    radial-gradient(ellipse 60% 120% at 0% 100%, rgba(56, 189, 248, .16), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
}
.support-icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 20px;
  color: var(--primary); background: rgba(46, 242, 160, .1); border: 1px solid rgba(46, 242, 160, .35);
}
.support-icon .icon { width: 32px; height: 32px; }
.support-copy h2 { font-size: var(--step-3); }
.support-copy p { margin-top: 8px; color: var(--muted); }
.support-id a { color: var(--secondary); font-weight: 700; }
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- فوتر ---------- */
.site-footer { padding-top: 56px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: .95rem; max-width: 30em; }
.footer-col h2 { font-size: 1rem; margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding-block: 4px; color: var(--muted); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { margin-top: 40px; padding-block: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .875rem; }

/* ==========================================================
   واکنش‌گرایی (موبایل‌اول)
   ========================================================== */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list { grid-template-columns: repeat(4, auto); justify-content: start; }
  .support-card { padding: 40px; }
}

@media (min-width: 900px) {
  .hero { padding-block: 56px 80px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 32px; }
  .trust-list { grid-template-columns: repeat(2, auto); }
  .section { padding-block: 96px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gemini-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .gemini-art { order: 2; width: 100%; }
  .device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-card { grid-template-columns: auto 1fr auto; padding: 44px 48px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .plan-wide {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  }
  .plan-wide .plan-features { margin: 0; padding: 0 32px; border-top: 0; border-inline-start: 1px dashed var(--border-strong); }
  .plan-wide-buy { display: flex; flex-direction: column; align-items: stretch; min-width: 220px; }
}

@media (min-width: 1200px) {
  .location-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; }
  .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (hover: none) {
  .plan:hover, .location:hover, .btn-primary:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .sweep { transform: rotate(40deg); }
}

@media (max-width: 479px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .support-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 639px) {
  .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; padding: 20px 18px; }
  .feature-icon { grid-row: span 2; margin-bottom: 0; }
  .feature p { margin-top: 2px; }
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 32px; }
}

/* ==========================================================
   مزایای اشتراک (بنتو)
   ========================================================== */
.bento { display: grid; gap: 16px; }
.tile {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
:root[data-theme="light"] .tile { background: var(--surface-strong); }
.tile h3 { font-size: var(--step-1); }
.tile p { margin-top: 6px; color: var(--muted); }
.tile-icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  color: var(--secondary); background: var(--glow-blue); border: 1px solid var(--border-strong);
}
.tile-icon .icon { width: 24px; height: 24px; }

.tile-dc {
  display: grid; gap: 20px; align-items: center;
  border-color: rgba(46, 242, 160, .35);
  background:
    radial-gradient(ellipse 70% 90% at 0% 50%, rgba(46, 242, 160, .12), transparent 70%),
    var(--surface);
}
:root[data-theme="light"] .tile-dc { background: radial-gradient(ellipse 70% 90% at 0% 50%, rgba(14, 159, 110, .10), transparent 70%), #fff; }
.tile-dc .tile-icon { color: var(--primary); background: rgba(46, 242, 160, .1); border-color: rgba(46, 242, 160, .35); }
.tile-dc h3 { font-size: var(--step-2); }
.dc-diagram { width: 100%; max-width: 320px; height: auto; margin-inline: auto; }
.dc-links path { fill: none; stroke: var(--primary); stroke-width: 2; stroke-dasharray: 5 6; }
.dc-links path.is-down { stroke: var(--muted); opacity: .35; }
.dc-node rect { fill: var(--surface-strong); stroke: var(--border-strong); stroke-width: 1.5; }
.dc-node path { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
.dc-node circle { fill: var(--primary); }
.dc-node.is-down { opacity: .45; }
.dc-node.is-down circle { fill: #F87171; }
.dc-core { fill: var(--primary); filter: drop-shadow(0 0 10px var(--glow)); }
.dc-core-icon { fill: none; stroke: var(--primary-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.tile-cash { display: flex; flex-direction: column; }
.tile-cash .tile-icon { color: var(--primary); background: rgba(46, 242, 160, .1); border-color: rgba(46, 242, 160, .35); }
.cash-num {
  margin: 4px 0 6px !important;
  font-size: clamp(3.5rem, 2.8rem + 3vw, 5rem); font-weight: 900; line-height: 1;
  color: var(--primary) !important;
}
.isp-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.isp-list li {
  padding: 2px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 700;
  color: var(--text); border: 1px solid var(--border-strong);
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-dc { grid-column: span 2; grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-dc { grid-column: span 2; }
}

/* ==========================================================
   ویدیوی آموزش
   ========================================================== */
.video-block {
  display: grid; gap: 24px; align-items: center;
  margin-bottom: 32px; padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}
:root[data-theme="light"] .video-block { background: var(--surface-strong); }
.video-copy h3 { font-size: var(--step-2); }
.video-copy > p { margin-top: 8px; color: var(--muted); }
.video-points { display: grid; gap: 10px; margin-top: 18px; }
.video-points li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.video-points .icon {
  width: 34px; height: 34px; padding: 7px; border-radius: 10px;
  color: var(--primary); background: var(--glow-blue); border: 1px solid var(--border);
}
.video-figure { margin: 0; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background: #000;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.video-facade:hover img { transform: scale(1.03); }
.video-facade:focus-visible { outline-offset: -4px; outline-width: 3px; }
.video-play {
  position: absolute; bottom: 14px; inset-inline-start: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 18px; border-radius: 999px;
  font-weight: 800; font-size: .95rem; line-height: 1.4;
  color: var(--primary-ink);
  background: linear-gradient(135deg, #2EF2A0, #22D3EE);
  box-shadow: 0 10px 30px -8px rgba(46, 242, 160, .7);
  transition: transform .2s var(--ease-out);
}
.video-play .icon { width: 20px; height: 20px; }
.video-facade:hover .video-play { transform: scale(1.05); }
.video-time {
  position: absolute; top: 12px; inset-inline-end: 12px;
  padding: 2px 10px; border-radius: 8px;
  font-size: .8rem; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .7);
}
.video-figure figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }

@media (min-width: 900px) {
  .video-block { grid-template-columns: 1fr 1.6fr; gap: 36px; padding: 28px 28px 28px 32px; margin-bottom: 40px; }
}

/* ==========================================================
   لوکیشن‌ها: ۱۸ کشور در کاشی‌های عمودی
   ========================================================== */
.location-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.location {
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto;
  justify-items: center; text-align: center; row-gap: 2px;
  padding: 16px 8px 14px;
}
.location .flag-lg { grid-row: auto; margin-bottom: 8px; }
.loc-region { font-size: .8rem; }
@media (min-width: 640px) {
  .location-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .location-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; gap: 12px; }
}
@media (min-width: 1200px) {
  .location-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; }
}

/* ==========================================================
   دانلود برنامه‌ها
   ========================================================== */
.hero-dl {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-weight: 700; color: var(--secondary);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--border-strong);
}
.hero-dl:hover { text-decoration-color: currentColor; }
.guide a { color: var(--secondary); text-decoration: underline; text-underline-offset: 4px; }

.download {
  margin-bottom: 32px; padding: 24px 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(46, 242, 160, .10), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}
:root[data-theme="light"] .download { background: radial-gradient(ellipse 50% 80% at 100% 0%, rgba(14, 159, 110, .08), transparent 70%), #fff; }
.download-head h3 { font-size: var(--step-2); }
.download-head p { margin-top: 6px; color: var(--muted); }

.dl-tabs {
  display: flex; gap: 4px; margin-top: 20px; padding: 4px;
  border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border);
}
.dl-tabs[hidden] { display: none; }
.dl-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-weight: 700; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.dl-tab:hover { color: var(--text); }
.dl-tab[aria-selected="true"] { background: var(--primary); color: var(--primary-ink); }
.dl-tab .icon { width: 1.15em; height: 1.15em; }

.dl-panels { display: grid; gap: 18px; margin-top: 18px; }
.dl-panel[hidden] { display: none; }
.dl-platform { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 1rem; color: var(--secondary); }
.download.dl-js .dl-platform { display: none; }
.dl-apps { display: grid; gap: 10px; }
.dl-app {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center;
  padding: 14px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
}
.dl-mono {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  font-weight: 900; font-size: .95rem; color: var(--primary);
  background: linear-gradient(140deg, rgba(46, 242, 160, .16), rgba(56, 189, 248, .12));
  border: 1px solid var(--border-strong);
}
.dl-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 1.0625rem; font-weight: 800; line-height: 1.5; }
.dl-badge {
  padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; line-height: 1.8;
  color: var(--primary); background: rgba(46, 242, 160, .08); border: 1px solid rgba(46, 242, 160, .4);
}
.dl-note { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.dl-btn { grid-column: 1 / -1; width: 100%; }

@media (min-width: 640px) {
  .download { padding: 28px 28px; }
  .dl-tabs { display: inline-flex; }
  .dl-tabs[hidden] { display: none; }
  .dl-tab { flex: none; padding: 0 20px; }
  .dl-app { grid-template-columns: auto minmax(0, 1fr) auto; padding: 16px 18px; }
  .dl-btn { grid-column: auto; width: auto; }
}
@media (min-width: 1024px) and (max-width: 1239px) {
  .primary-nav { margin-inline-start: 12px; }
  .primary-nav a:not(.btn) { padding: 8px 8px; font-size: .925rem; }
}

/* ==========================================================
   ویدیوی ویندوز در تب دانلود
   ========================================================== */
.dl-video { margin-top: 14px; max-width: 560px; }
.dl-video .video-play { padding: 6px 14px 6px 16px; font-size: .875rem; }
.device-video {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: .9rem; font-weight: 700; color: var(--secondary);
}
.device-video .icon { width: 16px; height: 16px; }
.device-video:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================
   نمایندگی (لحن تجاری: آبی/فیروزه‌ای به‌جای سبز)
   ========================================================== */
.reseller-card {
  display: grid; gap: 28px; align-items: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(56, 189, 248, .16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(59, 130, 246, .14), transparent 70%),
    var(--surface);
  border: 1px solid rgba(56, 189, 248, .35);
  box-shadow: 0 30px 60px -36px rgba(56, 189, 248, .45);
}
:root[data-theme="light"] .reseller-card {
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(3, 105, 161, .08), transparent 70%),
    #fff;
  border-color: rgba(3, 105, 161, .3);
  box-shadow: var(--shadow-card);
}
.reseller-copy h2 { font-size: var(--step-3); }
.reseller-lead { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; max-width: 36em; }
.reseller-perks { display: grid; gap: 14px; margin-top: 24px; }
.reseller-perks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.perk-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--secondary); background: var(--glow-blue); border: 1px solid var(--border-strong);
}
.perk-icon .icon { width: 22px; height: 22px; }
.reseller-perks h3 { font-size: 1.0625rem; line-height: 1.5; }
.reseller-perks p { color: var(--muted); font-size: .95rem; }

.reseller-steps-title { margin-top: 26px; font-size: 1rem; color: var(--secondary); }
.reseller-steps { display: grid; gap: 8px; margin-top: 10px; }
.reseller-steps li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.reseller-steps span {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  font-size: .875rem; font-weight: 900; color: #021320; background: var(--secondary);
}
:root[data-theme="light"] .reseller-steps span { color: #fff; }

.reseller-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; }
.reseller-cta p { color: var(--muted); font-size: .9rem; }
.reseller-cta p a { color: var(--secondary); font-weight: 700; }
.btn-reseller {
  background: linear-gradient(135deg, #38BDF8, #3B82F6);
  color: #021320;
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, .6);
}
:root[data-theme="light"] .btn-reseller { background: linear-gradient(135deg, #0369A1, #1D4ED8); color: #fff; }
.btn-reseller:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(56, 189, 248, .6); }

@media (max-width: 479px) {
  .reseller-cta .btn { flex: 1 1 100%; }
}
@media (min-width: 640px) {
  .reseller-card { padding: 36px; }
}
@media (min-width: 1024px) {
  .reseller-card { grid-template-columns: 1fr 1.05fr; gap: 44px; padding: 44px 48px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .primary-nav { margin-inline-start: 8px; }
  .primary-nav ul { gap: 0; }
  .primary-nav a:not(.btn) { padding: 8px 7px; font-size: .9rem; }
}

/* منوی ۸ گزینه‌ای: بدون شکستن خط */
.primary-nav a:not(.btn) { white-space: nowrap; }
@media (min-width: 1280px) {
  .primary-nav { margin-inline-start: 16px; }
  .primary-nav ul { gap: 2px; }
  .primary-nav a:not(.btn) { padding: 8px 9px; font-size: .95rem; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-cta { display: none; }
}

/* ==========================================================
   کسب درآمد (همکاری در فروش) + ماشین‌حساب
   ========================================================== */
.earn {
  background:
    radial-gradient(ellipse 45% 60% at 85% 20%, rgba(46, 242, 160, .10), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(56, 189, 248, .08), transparent 70%);
}
.earn-grid { display: grid; gap: 28px; align-items: center; }
.earn-copy h2 { font-size: var(--step-3); }
.earn-lead { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; max-width: 34em; }
.earn-steps { display: grid; gap: 16px; margin-top: 26px; }
.earn-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.earn-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-weight: 900; color: var(--primary-ink);
  background: linear-gradient(135deg, var(--primary), #22D3EE);
  box-shadow: 0 8px 20px -10px var(--glow);
}
:root[data-theme="light"] .earn-num { background: linear-gradient(135deg, #0E9F6E, #0284C7); }
.earn-steps h3 { font-size: 1.0625rem; line-height: 1.6; }
.earn-steps p { color: var(--muted); font-size: .95rem; }
.earn-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.earn-help { color: var(--secondary); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--border-strong); }

.earn-calc {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(46, 242, 160, .12), transparent 70%),
    var(--surface-strong);
  border: 1px solid rgba(46, 242, 160, .4);
  box-shadow: 0 30px 60px -34px var(--glow);
}
:root[data-theme="light"] .earn-calc { background: #fff; border-color: rgba(14, 159, 110, .35); box-shadow: var(--shadow-card); }
.calc-title { display: flex; align-items: center; gap: 10px; font-size: var(--step-1); }
.calc-title .icon { color: var(--primary); }
.calc-form { display: grid; gap: 10px; margin-top: 20px; }
.calc-form[hidden] { display: none; }
.calc-label { font-size: .9rem; font-weight: 700; color: var(--muted); }
.calc-select { position: relative; }
.calc-select select {
  width: 100%; min-height: 50px; padding: 0 16px 0 44px;
  appearance: none; -webkit-appearance: none;
  font: inherit; font-weight: 700; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer;
}
.calc-select select:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.calc-select .icon { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--secondary); pointer-events: none; }
.calc-range-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.calc-count { font-weight: 900; color: var(--primary); font-size: 1.0625rem; }

.calc-range {
  --fill: 8%;
  width: 100%; height: 28px; margin: 0;
  appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer;
}
.calc-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 99px;
  background: linear-gradient(to left, var(--primary) var(--fill), var(--border-strong) var(--fill));
}
.calc-range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--border-strong); }
.calc-range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--primary); }
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 4px solid var(--primary); box-shadow: 0 0 0 6px rgba(46, 242, 160, .18);
}
.calc-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid var(--primary); box-shadow: 0 0 0 6px rgba(46, 242, 160, .18);
}
.calc-range:focus-visible { outline: 2px solid var(--secondary); outline-offset: 4px; border-radius: 99px; }

.calc-result {
  margin-top: 12px; padding: 18px; border-radius: var(--radius);
  background: rgba(46, 242, 160, .07); border: 1px dashed rgba(46, 242, 160, .45);
}
.calc-big { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.calc-big output { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); font-weight: 900; line-height: 1.2; color: var(--primary); }
.calc-big span { font-weight: 700; color: var(--muted); }
.calc-year { margin-top: 8px; font-size: .95rem; color: var(--muted); }
.calc-year b { color: var(--text); }
.calc-static { margin-top: 16px; color: var(--muted); }
.calc-note { margin-top: 14px; font-size: .8rem; color: var(--muted); opacity: .85; }

.earn-bridge {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center;
  margin-top: 32px; padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid rgba(56, 189, 248, .3);
  transition: border-color .2s, transform .25s var(--ease-out);
}
.earn-bridge:hover { border-color: var(--secondary); transform: translateY(-2px); }
.earn-bridge-icon {
  grid-row: span 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--secondary); background: var(--glow-blue); border: 1px solid var(--border-strong);
}
.earn-bridge-text { display: grid; color: var(--muted); font-size: .95rem; }
.earn-bridge-text b { color: var(--text); font-size: 1rem; }
.earn-bridge-link { font-weight: 800; color: var(--secondary); }

@media (min-width: 640px) {
  .earn-calc { padding: 30px 28px; }
  .earn-bridge { grid-template-columns: auto minmax(0, 1fr) auto; }
  .earn-bridge-icon { grid-row: auto; }
}
@media (min-width: 1024px) {
  .earn-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 479px) {
  .earn-calc { padding: 22px 16px; }
  .calc-select select { padding: 0 10px 0 32px; font-size: 16px; }
  .calc-select .icon { inset-inline-end: 10px; }
}

/* ==========================================================
   اصلاحات موبایل و تبلت
   ========================================================== */

/* منوی موبایل در حالت افقی یا گوشی‌های کوتاه اسکرول می‌خورد */
@media (max-width: 1023px) {
  .primary-nav {
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* اهداف لمسی حداقل ۴۴ پیکسل */
.hero-dl, .earn-help, .device-video { min-height: 44px; display: inline-flex; align-items: center; }
.footer-col ul { gap: 0; }
.footer-col a { padding-block: 10px; }

/* هیروی گوشی‌های کوچک: چیپ‌ها روی هم نیفتند و از لبه بیرون نزنند */
@media (max-width: 399px) {
  .chip-yt, .chip-google { display: none; }
  .radar .chip-tg { --x: 86% !important; }
}

/* قیمت‌ها روی موبایل: کارت‌های فشرده، ویژگی‌ها یک بار بالای بخش */
.plan-includes { display: none; }
@media (max-width: 639px) {
  .plan-includes {
    display: block; margin: -16px 0 28px; padding: 14px 16px;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  }
  .plan-includes p { font-weight: 800; font-size: .95rem; }
  .plan-includes ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
  .plan-includes li { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); }
  .plan-includes .icon { width: 16px; height: 16px; color: var(--primary); stroke-width: 2.4; }

  .plan-group + .plan-group { margin-top: 32px; }
  .plan-grid { gap: 14px; }
  .plan {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "vol price" "dur price" "btn btn";
    column-gap: 12px; row-gap: 8px; align-items: center;
    padding: 22px 18px 18px;
  }
  .plan-wide-main, .plan-wide-buy { display: contents; }
  .plan-features { display: none; }
  .plan-volume { grid-area: vol; }
  .plan-volume .num { font-size: 2.5rem; }
  .plan-duration { grid-area: dur; margin-top: 0; justify-self: start; }
  .plan-price {
    grid-area: price; margin-top: 0;
    display: flex; flex-direction: column; align-items: flex-end; line-height: 1.4; text-align: end;
  }
  .plan-amount { font-size: 1.35rem; margin-inline-end: 0; }
  .plan-btn { grid-area: btn; margin-top: 6px; }
}

/* تبلت: کارت‌های دستگاه و مراحل سه‌ستونی */
@media (min-width: 768px) {
  .device-grid, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
