/* ================= LearnSphere stylesheet ================= */
/* Soft warm pastel theme — cream background, slate text, lavender + dusty
   rose accents, sage/peach semantic colours. Designed to feel calm and
   readable for long-form learning content. */
:root {
  /* ── Mirrors TekLabs brand palette exactly ── */
  --bg:        #080b14;
  --bg-soft:   #0e1120;
  --card:      #121628;
  --text:      #e8ecf8;
  --muted:     #8892b0;
  --accent:    #6c63ff;          /* TekLabs purple */
  --accent-2:  #00d4aa;          /* TekLabs teal */
  --ok:        #00d4aa;
  --warn:      #f59e0b;
  --bad:       #ff6b6b;
  --border:    rgba(255,255,255,.07);
  --border-strong: rgba(255,255,255,.12);
  --code-bg:   #0e1120;
  --code-text: #c8d0e8;
  --radius: 14px;
  --shadow:    0 8px 40px rgba(108,99,255,.18);
  --shadow-lg: 0 14px 40px rgba(108,99,255,.25);
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 1.4rem 0 0.8rem; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 0; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* header / nav */
.site-header {
  background: rgba(8, 11, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.2rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--text); }
.brand-logo {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; font-weight: 800;
}
.brand-name { letter-spacing: 0.2px; }
nav a { color: var(--muted); margin-left: 1.2rem; font-weight: 500; }
nav a:hover { color: var(--text); }
.iw-nav-cross {
  color: var(--accent-2) !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
}
.iw-nav-cross:hover { color: #fff !important; }
.nav-teklabs-link {
  color: var(--accent-2) !important;
  font-weight: 700 !important;
  padding: .25rem .7rem;
  border: 1px solid rgba(0,212,170,.28);
  border-radius: 8px;
  background: rgba(0,212,170,.07);
  transition: background .15s, border-color .15s;
}
.nav-teklabs-link:hover {
  background: rgba(0,212,170,.14) !important;
  border-color: rgba(0,212,170,.5) !important;
  color: var(--accent-2) !important;
}

/* hero */
.hero {
  padding: 5rem 0 3rem;
  background:
    radial-gradient(1000px 500px at 100% 0%, rgba(108,99,255,0.18), transparent 60%),
    radial-gradient(700px 400px at 0% 50%, rgba(0,212,170,0.12), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 700;
}
.grad-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

.hero-cta { display: flex; gap: 0.8rem; margin: 1.4rem 0; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 10px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
  text-decoration: none; font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; }
.btn-primary:hover { transform: translateY(-1px); color: white; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

.hero-nuggets { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.nugget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem; color: var(--muted);
  box-shadow: var(--shadow);
}

/* orbit visual */
.hero-visual { display: grid; place-items: center; }
.orbit {
  width: 340px; height: 340px; border-radius: 50%;
  border: 1px dashed rgba(155, 138, 203, 0.35);
  position: relative;
  display: grid; place-items: center;
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.core {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 0 60px rgba(155, 138, 203, 0.45);
  animation: spin 30s linear infinite reverse;
}
.planet {
  position: absolute;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--text);
  animation: spin 30s linear infinite reverse;
}
.p1 { top: 8px;  left: 50%; transform: translateX(-50%); }
.p2 { top: 50%; right: 8px; transform: translateY(-50%); }
.p3 { bottom: 8px; left: 50%; transform: translateX(-50%); }
.p4 { top: 50%; left: 8px; transform: translateY(-50%); }

/* stats */
.stats { padding: 2rem 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem; text-align: left;
}
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--accent-2); }
.stat-label { color: var(--muted); font-size: 0.92rem; }

/* feature row */
.feature-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 3rem auto;
}
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; } }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.feature-emoji { font-size: 1.8rem; }
.link { font-weight: 600; }

.why-evaluate { padding: 3rem 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 1.2rem 0; margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.footer-meta { opacity: 0.8; }

/* page hero (non-landing) */
.page-hero {
  padding: 3.2rem 0 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-bottom: 1px solid var(--border);
}
.page { padding: 2rem 0; }

/* course grid */
.course-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem;
}
@media (max-width: 900px) { .course-grid { grid-template-columns: 1fr; } }
.course-card {
  display: flex; gap: 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease;
  border-left: 4px solid var(--accent);
}
.course-card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.course-icon {
  width: 58px; height: 58px; border-radius: 14px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.course-body h3 { margin: 0 0 0.3rem; }
.course-body p { margin: 0.2rem 0; color: var(--muted); }
.course-meta { display: flex; gap: 0.8rem; margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); }

/* course page */
.course-hero {
  padding: 3rem 0 1rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(800px 300px at 20% 0%, rgba(108,99,255,0.14), transparent 70%),
    radial-gradient(600px 300px at 90% 50%, rgba(0,212,170,0.10), transparent 70%),
    var(--bg-soft);
}
.back-link { color: var(--muted); }
.course-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2rem 1.2rem 3rem;
}
@media (max-width: 900px) { .course-layout { grid-template-columns: 1fr; } }
.toc {
  position: sticky; top: 80px; align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  max-height: calc(100vh - 100px);
  overflow: auto;
}
.toc h4 { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.toc nav { display: grid; gap: 0.3rem; }
.toc a { color: var(--muted); font-size: 0.92rem; padding: 0.25rem 0; }
.toc a:hover { color: var(--text); }

.prose h2 { margin-top: 2.4rem; border-left: 4px solid var(--accent); padding-left: 0.8rem; color: var(--text); }
.prose h3 { margin-top: 1.4rem; color: #7a5ea8; }
.prose p, .prose ul, .prose ol, .prose table { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.3rem 0; }
.prose p code, .prose li code, .prose td code, .prose h3 code, .prose h4 code {
  background: #f1ead9;
  color: #5a4a78;
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.88em;
}

.callout {
  background: rgba(108,99,255,0.09);
  border: 1px solid rgba(108,99,255,0.22);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem;
  border-radius: 10px;
  margin: 1.4rem 0;
  color: #3b3855;
}
.callout.success {
  background: #eaf4ee;                    /* pale sage */
  border-color: #cde4d6;
  border-left-color: var(--ok);
  color: #2f5744;
}
.fact {
  background: #faf1e2;                    /* pale peach */
  border: 1px solid #f0dfc1;
  border-left: 4px solid var(--warn);
  padding: 0.8rem 1rem; border-radius: 10px; margin: 1rem 0;
  color: #6b4d1f;
}
.story {
  background: #fdf3f2;                    /* pale rose */
  border: 1px solid #f2d8d6;
  border-left: 4px solid var(--accent-2);
  padding: 0.9rem 1.1rem; border-radius: 10px; margin: 1rem 0;
  color: #4a2f37;
}
.story h4 { margin-top: 0.2rem; color: var(--accent-2); }

.ascii-diagram {
  background: #2c2a3d;                    /* kept dark for readable ASCII art */
  color: #e6e2f0;
  border: 1px solid #3d3a52;
  border-radius: 10px;
  padding: 1rem; overflow-x: auto;
  font-family: var(--mono); font-size: 0.85rem;
  line-height: 1.4;
  margin: 1rem 0;
  white-space: pre;
}
.code {
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem; overflow-x: auto;
  font-family: var(--mono); font-size: 0.86rem;
  margin: 1rem 0;
  line-height: 1.55;
}
.code code { font-family: inherit; white-space: pre; }

.table {
  width: 100%; border-collapse: collapse;
  margin: 1rem 0;
  background: var(--card); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow);
}
.table th, .table td {
  text-align: left; padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table th { background: rgba(108,99,255,0.10); color: var(--accent); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }

.course-footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--border);
}

/* ── Evaluation Corner — new stacked row layout ──────────────────────────── */
.ev-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.ev-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .75rem;
}
.ev-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 .5rem;
}
.ev-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
}

.ev-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 4rem;
}

.ev-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ev-color, var(--accent));
  border-radius: 16px;
  padding: 1.75rem 2rem;
  color: var(--text);
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
  overflow: hidden;
}
.ev-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ev-color) 8%, transparent), transparent 40%);
  pointer-events: none;
}
.ev-row:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  border-color: var(--ev-color, var(--accent));
  color: var(--text);
}

/* Left column */
.ev-row-left {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ev-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ev-color) 18%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--ev-color) 40%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ev-color);
  transition: background .2s;
}
.ev-icon-wrap svg {
  width: 28px;
  height: 28px;
}
.ev-row:hover .ev-icon-wrap {
  background: color-mix(in srgb, var(--ev-color) 28%, transparent);
}

/* Centre column */
.ev-row-body { display: flex; flex-direction: column; gap: .35rem; }
.ev-row-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}
.ev-row-tagline {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ev-color);
  opacity: .85;
}
.ev-row-blurb {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 560px;
}

/* Right column */
.ev-row-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}
.ev-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
}
.ev-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.ev-stat-val--sm { font-size: 1.1rem; }
.ev-stat-lbl {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ev-arrow {
  font-size: 1.4rem;
  color: var(--ev-color);
  opacity: .7;
  transition: opacity .18s, transform .18s;
}
.ev-row:hover .ev-arrow { opacity: 1; transform: translateX(4px); }

@media (max-width: 860px) {
  .ev-row { grid-template-columns: 70px 1fr; gap: 1.25rem; padding: 1.25rem; }
  .ev-row-right { display: none; }
  .ev-title { font-size: 1.8rem; }
}

/* keep old level-card styles for anything still using them */
/* evaluation */
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 3rem; }
@media (max-width: 900px) { .level-grid { grid-template-columns: 1fr; } }
.level-card {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.4rem; color: var(--text);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.level-card:hover { transform: translateY(-2px); color: var(--text); border-color: var(--accent); }
.level-meta { display: flex; gap: 1rem; margin-top: 0.8rem; font-size: 0.9rem; color: var(--muted); }
.level-badge {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 3rem; }
@media (max-width: 900px) { .topic-grid { grid-template-columns: 1fr; } }
.topic-card {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.2rem;
}
.inline-field { display: flex; align-items: center; gap: 0.5rem; margin: 0.6rem 0; color: var(--muted); }
.inline-field input {
  width: 80px; padding: 0.4rem 0.6rem;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit;
}

/* quiz */
.quiz-hero {
  background: linear-gradient(180deg, rgba(108,99,255,0.12), transparent);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.quiz-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.timer {
  background: var(--card); border: 1px solid var(--border);
  padding: 0.8rem 1.2rem; border-radius: 12px; text-align: center;
  min-width: 150px;
}
.timer-label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .12em; }
.timer-value { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; }

.question-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin: 1rem 0;
  position: relative;
}
.question-card.ok  { border-left: 4px solid var(--ok); }
.question-card.bad { border-left: 4px solid var(--bad); }
.q-num {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg); color: var(--muted);
  padding: 0.2rem 0.5rem; border-radius: 6px;
  font-family: var(--mono); font-size: 0.8rem;
}
.options { display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.option {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.option:hover { border-color: var(--accent); }
.option input { margin-top: 0.25rem; accent-color: var(--accent); }
.opt-key { font-family: var(--mono); color: var(--accent); font-weight: 700; }
.opt-val { color: var(--text); }

.quiz-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin: 1.5rem 0 3rem; }

.results-summary {
  display: flex; gap: 2rem; align-items: center; margin: 2rem 0;
  background: var(--card); border: 1px solid var(--border);
  padding: 1.4rem; border-radius: var(--radius);
  flex-wrap: wrap;
}
.score-ring {
  width: 140px; height: 140px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800;
  background: conic-gradient(var(--accent) 0%, var(--bg-soft) 0%);
}
.score-good { background: conic-gradient(var(--ok) 80%, var(--bg-soft) 0%); }
.score-ok   { background: conic-gradient(var(--warn) 50%, var(--bg-soft) 0%); }
.score-low  { background: conic-gradient(var(--bad) 30%, var(--bg-soft) 0%); }

.review-options { list-style: none; padding: 0; display: grid; gap: 0.3rem; }
.review-options li { padding: 0.5rem 0.7rem; background: var(--bg-soft); border-radius: 8px; }
.review-options li.correct { background: #eaf4ee; }
.review-options li.picked   { outline: 1px solid rgba(212,138,138,0.6); }
.review-options li.correct.picked { outline: 1px solid rgba(134,183,155,0.7); }
.tag { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.75rem; margin-left: 0.5rem; }
.tag-ok { background: #eaf4ee; color: #2f5744; }
.tag-bad { background: #fae4e4; color: #7a3939; }

.row-gap { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }

.practical-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 900px) { .practical-grid { grid-template-columns: 1fr; } }
.practical-card {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  padding: 1rem; border-radius: 12px; cursor: pointer;
}
.practical-card:hover { border-color: var(--accent); }
.practical-card input { margin-top: 0.4rem; accent-color: var(--accent); }
.practical-card h4 { margin: 0 0 0.3rem; }

.writeup textarea {
  width: 100%; min-height: 200px;
  padding: 0.9rem; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-family: var(--mono); font-size: 0.9rem; resize: vertical;
}

.flash-stack { margin-top: 1rem; }
.flash {
  padding: 0.7rem 1rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card);
  margin-bottom: 0.5rem;
}
.flash-warning { border-left: 4px solid var(--warn); }
.flash-error   { border-left: 4px solid var(--bad); }
.flash-success { border-left: 4px solid var(--ok); }

.bullets li { margin: 0.4rem 0; }
.muted { color: var(--muted); }

/* =================================================================
   Python course — TOC groups, exercises, AI tutor + explain buttons
   ================================================================= */

/* TOC groups (used in the Python course sidebar) */
.toc-group { margin-bottom: 1.1rem; }
.toc-group-title {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: #a06e6e;
  font-weight: 700;
  margin-bottom: 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed var(--border-strong);
}
.toc-group a {
  display: block;
  font-size: 0.88rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  color: var(--muted);
  transition: background .12s ease, color .12s ease;
}
.toc-group a:hover { background: rgba(108,99,255,0.10); color: var(--text); }
.toc-group a.active {
  background: linear-gradient(90deg, rgba(108,99,255,0.18), rgba(0,212,170,0.10));
  color: var(--text);
  font-weight: 600;
}
.toc-group a code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: #f1ead9;
  color: #5a4a78;
  padding: 0 0.25rem;
  border-radius: 4px;
}

/* Exercise cards */
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 2rem;
}
.exercise-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow);
}
.exercise-card header h3 {
  margin: 0 0 0.4rem;
  color: var(--text);
}
.exercise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.exercise-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f1ead9;
  border: 1px solid var(--border);
  color: #6b6582;
  letter-spacing: 0.03em;
}
.exercise-difficulty {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.exercise-difficulty.easy   { background: #eaf4ee; color: #2f5744; border: 1px solid #cde4d6; }
.exercise-difficulty.medium { background: #faf1e2; color: #6b4d1f; border: 1px solid #f0dfc1; }
.exercise-difficulty.hard   { background: #fae4e4; color: #7a3939; border: 1px solid #f2d0d0; }

.exercise-problem { color: var(--text); margin: 0.2rem 0 0.4rem; }
.exercise-card details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
}
.exercise-card details[open] { background: rgba(108,99,255,0.07); border-color: rgba(108,99,255,0.22); }
.exercise-card summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  padding: 0.2rem 0;
  list-style: none;
}
.exercise-card summary::-webkit-details-marker { display: none; }
.exercise-card summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform .15s ease;
}
.exercise-card details[open] summary::before { content: "▾ "; }
.exercise-card details .code { margin: 0.5rem 0 0.3rem; }
.exercise-concept {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.2rem 0 0.1rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.4rem;
}
.exercise-concept strong { color: var(--accent-2); }

/* Code block "Explain" button wrapper */
.code-wrapper {
  position: relative;
  margin: 1rem 0;
}
.code-wrapper > .code { margin: 0; }
.explain-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(99,102,241,0.45);
  color: #e0e7ff;
  font: 600 0.72rem/1 var(--sans);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity .15s ease, transform .15s ease;
}
.code-wrapper:hover .explain-btn { opacity: 1; }
.explain-btn:hover { transform: translateY(-1px); background: rgba(99,102,241,0.35); }
.explain-btn:disabled { opacity: 0.6; cursor: progress; }

.explain-out {
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 10px;
  font-size: 0.93rem;
  color: #d7dbef;
}
.explain-out .code { margin: 0.5rem 0; font-size: 0.82rem; }
.ai-source {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.ai-source-anthropic { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.35); }
.ai-source-fallback  { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.35); }
.ai-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-style: italic;
}
.ai-spinner::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: ai-pulse 1s ease-in-out infinite;
}
@keyframes ai-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
.ai-err { color: #fca5a5; }

/* Floating tutor widget */
.ai-tutor-launcher {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 40;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font: 600 0.95rem/1 var(--sans);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s ease;
}
.ai-tutor-launcher:hover { transform: translateY(-2px); }

.ai-tutor {
  position: fixed;
  bottom: 5rem;
  right: 1.2rem;
  z-index: 41;
  width: min(420px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 7rem));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ai-tutor[hidden] { display: none; }
.ai-tutor-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.ai-tutor-sub { color: var(--muted); font-size: 0.85rem; }
.ai-tutor-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.ai-tutor-close:hover { color: var(--text); }

.ai-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}
.ai-badge-live    { background: rgba(16,185,129,0.15); color: #6ee7b7; border-color: rgba(16,185,129,0.35); }
.ai-badge-offline { background: rgba(245,158,11,0.15); color: #fcd34d; border-color: rgba(245,158,11,0.35); }

.ai-tutor-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
}
.ai-msg {
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  max-width: 90%;
  line-height: 1.5;
}
.ai-msg-user {
  background: linear-gradient(135deg, rgba(99,102,241,0.45), rgba(236,72,153,0.35));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-msg-bot {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: #d7dbef;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-msg .code { font-size: 0.78rem; margin: 0.4rem 0; }
.ai-source-note {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.ai-tutor-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}
.ai-tutor-input {
  flex: 1;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font: 400 0.92rem/1.4 var(--sans);
  resize: none;
}
.ai-tutor-input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.ai-tutor-send { padding: 0.5rem 1rem; font-size: 0.9rem; }

@media (max-width: 600px) {
  .ai-tutor {
    right: 0.6rem; left: 0.6rem; bottom: 4.5rem;
    width: auto;
  }
}

/* =================================================================
   SQL course — knowledge checks, progress bar, section badges
   ================================================================= */
.knowledge-check {
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.22);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}
.kc-header {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.kc-q { font-weight: 600; color: var(--text); margin: 0 0 0.6rem; }
.kc-reveal { margin-top: 0.3rem; }
.kc-reveal summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
  padding: 0.25rem 0;
  user-select: none;
}
.kc-reveal summary::-webkit-details-marker { display: none; }
.kc-reveal summary::before { content: "▸ "; }
.kc-reveal[open] summary::before { content: "▾ "; }
.kc-answer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin-top: 0.5rem;
  color: var(--text);
}
.kc-answer p { margin: 0 0 0.5rem; }
.kc-answer .code { margin: 0.5rem 0 0; }

.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(0,212,170,0.12));
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 0.5rem;
  vertical-align: middle;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* ── TekLabs/InternWorks topbar ── */
.iw-topbar {
  background: #07040f;
  border-bottom: 1px solid rgba(139,92,246,0.18);
  padding: 0.45rem 0;
  font-size: 0.76rem;
  color: #7c6aaa;
  text-align: center;
  line-height: 1.4;
}
.iw-topbar a { color: #06b6d4; font-weight: 600; text-decoration: none; }
.iw-topbar a:hover { color: #e2eafc; }

/* ================================================================
   InternWorks Homepage — Revamped 2025
   ================================================================ */

/* Shared section helpers */
.iw-section { padding: 4rem 0; }
.iw-section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.iw-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.28);
  border-radius: 999px; padding: .22rem .75rem;
  margin-bottom: .6rem;
}
.iw-section-title { font-size: clamp(1.5rem,2.6vw,2rem); font-weight: 800; margin: 0 0 2rem; color: var(--text); text-align: center; }

/* Hero — TekLabs-matched dark section */
.iw-hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 900px 500px at 75% 40%, rgba(108,99,255,0.22), transparent 65%),
    radial-gradient(ellipse 600px 400px at 15% 80%, rgba(0,212,170,0.14), transparent 60%),
    var(--bg);
  color: rgba(255,255,255,0.95);
}
.iw-hero-inner { display: grid; grid-template-columns: 1fr 400px; gap: 3.5rem; align-items: center; }
.iw-pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.iw-pill {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85); border-radius: 999px; padding: .2rem .65rem;
}
.iw-hero h1 { font-size: clamp(2rem,3.8vw,3rem); margin: 0 0 1rem; line-height: 1.18; color: white; }
.iw-lead { font-size: 1.05rem; color: rgba(255,255,255,0.68); line-height: 1.8; margin: 0 0 1.75rem; max-width: 560px; }
.iw-lead strong { color: rgba(255,255,255,0.92); }
.iw-hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; }
/* ghost button override on dark hero */
.iw-hero .btn-ghost {
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.9);
}
.iw-hero .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.45);
}

/* Orbit graphic */
.iw-orbit { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.iw-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
  box-shadow: 0 0 32px rgba(108,99,255,.4); z-index: 2;
}
.iw-planet {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--border);
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; color: var(--accent);
  box-shadow: var(--shadow);
}
.ip1 { top: 2%; left: 50%; transform: translateX(-50%); }
.ip2 { top: 25%; right: 0%; }
.ip3 { bottom: 20%; right: 4%; }
.ip4 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.ip5 { top: 25%; left: 0%; }

/* Three Pillars */
.iw-pillars-section { text-align: center; }
.iw-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: .5rem; }
.iw-pillar-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  text-align: left; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.iw-pillar-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; opacity: 0; transition: opacity .2s; }
.iw-pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.iw-pillar-card:hover::before { opacity: 1; }
.iw-pillar-learn::before  { background: linear-gradient(90deg, var(--accent), #a78bfa); }
.iw-pillar-eval::before   { background: linear-gradient(90deg, var(--accent-2), #38bdf8); }
.iw-pillar-cert::before   { background: linear-gradient(90deg, #f59e0b, #f97316); }
.iw-pillar-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.iw-pillar-card h3 { margin: 0 0 .65rem; font-size: 1.15rem; }
.iw-pillar-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 0 0 1rem; }
.iw-pillar-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.iw-pillar-list li { font-size: .875rem; color: var(--muted); padding-left: 1.2rem; position: relative; }
.iw-pillar-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.iw-pillar-cert .iw-pillar-list li::before { color: #f59e0b; }
.iw-pillar-link { font-size: .875rem; font-weight: 700; color: var(--accent); margin-top: auto; }
.iw-pillar-link:hover { color: var(--accent-2); }

/* Journey */
.iw-journey { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding-bottom: 1rem; margin-top: 1rem; }
.iw-journey-step {
  flex: 1; min-width: 160px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.25rem;
  text-align: center; position: relative;
}
.iw-jstep-highlight { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.04); }
.iw-jstep-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 900; font-size: .8rem;
  display: grid; place-items: center;
}
.iw-jstep-highlight .iw-jstep-num { background: linear-gradient(135deg,#f59e0b,#f97316); }
.iw-jstep-icon { font-size: 1.6rem; margin: .5rem 0 .6rem; }
.iw-journey-step h4 { margin: 0 0 .4rem; font-size: .95rem; }
.iw-journey-step p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.6; }
.iw-journey-arrow { font-size: 1.4rem; color: var(--border-strong); padding: 4rem .5rem 0; flex-shrink: 0; }

/* Level blocks */
.iw-level-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; }
.iw-level-conqueror { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.03); }
.iw-level-badge {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; padding: .25rem .85rem; margin-bottom: 1.25rem;
}
.iw-badge-refresher  { background: rgba(108,99,255,.14);  color: var(--accent);  border: 1px solid rgba(108,99,255,.3); }
.iw-badge-challenger { background: rgba(0,212,170,.12);  color: var(--accent-2); border: 1px solid rgba(0,212,170,.3); }
.iw-badge-conqueror  { background: rgba(245,158,11,.14); color: #f59e0b;        border: 1px solid rgba(245,158,11,.35); }
.iw-level-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; margin-bottom: 1.25rem; }
.iw-level-text h3 { margin: 0 0 .75rem; font-size: 1.15rem; }
.iw-level-text p  { color: var(--muted); font-size: .9rem; line-height: 1.75; margin-bottom: .75rem; }
.iw-level-stats { display: flex; gap: 1.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.iw-stat { display: flex; flex-direction: column; }
.iw-stat-n { font-size: 1.6rem; font-weight: 900; color: var(--accent); line-height: 1; }
.iw-stat-l { font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.iw-stat-gold .iw-stat-n { color: #b45309; }
.iw-level-visual { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.iw-vis-row { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .875rem; color: var(--muted); }
.iw-vis-row:last-child { border-bottom: none; }
.iw-vis-accent { background: rgba(108,99,255,.08); color: var(--text); font-weight: 600; }
.iw-vis-conqueror .iw-vis-accent { background: rgba(245,158,11,.1); color: #92400e; }

/* Certificate section */
.iw-cert-section { background: var(--bg-soft); border-top: 1px solid var(--border); }
.iw-cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.iw-cert-grid h2 { font-size: clamp(1.4rem,2.4vw,1.9rem); margin: .35rem 0 .85rem; }
.iw-cert-grid p { color: var(--muted); font-size: .93rem; line-height: 1.75; margin-bottom: .75rem; }
.iw-cert-points { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.iw-cert-point { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; }
.iw-check { color: var(--ok); font-weight: 700; flex-shrink: 0; }
.iw-cert-card { display: flex; align-items: center; justify-content: center; }
.iw-cert-mock {
  background: var(--card); border: 2px solid rgba(245,158,11,.4);
  border-radius: 16px; padding: 2rem;
  box-shadow: 0 16px 48px rgba(245,158,11,.12);
  position: relative; max-width: 380px; width: 100%;
}
.iw-cert-mock-header { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.25rem; }
.iw-cert-logo { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); display: grid; place-items: center; font-weight: 900; color: #fff; font-size: .85rem; }
.iw-cert-co { font-size: .8rem; font-weight: 700; color: var(--muted); }
.iw-cert-mock-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b45309; margin-bottom: .75rem; }
.iw-cert-mock-name { font-size: 1.5rem; font-weight: 900; color: var(--text); font-family: Georgia,serif; margin-bottom: .75rem; border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
.iw-cert-mock-body { font-size: .82rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.iw-cert-mock-footer { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.iw-cert-badge { background: rgba(245,158,11,.15); color: #b45309; border: 1px solid rgba(245,158,11,.3); border-radius: 999px; padding: .2rem .7rem; font-size: .72rem; font-weight: 700; }
.iw-cert-github { font-size: .75rem; color: var(--muted); font-family: var(--mono); }
.iw-cert-mock-seal { position: absolute; bottom: 1.25rem; right: 1.5rem; font-size: 2.5rem; color: rgba(245,158,11,.2); }

/* Stats strip */
.iw-stats-strip { background: linear-gradient(135deg,rgba(108,99,255,.12),rgba(0,212,170,.08)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.iw-stats-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; text-align: center; }
.iw-stat-item { display: flex; flex-direction: column; gap: .3rem; }
.iw-stat-big { font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1; }
.iw-stat-sub { font-size: .78rem; color: var(--muted); }

/* CTA banner */
.iw-cta-banner { padding: 4rem 0; text-align: center; background: var(--bg); }
.iw-cta-banner h2 { font-size: clamp(1.4rem,2.4vw,1.9rem); margin: 0 0 .75rem; }
.iw-cta-banner p { color: var(--muted); max-width: 560px; margin: 0 auto 1.75rem; line-height: 1.7; }
.iw-cta-btns { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .iw-hero-inner { grid-template-columns: 1fr; }
  .iw-pillars { grid-template-columns: 1fr; }
  .iw-level-content { grid-template-columns: 1fr; }
  .iw-cert-grid { grid-template-columns: 1fr; }
  .iw-stats-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 700px) {
  .iw-journey { flex-direction: column; }
  .iw-journey-arrow { padding: .25rem 0; transform: rotate(90deg); }
  .iw-stats-grid { grid-template-columns: repeat(2,1fr); }
  .iw-section { padding: 2.5rem 0; }
}

/* =================================================================
   Learning Centre — module breakdown grid
   ================================================================= */
.iw-lc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.iw-lc-grid h2 { font-size: clamp(1.4rem,2.4vw,1.9rem); margin: .35rem 0 .85rem; }
.iw-lc-grid p  { color: var(--muted); font-size: .93rem; line-height: 1.75; margin-bottom: .75rem; }

.iw-module-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.iw-module-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.iw-module-item:hover { background: rgba(108,99,255,.07); }
.iw-module-last { border-bottom: none; }
.iw-mod-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: .05rem;
}
.iw-mod-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}
.iw-mod-desc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.55;
}

/* =================================================================
   Evaluation Corner — level tags, vis numbers, visual variants
   ================================================================= */
.iw-level-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}
.iw-ltag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .22rem .65rem;
  border-radius: 999px;
  background: rgba(108,99,255,.1);
  border: 1px solid rgba(108,99,255,.25);
  color: var(--accent);
}
.iw-ltag-ch {
  background: rgba(0,212,170,.09);
  border-color: rgba(0,212,170,.28);
  color: var(--accent-2);
}

.iw-vis-num {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.8rem;
}
.iw-vis-refresher .iw-vis-num  { color: var(--accent); }
.iw-vis-challenger .iw-vis-num { color: var(--accent-2); }
.iw-vis-conqueror  .iw-vis-num { color: #b45309; }

.iw-vis-row .iw-vis-sub {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: .1rem;
}
.iw-vis-row strong {
  font-size: .88rem;
  color: var(--text);
  display: block;
}

.iw-level-cta {
  display: inline-flex;
  align-items: center;
  font-size: .88rem;
}

/* =================================================================
   Why It Matters section
   ================================================================= */
.iw-why-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3.5rem;
  align-items: start;
}
.iw-why-grid h2 { font-size: clamp(1.4rem,2.4vw,1.9rem); margin: .35rem 0 .85rem; }
.iw-why-grid > div > p { color: var(--muted); font-size: .93rem; line-height: 1.75; margin-bottom: 1rem; }

.iw-why-points {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: .5rem;
}
.iw-why-point {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}
.iw-why-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.iw-why-point strong {
  display: block;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: .3rem;
}
.iw-why-point p {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =================================================================
   CTA Banner — embedded stats row
   ================================================================= */
.iw-cta-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(108,99,255,.07);
  border: 1px solid rgba(108,99,255,.2);
  border-radius: 14px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.iw-cta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.iw-cta-stat .iw-stat-big {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.iw-cta-stat .iw-stat-sub {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
}

/* Responsive additions */
@media (max-width: 960px) {
  .iw-lc-grid     { grid-template-columns: 1fr; }
  .iw-why-grid    { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .iw-cta-stats   { gap: 1.25rem; }
  .iw-cta-stat .iw-stat-big { font-size: 1.4rem; }
}

/* =================================================================
   Hero right-side stats + badge grid
   ================================================================= */
.iw-hero-stats-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.iw-hstat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.iw-hstat-n {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.iw-hstat-l {
  font-size: .75rem;
  color: rgba(255,255,255,0.5);
}
.iw-hero-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.iw-hbadge {
  border-radius: 12px;
  padding: .85rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  border: 1px solid rgba(255,255,255,0.08);
}
.iw-hbadge small {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  margin-top: .15rem;
}
.hb-purple { background: rgba(108,99,255,0.18); border-color: rgba(108,99,255,0.3); }
.hb-teal   { background: rgba(0,212,170,0.14);  border-color: rgba(0,212,170,0.28); }
.hb-gold   { background: rgba(245,158,11,0.14);  border-color: rgba(245,158,11,0.28); }
.hb-dark   { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

/* =================================================================
   InternWorks Logo — brand image
   ================================================================= */
.brand-logo-img {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

/* =================================================================
   Hero Course Grid  (replaces orbit visual)
   ================================================================= */
.iw-course-grid {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.iw-cg-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: .3rem;
  padding-left: .2rem;
}
.iw-cg-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 3px solid;
  border-radius: 10px;
  padding: .65rem .95rem;
  color: rgba(255,255,255,0.88);
  transition: background .18s, transform .18s;
  cursor: default;
  text-decoration: none;
}
.iw-cg-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateX(4px);
  color: white;
  border-left-width: 4px;
}
.iw-cg-icon   { font-size: 1.25rem; flex-shrink: 0; line-height: 1; }
.iw-cg-body   { flex: 1; min-width: 0; }
.iw-cg-name   { font-size: .88rem; font-weight: 700; color: rgba(255,255,255,0.95); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iw-cg-tag    { font-size: .73rem; color: rgba(255,255,255,0.45); margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iw-cg-arrow  { font-size: .9rem; color: rgba(255,255,255,0.35); flex-shrink: 0; transition: color .18s; }
.iw-cg-card:hover .iw-cg-arrow { color: rgba(255,255,255,0.75); }

/* Per-course left border colours */
.cg-python { border-left-color: #818cf8; }  /* indigo */
.cg-sql    { border-left-color: #38bdf8; }  /* sky   */
.cg-ai     { border-left-color: #a78bfa; }  /* violet */
.cg-agent  { border-left-color: #34d399; }  /* emerald */
.cg-bi     { border-left-color: #fb923c; }  /* orange */
.cg-data   { border-left-color: #f472b6; }  /* pink */

/* hover glow tint matches border colour */
.cg-python:hover { background: rgba(129,140,248,0.10); }
.cg-sql:hover    { background: rgba(56,189,248,0.10);  }
.cg-ai:hover     { background: rgba(167,139,250,0.10); }
.cg-agent:hover  { background: rgba(52,211,153,0.10);  }
.cg-bi:hover     { background: rgba(251,146,60,0.10);  }
.cg-data:hover   { background: rgba(244,114,182,0.10); }

/* CTA stats strip — TekLabs palette */
.iw-cta-stats {
  background: rgba(108,99,255,.07);
  border-color: rgba(108,99,255,.2);
}

@media (max-width: 960px) {
  .iw-hero-inner { grid-template-columns: 1fr; }
  .iw-course-grid { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .iw-course-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   NAV AUTH ELEMENTS
══════════════════════════════════════════════════════════════ */
.iw-nav-user {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-2);
  padding: .3rem .6rem;
  background: rgba(0,212,170,.08);
  border-radius: 20px;
  white-space: nowrap;
}

.iw-nav-auth-btn {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
  transition: background .18s, border-color .18s, color .18s;
}
.iw-nav-auth-btn:hover {
  background: rgba(255,255,255,.07);
  color: #fff !important;
}
.iw-nav-auth-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}
.iw-nav-auth-btn--primary:hover {
  background: #7d76ff;
  border-color: #7d76ff;
  color: #fff !important;
}

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES (register / login)
══════════════════════════════════════════════════════════════ */
.iw-auth-section {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.2rem;
  background:
    radial-gradient(ellipse 700px 400px at 80% 20%, rgba(108,99,255,.15), transparent 60%),
    radial-gradient(ellipse 500px 300px at 10% 80%, rgba(0,212,170,.10), transparent 55%),
    var(--bg);
}

.iw-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(108,99,255,.12);
}

.iw-auth-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.75rem;
}
.iw-auth-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.iw-auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 .35rem;
}
.iw-auth-sub {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 1.5rem;
}

/* Alert banners */
.iw-auth-alert {
  padding: .7rem 1rem;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border-left: 3px solid transparent;
}
.iw-auth-alert--error {
  background: rgba(255,107,107,.12);
  border-color: var(--bad);
  color: #fca5a5;
}
.iw-auth-alert--success {
  background: rgba(0,212,170,.12);
  border-color: var(--ok);
  color: #6ee7b7;
}

/* Form */
.iw-auth-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: .5rem; }

.iw-field { display: flex; flex-direction: column; gap: .4rem; }
.iw-field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.iw-field-hint { font-weight: 400; text-transform: none; opacity: .7; }

.iw-field input[type="text"],
.iw-field input[type="email"],
.iw-field input[type="tel"],
.iw-field input[type="date"],
.iw-field input[type="password"] {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: .7rem 1rem;
  font-size: .95rem;
  font-family: var(--sans);
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.iw-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,.2);
}
.iw-field input::placeholder { color: var(--muted); opacity: .6; }

/* Force date picker to use dark colour scheme so the calendar popup matches */
.iw-field input[type="date"] {
  color-scheme: dark;
}

/* Remember-me row */
.iw-field--row { flex-direction: row; align-items: center; }
.iw-check-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
}
.iw-check-label input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }

/* Submit button */
.iw-auth-btn {
  width: 100%;
  padding: .8rem 1.5rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--accent), #7d76ff);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  transition: opacity .18s, transform .12s;
  margin-top: .4rem;
}
.iw-auth-btn:hover { opacity: .9; transform: translateY(-1px); }
.iw-auth-btn:active { transform: translateY(0); }

/* Switch link */
.iw-auth-switch {
  margin: 1.25rem 0 0;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}
.iw-auth-switch a {
  color: var(--accent-2);
  font-weight: 600;
}
.iw-auth-switch a:hover { color: #fff; }

/* Forgot password link */
.iw-field--space-between { justify-content: space-between; }
.iw-forgot-link {
  font-size: .82rem;
  color: var(--accent-2);
  font-weight: 500;
}
.iw-forgot-link:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════════════════════════════ */
.iw-profile-section {
  padding: 3rem 0 5rem;
  min-height: calc(100vh - 120px);
}

.iw-profile-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar */
.iw-profile-sidebar {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: sticky;
  top: 90px;
}

.iw-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 4px rgba(108,99,255,.2);
}

.iw-profile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}

.iw-profile-email {
  font-size: .78rem;
  color: var(--muted);
  word-break: break-all;
  margin-bottom: 1rem;
}

.iw-profile-meta {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .4rem;
  text-align: left;
}

/* Profile cards */
.iw-profile-card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.iw-profile-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.iw-profile-form { display: flex; flex-direction: column; gap: 0; }

.iw-pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.iw-profile-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

/* Smaller button variant */
.iw-auth-btn--sm {
  width: auto;
  padding: .65rem 1.75rem;
  font-size: .92rem;
  margin-top: 0;
}

/* Danger button variant (change password) */
.iw-auth-btn--danger {
  background: linear-gradient(120deg, #dc2626, #ef4444);
}
.iw-auth-btn--danger:hover { opacity: .88; }

/* Disabled input (email - read only) */
.iw-field input:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ── User type badge ─────────────────────────────────────────────────────── */
.iw-profile-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: .25rem .85rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.iw-badge--regular  { background: rgba(16,185,129,.15); color: #10b981; }
.iw-badge--admin    { background: rgba(139,92,246,.18);  color: #8b5cf6; }

/* ── Activity stats grid ─────────────────────────────────────────────────── */
.iw-stats-card { }

.iw-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.iw-stat-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem .75rem;
  text-align: center;
  transition: border-color .2s;
}
.iw-stat-tile:hover { border-color: var(--accent); }

.iw-stat-icon  { font-size: 1.4rem; margin-bottom: .35rem; }
.iw-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.iw-stat-value--sm { font-size: 1rem; font-weight: 700; }
.iw-stat-label {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Recent course row */
.iw-stat-recent {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .88rem;
}
.iw-stat-recent-label { color: var(--text-muted); }
.iw-stat-recent-value { color: var(--text); font-weight: 600; flex: 1; }
.iw-badge--in_progress  { background: rgba(245,158,11,.15); color: #f59e0b;
                           border-radius: 99px; padding: .15rem .65rem;
                           font-size: .72rem; font-weight: 700; }
.iw-badge--completed    { background: rgba(16,185,129,.15); color: #10b981;
                           border-radius: 99px; padding: .15rem .65rem;
                           font-size: .72rem; font-weight: 700; }

@media (max-width: 860px) {
  .iw-profile-wrap { grid-template-columns: 1fr; }
  .iw-profile-sidebar { position: static; }
  .iw-pf-grid { grid-template-columns: 1fr; }
  .iw-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .iw-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.iw-auth-switch a:hover { color: #fff; }

/* ── Admin nav link ──────────────────────────────────────────────────────── */
.iw-nav-admin {
  font-size: .82rem;
  font-weight: 700;
  color: #8b5cf6 !important;
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 8px;
  padding: .3rem .85rem;
  letter-spacing: .03em;
  transition: background .2s;
}
.iw-nav-admin:hover { background: rgba(139,92,246,.24) !important; }

/* ── Admin Insights page ─────────────────────────────────────────────────── */
.adm-section { padding: 2.5rem 0 4rem; }

.adm-header { margin-bottom: 2rem; }
.adm-title  { font-size: 1.7rem; font-weight: 800; color: var(--text); margin: 0 0 .25rem; }
.adm-subtitle { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* Overview tile row */
.adm-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.adm-tile {
  border-radius: 16px;
  padding: 1.4rem 1rem;
  text-align: center;
  border: 1px solid transparent;
}
.adm-tile--blue   { background: rgba(8,145,178,.12);  border-color: rgba(8,145,178,.25); }
.adm-tile--green  { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.25); }
.adm-tile--purple { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.25); }
.adm-tile--cyan   { background: rgba(6,182,212,.12);  border-color: rgba(6,182,212,.25); }
.adm-tile--orange { background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.25); }
.adm-tile--red    { background: rgba(220,38,38,.10);  border-color: rgba(220,38,38,.22); }

.adm-tile-icon  { font-size: 1.5rem; margin-bottom: .4rem; }
.adm-tile-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.adm-tile-label { font-size: .72rem; color: var(--text-muted); margin-top: .3rem;
                  text-transform: uppercase; letter-spacing: .05em; }

/* Content blocks */
.adm-block {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.adm-block--narrow { max-width: 480px; }

.adm-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.25rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
}

/* Two-column layout */
.adm-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Tables */
.adm-table-wrap { overflow-x: auto; }
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.adm-table th {
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  padding: .4rem .75rem;
  border-bottom: 1px solid var(--border);
}
.adm-table td {
  padding: .55rem .75rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: rgba(255,255,255,.03); }

.adm-num   { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.adm-muted { color: var(--text-muted); font-size: .83rem; }
.adm-rank  { text-align: center; font-size: 1rem; }
.adm-score { color: #10b981; font-weight: 700; }
.adm-empty { color: var(--text-muted); font-size: .88rem; font-style: italic; }

/* Evaluation type tags */
.adm-tag {
  display: inline-block;
  border-radius: 99px;
  padding: .15rem .7rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: capitalize;
}
.adm-tag--refresher  { background: rgba(16,185,129,.15);  color: #10b981; }
.adm-tag--challenger { background: rgba(245,158,11,.15);  color: #f59e0b; }
.adm-tag--conqueror  { background: rgba(220,38,38,.15);   color: #ef4444; }

/* Inline bar charts */
.adm-bar-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.adm-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(139,92,246,.5);
  min-width: 2px;
  flex-shrink: 0;
}
.adm-bar--green { background: rgba(16,185,129,.6); }
.adm-bar--blue  { background: rgba(8,145,178,.6);  }

/* Responsive */
@media (max-width: 1100px) {
  .adm-overview-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .adm-row-2         { grid-template-columns: 1fr; }
  .adm-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .adm-block--narrow { max-width: 100%; }
}
