/* ══════════════════════════════════════════════════════════════════════
   WeissGuitar Learn — Components
   Every UI component, all states. Both themes via tokens.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Unlock Modal (shared across hub + course hubs) ── */
.unlock-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 16, 0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.unlock-modal.active { opacity: 1; pointer-events: auto; }
.unlock-modal-card {
  position: relative; width: 92%; max-width: 400px;
  background: rgba(22, 18, 38, 0.95);
  backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
  padding: 40px 32px 32px; text-align: center;
  animation: fadeUp 0.4s var(--ease-out) both;
}
[data-theme="light"] .unlock-modal-card { background: rgba(255, 255, 255, 0.96); }
.unlock-modal-card::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1.5px;
  background: var(--glass-line); filter: blur(0.3px);
}
.unlock-modal-dot { margin: 0 auto 16px; }
.unlock-modal-phase { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 6px; }
.unlock-modal-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.unlock-modal-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; max-width: 340px; margin-left: auto; margin-right: auto; }
.unlock-modal-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 24px; }
.unlock-modal-cta {
  display: block; width: 100%; padding: 14px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-size: 15px; font-weight: 700;
  text-decoration: none; text-align: center;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 4px 16px rgba(96,54,232,0.3);
}
.unlock-modal-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(96,54,232,0.4); }
.unlock-modal-cta:active { transform: scale(0.97); transition-duration: 0.08s; }
.unlock-modal-dismiss {
  display: block; width: 100%; margin-top: 12px;
  background: none; border: none; color: var(--text-muted);
  font-size: 13px; font-weight: 500; cursor: pointer; padding: 8px;
  font-family: inherit; transition: color 0.2s;
}
.unlock-modal-dismiss:hover { color: var(--text-secondary); }

/* ── Course Hub CTA ── */
.course-hub-cta {
  text-align: center; padding: 32px 24px; margin-top: 24px;
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 8px 32px rgba(0,0,0,0.15);
}
.course-hub-cta-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.course-hub-cta-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.course-hub-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(96,54,232,0.3);
}
.course-hub-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(96,54,232,0.4); }


/* ── Lesson Typography ─────────────────────────────────────────────── */
.lesson-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px; padding: 5px 14px; border-radius: 20px;
  background: var(--bg-glass); backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
  color: var(--text-secondary);
}
[data-theme="light"] .lesson-breadcrumb { box-shadow: none; }
.breadcrumb-dot { width: 6px; height: 6px; border-radius: 50%; }

.lesson-page-title {
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 10px; letter-spacing: -0.01em; line-height: 1.3;
  text-shadow: 0 2px 20px rgba(96,54,232,0.15);
}
[data-theme="light"] .lesson-page-title { text-shadow: none; }

.lesson-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 36px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lesson-meta span { display: inline-flex; align-items: center; gap: 5px; }

.lesson-body h2 { font-family: var(--font-body); font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); letter-spacing: -0.025em; }
.lesson-body h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 32px 0 12px; }
.lesson-body h4 { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 24px 0 10px; }
.lesson-body p { margin: 0 0 24px; color: var(--text-secondary); line-height: 1.8; font-size: 16px; }
.lesson-body strong { color: var(--text-primary); }
.lesson-body a { color: var(--pink); text-decoration: none; border-bottom: 1px solid rgba(202, 63, 160, 0.3); transition: all 0.2s; }
.lesson-body a:hover { color: var(--purple); border-bottom-color: var(--purple); }
.lesson-body ul, .lesson-body ol { margin: 0 0 22px 24px; color: var(--text-secondary); }
.lesson-body li { margin-bottom: 10px; padding-left: 4px; line-height: 1.7; }
.lesson-body li strong { color: var(--text-primary); }
.lesson-body hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); margin: 36px 0; }
[data-theme="light"] .lesson-body hr { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent); }
.lesson-body img { max-width: 100%; border-radius: var(--radius-md); margin: 20px 0; }
.lesson-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 24px 0; }
.lesson-body th { background: rgba(96,54,232,0.12); color: #ffffff; font-weight: 600; padding: 10px 16px; text-align: left; border-bottom: 1px solid rgba(96,54,232,0.2); }
.lesson-body td { padding: 10px 16px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
.lesson-body tr:last-child td { border-bottom: none; }
.lesson-body blockquote { border-left: 3px solid var(--purple); margin: 28px 0; padding: 14px 22px; color: var(--text-secondary); font-style: italic; background: rgba(96,54,232,0.04); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; line-height: 1.7; }
.lesson-body blockquote p { color: inherit; }

[data-theme="light"] .lesson-body th { background: rgba(96,54,232,0.08); color: var(--text-primary); }
[data-theme="light"] .lesson-body a { color: #a8307e; border-bottom-color: rgba(168, 48, 126, 0.3); }
[data-theme="light"] .lesson-body a:hover { color: #5028c0; border-bottom-color: #5028c0; }

@media (max-width: 600px) { .lesson-page-title { font-size: 24px; } }


/* ── Video Embed ───────────────────────────────────────────────────── */
.vimeo-embed {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius-md); margin: 24px 0; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 8px 40px rgba(0,0,0,0.5), 0 0 60px rgba(96,54,232,0.06);
}
.vimeo-embed::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 2px;
  background: var(--glass-line); filter: blur(0.5px); z-index: 2; pointer-events: none;
}
.vimeo-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
[data-theme="light"] .vimeo-embed { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 12px 40px rgba(0, 0, 0, 0.06); }

.wg-video-label {
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  color: var(--text-secondary); margin: 28px 0 8px; padding: 6px 14px;
  display: inline-block; background: var(--bg-glass); border: 1px solid var(--glass-border);
  border-radius: 20px;
}


/* ── Insight Box ───────────────────────────────────────────────────── */
.wg-insight-box {
  position: relative;
  background: var(--insight-bg); backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--insight-border); border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 26px; margin: 28px 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, inset 0 1px 0 0 var(--glass-shine), 0 8px 32px rgba(96,54,232,0.08), 0 0 60px rgba(96,54,232,0.03);
  overflow: hidden;
}
.wg-insight-box::before { content: ''; position: absolute; top: 0; left: 4px; right: 0; height: 2px; background: linear-gradient(90deg, rgba(96,54,232,0.5), rgba(255,255,255,0.15) 50%, transparent); filter: blur(0.5px); }
.wg-insight-box::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 80px; background: radial-gradient(ellipse at 50% 0%, rgba(96,54,232,0.06), transparent 65%); pointer-events: none; }
.wg-insight-box p { margin-bottom: 0; color: var(--text-secondary); }
.wg-insight-box strong { color: var(--purple); }
[data-theme="light"] .wg-insight-box { box-shadow: 0 2px 8px rgba(96, 54, 232, 0.04); }
[data-theme="light"] .wg-insight-box::after { background: radial-gradient(ellipse at 50% 0%, rgba(96, 54, 232, 0.02), transparent 65%); }


/* ── Exercise Box ──────────────────────────────────────────────────── */
.wg-exercise-box {
  position: relative;
  background: var(--exercise-bg); backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--exercise-border); border-radius: var(--radius-md);
  padding: 28px 30px; margin: 28px 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, inset 0 1px 0 0 var(--glass-shine), 0 8px 32px rgba(52,211,153,0.06), 0 0 60px rgba(52,211,153,0.02);
  overflow: hidden;
}
.wg-exercise-box::before { content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15) 15%, rgba(52,211,153,0.5) 40%, rgba(52,211,153,0.3) 60%, rgba(255,255,255,0.1) 85%, transparent); filter: blur(0.5px); }
.wg-exercise-box::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 80px; background: radial-gradient(ellipse at 50% 0%, rgba(52,211,153,0.05), transparent 65%); pointer-events: none; }
.wg-exercise-box h4 { color: var(--green); margin-top: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.wg-exercise-box h4::before { content: '\25B6'; font-size: 11px; }
.wg-exercise-box ol, .wg-exercise-box ul { margin-left: 20px; }
[data-theme="light"] .wg-exercise-box { box-shadow: 0 2px 8px rgba(5, 150, 105, 0.04); }
[data-theme="light"] .wg-exercise-box::before { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04) 15%, rgba(5,150,105,0.3) 40%, rgba(5,150,105,0.15) 60%, rgba(0,0,0,0.03) 85%, transparent); }


/* ── Lesson Images ────────────────────────────────────────────────── */
.wg-lesson-images {
  position: relative;
  background: var(--insight-bg); backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 20px; margin: 28px 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, inset 0 1px 0 0 var(--glass-shine), 0 8px 32px rgba(96,54,232,0.06), 0 0 60px rgba(96,54,232,0.02);
  overflow: visible;
}
.wg-lesson-images img[src$=".svg"] {
  max-width: none;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
}
.wg-lesson-images::before { content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12) 20%, rgba(96,54,232,0.4) 40%, rgba(202,63,160,0.3) 60%, rgba(255,255,255,0.12) 80%, transparent); filter: blur(0.5px); }
.wg-lesson-images::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 80px; background: radial-gradient(ellipse at 50% 0%, rgba(96,54,232,0.04), transparent 65%); pointer-events: none; }
.wg-lesson-images img {
  display: block; max-width: 100%; height: auto;
  border-radius: calc(var(--radius-md) - 4px);
  margin: 12px auto; border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wg-lesson-images img:first-child { margin-top: 0; }
.wg-lesson-images img:last-child { margin-bottom: 0; }
.wg-lesson-images img:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(96,54,232,0.12); }
[data-theme="light"] .wg-lesson-images { box-shadow: 0 2px 8px rgba(96, 54, 232, 0.04); }
[data-theme="light"] .wg-lesson-images img { border-color: rgba(0,0,0,0.06); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }


/* ── Audio Player (hidden when cinematic player is used) ──────────── */
.wg-audio-player {
  width: 100%;
  margin: 16px 0 8px;
  border-radius: var(--radius-sm, 8px);
  filter: sepia(20%) saturate(70%) hue-rotate(220deg);
}
.wg-audio-player.hidden { display: none; }

/* ── Cinematic Player ────────────────────────────────────────────── */
.wg-cinema-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(96,54,232,0.15), rgba(202,63,160,0.08));
  border: 1px solid rgba(96,54,232,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  margin: 20px 0;
}
.wg-cinema-player:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(96,54,232,0.2);
  border-color: rgba(96,54,232,0.4);
}
.wg-cinema-player video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.2; pointer-events: none;
}
.wg-cinema-play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  z-index: 2;
}
.wg-cinema-play-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.wg-cinema-player:hover .wg-cinema-play-circle {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
  transform: scale(1.08);
}
.wg-cinema-play-circle svg { margin-left: 4px; }
.wg-cinema-label {
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}
.wg-cinema-sublabel {
  font-size: 12px; color: rgba(255,255,255,0.35); margin-top: -8px;
}

/* ── CTA Button ──────────────────────────────────────────────────── */
.wg-cta-center { text-align: center; margin-top: 40px; }
.wg-cta-btn {
  display: inline-block; padding: 16px 32px;
  background: linear-gradient(135deg, var(--brand-purple, #6036e8), #7c5ce8);
  color: #fff; font-weight: 700; font-size: 15px;
  border-radius: var(--radius-md, 12px); text-decoration: none;
  box-shadow: 0 8px 24px rgba(96, 54, 232, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wg-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(96, 54, 232, 0.4); }

/* ── Phase Intro Box ─────────────────────────────────────────────── */
.wg-phase-intro {
  border-color: rgba(96, 54, 232, 0.3);
  background: linear-gradient(135deg, rgba(96, 54, 232, 0.08), rgba(202, 63, 160, 0.05));
}

/* ── Voicing Grid ────────────────────────────────────────────────── */
.wg-voicing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.wg-voicing-grid > div { text-align: center; }
.wg-voicing-grid img {
  width: 100%; max-width: 200px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}
.wg-voicing-grid img:hover { transform: scale(1.05); }
.wg-voicing-grid .wg-voicing-comment {
  font-size: 13px;
  color: var(--phase-color, #a78bfa);
  margin-top: 8px;
}
@media (max-width: 600px) {
  .wg-voicing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── Practice Tip ──────────────────────────────────────────────────── */
.wg-practice-tip {
  position: relative;
  background: var(--tip-bg); backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--tip-border); border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 26px; margin: 28px 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, inset 0 1px 0 0 var(--glass-shine), 0 8px 32px rgba(251,191,36,0.05), 0 0 60px rgba(251,191,36,0.02);
  overflow: hidden;
}
.wg-practice-tip::before { content: ''; position: absolute; top: 0; left: 4px; right: 0; height: 2px; background: linear-gradient(90deg, rgba(251,191,36,0.5), rgba(255,255,255,0.12) 50%, transparent); filter: blur(0.5px); }
.wg-practice-tip::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 80px; background: radial-gradient(ellipse at 50% 0%, rgba(251,191,36,0.04), transparent 65%); pointer-events: none; }
.wg-practice-tip p { margin-bottom: 0; color: var(--text-secondary); }
.wg-practice-tip strong:first-child { color: var(--amber); }
[data-theme="light"] .wg-practice-tip { box-shadow: 0 2px 8px rgba(217, 119, 6, 0.04); }


/* ── Mentorship Moment ─────────────────────────────────────────────── */
.wg-mentorship-moment {
  position: relative;
  background: var(--mentorship-bg); backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--mentorship-border); border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 26px; margin: 28px 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, inset 0 1px 0 0 var(--glass-shine), 0 8px 32px rgba(202,63,160,0.06), 0 0 60px rgba(202,63,160,0.02);
  overflow: hidden;
}
.wg-mentorship-moment::before { content: ''; position: absolute; top: 0; left: 4px; right: 0; height: 2px; background: linear-gradient(90deg, rgba(202,63,160,0.5), rgba(255,255,255,0.12) 50%, transparent); filter: blur(0.5px); }
.wg-mentorship-moment::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 80px; background: radial-gradient(ellipse at 50% 0%, rgba(202,63,160,0.05), transparent 65%); pointer-events: none; }
.wg-mentorship-moment p { margin-bottom: 0; color: var(--text-secondary); }
.wg-mentorship-moment strong { color: var(--pink); }
[data-theme="light"] .wg-mentorship-moment { box-shadow: 0 2px 8px rgba(202, 63, 160, 0.04); }


/* ── Learning Points ───────────────────────────────────────────────── */
.wg-learning-points {
  position: relative;
  background: rgba(96, 54, 232, 0.04); backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(96, 54, 232, 0.1); border-radius: var(--radius-md);
  padding: 22px 26px; margin: 0 0 32px; overflow: hidden;
}
.wg-learning-points::before { content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 2px; background: linear-gradient(90deg, transparent, rgba(96,54,232,0.3) 30%, rgba(202,63,160,0.2) 70%, transparent); filter: blur(0.5px); }
.wg-learning-points h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin: 0 0 12px; }
.wg-learning-points ul { list-style: none; margin: 0; padding: 0; }
.wg-learning-points li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.wg-learning-points li:last-child { margin-bottom: 0; }
.wg-learning-points li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gradient); opacity: 0.6; }
[data-theme="light"] .wg-learning-points { background: rgba(96, 54, 232, 0.03); }


/* ── Practice Card ─────────────────────────────────────────────────── */
.wg-practice-card { margin-top: 20px; margin-bottom: 8px; }
.wg-practice-toggle { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: none; color: var(--text-muted); font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; padding: 10px 0; transition: color 0.2s; }
.wg-practice-toggle:hover { color: var(--text-secondary); }
.wg-practice-toggle-icon { font-size: 11px; transition: transform 0.3s ease; }
.wg-practice-body { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease 0.1s; }
.wg-practice-body.open { max-height: 400px; opacity: 1; }
.wg-practice-section { position: relative; background: rgba(96, 54, 232, 0.03); border: 1px solid rgba(96, 54, 232, 0.08); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 8px; }
.wg-practice-section:last-child { margin-bottom: 0; }
.wg-practice-label { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--purple); margin-bottom: 4px; }
.wg-practice-section p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .wg-practice-card { margin-bottom: calc(8px + env(safe-area-inset-bottom)); }
}


/* ── PDF Cards ─────────────────────────────────────────────────────── */
.wg-pdf-group { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.wg-pdf-card {
  display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem;
  background: rgba(18, 14, 32, 0.6); border: 1px solid rgba(96,54,232,0.15);
  border-radius: var(--radius-sm); transition: border-color 0.2s, transform 0.2s;
}
.wg-pdf-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
[data-theme="light"] .wg-pdf-card { background: rgba(255, 255, 255, 0.8); border-color: rgba(96, 54, 232, 0.1); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04); }
[data-theme="light"] .wg-pdf-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }

.wg-pdf-icon-wrap { flex-shrink: 0; width: 38px; height: 38px; border-radius: 8px; background: rgba(96,54,232,0.1); border: 1px solid rgba(96,54,232,0.2); display: flex; align-items: center; justify-content: center; }
.wg-pdf-info { flex: 1; min-width: 0; }
.wg-pdf-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(96,54,232,0.55); margin-bottom: 0.15rem; }
.wg-pdf-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-pdf-actions { display: flex; gap: 0.45rem; flex-shrink: 0; }
.wg-pdf-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.38rem 0.8rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; text-decoration: none; transition: all 0.18s; white-space: nowrap; }
.wg-pdf-btn-view { background: rgba(96,54,232,0.1); border: 1px solid rgba(96,54,232,0.3); color: var(--purple); }
.wg-pdf-btn-view:hover { background: rgba(96,54,232,0.2); color: #ffffff; }
.wg-pdf-btn-dl { background: rgba(202,63,160,0.07); border: 1px solid rgba(202,63,160,0.25); color: var(--pink); }
.wg-pdf-btn-dl:hover { background: rgba(202,63,160,0.18); color: #ffffff; }
@media (max-width: 600px) {
  .wg-pdf-card { flex-wrap: wrap; gap: 0.75rem; }
  .wg-pdf-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .wg-pdf-btn { justify-content: center; padding: 10px; font-size: 0.8rem; min-height: 44px; }
}


/* ── Nav Buttons ───────────────────────────────────────────────────── */
.lesson-nav { display: flex; justify-content: space-between; align-items: stretch; margin-top: 48px; padding-top: 16px; border-top: none; gap: 16px; }
.nav-btn {
  padding: 16px 24px; border-radius: var(--radius-md);
  background: var(--bg-glass); backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border); color: var(--text-secondary);
  cursor: pointer; font-size: 14px; font-family: inherit;
  transition: all 0.25s var(--ease-spring);
  display: flex; flex-direction: column; gap: 4px; max-width: 45%;
  text-decoration: none; box-shadow: var(--shadow-btn);
}
.nav-btn:hover { border-color: var(--border-hover); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
[data-theme="light"] .nav-btn { background: rgba(255, 255, 255, 0.7); }
[data-theme="light"] .nav-btn:hover { background: rgba(255, 255, 255, 0.9); }
.nav-btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
.nav-btn .nav-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.nav-btn .nav-title { font-weight: 500; color: var(--text-primary); line-height: 1.3; }
@media (max-width: 600px) { .lesson-nav { flex-direction: column; padding-bottom: 80px; } .nav-btn { max-width: 100%; } .lesson-meta { flex-wrap: wrap; } }


/* ── Mark Complete Button ──────────────────────────────────────────── */
.mark-complete-wrap { margin-top: 40px; margin-bottom: 8px; }
.mark-complete-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 24px; min-height: 52px;
  background: transparent; border: 2px solid rgba(96,54,232,0.55);
  border-radius: var(--radius-md); color: var(--purple);
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.3s var(--ease-out);
  position: relative; overflow: hidden;
}
.mark-complete-btn:hover { border-color: var(--purple); background: rgba(96,54,232,0.08); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(96,54,232,0.15); }
.mark-complete-btn:active { transform: scale(0.98); transition-duration: 0.1s; }
.mark-complete-btn.completed { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.4); color: var(--green); cursor: default; pointer-events: none; }
[data-theme="light"] .mark-complete-btn.completed { background: rgba(5, 150, 105, 0.08); border-color: rgba(5, 150, 105, 0.25); }
.mark-complete-btn.completing { animation: completePulse 0.6s var(--ease-spring); }
.mark-complete-btn svg { flex-shrink: 0; }

/* Coaching hint (post-complete) */
.coaching-hint { opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.5s ease 0.5s, max-height 0.5s ease 0.3s; text-align: center; padding: 0 16px; }
.coaching-hint.visible { opacity: 1; max-height: 80px; margin-top: 16px; }
.coaching-hint p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.coaching-hint a { color: var(--text-muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); transition: color 0.2s; }
.coaching-hint a:hover { color: var(--text-secondary); }


/* ── Chord Chart ───────────────────────────────────────────────────── */
.wg-chord-chart {
  position: relative; background: rgba(18, 14, 32, 0.6); backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(96, 54, 232, 0.12); border-radius: var(--radius-md);
  padding: 28px; margin: 28px 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, inset 0 1px 0 0 var(--glass-shine), 0 12px 40px rgba(0,0,0,0.4), 0 0 80px rgba(96,54,232,0.04);
}
.wg-chord-chart::before { content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 2px; background: linear-gradient(90deg, transparent, rgba(96,54,232,0.4) 30%, rgba(202,63,160,0.3) 70%, transparent); filter: blur(0.5px); }
.wg-chord-chart::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 120px; background: radial-gradient(ellipse at 50% 0%, rgba(96,54,232,0.05), transparent 65%); pointer-events: none; }
[data-theme="light"] .wg-chord-chart { background: rgba(255, 255, 255, 0.8); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.chord-chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; z-index: 1; }
.chord-chart-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-primary); }
.chord-chart-key { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary); background: var(--bg-glass); border: 1px solid var(--glass-border); padding: 4px 12px; border-radius: 20px; }
.chord-row { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; border: 1px solid rgba(96,54,232,0.15); border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.chord-row:last-child { margin-bottom: 0; }
.chord-row + .chord-row { border-top: none; }
.chord-bar { border-right: 1px solid rgba(96,54,232,0.12); padding: 16px 8px; text-align: center; min-height: 68px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(96,54,232,0.04), rgba(202,63,160,0.03)); transition: all 0.25s ease; }
.chord-bar:last-child { border-right: none; }
.chord-bar:hover { background: linear-gradient(135deg, rgba(96,54,232,0.1), rgba(202,63,160,0.06)); box-shadow: 0 0 20px rgba(96,54,232,0.1); }
.chord-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; background: linear-gradient(135deg, #e0d4ff, #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .chord-name { background: linear-gradient(135deg, #4a2db8, #1A1625); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.chord-bar.split .chord-name { display: flex; gap: 12px; align-items: center; justify-content: center; }
.chord-bar.split .chord-name span { font-size: 17px; background: linear-gradient(135deg, #e0d4ff, #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .chord-bar.split .chord-name span { background: linear-gradient(135deg, #4a2db8, #1A1625); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
@media (max-width: 500px) { .wg-chord-chart { padding: 20px 14px; } .chord-name { font-size: 16px; } .chord-bar.split .chord-name span { font-size: 14px; } .chord-bar { min-height: 56px; padding: 10px 6px; } }


/* ── Diatonic Reference Chart ──────────────────────────────────────── */
.wg-diatonic-ref {
  position: relative; background: rgba(18, 14, 32, 0.6); backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(96, 54, 232, 0.12); border-radius: var(--radius-md);
  padding: 28px; margin: 28px 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, inset 0 1px 0 0 var(--glass-shine), 0 12px 40px rgba(0,0,0,0.4), 0 0 80px rgba(96,54,232,0.04);
}
.wg-diatonic-ref::before { content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 2px; background: linear-gradient(90deg, transparent, rgba(96,54,232,0.4) 30%, rgba(202,63,160,0.3) 70%, transparent); filter: blur(0.5px); }
.wg-diatonic-ref::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 120px; background: radial-gradient(ellipse at 50% 0%, rgba(96,54,232,0.05), transparent 65%); pointer-events: none; }
[data-theme="light"] .wg-diatonic-ref { background: rgba(255, 255, 255, 0.8); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.diatonic-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; z-index: 1; }
.diatonic-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-primary); }
.diatonic-badge { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary); background: var(--bg-glass); border: 1px solid var(--glass-border); padding: 4px 12px; border-radius: 20px; }
.diatonic-degrees { display: grid; grid-template-columns: 56px repeat(7, 1fr); gap: 4px; margin-bottom: 6px; position: relative; z-index: 1; }
.degree-cell { text-align: center; padding: 8px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 8px; }
.degree-cell.major { color: var(--blue); background: rgba(96, 165, 250, 0.08); }
.degree-cell.minor { color: var(--green); background: rgba(52, 211, 153, 0.06); }
.degree-cell.dim { color: var(--amber); background: rgba(251, 191, 36, 0.06); }
.degree-cell.key-label { color: var(--text-muted); font-size: 11px; display: flex; align-items: center; justify-content: center; background: none; }
.degree-quality { font-size: 11px; font-weight: 500; letter-spacing: 0.5px; opacity: 0.7; display: block; margin-top: 1px; }
.diatonic-grid { position: relative; z-index: 1; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); overflow: hidden; }
.diatonic-row { display: grid; grid-template-columns: 56px repeat(7, 1fr); gap: 0; border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.2s ease; }
[data-theme="light"] .diatonic-row { border-bottom-color: rgba(0,0,0,0.06); }
.diatonic-row:last-child { border-bottom: none; }
.diatonic-row:hover { background: rgba(96, 54, 232, 0.03); }
.key-cell { padding: 12px 8px; font-size: 16px; font-weight: 700; color: var(--text-primary); background: rgba(96, 54, 232, 0.06); display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--border-subtle); }
.chord-cell { padding: 12px 4px; text-align: center; font-size: 14px; font-weight: 600; border-right: 1px solid rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; }
[data-theme="light"] .chord-cell { border-right-color: rgba(0,0,0,0.03); }
.chord-cell:last-child { border-right: none; }
.chord-cell.major { color: var(--blue); }
.chord-cell.minor { color: rgba(52, 211, 153, 0.85); }
[data-theme="light"] .chord-cell.minor { color: var(--green); }
.chord-cell.dim { color: rgba(251, 191, 36, 0.8); }
[data-theme="light"] .chord-cell.dim { color: var(--amber); }
.chord-cell .q { font-size: 11px; font-weight: 500; opacity: 0.6; }
@media (max-width: 600px) { .wg-diatonic-ref { padding: 16px 12px; } .diatonic-degrees, .diatonic-row { grid-template-columns: 40px repeat(7, 1fr); } .key-cell { font-size: 13px; padding: 10px 4px; } .chord-cell { font-size: 11px; padding: 10px 2px; } .chord-cell .q { font-size: 11px; } .degree-cell { font-size: 11px; padding: 6px 2px; } }


/* ── Tempo Badge ───────────────────────────────────────────────────── */
.wg-tempo-badge { display: inline-block; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.25); color: var(--green); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; margin-left: 6px; letter-spacing: 0.5px; vertical-align: middle; }
[data-theme="light"] .wg-tempo-badge { background: rgba(5, 150, 105, 0.08); border-color: rgba(5, 150, 105, 0.18); }


/* ── Skeleton Loading ──────────────────────────────────────────────── */
.skeleton-slot { background: rgba(255,255,255,0.03); border-radius: var(--radius-md); overflow: hidden; position: relative; }
[data-theme="light"] .skeleton-slot { background: rgba(0,0,0,0.03); }
.skeleton-slot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.04) 60%, transparent 100%); animation: shimmer 1.8s ease-in-out infinite; }
[data-theme="light"] .skeleton-slot::after { background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.03) 40%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.03) 60%, transparent 100%); }
.skeleton-video { padding-bottom: 56.25%; margin: 24px 0; }
.skeleton-pdf { height: 62px; margin: 12px 0; }
.skeleton-text { min-height: 200px; margin: 24px 0; padding: 20px; }
.skeleton-line { height: 14px; border-radius: 7px; background: rgba(255,255,255,0.04); margin-bottom: 12px; }
[data-theme="light"] .skeleton-line { background: rgba(0,0,0,0.04); }
.skeleton-line:nth-child(1) { width: 80%; } .skeleton-line:nth-child(2) { width: 100%; }
.skeleton-line:nth-child(3) { width: 90%; } .skeleton-line:nth-child(4) { width: 65%; }
.skeleton-line:nth-child(5) { width: 75%; }
.content-loaded #wg-video-slot.skeleton-slot,
.content-loaded #wg-pdf-slot.skeleton-slot,
.content-loaded #wg-body-slot.skeleton-slot { display: none; }


/* ══════════════════════════════════════════════════════════════════════
   Phase C — Emotional Layer
   Micro-interactions, tactile feel, celebration, identity.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Tactile Press (all interactive elements) ──────────────────────── */
.path-course:active,
.continue-card:active,
.roadmap-phase:active,
.nav-btn:active,
.wg-pdf-btn:active,
.hub-link-pink:active,
.hub-link-purple:active,
.mobile-nav-item:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

/* ── Checkmark Draw Animation ──────────────────────────────────────── */
@keyframes checkDraw {
  0% { stroke-dashoffset: 24; }
  100% { stroke-dashoffset: 0; }
}
.mark-complete-btn.completed svg polyline {
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}
.mark-complete-btn.celebrating svg polyline {
  stroke-dasharray: 24;
  animation: checkDraw 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.15s both;
}

/* ── Completion Celebration (confetti particles) ───────────────────── */
@keyframes confettiUp {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-60px) scale(0); opacity: 0; }
}
@keyframes confettiLeft {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(-40px, -50px) rotate(-120deg) scale(0); opacity: 0; }
}
@keyframes confettiRight {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(40px, -50px) rotate(120deg) scale(0); opacity: 0; }
}
.wg-confetti {
  position: absolute; pointer-events: none; z-index: 10;
}
.wg-confetti-particle {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
}
.wg-confetti-particle:nth-child(1) { background: var(--purple); animation: confettiLeft 0.7s var(--ease-out) both; left: -4px; top: 0; }
.wg-confetti-particle:nth-child(2) { background: var(--green); animation: confettiUp 0.7s var(--ease-out) 0.05s both; left: 4px; top: -2px; }
.wg-confetti-particle:nth-child(3) { background: var(--pink); animation: confettiRight 0.7s var(--ease-out) 0.1s both; left: 12px; top: 0; }

/* ── Completion Glow Pulse on Button ───────────────────────────────── */
@keyframes celebrateGlow {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { box-shadow: 0 0 20px 8px rgba(52, 211, 153, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.mark-complete-btn.celebrating {
  animation: completePulse 0.5s var(--ease-spring), celebrateGlow 0.8s ease 0.2s;
}

/* ── Phase Identity Badge (lesson pages) ───────────────────────────── */
.wg-phase-identity {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); background: var(--bg-glass); border: 1px solid var(--glass-border);
  margin-bottom: 8px;
}
.wg-phase-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--phase-color);
  box-shadow: 0 0 8px var(--phase-color);
}

/* ── Hub Current Phase Indicator ───────────────────────────────────── */
.hub-phase-status {
  text-align: center; margin-bottom: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.hub-phase-status strong { color: var(--text-secondary); font-weight: 700; }

/* ── Continue Watching Enhancement ─────────────────────────────────── */
.continue-context {
  display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 3px;
}

/* ── Sound Toggle ──────────────────────────────────────────────────── */
.sound-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); background: transparent;
  cursor: pointer; color: var(--text-muted); transition: all 0.25s ease;
  flex-shrink: 0; padding: 0; font-size: 0;
}
.sound-toggle:hover { color: var(--text-primary); border-color: var(--border-hover); background: var(--bg-hover); }
.sound-toggle svg { width: 16px; height: 16px; }
.sound-toggle.muted { opacity: 0.4; }
.sound-toggle.muted:hover { opacity: 0.7; }


/* ══════════════════════════════════════════════════════════════════════
   Stone Identity System
   Mineral progression stones. CSS-only. Parallax via CSS variables.
   ══════════════════════════════════════════════════════════════════════ */

.stone {
  position: relative;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.stone::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.stone::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  top: var(--light-y, 10px);
  left: var(--light-x, 14px);
  transition: top 0.1s ease, left 0.1s ease;
}

/* Locked: dormant, cold, matte */
.stone.locked {
  background: linear-gradient(160deg, #1e1e28 0%, #18181f 35%, #1b1b24 65%, #161620 100%);
  opacity: 0.25;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.stone.locked::before, .stone.locked::after { background: none; }

@keyframes stoneBreath {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.65; }
}

/* Amethyst (Phase 1): translucent, light passes through */
.stone-amethyst { border-radius: 44% 56% 48% 52% / 52% 46% 54% 48%; }

.stone-amethyst.in-progress {
  background:
    radial-gradient(ellipse at 40% 45%, rgba(120,60,200,0.25) 0%, transparent 45%),
    radial-gradient(ellipse at 28% 68%, rgba(72,25,140,0.6) 0%, transparent 40%),
    radial-gradient(ellipse at 62% 30%, rgba(100,50,180,0.3) 0%, transparent 35%),
    linear-gradient(155deg, #2d1260 0%, #1e0d42 40%, #2a1558 70%, #190a38 100%);
  box-shadow: inset 0 1px 3px rgba(80,40,150,0.08), inset 0 -1px 4px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.2);
  animation: stoneBreath 3.5s ease-in-out infinite;
}
.stone-amethyst.in-progress::before { background: radial-gradient(circle at 42% 40%, rgba(160,100,240,0.06), transparent 38%); }
.stone-amethyst.in-progress::after { width: 16px; height: 9px; background: radial-gradient(ellipse, rgba(255,255,255,0.04), transparent); transform: rotate(-12deg); }

.stone-amethyst.complete {
  background:
    radial-gradient(ellipse at 42% 42%, rgba(130,70,220,0.3) 0%, transparent 40%),
    radial-gradient(ellipse at 26% 70%, rgba(72,25,140,0.8) 0%, transparent 38%),
    radial-gradient(ellipse at 65% 24%, rgba(110,55,200,0.5) 0%, transparent 33%),
    radial-gradient(ellipse at 55% 60%, rgba(85,35,160,0.2) 0%, transparent 35%),
    linear-gradient(155deg, #3a1878 0%, #22104e 35%, #2e155f 60%, #1a0c3d 100%);
  box-shadow: inset 0 1px 4px rgba(120,60,210,0.1), inset 0 -2px 5px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
}
.stone-amethyst.complete::before { background: radial-gradient(circle at 40% 38%, rgba(200,140,255,0.07), transparent 30%), radial-gradient(circle at 55% 58%, rgba(120,60,200,0.04), transparent 25%); }
.stone-amethyst.complete::after { width: 18px; height: 10px; background: radial-gradient(ellipse, rgba(255,255,255,0.09), transparent); transform: rotate(-12deg); }

/* Sapphire (Phase 2): crystalline, crisp, cool */
.stone-sapphire { border-radius: 48% 52% 46% 54% / 50% 48% 52% 50%; }

.stone-sapphire.in-progress {
  background:
    radial-gradient(ellipse at 30% 65%, rgba(20,60,160,0.7) 0%, transparent 42%),
    radial-gradient(ellipse at 64% 28%, rgba(40,90,200,0.35) 0%, transparent 38%),
    linear-gradient(155deg, #0f2a6e 0%, #0a1d4a 40%, #112e72 70%, #081840 100%);
  box-shadow: inset 0 1px 3px rgba(40,80,180,0.1), inset 0 -1px 4px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
  animation: stoneBreath 3.5s ease-in-out infinite;
}
.stone-sapphire.in-progress::before { background: radial-gradient(circle at 38% 32%, rgba(80,130,230,0.06), transparent 38%); }
.stone-sapphire.in-progress::after { width: 11px; height: 7px; background: radial-gradient(ellipse, rgba(255,255,255,0.04), transparent); }

.stone-sapphire.complete {
  background:
    radial-gradient(ellipse at 35% 35%, rgba(40,90,210,0.25) 0%, transparent 30%),
    radial-gradient(ellipse at 22% 68%, rgba(20,55,150,0.85) 0%, transparent 38%),
    radial-gradient(ellipse at 70% 20%, rgba(55,110,230,0.45) 0%, transparent 30%),
    conic-gradient(from 200deg at 45% 50%, rgba(15,40,100,0.3) 0deg, transparent 60deg, rgba(30,70,180,0.15) 120deg, transparent 180deg, rgba(20,50,140,0.2) 240deg, transparent 300deg),
    linear-gradient(155deg, #153588 0%, #0c2058 35%, #143070 60%, #091845 100%);
  box-shadow: inset 0 1px 4px rgba(60,110,220,0.08), inset 0 -2px 5px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.2);
}
.stone-sapphire.complete::before { background: radial-gradient(circle at 30% 26%, rgba(100,160,255,0.06), transparent 25%), linear-gradient(160deg, transparent 40%, rgba(60,120,240,0.03) 50%, transparent 60%); }
.stone-sapphire.complete::after { width: 15px; height: 8px; background: radial-gradient(ellipse, rgba(255,255,255,0.08), transparent); transform: rotate(-8deg); }

/* Jade (Phase 3): opaque, waxy, dense */
.stone-jade { border-radius: 50% 50% 46% 54% / 56% 44% 56% 44%; }

.stone-jade.in-progress {
  background:
    radial-gradient(ellipse at 32% 66%, rgba(4,90,65,0.7) 0%, transparent 42%),
    radial-gradient(ellipse at 60% 30%, rgba(10,140,100,0.3) 0%, transparent 38%),
    linear-gradient(155deg, #0a3d2e 0%, #062a1e 40%, #0c4232 70%, #05231a 100%);
  box-shadow: inset 0 1px 3px rgba(20,120,85,0.08), inset 0 -1px 4px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
  animation: stoneBreath 3.5s ease-in-out infinite;
}
.stone-jade.in-progress::before { background: radial-gradient(circle at 36% 34%, rgba(50,180,130,0.06), transparent 38%); }
.stone-jade.in-progress::after { width: 11px; height: 7px; background: radial-gradient(ellipse, rgba(255,255,255,0.035), transparent); }

.stone-jade.complete {
  background:
    radial-gradient(ellipse at 45% 48%, rgba(18,130,92,0.25) 0%, transparent 45%),
    radial-gradient(ellipse at 28% 62%, rgba(8,105,75,0.6) 0%, transparent 38%),
    radial-gradient(ellipse at 65% 35%, rgba(22,150,105,0.35) 0%, transparent 33%),
    linear-gradient(155deg, #12604a 0%, #0a4230 30%, #0f5440 50%, #083828 70%, #073424 100%);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), inset 0 -2px 6px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2);
}
.stone-jade.complete::before { background: radial-gradient(circle at 38% 35%, rgba(80,180,130,0.04), transparent 35%), radial-gradient(ellipse at 50% 50%, rgba(20,80,58,0.08), transparent 50%); }
.stone-jade.complete::after { width: 20px; height: 7px; background: radial-gradient(ellipse, rgba(255,255,255,0.05), transparent); transform: rotate(-18deg); }

/* Rhodonite (Phase 4): veined, streaked, organic */
.stone-rhodonite { border-radius: 46% 54% 50% 50% / 48% 52% 48% 52%; }

.stone-rhodonite.in-progress {
  background:
    radial-gradient(ellipse at 30% 64%, rgba(140,18,68,0.7) 0%, transparent 42%),
    radial-gradient(ellipse at 62% 30%, rgba(180,40,100,0.3) 0%, transparent 38%),
    linear-gradient(155deg, #5c1234 0%, #3e0c22 40%, #4f1030 70%, #35091c 100%);
  box-shadow: inset 0 1px 3px rgba(160,30,80,0.08), inset 0 -1px 4px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
  animation: stoneBreath 3.5s ease-in-out infinite;
}
.stone-rhodonite.in-progress::before { background: radial-gradient(circle at 38% 34%, rgba(200,80,130,0.06), transparent 38%); }
.stone-rhodonite.in-progress::after { width: 11px; height: 7px; background: radial-gradient(ellipse, rgba(255,255,255,0.035), transparent); }

.stone-rhodonite.complete {
  background:
    linear-gradient(125deg, transparent 18%, rgba(20,3,10,0.8) 20%, transparent 23%),
    linear-gradient(140deg, transparent 40%, rgba(18,2,8,0.7) 42%, transparent 45%),
    linear-gradient(155deg, transparent 58%, rgba(25,4,12,0.65) 60%, transparent 63%),
    linear-gradient(170deg, transparent 72%, rgba(22,3,10,0.5) 74%, transparent 77%),
    radial-gradient(ellipse at 30% 65%, rgba(160,25,78,0.75) 0%, transparent 38%),
    radial-gradient(ellipse at 62% 28%, rgba(190,45,100,0.35) 0%, transparent 32%),
    linear-gradient(155deg, #721a44 0%, #4a112e 35%, #5e1638 60%, #3e0e22 100%);
  box-shadow: inset 0 1px 4px rgba(180,40,90,0.06), inset 0 -2px 5px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.2);
}
.stone-rhodonite.complete::before { background: radial-gradient(circle at 36% 30%, rgba(220,80,130,0.04), transparent 28%), radial-gradient(circle at 52% 58%, rgba(140,20,65,0.03), transparent 22%); }
.stone-rhodonite.complete::after { width: 16px; height: 8px; background: radial-gradient(ellipse, rgba(255,255,255,0.06), transparent); transform: rotate(-10deg); }

/* Citrine (Phase 5): smoky, warm, amber depth */
.stone-citrine { border-radius: 52% 48% 44% 56% / 50% 50% 50% 50%; }

.stone-citrine.in-progress {
  background:
    radial-gradient(ellipse at 26% 66%, rgba(130,60,6,0.7) 0%, transparent 42%),
    radial-gradient(ellipse at 64% 28%, rgba(180,100,15,0.3) 0%, transparent 38%),
    linear-gradient(155deg, #5c3006 0%, #3d2004 40%, #4e2806 70%, #331a03 100%);
  box-shadow: inset 0 1px 3px rgba(160,80,10,0.08), inset 0 -1px 4px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
  animation: stoneBreath 3.5s ease-in-out infinite;
}
.stone-citrine.in-progress::before { background: radial-gradient(circle at 36% 32%, rgba(200,130,30,0.06), transparent 38%); }
.stone-citrine.in-progress::after { width: 12px; height: 7px; background: radial-gradient(ellipse, rgba(255,255,255,0.04), transparent); }

.stone-citrine.complete {
  background:
    radial-gradient(ellipse at 44% 44%, rgba(180,100,18,0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 24% 66%, rgba(140,65,8,0.75) 0%, transparent 38%),
    radial-gradient(ellipse at 68% 26%, rgba(195,110,18,0.35) 0%, transparent 32%),
    radial-gradient(ellipse at 50% 55%, rgba(110,50,6,0.15) 0%, transparent 40%),
    linear-gradient(155deg, #6e3808 0%, #462406 30%, #5c3008 50%, #3a1c04 70%, #2e1604 100%);
  box-shadow: inset 0 1px 4px rgba(180,90,12,0.08), inset 0 -2px 5px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
}
.stone-citrine.complete::before { background: radial-gradient(circle at 42% 38%, rgba(240,170,50,0.05), transparent 32%), radial-gradient(circle at 56% 56%, rgba(160,80,12,0.03), transparent 28%); }
.stone-citrine.complete::after { width: 17px; height: 9px; background: radial-gradient(ellipse, rgba(255,255,255,0.08), transparent); transform: rotate(-14deg); }

/* Garnet (Phase 6): vitreous, glassy, deep */
.stone-garnet { border-radius: 42% 58% 52% 48% / 54% 46% 54% 46%; }

.stone-garnet.in-progress {
  background:
    radial-gradient(ellipse at 28% 66%, rgba(130,16,16,0.7) 0%, transparent 42%),
    radial-gradient(ellipse at 62% 28%, rgba(180,30,30,0.3) 0%, transparent 38%),
    linear-gradient(155deg, #5c0e0e 0%, #3d0808 40%, #4e0c0c 70%, #330606 100%);
  box-shadow: inset 0 1px 3px rgba(160,20,20,0.08), inset 0 -1px 4px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
  animation: stoneBreath 3.5s ease-in-out infinite;
}
.stone-garnet.in-progress::before { background: radial-gradient(circle at 36% 34%, rgba(200,50,50,0.05), transparent 38%); }
.stone-garnet.in-progress::after { width: 11px; height: 7px; background: radial-gradient(ellipse, rgba(255,255,255,0.035), transparent); }

.stone-garnet.complete {
  background:
    radial-gradient(ellipse at 38% 38%, rgba(180,25,25,0.2) 0%, transparent 30%),
    radial-gradient(ellipse at 26% 70%, rgba(140,18,18,0.8) 0%, transparent 36%),
    radial-gradient(ellipse at 66% 24%, rgba(200,35,35,0.35) 0%, transparent 30%),
    linear-gradient(155deg, #5a0e0e 0%, #380808 30%, #4a0c0c 50%, #2a0606 70%, #200404 100%);
  box-shadow: inset 0 1px 4px rgba(180,30,30,0.06), inset 0 -2px 5px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.2);
}
.stone-garnet.complete::before { background: radial-gradient(circle at 36% 32%, rgba(220,50,50,0.04), transparent 26%), radial-gradient(circle at 54% 60%, rgba(140,18,18,0.02), transparent 22%); }
.stone-garnet.complete::after { width: 14px; height: 7px; background: radial-gradient(ellipse, rgba(255,255,255,0.07), transparent); transform: rotate(-11deg); }

/* Honor Seals: brushed metal */
.seal { border-radius: 50%; position: relative; }
.seal::before { content: ''; position: absolute; inset: 2px; border-radius: inherit; }
.seal::after {
  content: ''; position: absolute; border-radius: 2px; pointer-events: none;
  transition: top 0.1s ease, left 0.1s ease;
  top: var(--seal-light-y, 8px); left: var(--seal-light-x, 10px);
}

.seal-mentorship {
  background:
    repeating-linear-gradient(175deg, rgba(160,120,40,0.12) 0px, rgba(100,75,25,0.04) 1px, rgba(140,105,35,0.1) 2px, rgba(90,68,22,0.06) 3px),
    linear-gradient(160deg, #6b4e14 0%, #8a6820 18%, #5c420e 36%, #7d5c1a 54%, #4e3608 72%, #6b4e14 90%, #7a5a18 100%);
  box-shadow: inset 0 1px 2px rgba(180,140,60,0.08), inset 0 -1px 3px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.2);
}
.seal-mentorship::before { background: linear-gradient(170deg, rgba(255,255,255,0.06) 0%, transparent 22%, rgba(255,255,255,0.015) 45%, transparent 100%); }
.seal-mentorship::after { width: 55%; height: 1.5px; background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.08) 35%, rgba(255,255,255,0.04) 65%, transparent 95%); transform: rotate(-12deg); }

.seal-cohort {
  background:
    repeating-linear-gradient(175deg, rgba(140,145,155,0.1) 0px, rgba(90,95,105,0.04) 1px, rgba(120,125,135,0.08) 2px, rgba(80,85,95,0.05) 3px),
    linear-gradient(160deg, #3e4248 0%, #585e66 18%, #34393f 36%, #4e545c 54%, #2c3036 72%, #3e4248 90%, #484e56 100%);
  box-shadow: inset 0 1px 2px rgba(180,185,195,0.06), inset 0 -1px 3px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
}
.seal-cohort::before { background: linear-gradient(170deg, rgba(255,255,255,0.05) 0%, transparent 22%, rgba(255,255,255,0.01) 45%, transparent 100%); }
.seal-cohort::after { width: 55%; height: 1.5px; background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.06) 35%, rgba(255,255,255,0.03) 65%, transparent 95%); transform: rotate(-12deg); }

/* Mini stones (sidebar, 16px) */
.stone-mini { width: 16px; height: 16px; }
.stone-mini::after { display: none; }
.stone-mini::before { inset: 2px; }
.seal-mini { width: 14px; height: 14px; }
.seal-mini::after { display: none; }
.seal-mini::before { inset: 1px; }

/* Light theme adjustments */
[data-theme="light"] .stone.locked {
  background: linear-gradient(160deg, #d8d8de 0%, #ccccd2 35%, #d2d2d8 65%, #c8c8ce 100%);
  opacity: 0.35;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
[data-theme="light"] .stone.complete,
[data-theme="light"] .stone.in-progress {
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.2), inset 0 -1px 3px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
}
[data-theme="light"] .seal {
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), inset 0 -1px 2px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
}


/* ══════════════════════════════════════════════════════════════════════
   Support Clip Overlay
   Cinematic full-screen overlay that plays before specific lessons.
   ══════════════════════════════════════════════════════════════════════ */

.wgl-clip-overlay {
  position: fixed; inset: 0; z-index: 9999; background: #0a0012;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s ease;
}
.wgl-clip-overlay.fade-out { opacity: 0; pointer-events: none; }

/* Film grain */
.wgl-clip-grain {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px; pointer-events: none; z-index: 1;
}

/* Breathing ambient glow */
.wgl-clip-glow {
  position: absolute; width: 600px; height: 600px; top: 50%; left: 50%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--clip-phase-rgb, 124,58,237), 0.1) 0%, transparent 65%);
  animation: wglClipBreathe 4s ease-in-out infinite; pointer-events: none; z-index: 0;
}
@keyframes wglClipBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Particles */
.wgl-clip-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.wgl-clip-particle {
  position: absolute; border-radius: 50%;
  background: rgba(167,139,250,0.25); animation: wglClipFloat linear infinite;
}
@keyframes wglClipFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; } 90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

/* Phase indicator (top-left) */
.wgl-clip-phase {
  position: absolute; top: 40px; left: 44px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 1s ease, transform 1s ease; z-index: 10;
}
.wgl-clip-phase.visible { opacity: 1; transform: translateY(0); }
.wgl-clip-phase-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--clip-phase-color, #7c3aed);
  box-shadow: 0 0 8px rgba(var(--clip-phase-rgb, 124,58,237), 0.5);
}
.wgl-clip-phase-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(var(--clip-phase-rgb, 124,58,237), 0.5);
}

/* Text stage (centered) */
.wgl-clip-text-stage {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 85%; max-width: 700px; text-align: center; z-index: 10;
}
.wgl-clip-text-line {
  font-family: 'Inter', var(--font-body), sans-serif;
  font-size: 30px; font-weight: 600; line-height: 1.5; color: rgba(226,226,241,0.95);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  position: absolute; width: 100%; left: 0; top: 0;
}
.wgl-clip-text-line.visible { opacity: 1; transform: translateY(0); }
.wgl-clip-text-line.exit { opacity: 0; transform: translateY(-12px); }

/* Accent colors */
.wgl-clip-accent { color: #a78bfa; font-weight: 700; }
.wgl-clip-accent-warm { color: #c4b5fd; font-weight: 700; }

/* Skip button (top-right) */
.wgl-clip-skip {
  position: absolute; top: 28px; right: 32px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 600;
  font-family: 'Inter', var(--font-body), sans-serif;
  padding: 10px 22px; border-radius: 10px;
  cursor: pointer; transition: all 0.3s; letter-spacing: 0.5px; z-index: 20;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.wgl-clip-skip:hover { background: rgba(255,255,255,0.18); color: #fff; border-color: rgba(255,255,255,0.3); }

/* Progress bar (bottom) */
.wgl-clip-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: rgba(124,58,237,0.08); z-index: 10; }
.wgl-clip-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--clip-phase-color, #7c3aed), #a78bfa);
  transition: width 0.2s linear;
}

/* Stone area (centered, appears at end) */
.wgl-clip-stone {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 2s ease; z-index: 10; text-align: center;
}
.wgl-clip-stone.visible { opacity: 1; }
.wgl-clip-stone svg {
  width: 56px; height: 56px;
  filter: drop-shadow(0 0 20px rgba(var(--clip-phase-rgb, 124,58,237), 0.4))
          drop-shadow(0 0 40px rgba(var(--clip-phase-rgb, 124,58,237), 0.15));
  margin-bottom: 12px;
}
.wgl-clip-stone-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(var(--clip-phase-rgb, 124,58,237), 0.4);
}


/* ══════════════════════════════════════════════════════════════════════
   Skill Stack Checkpoint
   ══════════════════════════════════════════════════════════════════════ */

.wgl-cp-layer-label {
  color: rgba(124,58,237,0.7); font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 20px;
}
.wgl-cp-question-text {
  color: rgba(226,226,241,0.9); font-size: clamp(19px, 3vw, 23px); line-height: 1.65;
  margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto;
  font-weight: 400;
}
.wgl-cp-pills {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.wgl-cp-pill {
  padding: 14px 32px; border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(155,143,196,0.8); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  font-family: inherit; min-width: 130px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 8px rgba(0,0,0,0.2);
}
.wgl-cp-pill:hover {
  background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.25);
  color: #e2e2f1; transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px rgba(0,0,0,0.3), 0 0 20px rgba(124,58,237,0.08);
}
.wgl-cp-pill-selected {
  background: rgba(124,58,237,0.18) !important; border-color: rgba(124,58,237,0.4) !important;
  color: #fff !important; transform: scale(0.97); pointer-events: none;
  box-shadow: 0 0 30px rgba(124,58,237,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}
.wgl-cp-dots {
  display: flex; gap: 10px; justify-content: center; margin-top: 48px;
}
.wgl-cp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.1); transition: all 0.3s;
}
.wgl-cp-dot-active { background: rgba(124,58,237,0.5); }
.wgl-cp-dot-done { background: rgba(124,58,237,0.8); }
.wgl-cp-dot-skipped { background: rgba(255,255,255,0.05); }
.wgl-cp-actions {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.wgl-cp-btn {
  display: inline-block; padding: 14px 32px; border-radius: 12px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1); font-family: inherit;
  text-align: center; min-width: 240px;
}
.wgl-cp-btn-continue {
  background: linear-gradient(135deg, #6036e8, #7c5ce8); color: #fff;
  box-shadow: 0 8px 24px rgba(96,54,232,0.3);
}
.wgl-cp-btn-continue:hover {
  transform: translateY(-2px); box-shadow: 0 12px 32px rgba(96,54,232,0.4);
}
.wgl-cp-btn-review {
  background: transparent; color: #9b8fc4;
  border: 1px solid rgba(255,255,255,0.1);
}
.wgl-cp-btn-review:hover {
  border-color: rgba(124,58,237,0.3); color: #e2e2f1;
}
/* Music mini-bar (bottom-right, one unit) */
.wgl-cp-music-bar {
  position: absolute; bottom: 20px; right: 20px; z-index: 20;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; padding: 6px 10px;
  border-radius: 6px; transition: background 0.2s;
}
.wgl-cp-music-bar:hover { background: rgba(255,255,255,0.03); }
.wgl-cp-music-bar svg { color: rgba(155,143,196,0.15); transition: color 0.2s; flex-shrink: 0; }
.wgl-cp-music-bar:hover svg { color: rgba(155,143,196,0.35); }
.wgl-cp-music-bar span {
  color: rgba(155,143,196,0.12); font-size: 9px; letter-spacing: 0.3px;
  transition: color 0.2s; white-space: nowrap;
}
.wgl-cp-music-bar:hover span { color: rgba(155,143,196,0.25); }
@media (max-width: 600px) {
  .wgl-cp-music-bar { bottom: 12px; right: 12px; }
  .wgl-cp-music-bar span { display: none; }
}

/* Sidebar checkpoint item */
.wgl-cp-sidebar-item {
  background: rgba(124,58,237,0.04) !important;
  border-left: 3px solid rgba(124,58,237,0.3) !important;
  margin-top: 4px !important; margin-bottom: 4px !important;
}
.wgl-cp-sidebar-item:hover {
  background: rgba(124,58,237,0.1) !important;
}
.wgl-cp-sidebar-icon {
  background: rgba(124,58,237,0.1) !important;
  border-color: rgba(124,58,237,0.3) !important;
  color: #7c3aed !important;
}
.wgl-cp-sidebar-done {
  background: rgba(52,211,153,0.15) !important;
  border-color: rgba(52,211,153,0.3) !important;
  color: #34d399 !important;
}
@media (max-width: 600px) {
  .wgl-cp-question-text { font-size: 17px; }
  .wgl-cp-pills { flex-direction: column; align-items: center; }
  .wgl-cp-pill { width: 100%; max-width: 280px; min-height: 44px; }
  .wgl-cp-btn { width: 100%; max-width: 300px; }
}

/* ══════════════════════════════════════════════════════════════════════
   Mobile Collapsible Sections
   Exercise boxes, practice tips, and mentorship moments collapse on
   screens < 768px to reduce scroll fatigue. CSS + JS enhancement only.
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .wg-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-height: 44px;
    padding: 0;
    margin: 0;
  }

  .wg-collapsible-header .wg-collapse-chevron {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    margin-left: 12px;
    line-height: 1;
  }

  .wg-collapsible-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .wg-collapsible-wrap.wg-expanded {
    max-height: 2000px;
    transition: max-height 0.5s ease;
  }

  .wg-collapse-chevron.wg-expanded {
    transform: rotate(90deg);
  }

  /* Collapsed border hint */
  .wg-exercise-box.wg-collapsed,
  .wg-practice-tip.wg-collapsed,
  .wg-mentorship-moment.wg-collapsed {
    padding-bottom: 14px;
    border-bottom-style: dashed;
  }

  /* Ensure header titles within collapsible sections have no bottom margin when collapsed */
  .wg-collapsible-header h4,
  .wg-collapsible-header strong {
    margin-bottom: 0;
  }
}

/* Desktop: never show chevrons, never collapse */
@media (min-width: 768px) {
  .wg-collapse-chevron { display: none; }
  .wg-collapsible-wrap { max-height: none !important; overflow: visible !important; }
  .wg-collapsible-header { cursor: default; }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .wgl-clip-text-line { font-size: 22px; }
  .wgl-clip-phase { top: 24px; left: 24px; }
  .wgl-clip-skip { top: 20px; right: 20px; }
  .wgl-clip-stone svg { width: 48px; height: 48px; }
}

/* ══════════════════════════════════════════════════════════════════════
   Support Clip Diagrams
   Animated SVG/HTML diagrams rendered inside clip overlays.
   ══════════════════════════════════════════════════════════════════════ */

/* Base diagram container */
.wgl-diagram {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 12; pointer-events: none;
  opacity: 0; transition: opacity 0.8s ease;
}
.wgl-diagram.visible { opacity: 1; }
.wgl-diagram.exiting { opacity: 0; transition: opacity 0.6s ease; }
.wgl-dia-svg { width: 100%; height: 100%; }

/* ─── 1. Pipeline ─────────────────────────────────────────────────── */
.wgl-diagram--pipeline { width: 320px; height: 200px; }
.wgl-diagram--pipeline svg { overflow: visible; }
.wgl-dia-pipeline-dot {
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(167,139,250,0.6));
  transition: cx 2s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s;
}
.wgl-dia-pipeline-dot.traveling {
  cx: 360px;
  animation: pipelineDotTravel 2s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes pipelineDotTravel {
  0% { cx: 40; filter: drop-shadow(0 0 6px rgba(167,139,250,0.6)); }
  100% { cx: 360; filter: drop-shadow(0 0 12px rgba(167,139,250,0.9)); }
}
.wgl-dia-pipeline-converge {
  opacity: 0; transition: opacity 0.6s ease, r 0.6s ease;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.8));
}
.wgl-dia-pipeline-converge.visible {
  opacity: 1; r: 12;
}

/* ─── 2. Voice Leading ────────────────────────────────────────────── */
.wgl-diagram--voiceleading { width: 340px; height: 240px; }
.wgl-dia-vl-wrap { position: relative; width: 100%; height: 100%; }
.wgl-dia-vl-bars { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 16px; }
.wgl-dia-vl-row { position: relative; }
.wgl-dia-vl-bar {
  width: 180px; height: 36px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 1px;
  transition: transform 1s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.6s;
}
.wgl-dia-vl-bar::after {
  content: attr(data-label); position: absolute; right: -90px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 500; color: rgba(226,226,241,0.4);
  letter-spacing: 1px; opacity: 0; transition: opacity 0.6s ease 0.4s; white-space: nowrap;
}
.wgl-dia-vl-g { background: linear-gradient(135deg, #34d399, #4ade80); color: #0a0012; }
.wgl-dia-vl-e { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.wgl-dia-vl-c { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.wgl-dia-vl-g.glow {
  box-shadow: 0 0 20px rgba(52,211,153,0.5);
}
.wgl-dia-vl-g.glow::after { opacity: 1; }
.wgl-dia-vl-e.descend { transform: translateY(8px); }
.wgl-dia-vl-e.descend::after { opacity: 1; }
.wgl-dia-vl-c.descend { transform: translateY(8px); }
.wgl-dia-vl-c.descend::after { opacity: 1; }

.wgl-dia-vl-labels {
  position: absolute; top: 16px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 20px;
}
.wgl-dia-vl-chord {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(226,226,241,0.5);
  opacity: 0; transition: opacity 0.6s ease;
}
.wgl-dia-vl-chord.visible { opacity: 1; }
.wgl-dia-vl-line {
  position: absolute; bottom: 30px; left: 20px; right: 20px; height: 1px;
  background: rgba(167,139,250,0.2);
  transform: scaleX(0); transform-origin: left; transition: transform 0.8s ease;
}
.wgl-dia-vl-line.drawn { transform: scaleX(1); }

/* ─── 3. Giant Steps ──────────────────────────────────────────────── */
.wgl-diagram--giantsteps { width: 320px; height: 300px; }
.wgl-diagram--giantsteps.zoom-in {
  animation: wglDiaGsZoomIn 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.wgl-diagram--giantsteps.hold { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.wgl-diagram--giantsteps.spiral-out {
  animation: wglDiaGsSpiralOut 1.5s cubic-bezier(0.55,0,1,0.45) forwards;
}
@keyframes wglDiaGsZoomIn {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(0.3); }
  60% { opacity: 1; transform: translate(-50%,-50%) scale(1.05); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
@keyframes wglDiaGsSpiralOut {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0deg); }
  40% { opacity: 1; transform: translate(-50%,-50%) scale(1.1) rotate(60deg); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(0.2) rotate(360deg); }
}
.wgl-dia-gs-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.wgl-dia-gs-line {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.8s ease;
}
.wgl-dia-gs-line.drawn { stroke-dashoffset: 0; }
.wgl-dia-gs-node {
  position: absolute; width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.wgl-dia-gs-node.visible { opacity: 1; transform: scale(1); }
.wgl-dia-gs-b {
  top: 10px; left: 50%; margin-left: -36px;
  background: linear-gradient(135deg,#6036e8,#7c5ce8);
  box-shadow: 0 0 30px rgba(96,54,232,0.5), 0 0 60px rgba(96,54,232,0.2);
}
.wgl-dia-gs-eb {
  bottom: 20px; left: 15px;
  background: linear-gradient(135deg,#ca3fa0,#e055b8);
  box-shadow: 0 0 30px rgba(202,63,160,0.5), 0 0 60px rgba(202,63,160,0.2);
}
.wgl-dia-gs-g {
  bottom: 20px; right: 15px;
  background: linear-gradient(135deg,#34d399,#4ade80); color: #0a0012;
  box-shadow: 0 0 30px rgba(52,211,153,0.5), 0 0 60px rgba(52,211,153,0.2);
}
.wgl-dia-gs-label {
  position: absolute; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.4); text-align: center; width: 80px;
  opacity: 0; transition: opacity 0.5s ease;
}
.wgl-dia-gs-label.visible { opacity: 1; }
.wgl-dia-gs-label-b { top: 84px; left: 50%; margin-left: -40px; }
.wgl-dia-gs-label-eb { bottom: 0; left: 10px; }
.wgl-dia-gs-label-g { bottom: 0; right: 10px; }
.wgl-dia-gs-dom {
  position: absolute; font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  color: rgba(251,191,36,0); text-shadow: 0 0 12px rgba(251,191,36,0);
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1), color 0.6s ease, text-shadow 0.6s ease;
  white-space: nowrap; pointer-events: none;
}
.wgl-dia-gs-dom.visible {
  opacity: 1; transform: scale(1);
  color: rgba(251,191,36,0.85); text-shadow: 0 0 12px rgba(251,191,36,0.2);
}
.wgl-dia-gs-arrow { font-size: 11px; color: rgba(251,191,36,0.5); }
.wgl-dia-gs-dom-d7 { top: 110px; right: 30px; }
.wgl-dia-gs-dom-bb7 { bottom: 55px; left: 50%; transform: translateX(-50%) scale(0.8); }
.wgl-dia-gs-dom-bb7.visible { transform: translateX(-50%) scale(1); }
.wgl-dia-gs-dom-fs7 { top: 110px; left: 25px; }
.wgl-diagram--giantsteps.hold .wgl-dia-gs-node {
  animation: wglDiaGsNodeGlow 2s ease-in-out infinite alternate;
}
@keyframes wglDiaGsNodeGlow {
  0% { filter: brightness(1); } 100% { filter: brightness(1.2); }
}

/* ─── 4. Neighborhoods ────────────────────────────────────────────── */
.wgl-diagram--neighborhoods { width: 400px; height: 160px; }
.wgl-dia-nb-cluster, .wgl-dia-nb-cluster-core {
  opacity: 0; transition: opacity 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.wgl-dia-nb-cluster.visible, .wgl-dia-nb-cluster-core.visible { opacity: 1; }
.wgl-dia-nb-cluster-core.bright {
  fill: #e2e2f1;
  filter: drop-shadow(0 0 8px rgba(167,139,250,0.8));
  transition: fill 0.4s, filter 0.4s;
}
.wgl-dia-nb-highway {
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.wgl-dia-nb-highway.drawn { stroke-dashoffset: 0; }

/* ─── 5. Vertical/Horizontal ─────────────────────────────────────── */
.wgl-diagram--verthoriz { width: 360px; height: 200px; }
.wgl-dia-vh-wrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 60px; }
.wgl-dia-vh-vert {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  opacity: 0; transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.25,0.46,0.45,0.94);
}
.wgl-dia-vh-vert.visible { opacity: 1; }
.wgl-dia-vh-vert.rotate { transform: rotate(90deg) scaleX(1.8); opacity: 0.3; }
.wgl-dia-vh-horiz {
  display: flex; flex-direction: row; gap: 28px; align-items: center;
  opacity: 0; transition: opacity 0.6s ease;
}
.wgl-dia-vh-horiz.visible { opacity: 1; }
.wgl-dia-vh-note {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
}
.wgl-dia-vh-vert .wgl-dia-vh-note {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  box-shadow: 0 0 12px rgba(124,58,237,0.4);
}
.wgl-dia-vh-horiz .wgl-dia-vh-note {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 0 12px rgba(37,99,235,0.4);
}
.wgl-dia-vh-label-v, .wgl-dia-vh-label-h {
  position: absolute; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(226,226,241,0.3);
  opacity: 0; transition: opacity 0.6s ease;
}
.wgl-dia-vh-label-v.visible, .wgl-dia-vh-label-h.visible { opacity: 1; }
.wgl-dia-vh-label-v { top: 10px; left: 50px; }
.wgl-dia-vh-label-h { bottom: 10px; right: 50px; }

/* ─── 6. Stepping Stones ──────────────────────────────────────────── */
.wgl-diagram--steppingstones { width: 380px; height: 140px; }
.wgl-dia-ss-wrap {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 20px;
}
.wgl-dia-ss-beat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease; z-index: 2;
}
.wgl-dia-ss-beat.visible { opacity: 1; transform: translateY(0); }
.wgl-dia-ss-beat span { font-size: 14px; font-weight: 700; color: rgba(226,226,241,0.7); }
.wgl-dia-ss-beat small { font-size: 11px; font-weight: 500; color: rgba(226,226,241,0.3); letter-spacing: 1px; text-transform: uppercase; }
.wgl-dia-ss-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 0 12px rgba(37,99,235,0.4);
  transition: box-shadow 0.4s, transform 0.4s;
}
.wgl-dia-ss-circle.pulse {
  box-shadow: 0 0 24px rgba(96,165,250,0.7);
  animation: wglDiaSsPulse 1s ease-in-out 2;
}
@keyframes wglDiaSsPulse {
  0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); }
}
.wgl-dia-ss-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(167,139,250,0.25); border: 1px solid rgba(167,139,250,0.3);
}
.wgl-dia-ss-line {
  position: absolute; bottom: 20px; left: 0; right: 0; height: 20px; z-index: 1;
}
.wgl-dia-ss-path {
  stroke-dasharray: 500; stroke-dashoffset: 500;
  transition: stroke-dashoffset 1.2s ease;
}
.wgl-dia-ss-path.drawn { stroke-dashoffset: 0; }

/* ─── 7. Chord Pairs ─────────────────────────────────────────────── */
.wgl-diagram--chordpairs { width: 380px; height: 220px; }
.wgl-dia-cp-wrap { position: relative; width: 100%; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.wgl-dia-cp-pair {
  display: flex; align-items: center; gap: 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.wgl-dia-cp-pair.visible { opacity: 1; transform: translateY(0); }
.wgl-dia-cp-pair.pulse .wgl-dia-cp-chord {
  animation: wglDiaCpPulse 1.2s ease-in-out 1;
}
@keyframes wglDiaCpPulse {
  0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); }
}
.wgl-dia-cp-chord {
  padding: 14px 22px; border-radius: 12px;
  font-size: 18px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #059669, #34d399);
  box-shadow: 0 0 16px rgba(5,150,105,0.3);
  transition: transform 0.3s;
}
.wgl-dia-cp-between {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 500; color: rgba(226,226,241,0.4);
  letter-spacing: 0.5px;
}
.wgl-dia-cp-arrow { font-size: 14px; color: rgba(226,226,241,0.25); }
.wgl-dia-cp-bracket {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(226,226,241,0.3);
  border: 1px solid rgba(226,226,241,0.1); border-radius: 6px;
  padding: 4px 16px;
  opacity: 0; transition: opacity 0.6s ease;
}
.wgl-dia-cp-bracket.visible { opacity: 1; }

/* ─── 8. One Note Difference ──────────────────────────────────────── */
.wgl-diagram--onenotediff { width: 400px; height: 260px; }
.wgl-dia-ond-wrap { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wgl-dia-ond-title {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; opacity: 0; transition: opacity 0.6s ease;
}
.wgl-dia-ond-title.visible { opacity: 1; }
.wgl-dia-ond-title-top { color: rgba(52,211,153,0.6); }
.wgl-dia-ond-title-bot { color: rgba(244,114,182,0.6); }
.wgl-dia-ond-row {
  display: flex; gap: 10px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.wgl-dia-ond-row.visible { opacity: 1; transform: translateY(0); }
.wgl-dia-ond-note {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.wgl-dia-ond-same { background: rgba(167,139,250,0.15); border: 1px solid rgba(167,139,250,0.2); }
.wgl-dia-ond-row-top .wgl-dia-ond-same { color: rgba(52,211,153,0.8); }
.wgl-dia-ond-row-bot .wgl-dia-ond-same { color: rgba(244,114,182,0.8); }
.wgl-dia-ond-diff-top {
  background: linear-gradient(135deg, #34d399, #4ade80); color: #0a0012;
  box-shadow: 0 0 12px rgba(52,211,153,0.4);
}
.wgl-dia-ond-diff-bot {
  background: linear-gradient(135deg, #db2777, #f472b6); color: #fff;
  box-shadow: 0 0 12px rgba(219,39,119,0.4);
  transition: box-shadow 0.4s, transform 0.4s;
}
.wgl-dia-ond-diff-bot.radiate {
  box-shadow: 0 0 30px rgba(219,39,119,0.6), 0 0 60px rgba(219,39,119,0.2);
  animation: wglDiaOndRadiate 0.8s ease-out 1;
}
@keyframes wglDiaOndRadiate {
  0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); }
}
.wgl-dia-ond-connectors {
  position: relative; width: 340px; height: 12px;
  display: flex; justify-content: space-around;
}
.wgl-dia-ond-conn {
  width: 1px; height: 100%; background: rgba(167,139,250,0.15);
  opacity: 0; transition: opacity 0.4s ease;
}
.wgl-dia-ond-conn.visible { opacity: 1; }
.wgl-dia-ond-arrow-down {
  font-size: 20px; color: rgba(219,39,119,0.6);
  opacity: 0; transition: opacity 0.6s ease;
  position: absolute; left: 50%; margin-left: -10px;
}
.wgl-dia-ond-arrow-down.visible { opacity: 1; }

/* ─── 9. Three Doors ──────────────────────────────────────────────── */
.wgl-diagram--threedoors { width: 400px; height: 280px; }
.wgl-dia-td-wrap { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wgl-dia-td-scale {
  display: flex; gap: 8px;
  opacity: 0; transition: opacity 0.6s ease;
}
.wgl-dia-td-scale.visible { opacity: 1; }
.wgl-dia-td-scale-note {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(167,139,250,0.15); border: 1px solid rgba(167,139,250,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: rgba(226,226,241,0.6);
}
.wgl-dia-td-conn-line {
  width: 2px; height: 24px; background: rgba(167,139,250,0.2);
  transform: scaleY(0); transform-origin: top; transition: transform 0.6s ease;
}
.wgl-dia-td-conn-line.drawn { transform: scaleY(1); }
.wgl-dia-td-doors { display: flex; gap: 16px; }
.wgl-dia-td-door {
  width: 110px; padding: 20px 12px; border-radius: 14px;
  text-align: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s;
}
.wgl-dia-td-door.visible { opacity: 1; transform: translateY(0); }
.wgl-dia-td-door.pulse {
  animation: wglDiaTdPulse 1.2s ease-in-out 1;
}
@keyframes wglDiaTdPulse {
  0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); }
}
.wgl-dia-td-door-inner strong {
  display: block; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.wgl-dia-td-door-inner small {
  font-size: 11px; font-weight: 500; color: rgba(226,226,241,0.4);
  letter-spacing: 1px; text-transform: uppercase;
}
.wgl-dia-td-door1 {
  background: rgba(219,39,119,0.1); border: 1px solid rgba(219,39,119,0.25);
  box-shadow: 0 0 20px rgba(219,39,119,0.1);
}
.wgl-dia-td-door2 {
  background: rgba(217,119,6,0.1); border: 1px solid rgba(217,119,6,0.25);
  box-shadow: 0 0 20px rgba(217,119,6,0.1);
}
.wgl-dia-td-door3 {
  background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.25);
  box-shadow: 0 0 20px rgba(220,38,38,0.1);
}

/* ─── 10. Symmetry ────────────────────────────────────────────────── */
.wgl-diagram--symmetry { width: 400px; height: 120px; }
/* ─── Triad Transform (Major → Minor → Diminished) ──────────────── */
.wgl-dia-transform { text-align: center; }
.wgl-dia-tf-notes {
  display: flex; justify-content: center; gap: 40px; margin-bottom: 24px;
  opacity: 0; transition: opacity 0.8s ease;
}
.wgl-dia-tf-notes.visible { opacity: 1; }
.wgl-dia-tf-note { text-align: center; }
.wgl-dia-tf-circle {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #e2e2f1;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 8px;
}
.wgl-dia-tf-shifted {
  transform: translateY(6px);
  box-shadow: 0 0 20px rgba(248,113,113,0.3);
}
.wgl-dia-tf-glow {
  animation: wglTfGlow 1.5s ease-in-out infinite alternate;
}
@keyframes wglTfGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.3); box-shadow: 0 0 24px rgba(220,38,38,0.4); }
}
.wgl-dia-tf-label {
  font-size: 12px; font-weight: 600; color: rgba(167,139,250,0.6);
  letter-spacing: 1px; transition: color 0.6s ease;
}
.wgl-dia-tf-type {
  font-size: 18px; font-weight: 700; color: rgba(167,139,250,0.8);
  letter-spacing: 1px; opacity: 0; transition: opacity 0.6s ease, color 0.6s ease;
}
.wgl-dia-tf-type.visible { opacity: 1; }
.wgl-dia-tf-arrow {
  font-size: 12px; font-weight: 600; color: rgba(248,113,113,0.6);
  margin-top: 12px; opacity: 0; transition: opacity 0.5s ease;
  letter-spacing: 0.5px;
}
.wgl-dia-tf-arrow.visible { opacity: 1; }
@media (max-width: 600px) {
  .wgl-dia-tf-notes { gap: 24px; }
  .wgl-dia-tf-circle { width: 52px; height: 52px; font-size: 18px; }
}

/* ─── 11. WH/HW ──────────────────────────────────────────────────── */
.wgl-diagram--whhw { width: 380px; height: 180px; }
.wgl-dia-wh-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 10px 0;
}
.wgl-dia-wh-row {
  display: flex; align-items: center; gap: 16px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.wgl-dia-wh-row.visible { opacity: 1; transform: translateY(0); }
.wgl-dia-wh-row.pulse {
  animation: wglDiaWhPulse 0.8s ease-in-out 1;
}
@keyframes wglDiaWhPulse {
  0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(0) scale(1.04); }
}
.wgl-dia-wh-pattern {
  display: flex; align-items: center; gap: 2px;
  padding: 10px 16px; border-radius: 10px;
  background: rgba(167,139,250,0.06); border: 1px solid rgba(167,139,250,0.12);
}
.wgl-dia-wh-step {
  font-size: 16px; font-weight: 700; width: 28px; text-align: center;
}
.wgl-dia-wh-h { color: rgba(226,226,241,0.5); }
.wgl-dia-wh-w { color: rgba(226,226,241,0.8); }
.wgl-dia-wh-gap-s { width: 4px; }
.wgl-dia-wh-gap-l { width: 10px; }
.wgl-dia-wh-result {
  font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
}
.wgl-dia-wh-dom { color: #fbbf24; }
.wgl-dia-wh-dim { color: #f87171; }
.wgl-dia-wh-swap {
  font-size: 12px; font-weight: 600; color: rgba(226,226,241,0.25);
  letter-spacing: 2px;
  opacity: 0; transition: opacity 0.6s ease;
}
.wgl-dia-wh-swap.visible { opacity: 1; }

/* ─── Diagram Mobile Responsiveness ───────────────────────────────── */
@media (max-width: 600px) {
  .wgl-diagram--pipeline { width: 260px; height: 160px; }
  .wgl-diagram--voiceleading { width: 280px; height: 200px; }
  .wgl-dia-vl-bar { width: 140px; height: 30px; font-size: 13px; }
  .wgl-dia-vl-bar::after { right: -70px; font-size: 11px; }
  .wgl-diagram--giantsteps { width: 260px; height: 240px; }
  .wgl-dia-gs-node { width: 56px; height: 56px; font-size: 18px; }
  .wgl-diagram--neighborhoods { width: 320px; height: 130px; }
  .wgl-diagram--verthoriz { width: 280px; height: 160px; }
  .wgl-dia-vh-wrap { gap: 30px; }
  .wgl-dia-vh-note { width: 34px; height: 34px; font-size: 13px; }
  .wgl-diagram--steppingstones { width: 300px; height: 120px; }
  .wgl-dia-ss-circle { width: 26px; height: 26px; }
  .wgl-diagram--chordpairs { width: 300px; height: 200px; }
  .wgl-dia-cp-chord { padding: 10px 16px; font-size: 15px; }
  .wgl-diagram--onenotediff { width: 320px; height: 220px; }
  .wgl-dia-ond-note { width: 32px; height: 32px; font-size: 11px; }
  .wgl-diagram--threedoors { width: 320px; height: 240px; }
  .wgl-dia-td-door { width: 90px; padding: 14px 8px; }
  .wgl-dia-td-door-inner strong { font-size: 11px; }
  .wgl-diagram--symmetry { width: 320px; height: 100px; }
  .wgl-diagram--whhw { width: 300px; height: 160px; }
  .wgl-dia-wh-step { font-size: 13px; width: 22px; }
}



/* ══════════════════════════════════════════════════════════════════════
   PHASE 1: FEEL — Mark Complete Upgrade
   ══════════════════════════════════════════════════════════════════════ */

/* ── Sidebar lesson just-completed glow ──────────────────────────── */
.lesson-item.just-completed .lesson-item-title {
  animation: justCompletedGlow 2s ease forwards;
}
@keyframes justCompletedGlow {
  0% { text-shadow: 0 0 8px rgba(52,211,153,0.5); }
  100% { text-shadow: none; }
}

/* ── Sidebar progress bar smooth animation ───────────────────────── */
.sidebar-progress-fill,
#sidebar-progress-fill {
  transition: width 0.6s ease-out;
}

/* ── Sidebar lesson hover accent line ────────────────────────────── */
.lesson-item {
  position: relative;
  transition: padding-left 0.2s ease;
}
.lesson-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: var(--purple);
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lesson-item:hover {
  padding-left: 4px;
}
.lesson-item:hover::before {
  opacity: 0.4;
}
.lesson-item.active::before {
  opacity: 1;
}


/* ══════════════════════════════════════════════════════════════════════
   Phase Completion Certificate Modal
   Shareable certificate shown when a student completes all lessons
   in a phase. Backdrop, card, image, action buttons.
   ══════════════════════════════════════════════════════════════════════ */

.cert-modal {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 16, 0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}
.cert-modal.active {
  opacity: 1; pointer-events: auto;
}

.cert-modal-card {
  position: relative; width: 100%; max-width: 640px;
  background: rgba(22, 18, 38, 0.95);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: fadeUp 0.5s var(--ease-out) both;
}
[data-theme="light"] .cert-modal-card {
  background: rgba(255, 255, 255, 0.96);
}
.cert-modal-card::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1.5px;
  background: var(--glass-line); filter: blur(0.3px); z-index: 1;
}

.cert-modal-img {
  width: 100%; display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cert-modal-actions {
  display: flex; gap: 10px; padding: 20px 24px;
  justify-content: center; flex-wrap: wrap;
}

.cert-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none;
  transition: all 0.25s var(--ease-spring);
}
.cert-btn:hover { transform: translateY(-1px); }
.cert-btn:active { transform: scale(0.97); transition-duration: 0.08s; }

.cert-btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 4px 16px rgba(96, 54, 232, 0.3);
}
.cert-btn-primary:hover {
  box-shadow: 0 8px 32px rgba(96, 54, 232, 0.4);
}

.cert-btn-secondary {
  background: rgba(96, 54, 232, 0.12);
  border: 1px solid rgba(96, 54, 232, 0.2);
  color: var(--purple);
}
.cert-btn-secondary:hover {
  background: rgba(96, 54, 232, 0.18);
}

.cert-btn-ghost {
  background: none; color: var(--text-muted);
  padding: 12px 20px;
}
.cert-btn-ghost:hover { color: var(--text-secondary); }

@media (max-width: 500px) {
  .cert-modal { padding: 12px; }
  .cert-modal-actions { padding: 16px; gap: 8px; }
  .cert-btn { padding: 10px 18px; font-size: 13px; }
}


/* ══════════════════════════════════════════════════════════════════════
   Course Hub Pages (Vault, Vol1, Vol2)
   Hero, session grid, lesson grid, stats, badges, CTA.
   ══════════════════════════════════════════════════════════════════════ */

.vault-container, .course-hub-container {
  max-width: 800px; margin: 0 auto; padding: 100px 24px 60px;
}

/* Badge */
.vault-badge, .course-hub-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--pink); margin-bottom: 16px;
}
.vault-badge-dot, .course-hub-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 8px rgba(202,63,160,0.5);
}

/* Title */
.vault-title, .course-hub-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700; color: var(--text-primary); margin: 0 0 12px;
  letter-spacing: -0.02em; line-height: 1.2;
}

/* Subtitle */
.vault-subtitle, .course-hub-subtitle {
  font-size: 15px; color: var(--text-secondary); line-height: 1.7;
  max-width: 640px; margin: 0 0 28px;
}

/* Stats row */
.vault-stats, .course-hub-stats {
  display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.vault-stat, .course-hub-stat {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.vault-stat svg, .course-hub-stat svg { color: var(--purple); flex-shrink: 0; }

/* Manifesto / intro box */
.vault-manifesto {
  position: relative; padding: 24px 28px; margin-bottom: 36px;
  background: rgba(96,54,232,0.04);
  border: 1px solid rgba(96,54,232,0.1);
  border-radius: var(--radius-md);
}
.vault-manifesto::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(96,54,232,0.3), transparent);
}
.vault-manifesto p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.vault-manifesto strong { color: var(--text-primary); }
[data-theme="light"] .vault-manifesto { background: rgba(96,54,232,0.02); }

/* Next live banner */
.vault-live-banner {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 16px 22px; margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(52,211,153,0.08), rgba(37,99,235,0.06));
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.vault-live-banner::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,0.3), transparent);
}
.vault-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(52,211,153,0.5);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(52,211,153,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 16px rgba(52,211,153,0.3); }
}
.vault-live-text { font-size: 14px; font-weight: 600; color: rgba(52,211,153,0.9); }
.vault-live-date { font-size: 13px; color: var(--text-muted); margin-left: auto; }
[data-theme="light"] .vault-live-banner { background: linear-gradient(135deg, rgba(5,150,105,0.04), rgba(37,99,235,0.03)); }
[data-theme="light"] .vault-live-text { color: rgba(5,150,105,0.9); }

/* Session grid */
.session-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}

/* Session card */
.session-card {
  position: relative; display: block;
  padding: 20px 24px; border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  text-decoration: none; color: inherit;
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
}
.session-card::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
}
.session-card:hover {
  border-color: rgba(96,54,232,0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(96,54,232,0.04);
}
.session-card:active { transform: scale(0.98); transition-duration: 0.08s; }
[data-theme="light"] .session-card { background: rgba(255,255,255,0.7); }
[data-theme="light"] .session-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

/* Session card inner elements */
.session-card-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 8px; }
.session-num {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--purple);
  background: rgba(96,54,232,0.1); border: 1px solid rgba(96,54,232,0.15);
}
.session-card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.3; padding-top: 4px; }
.session-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.session-card-footer { display: flex; align-items: center; justify-content: space-between; }
.session-duration {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.session-duration svg { color: var(--purple); }
.session-watch {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--purple);
}
.session-card:hover .session-watch { color: var(--pink); }

/* Free session card (prominent) */
.session-card-free {
  border-color: rgba(52,211,153,0.25);
  background: linear-gradient(135deg, rgba(52,211,153,0.06), rgba(96,54,232,0.04));
  box-shadow: 0 0 0 1px rgba(52,211,153,0.08) inset, 0 8px 32px rgba(0,0,0,0.15);
}
.session-card-free::before {
  background: linear-gradient(90deg, transparent, rgba(52,211,153,0.2), rgba(96,54,232,0.15), transparent);
}
.session-card-free:hover {
  border-color: rgba(52,211,153,0.35);
  box-shadow: 0 16px 50px rgba(0,0,0,0.3), 0 0 40px rgba(52,211,153,0.06);
}
[data-theme="light"] .session-card-free { background: linear-gradient(135deg, rgba(5,150,105,0.04), rgba(96,54,232,0.02)); }
.session-free-badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #fff;
  background: linear-gradient(135deg, #059669, #34d399);
  padding: 3px 10px; border-radius: 100px; margin-bottom: 12px;
}

/* Locked session card */
.session-card-locked {
  opacity: 0.55; cursor: pointer;
}
.session-card-locked:hover { opacity: 0.75; }
.session-lock-icon {
  position: absolute; top: 16px; right: 16px;
  color: var(--text-muted); opacity: 0.5;
}

/* Session card stagger animation */
.session-card { animation: sessionIn 0.4s var(--ease-out) both; }
.session-card:nth-child(1) { animation-delay: 0.05s; }
.session-card:nth-child(2) { animation-delay: 0.10s; }
.session-card:nth-child(3) { animation-delay: 0.15s; }
.session-card:nth-child(4) { animation-delay: 0.20s; }
.session-card:nth-child(5) { animation-delay: 0.25s; }
.session-card:nth-child(6) { animation-delay: 0.30s; }
.session-card:nth-child(7) { animation-delay: 0.35s; }
.session-card:nth-child(8) { animation-delay: 0.40s; }
.session-card:nth-child(9) { animation-delay: 0.45s; }
.session-card:nth-child(10) { animation-delay: 0.50s; }
.session-card:nth-child(11) { animation-delay: 0.55s; }
.session-card:nth-child(12) { animation-delay: 0.60s; }
.session-card:nth-child(13) { animation-delay: 0.65s; }
@keyframes sessionIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.session-card-locked { animation: sessionIn 0.4s var(--ease-out) both; }

/* Unlock CTA section */
.course-hub-cta {
  margin-top: 48px; padding: 36px 32px; text-align: center;
  background: rgba(96,54,232,0.04);
  border: 1px solid rgba(96,54,232,0.1);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.course-hub-cta::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(96,54,232,0.4) 30%, rgba(202,63,160,0.3) 70%, transparent);
}
.course-hub-cta-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.course-hub-cta-desc {
  font-size: 14px; color: var(--text-muted); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto;
}
.course-hub-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all 0.25s var(--ease-spring);
  box-shadow: 0 4px 16px rgba(96,54,232,0.3);
}
.course-hub-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(96,54,232,0.4); }
.course-hub-cta-btn:active { transform: scale(0.97); transition-duration: 0.08s; }

/* ── Unlocked lesson card (enrolled student) ── */
.session-card-unlocked {
  display: block; text-decoration: none; color: inherit;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.session-card-unlocked:hover {
  border-color: rgba(96,54,232,0.2); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 20px rgba(96,54,232,0.04);
}
.session-card-unlocked:active { transform: scale(0.98); transition-duration: 0.08s; }
.session-card-unlocked .session-watch { color: var(--purple); }

/* Completed state */
.session-card-complete { opacity: 0.85; }
.session-card-complete:hover { opacity: 1; }
.session-complete-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(52,211,153,0.08));
  color: var(--green, #34d399); margin-left: 8px; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(52,211,153,0.1);
}

/* Back to hub link */
.course-hub-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; margin-bottom: 24px;
  transition: color 0.2s;
}
.course-hub-back:hover { color: var(--text-secondary); }
.course-hub-back svg { transition: transform 0.2s; }
.course-hub-back:hover svg { transform: translateX(-2px); }

/* Responsive */
@media (max-width: 600px) {
  .vault-container, .course-hub-container { padding: 84px 16px 40px; }
  .vault-title, .course-hub-title { font-size: 1.4rem; }
  .vault-stats, .course-hub-stats { gap: 16px; }
  .session-card { padding: 16px 18px; }
  .course-hub-cta { padding: 28px 20px; }
}


/* ══════════════════════════════════════════════════════════════════════
   LIGHT THEME — Apple-Level Overrides (Components)
   ══════════════════════════════════════════════════════════════════════ */

/* Locked overlay backdrop */
[data-theme="light"] .wg-locked-overlay.wg-locked-fullscreen { background: rgba(0,0,0,0.25); }
[data-theme="light"] .wg-locked-card { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.08); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
[data-theme="light"] .wg-locked-icon { background: rgba(96,54,232,0.08); }
[data-theme="light"] .wg-locked-icon svg { stroke: #6036e8; }

/* PDF buttons: readable hover states */
[data-theme="light"] .wg-pdf-btn-view:hover { color: #6036e8; background: rgba(96,54,232,0.08); }
[data-theme="light"] .wg-pdf-btn-dl:hover { color: #ca3fa0; background: rgba(202,63,160,0.06); }

/* Coaching hint */
[data-theme="light"] .coaching-hint a { text-decoration-color: rgba(0,0,0,0.15); }

/* Unlock modal card */
[data-theme="light"] .unlock-modal-card { background: rgba(255,255,255,0.95); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
[data-theme="light"] .unlock-modal-card::before { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03), rgba(96,54,232,0.08), transparent); }

/* Session cards (vault/course hub) shine line */
[data-theme="light"] .session-card::before { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03), transparent); }

/* Mark complete button */
[data-theme="light"] .mark-complete-btn { border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .mark-complete-btn:hover { border-color: rgba(96,54,232,0.2); background: rgba(96,54,232,0.04); }

/* Mini player border */
[data-theme="light"] .wg-mini-player { border-color: rgba(0,0,0,0.08); }


/* ══════════════════════════════════════════════════════════════════════
   GIFT LOCKS — Sidebar + Page-Level Lock for Bonus Modules
   ══════════════════════════════════════════════════════════════════════ */

/* Sidebar: locked gift items */
.gift-locked-item {
  opacity: 0.35 !important;
  pointer-events: none;
  position: relative;
}
.gift-locked-item .lesson-name {
  display: flex; align-items: center; gap: 5px;
}
.gift-lock-icon { flex-shrink: 0; opacity: 0.6; }

/* Page-level lock overlay: when navigating directly to a locked gift lesson */
.gift-page-lock {
  position: fixed; inset: 0; z-index: 99990;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-base);
  padding: 24px;
}
.gift-page-lock-card {
  text-align: center; max-width: 380px;
  padding: 48px 32px;
  border-radius: 20px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 8px 32px rgba(0,0,0,0.15);
}
.gift-page-lock-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(96, 54, 232, 0.08);
  color: var(--purple); margin-bottom: 20px;
}
.gift-page-lock-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--purple); margin-bottom: 8px;
}
.gift-page-lock-name {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 12px; line-height: 1.3;
}
.gift-page-lock-desc {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 28px;
}
.gift-page-lock-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #6036e8, #7c5ce8);
  padding: 12px 28px; border-radius: 10px;
  text-decoration: none; transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(96, 54, 232, 0.25);
}
.gift-page-lock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(96, 54, 232, 0.35);
}
.gift-page-lock-btn:active { transform: scale(0.97); }

[data-theme="light"] .gift-page-lock-card {
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 8px 24px rgba(0,0,0,0.06);
}
[data-theme="light"] .gift-page-lock-icon {
  background: rgba(96, 54, 232, 0.05);
}
