/* فونت میخک (Mikhak) — مجوز SIL OFL، فایل در static/fonts */
@font-face {
  font-family: "Mikhak";
  src: url("/static/fonts/Mikhak-FD.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f5fb;
  --surface: #ffffff;
  --surface-2: #f9f8ff;
  --alt: #eeecf8;
  --ink: #17152b;
  --muted: #625f7a;
  --line: #e2e0ef;
  --accent: #4338ca;
  --accent-2: #0ea5a4;
  --accent-soft: #e9e7ff;
  --accent-ink: #ffffff;
  --danger-bg: #fdecec;
  --danger-ink: #9b1c1c;
  --info-bg: #e3f6f3;
  --info-ink: #0b5e55;
  --warn-bg: #fdf3d8;
  --warn-ink: #7a5605;
  --shadow-sm: 0 1px 2px rgba(23, 21, 43, 0.06), 0 1px 1px rgba(23, 21, 43, 0.04);
  --shadow: 0 10px 30px -12px rgba(46, 38, 140, 0.22), 0 2px 6px rgba(23, 21, 43, 0.05);
  --shadow-lg: 0 30px 60px -20px rgba(46, 38, 140, 0.35);
  --glow-a: rgba(99, 102, 241, 0.22);
  --glow-b: rgba(20, 184, 166, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d1a;
    --surface: #17162a;
    --surface-2: #1c1b33;
    --alt: #131225;
    --ink: #eeedf8;
    --muted: #a6a3c2;
    --line: #2b2947;
    --accent: #8b8cff;
    --accent-2: #2dd4bf;
    --accent-soft: rgba(139, 140, 255, 0.14);
    --accent-ink: #0e0d1a;
    --danger-bg: #3a1618;
    --danger-ink: #fbb4b4;
    --info-bg: #10302d;
    --info-ink: #99f0e2;
    --warn-bg: #362a0c;
    --warn-ink: #f3d68a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    --glow-a: rgba(99, 102, 241, 0.25);
    --glow-b: rgba(20, 184, 166, 0.12);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Mikhak", Vazirmatn, Tahoma, sans-serif;
  font-size: 16.5px;
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* هاله رنگی پس‌زمینه */
.bg-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 720px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(520px 340px at 85% 0%, var(--glow-a), transparent 70%),
    radial-gradient(460px 320px at 10% 30%, var(--glow-b), transparent 70%);
}
header, main, footer { position: relative; z-index: 1; }

main { flex: 1; }
a { color: var(--accent); text-underline-offset: 4px; }
h1, h2, h3 { line-height: 1.45; margin: 0 0 0.75rem; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 700; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.login { max-width: 420px; }
.muted { color: var(--muted); font-size: 0.93rem; }
.center { text-align: center; }
.section-lead { margin: -0.25rem auto 2rem; max-width: 520px; }

/* سربرگ */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) { .top { background: rgba(23, 22, 42, 0.8); } }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; min-height: 66px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); flex: none; filter: drop-shadow(0 6px 10px rgba(67, 56, 202, 0.3)); }
.brand-small { font-size: 0.95rem; }
.brand-small .brand-mark { width: 26px; height: 26px; filter: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-block: 6px; }
nav form { margin: 0; }
nav a, .link-button {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, .link-button:hover { background: var(--accent-soft); color: var(--accent); }

/* صفحه اصلی */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); font-weight: 900; line-height: 1.35; margin-bottom: 1.1rem; }
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.6rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; color: var(--muted); font-size: 0.92rem; }
.chips li::before { content: "✓"; color: var(--accent-2); font-weight: 900; margin-inline-end: 6px; }

/* نمای تزئینی گوشی */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.device {
  width: min(300px, 100%);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 24px 22px 26px;
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
.device-top { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: var(--info-ink); }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.2); }
.device-ring {
  width: 158px;
  aspect-ratio: 1;
  margin: 20px auto 22px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 79%),
    conic-gradient(from 0deg, var(--accent) 0 74%, var(--alt) 74% 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.device-ring span { font-size: 2.1rem; font-weight: 900; line-height: 1.2; }
.device-ring small { color: var(--muted); font-size: 0.85rem; }
.device-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--muted); padding: 4px 0; }
.device-row strong { color: var(--ink); }
.device-bar { height: 8px; border-radius: 999px; background: var(--alt); overflow: hidden; margin: 4px 0 10px; }
.device-bar i { display: block; height: 100%; width: 73%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.float-a { top: 18%; inset-inline-start: -4%; color: var(--info-ink); animation: float 6s ease-in-out infinite reverse; }
.float-b { bottom: -4%; inset-inline-end: 6%; color: var(--accent); animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .device, .float-card { animation: none; } html { scroll-behavior: auto; } }

.section { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--alt) 18%, var(--alt) 82%, transparent); }
.page-title { font-size: clamp(1.5rem, 4vw, 1.9rem); margin-bottom: 1.25rem; }
.step-title { font-size: 1.12rem; }

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #3b5bdb);
  color: var(--accent-ink);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 24px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(67, 56, 202, 0.6);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
@media (prefers-color-scheme: dark) { .btn { background: linear-gradient(135deg, var(--accent), #6d8bff); } }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 26px -10px rgba(67, 56, 202, 0.7); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible, .link-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn-quiet { background: var(--surface); color: var(--accent); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-quiet:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
@media (prefers-color-scheme: dark) { .btn-quiet { background: var(--surface); } }
.btn-lg { padding: 13px 30px; font-size: 1.05rem; border-radius: 14px; }
.btn-small { padding: 4px 14px; font-size: 0.88rem; border-radius: 10px; box-shadow: none; }

/* پلن‌ها */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  box-shadow: var(--shadow);
}
.plan-featured:hover { border-color: transparent; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.badge {
  background: linear-gradient(135deg, #4338ca, #0d9488);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.price { margin: 0.25rem 0 0.4rem; }
.price strong { font-size: 2rem; font-weight: 900; }

/* مراحل خرید */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; padding: 0; margin: 1.5rem 0 0; }
.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step, persian);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #4338ca, #0d9488);
}
.steps strong { font-size: 1.08rem; margin-bottom: 4px; }
.steps span { color: var(--muted); }

/* سؤال‌ها */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
  margin-bottom: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
details[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 12px; color: var(--muted); }

/* کارت‌ها و فرم‌ها */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.panel p:last-child { margin-bottom: 0; }
.login { padding-top: 24px; }
.login .panel { padding: 32px 28px; box-shadow: var(--shadow); }
.login .panel::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E") center / 26px no-repeat,
    linear-gradient(135deg, #4338ca, #0d9488);
  box-shadow: 0 10px 22px -10px #4338ca;
}
.login .btn { width: 100%; padding-block: 12px; }

.card-number {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, #312e81, #4338ca 55%, #0f766e);
  border-radius: 16px;
  padding: 26px 18px;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow);
}

label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
input:not([type="hidden"]), select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:not([type="hidden"]):focus, select:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
  outline: none;
}
input::placeholder { color: var(--muted); opacity: 0.6; }

.form-note { margin: 14px 0 0; }
.approval-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.link-button { background: none; border: 0; font: inherit; font-size: 0.95rem; cursor: pointer; }
.order-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s;
}
.order-link:last-child { border-bottom: 0; }
.order-link:hover { background: var(--accent-soft); }

.alert { background: var(--danger-bg); color: var(--danger-ink); border-radius: 12px; padding: 11px 16px; font-size: 0.95rem; border-inline-start: 4px solid currentColor; }
.alert-info { background: var(--info-bg); color: var(--info-ink); }

.status { display: inline-block; padding: 3px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: var(--alt); color: var(--muted); }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-inline-end: 7px; vertical-align: middle; }
.status-pending, .status-provisioning { background: var(--warn-bg); color: var(--warn-ink); }
.status-active { background: var(--info-bg); color: var(--info-ink); }
.status-rejected { background: var(--danger-bg); color: var(--danger-ink); }

.creds { margin: 0 0 1.25rem; }
.cred { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.cred:last-child { border-bottom: 0; }
.cred dt { color: var(--muted); }
.cred dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.guide { padding-inline-start: 22px; margin: 0 0 1rem; }
.guide li { margin-bottom: 6px; }
.guide li::marker { color: var(--accent); font-weight: 800; }

/* نوار مصرف حجم در صفحه سرویس */
.meter {
  width: 100%;
  height: 0.85rem;
  margin: 0.9rem 0 0.25rem;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--alt);
  overflow: hidden;
}
.meter::-webkit-progress-bar { background: var(--alt); border-radius: 999px; }
.meter::-webkit-progress-value { background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; }
.meter::-moz-progress-bar { background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; }
.meter-note { margin-top: 0; }

/* پنل مدیریت */
.admin-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.admin-head .page-title { margin-inline-end: auto; }
.admin-head form { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.stats strong { font-size: 1.6rem; font-weight: 900; color: var(--accent); }

.orders { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: 0.92rem; box-shadow: var(--shadow-sm); }
.orders th, .orders td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.orders tr:last-child td { border-bottom: 0; }
.orders th { color: var(--muted); font-weight: 700; background: var(--surface-2); }
.orders tbody tr:hover td { background: var(--surface-2); }
.actions form { display: inline-block; margin: 0 0 4px 6px; }
.actions a.btn { margin: 0 0 4px 6px; }
.row-error { color: var(--danger-ink); font-size: 0.82rem; margin: 6px 0 0; }

.search-row { display: flex; gap: 8px; margin: 16px 0 24px; }
.search-row input { margin: 0; }
.narrow-form { max-width: 560px; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; margin-bottom: 16px; }
label.check input { width: auto; margin: 0; accent-color: var(--accent); }
.pager { margin-top: 12px; align-items: center; }
.list-title { margin-top: 32px; }

/* پاورقی */
footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: 0.9rem; color: var(--muted); background: var(--surface); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }

/* موبایل */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { order: -1; padding: 8px 0 0; }
  .device { width: 250px; padding: 18px; border-radius: 28px; }
  .device-ring { width: 120px; margin: 14px auto 16px; }
  .device-ring span { font-size: 1.6rem; }
  .float-a { inset-inline-start: 0; }
  .float-b { inset-inline-end: 0; }
}
@media (max-width: 760px) {
  .hero { padding: 32px 0 48px; }
  .section { padding: 40px 0; }
  .panel { padding: 20px; }
  .orders thead { display: none; }
  .orders, .orders tbody, .orders tr, .orders td { display: block; width: 100%; }
  .orders tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .orders td { border: 0; padding: 4px 14px; }
  .orders td::before { content: attr(data-label) ": "; color: var(--muted); font-size: 0.85rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .float-card { display: none; }
  nav a, .link-button { padding: 6px 9px; font-size: 0.9rem; }
}

/* صفحه اتصال میکروتیک */
.router-hint { margin: -10px 0 16px; font-size: 0.85rem; }
details.advanced { margin-bottom: 16px; background: var(--surface-2); }
details.advanced[open] { padding-bottom: 8px; }

/* نام کاربری، رمز و آدرس: چپ‌به‌راست با رقم انگلیسی (فونت میخک رقم‌ها را فارسی می‌کند) */
.code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-weight: 700; letter-spacing: 0.3px; direction: ltr; unicode-bidi: isolate; }

/* صفحه سرویس مشتری */
.svc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.svc-head .page-title { margin: 0; }
.svc-summary { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
.svc-ring { position: relative; width: 168px; aspect-ratio: 1; }
.svc-ring svg { width: 100%; height: 100%; display: block; }
.svc-ring-bg { fill: none; stroke: var(--alt); stroke-width: 11; }
.svc-ring-fg { fill: none; stroke: url(#ringGrad); stroke-width: 11; stroke-linecap: round; }
.svc-ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.svc-ring-text strong { font-size: 2rem; font-weight: 900; line-height: 1.15; }
.svc-ring-text small { color: var(--muted); font-size: 0.82rem; }
.svc-stats { display: grid; gap: 14px; }
.svc-stat { display: grid; gap: 2px; }
.svc-stat span { color: var(--muted); font-size: 0.9rem; }
.svc-stat strong { font-size: 1.45rem; font-weight: 900; }
.svc-stat small { color: var(--muted); font-size: 0.85rem; }
.svc-stats .meter { margin: 2px 0 0; }
.svc-download {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin: 18px 0; padding: 24px 26px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, #312e81, #4338ca 45%, #0f766e);
  box-shadow: var(--shadow-lg);
}
.svc-download h2 { margin: 0 0 6px; font-size: 1.2rem; color: #fff; }
.svc-download p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 34rem; }
.svc-download-off { background: var(--surface); color: var(--ink); border: 1px dashed var(--line); box-shadow: none; }
.svc-download-off h2 { color: var(--ink); }
.svc-download-off p { color: var(--muted); }
.btn-light { background: #fff; color: #312e81; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45); }
.btn-light:hover { background: #f1f0ff; color: #312e81; }
.svc-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.svc-steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-items: start; }
.svc-steps li::before {
  content: counter(step, persian); grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #4338ca, #0d9488);
}
.svc-steps strong { font-size: 1rem; }
.svc-steps span { color: var(--muted); font-size: 0.92rem; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.svc-warning { text-align: center; }
@media (max-width: 560px) {
  .svc-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .svc-stats { width: 100%; }
  .svc-ring { width: 150px; }
  .svc-download { padding: 20px; }
  .svc-download .btn { width: 100%; }
  .svc-actions .btn { flex: 1; }
}
.panel .creds:last-child { margin-bottom: 0; }

/* وب‌اپ و صفحه نصب */
.is-hidden { display: none !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.is-app .app-link { display: none; }
.app-only { display: none; }
.is-app .app-only { display: block; }
.install-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.install-head img { border-radius: 22%; box-shadow: var(--shadow); flex: none; }
.install-head .page-title { margin: 0 0 4px; }
.install-head p { margin: 0; }
.install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.install-grid .panel { margin: 0; }
.install-android > .btn { width: 100%; margin-bottom: 4px; }
.install-android .form-note { margin: 4px 0 16px; }
.install-actions { margin-top: 14px; }
.is-ios .install-ios { order: -1; }
