/* ============================================================================
   نبغة — HOME · World-Class calm-premium design system.
   Grounded in a competitor review (Khan/Brilliant/Duolingo):
   • tinted neutrals (never pure gray)         • color restricted to interactive elements
   • a 3-step elevation scale (soft, layered)  • one tactile primary CTA (pressable lip)
   • generous space + rounded surfaces         • fully theme-aware (light + dark tokens)
   Scoped under `.home2` — no global bleed. Class names kept stable for viewHome().
   ========================================================================== */

@property --h2v { syntax: '<number>'; inherits: false; initial-value: 0; }

/* page canvas behind the home (tinted, matches app paper closely) */
.content.home2wrap {
  max-width: 1180px; margin-inline: auto; width: 100%;
  padding: 26px clamp(16px, 3vw, 46px) 104px;
  background: #F2F4FB;
}
:root[data-theme="dark"] .content.home2wrap { background: #0B0F1A; }

.home2, .lesson2, .px {
  /* surfaces */
  --bg: #F2F4FB; --card: #FFFFFF; --raise: #FAFBFE;
  /* tinted ink scale (cool, biased toward the accent) */
  --tx: #131829; --tx2: #4C566B; --tx3: #8891A6;
  /* tinted hairlines */
  --line: #E6E9F3; --line-soft: #EEF1F9;
  /* one accent — the only saturated family, used ONLY on interactive/among data */
  --acc: #2B4CC8; --acc-2: #4F74E8; --acc-strong: #1E3AA0;
  --acc-tint: #EAEFFC; --acc-tint-2: #F3F6FE;
  /* semantic (used sparingly, tied to real meaning) */
  --good: #16A34A; --good-tint: #E6F6EC; --good-ink: #0E7A38;
  --warm: #F79009; --warm-tint: #FEF3E2; --warm-ink: #B25E09;
  /* elevation scale */
  --e1: 0 1px 2px rgba(19,24,41,.05), 0 1px 3px rgba(19,24,41,.05);
  --e2: 0 2px 4px rgba(19,24,41,.04), 0 10px 24px -8px rgba(19,24,41,.12);
  --e3: 0 5px 12px rgba(19,24,41,.05), 0 26px 50px -16px rgba(19,24,41,.20);
  --focus: 0 0 0 4px rgba(43,76,200,.22);
  /* radii */
  --r: 22px; --r-sm: 16px; --r-xs: 12px;

  color: var(--tx);
  display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px);
  font-feature-settings: "ss01";
}
:root[data-theme="dark"] .home2, :root[data-theme="dark"] .lesson2, :root[data-theme="dark"] .px {
  --bg: #0B0F1A; --card: #141A29; --raise: #19203040;
  --tx: #EAEEF9; --tx2: #9AA3BB; --tx3: #6B7489;
  --line: #262E44; --line-soft: #1E2539;
  --acc: #5B7BF0; --acc-2: #7C97F5; --acc-strong: #AEC0F8;
  --acc-tint: rgba(91,123,240,.16); --acc-tint-2: rgba(91,123,240,.09);
  --good: #3DD68C; --good-tint: rgba(61,214,140,.16); --good-ink: #7FE9B4;
  --warm: #F5A742; --warm-tint: rgba(245,167,66,.15); --warm-ink: #F7C489;
  --e1: 0 1px 2px rgba(0,0,0,.4);
  --e2: 0 2px 6px rgba(0,0,0,.4), 0 12px 28px -10px rgba(0,0,0,.7);
  --e3: 0 5px 12px rgba(0,0,0,.45), 0 30px 58px -18px rgba(0,0,0,.85);
  --focus: 0 0 0 4px rgba(91,123,240,.32);
}

.home2 .ni, .lesson2 .ni, .px .ni { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; flex: none; }
.home2 a:focus-visible, .home2 button:focus-visible,
.lesson2 a:focus-visible, .lesson2 button:focus-visible,
.px a:focus-visible, .px button:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 12px; }
.home2 a, .lesson2 a, .px a { transition: color .15s ease; }

/* ---------- Greeting ---------- */
.h2-greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.h2-greet h1 {
  font-family: 'El Messiri','Tajawal',serif; font-weight: 700;
  font-size: clamp(25px, 3vw, 33px); line-height: 1.12; margin: 0; color: var(--tx);
  letter-spacing: -.02em; text-wrap: balance;
}
.h2-greet .wave { color: var(--warm); }
.h2-greet .gsub { color: var(--tx2); font-size: 15px; margin: 7px 0 0; line-height: 1.5; }
.h2-greet .gsub b, .h2-greet .gsub .hl { color: var(--tx); font-weight: 700; }
.h2-greet .gdate {
  color: var(--tx2); font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--e1);
  padding: 7px 13px; border-radius: 999px;
}

/* ---------- Hero: today's focus (the one focal card) ---------- */
.h2-hero {
  display: grid; grid-template-columns: 1.55fr .85fr; gap: clamp(20px, 3vw, 40px);
  align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--e3); padding: clamp(24px, 3vw, 36px);
  position: relative; overflow: hidden;
}
.h2-hero::before {
  content: ''; position: absolute; inset-inline-start: -40px; inset-block-start: -60px;
  width: 380px; height: 260px; pointer-events: none;
  background: radial-gradient(360px 220px at 0% 0%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 72%);
}
.h2-hero-l { position: relative; z-index: 1; min-width: 0; }
.h2-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800;
  color: var(--acc-strong); background: var(--acc-tint); padding: 7px 13px; border-radius: 999px;
  letter-spacing: .01em;
}
.h2-hero h2 {
  font-family: 'El Messiri','Tajawal',serif; font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.22; margin: 15px 0 9px; color: var(--tx);
  text-wrap: balance; letter-spacing: -.01em;
}
.h2-hero p { color: var(--tx2); font-size: 15.5px; line-height: 1.68; margin: 0 0 22px; max-width: 48ch; }
.h2-hero p .hl { color: var(--tx); font-weight: 700; }
.h2-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.h2-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 13px;
  font-weight: 800; font-size: 15px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .14s cubic-bezier(.22,1,.36,1), box-shadow .18s ease, background .18s ease, border-color .18s;
}
/* tactile primary — pressable "lip" borrowed from Duolingo, kept subtle */
.h2-btn.primary {
  background: linear-gradient(180deg, var(--acc-2), var(--acc)); color: #fff;
  box-shadow: 0 2px 0 var(--acc-strong), 0 12px 22px -10px color-mix(in srgb, var(--acc) 80%, transparent);
}
.h2-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--acc-strong), 0 18px 30px -10px color-mix(in srgb, var(--acc) 72%, transparent); }
.h2-btn.primary:active { transform: translateY(2px); box-shadow: 0 0 0 var(--acc-strong), 0 6px 14px -8px color-mix(in srgb, var(--acc) 70%, transparent); }
.h2-btn.ghost { background: var(--card); border-color: var(--line); color: var(--tx); box-shadow: var(--e1); }
.h2-btn.ghost:hover { transform: translateY(-1px); background: var(--raise); border-color: var(--tx3); box-shadow: var(--e2); }

/* hero right: progress ring */
.h2-hero-r { display: grid; place-items: center; position: relative; z-index: 1; }
.h2-ring-wrap { text-align: center; }
.h2-ring {
  --h2v: 0; width: 176px; height: 176px; border-radius: 50%; margin: 0 auto;
  background: conic-gradient(var(--acc) calc(var(--h2v) * 1%), var(--acc-tint) 0);
  display: grid; place-items: center; transition: --h2v 1.2s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--acc) 55%, transparent);
}
.h2-ring-in {
  width: 138px; height: 138px; border-radius: 50%; background: var(--card);
  display: grid; place-items: center; align-content: center; gap: 3px; box-shadow: inset 0 0 0 1px var(--line-soft);
}
.h2-ring-in b { font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; color: var(--tx); letter-spacing: -.02em; }
.h2-ring-in b::after { content: '%'; font-size: .48em; font-weight: 700; color: var(--tx2); margin-inline-start: 2px; vertical-align: .34em; }
.h2-ring-in span { font-size: 12.5px; color: var(--tx2); font-weight: 700; }
.h2-ring-cap { margin-top: 16px; font-size: 13.5px; color: var(--tx2); }
.h2-ring-cap b { color: var(--tx); font-variant-numeric: tabular-nums; font-weight: 800; }

/* ---------- Stat tiles ---------- */
.h2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 18px); }
.h2-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 19px 20px; display: flex; align-items: center; gap: 15px; box-shadow: var(--e1);
  transition: transform .16s cubic-bezier(.22,1,.36,1), box-shadow .2s ease;
}
.h2-stat:hover { transform: translateY(-3px); box-shadow: var(--e2); }
.h2-stat .si {
  width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font-size: 22px; color: var(--acc-strong); background: var(--acc-tint);
}
.h2-stat.warm .si { color: var(--warm-ink); background: var(--warm-tint); }
.h2-stat.good .si { color: var(--good-ink); background: var(--good-tint); }
.h2-stat .sv { min-width: 0; }
.h2-stat .sv b { font-size: 27px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.08; display: block; color: var(--tx); letter-spacing: -.02em; }
.h2-stat .sv span { font-size: 13px; color: var(--tx2); font-weight: 600; }

/* ---------- Section scaffold ---------- */
.h2-sec { display: flex; flex-direction: column; gap: 15px; }
.h2-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.h2-sec-head h3 { font-family: 'El Messiri','Tajawal',serif; font-weight: 700; font-size: 19px; margin: 0; color: var(--tx); letter-spacing: -.01em; }
.h2-more { color: var(--acc-strong); font-size: 13.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.h2-more:hover { gap: 7px; }

/* ---------- Continue learning (clean cards) ---------- */
.h2-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 18px; }
.h2-course {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
  box-shadow: var(--e1); transition: transform .16s cubic-bezier(.22,1,.36,1), box-shadow .2s ease; display: flex; flex-direction: column;
}
.h2-course:hover { transform: translateY(-4px); box-shadow: var(--e2); }
.h2-course .cc-top {
  padding: 16px 16px 14px; display: flex; align-items: center; gap: 11px;
  background: color-mix(in srgb, var(--cc, #2B4CC8) 8%, var(--card)); border-bottom: 1px solid var(--line);
}
.h2-course .cc-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--cc, #2B4CC8); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--cc, #2B4CC8) 70%, transparent); }
.h2-course .cc-subj { font-size: 12px; font-weight: 800; color: var(--tx2); }
.h2-course .cc-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.h2-course h4 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--tx); line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h2-course .cc-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--tx2); }
.h2-course .cc-meta .free { color: var(--good-ink); font-weight: 800; }
.h2-course .cc-meta b { color: var(--acc-strong); font-variant-numeric: tabular-nums; font-weight: 800; }
.h2-bar { height: 8px; border-radius: 999px; background: var(--acc-tint); overflow: hidden; }
.h2-bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--acc-2), var(--acc)); transition: width 1.1s cubic-bezier(.22,1,.36,1); }

/* ---------- Panels (skills / schedule / league) ---------- */
.h2-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--e1); overflow: hidden; }

/* ---------- Skills list ---------- */
.h2-skill { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line-soft); }
.h2-skill:first-child { border-top: 0; }
.h2-skill .sk-name { font-weight: 700; font-size: 15px; color: var(--tx); }
.h2-skill .sk-chip { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.h2-skill .sk-chip.good { color: var(--good-ink); background: var(--good-tint); }
.h2-skill .sk-chip.mid  { color: var(--acc-strong); background: var(--acc-tint); }
.h2-skill .sk-chip.low  { color: var(--warm-ink); background: var(--warm-tint); }
.h2-skill .sk-track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.h2-skill .sk-track > i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.1s cubic-bezier(.22,1,.36,1); }
.h2-skill .sk-track > i.good { background: var(--good); }
.h2-skill .sk-track > i.mid  { background: linear-gradient(90deg, var(--acc-2), var(--acc)); }
.h2-skill .sk-track > i.low  { background: var(--warm); }
.h2-skill .sk-val { font-size: 13px; color: var(--tx2); font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- Bottom two columns: schedule + league ---------- */
.h2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2vw, 24px); align-items: start; }
.h2-panel .ph { display: flex; align-items: center; gap: 10px; padding: 17px 22px; border-bottom: 1px solid var(--line-soft); }
.h2-panel .ph h3 { margin: 0; font-family: 'El Messiri','Tajawal',serif; font-size: 16.5px; font-weight: 700; color: var(--tx); }
.h2-panel .ph .ph-ic { color: var(--acc-strong); font-size: 19px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--acc-tint); }
.h2-panel .pfoot { padding: 13px 22px; border-top: 1px solid var(--line-soft); }
.h2-panel .pfoot a { color: var(--acc-strong); font-size: 13.5px; font-weight: 800; }

.h2-row { display: flex; align-items: center; gap: 13px; padding: 14px 22px; border-top: 1px solid var(--line-soft); }
.h2-row:first-of-type { border-top: 0; }
.h2-row .rk { width: 26px; text-align: center; font-weight: 800; color: var(--tx3); font-variant-numeric: tabular-nums; flex: none; }
.h2-row .rav { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(150deg, var(--acc-2), var(--acc)); }
.h2-row .rtx { min-width: 0; flex: 1; }
.h2-row .rtx b { display: block; font-size: 14.5px; font-weight: 700; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2-row .rtx span { font-size: 12.5px; color: var(--tx2); }
.h2-row .rend { font-size: 13px; color: var(--tx2); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.h2-row.me { background: var(--acc-tint-2); }
.h2-row.me .rtx b { color: var(--acc-strong); }

/* ---------- Honest empty states ---------- */
.h2-empty { padding: 38px 24px; text-align: center; display: grid; gap: 9px; place-items: center; }
.h2-empty .ee { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; font-size: 27px; color: var(--acc-strong); background: var(--acc-tint); }
.h2-empty b { font-size: 16px; color: var(--tx); font-weight: 700; }
.h2-empty span { font-size: 13.5px; color: var(--tx2); max-width: 36ch; line-height: 1.55; }

/* ---------- Entrance polish ---------- */
@media (prefers-reduced-motion: no-preference) {
  .home2 > * { animation: h2rise .5s cubic-bezier(.22,1,.36,1) both; }
  .home2 > *:nth-child(2) { animation-delay: .05s; }
  .home2 > *:nth-child(3) { animation-delay: .1s; }
  .home2 > *:nth-child(4) { animation-delay: .15s; }
  .home2 > *:nth-child(5) { animation-delay: .2s; }
  .home2 > *:nth-child(6) { animation-delay: .25s; }
  @keyframes h2rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .h2-hero { grid-template-columns: 1fr; }
  .h2-hero-r { justify-self: center; margin-top: 4px; }
  .h2-cols { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .h2-stats { grid-template-columns: 1fr; }
  .h2-ring { width: 150px; height: 150px; }
  .h2-ring-in { width: 118px; height: 118px; }
  .h2-ring-in b { font-size: 30px; }
  .h2-greet h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .home2 .h2-ring, .home2 .h2-bar > i, .home2 .sk-track > i,
  .home2 .h2-stat, .home2 .h2-course, .home2 .h2-btn,
  .lesson2 .h2-bar > i, .lesson2 .lz-lesson { transition: none !important; }
}

/* ============================================================================
   Lesson / course screen — same world-class system as the home.
   ========================================================================== */
.lesson2 { color: var(--tx); display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 24px); }
@media (prefers-reduced-motion: no-preference) {
  .lesson2 > *, .px > * { animation: h2rise .5s cubic-bezier(.22,1,.36,1) both; }
  .lesson2 > *:nth-child(2), .px > *:nth-child(2) { animation-delay: .06s; }
  .lesson2 > *:nth-child(3), .px > *:nth-child(3) { animation-delay: .12s; }
  .px > *:nth-child(4) { animation-delay: .17s; }
}

/* ============================================================================
   .px — shared premium layer for every other screen (courses, learn, progress,
   tutor, homework, rewards, shop, billing, notifications …). Uses the same
   tokens + h2-/lz- components; adds a few generic building blocks.
   ========================================================================== */
.px { color: var(--tx); display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 28px); }

/* page header */
.px-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.px-head .ht { min-width: 0; }
.px-head h1 { font-family: 'El Messiri','Tajawal',serif; font-weight: 700; font-size: clamp(23px, 3vw, 31px); line-height: 1.15; margin: 0; color: var(--tx); letter-spacing: -.01em; }
.px-head p { color: var(--tx2); font-size: 14.5px; margin: 7px 0 0; max-width: 62ch; line-height: 1.6; }
.px-head .ha { display: flex; gap: 10px; flex-wrap: wrap; }

/* toolbar: search + chips */
.px-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.px-search { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--e1); flex: 1; min-width: 220px; color: var(--tx3); }
.px-search input { border: 0; background: none; outline: none; font: inherit; font-size: 14.5px; color: var(--tx); width: 100%; }
.px-search input::placeholder { color: var(--tx3); }
.px-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.px-chip { font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--tx2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s, border-color .15s; }
.px-chip:hover { border-color: var(--acc); color: var(--tx); }
.px-chip.on { background: var(--acc); color: #fff; border-color: var(--acc); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--acc) 70%, transparent); }

/* generic responsive card grid */
.px-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 18px; }
.px-grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* explore hub tiles */
.px-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.px-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--e1); transition: transform .16s ease, box-shadow .18s ease, border-color .18s; }
.px-tile:hover { transform: translateY(-3px); box-shadow: var(--e3); border-color: color-mix(in srgb, var(--acc) 30%, var(--line)); }
.px-tile .ti { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; color: #fff; background: var(--tc, linear-gradient(150deg, var(--acc-2), var(--acc))); }
.px-tile b { font-size: 14px; font-weight: 700; color: var(--tx); }

/* generic stat/metric card (progress, rewards) */
.px-metric { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px; box-shadow: var(--e1); display: flex; flex-direction: column; gap: 6px; }
.px-metric .mv { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--tx); line-height: 1; }
.px-metric .ml { font-size: 13px; color: var(--tx2); font-weight: 600; }
.lz-back { color: var(--tx2); font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.lz-back:hover { color: var(--acc-strong); gap: 9px; }

.lz-hero {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 2.6vw, 28px); align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--e3);
  padding: clamp(22px, 3vw, 34px); position: relative; overflow: hidden;
}
.lz-hero::before {
  content: ''; position: absolute; inset-inline-start: -40px; inset-block-start: -60px; width: 360px; height: 240px; pointer-events: none;
  background: radial-gradient(340px 200px at 0% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 72%);
}
.lz-badge { width: 92px; height: 92px; border-radius: 24px; flex: none; display: grid; place-items: center; font-size: 42px; color: #fff;
  background: var(--cc, var(--acc)); box-shadow: 0 16px 32px -12px color-mix(in srgb, var(--cc, var(--acc)) 62%, transparent); position: relative; z-index: 1; }
.lz-body { min-width: 0; position: relative; z-index: 1; }
.lz-hero h1 { font-family: 'El Messiri','Tajawal',serif; font-weight: 700; font-size: clamp(22px, 2.6vw, 29px); margin: 12px 0 9px; color: var(--tx); letter-spacing: -.01em; text-wrap: balance; }
.lz-hero p { color: var(--tx2); font-size: 15px; line-height: 1.66; margin: 0 0 18px; max-width: 62ch; }
.lz-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--tx2); font-weight: 700; }
.lz-meta .mi { display: inline-flex; align-items: center; gap: 6px; }
.lz-prog { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lz-prog b { color: var(--acc-strong); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px; }

.lz-lesson { display: flex; align-items: center; gap: 14px; padding: 15px 22px; border-top: 1px solid var(--line-soft); transition: background .16s ease; }
.lz-lesson:first-child { border-top: 0; }
.lz-lesson:hover { background: var(--acc-tint-2); }
.lz-num { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: var(--acc-tint); color: var(--acc-strong); font-variant-numeric: tabular-nums; }
.lz-lesson.done .lz-num { background: var(--good-tint); color: var(--good-ink); }
.lz-lt { flex: 1; min-width: 0; }
.lz-lt b { display: block; font-size: 15px; font-weight: 700; color: var(--tx); }
.lz-lt small { font-size: 12.5px; color: var(--tx2); }
.lz-done { font-size: 12.5px; font-weight: 800; color: var(--good-ink); background: var(--good-tint); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 640px) {
  .lz-hero { grid-template-columns: 1fr; }
  .lz-badge { width: 72px; height: 72px; font-size: 34px; }
}
