/* ─────────────────────────────────────────────────────────────
   آموزش — صفحه‌های راهنما (gd-) و تصویرهای گوشی (ga-)
   تصویرها با توکن‌های theme.css رنگ می‌گیرند تا با تمِ روشن و تیره
   عوض شوند؛ فقط حلقهٔ «اینجا را بزنید» رنگِ جدای خودش را دارد چون
   باید از اکسنتِ فیروزه‌ای خودِ صفحه جدا دیده شود.
   ───────────────────────────────────────────────────────────── */

:root {
  --ga-hl: #e8710a;
  --ga-hl-soft: rgba(232, 113, 10, .2);
  --ga-frame: #11191c;
  --ga-frame-edge: #26333a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ga-hl: #ffa047;
    --ga-hl-soft: rgba(255, 160, 71, .22);
    --ga-frame: #05090a;
    --ga-frame-edge: #2f3d44;
  }
}
:root[data-theme="dark"] {
  --ga-hl: #ffa047;
  --ga-hl-soft: rgba(255, 160, 71, .22);
  --ga-frame: #05090a;
  --ga-frame-edge: #2f3d44;
}

/* ───────────────────────── صفحهٔ راهنما ───────────────────────── */

.gd-hero {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.gd-hero-ico {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  font-size: 1.4rem;
}
.gd-hero h2 { font-size: 1.05rem; font-weight: 800; text-wrap: balance; }
.gd-hero p { font-size: .8rem; color: var(--muted); margin-top: 2px; line-height: 1.8; }

.gd-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.gd-topic {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: start;
  padding: 13px var(--s3);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.gd-topic:hover { background: var(--surface-2); border-color: var(--line-strong); }
.gd-topic:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gd-topic-ico { font-size: 1.3rem; line-height: 1; }
.gd-topic-title { font-size: .9rem; font-weight: 700; }
.gd-topic-note { font-size: .72rem; color: var(--faint); line-height: 1.7; }
.gd-topic-count { font-size: .68rem; font-weight: 700; color: var(--accent); }
/* «اتصال» پرکاربردترین است؛ تمام‌عرض و برجسته */
.gd-topic.is-main {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center;
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.gd-topic.is-main .gd-topic-ico { font-size: 1.7rem; }
.gd-topic.is-main .gd-topic-note { color: var(--ink-2); }

/* گام‌شمار — هر گام یک نقطه؛ گامِ فعلی کشیده */
.gd-dots { display: flex; justify-content: center; gap: 6px; }
.gd-dot {
  width: 7px; height: 7px;
  border: 0; padding: 0;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  cursor: pointer;
  transition: width .2s, background .2s;
}
.gd-dot.is-on { width: 22px; background: var(--accent); }

.gd-step-head { display: flex; align-items: baseline; gap: var(--s2); }
.gd-step-num {
  flex: none;
  font-size: .72rem; font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.gd-step-title { font-size: 1rem; font-weight: 800; text-wrap: balance; }
.gd-step-text { font-size: .86rem; line-height: 2; color: var(--ink-2); margin-top: 6px; }
.gd-art { padding: var(--s3) 0 var(--s3); touch-action: pan-y; }
.gd-art .ga-phone { font-size: 9.4px; }
.gd-pager { display: flex; gap: var(--s2); }
.gd-pager .btn { flex: 1; }

.gd-apps { display: flex; flex-direction: column; gap: var(--s2); }
.gd-app {
  display: flex; align-items: center; gap: var(--s3);
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: start;
  padding: 12px var(--s3);
  border-radius: var(--r-md);
  cursor: pointer;
}
.gd-app.is-on { border-color: var(--accent); background: var(--accent-soft); }
.gd-app-ico {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface-sunk);
  font-weight: 800;
  color: var(--accent);
}
.gd-app-name { font-weight: 700; font-size: .92rem; }
.gd-app-note { font-size: .74rem; color: var(--muted); line-height: 1.7; }
.gd-note { font-size: .76rem; color: var(--muted); line-height: 1.9; }

/* ───────────────────────── قابِ گوشی ───────────────────────── */

.ga-phone {
  font-size: 8.6px;
  width: 25em;
  height: 50em;
  margin: 0 auto;
  padding: .7em;
  border-radius: 3.4em;
  background: var(--ga-frame);
  box-shadow: 0 0 0 1px var(--ga-frame-edge), var(--shadow-md);
  direction: rtl;
}
.ga-screen {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 2.8em;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  text-align: start;
}
.ga-screen b { font-weight: 700; }
.ga-screen small { font-size: .82em; color: var(--faint); }
.ga-grow { flex: 1; min-width: 0; }
.ga-between { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.ga-stack { display: flex; flex-direction: column; gap: .5em; }
.ga-center { text-align: center; display: block; }
.ga-label { display: block; font-weight: 700; color: var(--muted) !important; margin-top: .2em; }
.ga-warn { display: block; text-align: center; color: var(--warn) !important; }

.ga-status {
  display: flex; align-items: center; gap: .5em;
  height: 2.8em; padding: .4em 2em 0;
  font-size: .95em; font-weight: 700;
  flex: none;
}
.ga-sig { display: inline-flex; align-items: flex-end; gap: .15em; height: .9em; }
.ga-sig i { width: .25em; background: currentColor; border-radius: .1em; }
.ga-sig i:nth-child(1) { height: 40%; } .ga-sig i:nth-child(2) { height: 70%; } .ga-sig i:nth-child(3) { height: 100%; }
.ga-batt { width: 1.9em; height: .9em; border: .12em solid currentColor; border-radius: .25em; position: relative; }
.ga-batt::after { content: ""; position: absolute; inset: .12em .5em .12em .12em; background: currentColor; border-radius: .1em; }
.ga-vpnmark { font-size: .7em; border: .12em solid currentColor; border-radius: .3em; padding: 0 .25em; }

.ga-tg {
  display: flex; align-items: center; justify-content: space-between;
  padding: .45em 1.3em; font-size: .9em;
  background: var(--surface); color: var(--ink-2);
  flex: none;
}
.ga-bar {
  display: flex; align-items: center; gap: .6em;
  padding: .7em 1.3em; font-size: 1.05em;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.ga-back { color: var(--accent); font-size: 1.4em; line-height: 1; }
.ga-body { flex: 1; min-height: 0; padding: 1em; display: flex; flex-direction: column; gap: .75em; }

.ga-nav {
  display: flex; flex: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: .5em .2em 1.4em;
}
.ga-nav > * { flex: 1; display: flex; justify-content: center; }
.ga-navbtn {
  display: flex; flex-direction: column; align-items: center; gap: .2em;
  font-size: .78em; font-weight: 600; color: var(--faint);
  padding: .2em .3em;
}
.ga-navbtn svg { width: 2em; height: 2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ga-navbtn.is-on { color: var(--accent); }
.ga-nav > .ga-hl { display: flex; justify-content: center; border-radius: .8em; }

/* «اینجا را بزنید» */
.ga-hl {
  position: relative;
  display: block;
  border-radius: 1em;
  box-shadow: 0 0 0 .22em var(--ga-hl), 0 0 0 .75em var(--ga-hl-soft);
  animation: ga-pulse 1.8s ease-in-out infinite;
  z-index: 2;
}
/* نوکِ انگشت: گوشهٔ پایینِ حلقه، بیرون از متن تا برچسبِ دکمه پوشیده نشود */
.ga-tap {
  position: absolute;
  inset-inline-end: -.7em;
  bottom: -.9em;
  width: 1.9em; height: 1.9em;
  border-radius: 50%;
  background: var(--ga-hl);
  border: .24em solid #fff;
  box-shadow: 0 .25em .7em rgba(0, 0, 0, .3);
  pointer-events: none;
}
@keyframes ga-pulse {
  0%, 100% { box-shadow: 0 0 0 .22em var(--ga-hl), 0 0 0 .5em var(--ga-hl-soft); }
  50%      { box-shadow: 0 0 0 .22em var(--ga-hl), 0 0 0 1.05em transparent; }
}
@media (prefers-reduced-motion: reduce) { .ga-hl { animation: none; } }
.ga-static .ga-hl { animation: none; }

.ga-btn {
  display: flex; align-items: center; justify-content: center;
  padding: .75em 1em;
  border-radius: .85em;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ga-btn-primary { background: var(--accent); color: var(--accent-ink); }
.ga-btn-quiet { border-color: var(--line-strong); color: var(--ink-2); background: var(--surface); }
.ga-btn-sm { padding: .35em .85em; font-size: .9em; background: var(--accent); color: var(--accent-ink); }
.ga-btn-sm-quiet { padding: .3em .8em; font-size: .85em; border-color: var(--line-strong); color: var(--danger); }

.ga-pill { display: inline-flex; font-size: .8em; font-weight: 700; padding: .12em .65em; border-radius: 99em; white-space: nowrap; }
.ga-pill-accent { background: var(--accent-soft); color: var(--accent); }
.ga-pill-ok { background: var(--ok-soft); color: var(--ok); }
.ga-pill-warn { background: var(--warn-soft); color: var(--warn); }
.ga-pill-danger { background: var(--danger-soft); color: var(--danger); }
.ga-pill-mute { background: var(--surface-sunk); color: var(--muted); }

.ga-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1em;
  padding: .9em;
  display: flex; flex-direction: column; gap: .45em;
}
.ga-purse { border-inline-start: .3em solid var(--accent); }
.ga-big { font-size: 1.55em; font-weight: 800; letter-spacing: -.02em; }
.ga-kv { display: flex; justify-content: space-between; gap: .6em; font-size: .92em; color: var(--muted); }
.ga-kv b { color: var(--ink); }
.ga-total b { color: var(--accent); font-size: 1.15em; font-weight: 800; }
.ga-meter { height: .45em; border-radius: 99em; background: var(--surface-sunk); overflow: hidden; }
.ga-meter i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.ga-meter.is-danger i { background: var(--danger); }
.ga-facts { display: flex; gap: 1em; font-size: .82em; color: var(--muted); }
.ga-price { color: var(--accent); font-weight: 800; }
.ga-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: .7em; overflow: hidden;
}
.ga-specs span { background: var(--surface-2); padding: .35em .2em; text-align: center; font-weight: 700; font-size: .9em; }
.ga-specs small { display: block; font-weight: 400; }

.ga-hi { display: flex; flex-direction: column; }
.ga-hi b { font-size: 1.2em; font-weight: 800; }
.ga-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; }
.ga-tile {
  display: flex; flex-direction: column; align-items: center; gap: .3em;
  background: var(--surface); border: 1px solid var(--line); border-radius: .8em;
  padding: .7em .2em; font-size: 1.3em; line-height: 1;
}
.ga-tile small { font-size: .5em; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.3; }

.ga-seg { display: flex; gap: .2em; background: var(--surface-sunk); border-radius: .8em; padding: .25em; font-size: .85em; }
.ga-seg span { flex: 1; text-align: center; padding: .35em .2em; border-radius: .6em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.ga-seg span.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.ga-input {
  border: 1px solid var(--line-strong); border-radius: .75em;
  padding: .6em .8em; background: var(--surface); color: var(--faint);
}
.ga-num { color: var(--ink); font-weight: 800; direction: ltr; text-align: left; font-size: 1.15em; }
.ga-chips { display: flex; gap: .4em; flex-wrap: wrap; }
.ga-chips span { border: 1px solid var(--line-strong); border-radius: 99em; padding: .2em .7em; font-size: .82em; color: var(--ink-2); }
.ga-chips span.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.ga-pay {
  display: flex; align-items: center; gap: .7em;
  padding: .7em .8em; border: 1px solid var(--line); border-radius: .9em; background: var(--surface);
}
.ga-pay > span:first-child { font-size: 1.4em; }
.ga-pay small { display: block; }
.ga-pay em { display: block; font-style: normal; font-size: .75em; color: var(--warn); }

.ga-copyrow { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.ga-copyrow code, .ga-link {
  font-family: var(--mono);
  background: var(--surface-sunk);
  border-radius: .55em;
  padding: .35em .55em;
  font-size: .85em;
  direction: ltr;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ga-link { border: 1px solid var(--line); color: var(--ink-2); text-align: left; }
.ga-upload { border: 1px dashed var(--line-strong); border-radius: .8em; padding: 1.1em; text-align: center; color: var(--muted); }

.ga-alert {
  display: flex; align-items: center; gap: .55em;
  padding: .65em; border-radius: .85em; font-size: .86em;
  border: 1px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
}
.ga-alert.is-danger { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }

.ga-row { display: flex; align-items: center; gap: .6em; padding: .45em 0; }
.ga-row small { display: block; }
.ga-row.is-danger b { color: var(--danger); }
.ga-ico {
  width: 2.5em; height: 2.5em; flex: none;
  display: grid; place-items: center;
  border-radius: .65em; background: var(--accent-soft);
}
.ga-list { display: flex; flex-direction: column; gap: .35em; }
.ga-list .ga-row { background: var(--surface); border: 1px solid var(--line); border-radius: .9em; padding: .55em .7em; }

/* پنجرهٔ پرسشِ سیستم */
.ga-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); z-index: 5; }
.ga-dialog {
  position: absolute; inset-inline: 9%; top: 40%;
  z-index: 6;
  background: var(--surface);
  border-radius: 1.3em;
  padding: 1.1em 1.1em .8em;
  box-shadow: var(--shadow-lg);
  direction: ltr; text-align: left;
}
.ga-dialog b { font-size: 1.05em; display: block; }
.ga-dialog p { direction: rtl; text-align: right; color: var(--muted); font-size: .85em; margin: .35em 0 .7em; }
.ga-dialog-row { display: flex; justify-content: flex-end; align-items: center; gap: 1.2em; font-weight: 700; color: var(--muted); }
.ga-dialog-ok { display: block; padding: .3em .9em; color: var(--accent); }

/* ───────────── برنامهٔ VPN ───────────── */

.ga-vpnhead { display: flex; align-items: center; gap: .55em; padding: .7em 1.3em .5em; flex: none; }
.ga-vpnhead b { font-size: 1.35em; font-weight: 800; direction: ltr; }
.ga-round {
  width: 2.7em; height: 2.7em;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 1.15em; font-weight: 700; color: var(--ink-2);
}
.ga-plus { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-size: 1.5em; }
.ga-vpnhead .ga-hl { border-radius: 50%; }

.ga-group {
  margin: .5em 1em;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.1em;
  padding: .7em; display: flex; flex-direction: column; gap: .25em;
}
.ga-group > .ga-between small { color: var(--muted); }
.ga-srv { display: flex; align-items: center; gap: .6em; padding: .55em .6em; border-radius: .7em; }
.ga-srv small { color: var(--ok); font-family: var(--mono); direction: ltr; }
.ga-srv.is-on { background: var(--accent-soft); }
.ga-loc { width: .7em; height: .7em; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 .22em var(--ok-soft); flex: none; }

.ga-powerwrap { margin-top: auto; padding-bottom: 3em; display: flex; flex-direction: column; align-items: center; gap: .7em; }
.ga-powerwrap .ga-hl { border-radius: 50%; }
.ga-power {
  width: 7.5em; height: 7.5em;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: .35em solid var(--line-strong);
}
.ga-power svg { width: 3em; height: 3em; fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; }
.ga-power.is-on { border-color: var(--ok); background: var(--ok-soft); }
.ga-power.is-on svg { stroke: var(--ok); }
.ga-powerwrap small { color: var(--muted); }

.ga-menu {
  position: absolute; top: 6.2em; inset-inline-end: 1em;
  width: 64%; z-index: 4;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1em;
  box-shadow: var(--shadow-lg);
  padding: .35em;
  direction: ltr;
}
.ga-menuitem { display: block; padding: .65em .8em; border-radius: .65em; font-size: .92em; }
.ga-menuitem.is-hl { background: var(--ga-hl-soft); box-shadow: 0 0 0 .2em var(--ga-hl); font-weight: 700; }
.ga-empty { margin: auto; color: var(--faint); font-size: .9em; text-align: center; padding-bottom: 6em; }

.ga-store { display: flex; align-items: center; gap: .9em; padding: 1.3em 1.3em .9em; }
.ga-store small { display: block; }
.ga-store b { font-size: 1.25em; direction: ltr; display: block; }
.ga-appicon {
  /* اندازه به em خودش است (font-size بزرگ‌تر)؛ ۲٫۳ × ۲٫۲ ≈ ۵em پدر */
  width: 2.3em; height: 2.3em; flex: none;
  display: grid; place-items: center;
  border-radius: 1.2em;
  background: var(--accent); color: var(--accent-ink);
  font-size: 2.2em; font-weight: 800; font-family: var(--mono);
}
.ga-storebtn { padding: 0 1.3em; }
.ga-shots { display: flex; gap: .5em; padding: 1.2em 1.3em; }
.ga-shots i { flex: 1; height: 17em; border-radius: .9em; background: var(--surface-sunk); }

.ga-url {
  margin: .3em 1em .2em; flex: none;
  background: var(--surface-sunk);
  border-radius: 99em; padding: .4em .9em;
  font-size: .85em; color: var(--muted); text-align: center;
}

.ga-settings { padding: .6em 1em; display: flex; flex-direction: column; }
.ga-sethead { font-weight: 800; font-size: 1.2em; margin: .2em 0 .7em; direction: ltr; text-align: left; }
.ga-setrow {
  display: flex; align-items: center; gap: .6em;
  padding: .8em .9em; background: var(--surface);
  border-bottom: 1px solid var(--line);
  direction: ltr; text-align: left;
}
.ga-setrow small { display: block; direction: rtl; text-align: left; }
.ga-setrow.is-off { opacity: .45; }
.ga-settings > .ga-hl { border-radius: .6em; }
.ga-toggle { width: 3.2em; height: 1.8em; border-radius: 99em; background: var(--line-strong); position: relative; flex: none; }
.ga-toggle::after { content: ""; position: absolute; top: .2em; left: .2em; width: 1.4em; height: 1.4em; border-radius: 50%; background: #fff; }
.ga-toggle.is-on { background: var(--ok); }
.ga-toggle.is-on::after { left: auto; right: .2em; }

.ga-scanstate { padding: .5em 0; }
.ga-vpnoff { display: inline-block; padding: .45em 1em; border-radius: 99em; background: var(--ok-soft); color: var(--ok); font-weight: 800; }
.ga-scanstate .ga-hl { display: inline-block; border-radius: 99em; }
.ga-result { color: var(--ok); font-weight: 800; }
.ga-mini { border: 1px dashed var(--line-strong); border-radius: 1em; padding: .1em 0 .3em; }

.ga-notif {
  position: absolute; top: 3em; inset-inline: .7em; z-index: 4;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 1em; box-shadow: var(--shadow-lg);
  padding: .55em .8em; display: flex; flex-direction: column;
}
.ga-notif b { font-size: .8em; color: var(--muted); }
.ga-notif span { font-size: .92em; font-weight: 700; }

.ga-bubble {
  max-width: 82%;
  padding: .55em .8em;
  border-radius: 1em;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .9em;
  align-self: flex-start;
}
.ga-bubble.is-me { align-self: flex-end; background: var(--accent-soft); border-color: var(--accent-line); }

.ga-chathead { display: flex; align-items: center; gap: .6em; padding: .55em 1.1em; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.ga-avatar { width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.ga-chat { flex: 1; padding: 1em; display: flex; flex-direction: column; justify-content: flex-end; gap: .5em; background: var(--surface-2); }
.ga-kb {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .35em;
  padding: .5em .5em 1.6em; background: var(--surface-sunk); flex: none;
}
.ga-key {
  display: block;
  background: var(--surface); border-radius: .6em;
  padding: .6em .2em; text-align: center;
  font-size: .82em; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.ga-key.is-wide { grid-column: 1 / -1; }
.ga-kb > .ga-hl { border-radius: .6em; }
