/* ═══════════════════════════════════════════════════════════════
   حساب الطالب — نصوص واضحة فاتح/داكن · موبايل
   ═══════════════════════════════════════════════════════════════ */

body.salma-platform.student-no-header {
  padding-top: 0 !important;
  background: #FDF5FA !important;
}
html[data-theme="dark"] body.salma-platform.student-no-header {
  background: #0B0C10 !important;
}

/* Topbar */
body.salma-platform .acc-topbar {
  position: sticky !important; top: 0 !important; z-index: 120 !important;
  background: transparent !important; padding: 12px 0 0 !important;
}
body.salma-platform .acc-topbar__bar {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-soft) !important;
  padding: 10px 14px !important;
}
html[data-theme="dark"] body.salma-platform .acc-topbar__bar {
  background: rgba(23, 26, 33, 0.96) !important;
  border-color: rgba(243, 163, 220, 0.18) !important;
}
body.salma-platform .acc-topbar__bar::before { display: none !important; }
body.salma-platform .acc-topbar .container {
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
  padding-inline: 12px !important;
}

body.salma-platform .acc-brand__logo,
body.salma-platform .acc-brand__logoFallback {
  width: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
  border: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #C5269B !important;
  padding: 2px !important;
}
body.salma-platform .acc-brand__name {
  font-weight: 900 !important;
  font-size: 15px !important;
  color: var(--text-strong) !important;
}
body.salma-platform .acc-brand__sub {
  color: #B01E8A !important;
  font-weight: 800 !important;
}
html[data-theme="dark"] body.salma-platform .acc-brand__sub {
  color: #F3A3DC !important;
}

body.salma-platform .acc-student,
body.salma-platform .acc-pill {
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: var(--text-strong) !important;
}
body.salma-platform .acc-bell,
body.salma-platform .acc-burger {
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: var(--text-strong) !important;
}
html[data-theme="dark"] body.salma-platform .acc-student,
html[data-theme="dark"] body.salma-platform .acc-pill,
html[data-theme="dark"] body.salma-platform .acc-bell,
html[data-theme="dark"] body.salma-platform .acc-burger {
  background: #171A21 !important;
  color: #FFFFFF !important;
  border-color: rgba(243, 163, 220, 0.22) !important;
}

body.salma-platform.student-no-header .hx-science__item {
  color: rgba(197, 38, 155, 0.11);
}
html[data-theme="dark"] body.salma-platform.student-no-header .hx-science__item {
  color: rgba(243, 163, 220, 0.12);
}

/* Layout */
body.salma-platform .acc-page {
  max-width: none !important;
  width: 100% !important;
  margin: 10px 0 40px !important;
  padding: 0 12px !important;
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  position: relative;
  z-index: 1;
  box-sizing: border-box !important;
}
body.salma-platform .acc-main > .container { max-width: none !important; padding: 0 !important; }

/* Sidebar — نصوص واضحة فاتح/داكن */
body.salma-platform .acc-sidebar {
  position: sticky !important;
  top: 92px !important;
  background: #FFFFFF !important;
  border: 1px solid var(--border) !important;
  border-radius: 22px !important;
  padding: 12px 8px !important;
  box-shadow: var(--shadow-soft) !important;
  color: #14181F !important;
}
html[data-theme="dark"] body.salma-platform .acc-sidebar {
  background: #171A21 !important;
  border-color: rgba(243, 163, 220, 0.18) !important;
  color: #FFFFFF !important;
}
body.salma-platform .acc-sidebar::before {
  content: "";
  display: block;
  height: 3px;
  margin: 4px 10px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #C5269B, #E85BC0);
  border: 0;
}

body.salma-platform .acc-nav__item,
body.salma-platform a.acc-nav__item {
  color: #2E3440 !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  border: 1px solid transparent !important;
  margin-bottom: 3px !important;
  text-decoration: none !important;
}
html[data-theme="dark"] body.salma-platform .acc-nav__item,
html[data-theme="dark"] body.salma-platform a.acc-nav__item {
  color: #FFFFFF !important;
}
body.salma-platform .acc-nav__lbl {
  display: inline !important;
  color: inherit !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}
body.salma-platform .acc-nav__item:hover,
body.salma-platform a.acc-nav__item:hover {
  background: #FDF2F9 !important;
  color: #14181F !important;
}
html[data-theme="dark"] body.salma-platform .acc-nav__item:hover,
html[data-theme="dark"] body.salma-platform a.acc-nav__item:hover {
  background: #22262F !important;
  color: #FFFFFF !important;
}
body.salma-platform .acc-nav__item.is-active,
body.salma-platform a.acc-nav__item.is-active {
  background: #FDF2F9 !important;
  border-color: rgba(197, 38, 155, 0.28) !important;
  color: #14181F !important;
  box-shadow: inset 3px 0 0 #C5269B !important;
}
html[data-theme="dark"] body.salma-platform .acc-nav__item.is-active,
html[data-theme="dark"] body.salma-platform a.acc-nav__item.is-active {
  background: #2A1530 !important;
  border-color: rgba(243, 163, 220, 0.35) !important;
  color: #FFFFFF !important;
  box-shadow: inset 3px 0 0 #E85BC0 !important;
}
body.salma-platform .acc-nav__ico,
body.salma-platform .acc-nav__item .acc-nav__ico,
body.salma-platform .acc-nav__item .acc-nav__ico svg {
  color: #C5269B !important;
  stroke: currentColor !important;
}
html[data-theme="dark"] body.salma-platform .acc-nav__ico,
html[data-theme="dark"] body.salma-platform .acc-nav__item .acc-nav__ico,
html[data-theme="dark"] body.salma-platform .acc-nav__item .acc-nav__ico svg {
  color: #F3A3DC !important;
  stroke: currentColor !important;
}
body.salma-platform .acc-nav__item.is-danger,
body.salma-platform a.acc-nav__item.is-danger {
  background: rgba(179, 58, 43, 0.10) !important;
  color: #B33A2B !important;
}
html[data-theme="dark"] body.salma-platform .acc-nav__item.is-danger,
html[data-theme="dark"] body.salma-platform a.acc-nav__item.is-danger {
  background: rgba(179, 58, 43, 0.28) !important;
  color: #FFD0CA !important;
}

/* Welcome hero — بدون مربع فارغ */
.hx-dash { display: grid; gap: 14px; margin-bottom: 14px; }
.hx-dash__hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 24px;
  color: #14181F;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF5FA 60%, #FCE4F4 100%);
  border: 1px solid rgba(197, 38, 155, 0.18);
  padding: 22px 20px;
}
html[data-theme="dark"] .hx-dash__hero {
  color: #FFFFFF;
  background: linear-gradient(135deg, #171A21 0%, #1E222B 55%, #241828 100%);
  border-color: rgba(243, 163, 220, 0.22);
}
.hx-dash__heroBg { display: none !important; }
.hx-dash__heroCopy {
  position: relative;
  z-index: 1;
  padding: 0;
  max-width: none;
  min-width: 0;
}
.hx-dash__eye {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  color: #B01E8A;
}
html[data-theme="dark"] .hx-dash__eye { color: #F3A3DC; }
.hx-dash__heroCopy h1 {
  margin: 0 0 8px;
  color: #14181F;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.25;
}
html[data-theme="dark"] .hx-dash__heroCopy h1 { color: #FFFFFF; }
.hx-dash__heroCopy p {
  margin: 0;
  color: #3A4150;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.75;
}
html[data-theme="dark"] .hx-dash__heroCopy p {
  color: #D0D4DC;
}

/* Stats / cards — تباين واضح + قابلة للضغط دون تغيير الشكل */
body.salma-platform .acc-stat,
body.salma-platform a.acc-stat {
  border-radius: 18px !important;
  border: 1px solid rgba(197, 38, 155, 0.16) !important;
  background: #FFFFFF !important;
  box-shadow: var(--shadow-soft) !important;
  color: #14181F !important;
  text-decoration: none !important;
}
body.salma-platform a.acc-stat--link {
  display: grid !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.salma-platform a.acc-stat--link:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 38, 155, 0.35) !important;
  box-shadow: 0 10px 24px rgba(197, 38, 155, 0.14) !important;
  color: #14181F !important;
}
body.salma-platform a.acc-stat--link:focus-visible {
  outline: 2px solid #C5269B;
  outline-offset: 2px;
}
html[data-theme="dark"] body.salma-platform .acc-stat,
html[data-theme="dark"] body.salma-platform a.acc-stat {
  background: #1E222B !important;
  border-color: rgba(243, 163, 220, 0.22) !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] body.salma-platform a.acc-stat--link:hover {
  border-color: rgba(243, 163, 220, 0.4) !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] body.salma-platform .acc-stat::before,
html[data-theme="dark"] body.salma-platform .acc-card::before,
html[data-theme="dark"] body.salma-platform .acc-course::before {
  display: none !important;
}
body.salma-platform .acc-stat__val {
  color: #14181F !important;
  font-weight: 900 !important;
}
html[data-theme="dark"] body.salma-platform .acc-stat__val {
  color: #FFFFFF !important;
}
body.salma-platform .acc-stat__lbl {
  color: #3A4150 !important;
  font-weight: 700 !important;
}
html[data-theme="dark"] body.salma-platform .acc-stat__lbl {
  color: #D0D4DC !important;
}
body.salma-platform .acc-stat__ico {
  background: #FDF2F9 !important;
  color: #C5269B !important;
  border-radius: 12px !important;
  border: 0 !important;
}
html[data-theme="dark"] body.salma-platform .acc-stat__ico {
  background: rgba(197, 38, 155, 0.22) !important;
  color: #F3A3DC !important;
}

body.salma-platform .acc-card,
body.salma-platform .acc-panel,
body.salma-platform .acc-box {
  border-radius: 20px !important;
  border: 1px solid rgba(197, 38, 155, 0.16) !important;
  background: #FFFFFF !important;
  box-shadow: var(--shadow-soft) !important;
  color: #14181F !important;
}
html[data-theme="dark"] body.salma-platform .acc-card,
html[data-theme="dark"] body.salma-platform .acc-panel,
html[data-theme="dark"] body.salma-platform .acc-box {
  background: #1E222B !important;
  border-color: rgba(243, 163, 220, 0.22) !important;
  color: #F0F2F6 !important;
}
html[data-theme="dark"] body.salma-platform .acc-card h2,
html[data-theme="dark"] body.salma-platform .acc-card h3,
html[data-theme="dark"] body.salma-platform .acc-panel h2,
html[data-theme="dark"] body.salma-platform .acc-panel h3 {
  color: #FFFFFF !important;
}

body.salma-platform .acc-btn--primary,
body.salma-platform .btn-primary {
  border-radius: 14px !important;
  background: linear-gradient(135deg, #C5269B, #E85BC0) !important;
  color: #fff !important;
  border: 0 !important;
}
body.salma-platform .wallet-balance,
body.salma-platform .acc-wallet__balance {
  background: linear-gradient(135deg, #FCE4F4, #F3A3DC) !important;
  color: #14181F !important;
  border-radius: 22px !important;
  border: 0 !important;
}
html[data-theme="dark"] body.salma-platform .wallet-balance,
html[data-theme="dark"] body.salma-platform .acc-wallet__balance {
  background: linear-gradient(135deg, #2A1530, #1E222B) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(243, 163, 220, 0.25) !important;
}
body.salma-platform .course-hero,
body.salma-platform .lec-hero {
  background: linear-gradient(135deg, #FDF2F9, #FCE4F4) !important;
  color: #14181F !important;
  border-radius: 22px !important;
  border: 1px solid rgba(197, 38, 155, 0.16) !important;
}
html[data-theme="dark"] body.salma-platform .course-hero,
html[data-theme="dark"] body.salma-platform .lec-hero {
  background: linear-gradient(135deg, #171A21, #2A1530) !important;
  color: #FFFFFF !important;
  border-color: rgba(243, 163, 220, 0.22) !important;
}
body.salma-platform .course-hero h1,
body.salma-platform .lec-hero h1,
body.salma-platform .course-hero p,
body.salma-platform .lec-hero p { color: inherit !important; }

/* موبايل: قائمة الأزرار واضحة في الوضعين */
@media (max-width: 980px) {
  body.salma-platform .acc-page { grid-template-columns: 1fr !important; }
  body.salma-platform .acc-sidebar {
    position: relative !important;
    top: auto !important;
  }

  body.salma-platform .acc-sidebar.is-open,
  body.salma-platform:has(#accSideNavToggle:checked) .acc-sidebar {
    background: #FFFFFF !important;
    color: #14181F !important;
  }
  html[data-theme="dark"] body.salma-platform .acc-sidebar.is-open,
  html[data-theme="dark"] body.salma-platform:has(#accSideNavToggle:checked) .acc-sidebar {
    background: #171A21 !important;
    color: #FFFFFF !important;
  }

  body.salma-platform .acc-sidebar.is-open .acc-nav__item,
  body.salma-platform:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__item {
    color: #14181F !important;
  }
  html[data-theme="dark"] body.salma-platform .acc-sidebar.is-open .acc-nav__item,
  html[data-theme="dark"] body.salma-platform:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__item {
    color: #FFFFFF !important;
  }

  body.salma-platform .acc-sidebar.is-open .acc-nav__lbl,
  body.salma-platform:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__lbl {
    color: inherit !important;
    opacity: 1 !important;
  }
  body.salma-platform .acc-sidebar.is-open .acc-nav__ico,
  body.salma-platform .acc-sidebar.is-open .acc-nav__ico svg,
  body.salma-platform:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__ico,
  body.salma-platform:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__ico svg {
    color: #C5269B !important;
    stroke: currentColor !important;
  }
  html[data-theme="dark"] body.salma-platform .acc-sidebar.is-open .acc-nav__ico,
  html[data-theme="dark"] body.salma-platform .acc-sidebar.is-open .acc-nav__ico svg,
  html[data-theme="dark"] body.salma-platform:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__ico,
  html[data-theme="dark"] body.salma-platform:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__ico svg {
    color: #F3A3DC !important;
    stroke: currentColor !important;
  }

  .hx-dash__hero { padding: 18px 16px; }
}
@media (max-width: 560px) {
  .hx-dash__heroCopy p { font-size: 13.5px; }
}
