/* تم روشن/تیره سراسری صفحات عمومی کلاسیکا
   پیش‌فرض (dark) = ظاهر فعلی سایت (هدر/هیرو تیره + بدنه کاغذی)
   light = روشن‌سازی همه بخش‌ها */

/* دکمه سوییچ تم — باید بدون school-theme.css هم دیده شود */
.school-theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 225, 154, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: #f5e19a;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  touch-action: manipulation;
}
.school-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 225, 154, 0.65);
  background: rgba(30, 41, 59, 0.95);
}
.school-theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.4);
}
.school-theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
.school-theme-toggle .icon-sun { display: none; }
.school-theme-toggle .icon-moon { display: block; }
html[data-ui-theme="light"] .school-theme-toggle,
html[data-school-theme="light"] .school-theme-toggle {
  border-color: rgba(14, 116, 144, 0.35);
  background: #fff;
  color: #0f766e;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
html[data-ui-theme="light"] .school-theme-toggle:hover,
html[data-school-theme="light"] .school-theme-toggle:hover {
  background: #f0f9ff;
  border-color: rgba(14, 116, 144, 0.55);
}
html[data-ui-theme="light"] .school-theme-toggle .icon-sun,
html[data-school-theme="light"] .school-theme-toggle .icon-sun { display: block; }
html[data-ui-theme="light"] .school-theme-toggle .icon-moon,
html[data-school-theme="light"] .school-theme-toggle .icon-moon { display: none; }
.school-theme-toggle--header {
  width: 2.4rem;
  height: 2.4rem;
  border-color: rgba(245, 225, 154, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #f5e19a;
}

/* —— اصلاح تم تیره: متن محتوا خوانا بماند (ظاهر فعلی) —— */
html[data-ui-theme="dark"] body:not(.is-school-panel):not(.admin-body),
html:not([data-ui-theme="light"]) body:not(.is-school-panel):not(.admin-body) {
  color: var(--ink);
  background: var(--paper);
}
html[data-ui-theme="dark"] body:not(.is-school-panel) .section__head h2,
html[data-ui-theme="dark"] body:not(.is-school-panel) .panel h3,
html[data-ui-theme="dark"] body:not(.is-school-panel) .story__copy h3,
html:not([data-ui-theme="light"]) body:not(.is-school-panel) .section__head h2,
html:not([data-ui-theme="light"]) body:not(.is-school-panel) .panel h3 {
  color: var(--navy-900);
}
html[data-ui-theme="dark"] body:not(.is-school-panel) .muted,
html[data-ui-theme="dark"] body:not(.is-school-panel) .panel p,
html[data-ui-theme="dark"] body:not(.is-school-panel) .section__head p,
html:not([data-ui-theme="light"]) body:not(.is-school-panel) .muted,
html:not([data-ui-theme="light"]) body:not(.is-school-panel) .panel p {
  color: var(--muted);
}

/* لوگو/ناو در تم تیره: سفید روی هدر تیره (مثل قبل) */
html[data-ui-theme="dark"] body:not(.is-school-panel) .logo strong,
html:not([data-ui-theme="light"]) body:not(.is-school-panel) .logo strong {
  color: var(--gold-soft) !important;
}
html[data-ui-theme="dark"] body:not(.is-school-panel) .nav__link,
html[data-ui-theme="dark"] body:not(.is-school-panel) .nav__dd__trigger,
html:not([data-ui-theme="light"]) body:not(.is-school-panel) .nav__link,
html:not([data-ui-theme="light"]) body:not(.is-school-panel) .nav__dd__trigger {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* ============================================================================
   تم روشن — همه بخش‌های عمومی
   ============================================================================ */
html[data-ui-theme="light"] {
  --ink: #0f172a;
  --muted: #475569;
  --paper: #f1f5f9;
  --white: #ffffff;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html[data-ui-theme="light"] body:not(.admin-body) {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* هیرو و صفحه‌هیرو */
html[data-ui-theme="light"] .hero,
html[data-ui-theme="light"] .hero--fx,
html[data-ui-theme="light"] .hero--fx.hero--dotted,
html[data-ui-theme="light"] .page-hero {
  background:
    radial-gradient(520px 220px at 90% 0%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(180deg, #e8eef6 0%, #f1f5f9 55%, #f8fafc 100%) !important;
  color: #0f172a !important;
}
html[data-ui-theme="light"] .hero h1,
html[data-ui-theme="light"] .hero__lead,
html[data-ui-theme="light"] .page-hero h1,
html[data-ui-theme="light"] .page-hero p,
html[data-ui-theme="light"] .hero--intro h1,
html[data-ui-theme="light"] .hero--intro .hero__lead {
  color: #0f172a !important;
}
html[data-ui-theme="light"] .hero h1 em,
html[data-ui-theme="light"] .hero__badge {
  color: #a16207 !important;
}
html[data-ui-theme="light"] .hero__badge {
  background: rgba(201, 162, 39, 0.16) !important;
  border-color: rgba(201, 162, 39, 0.35) !important;
}
html[data-ui-theme="light"] .hero .btn-ghost,
html[data-ui-theme="light"] .page-hero .btn-ghost {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}
html[data-ui-theme="light"] .metric strong {
  color: #a16207 !important;
}
html[data-ui-theme="light"] .metric span {
  color: #475569 !important;
}
html[data-ui-theme="light"] .hero__glow,
html[data-ui-theme="light"] .hero--fx .hero__glow {
  opacity: 0.35;
}

/* سکشن‌ها و تیترها */
html[data-ui-theme="light"] {
  background: #f1f5f9;
}
html[data-ui-theme="light"] .section,
html[data-ui-theme="light"] .section--tight {
  background: transparent;
  color: #0f172a;
}
html[data-ui-theme="light"] main#content {
  background: #f1f5f9 !important;
  color: #0f172a;
}
html[data-ui-theme="light"] .section__head .eyebrow,
html[data-ui-theme="light"] .story__copy .tag {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #334155 !important;
}
html[data-ui-theme="light"] .section__head h2,
html[data-ui-theme="light"] .section__head h3,
html[data-ui-theme="light"] .pitch-band__title,
html[data-ui-theme="light"] .story__copy h3,
html[data-ui-theme="light"] .panel h3,
html[data-ui-theme="light"] .plan h3,
html[data-ui-theme="light"] .article-card__body h3,
html[data-ui-theme="light"] .article-card__body strong {
  color: #0f172a !important;
}
html[data-ui-theme="light"] .section__head p,
html[data-ui-theme="light"] .pitch-band__kicker,
html[data-ui-theme="light"] .pitch-band__text,
html[data-ui-theme="light"] .story__copy p,
html[data-ui-theme="light"] .panel p,
html[data-ui-theme="light"] .plan ul,
html[data-ui-theme="light"] .muted {
  color: #475569 !important;
}

/* کارت‌ها / پنل‌ها / پلن‌ها */
html[data-ui-theme="light"] .panel,
html[data-ui-theme="light"] .card,
html[data-ui-theme="light"] .article-card,
html[data-ui-theme="light"] .plan,
html[data-ui-theme="light"] .review-card,
html[data-ui-theme="light"] .faq-item,
html[data-ui-theme="light"] .auth-card,
html[data-ui-theme="light"] .auth-panel,
html[data-ui-theme="light"] .form-card,
html[data-ui-theme="light"] .content-hub__card,
html[data-ui-theme="light"] .price-card,
html[data-ui-theme="light"] .dl-card,
html[data-ui-theme="light"] .ticket-board,
html[data-ui-theme="light"] .list-export,
html[data-ui-theme="light"] .table-wrap,
html[data-ui-theme="light"] .table {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}
html[data-ui-theme="light"] .plan--free {
  background: linear-gradient(180deg, #ffffff, #f1f5f9) !important;
}
html[data-ui-theme="light"] .plan--pro {
  background: linear-gradient(160deg, #fffbeb, #fde68a 140%) !important;
}
html[data-ui-theme="light"] .pitch-band {
  background:
    linear-gradient(120deg, rgba(255, 248, 220, 0.98), #ffffff) !important;
  border-color: rgba(201, 162, 39, 0.35) !important;
}
html[data-ui-theme="light"] .pitch-band__emoji {
  background: #ffffff !important;
}
html[data-ui-theme="light"] .pitch-band__ask {
  color: #a16207 !important;
}

/* موزاییک امکانات / استوری — کپشن روشن‌تر ولی خوانا */
html[data-ui-theme="light"] .feature-mosaic__main .cap,
html[data-ui-theme="light"] .feature-tile .cap {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1) !important;
}
html[data-ui-theme="light"] .feature-mosaic__main .cap h3,
html[data-ui-theme="light"] .feature-tile .cap h3 {
  color: #a16207 !important;
}
html[data-ui-theme="light"] .feature-mosaic__main .cap p,
html[data-ui-theme="light"] .feature-tile .cap p {
  color: #334155 !important;
}
html[data-ui-theme="light"] .story__media {
  background: #e2e8f0 !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}
html[data-ui-theme="light"] .story__media img {
  background: #e2e8f0 !important;
}

/* CTA */
html[data-ui-theme="light"] .cta-strip {
  background:
    radial-gradient(420px 180px at 90% 120%, rgba(201, 162, 39, 0.22), transparent 70%),
    linear-gradient(120deg, #ffffff, #eef2ff) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
html[data-ui-theme="light"] .cta-strip h3 {
  color: #a16207 !important;
}
html[data-ui-theme="light"] .cta-strip p {
  color: #334155 !important;
}
html[data-ui-theme="light"] .cta-strip .btn-ghost {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

/* ویدیوها */
html[data-ui-theme="light"] .videos-hero h1,
html[data-ui-theme="light"] .videos-featured__copy h2,
html[data-ui-theme="light"] .videos-grid-head h3,
html[data-ui-theme="light"] .videos-empty__card h2 {
  color: #0f172a !important;
}
html[data-ui-theme="light"] .videos-hero p,
html[data-ui-theme="light"] .videos-featured__copy p,
html[data-ui-theme="light"] .videos-grid-head p,
html[data-ui-theme="light"] .videos-empty__card p {
  color: #475569 !important;
}
html[data-ui-theme="light"] .videos-featured,
html[data-ui-theme="light"] .videos-empty__card,
html[data-ui-theme="light"] .video-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}
html[data-ui-theme="light"] .video-card strong,
html[data-ui-theme="light"] .video-card h3 {
  color: #0f172a !important;
}
html[data-ui-theme="light"] .video-card span,
html[data-ui-theme="light"] .video-card p {
  color: #475569 !important;
}

/* مقایسه رقبا */
html[data-ui-theme="light"] .rival-stage,
html[data-ui-theme="light"] .rival-row,
html[data-ui-theme="light"] .rival-heads {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-ui-theme="light"] .rival-feat,
html[data-ui-theme="light"] .rival-head,
html[data-ui-theme="light"] .rival-head--win span {
  color: #0f172a !important;
}
html[data-ui-theme="light"] .rival-pill {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* نظرات / اسلایدر */
html[data-ui-theme="light"] .reviews-slider,
html[data-ui-theme="light"] .review-slide,
html[data-ui-theme="light"] .reviews-band {
  background: transparent;
  color: #0f172a;
}
html[data-ui-theme="light"] .review-card strong,
html[data-ui-theme="light"] .review-card h3,
html[data-ui-theme="light"] .review-card .name {
  color: #0f172a !important;
}
html[data-ui-theme="light"] .review-card p,
html[data-ui-theme="light"] .review-card .role {
  color: #475569 !important;
}

/* فوتر در تم روشن — روشن و خوانا */
html[data-ui-theme="light"] .footer {
  background: #ffffff !important;
  color: #0f172a !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
html[data-ui-theme="light"] .footer a {
  color: #0f766e !important;
}
html[data-ui-theme="light"] .footer .muted,
html[data-ui-theme="light"] .footer p,
html[data-ui-theme="light"] .footer span,
html[data-ui-theme="light"] .footer small,
html[data-ui-theme="light"] .footer li {
  color: #475569 !important;
}
html[data-ui-theme="light"] .footer__bottom {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

/* فرم‌ها و جداول عمومی */
html[data-ui-theme="light"] body:not(.admin-body) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
html[data-ui-theme="light"] body:not(.admin-body) select,
html[data-ui-theme="light"] body:not(.admin-body) textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}
html[data-ui-theme="light"] body:not(.admin-body) th {
  background: #f8fafc !important;
  color: #0f172a !important;
}
html[data-ui-theme="light"] body:not(.admin-body) td {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* منوی موبایل */
html[data-ui-theme="light"] .nav.is-open,
html[data-ui-theme="light"] .nav__drawer,
html[data-ui-theme="light"] .nav__bar {
  background: #ffffff;
}
@media (max-width: 980px) {
  html[data-ui-theme="light"] .nav {
    background: #ffffff !important;
  }
  html[data-ui-theme="light"] .nav__link,
  html[data-ui-theme="light"] .nav__dd__trigger {
    color: #0f172a !important;
  }
}

/* حساب کاربری / پورتال عمومی (غیر پنل مدرسه) */
html[data-ui-theme="light"] body:not(.is-school-panel) .account-main,
html[data-ui-theme="light"] body:not(.is-school-panel) .portal-wrap,
html[data-ui-theme="light"] body:not(.is-school-panel) .portal-head,
html[data-ui-theme="light"] body:not(.is-school-panel) .portal-card {
  color: #0f172a;
}
html[data-ui-theme="light"] body:not(.is-school-panel) .portal-card,
html[data-ui-theme="light"] body:not(.is-school-panel) .account-main .panel {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* فلش‌ها در تم روشن */
html[data-ui-theme="light"] .flash-success,
html[data-ui-theme="light"] .flash-ok {
  background: #ecfdf5 !important;
  color: #065f46 !important;
}
html[data-ui-theme="light"] .flash-error,
html[data-ui-theme="light"] .flash-err {
  background: #fef2f2 !important;
  color: #991b1b !important;
}
html[data-ui-theme="light"] .flash-warn {
  background: #fffbeb !important;
  color: #92400e !important;
}
html[data-ui-theme="light"] .flash-info {
  background: #eff6ff !important;
  color: #1e40af !important;
}

/* theme-color متا از JS همگام می‌شود؛ اینجا فقط سطوح */
html[data-ui-theme="light"] .btn-ghost {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

/* =========================================================
   کنتراست منو / دکمه / کنترل‌ها — تم روشن و تیره
   ========================================================= */

/* —— تم تیره (ظاهر فعلی): متن روشن روی هدر/هیرو تیره —— */
html[data-ui-theme="dark"] body:not(.admin-body) .topbar,
html:not([data-ui-theme="light"]) body:not(.admin-body) .topbar {
  background: #06182e !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .nav__link,
html[data-ui-theme="dark"] body:not(.admin-body) .nav__dd__trigger,
html[data-ui-theme="dark"] body:not(.admin-body) .nav__more-btn,
html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__link,
html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__dd__trigger,
html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__more-btn {
  color: rgba(255, 255, 255, 0.92) !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .nav__link.is-active,
html[data-ui-theme="dark"] body:not(.admin-body) .nav__dd__trigger.is-active,
html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__link.is-active,
html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__dd__trigger.is-active {
  color: #e8c65a !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .nav__dd__menu,
html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__dd__menu {
  background: #0b2138 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .nav__dd__item,
html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__dd__item {
  color: rgba(255, 255, 255, 0.9) !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .nav__dd__item:hover,
html[data-ui-theme="dark"] body:not(.admin-body) .nav__dd__item.is-active,
html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__dd__item:hover,
html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__dd__item.is-active {
  background: rgba(232, 198, 90, 0.12) !important;
  color: #e8c65a !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .burger span,
html:not([data-ui-theme="light"]) body:not(.admin-body) .burger span {
  background: #fff !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .icon-bell,
html:not([data-ui-theme="light"]) body:not(.admin-body) .icon-bell {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* دکمه‌های هیرو تیره: متن روشن روی شبح، تیره روی طلایی */
html[data-ui-theme="dark"] body:not(.admin-body) .hero .btn-ghost,
html[data-ui-theme="dark"] body:not(.admin-body) .page-hero .btn-ghost,
html[data-ui-theme="dark"] body:not(.admin-body) .cta-strip .btn-ghost,
html:not([data-ui-theme="light"]) body:not(.admin-body) .hero .btn-ghost,
html:not([data-ui-theme="light"]) body:not(.admin-body) .page-hero .btn-ghost,
html:not([data-ui-theme="light"]) body:not(.admin-body) .cta-strip .btn-ghost {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(232, 198, 90, 0.55) !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .btn-gold,
html[data-ui-theme="dark"] body:not(.admin-body) a.btn-gold,
html:not([data-ui-theme="light"]) body:not(.admin-body) .btn-gold,
html:not([data-ui-theme="light"]) body:not(.admin-body) a.btn-gold {
  background: linear-gradient(135deg, #e8c65a, #c9a227) !important;
  color: #06182e !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .btn-navy,
html[data-ui-theme="dark"] body:not(.admin-body) a.btn-navy,
html:not([data-ui-theme="light"]) body:not(.admin-body) .btn-navy {
  background: linear-gradient(135deg, #143e66, #06182e) !important;
  color: #ffffff !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .btn-download,
html[data-ui-theme="dark"] body:not(.admin-body) a.btn-download,
html:not([data-ui-theme="light"]) body:not(.admin-body) .btn-download {
  background: linear-gradient(135deg, #1b7f4a, #0e4d2c) !important;
  color: #ffffff !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .btn-download small,
html:not([data-ui-theme="light"]) body:not(.admin-body) .btn-download small {
  color: rgba(255, 255, 255, 0.9) !important;
}
/* دکمه شبح در بدنه روشن (نه هیرو) */
html[data-ui-theme="dark"] body:not(.admin-body) .section .btn-ghost,
html[data-ui-theme="dark"] body:not(.admin-body) .panel .btn-ghost,
html[data-ui-theme="dark"] body:not(.admin-body) .btn-row .btn-ghost:not(.hero .btn-ghost),
html:not([data-ui-theme="light"]) body:not(.admin-body) .section .btn-ghost,
html:not([data-ui-theme="light"]) body:not(.admin-body) .panel .btn-ghost {
  background: #f3f6fb !important;
  color: #06182e !important;
  border: 1px solid #c9d4e4 !important;
}

/* —— تم روشن: متن تیره روی زمینه روشن —— */
html[data-ui-theme="light"] body:not(.admin-body) .topbar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .logo,
html[data-ui-theme="light"] body:not(.admin-body) .logo strong {
  color: #0f172a !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .logo small {
  color: #64748b !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .nav__link,
html[data-ui-theme="light"] body:not(.admin-body) .nav__dd__trigger,
html[data-ui-theme="light"] body:not(.admin-body) .nav__more-btn {
  color: #0f172a !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .nav__link.is-active,
html[data-ui-theme="light"] body:not(.admin-body) .nav__dd__trigger.is-active,
html[data-ui-theme="light"] body:not(.admin-body) .nav__link:hover,
html[data-ui-theme="light"] body:not(.admin-body) .nav__dd__trigger:hover {
  color: #b45309 !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .nav__dd__menu {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .nav__dd__item {
  color: #0f172a !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .nav__dd__item:hover,
html[data-ui-theme="light"] body:not(.admin-body) .nav__dd__item.is-active {
  background: #f1f5f9 !important;
  color: #b45309 !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .burger span {
  background: #0f172a !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .icon-bell {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
html[data-ui-theme="light"] body:not(.admin-body) .school-theme-toggle--header {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: #ffffff !important;
  color: #0f766e !important;
}

/* دکمه‌ها در تم روشن */
html[data-ui-theme="light"] body:not(.admin-body) .btn-gold,
html[data-ui-theme="light"] body:not(.admin-body) a.btn-gold {
  background: linear-gradient(135deg, #e8c65a, #c9a227) !important;
  color: #06182e !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .btn-navy,
html[data-ui-theme="light"] body:not(.admin-body) a.btn-navy {
  background: linear-gradient(135deg, #143e66, #0b2748) !important;
  color: #ffffff !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .btn-download,
html[data-ui-theme="light"] body:not(.admin-body) a.btn-download {
  background: linear-gradient(135deg, #15803d, #166534) !important;
  color: #ffffff !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .btn-download small {
  color: rgba(255, 255, 255, 0.92) !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .btn-ghost,
html[data-ui-theme="light"] body:not(.admin-body) a.btn-ghost,
html[data-ui-theme="light"] body:not(.admin-body) .hero .btn-ghost,
html[data-ui-theme="light"] body:not(.admin-body) .page-hero .btn-ghost,
html[data-ui-theme="light"] body:not(.admin-body) .cta-strip .btn-ghost,
html[data-ui-theme="light"] body:not(.admin-body) .section .btn-ghost,
html[data-ui-theme="light"] body:not(.admin-body) .panel .btn-ghost {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .btn *,
html[data-ui-theme="light"] body:not(.admin-body) a.btn * {
  color: inherit !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .btn *,
html[data-ui-theme="dark"] body:not(.admin-body) a.btn *,
html:not([data-ui-theme="light"]) body:not(.admin-body) .btn *,
html:not([data-ui-theme="light"]) body:not(.admin-body) a.btn * {
  color: inherit !important;
}

/* منوی موبایل تم روشن */
@media (max-width: 980px) {
  html[data-ui-theme="light"] body:not(.admin-body) .nav,
  html[data-ui-theme="light"] body:not(.admin-body) .nav__drawer-head,
  html[data-ui-theme="light"] body:not(.admin-body) .nav__bar {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav .btn,
  html[data-ui-theme="light"] body:not(.admin-body) .nav .btn-ghost {
    color: #0f172a !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav {
    background: #06182e !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav__link,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__link {
    color: rgba(255, 255, 255, 0.92) !important;
  }
}

/* لایت‌باکس ورود — کنتراست دو تم */
html[data-ui-theme="light"] body:not(.admin-body) .auth-lb__dialog {
  background: #ffffff !important;
  color: #0f172a !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .auth-lb__brand strong,
html[data-ui-theme="light"] body:not(.admin-body) .auth-lb__main label {
  color: #0f172a !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .auth-lb__submit {
  color: #06182e !important;
}
html[data-ui-theme="dark"] body:not(.admin-body) .auth-lb__dialog,
html:not([data-ui-theme="light"]) body:not(.admin-body) .auth-lb__dialog {
  /* ظاهر فعلی دیالوگ حفظ شود؛ فقط اطمینان از خوانایی */
  color: inherit;
}

/* فوتر تم تیره: متن روشن روی زمینه تیره */
html[data-ui-theme="dark"] body:not(.admin-body) .footer,
html:not([data-ui-theme="light"]) body:not(.admin-body) .footer {
  color: #e2e8f0;
}
html[data-ui-theme="dark"] body:not(.admin-body) .footer a,
html:not([data-ui-theme="light"]) body:not(.admin-body) .footer a {
  color: #e8c65a !important;
}

/* =========================================================
   منوی همبرگری موبایل — کنتراست کامل روشن / تیره
   ========================================================= */
@media (max-width: 980px) {
  /* —— تیره: طلایی/سفید روی زمینه سرمه‌ای —— */
  html[data-ui-theme="dark"] body:not(.admin-body) .nav,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav {
    background: #06182e !important;
    color: #f8fafc !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav__drawer-head,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__drawer-head {
    color: #e8c65a !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav__drawer-head strong,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__drawer-head strong {
    color: #e8c65a !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav__drawer-head span,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__drawer-head span {
    color: rgba(226, 232, 240, 0.72) !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav-acc,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav-acc {
    background: rgba(255, 255, 255, 0.05) !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav-acc__btn,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav-acc__btn {
    color: #e8c65a !important;
    background: transparent !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav-acc__btn span,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav-acc__btn span {
    color: inherit !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav-acc__chev,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav-acc__chev {
    border-color: #e8c65a !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav__acc .nav__link,
  html[data-ui-theme="dark"] body:not(.admin-body) .nav-sub__btn,
  html[data-ui-theme="dark"] body:not(.admin-body) .nav-sub__clip .nav__link,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__acc .nav__link,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav-sub__btn,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav-sub__clip .nav__link {
    color: rgba(248, 250, 252, 0.94) !important;
    border-bottom-color: rgba(232, 198, 90, 0.28) !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav__acc .nav__link.is-active,
  html[data-ui-theme="dark"] body:not(.admin-body) .nav__acc .nav__link:hover,
  html[data-ui-theme="dark"] body:not(.admin-body) .nav-sub__btn.is-active,
  html[data-ui-theme="dark"] body:not(.admin-body) .nav-sub.is-open .nav-sub__btn,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav__acc .nav__link.is-active,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav-sub__btn.is-active {
    color: #e8c65a !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav-sub,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav-sub {
    background: rgba(255, 255, 255, 0.04) !important;
  }
  html[data-ui-theme="dark"] body:not(.admin-body) .nav .btn-gold.nav__cta--drawer,
  html:not([data-ui-theme="light"]) body:not(.admin-body) .nav .btn-gold.nav__cta--drawer {
    background: linear-gradient(135deg, #e8c65a, #c9a227) !important;
    color: #06182e !important;
  }

  /* —— روشن: متن تیره روی سفید — بدون طلایی کم‌کنتراست —— */
  html[data-ui-theme="light"] body:not(.admin-body) .nav {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: -18px 0 50px rgba(15, 23, 42, 0.14) !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav__drawer-head {
    color: #0f172a !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav__drawer-head strong {
    color: #0f172a !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav__drawer-head span {
    color: #475569 !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav-acc {
    background: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav-acc__btn {
    color: #0f172a !important;
    background: transparent !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav-acc__btn span {
    color: #0f172a !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav-acc__chev {
    border-color: #0f172a !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav__acc .nav__link,
  html[data-ui-theme="light"] body:not(.admin-body) .nav-sub__btn,
  html[data-ui-theme="light"] body:not(.admin-body) .nav-sub__clip .nav__link {
    color: #0f172a !important;
    border-bottom-color: rgba(15, 23, 42, 0.12) !important;
    background: transparent !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav__acc .nav__link.is-active,
  html[data-ui-theme="light"] body:not(.admin-body) .nav__acc .nav__link:hover,
  html[data-ui-theme="light"] body:not(.admin-body) .nav-sub__btn.is-active,
  html[data-ui-theme="light"] body:not(.admin-body) .nav-sub.is-open .nav-sub__btn {
    color: #9a3412 !important;
    border-bottom-color: #b45309 !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav-sub {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav-sub__chev {
    border-color: currentColor !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav .btn-gold.nav__cta--drawer,
  html[data-ui-theme="light"] body:not(.admin-body) .nav .btn-gold.nav__cta--drawer span,
  html[data-ui-theme="light"] body:not(.admin-body) .nav .btn-gold.nav__cta--drawer .btn-ico {
    background: linear-gradient(135deg, #e8c65a, #c9a227) !important;
    color: #06182e !important;
  }
  html[data-ui-theme="light"] body:not(.admin-body) .nav .btn-gold.nav__cta--drawer * {
    color: #06182e !important;
  }
}

/* دسکتاپ: لینک فعال در تم روشن — قهوه‌ای تیره نه طلایی روشن */
html[data-ui-theme="light"] body:not(.admin-body) .nav__bar .nav__link,
html[data-ui-theme="light"] body:not(.admin-body) .nav__bar .nav__dd__trigger,
html[data-ui-theme="light"] body:not(.admin-body) .nav__more-btn {
  color: #0f172a !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .nav__bar .nav__link.is-active,
html[data-ui-theme="light"] body:not(.admin-body) .nav__bar .nav__dd__trigger.is-active,
html[data-ui-theme="light"] body:not(.admin-body) .nav__bar .nav__link:hover,
html[data-ui-theme="light"] body:not(.admin-body) .nav__bar .nav__dd__trigger:hover {
  color: #9a3412 !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .nav__dd__item {
  color: #0f172a !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .nav__dd__item:hover,
html[data-ui-theme="light"] body:not(.admin-body) .nav__dd__item.is-active {
  background: #f1f5f9 !important;
  color: #9a3412 !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .nav__more-drop {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}
html[data-ui-theme="light"] body:not(.admin-body) .topbar .btn-gold,
html[data-ui-theme="light"] body:not(.admin-body) .topbar .btn-gold *,
html[data-ui-theme="light"] body:not(.admin-body) .topbar .btn-buy-header,
html[data-ui-theme="light"] body:not(.admin-body) .topbar .btn-buy-header * {
  color: #06182e !important;
}

/* —— ارتقای ظریف UI/UX عمومی (پایدار، بدون شکست تم) —— */
body:not(.admin-body):not(.is-school-panel) .btn,
body:not(.admin-body):not(.is-school-panel) .btn-gold,
body:not(.admin-body):not(.is-school-panel) .btn-ghost {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
body:not(.admin-body):not(.is-school-panel) .btn:focus-visible,
body:not(.admin-body):not(.is-school-panel) .btn-gold:focus-visible,
body:not(.admin-body):not(.is-school-panel) .nav__link:focus-visible,
body:not(.admin-body):not(.is-school-panel) a:focus-visible {
  outline: 2px solid rgba(201, 162, 39, .7);
  outline-offset: 3px;
}
body:not(.admin-body):not(.is-school-panel) .panel,
body:not(.admin-body):not(.is-school-panel) .card,
body:not(.admin-body):not(.is-school-panel) .story,
body:not(.admin-body):not(.is-school-panel) .guide-step {
  transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}
@media (hover: hover) and (pointer: fine) {
  body:not(.admin-body):not(.is-school-panel) .panel:hover,
  body:not(.admin-body):not(.is-school-panel) .guide-step:hover {
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
  }
}
body:not(.admin-body):not(.is-school-panel) .auth-lb__dialog {
  box-shadow: 0 28px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255,255,255,.06);
}
body:not(.admin-body):not(.is-school-panel) .site-footer {
  letter-spacing: .01em;
}
@media (prefers-reduced-motion: reduce) {
  body:not(.admin-body):not(.is-school-panel) .btn,
  body:not(.admin-body):not(.is-school-panel) .panel,
  body:not(.admin-body):not(.is-school-panel) .guide-step,
  body:not(.admin-body):not(.is-school-panel) .feature-mosaic__main,
  body:not(.admin-body):not(.is-school-panel) .feature-tile {
    transition: none !important;
    transform: none !important;
  }
}
/* —— هم‌ترازی نسخه و صیقل تم روشن حساب —— */
html[data-ui-theme="light"] body:not(.admin-body):not(.is-school-panel) .acc-hero {
  border-color: rgba(15, 23, 42, 0.08) !important;
}
html[data-ui-theme="light"] body:not(.admin-body):not(.is-school-panel) .section__head p {
  color: #475569 !important;
}
