/**
 * Dark Mode — آکادمی رویش (ادغام نهایی دور ۵۹)
 * فعال‌سازی با html[data-theme="dark"] (ذخیره در localStorage: rooyesh_theme)
 * بخش ۱: پوشش گستردهٔ کلاس‌های قالب (دور ۵۶-۵۸).
 * بخش ۲: تیترها/گوتنبرگ/اعلان‌های هدر/منوهای دسکتاپ/میز پرداخت (دور ۵۹).
 */

/* ================================================================
   بخش ۱ — پوشش کلاس‌های قالب
   ================================================================ */
/*
 * بند ۴۸ فهرست ۶۴ + گزارش مالک (نسخهٔ ۱.۱۵.۰) — دارک مود کامل قالب آکادمی رویش.
 *
 * بازخورد مالک: «اگه قراره تم دارک بشه همش باید دارک بشه — تیتر آکادمی رویش، عنوان
 * فهرست‌ها، باکس آیکون‌های اعلان/سرچ/پکیج/پروفایل، صفحات حساب کاربری، تنظیمات و
 * همهٔ متن‌ها باید با کنتراست عالی باشند.» این نسخه از شیم محافظه‌کارِ ~۴۰ قاعده‌ای
 * به پوشش کامل ارتقا یافت:
 *
 *  ۱) توکن‌های Design System زیر html[data-theme="dark"]؛
 *  ۲) ابزارک‌های Tailwind پرتکرار قالب (bg-white، bg-slate-50، text-slate-800،
 *     border-slate-200 و …) — پیشوند html[data-theme=dark] اختصاص کافی است؛
 *  ۳) همهٔ اجزای هدر (برند، فهرست، جستجو، تب‌ها، پنل اعلان/پکیج/حساب، شیت موبایل)؛
 *  ۴) پنل حساب کاربری افزونهٔ عضویت (کارت‌ها، پیشخوان، خدمات، تنظیمات، فرم‌ها)؛
 *  ۵) فرم‌ها، جدول‌ها، چاپی‌ها و حالت‌های شناور.
 *
 * اصول: بدون !important (تنها استثنا: آیکون دکمهٔ تغییر حالت)؛ پیشخوان وردپرس
 * (wp-admin) عمداً دست‌نخورده می‌ماند.
 */

/* توکن‌های تاریک — بازنویسی بند ۴۷ */
html[data-theme="dark"] {
        color-scheme: dark;
        --arx-surface: #0b1220;
        --arx-surface-2: #111a2c;
        --arx-surface-border: #1f2b40;
        --arx-on-surface: #e2e8f0;
        --arx-on-surface-muted: #94a3b8;
        --arx-success: #34d399;
        --arx-success-soft: rgba(52, 211, 153, 0.14);
        --arx-warning: #fbbf24;
        --arx-warning-soft: rgba(251, 191, 36, 0.14);
        --arx-danger: #f87171;
        --arx-danger-soft: rgba(248, 113, 113, 0.14);
        --arx-info: #38bdf8;
        --arx-info-soft: rgba(56, 189, 248, 0.14);
        --arx-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.40), 0 1px 3px rgba(0, 0, 0, 0.30);
        --arx-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.30);
        --arx-shadow-3: 0 16px 40px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.40);
}

/* ============ ۱) پایه ============ */
html[data-theme="dark"] body {
        background-color: #0b1220;
        color: #e2e8f0;
}
html[data-theme="dark"] ::selection { background: rgba(16, 185, 129, 0.35); }

/* ============ ۲) ابزارک‌های Tailwind پرتکرار ============ */
html[data-theme="dark"] .bg-white { background-color: #111a2c; }
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-slate-50\/80,
html[data-theme="dark"] .bg-slate-50\/70,
html[data-theme="dark"] .bg-slate-50\/60 { background-color: rgba(17, 26, 44, 0.9); }
html[data-theme="dark"] .bg-slate-100 { background-color: #16203a; }
html[data-theme="dark"] .bg-slate-200 { background-color: #1f2b40; }
html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-gray-100 { background-color: #16203a; }

/* متن‌های خاکستری — سطح‌بندی جدید برای کنتراست عالی روی سطح تیره */
html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-slate-800 { color: #f1f5f9; }
html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-slate-600 { color: #cbd5e1; }
html[data-theme="dark"] .text-slate-500 { color: #94a3b8; }
html[data-theme="dark"] .text-slate-400,
html[data-theme="dark"] .text-slate-300 { color: #9fb0c7; }
html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-gray-700 { color: #e2e8f0; }
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-gray-500 { color: #94a3b8; }
html[data-theme="dark"] .text-black { color: #f8fafc; }

/* رنگ‌های برند/پیام — نسخهٔ روشن‌تر برای پس‌زمینهٔ تیره */
html[data-theme="dark"] .text-emerald-600,
html[data-theme="dark"] .text-emerald-700,
html[data-theme="dark"] .text-rooyesh-600,
html[data-theme="dark"] .text-rooyesh-700 { color: #34d399; }
html[data-theme="dark"] .text-teal-600,
html[data-theme="dark"] .text-teal-700 { color: #2dd4bf; }
html[data-theme="dark"] .text-sky-600,
html[data-theme="dark"] .text-sky-700 { color: #38bdf8; }
html[data-theme="dark"] .text-rose-500,
html[data-theme="dark"] .text-rose-600 { color: #fb7185; }
html[data-theme="dark"] .text-red-500,
html[data-theme="dark"] .text-red-600 { color: #f87171; }
html[data-theme="dark"] .text-amber-600,
html[data-theme="dark"] .text-amber-700,
html[data-theme="dark"] .text-amber-800 { color: #fcd34d; }
html[data-theme="dark"] .text-indigo-700 { color: #a5b4fc; }

/* بوردرها */
html[data-theme="dark"] .border-slate-50,
html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-slate-100\/60,
html[data-theme="dark"] .border-slate-100\/80 { border-color: #1f2b40; }
html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-200\/60,
html[data-theme="dark"] .border-slate-200\/70,
html[data-theme="dark"] .border-slate-200\/80,
html[data-theme="dark"] .border-slate-200\/90 { border-color: #273652; }
html[data-theme="dark"] .border-slate-300 { border-color: #324264; }
html[data-theme="dark"] .border-gray-200,
html[data-theme="dark"] .border-gray-300 { border-color: #273652; }
html[data-theme="dark"] .border-emerald-200,
html[data-theme="dark"] .border-emerald-100 { border-color: rgba(52, 211, 153, 0.28); }
html[data-theme="dark"] .border-teal-200,
html[data-theme="dark"] .border-teal-100 { border-color: rgba(45, 212, 191, 0.28); }
html[data-theme="dark"] .border-amber-200,
html[data-theme="dark"] .border-amber-100,
html[data-theme="dark"] .border-amber-300 { border-color: rgba(251, 191, 36, 0.30); }
html[data-theme="dark"] .border-sky-200 { border-color: rgba(56, 189, 248, 0.30); }
html[data-theme="dark"] .border-indigo-200 { border-color: rgba(165, 180, 252, 0.28); }

/* پس‌زمینه‌های ملایم رنگی → تینت تیره */
html[data-theme="dark"] .bg-emerald-50,
html[data-theme="dark"] .bg-emerald-100 { background-color: rgba(16, 185, 129, 0.12); }
html[data-theme="dark"] .bg-teal-50 { background-color: rgba(45, 212, 191, 0.12); }
html[data-theme="dark"] .bg-sky-50 { background-color: rgba(56, 189, 248, 0.12); }
html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-amber-100 { background-color: rgba(251, 191, 36, 0.12); }
html[data-theme="dark"] .bg-rose-50 { background-color: rgba(244, 63, 94, 0.12); }
html[data-theme="dark"] .bg-indigo-50 { background-color: rgba(99, 102, 241, 0.14); }
html[data-theme="dark"] .bg-red-50 { background-color: rgba(239, 68, 68, 0.12); }
html[data-theme="dark"] .bg-emerald-50\/70 { background-color: rgba(16, 185, 129, 0.10); }
html[data-theme="dark"] .bg-sky-50\/70 { background-color: rgba(56, 189, 248, 0.10); }

/* گرادیان‌های روشن پس‌زمینهٔ کارت‌ها (هدر پنل‌ها) */
html[data-theme="dark"] .bg-gradient-to-l.from-white,
html[data-theme="dark"] .bg-gradient-to-b.from-white,
html[data-theme="dark"] [style*="linear-gradient"][style*="#ffffff"] { background-image: none; background-color: #111a2c; }

/* بخش‌های تیرهٔ اصلی (هیرو bg-slate-900 و متن‌های سفید) دست نمی‌خورند — فقط سطح‌بندی ملایم: */
html[data-theme="dark"] .bg-slate-900 { background-color: #0d1526; }
html[data-theme="dark"] .bg-slate-800 { background-color: #111a2c; }

/* ============ ۳) هدر — نوبار و برند «آکادمی رویش» ============ */
html[data-theme="dark"] .academy-navbar {
        background-color: rgba(17, 26, 44, 0.92);
        border-color: #1f2b40;
}
html[data-theme="dark"] .amm-brand__name,
html[data-theme="dark"] .amm-bottom__name,
html[data-theme="dark"] .amm-sheet__name { color: #f1f5f9; }
html[data-theme="dark"] .amm-brand__desc { color: #fbbf24; }
html[data-theme="dark"] .amm-bottom__grade,
html[data-theme="dark"] .amm-sheet__grade { color: #34d399; }

/* آیکون‌باکس‌های هدر (اعلان، سرچ، پکیج‌های فعال، پروفایل) — قبلاً سفید می‌ماندند */
html[data-theme="dark"] .amm-iconbtn {
        background: #16203a;
        border-color: #273652;
        color: #cbd5e1;
}
html[data-theme="dark"] .amm-iconbtn:hover,
html[data-theme="dark"] .amm-iconbtn:focus-visible {
        background: rgba(16, 185, 129, 0.16);
        color: #34d399;
        border-color: rgba(52, 211, 153, 0.4);
}

/* پنل کشویی منو/حساب */
html[data-theme="dark"] .amm-panel,
html[data-theme="dark"] .amm-sheet__card,
html[data-theme="dark"] .amm-pkgsheet { background-color: #111a2c; }
html[data-theme="dark"] .amm-sheet__backdrop,
html[data-theme="dark"] .amm-overlay { background: rgba(2, 6, 23, 0.60); }
html[data-theme="dark"] .amm-sheet__grip { background: #273652; }
html[data-theme="dark"] .amm-sheet__head,
html[data-theme="dark"] .amm-sheet__cancel { border-color: #1f2b40; }
html[data-theme="dark"] .amm-sheet__cancel { background: #16203a; color: #cbd5e1; }
html[data-theme="dark"] .amm-sheet__link { color: #e2e8f0; }
html[data-theme="dark"] .amm-sheet__link:hover,
html[data-theme="dark"] .amm-sheet__link:focus-visible { background: #16203a; }
html[data-theme="dark"] .amm-sheet__link > i,
html[data-theme="dark"] .amm-account__item > i { background: rgba(16, 185, 129, 0.15); color: #34d399; }
html[data-theme="dark"] .amm-sheet__link--danger { color: #f87171; }
html[data-theme="dark"] .amm-sheet__link--danger > i { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* جستجو */
html[data-theme="dark"] .amm-search__input {
        background: #0b1220;
        border-color: #273652;
        color: #e2e8f0;
}
html[data-theme="dark"] .amm-search__input::placeholder { color: #64748b; }
html[data-theme="dark"] .amm-search__btn { color: #94a3b8; }

/* تب‌ها */
html[data-theme="dark"] .amm-tabs { background: #0b1220; }
html[data-theme="dark"] .amm-tab { color: #94a3b8; }
html[data-theme="dark"] .amm-tab.is-active {
        background: #16203a;
        color: #34d399;
        box-shadow: none;
}

/* فهرست منو و آیتم‌های حساب — رفع کمرنگی در دارک‌مود: کنتراست کامل لینک‌های
 * منوی موبایل و زیرمنوها + hover زمردی روشن */
html[data-theme="dark"] .amm-menu a,
html[data-theme="dark"] .amm-menu a span,
html[data-theme="dark"] .amm-menu a i,
html[data-theme="dark"] .amm-account__item,
html[data-theme="dark"] .amm-account__item span,
html[data-theme="dark"] .amm-sheet__link {
        color: #f1f5f9 !important;
        opacity: 1 !important;
}
html[data-theme="dark"] .amm-menu a:hover,
html[data-theme="dark"] .amm-menu a:focus-visible,
html[data-theme="dark"] .amm-menu a:hover span,
html[data-theme="dark"] .amm-account__item:hover,
html[data-theme="dark"] .amm-account__item:focus-visible,
html[data-theme="dark"] .amm-account__item:hover span,
html[data-theme="dark"] .amm-sheet__link:hover,
html[data-theme="dark"] .amm-sheet__link:focus-visible {
        color: #34d399 !important;
        opacity: 1 !important;
}
/* استثنا: لینک‌های خطرناک (خروج) قرمز می‌مانند */
html[data-theme="dark"] .amm-sheet__link--danger,
html[data-theme="dark"] .amm-sheet__link--danger:hover,
html[data-theme="dark"] .amm-sheet__link--danger:focus-visible,
html[data-theme="dark"] .amm-sheet__link--danger span {
        color: #f87171 !important;
        opacity: 1 !important;
}
html[data-theme="dark"] .amm-account__item:hover,
html[data-theme="dark"] .amm-account__item:focus-visible { background: #16203a; }
html[data-theme="dark"] .amm-account__notif { border-color: #1f2b40; }
html[data-theme="dark"] .amm-account__chev { color: #64748b; }

/* پنل اعلان‌ها */
html[data-theme="dark"] .amm-notifpanel { background: #0b1220; border-color: #1f2b40; }
html[data-theme="dark"] .amm-notifpanel__head { background: #16203a; border-color: #1f2b40; }
html[data-theme="dark"] .amm-notifpanel__t { color: #e2e8f0; }
html[data-theme="dark"] .amm-pill--amber { background: rgba(251, 191, 36, 0.15); color: #fcd34d; border-color: rgba(251, 191, 36, 0.3); }
html[data-theme="dark"] .amm-pill--green { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(52, 211, 153, 0.3); }

/* نوار پایین موبایل */
html[data-theme="dark"] .amm-bottom {
        background: rgba(17, 26, 44, 0.97);
        border-top-color: #1f2b40;
}

/* پکیج‌شیت */
html[data-theme="dark"] .amm-pkgsheet__head { background: #16203a; border-color: #1f2b40; }
html[data-theme="dark"] .amm-pkgsheet__t { color: #f1f5f9; }
html[data-theme="dark"] .amm-pkgsheet__empty { color: #94a3b8; }
html[data-theme="dark"] .amm-pkgsheet__item { background: #16203a; border-color: #273652; color: #e2e8f0; }
html[data-theme="dark"] .amm-pkgsheet__item:hover,
html[data-theme="dark"] .amm-pkgsheet__item:focus-visible { background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.4); }
html[data-theme="dark"] .amm-pkgsheet__go { color: #64748b; }

/* مهمان */
html[data-theme="dark"] .amm-guest__btn { background: #16203a; border-color: #273652; color: #e2e8f0; }
html[data-theme="dark"] .amm-guest__btn:hover { background: rgba(16, 185, 129, 0.12); color: #34d399; }

/* ============ ۴) فوتر و کارت‌های عمومی ============ */
html[data-theme="dark"] footer {
        background-color: #0b1220;
        color: #94a3b8;
}
html[data-theme="dark"] footer h1,
html[data-theme="dark"] footer h2,
html[data-theme="dark"] footer h3,
html[data-theme="dark"] footer h4 {
        color: #e2e8f0;
}
html[data-theme="dark"] .acme-card {
        background-color: #111a2c;
        border-color: #1f2b40;
        color: #e2e8f0;
}

/* ============ ۵) حساب کاربری ووکامرس + پنل عضویت ============ */
html[data-theme="dark"] .woocommerce-MyAccount-content {
        color: #e2e8f0;
}
html[data-theme="dark"] .woocommerce-MyAccount-navigation li a { color: #cbd5e1; }
html[data-theme="dark"] .woocommerce-MyAccount-navigation li.is-active a,
html[data-theme="dark"] .woocommerce-MyAccount-navigation li a:hover { color: #34d399; }

html[data-theme="dark"] .woocommerce-account .acme-card { background-color: #111a2c; border-color: #1f2b40; }
html[data-theme="dark"] .woocommerce-account .acme-header-card { background: #111a2c; border-color: #1f2b40; }
html[data-theme="dark"] .woocommerce-account .acme-title { color: #f1f5f9; }
html[data-theme="dark"] .woocommerce-account .acme-subtitle { color: #94a3b8; }

/* کارت‌های خدمت/پیشخوان پنل عضویت — باکس‌های آیکون قبلاً سفید و کم‌رنگ می‌ماندند */
html[data-theme="dark"] .woocommerce-account .acme-service-card,
html[data-theme="dark"] .woocommerce-account .acme-quick-card,
html[data-theme="dark"] .woocommerce-account .acme-dashboard-card,
html[data-theme="dark"] .woocommerce-account .acme-stat-card { background-color: #111a2c; border-color: #1f2b40; }
html[data-theme="dark"] .woocommerce-account .acme-icon-box,
html[data-theme="dark"] .woocommerce-account .acme-service-icon,
html[data-theme="dark"] .woocommerce-account .acme-quick-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }
html[data-theme="dark"] .woocommerce-account .acme-section-title,
html[data-theme="dark"] .woocommerce-account .acme-card-title { color: #f1f5f9; }
html[data-theme="dark"] .woocommerce-account .acme-muted { color: #94a3b8; }

/* تیتر «مشاوره و برنامه‌ریزی» و همهٔ h های داخل پنل */
html[data-theme="dark"] .woocommerce-account .acme-consulting-wrapper h1,
html[data-theme="dark"] .woocommerce-account .acme-consulting-wrapper h2,
html[data-theme="dark"] .woocommerce-account .acme-consulting-wrapper h3,
html[data-theme="dark"] .woocommerce-account .acme-consulting-wrapper h4,
html[data-theme="dark"] .woocommerce-account .acme-consulting-wrapper h5 { color: #f1f5f9; }
/* «بخش پروفایل و تنظیمات» — باکس مشکی زیر متن حذف و سطح تیرهٔ یکدست: */
html[data-theme="dark"] .woocommerce-account .acme-profile-header,
html[data-theme="dark"] .woocommerce-account .acme-settings-card,
html[data-theme="dark"] .woocommerce-account .acme-form-card { background-color: #111a2c; border-color: #1f2b40; color: #e2e8f0; }

/* برچسب‌ها/ورودی‌های فرم همهٔ پنل‌ها */
html[data-theme="dark"] .woocommerce-account label,
html[data-theme="dark"] .woocommerce-account .acme-label { color: #cbd5e1; }
html[data-theme="dark"] .woocommerce-account input[type="text"],
html[data-theme="dark"] .woocommerce-account input[type="email"],
html[data-theme="dark"] .woocommerce-account input[type="tel"],
html[data-theme="dark"] .woocommerce-account input[type="password"],
html[data-theme="dark"] .woocommerce-account input[type="number"],
html[data-theme="dark"] .woocommerce-account input[type="search"],
html[data-theme="dark"] .woocommerce-account input[type="date"],
html[data-theme="dark"] .woocommerce-account input[type="url"],
html[data-theme="dark"] .woocommerce-account select,
html[data-theme="dark"] .woocommerce-account textarea {
        background-color: #0b1220;
        border-color: #273652;
        color: #e2e8f0;
}
html[data-theme="dark"] .woocommerce-account input::placeholder,
html[data-theme="dark"] .woocommerce-account textarea::placeholder { color: #64748b; }
html[data-theme="dark"] .woocommerce-account input:focus,
html[data-theme="dark"] .woocommerce-account select:focus,
html[data-theme="dark"] .woocommerce-account textarea:focus {
        border-color: #34d399;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

/* ============ ۶) جدول‌ها ============ */
html[data-theme="dark"] table { color: #e2e8f0; }
html[data-theme="dark"] table th { color: #f1f5f9; border-color: #273652; }
html[data-theme="dark"] table td { border-color: #1f2b40; }
html[data-theme="dark"] table tbody tr:nth-child(even) { background-color: rgba(17, 26, 44, 0.6); }
html[data-theme="dark"] .acme-table-responsive,
html[data-theme="dark"] .acme-table { background-color: transparent; }
html[data-theme="dark"] .acme-table thead { background: #16203a; }
html[data-theme="dark"] .acme-dailylog-table th { background: #16203a; }
html[data-theme="dark"] .acme-dailylog-field input[type="number"],
html[data-theme="dark"] .acme-dailylog-field textarea,
html[data-theme="dark"] .arc-dailylog-field input,
html[data-theme="dark"] .arc-dailylog-field textarea,
html[data-theme="dark"] .arc-dailylog-field select {
        background: #0b1220; border-color: #273652; color: #e2e8f0;
}
html[data-theme="dark"] .arc-game-hud { background: linear-gradient(135deg, rgba(16, 185, 129, 0.10), rgba(56, 189, 248, 0.08)); border-color: rgba(52, 211, 153, 0.3); }
html[data-theme="dark"] .arc-game-hud__title { color: #6ee7b7; }
html[data-theme="dark"] .arc-game-hud__sub,
html[data-theme="dark"] .arc-game-hud__streaklabel { color: #34d399; }
html[data-theme="dark"] .arc-game-hud__barwrap { background: rgba(16, 185, 129, 0.18); }
html[data-theme="dark"] .arc-game-hud__badge { background: #16203a; border-color: #273652; color: #cbd5e1; }
html[data-theme="dark"] .acme-prog-mobile-item.acme-prog-row-done { background: rgba(16, 185, 129, 0.10); border-color: rgba(52, 211, 153, 0.35); }
html[data-theme="dark"] tr.acme-prog-row-done > td { background: rgba(16, 185, 129, 0.10); }

/* ============ ۷) فرم‌های عمومی فرانت (خارج حساب) ============ */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
        background-color: #0b1220;
        border-color: #273652;
        color: #e2e8f0;
}
html[data-theme="dark"] .wp-block-search__input { background-color: #0b1220; color: #e2e8f0; border-color: #273652; }

/* لینک‌های بدون کلاس رنگی، رنگ برند ملایم می‌گیرند؛ لینک‌های کلاس‌دار دست نمی‌خورند. */
html[data-theme="dark"] footer a:not([class]) { color: #94a3b8; }

/* ============ ۸) سیستم طراحی افزونهٔ مشاوره (پیشخوان مشاور/پنل دانش‌آموز) ============
 * consulting-design-system.css متغیرهای --arc-* را روی :root تعریف می‌کند؛
 * بازنویسی با انتخابگر قوی‌تر (html[data-theme][data-theme]) مستقل از ترتیب لود.
 * مقیاس slate معکوس می‌شود چون در افزونه فقط برای «متن» مصرف می‌شود (بررسی شد). */
html[data-theme="dark"][data-theme] {
        --arc-bg-body: #0b1220;
        --arc-bg-surface: #111a2c;
        --arc-border: #273652;
        --arc-slate-50: #16203a;
        --arc-slate-100: #1f2b40;
        --arc-slate-200: #273652;
        --arc-slate-300: #324264;
        --arc-slate-400: #9fb0c7;
        --arc-slate-500: #94a3b8;
        --arc-slate-600: #cbd5e1;
        --arc-slate-700: #e2e8f0;
        --arc-slate-800: #f1f5f9;
        --arc-slate-900: #f8fafc;
        --arc-ok-bg: rgba(16, 185, 129, 0.12);
        --arc-ok-border: rgba(52, 211, 153, 0.30);
        --arc-warn-bg: rgba(251, 191, 36, 0.12);
        --arc-warn-border: rgba(251, 191, 36, 0.30);
        --arc-err-bg: rgba(239, 68, 68, 0.12);
        --arc-err-border: rgba(248, 113, 113, 0.30);
        /* پالت برند رویش — v1.24.0 (ممیزی کنتراست دارک، گزارش مالک): سطوح ۵۰/۱۰۰/۲۰۰ و
         * ۶۰۰/۷۰۰ به مقادیر اصلی برگردانده شدند. قبلاً توکن ۶۰۰ به سبزِ روشنِ #34d399
         * بازنویسی می‌شد و چون CSS کامپایل‌شدهٔ Tailwind برای bg-rooyesh-600 از همین
         * متغیر می‌خواند، «پس‌زمینهٔ» بخش‌ها (دفترچهٔ طلایی، دکمهٔ جستجوی آرشیو اخبار، …)
         * در دارک سبزِ روشن می‌شد و متن سفیدشان (ratio ≈ ۱.۸) ناخوانا می‌شد. سطوح روشن
         * (۵۰/۱۰۰/۲۰۰) برای متنِ داخل بخش‌های سبزِ عمیق لازم‌اند (مثل text-rooyesh-100)؛
         * تینت‌های پس‌زمینه با قواعد utility همین فایل به تیره نگاشت می‌شوند و ۳۰۰/۴۰۰
         * (فقط متن/بوردر) روشن می‌مانند. */
        --tw-rooyesh-50: #ecfdf5;
        --tw-rooyesh-100: #d1fae5;
        --tw-rooyesh-200: #a7f3d0;
        --tw-rooyesh-300: #6ee7b7;
        --tw-rooyesh-400: #34d399;
        --tw-rooyesh-600: #059669;
        --tw-rooyesh-700: #047857;
        --tw-gold-100: #fef3c7;
        --tw-gold-300: #fcd34d;
}
html[data-theme="dark"] .acme-cp-page,
html[data-theme="dark"] .acme-cp-app { background: transparent; color: #e2e8f0; }
html[data-theme="dark"] .acme-cp-page-head h1 { color: #f1f5f9; }
html[data-theme="dark"] .acme-cp-card { box-shadow: none; }
html[data-theme="dark"] .acme-cp-table { color: #e2e8f0; }
html[data-theme="dark"] .acme-cp-empty,
html[data-theme="dark"] .acme-cp-hint { color: #94a3b8; }
html[data-theme="dark"] .acme-cp-kv span { color: #94a3b8; }
html[data-theme="dark"] .acme-cp-kv b { color: #e2e8f0; }

/* شیم‌های اجزای جدید مشاوره (تریاژ/قالب/ویس/گزارش شبانه) در تاریک */
html[data-theme="dark"] .acme-cp-triage-chip { background: #16203a; border-color: #273652; color: #cbd5e1; }
html[data-theme="dark"] .acme-cp-tpl-list li { background: #0b1220; border-color: #1f2b40; }
html[data-theme="dark"] .acme-cp-tpl-name { color: #f1f5f9; }
html[data-theme="dark"] .acme-att-audio { background: #0b1220; border-color: #1f2b40; }
html[data-theme="dark"] .arc-dailylog-table { color: #e2e8f0; }
html[data-theme="dark"] .arc-reaction-chip { background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.3); color: #6ee7b7; }
html[data-theme="dark"] .acme-cp-notice-ok { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
html[data-theme="dark"] .acme-cp-notice-warn { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
html[data-theme="dark"] .acme-cp-notice-err { background: rgba(239, 68, 68, 0.12); color: #f87171; }
html[data-theme="dark"] .arc-toast { background: #16203a; color: #e2e8f0; border-color: #273652; }

/* اسکرول‌بار هم‌تم */
html[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: #0b1220; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #273652; border-radius: 999px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #324264; }

/* --- دکمهٔ تغییر حالت روشن/تاریک (wp_body_open → بند ۴۸) --- */
.arx-dark-toggle {
        position: fixed;
        bottom: 16px;
        inset-inline-start: 16px;
        z-index: 80;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #e2e8f0;
        border-radius: var(--arx-radius-pill, 999px);
        background: #ffffff;
        color: #0f172a;
        box-shadow: var(--arx-shadow-2, 0 4px 12px rgba(15, 23, 42, 0.10));
        cursor: pointer;
        transition: background var(--arx-transition, 180ms ease), color var(--arx-transition, 180ms ease), border-color var(--arx-transition, 180ms ease);
}
.arx-dark-toggle:hover {
        background: #f8fafc;
}
.arx-dark-toggle:focus-visible {
        outline: 2px solid #059669;
        outline-offset: 2px;
}
html[data-theme="dark"] .arx-dark-toggle {
        background: #111a2c;
        border-color: #1f2b40;
        color: #e2e8f0;
}
/* در حالت روشن «ماه» (اقدام: رفتن به تاریک)، در حالت تاریک «خورشید». */
.arx-dark-toggle__icon--sun {
        display: none;
}
html[data-theme="dark"] .arx-dark-toggle__icon--sun {
        display: block;
}
html[data-theme="dark"] .arx-dark-toggle__icon--moon {
        display: none !important; /* استثنای موجه: همیشه دقیقاً یکی از دو آیکون دیده شود. */
}

/* امنیت حرکت: تغییر حالت بدون انیمیشن اضافه */
@media (prefers-reduced-motion: reduce) {
        .arx-dark-toggle {
                transition: none;
        }
}

/* بند ۵: در تبلت/موبایل (زیر ۱۰۲۴px) دکمهٔ شناور حذف و جای آن
 * دکمهٔ جمع‌وجور داخل هدر/کشوی منوی موبایل (.arx-dark-toggle-trigger) است. */
@media (max-width: 1023px) {
        #arx-dark-toggle {
                display: none !important;
        }
}

/* آیکون ماه/خورشید دکمه‌های تریگر موبایل — هم‌منطق با دکمهٔ شناور:
 * حالت روشن «ماه» (اقدام: رفتن به تاریک)، حالت تاریک «خورشید». */
.arx-dark-toggle-trigger .arx-dark-toggle__icon--sun { display: none; }
html[data-theme="dark"] .arx-dark-toggle-trigger .arx-dark-toggle__icon--sun { display: block; }
html[data-theme="dark"] .arx-dark-toggle-trigger .arx-dark-toggle__icon--moon { display: none !important; }
html[data-theme="dark"] .arx-dark-toggle-trigger { color: #e2e8f0; border-color: #1f2b40; background: #111a2c; }
html[data-theme="dark"] .arx-dark-toggle-trigger.amm-iconbtn { color: #e2e8f0; }


/* ================================================================
   بخش ۲ — تیترها، گوتنبرگ، اعلان‌های هدر، منوها (دور ۵۹)
   ================================================================ */

/**
 * Dark Mode — آکادمی رویش
 * فعال‌سازی با html[data-theme="dark"] (ذخیره در localStorage: rooyesh_theme)
 * همهٔ قواعد فقط در حالت تاریک اعمال می‌شوند و در حالت روشن هیچ اثری ندارند.
 */


/* تضمین رنگ تیترها در برابر !importantهای قالب روشن */
html[data-theme="dark"] .page .page-title,
html[data-theme="dark"] .single .article-title,
html[data-theme="dark"] .single .article-title > a,
html[data-theme="dark"] .archive-page .archive-title,
html[data-theme="dark"] .entry-content h1,
html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3,
html[data-theme="dark"] .entry-content h4 {
    color: #f8fafc !important;
}
html[data-theme="dark"] .entry-content h2 { border-bottom-color: #1f2b40; }
html[data-theme="dark"] .entry-content ul > li::before,
html[data-theme="dark"] .wp-block-post-content ul > li::before { background: #111a2c; }
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .entry-content p,
html[data-theme="dark"] .wp-block-post-content { color: #cbd5e1; }
html[data-theme="dark"] .entry-content a,
html[data-theme="dark"] .wp-block-post-content a { color: #34d399; }
html[data-theme="dark"] .entry-content blockquote,
html[data-theme="dark"] .wp-block-quote {
    background-color: #111a2c; border-color: #1f2b40; color: #e2e8f0;
}
html[data-theme="dark"] .entry-content figure { background-color: transparent; }
html[data-theme="dark"] .entry-content table,
html[data-theme="dark"] .wp-block-table { color: #e2e8f0; }
html[data-theme="dark"] .entry-content table th,
html[data-theme="dark"] .entry-content table td,
html[data-theme="dark"] .wp-block-table table,
html[data-theme="dark"] .wp-block-table th,
html[data-theme="dark"] .wp-block-table td { border-color: #1f2b40; }
html[data-theme="dark"] .wp-block-group.has-background { background-color: #111a2c !important; }

/* کارت‌ها و باکس‌های سفید نیمه‌شفاف تیلویند در برگه‌ها (درباره ما، مقالات، آرشیو، ووکامرس) */
html[data-theme="dark"] .bg-white\/95,
html[data-theme="dark"] .bg-white\/90,
html[data-theme="dark"] .bg-white\/85,
html[data-theme="dark"] .bg-white\/80,
html[data-theme="dark"] .bg-white\/75,
html[data-theme="dark"] .bg-white\/70 {
    background-color: rgba(17, 26, 44, 0.94);
}
html[data-theme="dark"] .bg-mesh-light {
    background-color: #0b1220;
    background-image:
        radial-gradient(at 15% 15%, rgba(16, 185, 129, 0.12) 0, transparent 50%),
        radial-gradient(at 85% 85%, rgba(245, 158, 11, 0.08) 0, transparent 50%);
}
html[data-theme="dark"] .border-white { border-color: #1f2b40; }
html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-slate-200 { border-color: #1f2b40; }
html[data-theme="dark"] .ring-slate-100,
html[data-theme="dark"] .ring-slate-200 { --tw-ring-color: #1f2b40; }
html[data-theme="dark"] .hover\:bg-slate-50:hover { background-color: #16203a; }
html[data-theme="dark"] .hover\:bg-rooyesh-50:hover { background-color: rgba(16, 185, 129, 0.12); }

/* جعبه‌های آیکون رنگی بخش‌ها */
html[data-theme="dark"] .bg-rooyesh-50,
html[data-theme="dark"] .bg-blue-50,
html[data-theme="dark"] .bg-purple-50,
html[data-theme="dark"] .bg-orange-50,
html[data-theme="dark"] .bg-gold-50 { background-color: rgba(16, 185, 129, 0.12); }
html[data-theme="dark"] .bg-rooyesh-100 { background-color: rgba(16, 185, 129, 0.2); }

/* هدر: دکمه‌های آیکونی و جستجو/پکیج‌ها/پروفایل */
html[data-theme="dark"] #searchToggleBtn,
html[data-theme="dark"] #academyHeaderPackagesBtn,
html[data-theme="dark"] #academyMobilePackagesBtn,
html[data-theme="dark"] #mobileMenuBtn,
html[data-theme="dark"] #academyHeaderAccountBtn {
    background-color: #16203a;
    border-color: #273652;
    color: #cbd5e1;
}
html[data-theme="dark"] #searchToggleBtn:hover,
html[data-theme="dark"] #searchToggleBtn:focus,
html[data-theme="dark"] #academyHeaderPackagesBtn:hover,
html[data-theme="dark"] #academyHeaderAccountBtn:hover {
    background-color: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.4);
}
/* v1.23.0 (بند ۱ مالک): قواعد #darkModeToggle حذف شد — دکمهٔ هدر برداشته شد. */
html[data-theme="dark"] #searchDropdown,
html[data-theme="dark"] #academyHeaderPackagesMenu,
html[data-theme="dark"] #academyHeaderAccountMenu {
    background-color: #111a2c;
    border-color: #273652;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] #academyHeaderPackagesMenu a,
html[data-theme="dark"] #academyHeaderAccountMenu a { color: #e2e8f0; }
html[data-theme="dark"] #academyHeaderPackagesMenu a:hover,
html[data-theme="dark"] #academyHeaderAccountMenu a:hover { background-color: #16203a; color: #34d399; }
html[data-theme="dark"] #searchDropdown input[type="search"],
html[data-theme="dark"] #searchDropdown input[type="text"] {
    background-color: #0b1220; border-color: #273652; color: #f1f5f9;
}

/* زیرمنوهای منوی دسکتاپ */
html[data-theme="dark"] .academy-desktop-menu ul.sub-menu {
    background-color: #111a2c;
    border-color: #273652;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .academy-desktop-menu ul.sub-menu a { color: #e2e8f0; }
html[data-theme="dark"] .academy-desktop-menu ul.sub-menu a:hover { background-color: #16203a; color: #34d399; }

/* مرکز اعلان‌های هدر (کلاس‌های acme-notif-* افزونه عضویت) */
html[data-theme="dark"] .acme-notif-bell-btn {
    background-color: #16203a;
    border-color: #273652;
    color: #cbd5e1;
}
html[data-theme="dark"] .acme-notif-bell-btn:hover,
html[data-theme="dark"] .acme-notif-bell-btn:focus {
    background-color: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.4);
}
html[data-theme="dark"] .acme-notif-badge { border-color: #111a2c; }
html[data-theme="dark"] .acme-notif-dropdown {
    background-color: #111a2c;
    border-color: #273652;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .acme-notif-header,
html[data-theme="dark"] .acme-notif-footer { background-color: #16203a; border-color: #1f2b40; }
html[data-theme="dark"] .acme-notif-title,
html[data-theme="dark"] .acme-notif-item-title { color: #f1f5f9; }
html[data-theme="dark"] .acme-notif-item { border-bottom-color: #1f2b40; color: #e2e8f0; }
html[data-theme="dark"] .acme-notif-item:hover { background-color: #16203a; }
html[data-theme="dark"] .acme-notif-item.unread {
    background-color: rgba(16, 185, 129, 0.12);
    border-right-color: #10b981;
}
html[data-theme="dark"] .acme-notif-icon { background-color: #1f2b40; color: #34d399; }
html[data-theme="dark"] .acme-notif-item-msg { color: #cbd5e1; }
html[data-theme="dark"] .acme-notif-item-meta,
html[data-theme="dark"] .acme-notif-empty,
html[data-theme="dark"] .acme-notif-loading { color: #94a3b8; }
html[data-theme="dark"] .acme-notif-mark-all-btn,
html[data-theme="dark"] .acme-notif-type-tag,
html[data-theme="dark"] .acme-notif-footer a { color: #34d399; }
html[data-theme="dark"] .acme-notif-mark-all-btn:hover {
    background-color: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}
/* v1.23.0 (بند ۱ مالک): بلوک استایل دکمهٔ هدر #darkModeToggle حذف شد —
 * دکمهٔ شناور (#arx-dark-toggle) تنها کنترل دارک‌مود است. */

/* ================================================================
   بخش ۳ — ممیزی کنتراست دارک (v1.24.0، گزارش مالک: «بعضی متن‌ها ناخوانا می‌شوند»)
   ممیزی واقعی با مرورگر headless روی خانه/اخبار/تک‌مقاله/چک‌اوت/حساب انجام شد و
   پنج گروه تخلف واقعی یافت و اینجا بسته شد. سطوح رنگی مطابق WCAG روی سطح‌های
   تیرهٔ تم (#0b1220/#111a2c/#1f2b40) انتخاب شده‌اند.
   ================================================================ */

/* ۳-۱) سطح‌های متنِ گم‌شده — سبزهای تیرهٔ ۸۰۰/۹۰۰ روی سطح تیره (ratio ≈ ۲) و
   آبی‌های ۵۰۰/۶۰۰ (ratio ≈ ۳) و slate-950 (تقریباً سیاه روی تیره) خوانا می‌شوند. */
html[data-theme="dark"] .text-rooyesh-400,
html[data-theme="dark"] .text-rooyesh-500,
html[data-theme="dark"] .text-emerald-500 { color: #34d399; }
html[data-theme="dark"] .text-rooyesh-800,
html[data-theme="dark"] .text-rooyesh-900,
html[data-theme="dark"] .text-emerald-800,
html[data-theme="dark"] .text-emerald-900,
html[data-theme="dark"] .text-teal-800 { color: #6ee7b7; }
html[data-theme="dark"] .text-slate-950 { color: #f8fafc; }
html[data-theme="dark"] .text-blue-500,
html[data-theme="dark"] .text-blue-600,
html[data-theme="dark"] .text-blue-700 { color: #60a5fa; }
html[data-theme="dark"] .text-sky-500 { color: #38bdf8; }
html[data-theme="dark"] .text-gold-500,
html[data-theme="dark"] .text-gold-600,
html[data-theme="dark"] .text-amber-500 { color: #fcd34d; }
html[data-theme="dark"] .text-orange-600 { color: #fb923c; }
html[data-theme="dark"] .text-purple-600 { color: #c084fc; }
html[data-theme="dark"] .text-indigo-600 { color: #a5b4fc; }

/* ۳-۲) دام ترکیبی: پس‌زمینه‌های طلایی/کهربایی اشباع در دارک روشن می‌مانند و
   متنِ تیرهٔ رویشان با override سراسری، روشن می‌شد (متنِ روشن روی طلایی ≈ ۱.۹).
   متنِ تیره روی این پس‌زمینه‌ها تیره می‌ماند. */
html[data-theme="dark"] .bg-gold-500.text-slate-900,
html[data-theme="dark"] .bg-gold-500.text-slate-800,
html[data-theme="dark"] .bg-gold-500.text-slate-700,
html[data-theme="dark"] .bg-gold-400.text-slate-900,
html[data-theme="dark"] .bg-gold-400.text-slate-800,
html[data-theme="dark"] .bg-gold-400.text-slate-700,
html[data-theme="dark"] .bg-amber-500.text-slate-900,
html[data-theme="dark"] .bg-amber-500.text-slate-800,
html[data-theme="dark"] .bg-amber-500.text-slate-700,
html[data-theme="dark"] .bg-amber-400.text-slate-900,
html[data-theme="dark"] .bg-amber-400.text-slate-800,
html[data-theme="dark"] .bg-amber-400.text-slate-700 { color: #0f172a; }
html[data-theme="dark"] .bg-gold-500 .text-slate-900,
html[data-theme="dark"] .bg-gold-400 .text-slate-900,
html[data-theme="dark"] .bg-amber-500 .text-slate-900,
html[data-theme="dark"] .bg-amber-400 .text-slate-900 { color: #0f172a; }

/* ۳-۳) حالت‌های hover و group-hover — سبزهای تیره/آبی‌ها در حالت هاور روی سطح
   تیره ناخوانا بودند؛ همان نگاشت بخش ۳-۱ برای حالت‌های تعاملی. */
html[data-theme="dark"] .hover\:text-rooyesh-500:hover,
html[data-theme="dark"] .hover\:text-rooyesh-600:hover,
html[data-theme="dark"] .hover\:text-rooyesh-700:hover { color: #34d399; }
html[data-theme="dark"] .hover\:text-rooyesh-800:hover,
html[data-theme="dark"] .hover\:text-rooyesh-900:hover { color: #6ee7b7; }
html[data-theme="dark"] .hover\:text-slate-900:hover,
html[data-theme="dark"] .hover\:text-slate-800:hover { color: #f1f5f9; }
html[data-theme="dark"] .hover\:text-teal-700:hover { color: #2dd4bf; }
html[data-theme="dark"] .hover\:text-gold-400:hover,
html[data-theme="dark"] .hover\:text-gold-500:hover { color: #fbbf24; }
html[data-theme="dark"] .group:hover .group-hover\:text-rooyesh-500,
html[data-theme="dark"] .group:hover .group-hover\:text-rooyesh-600,
html[data-theme="dark"] .group:hover .group-hover\:text-rooyesh-700 { color: #34d399; }
html[data-theme="dark"] .group:hover .group-hover\:text-rooyesh-800,
html[data-theme="dark"] .group:hover .group-hover\:text-rooyesh-900 { color: #6ee7b7; }
html[data-theme="dark"] .group:hover .group-hover\:text-slate-900 { color: #f8fafc; }
html[data-theme="dark"] .group:hover .group-hover\:text-blue-600 { color: #60a5fa; }
html[data-theme="dark"] .group:hover .group-hover\:text-teal-600 { color: #2dd4bf; }

/* ۳-۴) تک‌مقاله — فرم دیدگاه‌ها: عنوان «ثبت دیدگاه» سیاهِ ثابت (#0f172a) روی سطح
   تیره (ratio ≈ ۱) و برچسب کوچک خاکستری‌معدنی خوانا نمی‌شدند. */
html[data-theme="dark"] .comment-respond .comment-reply-title,
html[data-theme="dark"] .comments-title { color: #f8fafc; }
html[data-theme="dark"] .comment-respond p,
html[data-theme="dark"] .comment-respond .comment-notes,
html[data-theme="dark"] .comment-form-cookies-consent label,
html[data-theme="dark"] .comment-form label,
html[data-theme="dark"] .comment-metadata a,
html[data-theme="dark"] .comment-author .fn { color: #cbd5e1; }
html[data-theme="dark"] .comment-content { color: #cbd5e1; }
html[data-theme="dark"] .comment-list .comment-body { background-color: #111a2c; border-color: #1f2b40; }
html[data-theme="dark"] .woocommerce-form__input-checkbox,
html[data-theme="dark"] input[type="checkbox"],
html[data-theme="dark"] input[type="radio"] { accent-color: #34d399; }

/* ۳-۵) حساب کاربری — برچسب‌های فرم ورود بدون کلاس (#475569 روی #1f2b40 ≈ ۲) و
   placeholder فرم‌های ووکامرس. */
html[data-theme="dark"][data-theme] .woocommerce-form-row label,
html[data-theme="dark"][data-theme] .woocommerce-form__label,
html[data-theme="dark"][data-theme] .woocommerce-form label,
html[data-theme="dark"] .woocommerce-form-login,
html[data-theme="dark"] .woocommerce-form-login p { color: #cbd5e1; }
html[data-theme="dark"] .woocommerce-form input::placeholder,
html[data-theme="dark"] .woocommerce-form textarea::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #7b8aa0; }

/* ۳-۶) مسیر راهنمای SEO (رنگ‌های inline #64748b/#0f766e — فقط با !important
   قابل بازنویسی است؛ استثنای موجه برای استایل inline). */
html[data-theme="dark"] .acme-breadcrumb-ui,
html[data-theme="dark"] .acme-breadcrumb-ui a[style],
html[data-theme="dark"] .acme-breadcrumb-ui span[style] { color: #94a3b8 !important; }
html[data-theme="dark"] .acme-breadcrumb-ui span[aria-current="page"] { color: #34d399 !important; }

/* ۳-۷) دکمه‌های اشتراک‌گذاری با رنگ‌های برند literal (کلاس‌های arbitrary) —
   در سطح تیره برند کمی روشن‌تر می‌شود تا متن خوانا بماند. */
html[data-theme="dark"] .text-\[\#0088cc\] { color: #38bdf8; }
html[data-theme="dark"] .text-\[\#25d366\] { color: #4ade80; }
html[data-theme="dark"] .text-\[\#1da1f2\] { color: #60a5fa; }
html[data-theme="dark"] .text-\[\#0a66c2\] { color: #7aa7e0; }

/* ۳-۸) پس‌زمینه‌ها/بوردرهای خاکستری میانی — سطح‌های ۷۰۰/۸۰۰ روی تیره محو بودند. */
html[data-theme="dark"] .bg-slate-700 { background-color: #16203a; }
html[data-theme="dark"] .bg-slate-300 { background-color: #324264; }
html[data-theme="dark"] .border-slate-700,
html[data-theme="dark"] .border-slate-800 { border-color: #273652; }

/* ۳-۹) پس‌زمینه‌های سبز برند در دارک عمیق‌تر می‌شوند — سفید/مِینت روی emerald-600
   حتی در حالت روشن فقط ≈ ۳.۸:۱ کنتراست دارد؛ در دارک با عمیق‌کردن به سبز ۸۰۰/۹۰۰،
   متن‌های سفید و متن‌های روشن داخل کارت‌های شیشه‌ای (bg-white/10) به بالای ۶ می‌رسند.
   متنِ تیره روی این سبزها ترکیب پرکاربردی نیست (متن سفید استاندارد این برند است). */
html[data-theme="dark"] .bg-rooyesh-600 { background-color: #065f46; }
html[data-theme="dark"] .bg-rooyesh-700 { background-color: #064e3b; }
html[data-theme="dark"] .hover\:bg-rooyesh-600:hover { background-color: #065f46; }
html[data-theme="dark"] .hover\:bg-rooyesh-700:hover { background-color: #064e3b; }

/* ۳-۱۰) جعبهٔ ورود/عضویت (academy-auth-box) — استایل inline با !important رنگ
   برچسب‌ها را خاکستری تیره نگه می‌داشت (ratio ≈ ۲ روی سطح تیره)؛ با اولویت و
   اختصاصِ بالاتر خوانا می‌شود. */
html[data-theme="dark"] .academy-auth-box label,
html[data-theme="dark"] .academy-auth-box .academy-auth-box__title,
html[data-theme="dark"] .academy-auth-box h2,
html[data-theme="dark"] .academy-auth-box h3,
html[data-theme="dark"] .academy-auth-box p { color: #cbd5e1 !important; }
html[data-theme="dark"] .academy-auth-box .academy-auth-box__title,
html[data-theme="dark"] .academy-auth-box h2 { color: #f8fafc !important; }
html[data-theme="dark"] .academy-auth-box a { color: #34d399 !important; }

/* ================================================================
   بخش ۴ — دارک پنل دانش‌آموز (v1.25.0، بندهای ۱۴-۲۱ مالک)
   صفحه‌های حساب کاربری: خدمات و دسترسی‌ها، اعلان‌ها، پشتیبانی،
   درخواست‌های پشتیبانی، سفارش‌ها و پرداخت‌ها، پرسش‌های متداول.
   ================================================================ */

/* ۴-۱) بند ۱۴ — پس‌زمینه و باکس‌های پس‌زمینه‌ای صفحه‌های پنل: پوشش variantهای
 * شفافیت که در دورهای قبل پوشش نداشتند (bg-slate-50/90 و tints) — ریشهٔ
 * «پس‌زمینهٔ سبز و سفید». */
html[data-theme="dark"] .bg-slate-50\/90 { background-color: rgba(17, 26, 44, 0.92); }
html[data-theme="dark"] .bg-slate-50\/95 { background-color: rgba(17, 26, 44, 0.95); }
html[data-theme="dark"] .bg-emerald-50\/40,
html[data-theme="dark"] .bg-emerald-50\/50 { background-color: rgba(16, 185, 129, 0.10); }
html[data-theme="dark"] .bg-emerald-50\/60 { background-color: rgba(16, 185, 129, 0.12); }
html[data-theme="dark"] .bg-emerald-50\/90 { background-color: rgba(16, 185, 129, 0.14); }
html[data-theme="dark"] .bg-amber-50\/60 { background-color: rgba(251, 191, 36, 0.12); }
html[data-theme="dark"] .bg-amber-50\/90 { background-color: rgba(251, 191, 36, 0.14); }
html[data-theme="dark"] .bg-rose-50\/60 { background-color: rgba(244, 63, 94, 0.12); }
html[data-theme="dark"] .bg-rose-50\/90 { background-color: rgba(244, 63, 94, 0.14); }
html[data-theme="dark"] .bg-teal-50\/50 { background-color: rgba(45, 212, 191, 0.10); }
html[data-theme="dark"] .bg-teal-50\/90 { background-color: rgba(45, 212, 191, 0.14); }
html[data-theme="dark"] .bg-sky-50\/90 { background-color: rgba(56, 189, 248, 0.14); }
html[data-theme="dark"] .bg-indigo-50\/90 { background-color: rgba(99, 102, 241, 0.16); }

/* ۴-۲) بند ۱۵ — منوی حساب کاربری: آیتمِ انتخاب‌شده گرادیانِ روشنِ مینت دارد و
 * متن سبزِ روشن‌شدهٔ دارک رویش ناخوانا می‌شد؛ گرادیان به تینت تیره تبدیل می‌شود. */
html[data-theme="dark"] .woocommerce-MyAccount-navigation a.bg-gradient-to-r,
html[data-theme="dark"] .woocommerce-MyAccount-navigation [class*="from-rooyesh-50"][class*="to-emerald-50"] {
        background-image: linear-gradient(to left, rgba(16, 185, 129, 0.16), rgba(52, 211, 153, 0.07)) !important;
        border-color: rgba(52, 211, 153, 0.35) !important;
        color: #6ee7b7 !important;
}
html[data-theme="dark"] .woocommerce-MyAccount-navigation [class*="bg-teal-50\/50"] { background-color: rgba(45, 212, 191, 0.10) !important; color: #5eead4 !important; }
html[data-theme="dark"] .woocommerce-MyAccount-navigation a:hover { background-color: #16203a; }

/* ۴-۳) بند ۱۶ — صفحهٔ اعلان‌ها (acme-ann-* و acme-pn-* در notifications.css با
 * رنگ‌های هاردکد روشن): کارت‌ها، چیپ‌ها، آیکون‌ها، عنوان‌ها و متن‌ها تیره می‌شوند. */
html[data-theme="dark"] .acme-ann-card,
html[data-theme="dark"] .acme-pn-detail,
html[data-theme="dark"] .acme-ann-list__intro,
html[data-theme="dark"] .acme-ann-detail { background-color: #111a2c !important; border-color: #1f2b40 !important; }
html[data-theme="dark"] .acme-ann-card:hover { border-color: #273652 !important; }
html[data-theme="dark"] .acme-ann-card--pinned { border-color: rgba(129, 140, 248, 0.45) !important; box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.10); }
html[data-theme="dark"] .acme-ann-card__icon { background: #1f2b40 !important; border-color: #273652 !important; color: #cbd5e1 !important; }
html[data-theme="dark"] .acme-ann-chip { background: #1f2b40 !important; border-color: #273652 !important; color: #cbd5e1 !important; }
html[data-theme="dark"] .acme-ann-chip--type { background: rgba(52, 211, 153, 0.14) !important; border-color: rgba(52, 211, 153, 0.30) !important; color: #34d399 !important; }
html[data-theme="dark"] .acme-ann-chip--pinned { background: #6366f1 !important; border-color: #6366f1 !important; color: #ffffff !important; }
html[data-theme="dark"] .acme-ann-card__title,
html[data-theme="dark"] .acme-ann-list__title,
html[data-theme="dark"] .acme-pn-detail h2,
html[data-theme="dark"] .acme-pn-detail h3 { color: #f1f5f9 !important; }
html[data-theme="dark"] .acme-ann-card__excerpt,
html[data-theme="dark"] .acme-ann-detail p,
html[data-theme="dark"] .acme-pn-detail p,
html[data-theme="dark"] .acme-ann-more { color: #94a3b8 !important; }
html[data-theme="dark"] .acme-ann-feed { background-color: #0b1220 !important; border-color: #1f2b40 !important; }

/* ۴-۴) بند ۱۷ — پرسش‌های متداول: باکس «نیاز به پشتیبانی دارید؟» و آکاردئون‌ها. */
html[data-theme="dark"] .acme-support-faq-summary { background: #16203a !important; border-color: #273652 !important; color: #e2e8f0 !important; }
html[data-theme="dark"] .acme-support-faq-item,
html[data-theme="dark"] details.acme-acc { background: #111a2c !important; border-color: #1f2b40 !important; }
html[data-theme="dark"] details.acme-acc > summary { color: #f1f5f9 !important; }
html[data-theme="dark"] .acme-support-tab { background: transparent !important; color: #94a3b8 !important; border-color: #273652 !important; }
html[data-theme="dark"] .acme-support-tab.is-active,
html[data-theme="dark"] .acme-support-tab[aria-selected="true"] { background: rgba(16, 185, 129, 0.14) !important; color: #34d399 !important; border-color: rgba(52, 211, 153, 0.35) !important; }
html[data-theme="dark"] .woocommerce-account .acme-card { background-color: #111a2c !important; border-color: #1f2b40 !important; }

/* ۴-۵) بند ۱۸ — درخواست‌های پشتیبانی: باکس‌های سفید + چیپ‌های شمارش (فعال/پایان یافته). */
html[data-theme="dark"] .acme-summary-chip { background-color: #1f2b40 !important; border-color: #273652 !important; color: #cbd5e1 !important; }
html[data-theme="dark"] .acme-summary-active { color: #5eead4 !important; background-color: rgba(45, 212, 191, 0.12) !important; border-color: rgba(45, 212, 191, 0.30) !important; }
html[data-theme="dark"] .acme-summary-closed { color: #94a3b8 !important; background-color: #1f2b40 !important; border-color: #273652 !important; }
html[data-theme="dark"] .acme-status-badge { background-color: #1f2b40 !important; border-color: #273652 !important; color: #cbd5e1 !important; }
html[data-theme="dark"] .woocommerce-account .acme-inbox-table-wrap { background: #111a2c !important; border-color: #1f2b40 !important; }
html[data-theme="dark"] .woocommerce-account .acme-inbox-table th { background: #16203a !important; color: #f1f5f9 !important; }
html[data-theme="dark"] .woocommerce-account .acme-inbox-table td { color: #cbd5e1 !important; border-color: #1f2b40 !important; }
html[data-theme="dark"] .woocommerce-account .acme-detail-badges { background: transparent !important; }
html[data-theme="dark"] .acme-support-detail-box,
html[data-theme="dark"] .acme-request-card { background: #111a2c !important; border-color: #1f2b40 !important; color: #e2e8f0 !important; }

/* ۴-۶) بند ۱۹ — سفارش‌ها و پرداخت‌ها: سه باکس آمار (پرداخت‌شده/در انتظار/ناموفق)
 * و بج وضعیت سفارش — با ۴-۱ فلیپ می‌شوند؛ رنگ متن وضعیت‌ها هم هم‌سطح می‌شود. */
html[data-theme="dark"] .woocommerce-MyAccount-content .bg-emerald-50\/90 { background-color: rgba(16, 185, 129, 0.14); }
html[data-theme="dark"] .woocommerce-MyAccount-content .bg-teal-50\/90 { background-color: rgba(45, 212, 191, 0.14); }
html[data-theme="dark"] .woocommerce-MyAccount-content .bg-amber-50\/90 { background-color: rgba(251, 191, 36, 0.14); }
html[data-theme="dark"] .woocommerce-MyAccount-content .bg-rose-50\/90 { background-color: rgba(244, 63, 94, 0.14); }
html[data-theme="dark"] .woocommerce-MyAccount-content .bg-rose-50 { background-color: rgba(244, 63, 94, 0.12); }

/* ۴-۷) بند ۲۰ — متن‌های خاکستریِ ناخوانا: custom-style.css برای
 * .text-slate-400/500 داخل محتوای حساب، رنگ تیره با !important حک می‌کند؛
 * در دارک همان‌قدرِ قوی با رنگ روشن شکسته می‌شود. */
html[data-theme="dark"] .woocommerce-MyAccount-content .text-slate-400 { color: #9fb0c7 !important; }
html[data-theme="dark"] .woocommerce-MyAccount-content .text-slate-500 { color: #94a3b8 !important; }
html[data-theme="dark"] .woocommerce-MyAccount-content .text-slate-600 { color: #cbd5e1 !important; }
html[data-theme="dark"] .woocommerce-account .text-slate-400 { color: #9fb0c7 !important; }
html[data-theme="dark"] .woocommerce-account .text-slate-500 { color: #94a3b8 !important; }
html[data-theme="dark"] .woocommerce-account .text-slate-600 { color: #cbd5e1 !important; }
html[data-theme="dark"] .woocommerce-account .text-slate-700 { color: #cbd5e1 !important; }
html[data-theme="dark"] .woocommerce-account .text-slate-800 { color: #f1f5f9 !important; }
html[data-theme="dark"] .woocommerce-account .text-slate-900 { color: #f8fafc !important; }
/* توضیح زیر عنوان هر بخش پنل (مثل «پاسخ سوالات متداول را بررسی کنید…») */
html[data-theme="dark"] .woocommerce-account .acme-card p,
html[data-theme="dark"] .woocommerce-account .acme-section-sub,
html[data-theme="dark"] .woocommerce-account p.text-slate-500,
html[data-theme="dark"] .woocommerce-account p.text-slate-600 { color: #9fb0c7 !important; }

/* ۴-۸) بند ۲۱ — باکس اطلاعات دانش‌آموز در هدر (dropdown حساب): هویت‌کارتِ داخلی
 * با bg-slate-50/90 روشن می‌ماند (با ۴-۱ فلیپ می‌شود) + متن‌ها هم‌سطح. */
html[data-theme="dark"] #academyHeaderAccountMenu,
html[data-theme="dark"] .academy-navbar .w-64.rounded-2xl { background-color: #111a2c; border-color: #1f2b40; }
html[data-theme="dark"] .academy-navbar .w-64 .text-slate-800 { color: #f1f5f9; }
html[data-theme="dark"] .academy-navbar .w-64 .text-slate-500 { color: #94a3b8; }
html[data-theme="dark"] .academy-navbar .w-64 .text-slate-700 { color: #cbd5e1; }
html[data-theme="dark"] .academy-navbar .w-64 a:hover { background-color: rgba(16, 185, 129, 0.12); color: #34d399; }
html[data-theme="dark"] .academy-navbar .w-64 .border-slate-200\/70,
html[data-theme="dark"] .academy-navbar .w-64 hr { border-color: #1f2b40; }

/* ============================================================
   ۵) دور ۶۴ — محتوای متنی مقاله‌ها (entry-content) در دارک
   ------------------------------------------------------------
   * چرا: استایل‌های روشن custom-style.css برای نقل‌قول‌ها (blockquote
 *   و .ar-quote)، باکس‌های نکته (ar-box-tip/warning/success و
 *   wp-block-info) و کد/جدول/هایلایت، پس‌زمینهٔ گرادیانی/روشن با متن
 *   تیره دارند؛ در دارک ناخوانا و خیره‌کننده‌اند.
 *   نکتهٔ فنی مهم: گرادیان‌ها با background-image می‌آیند؛ فقط
 *   background-color را بازنویسی کردن کافی نیست — image را none می‌کنیم.
 * ============================================================ */

/* ۵-۱) قالب‌های صفحه با پس‌زمینهٔ arbitrary تیلویند (bg-[#f8fafc]):
 * حساب کاربری من (template-full-width)، صفحات ووکامرس، آرشیو مقالات
 * و بخش‌های front-page — در دارک روی رنگ پس‌زمینهٔ پایه می‌نشینند. */
html[data-theme="dark"] .bg-\[\#f8fafc\] { background-color: #0b1220; }

/* ۵-۲) نقل‌قول پیش‌فرض وردپرس: گرادیان روشن → سطح کارت تیره + لهجهٔ کهربایی */
html[data-theme="dark"] .entry-content blockquote:not(.ar-quote),
html[data-theme="dark"] .wp-block-post-content blockquote:not(.ar-quote) {
	background-image: none;
	background-color: #111a2c;
	color: #cbd5e1;
	border-right-color: #d97706;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .entry-content blockquote:not(.ar-quote) cite,
html[data-theme="dark"] .wp-block-post-content blockquote:not(.ar-quote) cite {
	color: #f1f5f9;
}

/* ۵-۳) نقل‌قول اختصاصی گلد (.ar-quote): همان درمان با لهجهٔ کهربایی */
html[data-theme="dark"] .ar-quote {
	background-image: none;
	background-color: #111a2c;
	color: #e2e8f0;
	border-right-color: #d97706;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .ar-quote::before { color: rgba(245, 158, 11, 0.45); }

/* ۵-۴) باکس‌های نکتهٔ AI Semantic (tip آبی / warning قرمز / success سبز):
 * پس‌زمینه‌های pastel روشن با متن تیره → تینت شفاف همان هویت + متن روشن */
html[data-theme="dark"] .ar-box-tip {
	background-color: rgba(59, 130, 246, 0.12);
	color: #93c5fd;
	border-right-color: #60a5fa;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .ar-box-tip::before { color: #60a5fa; }

html[data-theme="dark"] .ar-box-warning {
	background-color: rgba(239, 68, 68, 0.12);
	color: #fca5a5;
	border-right-color: #f87171;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .ar-box-warning::before { color: #f87171; }

html[data-theme="dark"] .ar-box-success {
	background-color: rgba(16, 185, 129, 0.12);
	color: #6ee7b7;
	border-right-color: #34d399;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .ar-box-success::before { color: #34d399; }

/* ۵-۵) باکس نکتهٔ عمومی (wp-block-info) و جعبهٔ محتوایی آکادمی:
 * گرادیان سبز روشن → تینت سبز تیره؛ آیکون و تیتر هم‌سطح متن‌ها. */
html[data-theme="dark"] .entry-content .wp-block-info,
html[data-theme="dark"] .wp-block-post-content .wp-block-info,
html[data-theme="dark"] .academy-content-box {
	background-image: none;
	background-color: rgba(16, 185, 129, 0.10);
	border-color: rgba(16, 185, 129, 0.35);
	border-right-color: #10b981;
}
html[data-theme="dark"] .entry-content .wp-block-info > i,
html[data-theme="dark"] .wp-block-post-content .wp-block-info > i { color: #34d399; }
html[data-theme="dark"] .entry-content .wp-block-info h4,
html[data-theme="dark"] .wp-block-post-content .wp-block-info h4 { color: #f1f5f9; }

/* ۵-۶) کد درون‌متنی: قرمز روشن روی pastel → صلب‌آیندی ملایم در دارک */
html[data-theme="dark"] .entry-content code,
html[data-theme="dark"] .wp-block-post-content code {
	background-color: rgba(190, 18, 60, 0.22);
	color: #fda4af;
}

/* بلوک کد: در دارک کمی روشن‌تر از پس‌زمینهٔ صفحه + قاب ملایم تا از متن جدا دیده شود */
html[data-theme="dark"] .entry-content pre,
html[data-theme="dark"] .wp-block-post-content pre {
	background-color: #111a2c;
	border: 1px solid #1f2b40;
}

/* ۵-۷) جدول: هدر روشن (#f8fafc با متن تیره) → هدر تیره با متن روشن */
html[data-theme="dark"] .entry-content table th,
html[data-theme="dark"] .wp-block-post-content table th {
	color: #f1f5f9;
	background-color: #16203a;
}

/* ۵-۸) متن‌های درون‌مقاله که صریحاً تیره حک شده‌اند: بولدها، هایلایت،
 * جداکنندهٔ افقی و کپشن تصویر — هم‌سطح رنگ متن دارک. */
html[data-theme="dark"] .entry-content strong,
html[data-theme="dark"] .entry-content b,
html[data-theme="dark"] .wp-block-post-content strong,
html[data-theme="dark"] .wp-block-post-content b { color: #f1f5f9; }

html[data-theme="dark"] .entry-content mark,
html[data-theme="dark"] .wp-block-post-content mark {
	background-color: rgba(245, 158, 11, 0.28);
	color: #fde68a;
}

html[data-theme="dark"] .entry-content hr,
html[data-theme="dark"] .wp-block-post-content hr { background-color: #1f2b40; }

html[data-theme="dark"] .entry-content figure:not(.academy-image-caption-effect) figcaption,
html[data-theme="dark"] .wp-block-post-content figure:not(.academy-image-caption-effect) figcaption {
	color: #94a3b8;
}

/* ۵-۹) دور ۶۴ — اجزای صفحهٔ مقاله که در ممیزی headless روشن ماندند:
 * نوار متا/دسته (bg-slate-50/50)، بانک فایل، باکس نویسنده و فهرست مطالب
 * — گرادیان‌های روشن تیلویند با background-image که بازنویسی background-color
 * آن‌ها را برطرف نمی‌کند؛ پس خود گرادیان را با سطح کارت تیره جایگزین می‌کنیم. */
html[data-theme="dark"] .bg-slate-50\/30,
html[data-theme="dark"] .bg-slate-50\/40,
html[data-theme="dark"] .bg-slate-50\/50 { background-color: rgba(17, 26, 44, 0.88); }

/* بانک فایل و جزوات (from-slate-50 → to-white) */
html[data-theme="dark"] .bg-gradient-to-b.from-slate-50.to-white,
html[data-theme="dark"] .bg-gradient-to-b.from-slate-50\/50.to-white {
	background-image: none;
	background-color: #111a2c;
	border-color: #1f2b40;
}

/* باکس نویسنده (from-white → to-slate-50) */
html[data-theme="dark"] .bg-gradient-to-r.from-white.to-slate-50,
html[data-theme="dark"] .bg-gradient-to-l.from-white.to-slate-50 {
	background-image: none;
	background-color: #111a2c;
	border-color: #1f2b40;
}

/* فهرست مطالب مقاله (from-rooyesh-50 via-white to-emerald-50/60) */
html[data-theme="dark"] .article-toc {
	background-image: none;
	background-color: #111a2c;
	border-color: #1f2b40;
}
html[data-theme="dark"] .article-toc .article-toc-link { color: #cbd5e1; }
html[data-theme="dark"] .article-toc .article-toc-link:hover,
html[data-theme="dark"] .article-toc .article-toc-link:focus-visible { color: #34d399; }
html[data-theme="dark"] .article-toc .border-rooyesh-100,
html[data-theme="dark"] .border-rooyesh-100 { border-color: #1f2b40; }

/* ==========================================================================
   دور ۶۵ (بند ۹ مالک) — خوانایی صفحهٔ «سفارش‌ها و پرداخت‌ها» در دارک‌مود
   کلاس‌های -950 باکس‌های آماری و برچسب‌های وضعیت (sky/indigo/purple/rose/slate-700)
   قبلاً پوشش نداشتند → روی پس‌زمینهٔ تیره تقریباً نامرئی بودند.
   ========================================================================== */
/* اعداد باکس‌های آماری */
html[data-theme="dark"] .text-emerald-950 { color: #6ee7b7; }
html[data-theme="dark"] .text-amber-950 { color: #fcd34d; }
html[data-theme="dark"] .text-rose-950 { color: #fda4af; }
/* برچسب وضعیت سفارش */
html[data-theme="dark"] .text-sky-800 { color: #7dd3fc; }
html[data-theme="dark"] .text-indigo-800 { color: #a5b4fc; }
html[data-theme="dark"] .text-purple-800 { color: #d8b4fe; }
html[data-theme="dark"] .text-rose-800 { color: #fda4af; }
html[data-theme="dark"] .text-slate-700 { color: #cbd5e1; }
/* قرص وضعیت: پس‌زمینهٔ روشن ۵۰/۹۰ → لایهٔ نیمه‌شفاف تیره‌دوست */
html[data-theme="dark"] .bg-emerald-50,
html[data-theme="dark"] .bg-emerald-50\/90,
html[data-theme="dark"] .bg-emerald-50\/60 { background-color: rgba(16, 185, 129, .12); }
html[data-theme="dark"] .bg-teal-50,
html[data-theme="dark"] .bg-teal-50\/90 { background-color: rgba(20, 184, 166, .12); }
html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-amber-50\/90 { background-color: rgba(245, 158, 11, .12); }
html[data-theme="dark"] .bg-rose-50,
html[data-theme="dark"] .bg-rose-50\/90 { background-color: rgba(244, 63, 94, .12); }
html[data-theme="dark"] .bg-sky-50,
html[data-theme="dark"] .bg-sky-50\/90 { background-color: rgba(14, 165, 233, .12); }
html[data-theme="dark"] .bg-indigo-50,
html[data-theme="dark"] .bg-indigo-50\/90 { background-color: rgba(99, 102, 241, .14); }
html[data-theme="dark"] .bg-purple-50,
html[data-theme="dark"] .bg-purple-50\/90 { background-color: rgba(168, 85, 247, .14); }
html[data-theme="dark"] .bg-slate-100 { background-color: #1e293b; }
/* حاشیهٔ قرص‌ها و کارت‌های آماری */
html[data-theme="dark"] .border-emerald-200\/70,
html[data-theme="dark"] .border-emerald-200\/90 { border-color: rgba(16, 185, 129, .30); }
html[data-theme="dark"] .border-teal-200\/90 { border-color: rgba(20, 184, 166, .30); }
html[data-theme="dark"] .border-amber-200\/90 { border-color: rgba(245, 158, 11, .32); }
html[data-theme="dark"] .border-rose-200\/90 { border-color: rgba(244, 63, 94, .32); }
html[data-theme="dark"] .border-sky-200\/90 { border-color: rgba(14, 165, 233, .32); }
html[data-theme="dark"] .border-indigo-200\/90 { border-color: rgba(99, 102, 241, .35); }
html[data-theme="dark"] .border-purple-200\/90 { border-color: rgba(168, 85, 247, .35); }
