* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

:root {
  --bg: #05030d;
  --bg2: #0a0618;
  --panel: #100a20;
  --panel2: #1a1132;
  --border: #2a1f4a;
  --text: #e8e0ff;
  --muted: #8a7fb5;
  --neon-pink: #ff2fb9;
  --neon-cyan: #00f0ff;
  --neon-purple: #a855f7;
  --neon-green: #00ff9d;
  --danger: #ff3b6b;
  --topbar-h: 62px;
}

/* Animated scanline background */
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: var(--topbar-h);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,47,185,0.12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0,240,255,0.10), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(168,85,247,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ============ TOP BAR ============ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: rgba(5, 3, 13, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
}

.topbar::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-pink), var(--neon-cyan), transparent);
  opacity: 0.6;
}

.menu-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--neon-cyan);
  font-size: 20px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.brand {
  font-size: 18px;
  font-weight: 800;
  margin-left: 14px;
  letter-spacing: 1px;
  color: var(--text);
}

.brand-icon {
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
}

.version {
  color: var(--muted);
  font-size: 12px;
  font-family: monospace;
}

.spacer { flex: 1; }

/* ============ SIDEBAR ============ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.sidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 16px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  color: var(--text);
}

.close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.close-btn:hover { color: var(--danger); }

.sidebar-section {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin: 18px 8px 8px;
  opacity: 0.8;
}

.nav-btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 4px;
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--panel2);
  color: var(--text);
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(255,47,185,0.2), rgba(0,240,255,0.2));
  color: var(--text);
  border-left: 2px solid var(--neon-pink);
}

/* ============ OVERLAY ============ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 150;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ============ CONTENT ============ */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 80px;
  position: relative;
  z-index: 1;
}

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.4s ease; }

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

/* ============ HERO ============ */
.hero {
  text-align: center;
  padding: 40px 10px 30px;
}

.hero-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 12px;
  color: var(--neon-green);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
  font-weight: 900;
}

.grad {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 28px;
}

/* ============ SEARCH ============ */
.search-wrap {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
}

.search-wrap input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
}

/* ============ FILTER CHIPS ============ */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 26px 0;
}

.chip {
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover { color: var(--text); border-color: var(--neon-purple); }

.chip.active {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: white;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255, 47, 185, 0.5);
}

/* ============ TUTORIAL GRID ============ */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.tut-card {
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tut-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tut-card:hover {
  transform: translateY(-6px);
  border-color: var(--neon-purple);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.25);
}

.tut-card:hover::before { opacity: 1; }

.tut-cat {
  display: inline-block;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(255, 47, 185, 0.12);
  color: var(--neon-pink);
  margin-bottom: 14px;
}

.tut-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--text);
}

.tut-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.tut-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tut-meta span { display: flex; align-items: center; gap: 4px; }

.diff {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.diff.beginner { background: rgba(0,255,157,0.15); color: var(--neon-green); }
.diff.intermediate { background: rgba(0,240,255,0.15); color: var(--neon-cyan); }
.diff.advanced { background: rgba(255,59,107,0.15); color: var(--danger); }

/* ============ TUTORIAL DETAIL ============ */
.back-btn {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.back-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0,240,255,0.3);
}

.tut-header {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.tut-header h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 14px 0 12px;
  letter-spacing: -0.5px;
}

.tut-header .intro {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.tut-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-family: monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--panel2);
  color: var(--neon-cyan);
  border: 1px solid var(--border);
}

/* ============ STEPS ============ */
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 20px;
  margin-bottom: 18px;
  position: relative;
}

.step-num {
  position: absolute;
  top: -12px;
  left: 20px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: white;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 50px;
  font-family: monospace;
  box-shadow: 0 4px 15px rgba(255, 47, 185, 0.5);
}

.step h3 {
  font-size: 18px;
  margin: 8px 0 10px;
  color: var(--text);
}

.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.step ul {
  margin: 10px 0 12px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.step ul li::marker { color: var(--neon-cyan); }

/* ============ CODE BLOCK ============ */
.code-block {
  position: relative;
  background: #02010a;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 12px 0;
  overflow: hidden;
}

.code-block::before {
  content: attr(data-lang);
  position: absolute;
  top: 0; left: 0;
  padding: 3px 10px;
  font-size: 10px;
  font-family: monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neon-green);
  background: rgba(0,255,157,0.08);
  border-bottom-right-radius: 6px;
}

.code-block pre {
  padding: 28px 16px 14px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--neon-green);
}

.copy-code {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--panel2);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 6px;
  cursor: pointer;
  font-family: monospace;
  transition: all 0.2s ease;
  z-index: 2;
}

.copy-code:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.copy-code.copied {
  color: var(--neon-green);
  border-color: var(--neon-green);
}

/* ============ CALLOUTS ============ */
.callout {
  padding: 14px 16px;
  border-radius: 10px;
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.6;
  border-left: 3px solid;
}

.callout.warn {
  background: rgba(255, 187, 0, 0.08);
  border-color: #ffbb00;
  color: #ffd97a;
}

.callout.danger {
  background: rgba(255, 59, 107, 0.08);
  border-color: var(--danger);
  color: #ff8fa8;
}

.callout.tip {
  background: rgba(0, 255, 157, 0.08);
  border-color: var(--neon-green);
  color: #7dffc9;
}

/* ============ REPO LINK ============ */
.repo-box {
  margin-top: 30px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255,47,185,0.08), rgba(0,240,255,0.08));
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}

.repo-box p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
  font-family: monospace;
}

.repo-btn {
  display: inline-block;
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 25px rgba(255, 47, 185, 0.5);
  transition: all 0.25s ease;
}

.repo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 47, 185, 0.8);
}

/* ============ EMPTY ============ */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-family: monospace;
}

/* ============ MOBILE ============ */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero { padding: 20px 10px 20px; }
  .tutorial-grid { grid-template-columns: 1fr; }
  .tut-header h1 { font-size: 24px; }
  .tut-header .intro { font-size: 14px; }
  .step { padding: 20px 16px 16px; }
  .content { padding: 20px 14px 60px; }
  .code-block pre { font-size: 12px; padding: 30px 12px 12px; }
}

/* ============ STICKY PLATFORM BAR ============ */
.platform-bar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 50;
  background: rgba(16, 10, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.3s ease;
}

.platform-bar.stuck {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--neon-purple);
}

/* ============ TOAST NOTIFICATION ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #000;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  z-index: 500;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.6);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ============ CONTENT FADE ON SWAP ============ */
#tutorialContent.swapping {
  opacity: 0.3;
  transition: opacity 0.15s ease;
}

#tutorialContent {
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Small "current platform" chip on tutorial page */
.current-plat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

/* ============ PLATFORM BAR — slim version ============ */
.platform-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 22px;
  background: rgba(16, 10, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: sticky;
  top: calc(var(--topbar-h) + 6px);
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  overflow-x: auto;
  scrollbar-width: none;
}

.platform-bar::-webkit-scrollbar { display: none; }

.platform-bar.stuck {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(168, 85, 247, 0.5);
}

.platform-label {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  white-space: nowrap;
  font-weight: 700;
  flex-shrink: 0;
}

.platform-btns {
  display: flex;
  gap: 6px;
  flex: 1;
}

.plat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  outline: none;
  flex-shrink: 0;
}

.plat-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.plat-btn:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.08);
}

.plat-btn.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #05030d;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
}

.plat-btn.active svg {
  color: #05030d;
}

/* ============ CARD PLATFORM ICONS ============ */
.plat-badges {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  align-items: center;
}

.plat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(138, 127, 181, 0.35);
  border: 1px solid rgba(42, 31, 74, 0.6);
  opacity: 0.4;
  transition: all 0.2s ease;
}

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

.plat-badge.on {
  opacity: 1;
  color: var(--neon-cyan);
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.08);
}

@media (max-width: 640px) {
  .platform-bar { padding: 7px 10px; gap: 8px; }
  .platform-label { display: none; }
  .plat-btn { padding: 6px 10px; font-size: 11px; }
  .plat-btn svg { width: 12px; height: 12px; }
}

/* ============ CARD BADGES — clean version ============ */
.plat-badges {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.plat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(138, 127, 181, 0.4);
  font-size: 12px;
  font-family: monospace;
  border: 1px solid rgba(42, 31, 74, 0.6);
  opacity: 0.35;
  filter: grayscale(1);
  transition: all 0.2s ease;
}

.plat-badge.on {
  opacity: 1;
  filter: none;
  color: var(--neon-cyan);
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #05030d;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: monospace;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  z-index: 500;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.6);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ============ CURRENT PLATFORM CHIP IN TUTORIAL ============ */
.current-plat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ============ CONTENT FADE ============ */
#tutorialContent { opacity: 1; transition: opacity 0.25s ease; }
#tutorialContent.swapping { opacity: 0.2; transition: opacity 0.15s ease; }

@media (max-width: 640px) {
  .platform-bar { padding: 10px 12px; gap: 8px; }
  .platform-label { font-size: 10px; }
  .plat-btn { padding: 6px 12px; font-size: 12px; }
}

/* ============ FAVORITE BUTTON ON CARDS ============ */
.tut-card { position: relative; }

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  padding: 0;
  line-height: 1;
}

.fav-btn:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  transform: scale(1.1);
}

.fav-btn.on {
  color: #ffd700;
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

/* ============ STEP CHECKBOX + PROGRESS ============ */
.step-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 10px;
}

.step-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 14px;
  font-weight: 900;
  transition: all 0.2s ease;
  margin-top: 4px;
  padding: 0;
}

.step-check:hover { border-color: var(--neon-cyan); }

.step-check.checked {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  border-color: transparent;
  color: #05030d;
}

.step.done {
  opacity: 0.55;
}

.step.done h3 {
  text-decoration: line-through;
  text-decoration-color: var(--neon-green);
  text-decoration-thickness: 2px;
}

/* Progress bar in tutorial header */
.tut-progress {
  margin: 18px 0 24px;
  padding: 14px 16px;
  background: rgba(0, 255, 157, 0.05);
  border: 1px solid rgba(0, 255, 157, 0.25);
  border-radius: 12px;
}

.tut-progress-label {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 12px;
  color: var(--neon-green);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.tut-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50px;
  overflow: hidden;
}

.tut-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  border-radius: 50px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
}

/* ============ ABOUT PAGE ============ */
.about-header {
  text-align: center;
  padding: 30px 20px 40px;
}

.about-header h1 {
  font-size: 34px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.about-header p {
  color: var(--muted);
  font-size: 16px;
}

.about-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  margin-bottom: 16px;
}

.about-card h3 {
  color: var(--neon-cyan);
  font-size: 16px;
  margin-bottom: 12px;
  font-family: monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-card p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.about-card p:last-child { margin-bottom: 0; }

.about-card ul {
  margin-left: 20px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}

.about-card ul li::marker { color: var(--neon-pink); }

.about-card b { color: var(--neon-pink); }

.danger-btn {
  margin-top: 12px;
  padding: 12px 20px;
  background: rgba(255, 59, 107, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.danger-btn:hover {
  background: rgba(255, 59, 107, 0.2);
  box-shadow: 0 0 20px rgba(255, 59, 107, 0.4);
}

/* ============ PROGRESS LIST ============ */
.prog-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prog-item:hover {
  border-color: var(--neon-cyan);
  transform: translateX(4px);
}

.prog-item h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.prog-item .prog-bar-wrap {
  height: 5px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 8px;
}

.prog-item .prog-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  border-radius: 50px;
}

.prog-item .prog-meta {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 11px;
  color: var(--muted);
}

.prog-item .prog-meta .pct { color: var(--neon-green); font-weight: 700; }

/* ============================================
   SIDEBAR CLEANUP — organized sections
   ============================================ */
.sidebar-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin: 20px 8px 10px;
  opacity: 0.75;
  cursor: pointer;
  user-select: none;
}

.sidebar-section:hover { opacity: 1; color: var(--neon-pink); }

.sidebar-section .chev {
  font-size: 10px;
  transition: transform 0.25s ease;
}

.sidebar-section.collapsed .chev { transform: rotate(-90deg); }

.sidebar-group { overflow: hidden; transition: max-height 0.3s ease; }

/* Sidebar search box */
.side-search {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  margin-bottom: 8px;
  outline: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.side-search:focus { border-color: var(--neon-cyan); }
.side-search::placeholder { color: var(--muted); }

/* Count badges */
.nav-btn .count {
  float: right;
  font-size: 10px;
  font-family: monospace;
  color: var(--muted);
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  margin-left: 6px;
}

.nav-btn.active .count {
  color: #05030d;
  background: rgba(0, 0, 0, 0.15);
}

/* Tutorials list compact */
.nav-btn.tut-link {
  font-size: 12px;
  padding: 8px 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-btn.tut-link:hover { color: var(--text); }

/* ============================================
   FAVORITE BUTTON ON CARDS
   ============================================ */
.tut-card { position: relative; }

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  padding: 0;
  line-height: 1;
}

.fav-btn:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  transform: scale(1.12);
}

.fav-btn.on {
  color: #ffd700;
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

/* ============================================
   STEP CHECKBOXES + PROGRESS
   ============================================ */
.step-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 10px;
}

.step-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
  transition: all 0.2s ease;
  margin-top: 4px;
  padding: 0;
  font-family: inherit;
}

.step-check:hover { border-color: var(--neon-cyan); }

.step-check.checked {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  border-color: transparent;
  color: #05030d;
}

.step.done { opacity: 0.6; }
.step.done h3 {
  text-decoration: line-through;
  text-decoration-color: var(--neon-green);
  text-decoration-thickness: 2px;
}

/* Progress bar in tutorial header */
.tut-progress {
  margin: 18px 0 24px;
  padding: 14px 16px;
  background: rgba(0, 255, 157, 0.05);
  border: 1px solid rgba(0, 255, 157, 0.25);
  border-radius: 12px;
}

.tut-progress-label {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 12px;
  color: var(--neon-green);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.tut-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50px;
  overflow: hidden;
}

.tut-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  border-radius: 50px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
}

/* ============================================
   ABOUT + PROGRESS + FAVORITES PAGES
   ============================================ */
.about-header {
  text-align: center;
  padding: 30px 20px 40px;
}

.about-header h1 {
  font-size: 34px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.about-header p {
  color: var(--muted);
  font-size: 16px;
}

.about-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  margin-bottom: 16px;
}

.about-card h3 {
  color: var(--neon-cyan);
  font-size: 15px;
  margin-bottom: 12px;
  font-family: monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-card p, .about-card ul {
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 10px;
}

.about-card p:last-child { margin-bottom: 0; }

.about-card ul { margin-left: 20px; }
.about-card ul li::marker { color: var(--neon-pink); }
.about-card b { color: var(--neon-pink); }

.danger-btn {
  margin-top: 12px;
  padding: 12px 20px;
  background: rgba(255, 59, 107, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.danger-btn:hover {
  background: rgba(255, 59, 107, 0.2);
  box-shadow: 0 0 20px rgba(255, 59, 107, 0.4);
}

/* Progress list items */
.prog-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prog-item:hover {
  border-color: var(--neon-cyan);
  transform: translateX(4px);
}

.prog-item h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--text);
}

.prog-item .prog-bar-wrap {
  height: 5px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 8px;
}

.prog-item .prog-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  border-radius: 50px;
  transition: width 0.3s ease;
}

.prog-item .prog-meta {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 11px;
  color: var(--muted);
}

.prog-item .prog-meta .pct { color: var(--neon-green); font-weight: 700; }

.prog-item .clear-btn {
  margin-left: 8px;
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 11px;
  font-family: monospace;
  opacity: 0.6;
}

.prog-item .clear-btn:hover { opacity: 1; }

/* ============ SIDEBAR PAGE ICONS ============ */
#pageNav .nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

#pageNav .nav-btn .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.2s ease, filter 0.2s ease;
}

#pageNav .nav-btn:hover .nav-icon {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}

#pageNav .nav-btn.active .nav-icon {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
}

/* ============ PAGE HEADER ICONS ============ */
.about-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.page-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.55));
}

.page-icon.pink {
  color: var(--neon-pink);
  filter: drop-shadow(0 0 12px rgba(255, 47, 185, 0.55));
}

@media (max-width: 640px) {
  .page-icon { width: 30px; height: 30px; }
  .about-header h1 { font-size: 26px; gap: 10px; }
}