/* ============================================================
   ARIO — 06 DASHBOARD
   White background · Welcome · Rotator (simplified) ·
   My Courses · History · Schedule (empty) ·
   XP Chart (line + scatter with entrance & motion effects) ·
   Tables · Payment · Exam · Category
   + Dark mode aliases
   ============================================================ */

/* ============================================================
   PAGE-WIDE WHITE BACKGROUND
   ============================================================ */
body:has(.dash-welcome) {
  background: #ffffff !important;
  background-image: none !important;
  background-attachment: initial !important;
}
body:has(.dash-welcome)::before,
body:has(.dash-welcome)::after {
  display: none !important;
  content: none !important;
}

/* ============================================================
   WELCOME HERO
   ============================================================ */
.dash-welcome {
  position: relative;
  max-width: 820px;
  margin: 2rem auto 2.6rem;
  padding: 3rem 2.4rem 2.6rem;
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, .07), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1.5px solid rgba(59, 130, 246, .2);
  box-shadow:
    0 22px 55px rgba(59, 130, 246, .1),
    0 0 0 1px rgba(255, 255, 255, .6) inset;
}

.dash-welcome-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  border-radius: 0 0 100px 100px;
  background: linear-gradient(90deg, #3b82f6, #7c3aed, #ec4899, #f59e0b);
  background-size: 200% 100%;
  animation: borderShine 5s linear infinite;
}

.dash-welcome-inner {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.dash-welcome-title {
  display: block;
  font-family: var(--font-fa);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.65;
  color: var(--ink-900);
  margin: 0 0 1.8rem;
  letter-spacing: -.01em;
}

.dash-welcome-prefix {
  display: block;
  font-size: .82em;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: .55rem;
}

/* ============================================================
   ROTATOR — simplified (no glow, no gradient text)
   ============================================================ */
.dash-rotator {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  vertical-align: middle;
  perspective: 1000px;
  cursor: pointer;
  max-width: 100%;
}

.dash-rotator-item {
  grid-area: 1 / 1 / 2 / 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  opacity: 0;
  transform: translateY(30px) rotateX(-60deg) scale(.9);
  transform-origin: 50% 50%;
  transition: opacity .55s cubic-bezier(.4, 0, .2, 1),
              transform .7s cubic-bezier(.34, 1.4, .5, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  pointer-events: none;
  font-family: var(--font-fa);
  font-size: 1.05em;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.55;
  white-space: nowrap;
}

.dash-rotator-item.is-active {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
  pointer-events: auto;
}

.dash-rotator-icon {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  font-size: 1.15em;
  line-height: 1;
}

.dash-rotator-text {
  display: inline-block;
  color: var(--ink-900);
}

/* ============================================================
   SIGNATURE pill
   ============================================================ */
.dash-welcome-signature {
  font-family: var(--font-fa);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-800);
  margin: 0;
  padding: 1rem 1.5rem;
  display: inline-block;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .08), rgba(245, 158, 11, .06));
  border: 1.5px dashed rgba(59, 130, 246, .3);
  line-height: 1.9;
}

/* ✅ «نسخه‌ی بهتر خودت» — فقط Bold معمولی، بدون رنگ گرادیانی */
.dash-welcome-signature b {
  font-weight: 900;
  color: inherit;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: inherit;
  animation: none;
}

/* ============================================================
   GENERIC SECTION WRAPPER
   ============================================================ */
.dash-section {
  position: relative;
  margin: 3.5rem 0;
  padding: 0;
}

/* Section head — هم‌سبک «چرا آریو؟» */
.dash-section .section-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.4rem;
}

.dash-section .section-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--blue-600), var(--yellow-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .7rem;
}

.dash-section .section-title {
  font-family: var(--font-fa);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.4;
  color: var(--ink-900);
  letter-spacing: -.015em;
  margin: 0 0 .55rem;
}

.dash-section .section-sub {
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.95;
}

/* ============================================================
   MY COURSES — Tabs
   ============================================================ */
.dash-course-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin-bottom: 1.6rem;
  max-width: 1180px;
  margin-inline: auto;
}

.dash-course-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  border-radius: 100px;
  border: 1.5px solid rgba(59, 130, 246, .18);
  background: #fff;
  font-family: var(--font-fa);
  font-size: .82rem;
  font-weight: 800;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  -webkit-tap-highlight-color: transparent;
}
.dash-course-tab:hover {
  border-color: rgba(59, 130, 246, .5);
  color: #1d4ed8;
  background: #f5fbff;
  transform: translateY(-1px);
}
.dash-course-tab.active {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 130, 246, .4);
}

.dash-course-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(59, 130, 246, .1);
  font-family: var(--font-fa);
  font-size: .68rem;
  font-weight: 900;
  color: #1d4ed8;
}
.dash-course-tab.active .dash-course-tab-count {
  background: rgba(255, 255, 255, .28);
  color: #fff;
}

.dash-course-panel { display: none; animation: fadeIn .35s ease; }
.dash-course-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   MY COURSES — Cards grid
   ============================================================ */
.dash-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin-inline: auto;
}

.dash-course-card {
  position: relative;
  padding: 1.2rem 1.15rem 1rem;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1.5px solid rgba(59, 130, 246, .15);
  box-shadow: 0 6px 18px rgba(59, 130, 246, .06);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  overflow: hidden;
  isolation: isolate;
}
.dash-course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, #3b82f6, #7c3aed);
  opacity: 0;
  transition: opacity .3s;
}
.dash-course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, .35);
  box-shadow: 0 18px 40px rgba(59, 130, 246, .16);
}
.dash-course-card:hover::before { opacity: 1; }

.dash-course-cover {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .2rem;
}
.dash-course-cover-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid rgba(59, 130, 246, .2);
}
.dash-course-title {
  font-family: var(--font-fa);
  font-size: .98rem;
  font-weight: 900;
  color: var(--ink-900);
  letter-spacing: -.01em;
  line-height: 1.4;
  margin: 0;
}
.dash-course-sub {
  font-family: var(--font-fa);
  font-size: .74rem;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.5;
}

.dash-course-prog {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: .2rem;
}
.dash-course-prog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-fa);
  font-size: .74rem;
  font-weight: 800;
  color: var(--text-soft);
}
.dash-course-prog-head b {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-course-prog-bar {
  height: 6px;
  border-radius: 100px;
  background: rgba(148, 163, 184, .18);
  overflow: hidden;
}
.dash-course-prog-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #3b82f6, #7c3aed);
  transition: width .8s cubic-bezier(.4,0,.2,1);
}

.dash-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  font-family: var(--font-fa);
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-soft);
  padding-top: .5rem;
  border-top: 1px dashed rgba(59, 130, 246, .15);
}
.dash-course-meta span { display: inline-flex; align-items: center; gap: .25rem; }
.dash-course-meta svg { width: 11px; height: 11px; color: #3b82f6; flex-shrink: 0; }

.dash-course-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem .9rem;
  margin-top: auto;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-family: var(--font-fa);
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(59, 130, 246, .28);
  transition: transform .25s, box-shadow .25s;
}
.dash-course-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(59, 130, 246, .45);
}
.dash-course-action svg { width: 12px; height: 12px; transition: transform .3s; }
.dash-course-action:hover svg { transform: translateX(-3px); }

/* ============================================================
   EMPTY STATE — وسط‌چین در همه‌ی پنل‌ها
   ============================================================ */
.dash-course-empty {
  padding: 2.2rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(59, 130, 246, .02);
  border: 1.5px dashed rgba(59, 130, 246, .25);
  max-width: 560px;
  margin-inline: auto;
  grid-column: 1 / -1;
}

.dash-course-empty-icon {
  font-size: 2.4rem;
  margin-bottom: .5rem;
  display: inline-block;
}

.dash-course-empty-title {
  font-family: var(--font-fa);
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink-900);
  margin: 0 0 .35rem;
}

.dash-course-empty-text {
  font-family: var(--font-fa);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   HISTORY — تاریخچه خرید
   ============================================================ */
.dash-history-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: 900px;
  margin-inline: auto;
}

.dash-history-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid rgba(59, 130, 246, .15);
  box-shadow: 0 6px 18px rgba(59, 130, 246, .06);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.dash-history-item:hover {
  transform: translateX(-3px);
  border-color: rgba(59, 130, 246, .4);
  box-shadow: 0 12px 30px rgba(59, 130, 246, .12);
}

.dash-history-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid rgba(59, 130, 246, .2);
}
.dash-history-icon svg { width: 20px; height: 20px; }

.dash-history-body { flex: 1; min-width: 0; }
.dash-history-title {
  font-family: var(--font-fa);
  font-size: .92rem;
  font-weight: 900;
  color: var(--ink-900);
  margin-bottom: .3rem;
  line-height: 1.4;
}
.dash-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  font-family: var(--font-fa);
  font-size: .74rem;
  font-weight: 700;
  color: var(--text-soft);
}

.dash-history-status { flex-shrink: 0; }
.dash-history-status .badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-family: var(--font-fa);
  font-size: .72rem;
  font-weight: 800;
}
.dash-history-status .badge-pending { background: rgba(245,158,11,.15); color: #b45309; }
.dash-history-status .badge-success { background: rgba(16,185,129,.15); color: #047857; }
.dash-history-status .badge-danger  { background: rgba(239,68,68,.15);  color: #b91c1c; }

/* ============================================================
   SCHEDULE — Empty state
   ============================================================ */
.dash-schedule-empty {
  max-width: 620px;
  margin-inline: auto;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, .05), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1.5px dashed rgba(59, 130, 246, .3);
  box-shadow: 0 10px 30px rgba(59, 130, 246, .06);
}

.dash-schedule-empty-icon {
  font-size: 2.8rem;
  margin-bottom: .9rem;
  display: inline-block;
  filter: drop-shadow(0 8px 20px rgba(59, 130, 246, .3));
  animation: statIconFloat 3s ease-in-out infinite;
}

.dash-schedule-empty-title {
  font-family: var(--font-fa);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink-900);
  margin: 0 0 .55rem;
  letter-spacing: -.01em;
}

.dash-schedule-empty-text {
  font-family: var(--font-fa);
  font-size: .88rem;
  line-height: 1.95;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0;
}

/* ============================================================
   STATISTICS — XP Panel & Header
   ============================================================ */
.dash-xp-panel {
  max-width: 980px;
  margin-inline: auto;
  padding: 1.5rem 1.4rem 1.3rem;
  background: #ffffff;
  border: 1.5px solid rgba(59, 130, 246, .15);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(59, 130, 246, .08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.dash-xp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  padding-bottom: .9rem;
  border-bottom: 1px dashed rgba(59, 130, 246, .18);
}

.dash-xp-head-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-fa);
  font-size: .95rem;
  font-weight: 900;
  color: var(--ink-900);
}

/* Trophy icon pulse */
.dash-xp-head-title .dash-xp-head-icon {
  color: #f59e0b;
  flex-shrink: 0;
  transform-origin: center;
  animation: xpIconPulse 2.6s ease-in-out infinite;
}
@keyframes xpIconPulse {
  0%, 100% {
    transform: scale(1) rotate(-3deg);
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, .35));
  }
  50% {
    transform: scale(1.14) rotate(3deg);
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, .8));
  }
}

/* Title shimmer */
.dash-xp-head-title .dash-xp-head-text {
  background: linear-gradient(110deg,
    var(--ink-900) 0%,
    var(--ink-900) 38%,
    #3b82f6 48%,
    #7c3aed 52%,
    var(--ink-900) 62%,
    var(--ink-900) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: xpTitleShimmer 6s linear infinite;
}
@keyframes xpTitleShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: 0% center; }
}

/* ── XP total badge — بی‌رنگ (خاکستری خنثی) ── */
.dash-xp-head-total {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .9rem;
  border-radius: 100px;
  background: rgba(15, 23, 42, .04);
  border: 1px solid rgba(15, 23, 42, .1);
  font-family: var(--font-fa);
  font-size: .78rem;
  font-weight: 800;
  color: var(--text-soft);
  overflow: hidden;
  animation: none;
}

.dash-xp-head-total::before {
  display: none;
}

.dash-xp-head-total b {
  position: relative;
  z-index: 1;
  font-family: var(--font-fa);
  font-weight: 900;
  font-size: 1rem;
  color: var(--ink-900);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

/* ============================================================
   XP CHART — SVG Canvas
   ============================================================ */
.dash-xp-chart {
  position: relative;
  min-height: 280px;
  padding: .5rem 0;
}

.dash-xp-chart-loading {
  display: grid;
  place-items: center;
  height: 260px;
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 700;
}

.dash-xp-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* ---------- Line: draw from left to right ---------- */
.xp-line {
  stroke-dasharray: var(--line-len, 2000);
  stroke-dashoffset: var(--line-len, 2000);
  animation: xpDrawLine 1.6s cubic-bezier(.4, 0, .2, 1) .15s forwards;
}
@keyframes xpDrawLine {
  to { stroke-dashoffset: 0; }
}

/* ---------- Area: fade in after the line finishes ---------- */
.xp-area {
  opacity: 0;
  animation: xpAreaFade .9s ease .9s forwards;
}
@keyframes xpAreaFade {
  to { opacity: 1; }
}

/* ---------- Points: pop-in with stagger ---------- */
.xp-point {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: xpPointIn .55s cubic-bezier(.34, 1.4, .5, 1) forwards;
  transition: filter .25s;
}
@keyframes xpPointIn {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
.xp-point:hover {
  filter: drop-shadow(0 0 6px currentColor);
}

/* ---------- Point value labels ---------- */
.xp-point-label {
  opacity: 0;
  animation: xpLabelIn .5s ease forwards;
}
@keyframes xpLabelIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Max point — halo pulse ---------- */
.xp-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: xpHaloPulse 2.6s ease-in-out 2s infinite;
}
@keyframes xpHaloPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  20%, 80% { opacity: .85; }
  50%      { opacity: .25; transform: scale(1.5); }
}

/* ============================================================
   h3.mt — heading pill
   ============================================================ */
h3.mt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.1rem .55rem 1.3rem;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .1) 0%, rgba(168, 85, 247, .09) 55%, rgba(245, 158, 11, .08) 100%);
  border: 1.5px solid rgba(59, 130, 246, .25);
  color: var(--ink-900);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.01em;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 20px rgba(59, 130, 246, .1), inset 0 1px 0 rgba(255, 255, 255, .8);
}
h3.mt::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .7) 50%, transparent);
  transform: skewX(-20deg);
  animation: mtShine 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes mtShine {
  0%   { left: -100%; }
  55%, 100% { left: 170%; }
}
h3.mt::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 60%;
  border-radius: 100px;
  background: linear-gradient(180deg, #3b82f6, #7c3aed, #ec4899);
  background-size: 100% 200%;
  animation: mtBarFlow 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(124, 58, 237, .5);
}
@keyframes mtBarFlow {
  0%, 100% { background-position: 0 0%; }
  50%      { background-position: 0 100%; }
}
h3.mt > * { position: relative; z-index: 1; }

/* ============================================================
   TABLES
   ============================================================ */
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
  border: 1px solid var(--border);
}
.tbl th, .tbl td {
  padding: .9rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.tbl th {
  background: var(--ink-50);
  font-weight: 800;
  color: var(--ink-700);
  font-size: .82rem;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--ink-50); }

/* ============================================================
   PAYMENT / RESULT / EXAM
   ============================================================ */
.pay-card { max-width: 560px; text-align: center; }
.price {
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
  color: var(--ink-800);
  font-family: var(--font-fa);
}
.price b {
  color: var(--blue-700);
  font-family: var(--font-fa);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}
.card-info {
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border: 1px solid var(--blue-200);
  padding: 1.4rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  text-align: center;
}
.card-number {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  letter-spacing: 3px;
  background: #fff;
  padding: .9rem;
  border-radius: 12px;
  margin: .8rem 0;
  color: var(--blue-700);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  direction: ltr;
}
.question {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.question.correct { border-color: var(--success); background: #f0fdf4; }
.question.wrong   { border-color: var(--danger);  background: #fef2f2; }
.opt {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .9rem;
  cursor: pointer;
  border-radius: 10px;
  transition: background .2s;
  font-size: .94rem;
}
.opt:hover { background: var(--ink-50); }
.opt input { accent-color: var(--blue-500); width: 17px; height: 17px; }
.opt-row { padding: .6rem .9rem; border-radius: 10px; margin: .25rem 0; font-size: .92rem; }
.opt-row.is-correct { background: #d1fae5; color: #065f46; font-weight: 700; }
.opt-row.is-wrong   { background: #fee2e2; color: #991b1b; }

code {
  background: var(--ink-100);
  padding: .2rem .55rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--blue-700);
}

.mt { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.1rem; font-weight: 800; }

/* ============================================================
   CATEGORY
   ============================================================ */
.category-title {
  font-family: var(--font-fa);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 900;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
}
.category-sub { color: var(--text-soft); font-size: .98rem; margin-top: .4rem; }
.category-header { text-align: center; margin: 2rem 0 2.4rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .dash-welcome { padding: 2.2rem 1.4rem 2rem; border-radius: 22px; margin-top: 1.2rem; }
  .dash-welcome-title { font-size: 1.15rem; line-height: 1.7; }
  .dash-rotator-item { font-size: .95em; gap: .45rem; white-space: normal; }
  .dash-rotator-icon { font-size: 1em; }
  .dash-welcome-signature { font-size: .88rem; padding: .85rem 1.2rem; }

  .dash-schedule-empty { padding: 2.2rem 1.4rem; border-radius: 16px; }
  .dash-schedule-empty-icon { font-size: 2.2rem; }

  .dash-xp-panel { padding: 1.1rem 1rem 1rem; }
  .dash-xp-chart { min-height: 240px; }
  .dash-xp-head-title { font-size: .88rem; }
  .dash-xp-head-total { padding: .28rem .7rem; font-size: .72rem; }
  .dash-xp-head-total b { font-size: .9rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .xp-line,
  .xp-area,
  .xp-point,
  .xp-point-label,
  .xp-halo,
  .dash-xp-head-icon,
  .dash-xp-head-text,
  .dash-xp-head-total,
  .dash-xp-head-total::before {
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ============================================================
   DARK MODE ALIASES
   ============================================================ */
html.dark-mode body:has(.dash-welcome) {
  background: #05080f !important;
  background-image: none !important;
}

/* Rotator — dark */
html.dark-mode .dash-rotator-text { color: var(--text); }
html.dark-mode .dash-rotator-icon { filter: none; animation: none; }

/* Section head — dark */
html.dark-mode .dash-section .section-title { color: var(--text); }
html.dark-mode .dash-section .section-sub   { color: #94a3b8; }

/* Welcome — dark */
html.dark-mode .dash-welcome {
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 165, 250, .12), transparent 60%),
    linear-gradient(160deg, #0d1424 0%, #080d1a 100%);
  border-color: rgba(96, 165, 250, .25);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, .6),
    0 0 32px rgba(96, 165, 250, .1),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}
html.dark-mode .dash-welcome-title { color: var(--text); }
html.dark-mode .dash-welcome-prefix { color: #94a3b8; }
html.dark-mode .dash-welcome-signature {
  background: linear-gradient(135deg, rgba(96, 165, 250, .12), rgba(251, 191, 36, .08));
  border-color: rgba(96, 165, 250, .4);
  color: var(--text);
}
/* ✅ «نسخه‌ی بهتر خودت» در دارک هم فقط Bold معمولی */
html.dark-mode .dash-welcome-signature b {
  font-weight: 900;
  color: inherit;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: inherit;
  filter: none;
  animation: none;
}

/* Course tabs — dark */
html.dark-mode .dash-course-tab {
  background: linear-gradient(160deg, #0d1424 0%, #080d1a 100%);
  border-color: var(--border);
  color: #94a3b8;
}
html.dark-mode .dash-course-tab:hover {
  border-color: rgba(96, 165, 250, .5);
  color: #93c5fd;
  background: #121b2e;
}
html.dark-mode .dash-course-tab.active {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  color: #fff;
}
html.dark-mode .dash-course-tab-count {
  background: rgba(96, 165, 250, .16);
  color: #93c5fd;
}
html.dark-mode .dash-course-tab.active .dash-course-tab-count {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

/* Course cards — dark */
html.dark-mode .dash-course-card {
  background: linear-gradient(160deg, #0d1424 0%, #080d1a 100%);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
html.dark-mode .dash-course-card:hover {
  border-color: rgba(96, 165, 250, .55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .7), 0 0 32px rgba(96, 165, 250, .18);
}
html.dark-mode .dash-course-cover-icon {
  background: linear-gradient(135deg, #0a1a2e, #0d2340);
  border-color: rgba(96, 165, 250, .3);
}
html.dark-mode .dash-course-title { color: var(--text); }
html.dark-mode .dash-course-sub { color: #94a3b8; }
html.dark-mode .dash-course-prog-head { color: #94a3b8; }
html.dark-mode .dash-course-prog-head b {
  background: linear-gradient(135deg, #93c5fd, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.dark-mode .dash-course-meta { color: #94a3b8; border-top-color: var(--border); }

/* Empty state — dark */
html.dark-mode .dash-course-empty {
  background: rgba(96, 165, 250, .04);
  border-color: rgba(96, 165, 250, .3);
}
html.dark-mode .dash-course-empty-title { color: var(--text); }
html.dark-mode .dash-course-empty-text  { color: #94a3b8; }

/* History — dark */
html.dark-mode .dash-history-item {
  background: linear-gradient(160deg, #0d1424 0%, #080d1a 100%);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
html.dark-mode .dash-history-item:hover {
  border-color: rgba(96, 165, 250, .55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .7), 0 0 24px rgba(96, 165, 250, .15);
}
html.dark-mode .dash-history-icon {
  background: linear-gradient(135deg, #0a1a2e, #0d2340);
  border-color: rgba(96, 165, 250, .3);
  color: #93c5fd;
}
html.dark-mode .dash-history-title { color: var(--text); }
html.dark-mode .dash-history-meta  { color: #94a3b8; }
html.dark-mode .dash-history-status .badge-pending { background: rgba(251,191,36,.18); color: #fcd34d; }
html.dark-mode .dash-history-status .badge-success { background: rgba(52,211,153,.18); color: #6ee7b7; }
html.dark-mode .dash-history-status .badge-danger  { background: rgba(248,113,113,.18); color: #fca5a5; }

/* Schedule — dark */
html.dark-mode .dash-schedule-empty {
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 165, 250, .1), transparent 60%),
    linear-gradient(160deg, #0d1424 0%, #080d1a 100%);
  border-color: rgba(96, 165, 250, .35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
html.dark-mode .dash-schedule-empty-icon  { filter: drop-shadow(0 8px 20px rgba(96, 165, 250, .5)); }
html.dark-mode .dash-schedule-empty-title { color: var(--text); }
html.dark-mode .dash-schedule-empty-text  { color: #94a3b8; }

/* XP panel — dark */
html.dark-mode .dash-xp-panel {
  background: linear-gradient(160deg, #0d1424 0%, #080d1a 100%);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
html.dark-mode .dash-xp-head { border-bottom-color: var(--border); }
html.dark-mode .dash-xp-head-title { color: var(--text); }
html.dark-mode .dash-xp-head-title .dash-xp-head-icon {
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, .7));
}
html.dark-mode .dash-xp-head-title .dash-xp-head-text {
  background: linear-gradient(110deg,
    var(--text) 0%,
    var(--text) 38%,
    #60a5fa 48%,
    #a78bfa 52%,
    var(--text) 62%,
    var(--text) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── XP total badge — dark, بی‌رنگ ── */
html.dark-mode .dash-xp-head-total {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  color: #94a3b8;
  animation: none;
}
html.dark-mode .dash-xp-head-total::before {
  display: none;
}
html.dark-mode .dash-xp-head-total b {
  color: var(--text);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  filter: none;
}

html.dark-mode .dash-xp-chart-loading { color: #94a3b8; }

/* h3.mt — dark */
html.dark-mode h3.mt {
  background: linear-gradient(135deg, rgba(96, 165, 250, .14) 0%, rgba(168, 85, 247, .12) 55%, rgba(251, 191, 36, .1) 100%);
  border-color: rgba(96, 165, 250, .32);
  color: var(--text);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, .5),
    0 0 24px rgba(96, 165, 250, .1),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}
html.dark-mode h3.mt::before {
  background: linear-gradient(120deg, transparent, rgba(147, 197, 253, .35) 50%, transparent);
}
html.dark-mode h3.mt::after {
  background: linear-gradient(180deg, #60a5fa, #a78bfa, #f472b6);
  box-shadow: 0 0 16px rgba(167, 139, 250, .7);
}

/* Tables — dark */
html.dark-mode .tbl {
  background: linear-gradient(160deg, #0d1424 0%, #080d1a 100%);
  border-color: var(--border);
}
html.dark-mode .tbl th { background: #0a101f; color: #cbd5e1; border-bottom-color: var(--border); }
html.dark-mode .tbl td { border-bottom-color: var(--border); color: var(--text); }
html.dark-mode .tbl tbody tr:hover { background: var(--surface-2); }
html.dark-mode code { background: var(--surface-3); color: #93c5fd; border: 1px solid var(--border); }

/* Payment — dark */
html.dark-mode .price   { color: var(--text); }
html.dark-mode .price b { color: #93c5fd; }
html.dark-mode .card-info { background: linear-gradient(135deg, #0a1a2e, #0d2340); border-color: rgba(96, 165, 250, .35); }
html.dark-mode .card-number { background: #05080f; color: #93c5fd; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }

/* Exam / Result — dark */
html.dark-mode .question {
  background: linear-gradient(160deg, #0d1424 0%, #080d1a 100%);
  border-color: var(--border);
}
html.dark-mode .question.correct {
  border-color: rgba(52, 211, 153, .6);
  background: linear-gradient(160deg, rgba(16, 185, 129, .12), rgba(16, 185, 129, .04));
}
html.dark-mode .question.wrong {
  border-color: rgba(248, 113, 113, .6);
  background: linear-gradient(160deg, rgba(239, 68, 68, .12), rgba(239, 68, 68, .04));
}
html.dark-mode .opt       { color: var(--text); }
html.dark-mode .opt:hover { background: var(--surface-2); }
html.dark-mode .opt-row.is-correct { background: rgba(16, 185, 129, .22); color: #6ee7b7; }
html.dark-mode .opt-row.is-wrong   { background: rgba(239, 68, 68, .22);  color: #fca5a5; }

/* Category — dark */
html.dark-mode .category-title {
  background: linear-gradient(135deg, #93c5fd, #c4b5fd 50%, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(147, 197, 253, .25));
}
html.dark-mode .category-sub { color: #94a3b8; }

/* ============================================================
   Shared keyframes
   ============================================================ */
@keyframes borderShine {
  0%   { background-position:   0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes statNumShine {
  to { background-position: 200% center; }
}
@keyframes statIconFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-5px) scale(1.05); }
}