/* ==========================================================================
   وضوح النصوص — حساب الطالب (فاتح + داكن)
   ملاحظة: الأنماط الحرجة أيضاً في inc/account_contrast_inline.php
   ========================================================================== */

/* رأس الكورس: خلفية حمراء + نص أبيض */
.acc-courseHero,
.acc-lectureHero,
.acc-viewerHero,
.acc-lectureInfo{
  background:linear-gradient(160deg,#3F080D 0%,#75121C 55%,#5E0D15 100%) !important;
  color:#FFFFFF !important;
}
.acc-courseHero .acc-courseHero__title,
.acc-courseHero .acc-courseHero__sub,
.acc-courseHero .acc-courseHero__details,
.acc-courseHero .acc-courseHero__counts,
.acc-courseHero .acc-count,
.acc-courseHero .acc-price,
.acc-courseHero .acc-price__label,
.acc-courseHero .acc-price__val,
.acc-courseHero .acc-price__val--after,
.acc-courseHero .acc-price__val--before,
.acc-courseHero .acc-badge,
.acc-courseHero b,
.acc-lectureInfo,
.acc-lectureInfo__row,
.acc-lectureInfo b{
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
}
.acc-courseHero .acc-count,
.acc-lectureInfo__row{
  background:rgba(255,255,255,.16) !important;
  border-color:rgba(255,255,255,.4) !important;
}
.acc-courseHero .acc-modal-btn--ghost,
.acc-lectureInfo .acc-modal-btn--ghost,
.acc-courseHero .acc-btn--ghost{
  background:rgba(255,255,255,.12) !important;
  border:1.5px solid rgba(255,255,255,.65) !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
}
.acc-courseHero .acc-modal-btn--primary,
.acc-lectureInfo .acc-modal-btn--primary,
.acc-courseHero .acc-btn:not(.acc-btn--ghost){
  background:#FFFFFF !important;
  border-color:#FFFFFF !important;
  color:#5E0D15 !important;
  -webkit-text-fill-color:#5E0D15 !important;
}

/* فاتح: نص داكن على البطاقات الفاتحة — بدون لمس رأس الكورس */
html[data-theme="light"] .acc-card,
html[data-theme="light"] .acc-course,
html[data-theme="light"] .mp-pathItem,
html[data-theme="light"] .acc-item,
html[data-theme="light"] .acc-stat,
html[data-theme="light"] .acc-sidebar,
html[data-theme="light"] .wallet-summary__card,
html[data-theme="light"] .wallet-history__item{
  color:#2A1013 !important;
}
html[data-theme="light"] .acc-card__head h2,
html[data-theme="light"] .acc-course__title,
html[data-theme="light"] .mp-pathItem__title,
html[data-theme="light"] .acc-item__title,
html[data-theme="light"] .acc-stat__val{
  color:#1A0709 !important;
}
html[data-theme="light"] .acc-course__grade,
html[data-theme="light"] .acc-course__meta,
html[data-theme="light"] .acc-card__head p,
html[data-theme="light"] .mp-pathItem__meta,
html[data-theme="light"] .mp-pathItem__status{
  color:#5A3A3E !important;
}
html[data-theme="light"] .acc-card .acc-btn--ghost,
html[data-theme="light"] .acc-card .acc-modal-btn--ghost,
html[data-theme="light"] .mp-pathItem .acc-btn--ghost,
html[data-theme="light"] .mp-pathItem .acc-modal-btn--ghost{
  color:#75121C !important;
  border-color:#75121C !important;
  background:#fff !important;
}

/* داكن: نص فاتح على البطاقات الداكنة */
html[data-theme="dark"] .acc-card,
html[data-theme="dark"] .acc-course,
html[data-theme="dark"] .mp-pathItem,
html[data-theme="dark"] .acc-item,
html[data-theme="dark"] .acc-stat,
html[data-theme="dark"] .acc-sidebar,
html[data-theme="dark"] .wallet-summary__card,
html[data-theme="dark"] .wallet-history__item{
  color:#FFF8F8 !important;
}
html[data-theme="dark"] .acc-card__head h2,
html[data-theme="dark"] .acc-course__title,
html[data-theme="dark"] .mp-pathItem__title,
html[data-theme="dark"] .acc-item__title,
html[data-theme="dark"] .acc-stat__val{
  color:#FFFFFF !important;
}
html[data-theme="dark"] .acc-course__grade,
html[data-theme="dark"] .acc-course__meta,
html[data-theme="dark"] .acc-card__head p,
html[data-theme="dark"] .mp-pathItem__meta,
html[data-theme="dark"] .mp-pathItem__status,
html[data-theme="dark"] .acc-nav__item,
html[data-theme="dark"] .acc-nav__lbl{
  color:#F0D9DC !important;
}
html[data-theme="dark"] .acc-card .acc-btn--ghost,
html[data-theme="dark"] .acc-card .acc-modal-btn--ghost,
html[data-theme="dark"] .mp-pathItem .acc-btn--ghost,
html[data-theme="dark"] .mp-pathItem .acc-modal-btn--ghost{
  color:#F2C9CE !important;
  border-color:rgba(242,201,206,.65) !important;
  background:rgba(255,255,255,.06) !important;
}
