/* ═════════ سبک‌سازی قالب‌ها ═════════
   هدف: صفحه روی همه‌ی گوشی‌ها (حتی ضعیف) روان بماند.
   رنگ و چیدمان دست‌نخورده است؛ فقط انیمیشن‌های تزئینی،
   بلور پس‌زمینه و پس‌زمینه‌ی ثابت که پردازنده/باتری می‌خورد حذف می‌شوند. */

/* ۱) انیمیشن تزئینی مداوم اجرا نمی‌شود */
body.tpl-space .sp-bg .sp-neb,
body.tpl-space .sp-bg .sp-st,
body.tpl-space .sp-bg .sp-pl,
body.tpl-space .sp-bg .sp-sh,
body.tpl-space .hero::after,
.au-ring,
.au-core,
.au-btn::after,
.live-dot,
.live-dot-live,
.nl .ndot,
.nbadge,
.ticker-track,
.dx-hero::before {
  animation: none !important;
  will-change: auto !important;
}
body.tpl-space .sp-bg .sp-sh { display: none !important; }
body.tpl-space .sp-bg .sp-neb { transform: none !important; }

/* ۲) پس‌زمینه‌ی ثابت هنگام اسکرول */
body.tpl-space,
body.tpl-glass { background-attachment: scroll !important; }

/* ۳) خاموش‌کردن محو پس‌زمینه (backdrop-filter) */
:is(.nav,.mnav,.msheet,.msheet-bg,.adm-backdrop,.modal-bg,#ldr-nav,.u-pan,.uh-p,.glass,.adm-nav,.admin-nav,.dx-chip,.dx-acts a),
body.tpl-space :is(.card,.sc,.co,.pc,.feat,.step-card,.svc-card,.order-card,.wl-card,.wl-row,.gm-card,.gm-hero,.gm-stat,.gm-step,.gm-lb,.gb-stat,.gb-g,.ref-box,.total-box,.ch-ads-in,.seo-card,.wh-pill,.wh-step,.wh-win,.tab-bar,.lb-tabs,.item-row,.row-item,.cp-row,.uf-tr,.ann-card),
body.tpl-glass :is(.card,.sc,.co,.glass) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* ۴) نوارهای شیشه‌ای با رنگ توپر (بدون وابستگی به بلور) */
body.tpl-space :is(.nav,.mnav) { background: #080a1c !important; }
body.tpl-space.theme-light :is(.nav,.mnav) { background: #f5f5f5 !important; }

/* ۵) احترام به تنظیم «کاهش حرکت» دستگاه */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
