/* ==========================================================================
   ونکوسرور — سیستم طراحی نسخه‌ی ۳
   ---------------------------------------------------------------------------
   زبان بصری: فنی، آرام و دقیق. یک رنگ تأکیدی (بنفش برند) روی پایه‌ی خنثی‌ی
   سرد (slate). تیترها با Estedad، متن با Vazirmatn.
   قاعده‌ی گوشه‌ها: دکمه و فیلد ۱۲px، کارت ۲۰px، برچسب و قرص گرد کامل.
   همه‌ی رنگ‌ها از متغیرهای زیر می‌آیند تا تم تیره با یک جابه‌جایی کار کند.
   ========================================================================== */

@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/estedad-extrabold.woff2') format('woff2');
}

@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/estedad-black.woff2') format('woff2');
}

:root {
  --c-bg: #f6f7f9;
  --c-surface: #ffffff;
  --c-surface-2: #f1f3f7;
  --c-line: #e3e7ee;
  --c-line-strong: #d3d9e3;
  --c-ink: #0f172a;
  --c-ink-2: #334155;
  --c-muted: #556275;
  --c-accent: #6d28d9;
  --c-accent-hover: #5b21b6;
  --c-accent-soft: #f3f0ff;
  --c-accent-line: #ddd3fd;
  --c-accent-ink: #4c1d95;
  --c-deep: #160f2e;          /* سطح تیره‌ی برند برای کارت برجسته و نوار پشتیبانی */
  --c-deep-2: #22184a;
  --tint: 76 29 149;          /* رنگ سایه‌ها: بنفش خیلی کم‌رنگ، نه سیاه */
  --r-ctl: 12px;
  --r-card: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html.dark {
  --c-bg: #0f141b;
  --c-surface: #161c25;
  --c-surface-2: #1b222c;
  --c-line: #283140;
  --c-line-strong: #364152;
  --c-ink: #e8edf3;
  --c-ink-2: #c3ccd7;
  --c-muted: #9aa6b4;
  --c-accent: #8b5cf6;
  --c-accent-hover: #a78bfa;
  --c-accent-soft: rgba(139, 92, 246, .12);
  --c-accent-line: rgba(139, 92, 246, .32);
  --c-accent-ink: #c4b5fd;
  --c-deep: #1a1433;
  --c-deep-2: #251c4a;
  --tint: 0 0 0;
}

/* ---------------------------------------------------------------- تایپوگرافی */
.theme-light h1,
.theme-light h2,
.theme-light .section-title,
.font-display,
.theme-light .price {
  font-family: 'Estedad', 'Vazirmatn', system-ui, sans-serif;
  letter-spacing: 0; /* فاصله‌ی منفی اتصال حروف فارسی را می‌شکند */
}

.theme-light h1,
.theme-light h2 { text-wrap: balance; }

.theme-light .price { font-weight: 900; }

/* ارقام با فونت تیتر: فاصله‌ی ثابت (tabular) در Estedad شکاف می‌اندازد */
.theme-light h1, .theme-light h2, .font-display, .theme-light .price,
.proof-num, .b-stat, .svc-price b, .kpi-row b, .quote-lead { font-variant-numeric: normal; }

.theme-light .section-title {
  font-size: clamp(1.7rem, 1.15rem + 1.9vw, 2.55rem);
  font-weight: 800;
  line-height: 1.32;
  color: var(--c-ink);
}

.theme-light .section-lead {
  max-width: 60ch;
  margin-top: .9rem;
  font-size: 1rem;
  line-height: 2;
  color: var(--c-muted);
}

.text-center .section-lead,
.section-lead.mx-auto { margin-inline: auto; }

/* ---------------------------------------------------------------- دکمه‌ها */
.theme-light .btn {
  border-radius: var(--r-ctl);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease, transform .2s var(--ease-out);
}

.theme-light .btn-primary,
.theme-light .btn-shine {
  background: var(--c-accent);
  background-image: none;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 22px -10px rgb(var(--tint) / .55);
}

.theme-light .btn-primary:hover,
.theme-light .btn-shine:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 28px -12px rgb(var(--tint) / .6);
}

html.dark .theme-light .btn-primary,
html.dark .theme-light .btn-shine { color: #fff; background: #7c3aed; }
html.dark .theme-light .btn-primary:hover,
html.dark .theme-light .btn-shine:hover { background: #6d28d9; }

.theme-light .btn-ghost {
  background: var(--c-surface);
  color: var(--c-ink);
  border: 1px solid var(--c-line-strong);
}

.theme-light .btn-ghost:hover {
  border-color: var(--c-accent-line);
  color: var(--c-accent);
  transform: translateY(-1px);
}

/* حس فشردن واقعی */
.theme-light .btn:active,
.press:active { transform: translateY(0) scale(.98); }

/* ---------------------------------------------------------------- کارت‌ها */
.theme-light .card {
  border-radius: var(--r-card);
  border-color: var(--c-line);
  box-shadow: 0 1px 2px rgb(15 23 42 / .04);
}

.theme-light .card-link:hover,
.theme-light .card.is-hover:hover {
  border-color: var(--c-accent-line);
  box-shadow: 0 18px 40px -22px rgb(var(--tint) / .35);
}

/* برچسب بالای تیتر (فقط چند جای صفحه) */
.theme-light .eyebrow {
  background: var(--c-accent-soft);
  color: var(--c-accent-ink);
  border: 1px solid var(--c-accent-line);
}

/* ==========================================================================
   هیرو با تصویر واقعی ناحیه‌ی کاربری
   ========================================================================== */

.hero-v3 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--c-surface);
}

/* بافت نقطه‌ای ظریف که فقط اطراف تصویر دیده می‌شود */
.hero-v3::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(100 116 139 / .22) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 22% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 70% at 22% 45%, #000 0%, transparent 72%);
}

.hero-v3::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 46rem;
  height: 46rem;
  left: -14rem;
  top: -12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(124 58 237 / .13), transparent 62%);
  pointer-events: none;
}

html.dark .hero-v3::before { background-image: radial-gradient(rgb(148 163 184 / .14) 1px, transparent 1px); }
html.dark .hero-v3::after { background: radial-gradient(circle, rgb(139 92 246 / .16), transparent 62%); }

.hero-title {
  font-size: clamp(2.05rem, 1.25rem + 3.2vw, 3.65rem);
  font-weight: 900;
  line-height: 1.24;
  color: var(--c-ink);
}

.hero-title .hl { color: var(--c-accent); }
html.dark .hero-title .hl { color: #a78bfa; }

.hero-sub {
  max-width: 34rem;
  font-size: 1.075rem;
  line-height: 2.05;
  color: var(--c-muted);
}

/* صحنه‌ی تصاویر: کارت‌های واقعی پنل، روی هم با عمق */
.shot-stage {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
}

.shot-stage .shot {
  margin: 0;
  filter: drop-shadow(0 28px 44px rgb(var(--tint) / .16)) drop-shadow(0 2px 6px rgb(15 23 42 / .07));
}

html.dark .shot-stage .shot { filter: drop-shadow(0 28px 50px rgba(0, 0, 0, .5)) drop-shadow(0 1px 0 rgba(255, 255, 255, .04)); }

.shot-stage .shot img { display: block; width: 100%; height: auto; }
.shot .s-dark { display: none !important; }
html.dark .shot .s-light { display: none !important; }
html.dark .shot .s-dark { display: block !important; }

.shot-main { position: relative; z-index: 1; }

.shot-float {
  position: relative;
  z-index: 2;
}

/* ورود صحنه: کارت اصلی و بعد کارت‌های شناور (سلسله‌مراتب دیدن) */
@media (prefers-reduced-motion: no-preference) {
  .shot-stage .shot {
    animation: shot-in .9s var(--ease-out) both;
  }
  /* کارت اصلی معمولاً بزرگ‌ترین تصویر صفحه (LCP) است: بدون محو شدن، فقط حرکت ملایم
     تا همان لحظه‌ی بارگذاری دیده و شمرده شود */
  .shot-stage .shot-main { animation-name: shot-in-main; }
  .shot-stage .shot:nth-child(2) { animation-delay: .18s; }
  .shot-stage .shot:nth-child(3) { animation-delay: .32s; }
  .shot-stage .shot:nth-child(4) { animation-delay: .44s; }

  /* حرکت بسیار ملایم کارت‌های شناور با اسکرول (فقط مرورگرهای پشتیبان) */
  @supports (animation-timeline: view()) {
    .shot-float .parallax {
      animation: shot-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

@keyframes shot-in {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: none; }
}

/* بخش‌های پایین‌تر از صفحه‌ی اول تا نزدیک شدن به دید چیده و نقاشی نمی‌شوند؛
   در گوشی‌های ضعیف نقاشی اول (LCP) زودتر انجام می‌شود. اندازه‌ی واقعی هر بخش بعد از
   اولین نمایش به خاطر سپرده می‌شود (auto) تا اسکرول نپرد. */
/* بخش دوم در موبایل معمولاً در صفحه‌ی اول هم دیده می‌شود؛ از سومی به بعد */
#mainContent > section ~ section ~ section {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

@keyframes shot-in-main {
  from { transform: translateY(14px); }
  to { transform: none; }
}

@keyframes shot-drift {
  from { transform: translateY(14px); }
  to { transform: translateY(-14px); }
}

/* ==========================================================================
   نوار اعتماد زیر هیرو
   ========================================================================== */

.proof {
  border-block: 1px solid var(--c-line);
  background: var(--c-surface);
}

.proof-num {
  font-family: 'Estedad', 'Vazirmatn', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.35rem);
  line-height: 1.2;
  color: var(--c-ink);
  white-space: nowrap;
}

.proof-label { margin-top: .35rem; font-size: .85rem; color: var(--c-muted); }

.proof-perks li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--c-ink-2);
}

.proof-perks i { color: var(--c-accent); font-size: .8rem; }

/* ==========================================================================
   فهرست سرویس‌ها (ردیفی، به‌جای کارت‌های هم‌شکل)
   ========================================================================== */

.svc-index {
  display: grid;
  gap: .85rem 1.25rem;
}

@media (min-width: 1024px) { .svc-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* هر سرویس یک کارت جدا: حاشیه‌ی پررنگ‌تر و سایه‌ی رنگی */
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  padding: 1.1rem 1.15rem 1.1rem 1rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 18px;
  background: var(--c-surface);
  box-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 12px 28px -20px rgb(var(--tint) / .55);
  transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .25s ease;
}

.svc-row:hover {
  border-color: var(--c-accent-line);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgb(15 23 42 / .05), 0 22px 40px -22px rgb(var(--tint) / .6);
}

.svc-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--c-accent-soft);
  box-shadow: inset 0 0 0 1px var(--c-accent-line);
  color: var(--c-accent);
  font-size: 1.05rem;
  transition: background-color .25s ease, color .25s ease;
}

.svc-row:hover .svc-icon { background: var(--c-accent); color: #fff; }

.svc-name { font-size: 1.05rem; font-weight: 800; color: var(--c-ink); }
.svc-tag { margin-top: .15rem; font-size: .85rem; color: var(--c-muted); }

.svc-price { text-align: left; line-height: 1.35; }
.svc-price small { display: block; font-size: 11px; color: var(--c-muted); }
.svc-price b { font-family: 'Estedad', 'Vazirmatn', sans-serif; font-size: 1.05rem; font-weight: 900; color: var(--c-ink); }

.svc-go {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-inline-start: .75rem;
  border-radius: 10px;
  border: 1px solid var(--c-line);
  color: var(--c-ink-2);
  transition: transform .3s var(--ease-out), border-color .25s ease, color .25s ease;
}

.svc-row:hover .svc-go { transform: translateX(-4px); border-color: var(--c-accent-line); color: var(--c-accent); }
.svc-go { background: var(--c-accent-soft); border-color: var(--c-accent-line); color: var(--c-accent); }
.svc-row:hover .svc-go { background: var(--c-accent); color: #fff; }

@media (max-width: 479px) {
  .svc-row { grid-template-columns: auto minmax(0, 1fr); }
  .svc-end { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: .25rem; padding-top: .75rem; border-top: 1px dashed var(--c-line-strong); }
}

/* ==========================================================================
   کارت پلن (سرویس‌ها و دسته‌ها): هر پلن تکه‌ای جدا و برجسته، به‌خصوص در موبایل
   ========================================================================== */
.theme-light .plan-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  box-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 16px 36px -24px rgb(var(--tint) / .6);
  transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .25s ease;
}
.theme-light .plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-accent-line);
  box-shadow: 0 2px 4px rgb(15 23 42 / .05), 0 26px 48px -26px rgb(var(--tint) / .7);
}
.theme-light .plan-card h3 { letter-spacing: -.01em; }

.plan-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.plan-spec {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: .6rem;
  align-items: center;
  padding: .65rem .75rem;
  border: 1px solid var(--c-accent-line);
  border-radius: 14px;
  background: var(--c-accent-soft);
}
.plan-spec i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--c-surface);
  color: var(--c-accent);
  font-size: .8rem;
  box-shadow: 0 1px 2px rgb(var(--tint) / .12);
}
.plan-spec span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; color: var(--c-muted); }
.plan-spec { padding: .6rem .65rem; column-gap: .5rem; }
.plan-spec i { width: 1.75rem; height: 1.75rem; }
.plan-spec b { font-size: 14px; font-weight: 900; color: var(--c-ink); line-height: 1.4; }

.plan-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem .9rem;
  border-radius: 14px;
  background: var(--c-surface-2);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.plan-price { flex-wrap: wrap; row-gap: .4rem; }
.plan-price-label { white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--c-ink-2); }
.plan-price-num { line-height: 1; white-space: nowrap; }
.plan-price-num b { font-family: 'Estedad', 'Vazirmatn', sans-serif; font-size: 1.35rem; font-weight: 900; color: var(--c-accent-ink); }
.plan-price-num small { margin-inline-start: .25rem; font-size: 11px; color: var(--c-muted); }

html.dark .theme-light .plan-card { background: var(--c-surface); border-color: var(--c-line-strong); }
html.dark .plan-spec i { background: var(--c-surface-2); }

/* ==========================================================================
   تعرفه‌ها
   ========================================================================== */

/* کارت برجسته: سطح تیره‌ی برند به‌جای حاشیه‌ی بنفش */
.theme-light article.plan-featured {
  background: var(--c-deep);
  border: 1px solid var(--c-deep-2);
  color: #d8d2f0;
  box-shadow: 0 30px 60px -30px rgb(var(--tint) / .55);
}

.theme-light article.plan-featured h3,
.theme-light article.plan-featured .price { color: #fff; }
.theme-light article.plan-featured p,
.theme-light article.plan-featured span.text-sm,
.theme-light article.plan-featured .text-xs { color: #b9b0dd; }
.theme-light article.plan-featured ul { color: #e4e0f5; }
.theme-light article.plan-featured .plan-price-box { background: rgba(255, 255, 255, .06); }
.theme-light article.plan-featured .plan-icon { background: rgba(255, 255, 255, .08); color: #c4b5fd; }
.theme-light article.plan-featured li i { color: #a78bfa; }
.theme-light article.plan-featured .btn-primary { background: #fff; color: var(--c-deep); box-shadow: none; }
.theme-light article.plan-featured .btn-primary:hover { background: #ede9fe; }

/* ==========================================================================
   امکانات: شبکه‌ی بنتو
   ========================================================================== */

.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(11.5rem, auto); }
  .bento .b-hero { grid-column: span 2; grid-row: span 2; }
  .bento .b-wide { grid-column: span 2; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .bento .b-hero { grid-column: span 2; }
}

.b-cell {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--r-card);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  transition: border-color .25s ease, transform .35s var(--ease-out);
}

.b-cell:hover { border-color: var(--c-accent-line); transform: translateY(-2px); }

.b-cell h3 { font-size: 1.05rem; font-weight: 800; color: var(--c-ink); }
.b-cell p { margin-top: .4rem; font-size: .9rem; line-height: 1.9; color: var(--c-muted); }

.b-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
}

/* سلول اصلی: زمینه‌ی برند با عدد بزرگ */
.b-hero {
  background:
    radial-gradient(circle at 85% 0%, rgb(167 139 250 / .35), transparent 55%),
    linear-gradient(160deg, #2a1d63 0%, var(--c-deep) 70%);
  border-color: transparent;
  color: #d8d2f0;
  justify-content: space-between;
}

.b-hero h3 { color: #fff; font-size: 1.35rem; }
.b-hero p { color: #b9b0dd; max-width: 30ch; }
.b-hero .b-icon { background: rgba(255, 255, 255, .1); color: #ddd6fe; }

.b-cell .b-stat {
  font-family: 'Estedad', 'Vazirmatn', sans-serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 2rem + 4vw, 5.25rem);
  line-height: 1;
  color: #fff;
}

.b-cell .b-stat small { font-size: .38em; font-weight: 800; color: #c4b5fd; margin-inline-start: .35rem; }

/* سلول عریض تیره (حفاظت) */
.b-ink {
  background: #0f172a;
  border-color: #0f172a;
}
.b-ink h3 { color: #fff; }
.b-ink p { color: #a3aebb; }
.b-ink .b-icon { background: rgba(255, 255, 255, .08); color: #c4b5fd; }

html.dark .b-ink { background: #0b0f15; border-color: var(--c-line); }

/* سلول با الگوی خطی */
.b-pattern {
  background-color: var(--c-surface);
  background-image: repeating-linear-gradient(-45deg, rgb(109 40 217 / .05) 0 1px, transparent 1px 11px);
}

html.dark .b-pattern { background-image: repeating-linear-gradient(-45deg, rgb(139 92 246 / .08) 0 1px, transparent 1px 11px); }

/* ==========================================================================
   نوار پشتیبانی
   ========================================================================== */

.support-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 120%, rgb(139 92 246 / .45), transparent 45%),
    var(--c-deep);
  color: #d8d2f0;
}

.support-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 60%);
  mask-image: linear-gradient(to left, #000, transparent 60%);
  pointer-events: none;
}

.support-band > * { position: relative; z-index: 1; }

/* ==========================================================================
   نظرات: یک نقل‌قول بزرگ و دو کوچک
   ========================================================================== */

.quote-lead {
  font-family: 'Estedad', 'Vazirmatn', sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, .95rem + 1.1vw, 1.75rem);
  line-height: 1.75;
  color: var(--c-ink);
}

.quote-mark {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--c-accent);
  opacity: .28;
}

.avatar-mono {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 999px;
  background: var(--c-accent-soft);
  color: var(--c-accent-ink);
  font-weight: 900;
  font-size: .85rem;
}

/* ==========================================================================
   هیروی صفحه‌های محصول
   ========================================================================== */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(100 116 139 / .2) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 20% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 70% at 20% 50%, #000 0%, transparent 70%);
}

html.dark .page-hero::before { background-image: radial-gradient(rgb(148 163 184 / .13) 1px, transparent 1px); }

/* شاخص‌های کوچک زیر متن هیروی محصول */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--c-line);
}

@media (min-width: 640px) { .kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.kpi-row > div { padding: 1rem .25rem 0; }
.kpi-row b { display: block; font-family: 'Estedad', 'Vazirmatn', sans-serif; font-weight: 900; font-size: 1.3rem; color: var(--c-ink); }
.kpi-row span { font-size: .8rem; color: var(--c-muted); }

/* ==========================================================================
   کاهش حرکت
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .shot-stage .shot,
  .shot-float .parallax { animation: none !important; }
  .b-cell:hover,
  .theme-light .btn:hover { transform: none; }
}

/* ==========================================================================
   نقشه‌ی دیتاسنترها (هیروی صفحه‌ی اصلی)
   ========================================================================== */

.dc-card {
  position: relative;
  max-width: 38rem;
  margin-inline: auto;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: 0 30px 70px -40px rgb(var(--tint) / .45), 0 1px 2px rgb(15 23 42 / .04);
}

.dc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
  padding-inline: .25rem;
}

.dc-head b { font-family: 'Estedad', 'Vazirmatn', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--c-ink); font-variant-numeric: normal; }
.dc-head > span:last-child { font-size: .8rem; color: var(--c-muted); }

/* نشانه‌ی «فعال» (وضعیت واقعی: همه‌ی لوکیشن‌های فهرست فعال‌اند) */
.dc-live {
  align-self: center;
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 4px rgb(16 185 129 / .15);
}

.dc-map {
  position: relative;
  margin-top: 1rem;
  aspect-ratio: 117 / 46;
}

.dc-dots {
  position: absolute;
  inset: 0;
  background: #b4bfcd;
  -webkit-mask: url('../img/world-dots.svg') center / 100% 100% no-repeat;
  mask: url('../img/world-dots.svg') center / 100% 100% no-repeat;
}

html.dark .dc-dots { background: #3a4657; }

.dc-pin {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
}

.dc-pin i {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-surface);
  transition: transform .3s var(--ease-out);
}

.dc-pin.is-home i { left: -7px; top: -7px; width: 14px; height: 14px; }

/* موج اطراف نقطه: نشان می‌دهد این لوکیشن فعال است */
.dc-pin i::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid var(--c-accent);
  opacity: 0;
}

.dc-pin em {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translate(-50%, 4px);
  padding: .2rem .55rem;
  border-radius: 8px;
  background: var(--c-ink);
  color: var(--c-surface);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .25s var(--ease-out);
}

.dc-pin.is-home em,
.dc-pin.is-on em { opacity: 1; transform: translate(-50%, 0); }
.dc-pin.is-on i { transform: scale(1.35); }
.dc-card.has-hover .dc-pin.is-home:not(.is-on) em { opacity: 0; }

.dc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--c-line);
}

@media (min-width: 520px) { .dc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dc-list li {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .55rem;
  border-radius: 10px;
  cursor: default;
  transition: background-color .2s ease;
}

.dc-list li:hover,
.dc-list li:focus-visible,
.dc-list li.is-on { background: var(--c-accent-soft); outline: none; }

.dc-list b { display: block; font-size: .82rem; font-weight: 800; color: var(--c-ink); line-height: 1.4; }
.dc-list small { display: block; font-size: 11px; color: var(--c-muted); line-height: 1.3; }

@media (prefers-reduced-motion: no-preference) {
  /* نقشه بزرگ‌ترین بخش هیروی موبایل است (LCP): بدون محو شدن؛ پین‌ها انیمیشن دارند */
  .dc-pin i { animation: dc-pop .6s var(--ease-out) both; animation-delay: var(--d, .4s); }
  .dc-pin i::after { animation: dc-ring 2.8s ease-out infinite; animation-delay: calc(var(--d, .4s) + .6s); }
}

@keyframes dc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dc-pop { from { transform: scale(0); } 70% { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes dc-ring { 0% { opacity: .55; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.9); } }

/* هیروی صفحه‌ی اصلی خودش نقشه‌ی نقطه‌ای دارد؛ بافت نقطه‌ای پشتش اضافه است */
.hero-v3::before { display: none; }

/* ==========================================================================
   خوانایی در همه‌ی سیستم‌عامل‌ها
   ---------------------------------------------------------------------------
   Vazirmatn در اندازه‌ی برابر، از فونت‌های لاتین ریزتر دیده می‌شود و در
   ویندوز (ClearType) زیر ۱۲px نازک و شکسته رندر می‌شود. کف اندازه‌ها در سایت
   و ناحیه‌ی کاربری بالا می‌رود؛ پنل مدیریت (متراکم) دست نمی‌خورد.
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;   /* iOS در حالت افقی متن را خودسرانه بزرگ نکند */
  text-size-adjust: 100%;
}

body {
  font-kerning: normal;
  font-synthesis: none;              /* بولد و ایتالیک ساختگی در ویندوز و اندروید ساخته نشود */
}

.area-site .text-\[9px\] { font-size: 11px; }
.area-site .text-\[10px\],
.area-panel .text-\[10px\] { font-size: 12px; }
.area-site .text-\[11px\] { font-size: 12.5px; }
.area-panel .text-\[11px\] { font-size: 13px; }
.area-site .text-xs { font-size: 13px; }
.area-panel .text-xs { font-size: 13.5px; }
.area-site .text-sm { font-size: 14.5px; }
.area-panel .text-sm { font-size: 15px; }

/* سافاری iOS روی فیلد زیر ۱۶px زوم می‌کند و صفحه به هم می‌ریزد */
@media (max-width: 767px) {
  .area-site input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  .area-site select,
  .area-site textarea,
  .area-panel input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  .area-panel select,
  .area-panel textarea { font-size: 16px !important; }
}

/* کدها و آدرس‌های لاتین: فونت مونوی بومی هر سیستم‌عامل */
.font-mono { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }

/* ==========================================================================
   ناحیه‌ی کاربری
   ========================================================================== */
.panel-title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem);
  font-weight: 900;
  line-height: 1.4;
  color: var(--c-ink);
}

.panel-tab { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- مدیریت سرویس */
.svc-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: -.75rem 0 1rem;
  padding: .45rem 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-muted);
  transition: color .2s ease;
}
.svc-back i { font-size: 12px; transition: transform .25s var(--ease-out); }
.svc-back:hover { color: var(--c-accent); }
.svc-back:hover i { transform: translateX(3px); }

.svc-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem;
  border: 1px solid var(--c-line);
  border-radius: 24px;
  background:
    radial-gradient(120% 160% at 100% 0%, var(--c-accent-soft), transparent 48%),
    var(--c-surface);
  box-shadow: 0 24px 44px -30px rgb(var(--tint) / .4);
}
@media (min-width: 640px) { .svc-hero { padding: 1.75rem 2rem; } }

.svc-hero-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--c-accent);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 12px 24px -14px rgb(var(--tint) / .7);
}
@media (min-width: 640px) { .svc-hero-icon { width: 68px; height: 68px; font-size: 1.6rem; } }

.svc-hero-kind { font-size: 14px; font-weight: 700; color: var(--c-accent); }
html.dark .svc-hero-kind { color: #b79dfa; }
.theme-light .svc-hero-title {
  font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.15rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--c-ink);
}
.svc-hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-top: .45rem;
  font-size: 14px;
  color: var(--c-muted);
}

.svc-hero-side { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
@media (max-width: 639px) {
  .svc-hero-side { width: 100%; }
  .svc-hero-side > * { flex: 1 1 100%; justify-content: space-between; }
}

.svc-chip {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 50px;
  padding: .45rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-surface);
  font-size: 15px;
  font-weight: 800;
  color: var(--c-ink);
  transition: border-color .2s ease, background-color .2s ease, transform .2s var(--ease-out);
}
.svc-chip:hover { border-color: var(--c-accent-line); background: var(--c-accent-soft); }
.svc-chip:active { transform: scale(.98); }
.svc-chip-k { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.svc-chip i { font-size: 14px; color: var(--c-muted); }
.svc-chip b { font-size: 13.5px; }

.svc-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--c-surface);
}
@media (min-width: 640px) { .svc-card { padding: 1.6rem 1.75rem; } }

.svc-h-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: 17px;
}
html.dark .svc-h-icon { color: #c4b5fd; }

.svc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-ctl);
  background: var(--c-surface);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}
.svc-btn i { font-size: 14px; color: var(--c-muted); }
.svc-btn:hover { border-color: var(--c-accent-line); background: var(--c-accent-soft); }
.svc-btn:active { transform: scale(.98); }

.svc-creds { display: grid; gap: .65rem; }
@media (min-width: 640px) { .svc-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.svc-cred {
  min-width: 0;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: var(--c-surface-2);
}
.svc-cred dt { font-size: 13.5px; font-weight: 600; color: var(--c-muted); }
.svc-cred dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-width: 0;
  margin-top: .3rem;
}
.svc-cred dt.sr-only + dd { margin-top: 0; }

.svc-val {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--c-ink);
}

.svc-copy {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 .8rem;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-accent);
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.svc-copy i { font-size: 13px; }
.svc-copy:hover { background: var(--c-accent-soft); }
.svc-copy:active { transform: scale(.96); }
html.dark .svc-copy { color: #c4b5fd; }

.svc-sub { padding: 1.15rem 1.2rem; border: 1px solid var(--c-line); border-radius: 16px; }

.svc-meter { padding: 1.05rem 1.15rem; border: 1px solid var(--c-line); border-radius: 16px; }
.svc-meter-num,
.svc-date,
.svc-amount {
  font-family: "Estedad", "Vazirmatn", system-ui, sans-serif;
  font-weight: 900;
  color: var(--c-ink);
  font-variant-numeric: normal;
}
.svc-meter-num { font-size: 1.3rem; }
.svc-date { font-size: 1.6rem; line-height: 1.4; }
.svc-amount { font-size: 1.35rem; }
.svc-amount span { font-family: "Vazirmatn", system-ui, sans-serif; font-size: 13px; font-weight: 400; color: var(--c-muted); }

.svc-details summary { list-style: none; min-height: 44px; }
.svc-details summary::-webkit-details-marker { display: none; }
.svc-details[open] summary .fa-chevron-down { transform: rotate(180deg); }

.svc-specs > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 0;
  border-top: 1px solid var(--c-line);
  font-size: 15px;
}
.svc-specs > div:first-child { border-top: 0; }
.svc-specs > div.block { display: block; }
.svc-specs dt { color: var(--c-muted); }
.svc-specs dd { min-width: 0; font-weight: 700; color: var(--c-ink); }

.svc-help { display: flex; align-items: center; gap: .9rem; transition: border-color .2s ease; }
.svc-help:hover { border-color: var(--c-accent-line); }
.svc-help .fa-arrow-left { transition: transform .25s var(--ease-out); }
.svc-help:hover .fa-arrow-left { transform: translateX(-3px); }

/* برچسب لاتین لوگو تزئینی است؛ در ۳۲۰px هدر جا نمی‌شد */
.area-site #navInner .text-\[10px\] { font-size: 11px; letter-spacing: .14em; }
@media (max-width: 359px) { .area-site #navInner .text-\[10px\] { letter-spacing: .08em; } }

/* لینک‌های مسیر صفحه: هدف لمسی دست‌کم ۴۰px */
nav[aria-label="مسیر صفحه"] a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: .2rem; }

/* پیوند پانویس ناحیه‌ی کاربری */
.area-panel > footer a { display: inline-flex; align-items: center; min-height: 40px; }

/* لینک‌های متنی تک‌خطی کارت‌ها: ارتفاع لمسی کافی بدون تغییر ظاهر */
.area-site a.mt-2.block.text-sm,
.area-site a.text-xs.font-bold.text-violet-700 { display: inline-flex; align-items: center; min-height: 40px; }
.area-site label.cursor-pointer > input[type="radio"],
.area-site label.cursor-pointer > input[type="checkbox"] { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

/* کارت برجسته در تم تیره: سطح بنفش روشن‌تر از کارت‌های کناری تا از پس‌زمینه جدا شود */
html.dark .theme-light article.plan-featured {
  background: linear-gradient(165deg, #3b2b7d 0%, #261b57 55%, #1f1748 100%);
  border-color: rgba(167, 139, 250, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
html.dark .theme-light article.plan-featured p,
html.dark .theme-light article.plan-featured span.text-sm,
html.dark .theme-light article.plan-featured .text-xs { color: #cfc6f3; }
html.dark .theme-light article.plan-featured .plan-price-box { background: rgba(255, 255, 255, .08); }

/* برچسب «پیشنهاد ما»: در تم تیره bg-white به سطح تیره تبدیل می‌شد و برچسب ناپدید بود */
html.dark .plan-featured > span.absolute.rounded-full {
  background: #c4b5fd;
  color: #160f2e;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6);
}

/* نوار «محل سرور» صفحه‌های هاست */
.host-dc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
}
.host-dc-k { display: inline-flex; align-items: center; gap: .4rem; font-size: 14px; font-weight: 700; color: var(--c-muted); }
.host-dc-k i { color: var(--c-accent); }
html.dark .host-dc-k i { color: #b79dfa; }
.host-dc-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  padding: .3rem .95rem;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  font-size: 14px;
  font-weight: 800;
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s var(--ease-out);
}
.host-dc-item:hover { border-color: var(--c-accent-line); }
.host-dc-item:active { transform: scale(.97); }
.host-dc-item:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.host-dc-item small { font-size: 12px; font-weight: 600; color: var(--c-muted); }
.host-dc-check { display: none; font-size: 11px; color: var(--c-accent); }
.host-dc-item.is-on { border-color: var(--c-accent); background: var(--c-accent-soft); }
.host-dc-item.is-on .host-dc-check { display: inline-block; }
html.dark .host-dc-check { color: #c4b5fd; }
.host-dc-empty { margin-top: .75rem; font-size: 14px; color: var(--c-muted); }
.host-dc-empty a { font-weight: 700; color: var(--c-accent); }
[data-plan-card].dc-off { display: none !important; }
.host-dc-flag { display: block; width: 20px; overflow: hidden; border-radius: 3px; }
.host-dc-more { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; font-size: 14px; font-weight: 700; color: var(--c-accent); }
html.dark .host-dc-more { color: #c4b5fd; }

/* سوییچ دوبخشی ماهانه / سالانه */
.billing-seg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  box-shadow: 0 10px 24px -18px rgb(var(--tint) / .5);
}
.billing-opt {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: var(--c-muted);
  white-space: nowrap;
  transition: background-color .25s var(--ease-out), color .2s ease, transform .2s var(--ease-out);
}
.billing-opt:hover { color: var(--c-ink); }
.billing-opt:active { transform: scale(.97); }
.billing-opt:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.billing-opt.is-on { background: var(--c-accent); color: #fff; }
.billing-off {
  padding: .1rem .5rem;
  border-radius: 999px;
  background: var(--c-accent-soft);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--c-accent);
}
html.dark .billing-off { color: #c4b5fd; }
.billing-opt.is-on .billing-off { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 359px) { .billing-opt { padding: 0 .85rem; font-size: 13.5px; } }
.billing-seg { max-width: 100%; }
/* بیش از دو دوره (از پنل): در موبایل شبکه‌ی دوستونه تا از صفحه بیرون نزند */
@media (max-width: 639px) {
  .billing-seg:has(.billing-opt:nth-child(3)) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 22px;
  }
  .billing-seg:has(.billing-opt:nth-child(3)) .billing-opt {
    justify-content: center;
    min-width: 0;
    padding: 0 .5rem;
    border-radius: 16px;
    font-size: 13px;
  }
  .billing-seg:has(.billing-opt:nth-child(3)) .billing-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .billing-seg:has(.billing-opt:nth-child(3)) .billing-off { padding: .05rem .4rem; font-size: 10.5px; }
}

/* روش ورود: با رمز عبور / با کد پیامکی */
.login-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-surface-2);
}
.login-mode button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--c-muted);
  transition: background-color .25s var(--ease-out), color .2s ease, box-shadow .25s var(--ease-out), transform .2s var(--ease-out);
}
.login-mode button i { font-size: 12px; }
.login-mode button:hover { color: var(--c-ink); }
.login-mode button:active { transform: scale(.98); }
.login-mode button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.login-mode button.is-on {
  background: var(--c-surface);
  color: var(--c-accent-ink);
  box-shadow: 0 1px 0 var(--c-line), 0 6px 16px -10px rgb(var(--tint) / .45);
}
html.dark .login-mode button.is-on { background: rgba(139, 92, 246, .22); color: #ddd6fe; box-shadow: inset 0 0 0 1px var(--c-accent-line); }

/* انتخاب دامنه‌ی هاست در صفحه‌ی سفارش */
.dm-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dm-mode {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 58px;
  padding: .6rem .75rem;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-surface);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s var(--ease-out);
}
.dm-mode:hover { border-color: var(--c-line-strong); }
.dm-mode:active { transform: scale(.985); }
.dm-mode input { position: absolute; opacity: 0; pointer-events: none; }
.dm-mode > i { flex-shrink: 0; width: 1.1rem; text-align: center; font-size: 14px; color: var(--c-muted); }
.dm-mode span { display: flex; min-width: 0; flex-direction: column; line-height: 1.5; }
.dm-mode b { font-size: 12.5px; font-weight: 800; color: var(--c-ink); }
.dm-mode small { font-size: 10.5px; color: var(--c-muted); }
.dm-mode:has(input:checked) { border-color: var(--c-accent); background: var(--c-accent-soft); }
.dm-mode:has(input:checked) > i { color: var(--c-accent); }
.dm-mode:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.dm-mode.hidden { display: none; }
/* صفحه‌ی سفارش: با «دامنه‌های من» سه گزینه است؛ آخری تمام‌عرض. بدون آن (مهمان) دو گزینه کنار هم */
#domainModes:not(:has(.dm-mode.hidden)) .dm-mode:last-child { grid-column: 1 / -1; }
/* متن‌های بلند (مثل نیم‌سرورها) شکسته شوند، نه اینکه ستون را پهن کنند */
.dm-mode { min-width: 0; }
.dm-mode small { overflow-wrap: anywhere; }
/* ناحیه کاربری: گزینه‌های نیم‌سرور؛ تعداد فرد → آخری تمام‌عرض، در موبایل یک ستون */
.dm-modes.is-stack .dm-mode:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 639px) { .dm-modes.is-stack { grid-template-columns: 1fr; } }

/* ویژگی hidden همیشه پنهان کند؛ کلاس‌هایی مثل grid یا flex نباید آن را خنثی کنند */
[hidden] { display: none !important; }

/* ==========================================================================
   وبلاگ
   ========================================================================== */
.blog-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--c-surface);
  transition: border-color .25s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}
.blog-card:hover { border-color: var(--c-accent-line); transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgb(var(--tint) / .45); }

.blog-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-surface-2); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background:
    radial-gradient(120% 120% at 100% 0%, var(--c-accent-soft), transparent 60%),
    repeating-linear-gradient(-45deg, rgb(var(--tint) / .04) 0 1px, transparent 1px 12px),
    var(--c-surface-2);
  font-size: 1.75rem;
  color: var(--c-accent);
}

.blog-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.15rem 1.25rem 1.3rem; }
.blog-chip {
  align-self: flex-start;
  margin-bottom: .6rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--c-accent-soft);
  font-size: 12px;
  font-weight: 800;
  color: var(--c-accent);
}
html.dark .blog-chip { color: #c4b5fd; }
.blog-card-title { font-size: 1.05rem; font-weight: 800; line-height: 1.75; color: var(--c-ink); }
.blog-card-title a:hover { color: var(--c-accent); }
.blog-card-text { margin-top: .45rem; flex: 1; font-size: 14px; line-height: 1.95; color: var(--c-muted); }
.blog-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .9rem; font-size: 12.5px; color: var(--c-muted); }
.blog-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55; }

.blog-featured {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 24px;
  background: var(--c-surface);
}
@media (min-width: 1024px) { .blog-featured { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.blog-featured-media { display: block; aspect-ratio: 16 / 9; background: var(--c-surface-2); }
@media (min-width: 1024px) { .blog-featured-media { aspect-ratio: auto; min-height: 340px; } }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-body { display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; }
@media (min-width: 640px) { .blog-featured-body { padding: 2.25rem; } }
.theme-light .blog-featured-title { font-family: 'Estedad', 'Vazirmatn', sans-serif; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); font-weight: 800; line-height: 1.55; color: var(--c-ink); }
.blog-featured-title a:hover { color: var(--c-accent); }

.blog-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: 0 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink-2);
  transition: border-color .2s ease, background-color .2s ease;
}
.blog-tab small { font-size: 11.5px; font-weight: 600; color: var(--c-muted); }
.blog-tab:hover { border-color: var(--c-accent-line); }
.blog-tab.is-on { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-accent); }
html.dark .blog-tab.is-on { color: #c4b5fd; }

/* ---------------------------------------------------------------- مقاله */
.theme-light .post-title {
  margin-top: .5rem;
  font-family: 'Estedad', 'Vazirmatn', sans-serif;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 900;
  line-height: 1.45;
  color: var(--c-ink);
}
.post-lead { margin-top: 1rem; max-width: 65ch; font-size: 1.08rem; line-height: 2.05; color: var(--c-muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; font-size: 13.5px; color: var(--c-muted); }
.post-meta i { margin-left: .3rem; color: var(--c-accent); }
html.dark .post-meta i { color: #b79dfa; }

.post-cover { overflow: hidden; margin-bottom: 2rem; border-radius: 20px; border: 1px solid var(--c-line); background: var(--c-surface-2); }
.post-cover img { display: block; width: 100%; height: auto; }

.post-body { max-width: 72ch; font-size: 1.06rem; line-height: 2.15; color: var(--c-ink-2); }
.post-body > * + * { margin-top: 1.15em; }
.theme-light .post-body h2 { margin-top: 2.2em; font-family: 'Estedad', 'Vazirmatn', sans-serif; font-size: 1.5rem; font-weight: 800; line-height: 1.6; color: var(--c-ink); scroll-margin-top: 6.5rem; }
.theme-light .post-body h3 { margin-top: 1.8em; font-size: 1.2rem; font-weight: 800; line-height: 1.7; color: var(--c-ink); scroll-margin-top: 6.5rem; }
.theme-light .post-body h4 { margin-top: 1.5em; font-size: 1.05rem; font-weight: 800; color: var(--c-ink); }
.post-body a { color: var(--c-accent); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
html.dark .post-body a { color: #c4b5fd; }
.post-body strong, .post-body b { color: var(--c-ink); font-weight: 800; }
.post-body ul, .post-body ol { padding-right: 1.4em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: .45em; }
.post-body li::marker { color: var(--c-accent); }
.post-body blockquote {
  padding: 1rem 1.25rem;
  border-right: 4px solid var(--c-accent);
  border-radius: 12px;
  background: var(--c-accent-soft);
  color: var(--c-ink);
}
.post-body img { max-width: 100%; height: auto; border-radius: 14px; }
.post-body figure { margin-top: 1.6em; }
.post-body figcaption { margin-top: .5rem; text-align: center; font-size: 13px; color: var(--c-muted); }
.post-body pre {
  overflow-x: auto;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: #0f172a;
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.8;
  color: #e2e8f0;
}
.post-body :not(pre) > code {
  padding: .1rem .4rem;
  border-radius: 6px;
  background: var(--c-surface-2);
  direction: ltr;
  unicode-bidi: isolate;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: .9em;
  color: var(--c-ink);
}
.post-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; }
.post-body th, .post-body td { padding: .65rem .8rem; border: 1px solid var(--c-line); text-align: right; }
.post-body th { background: var(--c-surface-2); font-weight: 800; color: var(--c-ink); }
.post-body hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.2em 0; }

.post-toc, .post-cta { padding: 1.25rem; border: 1px solid var(--c-line); border-radius: 20px; background: var(--c-surface); }
.post-toc-title { margin-bottom: .6rem; font-size: 15px; font-weight: 800; color: var(--c-ink); }
.post-toc ol, .post-toc-mobile ol { display: grid; gap: .1rem; }
.post-toc a, .post-toc-mobile a {
  display: block;
  padding: .4rem .7rem;
  border-right: 2px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-muted);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.post-toc .is-sub a, .post-toc-mobile .is-sub a { padding-right: 1.5rem; font-size: 13.5px; }
.post-toc a:hover, .post-toc a.is-on { border-right-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-ink); }
.post-toc-mobile { margin-bottom: 1.75rem; padding: .9rem 1.1rem; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-surface); }
.post-toc-mobile summary { cursor: pointer; font-size: 15px; font-weight: 800; color: var(--c-ink); }
.post-toc-mobile ol { margin-top: .6rem; }
.post-cta { background: radial-gradient(120% 140% at 100% 0%, var(--c-accent-soft), transparent 55%), var(--c-surface); }
.post-cta-title { font-size: 15.5px; font-weight: 800; color: var(--c-ink); }
.post-cta-text { margin-top: .4rem; font-size: 13.5px; line-height: 1.9; color: var(--c-muted); }

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.post-share a, .post-share button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  color: var(--c-ink-2);
  transition: border-color .2s ease, color .2s ease, transform .2s var(--ease-out);
}
.post-share a:hover, .post-share button:hover { border-color: var(--c-accent-line); color: var(--c-accent); }
.post-share a:active, .post-share button:active { transform: scale(.95); }

.post-progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px; pointer-events: none; }
.post-progress span { display: block; height: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: right; transition: transform .1s linear; }
@media (prefers-reduced-motion: reduce) { .post-progress span, .blog-card, .blog-card-media img { transition: none; } }

/* ---------------------------------------------------------------- ویرایشگر وبلاگ (پنل) */
.blog-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: .45rem .55rem;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface-2);
}
.blog-toolbar button {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .5rem;
  border-radius: 9px;
  font-size: 13px;
  color: var(--c-ink-2);
  transition: background-color .15s ease, color .15s ease;
}
.blog-toolbar button:hover { background: var(--c-surface); color: var(--c-accent); }
.blog-toolbar button:disabled { opacity: .35; pointer-events: none; }
.blog-toolbar-sep { width: 1px; height: 22px; margin: 0 .3rem; background: var(--c-line-strong); }
.blog-editor { min-height: 460px; max-width: none; padding: 1.5rem 1.75rem; outline: none; }
.blog-editor:focus { box-shadow: inset 0 0 0 2px var(--c-accent-line); }
.blog-editor table { display: table; }
.blog-atab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 40px;
  border: 1.5px solid var(--c-line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-muted);
}
.blog-atab.is-on { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-ink); }
.blog-atab b { padding: .05rem .5rem; border-radius: 999px; background: var(--c-surface-2); font-size: 12px; }
.blog-atab b.is-good { background: #d1fae5; color: #047857; }
.blog-atab b.is-ok { background: #fef3c7; color: #b45309; }
.blog-atab b.is-bad { background: #ffe4e6; color: #be123c; }
.blog-check { display: flex; gap: .55rem; color: var(--c-ink-2); }
.blog-check > span { flex-shrink: 0; width: 10px; height: 10px; margin-top: .45rem; border-radius: 50%; }
.blog-check.is-good > span { background: #10b981; }
.blog-check.is-ok > span { background: #f59e0b; }
.blog-check.is-bad > span { background: #f43f5e; }

/* ==========================================================================
   پنل مدیریت: منوی کناری جمع‌شونده (فقط آیکن)
   ========================================================================== */
#adminSidebar { transition: transform .3s var(--ease-out), width .25s var(--ease-out); }
#adminNavToggle i { transition: transform .25s var(--ease-out); }
@media (min-width: 1024px) {
  html.admin-mini #adminSidebar { width: 4.75rem; }
  html.admin-mini #adminSidebar .admin-side { padding: 1.25rem .6rem; align-items: center; }
  html.admin-mini #adminSidebar .admin-hide { display: none; }
  html.admin-mini #adminSidebar .admin-section { height: 1px; margin: .75rem .5rem; padding: 0; overflow: hidden; background: var(--c-line); color: transparent; }
  html.admin-mini #adminNav { width: 100%; padding-left: 0; }
  html.admin-mini #adminNav a { position: relative; justify-content: center; padding-left: 0; padding-right: 0; }
  html.admin-mini #adminNav a i { width: auto; font-size: 14px; }
  html.admin-mini #adminNav .admin-badge { position: absolute; top: 1px; left: 4px; padding: 0 4px; font-size: 9px; }
  html.admin-mini #adminNavToggle i { transform: scaleX(-1); }
}

/* ==========================================================================
   کتابخانه و انتخابگر آیکن (پنل مدیریت)
   ========================================================================== */
.ip-open { display: inline-flex; flex-shrink: 0; align-items: center; gap: .35rem; padding: 0 .9rem; min-height: 42px; border: 1px solid var(--c-accent-line); border-radius: 12px; background: var(--c-accent-soft); font-size: 12px; font-weight: 800; color: var(--c-accent-ink); }
.ip-open:hover { border-color: var(--c-accent); }
.ip-head { display: grid; gap: .75rem; }
.ip-search { position: relative; }
.ip-search i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--c-muted); }
.ip-search input { width: 100%; min-height: 46px; padding: 0 2.6rem 0 1rem; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-surface); font-size: 13px; color: var(--c-ink); }
.ip-search input:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.ip-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ip-tabs button { flex-shrink: 0; padding: .45rem .85rem; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); font-size: 11.5px; font-weight: 700; color: var(--c-ink-2); white-space: nowrap; }
.ip-tabs button.is-on { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.ip-body { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: minmax(0, 1fr) 16rem; align-items: start; }
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; max-height: 26rem; overflow-y: auto; padding: 2px; }
.ip-grid button { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); font-size: 18px; color: var(--c-ink-2); transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.ip-grid button:hover { border-color: var(--c-accent-line); background: var(--c-accent-soft); color: var(--c-accent-ink); transform: translateY(-1px); }
.ip-grid button.is-on { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.ip-preview { position: sticky; top: 0; padding: 1rem; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-surface-2); }
.ip-hero { display: grid; place-items: center; height: 7rem; border-radius: 14px; background: var(--c-surface); font-size: 56px; color: var(--c-accent); }
.ip-name { margin-top: .6rem; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--c-ink); word-break: break-all; }
.ip-sizes { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: .6rem; margin-top: .8rem; color: var(--c-ink); }
.ip-sizes span { display: grid; justify-items: center; gap: 2px; }
.ip-sizes small { font-size: 9.5px; color: var(--c-muted); }
.ip-bgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: .8rem; }
.ip-bg { display: grid; place-items: center; height: 2.6rem; border-radius: 10px; font-size: 18px; }
.ip-bg-light { background: #fff; color: #334155; border: 1px solid #e3e7ee; }
.ip-bg-soft { background: #f3f0ff; color: #6d28d9; }
.ip-bg-brand { background: #6d28d9; color: #fff; }
.ip-bg-dark { background: #0f141b; color: #e8edf3; }
.ip-pick { display: flex; width: 100%; align-items: center; justify-content: center; gap: .4rem; margin-top: .9rem; min-height: 44px; border-radius: 12px; background: var(--c-accent); font-size: 13px; font-weight: 800; color: #fff; }
.ip-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: .9rem; }
.ip-copy button { min-height: 38px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); font-size: 12px; font-weight: 700; color: var(--c-ink-2); }
.ip-empty { padding: 1.5rem .5rem; text-align: center; font-size: 12px; line-height: 1.9; color: var(--c-muted); grid-column: 1 / -1; }
.ip-modal { position: fixed; inset: 0; z-index: 80; display: none; }
.ip-modal.is-open { display: block; }
.ip-backdrop { position: absolute; inset: 0; background: rgb(15 20 27 / .55); }
.ip-panel { position: absolute; inset: 4vh 50% auto auto; transform: translateX(50%); width: min(60rem, calc(100vw - 2rem)); max-height: 92vh; overflow-y: auto; padding: 1.1rem; border-radius: 20px; background: var(--c-surface); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .5); }
.ip-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; font-size: 14px; color: var(--c-ink); }
.ip-x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--c-muted); }
.ip-x:hover { background: var(--c-surface-2); color: var(--c-ink); }
@media (max-width: 767px) {
  .ip-body { grid-template-columns: 1fr; }
  .ip-preview { position: static; order: -1; }
  .ip-hero { height: 5rem; font-size: 40px; }
  .ip-grid { max-height: 50vh; }
  .ip-panel { inset: 2vh 50% auto auto; padding: .9rem; }
}

/* ==========================================================================
   ناحیه کاربری: مصرف ترافیک سرور مجازی
   ========================================================================== */
.traffic-usage { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.25rem; padding: 1rem; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-surface-2); }
.traffic-usage { --tone: #059669; --tone-soft: rgb(5 150 105 / .14); }
.traffic-usage.is-warn { --tone: #d97706; --tone-soft: rgb(217 119 6 / .15); }
.traffic-usage.is-bad { --tone: #e11d48; --tone-soft: rgb(225 29 72 / .14); }
.traffic-ring { position: relative; display: grid; place-items: center; width: 7.5rem; height: 7.5rem; border-radius: 50%;
  background: conic-gradient(var(--tone) calc(var(--p) * 1%), var(--tone-soft) 0); }
.traffic-ring::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--c-surface); }
.traffic-ring span { position: relative; display: grid; justify-items: center; line-height: 1.2; }
.traffic-ring b { font-size: 1.45rem; font-weight: 900; color: var(--c-ink); }
.traffic-ring small { font-size: 11px; color: var(--c-muted); }
.traffic-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.traffic-stats dt { font-size: 12px; color: var(--c-muted); }
.traffic-stats dd { margin-top: .2rem; font-size: 15px; font-weight: 900; color: var(--c-ink); }
.traffic-stats .traffic-left { color: var(--tone); }
.traffic-bar { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 999px; background: var(--tone-soft); }
.traffic-bar span { display: block; height: 100%; border-radius: inherit; background: var(--tone); transition: width .6s var(--ease-out); }
@media (max-width: 560px) {
  .traffic-usage { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .traffic-stats { width: 100%; }
}

/* کارت حرفه‌ای مصرف ترافیک (صفحه‌ی سرویس) */
.tr-card { --tone: #059669; --tone-2: #10b981; --tone-soft: rgb(5 150 105 / .12); position: relative; overflow: hidden; padding: 1.25rem; border: 1px solid var(--c-line); border-radius: 22px;
  background: radial-gradient(120% 90% at 100% 0%, var(--tone-soft), transparent 60%), var(--c-surface); }
.tr-card.is-warn { --tone: #d97706; --tone-2: #f59e0b; --tone-soft: rgb(217 119 6 / .13); }
.tr-card.is-bad { --tone: #e11d48; --tone-2: #fb7185; --tone-soft: rgb(225 29 72 / .12); }
.tr-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tr-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; background: var(--tone-soft); font-size: 12px; font-weight: 800; color: var(--tone); }
.tr-sub { font-size: 12px; color: var(--c-muted); }
.tr-empty { display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.25rem; border: 1px dashed var(--c-line); border-radius: 18px; background: var(--c-surface-2); }
.tr-empty-ico { display: grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 14px; background: rgb(8 145 178 / .12); color: #0891b2; font-size: 1.05rem; }
.tr-empty b { display: block; font-size: 14px; font-weight: 900; color: var(--c-ink); }
.tr-empty p { margin-top: .25rem; font-size: 13px; line-height: 1.8; color: var(--c-muted); }
.tr-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.5rem; margin-top: 1rem; }
.tr-gauge { position: relative; width: 10.5rem; height: 10.5rem; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--tone-2), var(--tone) calc(var(--p) * 1%), var(--c-surface-2) 0); box-shadow: 0 18px 40px -24px var(--tone); }
.tr-gauge::before { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.tr-gauge-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .1rem; text-align: center; }
.tr-gauge-in small { font-size: 11.5px; color: var(--c-muted); }
.tr-gauge-in b { font-size: 1.3rem; font-weight: 900; line-height: 1.25; color: var(--c-ink); }
.tr-gauge-in em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--tone); }
.tr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.tr-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tr-tile { display: grid; gap: .15rem; padding: .85rem .9rem; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-surface); }
.tr-tile i { display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .35rem; border-radius: 10px; background: var(--tone-soft); font-size: 13px; color: var(--tone); }
.tr-tile span { font-size: 12px; color: var(--c-muted); }
.tr-tile b { font-size: 16px; font-weight: 900; color: var(--c-ink); }
.tr-tile small { font-size: 11.5px; color: var(--c-muted); }
.tr-tile small.tr-warn { color: #e11d48; font-weight: 700; }
.tr-track { position: relative; height: 10px; margin-top: 1.1rem; overflow: hidden; border-radius: 999px; background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-line); }
.tr-fill { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: linear-gradient(to left, var(--tone), var(--tone-2)); transition: width .8s var(--ease-out); }
.tr-split { position: absolute; inset-block: -2px; width: 2px; background: var(--c-ink); opacity: .35; }
.tr-scale { display: flex; justify-content: space-between; margin-top: .35rem; font-size: 11px; color: var(--c-muted); }
@media (max-width: 640px) {
  .tr-main { grid-template-columns: 1fr; justify-items: center; }
  .tr-tiles { width: 100%; }
}
/* «سرویس‌های من»: ویجت فشرده‌ی مصرف */
.svc-traffic { --tone: #059669; --tone-soft: rgb(5 150 105 / .12); display: flex; align-items: center; gap: .75rem; margin-top: .9rem; padding: .65rem .75rem; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-surface-2); }
.svc-traffic.is-warn { --tone: #d97706; --tone-soft: rgb(217 119 6 / .13); }
.svc-traffic.is-bad { --tone: #e11d48; --tone-soft: rgb(225 29 72 / .12); }
.svc-traffic-ring { position: relative; display: grid; flex-shrink: 0; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: conic-gradient(var(--tone) calc(var(--p) * 1%), var(--tone-soft) 0); }
.svc-traffic-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--c-surface); }
.svc-traffic-ring b { position: relative; font-size: 11px; font-weight: 900; color: var(--c-ink); }
.svc-traffic-left { display: grid; flex-shrink: 0; justify-items: end; padding: .3rem .6rem; border-radius: 12px; background: var(--tone-soft); font-size: 12.5px; font-weight: 900; color: var(--tone); line-height: 1.3; }
.svc-traffic-left small { font-size: 10px; font-weight: 700; opacity: .8; }
.host-dc-icon { font-size: 20px; line-height: 1; }
.host-dc-icon.vk-ico { width: 22px; height: 22px; vertical-align: middle; }
.host-dc-icon.vk-ico.is-lg { width: 34px; height: 34px; border-radius: 10px; }
.host-dc-icon.is-xl { flex-shrink: 0; font-size: 34px; }
.host-dc-icon.vk-ico.is-xl { width: 48px; height: 48px; border-radius: 14px; }

/* ==========================================================================
   فاکتور (invoice.php): سند استاندارد + ستون پرداخت؛ نسخه‌ی چاپی تمیز
   ========================================================================== */
.inv-page { padding: 1.5rem 0 4rem; }
.inv-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .inv-wrap { padding: 0 1.5rem; } }

.inv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.inv-back { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 12px; border: 1px solid var(--c-line-strong); background: var(--c-surface); font-size: 13px; font-weight: 800; color: var(--c-ink); transition: border-color .2s ease, color .2s ease; }
.inv-back:hover { border-color: var(--c-accent-line); color: var(--c-accent); }
.inv-back i { font-size: 11px; }
.inv-bar-actions { display: flex; align-items: center; gap: .5rem; }
.inv-btn-soft { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-surface); font-size: 12.5px; font-weight: 700; color: var(--c-ink-2); transition: background-color .2s ease, color .2s ease; }
.inv-btn-soft:hover { background: var(--c-surface-2); color: var(--c-ink); }
@media (max-width: 480px) { .inv-bar-actions .inv-btn-soft span { display: none; } }
.inv-btn-pay { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 12px; background: var(--c-accent); font-size: 12.5px; font-weight: 900; color: #fff; }
@media (min-width: 1024px) { .inv-btn-pay { display: none; } }

/* نتیجه‌ی پرداخت */
.inv-result { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .9rem; margin-bottom: 1.25rem; padding: 1rem 1.15rem; border-radius: 18px; border: 1px solid; scroll-margin-top: 96px; }
.inv-result.is-ok { border-color: rgb(16 185 129 / .35); background: rgb(16 185 129 / .08); }
.inv-result.is-bad { border-color: rgb(244 63 94 / .35); background: rgb(244 63 94 / .07); }
.inv-result-ico { display: grid; place-items: center; flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 14px; font-size: 1.15rem; }
.is-ok .inv-result-ico { background: rgb(16 185 129 / .15); color: #059669; }
.is-bad .inv-result-ico { background: rgb(244 63 94 / .14); color: #e11d48; }
.inv-result b { display: block; font-size: 15px; font-weight: 900; color: var(--c-ink); }
.inv-result p { margin-top: .2rem; font-size: 13px; line-height: 1.9; color: var(--c-ink-2); }
.inv-result .inv-result-ref { font-weight: 700; }
.inv-result-cta { align-self: center; display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1rem; border-radius: 12px; background: #059669; font-size: 13px; font-weight: 900; color: #fff; }

.inv-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1024px) {
  .inv-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; }
  .inv-side { position: sticky; top: 92px; }
}

/* سند */
.inv-doc { overflow: hidden; border: 1px solid var(--c-line-strong); border-radius: 22px; background: var(--c-surface); box-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 18px 40px -28px rgb(var(--tint) / .55); }
.inv-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--c-line); }
.inv-brand { display: flex; align-items: center; gap: .75rem; }
.inv-logo { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; background: var(--c-accent); color: #fff; font-size: 1.1rem; }
.inv-brand b { display: block; font-size: 17px; font-weight: 900; color: var(--c-ink); }
.inv-brand small { display: block; margin-top: .1rem; font-size: 12px; color: var(--c-muted); }
.inv-title { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.inv-label { font-size: 12px; font-weight: 700; color: var(--c-muted); }
.inv-title > b { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 16px; font-weight: 800; letter-spacing: .02em; color: var(--c-accent-ink); }
.inv-stamp { display: inline-flex; align-items: center; gap: .35rem; margin-top: .15rem; padding: .3rem .75rem; border-radius: 999px; font-size: 12px; font-weight: 900; }
.inv-stamp.is-paid { background: rgb(16 185 129 / .12); color: #047857; }
.inv-stamp.is-unpaid { background: rgb(245 158 11 / .14); color: #b45309; }
.inv-stamp.is-void { background: var(--c-surface-2); color: var(--c-muted); }
html.dark .inv-stamp.is-paid { color: #34d399; }
html.dark .inv-stamp.is-unpaid { color: #fbbf24; }

.inv-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--c-line); }
.inv-meta > div { padding: .9rem 1.5rem; }
.inv-meta dt { font-size: 11.5px; color: var(--c-muted); }
.inv-meta dd { margin-top: .2rem; font-size: 13.5px; font-weight: 800; color: var(--c-ink); }
.inv-meta dd.is-late { color: #e11d48; }
@media (max-width: 639px) {
  .inv-meta > div:nth-child(even) { border-inline-start: 1px solid var(--c-line); }
  .inv-meta > div:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
}
@media (min-width: 640px) {
  .inv-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inv-meta > div + div { border-inline-start: 1px solid var(--c-line); }
}

.inv-parties { display: grid; gap: .75rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--c-line); }
@media (min-width: 768px) {
  .inv-parties { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1rem; }
  .inv-parties.is-single { grid-template-columns: minmax(0, 1fr); }
}
.inv-svc-rows { display: grid; gap: .55rem 1.25rem; margin-top: .6rem; }
@media (min-width: 340px) { .inv-svc-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inv-svc-rows > div { min-width: 0; }
.inv-svc-rows dt { font-size: 11px; color: var(--c-muted); }
.inv-svc-rows dd { margin-top: .1rem; font-size: 13px; font-weight: 800; line-height: 1.6; color: var(--c-ink); overflow-wrap: anywhere; }
.inv-svc-rows dd[dir="ltr"] { text-align: right; }
.inv-specs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; padding-top: .8rem; border-top: 1px dashed var(--c-line-strong); }
.inv-specs li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 11.5px; font-weight: 700; color: var(--c-ink-2); }
.inv-specs li i { font-size: 9px; color: var(--c-accent); }
.inv-parties section { padding: .9rem 1rem; border-radius: 14px; background: var(--c-surface-2); }
.inv-parties h2 { font-size: 11.5px; font-weight: 800; color: var(--c-muted); }
.inv-parties b { display: block; margin-top: .35rem; font-size: 14px; font-weight: 900; color: var(--c-ink); }
.inv-parties p { margin-top: .2rem; font-size: 12.5px; line-height: 1.8; color: var(--c-ink-2); overflow-wrap: anywhere; }

.inv-items { overflow-x: auto; }
.inv-items table { width: 100%; border-collapse: collapse; font-size: 13px; }
.inv-items th { padding: .75rem 1rem; background: var(--c-surface-2); border-bottom: 1px solid var(--c-line); font-size: 11.5px; font-weight: 800; color: var(--c-muted); text-align: right; white-space: nowrap; }
.inv-items th:first-child, .inv-items td:first-child { padding-inline-start: 1.5rem; }
.inv-items th:last-child, .inv-items td:last-child { padding-inline-end: 1.5rem; }
.inv-items td { padding: .95rem 1rem; border-bottom: 1px solid var(--c-line); vertical-align: top; color: var(--c-ink-2); }
.inv-items td b { display: block; font-weight: 800; color: var(--c-ink); }
.inv-items td small { display: block; margin-top: .2rem; font-size: 11.5px; line-height: 1.8; color: var(--c-muted); }
.inv-items .inv-n { width: 2.5rem; color: var(--c-muted); }
.inv-items .inv-amt { text-align: left; white-space: nowrap; font-weight: 800; color: var(--c-ink); }
.inv-items th.text-left { text-align: left; }
.inv-items .text-center { text-align: center; }
.inv-items .inv-col-qty { width: 4.5rem; }
.inv-items .inv-qty-m { display: none; }
@media (max-width: 559px) {
  .inv-items .inv-col-n, .inv-items .inv-col-qty { display: none; }
  .inv-items .inv-qty-m { display: block; }
  .inv-items th:nth-child(2), .inv-items td:nth-child(2) { padding-inline-start: 1.25rem; }
  .inv-items th:last-child, .inv-items td:last-child { padding-inline-end: 1.25rem; }
  .inv-head, .inv-meta > div, .inv-parties, .inv-sum, .inv-pays, .inv-foot { padding-inline: 1.25rem; }
}

.inv-sum { display: flex; justify-content: flex-end; padding: 1.1rem 1.5rem 1.4rem; }
.inv-sum dl { width: 100%; max-width: 360px; }
.inv-sum dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: 13px; }
.inv-sum dt { color: var(--c-muted); }
.inv-sum dd { font-weight: 800; color: var(--c-ink); white-space: nowrap; }
.inv-sum .is-off dd { color: #059669; }
.inv-sum .inv-total { margin-top: .5rem; padding: .85rem 1rem; border-radius: 14px; background: var(--c-accent-soft); box-shadow: inset 0 0 0 1px var(--c-accent-line); }
.inv-sum .inv-total dt { align-self: center; font-weight: 900; color: var(--c-ink); }
.inv-sum .inv-total dd { font-family: 'Estedad', 'Vazirmatn', sans-serif; font-size: 1.35rem; font-weight: 900; color: var(--c-accent-ink); }
.inv-sum .inv-total small { font-size: 11px; font-weight: 600; color: var(--c-muted); }

.inv-pays { padding: 0 1.5rem 1.25rem; }
.inv-pays h2 { margin-bottom: .5rem; font-size: 12px; font-weight: 800; color: var(--c-muted); }
.inv-pays li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; padding: .65rem .85rem; border-radius: 12px; background: rgb(16 185 129 / .07); font-size: 12.5px; color: var(--c-ink-2); }
.inv-pays li + li { margin-top: .4rem; }
.inv-pays li i { color: #059669; }
.inv-pays li b { color: var(--c-ink); }

.inv-foot { padding: 1rem 1.5rem; border-top: 1px dashed var(--c-line-strong); font-size: 11.5px; line-height: 1.9; color: var(--c-muted); }

/* ستون پرداخت */
.inv-pay { padding: 1.25rem; border: 1px solid var(--c-line-strong); border-radius: 22px; background: var(--c-surface); box-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 18px 40px -28px rgb(var(--tint) / .55); scroll-margin-top: 96px; }
.inv-pay h2 { display: flex; align-items: center; gap: .5rem; font-size: 15px; font-weight: 900; color: var(--c-ink); }
.inv-pay h2 i { color: var(--c-accent); }
.inv-pay > p { margin-top: .5rem; font-size: 13px; line-height: 1.9; color: var(--c-ink-2); }
.inv-pay.is-done { border-color: rgb(16 185 129 / .4); }
.inv-pay.is-done h2 i { color: #059669; }
.inv-pay.is-muted h2 i { color: var(--c-muted); }
.inv-pay-amount { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: 1rem 0; padding: .9rem 1rem; border-radius: 14px; background: var(--c-surface-2); }
.inv-pay-amount span { font-size: 12.5px; color: var(--c-muted); }
.inv-pay-amount b { font-family: 'Estedad', 'Vazirmatn', sans-serif; font-size: 1.45rem; font-weight: 900; color: var(--c-ink); white-space: nowrap; }
.inv-pay-amount small { font-size: 11px; font-weight: 600; color: var(--c-muted); }
.inv-pay-off { display: block; padding: .85rem; border-radius: 12px; background: rgb(245 158 11 / .1); font-size: 12.5px; line-height: 1.9; color: var(--c-ink-2); }
.inv-pay-off a, .inv-pay-hint a { font-weight: 800; color: var(--c-accent); }
.inv-methods { display: grid; gap: .55rem; }
.inv-method { position: relative; display: flex; align-items: center; gap: .75rem; padding: .75rem .85rem; border: 1.5px solid var(--c-line); border-radius: 14px; background: var(--c-surface); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.inv-method:hover { border-color: var(--c-line-strong); }
.inv-method:has(input:checked) { border-color: var(--c-accent); background: var(--c-accent-soft); }
.inv-method.is-off { cursor: not-allowed; opacity: .65; }
.inv-method input { position: absolute; opacity: 0; pointer-events: none; }
.inv-method-ico { display: grid; place-items: center; flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: 12px; font-size: .95rem; }
.inv-method-ico.is-wallet { background: var(--c-accent-soft); color: var(--c-accent); }
.inv-method-txt { min-width: 0; flex: 1; }
.inv-method-txt b { display: block; font-size: 13.5px; font-weight: 900; color: var(--c-ink); }
.inv-method-txt small { display: block; margin-top: .1rem; font-size: 11.5px; color: var(--c-muted); }
.inv-method-tag { flex-shrink: 0; padding: .2rem .55rem; border-radius: 8px; background: rgb(245 158 11 / .14); font-size: 11px; font-weight: 800; color: #b45309; }
.inv-method::after { content: ''; flex-shrink: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--c-line-strong); transition: border-color .2s ease, border-width .2s ease; }
.inv-method:has(input:checked)::after { border: 5px solid var(--c-accent); }
.inv-pay-hint { font-size: 12px; color: var(--c-muted); }
.inv-pay-btn { display: inline-flex; width: 100%; align-items: center; justify-content: center; gap: .5rem; margin-top: .4rem; padding: .95rem 1rem; border-radius: 14px; background: var(--c-accent); box-shadow: 0 10px 24px -12px rgb(var(--tint) / .8); font-size: 14.5px; font-weight: 900; color: #fff; transition: background-color .2s ease, transform .2s ease; }
.inv-pay-btn:hover { background: var(--c-accent-hover); }
.inv-pay-btn:active { transform: scale(.98); }
.inv-pay-btn:disabled { cursor: wait; opacity: .8; }
.inv-secure { margin-top: .35rem; text-align: center; font-size: 11.5px; color: var(--c-muted); }
.inv-secure i { color: #059669; }

.inv-help { margin-top: 1rem; padding: 1rem 1.15rem; border: 1px dashed var(--c-line-strong); border-radius: 18px; font-size: 12.5px; color: var(--c-ink-2); }
.inv-help b { display: block; font-weight: 900; color: var(--c-ink); }
.inv-help p { margin: .25rem 0 .6rem; line-height: 1.8; color: var(--c-muted); }
.inv-help a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--c-accent); }

/* فاکتور پیدا نشد */
.inv-empty { max-width: 520px; margin: 3rem auto; padding: 2.5rem 1.5rem; border: 1px solid var(--c-line-strong); border-radius: 22px; background: var(--c-surface); text-align: center; }
.inv-empty-ico { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 18px; background: var(--c-accent-soft); color: var(--c-accent); font-size: 1.4rem; }
.inv-empty h1 { margin-top: 1rem; font-size: 1.25rem; font-weight: 900; color: var(--c-ink); }
.inv-empty p { margin-top: .5rem; font-size: 13.5px; line-height: 1.9; color: var(--c-muted); }
.inv-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.5rem; }

@media print {
  #navbar, footer, .no-print { display: none !important; }
  body { background: #fff !important; }
  .inv-page { padding: 0; }
  .inv-wrap { max-width: none; padding: 0; }
  .inv-grid { display: block; }
  .inv-doc { border: 1px solid #cbd5e1; border-radius: 0; box-shadow: none; }
  .inv-sum .inv-total { box-shadow: none; border: 1px solid #cbd5e1; }
}

/* =======================================================================
   شبکه‌ی کارت پلن‌ها: وقتی تعداد پلن از ستون‌ها کمتر است (یا با فیلتر دیتاسنتر
   بعضی پنهان می‌شوند) کارت‌ها وسط می‌آیند و فاصله‌ی دو طرف یکی است.
   همان تعداد ستون و فاصله‌ی کلاس‌های grid حفظ می‌شود.
   ======================================================================= */
.grid:has(> [data-plan-card]), .grid:has(> .plan-card) { --pc: 1; --pg: 1.5rem; }
.gap-4:has(> [data-plan-card]), .gap-4:has(> .plan-card) { --pg: 1rem; }
.gap-5:has(> [data-plan-card]), .gap-5:has(> .plan-card) { --pg: 1.25rem; }
@media (min-width: 640px) {
  .sm\:grid-cols-2:has(> [data-plan-card]), .sm\:grid-cols-2:has(> .plan-card) { --pc: 2; }
  /* شبکه‌هایی که خودشان در این عرض پنهان‌اند (مثل فهرست موبایلی md:hidden) دست نمی‌خورند */
  .grid:not(.hidden):not(.md\:hidden):not(.sm\:hidden):not(.lg\:hidden):has(> [data-plan-card]),
  .grid:not(.hidden):not(.md\:hidden):not(.sm\:hidden):not(.lg\:hidden):has(> .plan-card) { display: flex; flex-wrap: wrap; justify-content: center; }
  .grid:has(> [data-plan-card]) > *, .grid:has(> .plan-card) > * { flex: 0 0 calc((100% - (var(--pc) - 1) * var(--pg)) / var(--pc)); min-width: 0; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2:has(> [data-plan-card]), .md\:grid-cols-2:has(> .plan-card) { --pc: 2; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3:has(> [data-plan-card]), .lg\:grid-cols-3:has(> .plan-card) { --pc: 3; }
  .lg\:grid-cols-4:has(> [data-plan-card]), .lg\:grid-cols-4:has(> .plan-card) { --pc: 4; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-5:has(> [data-plan-card]), .xl\:grid-cols-5:has(> .plan-card) { --pc: 5; }
}

/* یادداشت مدیر روی فاکتور */
.inv-note { margin: 0 1.5rem 1.2rem; padding: .85rem 1rem; border: 1px dashed var(--c-line, #e5e7eb); border-radius: .9rem; background: rgba(124, 58, 237, .04); font-size: 13px; line-height: 1.9; }
.inv-note b { display: block; margin-bottom: .2rem; font-size: 12px; color: var(--c-ink, #1e1b2e); }
.inv-note b i { margin-left: .35rem; color: #7c3aed; }
.inv-note p { margin: 0; color: var(--c-muted, #64748b); }
@media (max-width: 640px) { .inv-note { margin-inline: 1.25rem; } }
@media print { .inv-note { background: none; } }

/* =======================================================================
   صفحه‌ساز (page.php): رنگ متن بلوک‌ها با تم روشن/تیره و پس‌زمینه‌ی «تیره» هم‌خوان است
   ======================================================================= */
.pb-title { color: var(--c-ink); }
.pb-muted { color: var(--c-ink-2); }
.pb-dark .pb-title, .pb-dark h1, .pb-dark h2, .pb-dark h3 { color: #fff; }
.pb-dark .pb-muted, .pb-dark p { color: #c9c3e6; }
.pb-dark .kicker { color: #c4b5fd; }
.pb-dark .pb-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.pb-dark .pb-card h3, .pb-dark .pb-card b { color: #fff; }
.pb-dark .pb-card p, .pb-dark .pb-card blockquote { color: #d6d1ee; }
.pb-dark .post-body, .pb-dark .post-body h2, .pb-dark .post-body h3 { color: #e9e6f7; }
.pb-center .post-body { margin-inline: auto; }
.pb-block > .mx-auto > *:first-child { margin-top: 0; }
.pb-block details summary::-webkit-details-marker { display: none; }
/* پیش‌نمایش ویرایشگر: بلوک انتخاب‌شده و پنهان */
[data-bid] { cursor: pointer; transition: box-shadow .15s ease; }
[data-bid]:hover { box-shadow: inset 0 0 0 2px rgba(124, 58, 237, .35); }
[data-bid].pb-selected { box-shadow: inset 0 0 0 3px #7c3aed; }
[data-bid][data-hidden] { opacity: .35; }

/* ===== گفتگوی تیکت: پیام‌های خود بیننده راست، طرف مقابل چپ (مثل پشتیبانی آنلاین) ===== */
.tk-thread { display: flex; flex-direction: column; gap: .7rem; padding: .9rem; border-radius: 1.1rem; background: #f6f5fb; }
html.dark .tk-thread { background: #10151d; }
.tk-day { display: flex; justify-content: center; }
.tk-day span { padding: .15rem .75rem; border-radius: 99px; background: rgba(109, 40, 217, .08); color: #6d28d9; font-size: .66rem; font-weight: 700; }
html.dark .tk-day span { background: rgba(167, 139, 250, .12); color: #c4b5fd; }
.tk-row { display: flex; }
.tk-row.is-me { justify-content: flex-start; }
.tk-row.is-them { justify-content: flex-end; }
.tk-msg { max-width: min(86%, 40rem); padding: .7rem .95rem .45rem; border-radius: 1.15rem; font-size: .78rem; line-height: 2; box-shadow: 0 1px 2px rgba(17, 12, 34, .06); }
.tk-row.is-me .tk-msg { background: #6d28d9; color: #fff; border-start-start-radius: .4rem; }
.tk-row.is-them .tk-msg { background: #fff; color: #1b1630; border: 1px solid #e7e5ef; border-start-end-radius: .4rem; }
html.dark .tk-row.is-them .tk-msg { background: #212a37; color: #e6eaf0; border-color: #273142; }
.tk-who { margin-bottom: .15rem; font-size: .68rem; font-weight: 800; opacity: .8; }
.tk-body { white-space: normal; overflow-wrap: anywhere; }
.tk-time { margin-top: .15rem; font-size: .62rem; opacity: .65; text-align: end; }
.tk-row.is-me .tk-msg a:not(.att-file):not(.att-img) { color: #fff; text-decoration: underline; }

/* پیوست‌ها داخل پیام */
.att-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }
.att-img { display: block; overflow: hidden; width: 11rem; max-width: 100%; border-radius: .8rem; border: 1px solid rgba(0, 0, 0, .08); background: #fff; }
.att-img img { display: block; width: 100%; height: 8rem; object-fit: cover; }
.att-file { display: flex; align-items: center; gap: .55rem; min-width: 12rem; max-width: 100%; padding: .5rem .7rem; border-radius: .8rem; border: 1px solid #e7e5ef; background: #fff; color: #1b1630; text-decoration: none; line-height: 1.5; }
.att-file > i:first-child { font-size: 1.2rem; color: #7c3aed; }
.att-file span { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.att-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.att-file small { color: #6b6880; font-size: .64rem; }
.att-file .att-dl { color: #94a3b8; font-size: .75rem; }
.att-file:hover { border-color: #c4b5fd; }
html.dark .att-file { background: #161c25; color: #e6eaf0; border-color: #273142; }

/* انتخاب فایل در فرم تیکت */
.att-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.att-pick-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border: 1px dashed #c4b5fd; border-radius: .75rem; color: #6d28d9; font-size: .72rem; font-weight: 700; cursor: pointer; transition: background .15s ease; }
.att-pick-btn:hover { background: #f5f3ff; }
html.dark .att-pick-btn { color: #c4b5fd; border-color: #4c3d75; }
html.dark .att-pick-btn:hover { background: #1d1830; }
.att-pick-hint { color: #94a3b8; font-size: .65rem; }
.att-pick-list { display: flex; flex-basis: 100%; flex-wrap: wrap; gap: .35rem; }
.att-pick-list:empty { display: none; }
.att-pick-list li { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 99px; background: #f1effa; color: #3b3355; font-size: .66rem; }
.att-pick-list li.is-bad { background: #fff1f2; color: #be123c; }
html.dark .att-pick-list li { background: #212a37; color: #e6eaf0; }

/* برچسب نقطه‌های لبه‌ی نقشه داخل کادر بماند */
.dc-pin.is-edge-l em { left: -6px; transform: translate(0, 4px); }
.dc-pin.is-edge-r em { left: auto; right: -6px; transform: translate(0, 4px); }
.dc-pin.is-edge-l.is-home em, .dc-pin.is-edge-l.is-on em,
.dc-pin.is-edge-r.is-home em, .dc-pin.is-edge-r.is-on em { transform: translate(0, 0); }

/* =======================================================================
   هدر چسبان سایت: بالای صفحه سبک و بی‌خط؛ با اسکرول کمی کوتاه‌تر و شیشه‌ای،
   با سایه‌ی نرم و یک خط محو به‌جای مرز خاکستری
   ======================================================================= */
.area-site #navbar {
  border-bottom-color: transparent;
  transition: background-color .35s ease, box-shadow .35s ease, margin .35s cubic-bezier(.16, 1, .3, 1);
}
.area-site #navInner { transition: height .35s cubic-bezier(.16, 1, .3, 1); }
.area-site #navInner > a:first-child > span:first-child { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }

.area-site #navbar.is-scrolled {
  background-color: rgb(255 255 255 / .8);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 10px 30px -18px rgb(15 23 42 / .22);
}
/* کوتاه شدن هدر با margin جبران می‌شود تا محتوای زیرش نپرد */
.area-site #navbar.is-scrolled #navInner { height: 56px; }
.area-site #navbar.is-scrolled { margin-bottom: 8px; }
.area-site #navbar.is-scrolled #navInner > a:first-child > span:first-child { transform: scale(.9); }
@media (min-width: 640px) {
  .area-site #navbar.is-scrolled #navInner { height: 62px; }
  .area-site #navbar.is-scrolled { margin-bottom: 10px; }
}

.nav-edge {
  position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: linear-gradient(90deg, transparent, rgb(15 23 42 / .09) 18%, rgb(15 23 42 / .09) 82%, transparent);
}
#navbar.is-scrolled .nav-edge { opacity: 1; }

html.dark .area-site #navbar.is-scrolled,
html.dark #navbar.is-scrolled { background-color: rgb(22 28 37 / .82); box-shadow: 0 10px 30px -16px rgb(0 0 0 / .6); }
html.dark .nav-edge { background: linear-gradient(90deg, transparent, rgb(255 255 255 / .08) 18%, rgb(255 255 255 / .08) 82%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .area-site #navbar, .area-site #navInner, .area-site #navInner > a:first-child > span:first-child, .nav-edge { transition: none; }
}

