/* ═══════════════════════════════════════════════════════════════
   پیج‌کاو — theme.css
   دارک‌مود + هدر شیشه‌ای + بهبود موبایل
   این فایل بعد از style.css لود می‌شود و چیزی را بازنویسی نمی‌کند،
   فقط متغیرها را در حالت دارک تغییر می‌دهد و چند بهبود ظاهری می‌افزاید.
   ═══════════════════════════════════════════════════════════════ */

/* ─── ۱) متغیرهای دارک‌مود ─────────────────────────────────────────
   با افزودن کلاس .dark به <html> فعال می‌شود.
   رنگ‌ها نرم و شیشه‌ای‌اند (نه مشکی مطلق) تا حس مدرن SaaS حفظ شود
   و چشم اذیت نشود. هویت بنفش برند (#5B5BD6 → روشن‌تر برای کنتراست) حفظ شده. */
html.dark{
  color-scheme:dark;
  --ink:#EAECF2;        /* متن اصلی — سفید ملایم، نه سفید خالص */
  --ink2:#B4B9C9;       /* متن ثانویه */
  --ink3:#828AA0;       /* متن کم‌رنگ */
  --line:#2A2E3D;       /* خطوط و بوردرها */
  --sheet:#0E1017;      /* پس‌زمینه‌ی کلی — سرمه‌ای تیره، نه مشکی */
  --card:#171A24;       /* کارت‌ها — کمی روشن‌تر از پس‌زمینه */
  --accent:#8B8BF0;     /* بنفش روشن‌تر برای کنتراست بهتر روی تیره */
  --a-bg:#21243A;       /* پس‌زمینه‌ی بنفش ملایم */
  --a-bg2:#1B1E2E;      /* پس‌زمینه‌ی بنفش ملایم‌تر */
  --green:#34D399;      /* سبز روشن‌تر */
  --g-bg:#10291F;       /* پس‌زمینه‌ی سبز تیره */
  --sh1:0 1px 4px rgba(0,0,0,.4);
  --sh2:0 4px 20px rgba(0,0,0,.5);
  --sh3:0 12px 48px rgba(0,0,0,.6);
}

/* انتقال نرم هنگام جابه‌جایی بین لایت و دارک */
html.theme-anim,
html.theme-anim body,
html.theme-anim .card,
html.theme-anim .nav,
html.theme-anim .btn{
  transition:background-color .3s ease,color .3s ease,border-color .3s ease,box-shadow .3s ease;
}

/* ─── ۲) اصلاحات نقطه‌ای دارک‌مود برای عناصری که رنگ ثابت داشتند ─── */
html.dark body{background:var(--sheet);color:var(--ink)}

/* nav شیشه‌ای در دارک */
html.dark .nav{
  background:rgba(16,18,24,.72);
  border-bottom:1px solid rgba(255,255,255,.07);
}

/* دکمه‌ها و کارت‌هایی که در style.css رنگ سفید ثابت داشتند */
html.dark .btn-outline{background:var(--card);color:var(--ink2);border-color:var(--line)}
html.dark .btn-outline:hover{background:var(--a-bg2);border-color:var(--accent);color:var(--accent)}
html.dark .btn-white{background:var(--card);color:var(--ink)}
html.dark .btn-white:hover{background:#1f2330}

/* فرم‌ها — مهم برای خوانایی در دارک */
html.dark input,
html.dark select,
html.dark textarea,
html.dark .fi,
html.dark .ft,
html.dark .s-box,
html.dark .contact-form .fi,
html.dark .contact-form .ft{
  background:var(--card)!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}
html.dark input::placeholder,
html.dark textarea::placeholder{color:var(--ink3)}
html.dark select option{background:var(--card);color:var(--ink)}

/* پیام‌های فرم در دارک */
html.dark .form-msg.ok{background:#0f2a20;color:#6ee7b7;border-color:#134e3a}
html.dark .form-msg.err{background:#2a1414;color:#fca5a5;border-color:#4c1d1d}

/* کارت‌ها و سطوحی که ممکن است سفید ثابت باشند */
html.dark .card{background:var(--card);border-color:var(--line)}

/* ─── عناصری که در style.css رنگ سفید ثابت (#fff) دارند ───────────
   چون این‌ها از متغیر استفاده نمی‌کنند، اینجا در دارک‌مود اصلاح می‌شوند
   تا پس‌زمینه‌ی سفید در حالت تاریک باقی نماند. */
html.dark .stat-item,
html.dark .pain-card,
html.dark .how-sec,
html.dark .stab,
html.dark .sample-window,
html.dark .testi-sec,
html.dark .faq-item,
html.dark .hero,
html.dark .s-box,
html.dark .s-res,
html.dark .chip,
html.dark .sc,
html.dark .fi,
html.dark .fs,
html.dark .ft,
html.dark .cbi,
html.dark .wcard,
html.dark .sccard,
html.dark .psec,
html.dark .rstat,
html.dark .spec,
html.dark .expcard,
html.dark .certcard,
html.dark .modal-box,
html.dark .legal-card,
html.dark .contact-item{
  background:var(--card);
  border-color:var(--line);
  color:var(--ink);
}
/* حالت‌های active/hover که نباید رنگ کارت بگیرند، دوباره accent می‌شوند */
html.dark .stab.active,
html.dark .stab:hover,
html.dark .sc.active,
html.dark .chip:hover{
  background:var(--a-bg);
  border-color:var(--accent);
  color:var(--accent);
}
/* sample-window معمولاً شبیه‌ساز موبایل است؛ کمی تیره‌تر */
html.dark .sample-window{background:#12141C}

/* تصاویر مدرک کمی کم‌نورتر تا در دارک نزنند توی چشم */
html.dark .cert-img,
html.dark .modal-img{filter:brightness(.92)}

/* اسکرول‌بار دارک */
html.dark::-webkit-scrollbar{width:12px}
html.dark::-webkit-scrollbar-track{background:var(--sheet)}
html.dark::-webkit-scrollbar-thumb{background:#2c3142;border-radius:8px;border:3px solid var(--sheet)}

/* ─── ۳) دکمه‌ی سوییچ دارک‌مود ─────────────────────────────────── */
.theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;flex-shrink:0;
  border-radius:50%;cursor:pointer;
  background:var(--a-bg);border:1px solid var(--line);
  color:var(--ink2);transition:all .18s;
  -webkit-tap-highlight-color:transparent;
}
.theme-toggle:hover{color:var(--accent);border-color:var(--accent);transform:translateY(-1px)}
.theme-toggle:active{transform:scale(.94)}
.theme-toggle svg{width:20px;height:20px}
/* آیکن خورشید/ماه: پیش‌فرض ماه (لایت) نمایش، خورشید مخفی */
.theme-toggle .icon-sun{display:none}
.theme-toggle .icon-moon{display:block}
html.dark .theme-toggle .icon-sun{display:block}
html.dark .theme-toggle .icon-moon{display:none}

/* ─── ۴) هدر شیشه‌ای حرفه‌ای (Glass Header) ────────────────────────
   nav از قبل backdrop-filter دارد؛ اینجا حرفه‌ای‌ترش می‌کنیم:
   شیشه‌ی واقعی‌تر، بوردر ظریف، سایه‌ی نرم هنگام اسکرول. */
.nav{
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  backdrop-filter:blur(18px) saturate(180%);
  transition:box-shadow .25s ease,background-color .25s ease,border-color .25s ease;
}
/* وقتی کاربر اسکرول کرد (کلاس .scrolled با JS اضافه می‌شود) */
.nav.scrolled{
  background:rgba(255,255,255,.82);
  box-shadow:0 8px 32px rgba(15,17,23,.10);
  border-bottom:1px solid rgba(15,17,23,.06);
}
html.dark .nav.scrolled{
  background:rgba(16,18,24,.82);
  box-shadow:0 8px 32px rgba(0,0,0,.45);
  border-bottom:1px solid rgba(255,255,255,.08);
}
/* کپسول شیشه‌ای دور لینک‌های nav — جداسازی بصری از محتوا */
.nav-links{
  background:rgba(127,130,160,.07);
  border:1px solid rgba(127,130,160,.10);
  border-radius:100px;
  padding:4px 6px;
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
html.dark .nav-links{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.07);
}
/* fallback اگر مرورگر backdrop-filter را پشتیبانی نکند */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .nav{background:rgba(255,255,255,.98)}
  html.dark .nav{background:rgba(16,18,24,.98)}
  .nav.scrolled{background:#fff}
  html.dark .nav.scrolled{background:#101218}
}

/* ─── ۵) بهبودهای موبایل (Mobile-First) ───────────────────────────
   هدف: دکمه‌های قابل‌لمس، فاصله‌ی بهتر، بدون اسکرول افقی. */
html,body{overflow-x:hidden;max-width:100%}

@media(max-width:768px){
  /* کانتینر nav-links شفاف است؛ هر دکمه کپسول مستقل دارد (تعریف کامل در بلوک پایین‌تر) */
  .nav-links{background:none;border:none;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:0}
  html.dark .nav-links{background:none;border:none}
  .theme-toggle{width:38px;height:38px}
}

@media(max-width:480px){
  /* اطمینان از ناحیه‌ی لمسی کافی (حداقل ۴۴px طبق استاندارد) */
  .btn{min-height:46px}
  .theme-toggle{width:40px;height:40px}
  /* فرم‌ها در موبایل راحت‌تر */
  .fi,.ft,input,select,textarea{font-size:16px!important} /* جلوگیری از زوم خودکار iOS */
  /* فاصله‌ی بهتر بین عناصر فرم */
  .fg{margin-bottom:14px}
}

/* ─── Mobile Audit: عرض‌های باریک ۳۲۰px تا ۴۳۰px ─────────────────
   اطمینان از نبود اسکرول افقی و چیدمان تمیز هدر در گوشی‌های کوچک. */
@media(max-width:430px){
  /* لوگو و دکمه‌ها در یک ردیف بدون سرریز */
  .nav-in{gap:6px}
  .logo{font-size:1.15rem}
  /* دکمه‌ی ارتقا پلن جمع‌وجورتر تا کنار دکمه‌ی تم جا شود */
  .nav .btn-accent{padding:8px 14px!important;font-size:.8rem!important}
  .theme-toggle{width:36px;height:36px}
  .theme-toggle svg{width:18px;height:18px}
  /* جلوگیری از سرریز افقی محتوای کارت‌ها */
  .wcard,.sccard,.card{max-width:100%;overflow-wrap:break-word;word-break:break-word}
  /* کپشن و بدنه‌ی برنامه خوانا بماند */
  .wval,.story-row{overflow-wrap:break-word;word-break:break-word}
}

@media(max-width:360px){
  /* گوشی‌های خیلی کوچک (۳۲۰–۳۶۰px) */
  .wrap{padding:0 14px}
  .logo{font-size:1.05rem}
  .nav .btn-accent{padding:7px 11px!important;font-size:.74rem!important}
  .theme-toggle{width:34px;height:34px}
  .btn{font-size:.9rem}
}

/* احترام به ترجیح کاهش حرکت کاربر */
@media (prefers-reduced-motion: reduce){
  html.theme-anim,html.theme-anim *{transition:none!important}
  .nav{transition:none}
}

/* ─── ۶) دارک‌مود پنل ادمین ───────────────────────────────────────
   پنل ادمین <style> inline با رنگ ثابت دارد؛ اینجا در دارک اصلاح می‌شود. */
html.dark .adm-nav,
html.dark .adm-section,
html.dark .stat-box,
html.dark .adm-tbl,
html.dark .adm-tbl th,
html.dark .adm-tbl td{
  background:var(--card)!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}
html.dark .adm-tbl th{background:#1d2030!important}
html.dark .adm-tbl tr:hover td{background:#1d2030!important}
html.dark .adm-title,
html.dark .adm-section-t,
html.dark .stat-num{color:var(--ink)!important}
html.dark .stat-lbl2{color:var(--ink3)!important}

/* ─── ۷) بنر بازخورد پرداخت (success/fail/cancel) ────────────────── */
.pay-banner{
  padding:14px 18px;border-radius:14px;font-size:.9rem;font-weight:700;
  margin-bottom:20px;text-align:center;line-height:1.7;
}
.pay-banner.ok{background:#DCFCE7;color:#166534;border:1px solid #86EFAC}
.pay-banner.err{background:#FEF2F2;color:#B91C1C;border:1px solid #FECACA}
html.dark .pay-banner.ok{background:#0f2a20;color:#6ee7b7;border-color:#134e3a}
html.dark .pay-banner.err{background:#2a1414;color:#fca5a5;border-color:#4c1d1d}

/* ─── ۸) کارت «روز کامل نمونه» در بخش نمونه خروجی صفحه اصلی ──────── */
.sw-fullday{
  background:var(--a-bg2,#f5f5ff);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  margin:0 0 16px;
  text-align:right;
}
.swf-head{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.swf-day{background:var(--accent);color:#fff;font-weight:700;font-size:.82rem;padding:4px 12px;border-radius:8px}
.swf-fmt{background:var(--a-bg);color:var(--accent);font-weight:600;font-size:.78rem;padding:4px 10px;border-radius:8px}
.swf-label{margin-right:auto;font-size:.72rem;color:var(--ink3)}
.swf-row{display:flex;gap:10px;padding:9px 0;border-top:1px solid var(--line);align-items:flex-start}
.swf-row:first-of-type{border-top:none}
.swf-k{flex-shrink:0;font-weight:700;font-size:.8rem;color:var(--ink2);width:74px}
.swf-v{font-size:.85rem;line-height:1.75;color:var(--ink);flex:1}
.sw-days-label{font-size:.8rem;color:var(--ink3);font-weight:600;margin:4px 0 10px}
html.dark .sw-fullday{background:#14161f}

@media(max-width:480px){
  .swf-row{flex-direction:column;gap:3px}
  .swf-k{width:auto}
  .sw-fullday{padding:13px}
}

/* ─── ۹) بخش‌های جدید صفحه Pricing (برای چه کسانی / بعد از خرید / پشتیبانی) ── */
.whofor-sec,.aftbuy-sec{padding:48px 0}
.whofor-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:880px;margin:0 auto}
.whofor-item{display:flex;gap:14px;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px}
.wf-ico{font-size:1.6rem;flex-shrink:0}
.whofor-item b{display:block;margin-bottom:5px;color:var(--ink);font-size:.95rem}
.whofor-item p{font-size:.85rem;color:var(--ink2);line-height:1.7;margin:0}
.aftbuy-steps{max-width:680px;margin:0 auto 20px;display:flex;flex-direction:column;gap:12px}
.aftbuy-step{display:flex;gap:14px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px;font-size:.9rem;color:var(--ink);line-height:1.7}
.ab-num{flex-shrink:0;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem}
.support-box{max-width:680px;margin:0 auto 14px;background:var(--a-bg2);border:1px solid var(--line);border-radius:14px;padding:14px 16px;font-size:.88rem;color:var(--ink);line-height:1.8}
.support-box a{color:var(--accent);font-weight:600}
.pay-status{max-width:680px;margin:0 auto;border-radius:14px;padding:14px 16px;font-size:.88rem;line-height:1.8;font-weight:600}
.pay-status.on{background:#DCFCE7;color:#166534;border:1px solid #86EFAC}
.pay-status.off{background:#FEF9E7;color:#92670C;border:1px solid #FAE6A0}
.pay-status a{color:inherit;text-decoration:underline;font-weight:700}
html.dark .pay-status.on{background:#0f2a20;color:#6ee7b7;border-color:#134e3a}
html.dark .pay-status.off{background:#2a2410;color:#fcd56b;border-color:#4c3f1d}
@media(max-width:600px){
  .whofor-grid{grid-template-columns:1fr}
}

/* ─── ۱۰) کارت «آخرین برنامه» در داشبورد ─────────────────────────── */
.latest-plan{
  background:linear-gradient(135deg,var(--a-bg) 0%,var(--a-bg2) 100%);
  border:1.5px solid var(--accent);
  border-radius:16px;padding:18px;margin-bottom:16px;
}
.lp-tag{font-size:.78rem;font-weight:700;color:var(--accent);margin-bottom:8px}
.lp-title{font-size:1.02rem;font-weight:700;color:var(--ink);margin-bottom:10px;line-height:1.6}
.lp-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:.82rem;color:var(--ink2)}
.dash-divider{font-size:.82rem;font-weight:600;color:var(--ink3);margin:18px 0 12px;padding-top:14px;border-top:1px dashed var(--line)}
@media(max-width:480px){
  .latest-plan{padding:15px}
  .lp-title{font-size:.95rem}
}

/* ─── ۱۱) بنر موفقیت در صفحه نتیجه ───────────────────────────────── */
.result-success-banner{
  display:flex;align-items:center;gap:14px;
  background:linear-gradient(135deg,#DCFCE7 0%,#F0FDF4 100%);
  border:1px solid #86EFAC;border-radius:16px;
  padding:16px 20px;margin:0 0 20px;
}
.rsb-ico{font-size:1.8rem;flex-shrink:0}
.result-success-banner b{display:block;color:#166534;font-size:.98rem;margin-bottom:3px}
.result-success-banner span{font-size:.84rem;color:#15803d;line-height:1.6}
html.dark .result-success-banner{background:#0f2a20;border-color:#134e3a}
html.dark .result-success-banner b{color:#6ee7b7}
html.dark .result-success-banner span{color:#86efac}
@media(max-width:480px){.result-success-banner{padding:14px 16px;gap:10px}.rsb-ico{font-size:1.5rem}}

/* ─── ۱۲) Trust Section در صفحه اصلی ─────────────────────────────── */
.trust-sec{padding:54px 0;background:var(--a-bg2)}
html.dark .trust-sec{background:#0c0e15}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;max-width:1000px;margin:0 auto 24px}
.trust-box{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;text-align:center}
.tb-ico{font-size:1.9rem;display:block;margin-bottom:10px}
.trust-box b{display:block;color:var(--ink);font-size:.92rem;margin-bottom:7px}
.trust-box p{font-size:.82rem;color:var(--ink2);line-height:1.75;margin:0}
.trust-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.trust-links a{font-size:.85rem;color:var(--accent);font-weight:600;padding:8px 16px;border:1px solid var(--line);border-radius:100px;background:var(--card);transition:all .15s}
.trust-links a:hover{border-color:var(--accent);transform:translateY(-1px)}
@media(max-width:860px){.trust-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.trust-grid{grid-template-columns:1fr}.trust-sec{padding:40px 0}}

/* ─── ۱۳) Hero موبایل: کوچک‌تر، سبک‌تر، مینیمال‌تر ──────────────────── */
@media(max-width:480px){
  .hero h1,.hero-title{
    font-size:1.6rem!important;
    line-height:1.45!important;
    letter-spacing:-.3px!important;
    font-weight:700!important;
    margin-bottom:14px!important;
  }
  .hero-sub{
    font-size:.92rem!important;
    line-height:1.7!important;
    color:var(--ink2)!important;
    max-width:340px!important;
    margin:0 auto 28px!important;
  }
}
@media(max-width:360px){
  .hero h1,.hero-title{font-size:1.45rem!important}
  .hero-sub{font-size:.88rem!important}
}

/* ─── ۱۴) هدر موبایل: container شیشه‌ای یکپارچه (mobile-nav-glass) ───────
   هدف: لینک‌های منو در موبایل داخل یک لایه‌ی شیشه‌ای مستقل و خوانا باشند
   که موقع اسکرول با محتوای صفحه قاطی نشوند. (Safari iOS + Chrome Android) */
@media(max-width:768px){
  /* nav کاملاً مات تا محتوای پشتش هرگز دیده نشود (رفع قاطی‌شدن هنگام اسکرول) */
  .nav{
    height:auto !important;
    min-height:64px;
    background:#ffffff !important;
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    backdrop-filter:blur(20px) saturate(180%);
    border-bottom:1px solid rgba(15,17,23,.10);
    box-shadow:0 4px 20px rgba(15,17,23,.10);
  }
  .nav .nav-in{height:auto !important}
  html.dark .nav{
    background:#0e1017 !important;
    border-bottom:1px solid rgba(255,255,255,.10);
    box-shadow:0 4px 20px rgba(0,0,0,.5);
  }
  /* nav-in: لوگو+دکمه‌ها بالا، لینک‌ها ردیف دوم */
  .nav .nav-in{
    flex-wrap:wrap !important;
    align-items:center;
    row-gap:10px;
    padding:10px 0 12px;
  }
  .nav .logo{order:1;flex:0 0 auto}
  .nav .nav-in > div[style*="display:flex"]{order:2;flex:0 0 auto;margin-inline-start:auto}

  /* ── nav-links: فقط ردیف چیدمان، بدون باکس بزرگ (هر دکمه کپسول مستقل) ── */
  .nav .nav-links{
    order:3 !important;
    width:100% !important;
    display:flex !important;
    flex-wrap:nowrap;
    justify-content:center;
    align-items:center;
    gap:7px;
    margin-top:4px;
    padding:0 !important;
    border-top:none !important;
    /* بدون پس‌زمینه و border — کانتینر شفاف */
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    visibility:visible !important;
    opacity:1 !important;
    position:relative;
    z-index:201;
  }
  html.dark .nav .nav-links{
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
  }
  /* هر دکمه یک کپسول مستقل و جمع‌وجور (نه کشیده/تمام‌عرض) */
  .nav .nav-links .nl{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    visibility:visible !important;
    opacity:1 !important;
    white-space:nowrap;
    padding:7px 14px !important;
    font-size:.76rem !important;
    font-weight:700;
    border-radius:100px;
    color:var(--accent) !important;
    background:rgba(91,91,214,.13);
    border:1px solid rgba(91,91,214,.22);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
    transition:background .15s, border-color .15s;
  }
  .nav .nav-links .nl:active{background:rgba(91,91,214,.28)}
  .nav .nav-links .nl.active{background:rgba(91,91,214,.2);border-color:rgba(91,91,214,.36)}
  html.dark .nav .nav-links .nl{
    color:#c7c7f5 !important;
    background:rgba(139,139,240,.16) !important;
    border:1px solid rgba(139,139,240,.28) !important;
  }
  html.dark .nav .nav-links .nl.active{background:rgba(139,139,240,.26) !important}
  /* دکمه ورود/پنل: کپسول بنفش پررنگ، هم‌اندازه با بقیه */
  .nav .nav-links .nl-auth{
    flex:0 0 auto;
    color:#fff !important;
    font-weight:700 !important;
    background:var(--accent) !important;
    border:1px solid var(--accent) !important;
    padding:7px 16px !important;
    font-size:.76rem !important;
    border-radius:100px !important;
    box-shadow:0 2px 8px rgba(91,91,214,.3);
  }
  html.dark .nav .nav-links .nl-auth{
    background:var(--accent) !important;
    color:#fff !important;
  }
  /* fallback اگر backdrop-filter نبود (Safari قدیمی) — nav مات کافی است */
  @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
    .nav{background:#fff !important}
    html.dark .nav{background:#0e1017 !important}
    /* کانتینر nav-links شفاف می‌ماند؛ هر دکمه رنگ مستقل خودش را دارد */
    .nav .nav-links .nl{background:rgba(91,91,214,.16)}
    html.dark .nav .nav-links .nl{background:rgba(139,139,240,.2)}
  }

  /* فاصله‌ی محتوا از هدر دو-ردیفه (تا FAQ و محتوا زیر هدر نیفتند) */
  .page,.legal-page{padding-top:118px !important}
  /* صفحات داخلی با wrapper متفاوت هم فاصله‌ی کافی بگیرند */
  .pr-hero{padding-top:124px !important}
  .dash-wrap,.co-wrap,.profile-wrap{padding-top:124px !important}
}

/* ═══════════════════════════════════════════════════════════════
   ۱۵) رفع کامل خوانایی دارک‌مود (گزارش‌شده روی موبایل و Safari iOS)
   ریشه‌ی مشکل: عناصری که background:var(--ink) داشتند در دارک روشن
   می‌شدند چون --ink در دارک روشن است. این عناصر باید پس‌زمینه‌ی
   تیره‌ی ثابت داشته باشند، مستقل از تم.
   ═══════════════════════════════════════════════════════════════ */

/* ── کارت «برنامه رایگانت آماده‌ست» (cta-box) ── */
html.dark .cta-box{
  background:#1b1e2b !important;
  border:1px solid var(--line);
}
html.dark .cta-box h3{color:#fff !important}
html.dark .cta-box p{color:rgba(255,255,255,.72) !important}

/* ── فوتر (در دارک خیلی روشن می‌شد) ── */
html.dark .site-footer{
  background:#0a0c12 !important;
  color:#b4b9c9 !important;
  border-top:1px solid var(--line);
}
html.dark .site-footer .f-logo{color:#fff !important}
html.dark .site-footer .footer-tagline,
html.dark .site-footer .footer-col a{color:#9aa0ae !important}
html.dark .site-footer .footer-col h4{color:#fff !important}
html.dark .site-footer .footer-col a:hover{color:var(--accent) !important}
/* فوترهای کوچک ساده‌ی انتهای صفحات */
html.dark footer{color:#9aa0ae;background:#0a0c12 !important}
html.dark footer .f-logo{color:#eaecf2}
html.dark footer .f-copy,
html.dark footer .f-copy a{color:#9aa0ae}

/* ── دکمه‌ها در دارک ── */
/* btn-dark: پس‌زمینه‌ی تیره با متن سفید — در دارک باید بنفش/تیره‌ی واضح بماند */
html.dark .btn-dark{
  background:var(--accent) !important;
  color:#fff !important;
  box-shadow:0 4px 14px rgba(0,0,0,.4);
}
html.dark .btn-dark:hover{background:#9b9bf5 !important}
/* btn-outline و btn-white در دارک */
html.dark .btn-outline{
  background:var(--card) !important;
  color:var(--ink) !important;
  border:1.5px solid var(--line) !important;
}
html.dark .btn-outline:hover{
  border-color:var(--accent) !important;
  color:var(--accent) !important;
  background:var(--a-bg2) !important;
}
html.dark .btn-white{background:var(--card) !important;color:var(--ink) !important}
html.dark .btn-white:hover{background:#1f2330 !important}
/* btn-ghost در دارک */
html.dark .btn-ghost{background:var(--a-bg) !important;color:var(--accent) !important}

/* ── کارت‌های داخل نتیجه‌ی برنامه (wcard/sccard محتوای روز) ── */
html.dark .wcard,
html.dark .sccard{
  background:var(--card) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}
/* متن‌های داخل کارت‌های روز که ممکن است رنگ تیره‌ی ثابت داشته باشند */
html.dark .wcard *,
html.dark .sccard *{color:inherit}
html.dark .wval,
html.dark .wbody,
html.dark .whead{color:var(--ink) !important}
html.dark .wtitle{color:var(--ink) !important}
html.dark .wday{color:var(--accent) !important}

/* ── Safari iOS: تضمین اعمال color-scheme و رنگ پس‌زمینه ── */
html.dark{background:#0E1017}
html.dark body{background:#0E1017 !important}
@supports (-webkit-touch-callout: none){
  /* مخصوص iOS Safari: جلوگیری از override خودکار رنگ‌ها */
  html.dark .cta-box{background:#1b1e2b !important}
  html.dark .site-footer{background:#0a0c12 !important}
  html.dark .btn-dark{background:var(--accent) !important}
}

/* ═══════════════════════════════════════════════════════════════
   ۱۶) نماد اعتماد الکترونیکی (اینماد) در فوتر
   ═══════════════════════════════════════════════════════════════ */
.enamad-box{
  display:flex;
  justify-content:center;
  margin:0 0 14px;
}
.enamad-box img{
  max-width:110px;
  height:auto;
  border-radius:10px;
  background:#fff;          /* پس‌زمینه سفید تا لوگو در دارک‌مود هم خوانا باشد */
  padding:6px;
  display:block;
}
/* فوتر کوچک صفحات پنل (checkout/dashboard/profile) */
.mini-footer{
  padding:28px 0 24px;
  margin-top:40px;
  border-top:1px solid var(--line);
  text-align:center;
}
.mini-footer .f-copy{
  font-size:.82rem;
  color:var(--ink3);
  margin-top:4px;
}
html.dark .mini-footer{border-top-color:var(--line)}

/* موبایل: اینماد جمع‌وجورتر */
@media(max-width:480px){
  .enamad-box img{max-width:95px}
  .mini-footer{padding:22px 0 20px;margin-top:32px}
}

/* اینماد در بخش اعتمادسازی صفحه اصلی */
.trust-enamad{display:flex;justify-content:center;margin-top:20px}
.trust-enamad .enamad-box{margin:0}

/* ═══════════════════════════════════════════════════════════════
   ۱۷) AUDIT کامل دارک‌مود — رفع سکشن‌ها و containerهای روشن
   (تست موبایل واقعی: سکشن‌هایی با background:var(--ink) یا gradient
   روشن در دارک سفید می‌شدند و متن سفید رویشان محو می‌شد)
   ═══════════════════════════════════════════════════════════════ */

/* ── CTA Section نهایی (final-cta) — مشکل اصلی گزارش‌شده ── */
html.dark .final-cta{
  background:#171a24 !important;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
html.dark .final-cta h2{color:#fff !important}
html.dark .final-cta p{color:rgba(255,255,255,.72) !important}

/* ── result CTA (rcta) ── */
html.dark .rcta{
  background:#171a24 !important;
  border:1px solid var(--line);
}
html.dark .rcta h2{color:#fff !important}
html.dark .rcta p{color:rgba(255,255,255,.72) !important}

/* ── Consultation/Founder section (gradient روشن) ── */
html.dark .founder-sec{
  background:linear-gradient(135deg,#14161f 0%,#191c28 100%) !important;
}
html.dark .founder-sec h2,
html.dark .founder-name,
html.dark .founder-text{color:var(--ink) !important}
html.dark .founder-text p,
html.dark .founder-tagline{color:var(--ink2) !important}

/* ── strat & trust (gradient روشن داخل رزومه/نتیجه) ── */
html.dark .strat,
html.dark .trust{
  background:linear-gradient(135deg,#191c28 0%,#14161f 100%) !important;
  border:1px solid var(--line);
}
html.dark .strat *,
html.dark .trust *{color:var(--ink) !important}
html.dark .strat .strat-q,
html.dark .trust .trust-q{color:var(--ink) !important}

/* ── سکشن‌های سفید ثابت (how-sec, testi-sec, psec) ── */
html.dark .how-sec,
html.dark .testi-sec,
html.dark .psec{
  background:var(--sheet) !important;
}
/* متن‌های این سکشن‌ها خوانا بمانند */
html.dark .how-sec h2,html.dark .how-sec h3,html.dark .how-sec p,
html.dark .testi-sec h2,html.dark .testi-sec h3,html.dark .testi-sec p,
html.dark .psec h2,html.dark .psec h3,html.dark .psec p{color:var(--ink)}

/* ── تضمین: هیچ سکشن اصلی در دارک سفید نماند ──
   هر سکشنی که از --sheet استفاده می‌کند خودکار تیره می‌شود؛
   این قانون فقط برای اطمینان نهایی متن‌هاست. */
html.dark section{color:var(--ink)}

/* ── کارت‌های عمومی که ممکن است جا مانده باشند ── */
html.dark .card,
html.dark .feat-item,
html.dark .testi-card,
html.dark .pain-card,
html.dark .stat-item,
html.dark .how-step,
html.dark .founder-badge{
  background:var(--card) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}

/* ── glass containerها در دارک ── */
html.dark .btn-glass{
  background:var(--accent) !important;
  color:#fff !important;
}
html.dark .nav-links{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.07);
}

/* ── استثنا: لوگوی اینماد همیشه پس‌زمینه سفید (تعمدی) ── */
html.dark .enamad-box img{background:#fff !important}

/* ═══════════════════════════════════════════════════════════════
   ۱۸) جدول مقایسه Pricing در دارک‌مود (باگ گزارش‌شده با تصویر)
   مشکل: .compare-table پس‌زمینه‌ی #fff ثابت داشت و در دارک سفید می‌ماند.
   ═══════════════════════════════════════════════════════════════ */
html.dark .compare-table{
  background:var(--card) !important;
  border:1px solid var(--line) !important;
}
html.dark .compare-table th,
html.dark .compare-table td{
  border-bottom:1px solid var(--line) !important;
  color:var(--ink) !important;
}
/* ردیف هدر جدول */
html.dark .compare-table th{
  background:#1d2030 !important;
  color:#fff !important;
}
/* ستون اول (نام امکانات) */
html.dark .compare-table td:first-child,
html.dark .compare-table th:first-child{
  color:var(--ink2) !important;
}
/* ستون یک‌ماهه (هایلایت بنفش) */
html.dark .compare-table .col-monthly{
  background:rgba(139,139,240,.12) !important;
  color:var(--accent) !important;
}
/* تیک‌ها و مقادیر کم‌رنگ */
html.dark .compare-table .yes{color:#34d399 !important}
html.dark .compare-table .dim{color:var(--ink3) !important}
/* ردیف‌های یک‌درمیان برای خوانایی بهتر (premium) */
html.dark .compare-table tr:nth-child(even) td{background:rgba(255,255,255,.02)}
html.dark .compare-table tr:nth-child(even) .col-monthly{background:rgba(139,139,240,.16) !important}

/* همچنین در لایت‌مود ردیف یک‌درمیان برای ظاهر premium‌تر */
.compare-table tr:nth-child(even) td{background:rgba(0,0,0,.015)}
.compare-table tr:nth-child(even) .col-monthly{background:var(--a-bg) !important}

/* سایر کلاس‌های احتمالی جدول pricing که ممکن است وجود داشته باشند */
html.dark .pricing-card,
html.dark .plan-table,
html.dark table{background:var(--card) !important;color:var(--ink) !important}
html.dark table th{background:#1d2030 !important;color:#fff !important}
html.dark table td{color:var(--ink) !important}

/* ═══════════════════════════════════════════════════════════════
   ۱۹) FAQ accordion — دارک‌مود + تمیزی موبایل
   ═══════════════════════════════════════════════════════════════ */
html.dark .faq-item{
  background:var(--card) !important;
  border:1px solid var(--line) !important;
}
html.dark .faq-q{color:var(--ink) !important}
html.dark .faq-q:hover{color:var(--accent) !important}
html.dark .faq-a{color:var(--ink2) !important}
html.dark .faq-arrow{color:var(--ink3) !important}

/* موبایل: FAQ خواناتر و با فاصله‌ی بهتر (رفع شلوغی) */
@media(max-width:480px){
  .faq-list{gap:10px;margin-top:24px}
  .faq-q{padding:15px 16px;font-size:.88rem;line-height:1.6}
  .faq-a{padding:0 16px 16px;font-size:.84rem}
  .faq-item{border-radius:14px}
}

/* ═══════════════════════════════════════════════════════════════
   ۲۰) کارت اصلی قیمت و سایر عناصر Pricing در دارک‌مود
   ═══════════════════════════════════════════════════════════════ */
/* کارت قیمت (gradient سفید → تیره) */
html.dark .price-card{
  background:linear-gradient(160deg,#191c28 0%,#14161f 100%) !important;
  border:1px solid var(--line) !important;
}
html.dark .price-card *{color:var(--ink)}
html.dark .price-amount,
html.dark .price-num{color:#fff !important}
html.dark .price-period,
html.dark .price-old{color:var(--ink3) !important}
/* eyebrow بالای قیمت */
html.dark .pr-eyebrow{
  background:var(--a-bg) !important;
  color:var(--accent) !important;
  border:1px solid var(--line);
}
/* pr-hero (gradient بالای صفحه pricing) */
html.dark .pr-hero{
  background:linear-gradient(180deg,#14161f 0%,var(--sheet) 100%) !important;
}
html.dark .pr-hero h1,
html.dark .pr-title{color:#fff !important}
html.dark .pr-hero p,
html.dark .pr-sub{color:var(--ink2) !important}

/* ═══════════════════════════════════════════════════════════════
   ۲۱) عناصر inline صفحات پنل (checkout/dashboard) در دارک‌مود
   (یافت‌شده در audit — گزارش نشده بود)
   ═══════════════════════════════════════════════════════════════ */
/* کارت اصلی checkout */
html.dark .co-card{
  background:var(--card) !important;
  border:1px solid var(--line) !important;
  color:var(--ink) !important;
}
html.dark .co-card h1,
html.dark .co-card h2,
html.dark .co-card p{color:var(--ink) !important}
/* باکس پروفایل در داشبورد */
html.dark .pv-box{
  background:var(--card) !important;
  border:1px solid var(--line) !important;
  color:var(--ink) !important;
}
html.dark .pv-box *{color:inherit}

/* ═══════════════════════════════════════════════════════════════
   ۲۲) صیقل نهایی premium — سلسله‌مراتب بصری بهتر در موبایل
   ═══════════════════════════════════════════════════════════════ */
@media(max-width:480px){
  /* فاصله‌ی یکدست بین سکشن‌ها برای حس یکپارچه */
  section{padding-top:44px !important;padding-bottom:44px !important}
  /* تیترهای سکشن خواناتر */
  .sec-h h2{font-size:1.35rem !important;line-height:1.5}
  .sec-h p{font-size:.9rem !important}
  /* جدول مقایسه در موبایل خواناتر */
  .compare-table{font-size:.8rem}
  .compare-table th,.compare-table td{padding:12px 8px}
}

/* ═══════════════════════════════════════════════════════════════
   ۲۳) QA نهایی — موارد یافت‌شده در static review
   ═══════════════════════════════════════════════════════════════ */
/* strat-item: لکه‌ی سفید نیمه‌شفاف در بخش استراتژی نتیجه برنامه */
html.dark .strat-item{
  background:rgba(255,255,255,.04) !important;
  color:var(--ink2) !important;
  border:1px solid var(--line);
}
/* اطمینان از خوانایی همه‌ی متن‌های داخل strat در دارک */
html.dark .strat-item,
html.dark .strat-item *{color:var(--ink2) !important}

/* latest-plan (کارت آخرین برنامه داشبورد) — اطمینان از کنتراست در دارک */
html.dark .latest-plan{
  background:linear-gradient(135deg,#1a1d2b 0%,#15171f 100%) !important;
  border:1.5px solid var(--accent) !important;
}
html.dark .lp-title{color:var(--ink) !important}
html.dark .lp-meta{color:var(--ink2) !important}

/* ═══════════════════════════════════════════════════════════════
   ۲۴) دکمه باز/بسته‌کردن بخش مدارک (مینیمال‌تر شدن رزومه)
   ═══════════════════════════════════════════════════════════════ */
.cert-toggle-wrap{display:flex;justify-content:center;margin:18px 0 0}
.cert-toggle{
  display:inline-flex;align-items:center;gap:10px;cursor:pointer;
  background:linear-gradient(135deg,var(--a-bg) 0%,var(--a-bg2) 100%);
  border:1px solid rgba(91,91,214,.25);
  border-radius:100px;
  padding:13px 26px;
  font-family:inherit;
  font-size:.92rem;
  font-weight:700;
  color:var(--accent);
  box-shadow:0 4px 16px rgba(91,91,214,.12);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.cert-toggle:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(91,91,214,.2);
  border-color:var(--accent);
}
.cert-toggle:active{transform:translateY(0)}
.cert-toggle-icon{font-size:1.1rem;line-height:1}
.cert-toggle-label{line-height:1}
.cert-toggle-arrow{
  width:18px;height:18px;flex-shrink:0;
  transition:transform .3s ease;
}
.cert-toggle.open .cert-toggle-arrow{transform:rotate(180deg)}

/* گرید مدارک: انیمیشن باز/بسته نرم */
.certgrid{
  overflow:hidden;
  transition:max-height .45s cubic-bezier(.4,0,.2,1), opacity .35s ease, margin .35s ease;
  max-height:3000px;
  opacity:1;
  margin-top:20px;
}
.certgrid.certgrid-collapsed{
  max-height:0;
  opacity:0;
  margin-top:0;
}

/* ── دارک‌مود دکمه ── */
html.dark .cert-toggle{
  background:linear-gradient(135deg,#1b1e2b 0%,#15171f 100%);
  border-color:rgba(139,139,240,.3);
  color:var(--accent);
  box-shadow:0 4px 16px rgba(0,0,0,.3);
}
html.dark .cert-toggle:hover{
  border-color:var(--accent);
  box-shadow:0 8px 24px rgba(0,0,0,.45);
}

/* ═══════════════════════════════════════════════════════════════
   ۲۵) چیدمان premium کارت‌های مدارک + هم‌ارتفاعی + دارک کامل
   ═══════════════════════════════════════════════════════════════ */
/* کارت‌ها هم‌ارتفاع شوند (flex column) */
.certgrid{align-items:stretch}
.certcard{
  display:flex;
  flex-direction:column;
  height:100%;
}
.certbody{
  flex:1;
  display:flex;
  flex-direction:column;
}
.cert-d{margin-top:auto;padding-top:6px}
/* عکس داخل کارت همیشه درست fit شود */
.cert-img-wrap img{width:100%;height:100%;object-fit:cover;display:block}
/* hover ظریف premium */
.certcard{transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease}
.certcard:not(.certcard-ph):hover{
  transform:translateY(-3px);
  box-shadow:0 10px 28px rgba(15,17,23,.1);
  border-color:var(--accent);
}
/* کارت placeholder (MBA, law) کمی متفاوت تا واضح باشد عکس ندارد */
.certcard-ph{cursor:default}

/* ── دارک‌مود کامل کارت‌های مدارک ── */
html.dark .certcard{
  background:var(--card) !important;
  border-color:var(--line) !important;
}
html.dark .certcard:not(.certcard-ph):hover{
  border-color:var(--accent) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.5);
}
html.dark .cert-img-wrap{background:#12141c !important}
html.dark .cert-ph{color:var(--ink3) !important}
html.dark .certbody{background:transparent !important}
html.dark .cert-iss{color:var(--accent) !important}
html.dark .cert-t{color:var(--ink) !important}
html.dark .cert-d{color:var(--ink3) !important}

/* ── موبایل: تک‌ستونه و خوانا (از قبل در style.css هست، اینجا صیقل) ── */
@media(max-width:480px){
  .certgrid{gap:14px}
  .cert-toggle{padding:12px 22px;font-size:.88rem}
}

/* ═══════════════════════════════════════════════════════════════
   ۲۶) دکمه «ارتقا پلن» — طلایی/مشکی premium (هر دو مود)
   ═══════════════════════════════════════════════════════════════ */
.btn-upgrade,
.nav .btn-upgrade,
a.btn-upgrade,
.btn.btn-upgrade{
  background:linear-gradient(135deg,#FFD24A 0%,#F5B800 100%) !important;
  color:#1a1400 !important;
  font-weight:800;
  border:none !important;
  border-radius:100px;
  box-shadow:0 4px 14px rgba(245,184,0,.35);
  transition:transform .18s ease, box-shadow .18s ease;
  letter-spacing:-.2px;
}
.btn-upgrade:hover,
.nav .btn-upgrade:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(245,184,0,.5);
  color:#1a1400 !important;
}
.btn-upgrade:active{transform:translateY(0)}
/* دارک‌مود: مشکی با لبه و متن طلایی — با specificity قوی تا هیچ state override نکند */
html.dark .btn-upgrade,
html.dark .nav .btn-upgrade,
html.dark a.btn-upgrade,
html.dark .btn.btn-upgrade{
  background:linear-gradient(135deg,#2a2a2a 0%,#141414 100%) !important;
  color:#FFD24A !important;
  border:1.5px solid #FFD24A !important;
  box-shadow:0 4px 14px rgba(0,0,0,.5);
}
html.dark .btn-upgrade:hover,
html.dark .nav .btn-upgrade:hover{
  background:linear-gradient(135deg,#333 0%,#1a1a1a 100%) !important;
  color:#FFD84A !important;
  box-shadow:0 8px 22px rgba(255,210,74,.25);
}

/* ═══ محدودیت برنامه رایگان (مورد ۳) ═══ */
.freelimit-box{
  max-width:480px;margin:40px auto;text-align:center;
  background:var(--card);border:1px solid var(--line);
  border-radius:20px;padding:36px 28px;
}
.fl-ico{font-size:3rem;margin-bottom:14px}
.freelimit-box h2{font-size:1.3rem;color:var(--ink);margin-bottom:12px}
.freelimit-box p{font-size:.95rem;color:var(--ink2);line-height:1.9;margin-bottom:24px}
html.dark .freelimit-box{background:var(--card);border-color:var(--line)}

/* ═══ کد تخفیف در صفحه pricing (مورد ۴) ═══ */
.discount-box{margin:14px 0}
.discount-input-row{display:flex;gap:8px}
.discount-input{flex:1;text-align:center;font-size:.9rem}
.discount-apply{flex:0 0 auto;padding:0 20px;white-space:nowrap}
.discount-msg{margin-top:8px;font-size:.82rem;line-height:1.6;text-align:center}
.discount-msg.ok{color:#16A34A;font-weight:700}
.discount-msg.err{color:#DC2626;font-weight:600}
html.dark .discount-msg.ok{color:#34d399}
html.dark .discount-msg.err{color:#f87171}

/* پیام محدودیت رایگان در داشبورد */
.dash-freelimit{
  background:var(--a-bg2);border:1px solid var(--line);
  border-radius:12px;padding:14px 18px;margin:0;
  flex:1 1 100%;
}
.dash-freelimit p{margin:0;font-size:.88rem;color:var(--ink2);line-height:1.8}
html.dark .dash-freelimit{background:var(--card);border-color:var(--line)}
html.dark .dash-freelimit p{color:var(--ink2)}

/* ═══════════════════════════════════════════════════════════════
   رفع قطعی سفید ماندن انتهای صفحات در دارک‌مود (رزومه و غیره)
   تضمین: html، body، و کل ارتفاع صفحه در دارک تیره بمانند
   ═══════════════════════════════════════════════════════════════ */
html.dark,
html.dark body{background:#0E1017 !important}
html.dark .page{background:transparent}
/* فوتر ساده‌ی inline انتهای SPA (رزومه و صفحه اصلی) */
html.dark footer{color:var(--ink2);background:#0a0c12 !important;border-top:1px solid rgba(255,255,255,.08)}
html.dark footer .f-logo{color:var(--ink) !important}
html.dark footer .f-logo em{color:var(--accent) !important}
html.dark footer .f-copy{color:var(--ink3) !important}
html.dark footer .f-copy a{color:var(--accent) !important}
/* تضمین: هیچ سکشن انتهای رزومه سفید نماند */
html.dark #pr,
html.dark #p1,
html.dark #p3{background:transparent}
html.dark .rcta{background:#171a24 !important}
html.dark .trust{background:linear-gradient(135deg,#191c28 0%,#14161f 100%) !important}

/* ═══════════════════════════════════════════════════════════════
   جلوگیری قطعی از سرریز افقی در موبایل (مورد ۳)
   ═══════════════════════════════════════════════════════════════ */
@media(max-width:768px){
  html,body{overflow-x:hidden !important;max-width:100% !important}
  .nav,.nav-in,.wrap,.page,section{max-width:100vw;overflow-x:hidden}
  .nav-in{box-sizing:border-box}
  /* فاصله‌ی امن از لبه‌ها */
  .wrap{padding-left:16px !important;padding-right:16px !important}
  /* هیچ عنصری از عرض صفحه بیرون نزند */
  img,table,pre,.certgrid,.compare-table{max-width:100% !important}
}
