/* ── Exact Theme ported over ── */
:root {
  --theme-main:      #ffd166;
  --theme-dim:  #ffaa33;
  --theme-blue: #4db8ff;
  --theme-glow: rgba(255,209,102,0.15);
}

.header-badge { background: linear-gradient(90deg, var(--theme-main), var(--theme-blue)); color: #0f0e17; }

header {
  background: linear-gradient(135deg, #1a1500 0%, #0f0e17 50%, #001628 100%);
}
header::before {
  background:
    radial-gradient(circle at 25% 55%, rgba(255,209,102,0.18) 0%, transparent 55%),
    radial-gradient(circle at 78% 30%, rgba(77,184,255,0.12) 0%, transparent 50%);
}
header h1 {
  background: linear-gradient(135deg, #fff 20%, var(--theme-main) 55%, var(--theme-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.nav-item.active { border-left-color: var(--theme-main); color: var(--text); }
.lesson-num      { color: var(--theme-main); }

/* streak bar */
.streak-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px 18px;
  border-bottom: 1px solid var(--border);
}
.streak-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.streak-node {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.streak-node.done {
  background: var(--theme-main);
  border-color: var(--theme-main);
  box-shadow: 0 0 8px rgba(255,209,102,0.6);
}
.streak-node.current {
  background: transparent;
  border-color: var(--theme-main);
  animation: pulse-node 1.5s ease-in-out infinite;
}
@keyframes pulse-node {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,209,102,0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(255,209,102,0); }
}

/* custom components */
.insight-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  border-top: 2px solid var(--theme-main);
  transition: transform 0.2s;
}
.insight-card:hover { transform: translateY(-3px); }
.insight-card .ic-icon { font-size: 1.6rem; margin-bottom: 10px; }
.insight-card h5 { font-family: 'Fredoka One', cursive; font-size: 0.95rem; margin-bottom: 6px; color: var(--theme-main); }
.insight-card p  { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }

/* syntax overrides */
.kw  { color: #c77dff; }
.fn  { color: #06d6a0; }
.str { color: #ffaa6b; }
.cm  { color: #4a4870; font-style: italic; }
.num { color: #ff6b9d; }
.cls { color: #ffd166; }
.bi  { color: #4db8ff; }
.out { color: #a7f3d0; }
.dec { color: #ff6b6b; }

.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li {
  counter-increment: step;
  display: flex; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; color: #d4d4e8;
}
.step-list li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--theme-main), var(--theme-blue));
  color: #0f0e17; font-weight: 900; font-size: 12px;
  border-radius: 50%; flex-shrink: 0; margin-top: 2px;
}

@media (max-width: 680px) {
  .compare-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 22px 16px; }
}