/* ─── learn-hub.css — StockTrendz Learning Hub ─────────────────────────────── */

/* ── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  --lh-bg:          #050b14;
  --lh-surface:     #0a1628;
  --lh-card:        #0e1c30;
  --lh-card-hover:  #122038;
  --lh-border:      rgba(99,102,241,0.15);
  --lh-border-sub:  rgba(255,255,255,0.06);
  --lh-indigo:      #6366f1;
  --lh-violet:      #8b5cf6;
  --lh-blue:        #3b82f6;
  --lh-cyan:        #06b6d4;
  --lh-teal:        #14b8a6;
  --lh-green:       #10b981;
  --lh-amber:       #f59e0b;
  --lh-rose:        #f43f5e;
  --lh-text:        #cbd5e1;
  --lh-muted:       #64748b;
  --lh-heading:     #f1f5f9;
  --lh-r:           16px;
  --lh-r-sm:        10px;
  --lh-r-xs:        6px;
  --lh-shadow:      0 4px 24px rgba(0,0,0,.5);
}

/* ── Base ────────────────────────────────────────────────────────────────────── */
.lh-page {
  background: var(--lh-bg);
  color: var(--lh-text);
  font-family: 'Sora', 'Inter', sans-serif;
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.lh-hero {
  position: relative;
  background: linear-gradient(135deg, #06091a 0%, #0f0d2a 45%, #080f20 100%);
  border-bottom: 1px solid rgba(99,102,241,.2);
  padding: 80px 24px 68px;
  text-align: center;
  overflow: hidden;
}

.lh-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 860px; height: 440px;
  background: radial-gradient(ellipse, rgba(99,102,241,.17) 0%, transparent 65%);
  pointer-events: none;
}

.lh-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(139,92,246,.07) 0%, transparent 65%);
  pointer-events: none;
}

.lh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: .7rem;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.lh-hero-badge svg { width: 12px; height: 12px; }

.lh-hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--lh-heading);
  margin: 0 0 18px;
  letter-spacing: -.5px;
  line-height: 1.1;
}

.lh-hero-title .lh-grad {
  background: linear-gradient(135deg, #818cf8, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lh-hero-sub {
  font-size: 1.05rem;
  color: var(--lh-muted);
  max-width: 600px;
  margin: 0 auto 34px;
  line-height: 1.7;
}

/* Search */
.lh-search-wrap {
  max-width: 560px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 1;
}

.lh-search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  gap: 8px;
  transition: border-color .2s, box-shadow .2s;
}

.lh-search-bar:focus-within {
  border-color: rgba(99,102,241,.6);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.lh-search-bar svg { width: 17px; height: 17px; stroke: var(--lh-muted); flex-shrink: 0; }

.lh-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--lh-heading);
  font-size: .95rem;
  font-family: inherit;
}

.lh-search-bar input::placeholder { color: var(--lh-muted); }

.lh-search-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 40px;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
}

.lh-search-btn:hover { opacity: .9; transform: scale(1.02); }

/* CTAs */
.lh-hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}

.lh-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: 11px 22px;
  border-radius: 40px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(99,102,241,.3);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.lh-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99,102,241,.45);
  color: #fff;
  text-decoration: none;
}

.lh-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--lh-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  padding: 11px 20px;
  border-radius: 40px;
  transition: background .2s, border-color .2s, color .2s;
  cursor: pointer;
  font-family: inherit;
}

.lh-cta-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: var(--lh-heading);
  text-decoration: none;
}

.lh-cta-secondary svg { width: 15px; height: 15px; }
.lh-cta-primary svg  { width: 15px; height: 15px; }

/* Highlight cards */
.lh-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.lh-highlight-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--lh-r);
  padding: 22px;
  text-align: left;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}

.lh-highlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,.35);
  background: rgba(99,102,241,.06);
  text-decoration: none;
}

.lh-hl-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.lh-hl-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.lh-hl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lh-heading);
  margin-bottom: 5px;
}

.lh-hl-desc {
  font-size: .8rem;
  color: var(--lh-muted);
  line-height: 1.5;
}

/* ── Stats bar ───────────────────────────────────────────────────────────────── */
.lh-stats-bar {
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--lh-border-sub);
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.lh-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 32px;
  border-right: 1px solid var(--lh-border-sub);
}

.lh-stat-item:last-child { border-right: none; }

.lh-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lh-heading);
  letter-spacing: -.5px;
}

.lh-stat-label {
  font-size: .68rem;
  color: var(--lh-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Tab navigation ──────────────────────────────────────────────────────────── */
.lh-tab-nav-wrap {
  position: sticky;
  top: 60px;
  z-index: 50;
  background: rgba(5,11,20,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lh-border-sub);
  padding: 0 24px;
}

.lh-tab-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lh-tab-nav::-webkit-scrollbar { display: none; }

.lh-tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--lh-muted);
  font-family: inherit;
  font-size: .86rem;
  font-weight: 500;
  padding: 14px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  position: relative;
}

.lh-tab-btn:hover { color: var(--lh-text); }

.lh-tab-btn.active {
  color: #a5b4fc;
  border-bottom-color: #6366f1;
}

.lh-tab-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Tab panels ──────────────────────────────────────────────────────────────── */
.lh-tab-panel {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  animation: lhFadeIn .25s ease;
}

.lh-tab-panel.active { display: block; }

@keyframes lhFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section header */
.lh-section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.lh-section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--lh-heading);
  letter-spacing: -.3px;
}

.lh-section-sub {
  font-size: .88rem;
  color: var(--lh-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.lh-see-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .83rem;
  font-weight: 600;
  color: #818cf8;
  text-decoration: none;
  transition: gap .2s, color .2s;
}

.lh-see-all:hover { gap: 8px; color: #a5b4fc; text-decoration: none; }
.lh-see-all svg  { width: 13px; height: 13px; }

/* ── Learning Paths ──────────────────────────────────────────────────────────── */
.lh-paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.lh-path-card {
  background: var(--lh-card);
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-r);
  padding: 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}

.lh-path-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--pc, #6366f1);
  border-radius: 3px 3px 0 0;
}

.lh-path-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  border-color: rgba(99,102,241,.35);
}

.lh-path-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lh-path-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: var(--pi-bg, rgba(99,102,241,.12));
  border: 1px solid var(--pi-bd, rgba(99,102,241,.2));
}

.lh-path-award {
  font-size: .68rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.25);
  padding: 3px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lh-path-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--lh-heading);
  margin-bottom: 7px;
}

.lh-path-desc {
  font-size: .83rem;
  color: var(--lh-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.lh-path-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.lh-path-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .76rem;
  color: #94a3b8;
}

.lh-path-meta-item svg { width: 12px; height: 12px; stroke: var(--lh-muted); }

.lh-prog-wrap { margin-bottom: 16px; }

.lh-prog-labels {
  display: flex;
  justify-content: space-between;
  font-size: .73rem;
  color: var(--lh-muted);
  margin-bottom: 6px;
}

.lh-prog-bar {
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  overflow: hidden;
}

.lh-prog-fill {
  height: 100%;
  background: var(--pc, #6366f1);
  border-radius: 10px;
  transition: width .6s ease;
}

.lh-path-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  color: #a5b4fc;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  transition: background .2s, border-color .2s, transform .15s;
  font-family: inherit;
  cursor: pointer;
}

.lh-path-cta:hover {
  background: rgba(99,102,241,.2);
  border-color: rgba(99,102,241,.4);
  transform: scale(1.02);
  text-decoration: none;
  color: #c7d2fe;
}

.lh-path-cta svg { width: 12px; height: 12px; }

/* ── Courses ─────────────────────────────────────────────────────────────────── */
.lh-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.lh-course-card {
  background: var(--lh-card);
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-r);
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}

.lh-course-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cc, rgba(99,102,241,.5));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.lh-course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  border-color: rgba(99,102,241,.35);
  text-decoration: none;
}

.lh-course-card:hover::after { transform: scaleX(1); }

.lh-course-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lh-course-num {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lh-muted);
}

.lh-level-tag {
  font-size: .65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.lt-beginner     { background: rgba(16,185,129,.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,.2); }
.lt-intermediate { background: rgba(59,130,246,.12); color: #93c5fd; border: 1px solid rgba(59,130,246,.2); }
.lt-advanced     { background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.2); }
.lt-pro          { background: rgba(239,68,68,.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,.2); }

.lh-course-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  background: var(--ci-bg, rgba(99,102,241,.1));
  border: 1px solid var(--ci-bd, rgba(99,102,241,.18));
}

.lh-course-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lh-heading);
  margin-bottom: 7px;
  line-height: 1.3;
}

.lh-course-desc {
  font-size: .82rem;
  color: var(--lh-muted);
  line-height: 1.55;
  margin-bottom: 15px;
}

.lh-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 17px;
}

.lh-topic-pill {
  font-size: .68rem;
  font-weight: 500;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: #94a3b8;
  padding: 3px 9px;
  border-radius: 20px;
}

.lh-course-ft {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .77rem;
  color: var(--lh-muted);
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 13px;
}

.lh-course-arrow {
  color: var(--lh-text);
  font-size: .95rem;
  transition: transform .2s;
}

.lh-course-card:hover .lh-course-arrow { transform: translateX(4px); }

/* ── University preview ──────────────────────────────────────────────────────── */
.lh-uni-banner {
  background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(59,130,246,.08));
  border: 1px solid rgba(139,92,246,.22);
  border-radius: var(--lh-r);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.lh-uni-banner-text h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--lh-heading);
  margin-bottom: 8px;
}

.lh-uni-banner-text p {
  font-size: .88rem;
  color: var(--lh-muted);
  max-width: 500px;
  line-height: 1.6;
}

.lh-uni-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.lh-uni-stat-num  { font-size: 1.8rem; font-weight: 800; color: var(--lh-heading); }
.lh-uni-stat-label{ font-size: .68rem; color: var(--lh-muted); text-transform: uppercase; letter-spacing: .5px; }

.lh-uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.lh-uni-mod {
  background: var(--lh-card);
  border: 1px solid var(--lh-border);
  border-left: 3px solid var(--mc, #6366f1);
  border-radius: var(--lh-r-sm);
  padding: 16px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .15s, background .2s;
}

.lh-uni-mod:hover {
  transform: translateX(3px);
  background: var(--lh-card-hover);
  text-decoration: none;
}

.lh-uni-mod-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mc, #6366f1);
  min-width: 30px;
  opacity: .8;
}

.lh-uni-mod-info h3 {
  font-size: .86rem;
  font-weight: 600;
  color: var(--lh-heading);
  margin-bottom: 2px;
}

.lh-uni-mod-info p {
  font-size: .73rem;
  color: var(--lh-muted);
}

.lh-uni-mod-meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.lh-uni-lvl {
  font-size: .6rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.lh-uni-ch { font-size: .68rem; color: var(--lh-muted); }

.lh-uni-cta-row { text-align: center; padding: 8px 0; }

/* ── Resources ───────────────────────────────────────────────────────────────── */
.lh-res-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lh-res-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lh-filter-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--lh-muted);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.lh-filter-btn:hover {
  color: var(--lh-text);
  border-color: rgba(255,255,255,.15);
}

.lh-filter-btn.active {
  background: rgba(99,102,241,.15);
  border-color: rgba(99,102,241,.35);
  color: #a5b4fc;
}

.lh-res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.lh-res-card {
  background: var(--lh-card);
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-r);
  padding: 22px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.lh-res-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  border-color: rgba(99,102,241,.25);
}

.lh-res-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lh-rtype {
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.rt-pdf      { background: rgba(239,68,68,.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,.2); }
.rt-blog     { background: rgba(59,130,246,.12); color: #93c5fd; border: 1px solid rgba(59,130,246,.2); }
.rt-template { background: rgba(16,185,129,.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,.2); }
.rt-checklist{ background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.2); }
.rt-video    { background: rgba(139,92,246,.12); color: #c4b5fd; border: 1px solid rgba(139,92,246,.2); }

.lh-res-icon-btns { display: flex; gap: 4px; }

.lh-icon-btn {
  background: transparent;
  border: none;
  color: var(--lh-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color .2s;
  display: flex; align-items: center;
}

.lh-icon-btn:hover { color: var(--lh-text); }
.lh-icon-btn svg  { width: 15px; height: 15px; }

.lh-res-title {
  font-size: .93rem;
  font-weight: 700;
  color: var(--lh-heading);
  margin-bottom: 6px;
  line-height: 1.35;
}

.lh-res-desc {
  font-size: .79rem;
  color: var(--lh-muted);
  line-height: 1.5;
  margin-bottom: 13px;
}

.lh-res-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
  color: var(--lh-muted);
  margin-bottom: 13px;
}

.lh-res-meta svg { width: 12px; height: 12px; }

.lh-res-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.lh-res-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--lh-text);
  font-family: inherit;
  font-size: .74rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}

.lh-res-btn:hover {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.3);
  color: #a5b4fc;
  text-decoration: none;
}

.lh-res-btn svg { width: 12px; height: 12px; }

/* ── My Progress ─────────────────────────────────────────────────────────────── */
.lh-prog-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.lh-pg-card {
  background: var(--lh-card);
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-r);
  padding: 26px;
}

.lh-pg-card-title {
  font-size: .76rem;
  font-weight: 600;
  color: var(--lh-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.lh-pg-card-title svg { width: 14px; height: 14px; }

.lh-xp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lh-xp-big {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--lh-heading);
  letter-spacing: -1px;
  line-height: 1;
}

.lh-xp-lvl {
  font-size: .78rem;
  color: var(--lh-muted);
  margin-top: 4px;
}

.lh-xp-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(139,92,246,.2));
  border: 2px solid rgba(99,102,241,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.lh-xp-bar-outer { margin-bottom: 8px; }

.lh-xp-bar {
  height: 7px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  overflow: hidden;
}

.lh-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  width: 35%;
  transition: width .8s ease;
}

.lh-xp-next {
  font-size: .72rem;
  color: var(--lh-muted);
  text-align: right;
  margin-top: 4px;
}

/* Streak */
.lh-streak-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.lh-streak-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: -1px;
  line-height: 1;
}

.lh-streak-label { font-size: .88rem; font-weight: 600; color: var(--lh-text); }
.lh-streak-sub   { font-size: .74rem; color: var(--lh-muted); }

.lh-streak-week {
  display: flex;
  gap: 6px;
}

.lh-day-dot {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: .58rem;
  font-weight: 600;
  color: var(--lh-muted);
}

.lh-day-dot.done {
  background: rgba(245,158,11,.18);
  border-color: rgba(245,158,11,.4);
  color: #f59e0b;
}

.lh-day-dot.today {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.65);
  color: #fbbf24;
  box-shadow: 0 0 7px rgba(245,158,11,.3);
}

/* Badges */
.lh-badges-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lh-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lh-badge-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  border: 2px solid rgba(255,255,255,.08);
  transition: transform .2s;
}

.lh-badge-icon:hover { transform: scale(1.1); }

.lh-badge-icon.earned {
  background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(6,182,212,.1));
  border-color: rgba(16,185,129,.35);
  box-shadow: 0 0 14px rgba(16,185,129,.15);
}

.lh-badge-icon.locked {
  background: rgba(255,255,255,.03);
  filter: grayscale(1) opacity(.35);
}

.lh-badge-label {
  font-size: .63rem;
  color: var(--lh-muted);
  text-align: center;
  max-width: 58px;
  line-height: 1.3;
}

/* Completion stats */
.lh-comp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.lh-comp-stat {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--lh-r-sm);
  padding: 14px 10px;
  text-align: center;
}

.lh-comp-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lh-heading);
  margin-bottom: 2px;
  letter-spacing: -.5px;
}

.lh-comp-label {
  font-size: .65rem;
  color: var(--lh-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* In-progress */
.lh-ip-list { display: flex; flex-direction: column; gap: 10px; }

.lh-ip-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--lh-r-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lh-ip-icon { font-size: 1.2rem; flex-shrink: 0; }

.lh-ip-info { flex: 1; min-width: 0; }

.lh-ip-title {
  font-size: .84rem;
  font-weight: 600;
  color: var(--lh-text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lh-ip-bar {
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
}

.lh-ip-fill { height: 100%; border-radius: 4px; }

.lh-ip-pct {
  font-size: .74rem;
  color: var(--lh-muted);
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lh-paths-grid  { grid-template-columns: 1fr 1fr; }
  .lh-courses-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .lh-hero        { padding: 60px 20px 48px; }
  .lh-hero-title  { font-size: 2rem; }
  .lh-hero-ctas   { flex-direction: column; align-items: center; }
  .lh-highlights  { grid-template-columns: 1fr; max-width: 400px; }
  .lh-stats-bar   { gap: 0; }
  .lh-stat-item   { padding: 6px 18px; }
  .lh-tab-panel   { padding: 28px 16px 60px; }
  .lh-paths-grid  { grid-template-columns: 1fr; }
  .lh-courses-grid{ grid-template-columns: 1fr; }
  .lh-res-grid    { grid-template-columns: 1fr; }
  .lh-uni-grid    { grid-template-columns: 1fr; }
  .lh-uni-banner  { flex-direction: column; text-align: center; }
  .lh-uni-stats   { justify-content: center; }
  .lh-section-hd  { flex-direction: column; align-items: flex-start; }
  .lh-prog-dashboard { grid-template-columns: 1fr; }
  .lh-comp-stats  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .lh-hero-ctas a,
  .lh-hero-ctas button { width: 100%; justify-content: center; }
}

/* ── Light mode ──────────────────────────────────────────────────────────── */
:root.light-mode {
  --lh-bg:          #f8fafc;
  --lh-surface:     #f1f5f9;
  --lh-card:        #ffffff;
  --lh-card-hover:  #f8fafc;
  --lh-border:      rgba(0,0,0,.08);
  --lh-border-sub:  rgba(0,0,0,.05);
  --lh-text:        #334155;
  --lh-muted:       #64748b;
  --lh-heading:     #0f172a;
  --lh-shadow:      0 4px 24px rgba(0,0,0,.08);
}
.light-mode .lh-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 45%, #eff6ff 100%);
  border-bottom-color: rgba(99,102,241,.15);
}
.light-mode .lh-hero::before,
.light-mode .lh-hero::after {
  background: radial-gradient(ellipse, rgba(99,102,241,.07) 0%, transparent 65%);
}
.light-mode .lh-filter-btn        { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.1); color: #334155; }
.light-mode .lh-filter-btn:hover  { background: rgba(99,102,241,.08); }
.light-mode .lh-filter-btn.active { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.3); }
