/* ══════════════════════════════════════════════════════════════════════
   WeissGuitar Learn — Hub
   Command area, roadmap, IA row, mentorship, unlock modal, onboarding.
   ══════════════════════════════════════════════════════════════════════ */

.hub-main { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 100px 24px 60px; display: none; }

/* ── Command Area ──────────────────────────────────────────────────── */
.hub-command { margin-bottom: 24px; }
.hub-command h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.hub-phase-status { font-size: 13px; color: var(--text-muted); letter-spacing: 0.01em; }
.hub-phase-status strong { color: var(--text-secondary); font-weight: 600; }

/* ── Continue Watching ─────────────────────────────────────────────── */
.continue-section { margin-bottom: 28px; display: none; }
.continue-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: rgba(96, 54, 232, 0.06); border: 1px solid rgba(96, 54, 232, 0.15); border-radius: var(--radius-md); text-decoration: none; color: inherit; transition: all 0.25s ease; }
.continue-card:hover { background: rgba(96, 54, 232, 0.1); border-color: rgba(96, 54, 232, 0.3); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(96, 54, 232, 0.1); }
.continue-card:active { transform: scale(0.97); transition-duration: 0.08s; }
[data-theme="light"] .continue-card { background: rgba(96, 54, 232, 0.03); border-color: rgba(96, 54, 232, 0.1); }
[data-theme="light"] .continue-card:hover { background: rgba(96, 54, 232, 0.06); box-shadow: 0 4px 16px rgba(96, 54, 232, 0.06); }
.continue-icon { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #6036e8, #7c5ce8); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.continue-icon svg { margin-left: 2px; }
.continue-info { flex: 1; min-width: 0; }
.continue-label { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple); margin-bottom: 3px; }
.continue-title { display: block; font-size: 0.95rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-course-name { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.continue-arrow { color: var(--text-muted); flex-shrink: 0; }


/* ── Shared Glass Card ─────────────────────────────────────────────── */
.hub-glass-card {
  position: relative; overflow: hidden; 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);
  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(0,0,0,0.15), 0 0 40px rgba(96,54,232,0.02);
}
[data-theme="light"] .hub-glass-card { box-shadow: 0 1px 0 0 rgba(255,255,255,0.8) inset, 0 2px 8px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.04); }
.hub-glass-card::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1.5px;
  background: var(--glass-line); filter: blur(0.3px);
}
.hub-glass-card::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; z-index: 0;
}
[data-theme="light"] .hub-glass-card::after { background: radial-gradient(ellipse at 50% 0%, rgba(96,54,232,0.02), transparent 65%); }


/* ── Roadmap ───────────────────────────────────────────────────────── */
.hub-roadmap { padding: 32px 28px 24px; margin-bottom: 24px; }
.roadmap-header { text-align: center; margin-bottom: 24px; position: relative; z-index: 1; }
.roadmap-label {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  background: rgba(96, 54, 232, 0.1); border: 1px solid rgba(96, 54, 232, 0.2);
  color: var(--purple); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 12px;
}
.roadmap-title {
  display: block; font-size: clamp(1rem, 2.8vw, 1.5rem); font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.3;
}
.roadmap-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.roadmap-phases {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  position: relative; z-index: 1;
}

/* Phase card: EXACT match to login page */
.roadmap-phase {
  position: relative; display: block; cursor: pointer;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  aspect-ratio: 259 / 300;
  transition: all 0.4s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
  animation: fadeUp 0.6s var(--ease-out) both;
}
.roadmap-phase:nth-child(1) { animation-delay: 0.2s; }
.roadmap-phase:nth-child(2) { animation-delay: 0.25s; }
.roadmap-phase:nth-child(3) { animation-delay: 0.3s; }
.roadmap-phase:nth-child(4) { animation-delay: 0.35s; }
.roadmap-phase:nth-child(5) { animation-delay: 0.4s; }
.roadmap-phase:nth-child(6) { animation-delay: 0.45s; }
.roadmap-phase:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 50px rgba(96,54,232,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
  z-index: 2;
}
.roadmap-phase:active { transition-duration: 0.1s; }
.roadmap-phase-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s var(--ease-out);
}
.roadmap-phase:hover .roadmap-phase-img { transform: scale(1.08); }
/* Locked phase: visible enough to desire, clearly unavailable */
.rp-locked {
  opacity: 1;
}
.rp-locked .roadmap-phase-img {
  filter: grayscale(0.7) brightness(0.5);
  transition: filter 0.4s var(--ease-out);
}
.rp-locked:hover .roadmap-phase-img {
  filter: grayscale(0.4) brightness(0.65);
}
/* Centered lock badge overlay */
.rp-locked::after {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
  transition: background 0.4s var(--ease-out);
}
.rp-locked:hover::after {
  background: rgba(0,0,0,0.2);
}
.rp-lock-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.rp-lock-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: all 0.3s var(--ease-out);
}
.rp-locked:hover .rp-lock-icon {
  background: rgba(96, 54, 232, 0.4);
  border-color: rgba(96, 54, 232, 0.4);
  color: #fff;
  transform: scale(1.08);
}
.rp-lock-text {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.5);
  opacity: 0; transition: opacity 0.3s;
}
.rp-locked:hover .rp-lock-text {
  opacity: 1;
  color: rgba(255,255,255,0.85);
}
/* Mobile: no hover, show lock text always, size down slightly */
@media (max-width: 600px) {
  .rp-lock-icon { width: 38px; height: 38px; }
  .rp-lock-icon svg { width: 17px; height: 17px; }
  .rp-lock-text { opacity: 0.7; font-size: 0.55rem; }
}
/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {
  .rp-lock-icon { width: 48px; height: 48px; }
  .rp-lock-icon svg { width: 22px; height: 22px; }
}
/* Light theme */
[data-theme="light"] .rp-locked::after { background: rgba(255,255,255,0.45); }
[data-theme="light"] .rp-locked:hover::after { background: rgba(255,255,255,0.25); }
[data-theme="light"] .rp-lock-icon {
  background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.4);
}
[data-theme="light"] .rp-locked:hover .rp-lock-icon {
  background: rgba(96,54,232,0.12); border-color: rgba(96,54,232,0.2);
  color: var(--purple);
}
[data-theme="light"] .rp-lock-text { color: rgba(0,0,0,0.35); }
[data-theme="light"] .rp-locked:hover .rp-lock-text { color: rgba(0,0,0,0.6); }
/* Roadmap phase: button reset (converted from div onclick) */
button.roadmap-phase {
  font-family: inherit; font-size: inherit; color: inherit;
  padding: 0; background: transparent;
}
/* Phase overlay: title, progress, status */
.roadmap-phase-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 var(--space-4) var(--space-3);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  pointer-events: none;
  min-height: 80px;
}
.roadmap-phase-num {
  position: absolute; bottom: 38px; left: var(--space-4);
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}
.roadmap-phase-title {
  font-size: var(--text-sm); font-weight: var(--weight-bold);
  color: #fff; line-height: var(--leading-tight);
}
.roadmap-phase-status-label {
  font-size: var(--text-xs); color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 4px;
}
.rp-status-done { color: var(--green); }
.roadmap-phase-bar {
  width: 100%; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.15); margin-top: 2px;
}
.roadmap-phase-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--purple); transition: width 0.6s var(--ease-out);
}
@media (max-width: 600px) {
  .roadmap-phases { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Roadmap markers */
.roadmap-markers {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding: 0 4px; position: relative; z-index: 1;
}
.roadmap-marker {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 100px;
}
.roadmap-start { color: var(--purple); background: rgba(96,54,232,0.08); border: 1px solid rgba(96,54,232,0.15); }
.roadmap-end { color: var(--pink); background: rgba(236,72,153,0.08); border: 1px solid rgba(236,72,153,0.15); }
.roadmap-marker-line {
  flex: 1; height: 1px; margin: 0 12px;
  background: linear-gradient(90deg, rgba(96,54,232,0.3), rgba(236,72,153,0.3));
  position: relative;
}
.roadmap-marker-line::after {
  content: ''; position: absolute; right: -1px; top: -3px;
  border: 4px solid transparent; border-left: 6px solid rgba(236,72,153,0.4);
}


/* ── IA Row (single card) ──────────────────────────────────────────── */
.ia-row { margin-bottom: 24px; }
.ia-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  text-decoration: none; color: inherit; transition: all 0.25s ease;
  border-color: rgba(202, 63, 160, 0.15) !important;
}
.ia-card::before { background: linear-gradient(90deg, transparent, rgba(202,63,160,0.2) 30%, rgba(96,54,232,0.3) 70%, transparent) !important; }
.ia-card:hover { transform: translateY(-2px); border-color: rgba(202, 63, 160, 0.25) !important; }
.ia-card:active { transform: scale(0.97); transition-duration: 0.08s; }
.ia-card-text { flex: 1; min-width: 0; }
.ia-card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.ia-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.ia-card-action {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
  font-size: 13px; font-weight: 600; color: var(--pink);
}
.ia-card:hover .ia-card-action svg { transform: translateX(2px); }
.ia-card-action svg { transition: transform 0.3s var(--ease-spring); }

/* IA enrolled grid: image-first cards matching roadmap style */
.ia-enrolled-header { margin-bottom: 12px; }
.ia-enrolled-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ia-vol-card {
  position: relative; display: block;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgba(202, 63, 160, 0.15);
  text-decoration: none; color: inherit;
  transition: all 0.4s var(--ease-out);
  aspect-ratio: 259 / 300;
}
.ia-vol-card:hover {
  border-color: rgba(202, 63, 160, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 50px rgba(202,63,160,0.1);
}
.ia-vol-card:active { transform: scale(0.97); transition-duration: 0.08s; }
.ia-vol-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.ia-vol-card:hover .ia-vol-img { transform: scale(1.06); }
.ia-vol-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(5,5,16,0.9) 0%, rgba(5,5,16,0.6) 40%, transparent 100%);
  z-index: 1; pointer-events: none;
}
.ia-vol-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 12px; z-index: 2;
}
.ia-vol-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pink); margin-bottom: 2px; }
.ia-vol-name { font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }


/* ── Mentorship ────────────────────────────────────────────────────── */
.hub-mentorship { padding: 24px 28px; margin-bottom: 24px; }
.hub-mentorship h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 0 0 6px; position: relative; z-index: 1; }
.hub-mentorship p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0 0 12px; position: relative; z-index: 1; }
.hub-mentorship-links { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.hub-mentorship-links a { font-size: 13px; font-weight: 600; text-decoration: none; padding: 8px 18px; border-radius: 10px; transition: all 0.2s; }
.hub-mentorship-links a:active { transform: scale(0.97); transition-duration: 0.08s; }
.hub-link-pink { color: var(--pink); border: 1px solid rgba(202, 63, 160, 0.25); }
.hub-link-pink:hover { background: rgba(202, 63, 160, 0.08); }
.hub-link-purple { color: var(--purple); border: 1px solid rgba(96, 54, 232, 0.25); }
.hub-link-purple:hover { background: rgba(96, 54, 232, 0.08); }


/* ── Footer ────────────────────────────────────────────────────────── */
/* ── Header Strings Menu Button (neon guitar strings) ── */
.header-strings-btn {
  width: 44px; height: 44px; border: none; cursor: pointer;
  background: transparent; padding: 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.header-strings-btn:hover {
  background: rgba(96,54,232,0.08);
}
.header-strings-btn:active { transform: scale(0.92); }
.header-strings {
  display: flex; flex-direction: column; gap: 5px; width: 22px;
}
.hs {
  display: block; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, var(--purple, #6036e8), var(--pink, #ca3fa0));
  box-shadow: 0 0 6px rgba(96,54,232,0.4), 0 0 12px rgba(96,54,232,0.15);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
/* Staggered widths like real guitar strings (high E thinnest, low E thickest) */
.hs:nth-child(1) { width: 100%; height: 1.5px; opacity: 0.7; }
.hs:nth-child(2) { width: 85%; height: 2px; opacity: 0.85; margin-left: auto; }
.hs:nth-child(3) { width: 100%; height: 2.5px; opacity: 1; }

/* Hover: strings glow brighter and shift */
.header-strings-btn:hover .hs {
  box-shadow: 0 0 8px rgba(96,54,232,0.6), 0 0 20px rgba(96,54,232,0.25), 0 0 40px rgba(202,63,160,0.1);
}
.header-strings-btn:hover .hs:nth-child(1) { width: 85%; opacity: 0.9; }
.header-strings-btn:hover .hs:nth-child(2) { width: 100%; opacity: 1; }
.header-strings-btn:hover .hs:nth-child(3) { width: 85%; opacity: 0.9; }

/* Pulsing glow animation to draw attention */
@keyframes stringPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(96,54,232,0.4), 0 0 12px rgba(96,54,232,0.15); }
  50% { box-shadow: 0 0 10px rgba(96,54,232,0.6), 0 0 20px rgba(96,54,232,0.25); }
}
.hs { animation: stringPulse 3s ease-in-out infinite; }
.hs:nth-child(2) { animation-delay: 0.3s; }
.hs:nth-child(3) { animation-delay: 0.6s; }

/* Light theme */
[data-theme="light"] .hs {
  background: linear-gradient(90deg, var(--purple, #6036e8), var(--pink, #ca3fa0));
  box-shadow: 0 0 4px rgba(96,54,232,0.3);
}
[data-theme="light"] .header-strings-btn:hover { background: rgba(96,54,232,0.05); }

@media (prefers-reduced-motion: reduce) {
  .hs { animation: none; }
}

/* ── Practice Panel (slide-out) ── */
.practice-panel-overlay {
  position: fixed; inset: 0; z-index: 998; background: rgba(5,5,16,0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.practice-panel-overlay.open { opacity: 1; pointer-events: auto; }

.practice-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 999;
  padding-bottom: env(safe-area-inset-bottom, 0);
  width: 340px; max-width: 90vw;
  background: var(--bg-card, rgba(18,14,32,0.95));
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-left: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  box-shadow: -12px 0 60px rgba(0,0,0,0.4);
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.practice-panel.open { transform: translateX(0); }

.pp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px; border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
}
.pp-name { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.pp-email { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.pp-close {
  width: 44px; height: 44px; border: none; background: none;
  color: var(--text-muted); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.2s;
}
.pp-close:hover, .pp-close:active { background: rgba(255,255,255,0.06); color: var(--text-primary); }

.pp-content {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  scrollbar-width: thin; scrollbar-color: rgba(96,54,232,0.15) transparent;
}

.pp-section {
  padding: 14px 0; border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
}
.pp-section:last-child { border-bottom: none; }
.pp-section-label {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--purple); margin-bottom: 10px;
}

.pp-streak { font-size: 0.85rem; color: var(--text-secondary); }
.pp-streak-fire { color: var(--amber, #fbbf24); font-weight: 600; }
.pp-streak-none { color: var(--text-muted); font-size: 0.78rem; }
.pp-days { font-size: 0.75rem; color: var(--text-muted); }

.pp-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.pp-list-link { color: var(--text-secondary); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
.pp-list-link:hover { color: var(--text-primary); }
.pp-list-remove {
  border: none; background: none; color: var(--text-muted); font-size: 16px;
  cursor: pointer; padding: 4px; transition: color 0.2s;
}
.pp-list-remove:hover, .pp-list-remove:active { color: var(--red); }
.pp-empty { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }

.pp-note-input {
  width: 100%; padding: 10px 12px; margin-bottom: 6px;
  background: rgba(5,5,16,0.4); border: 1px solid var(--glass-border);
  border-radius: 8px; color: var(--text-primary); font-family: inherit;
  font-size: 0.78rem; resize: none; outline: none; transition: border-color 0.2s;
}
.pp-note-input:focus { border-color: rgba(96,54,232,0.3); }
.pp-note-input::placeholder { color: var(--text-muted); opacity: 0.5; }
.pp-note-add {
  padding: 6px 14px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #6036e8, #7c5ce8); color: #fff;
  font-family: inherit; font-size: 0.72rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.pp-note-add:hover { box-shadow: 0 4px 12px rgba(96,54,232,0.2); }

.pp-notes-list { margin-top: 10px; }
.pp-note {
  padding: 8px 0; font-size: 0.78rem; color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03); line-height: 1.4;
}
.pp-note-date { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-top: 3px; }

.pp-recap-grid { display: flex; gap: 16px; margin-bottom: 10px; }
.pp-recap-stat { font-size: 0.78rem; color: var(--text-secondary); }
.pp-recap-stat strong { color: var(--text-primary); font-weight: 700; }
.pp-recap-share {
  padding: 6px 14px; border: 1px solid rgba(96,54,232,0.15);
  border-radius: 8px; background: transparent; color: var(--purple);
  font-family: inherit; font-size: 0.72rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.pp-recap-share:hover { background: rgba(96,54,232,0.06); }

.pp-regen {
  width: 100%; padding: 10px; border: 1px solid rgba(96,54,232,0.12);
  border-radius: 8px; background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.pp-regen:hover { border-color: rgba(96,54,232,0.25); color: var(--purple); }

.pp-footer {
  padding: 14px 20px; border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
  display: flex; align-items: center; justify-content: space-between;
}
.pp-theme-toggle {
  display: flex; align-items: center; gap: 6px;
  border: none; background: none; color: var(--text-muted);
  font-family: inherit; font-size: 0.72rem; cursor: pointer; transition: color 0.2s;
}
.pp-theme-toggle:hover { color: var(--text-primary); }
.pp-signout {
  border: none; background: none; color: var(--text-muted);
  font-family: inherit; font-size: 0.72rem; cursor: pointer; transition: color 0.2s;
}
.pp-signout:hover { color: var(--red); }

[data-theme="light"] .practice-panel { background: rgba(255,255,255,0.95); }
[data-theme="light"] .pp-note-input { background: rgba(0,0,0,0.02); }

@media (prefers-reduced-motion: reduce) {
  .practice-panel { transition: none; }
  .practice-panel-overlay { transition: none; }
}

/* ── Welcome Card (first login) ── */
.wg-welcome {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,5,16,0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  animation: fadeUp 0.5s ease both;
}
.wc-card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 400px;
  background: var(--bg-card, rgba(18,14,32,0.9));
  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: inset 0 1px 0 0 rgba(255,255,255,0.06), 0 24px 80px rgba(0,0,0,0.5), 0 0 100px rgba(96,54,232,0.06);
  padding: 40px 32px 32px; text-align: center;
  animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}
.wc-card::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1.5px;
  background: var(--glass-line); filter: blur(0.3px);
}
.wc-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 140px;
  background: radial-gradient(ellipse at 50% 0%, rgba(96,54,232,0.06), transparent 65%);
  pointer-events: none;
}
.wc-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(96,54,232,0.3);
  box-shadow: 0 0 30px rgba(96,54,232,0.15);
  margin: 0 auto 18px; display: block; position: relative; z-index: 1;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.4s both;
}
.wc-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 12px;
  position: relative; z-index: 1;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.5s both;
}
.wc-msg {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 28px; max-width: 340px; margin-left: auto; margin-right: auto;
  position: relative; z-index: 1;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.6s both;
}
.wc-go {
  display: block; width: 100%; padding: 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), #7c5ce8);
  color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  text-decoration: none; text-align: center;
  box-shadow: 0 6px 24px rgba(96,54,232,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative; z-index: 1;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.7s both;
}
.wc-go:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(96,54,232,0.4); }
.wc-go:active { transform: scale(0.97); }
.wc-skip {
  display: block; width: 100%; margin-top: 12px;
  background: none; border: none; color: var(--text-muted);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; padding: 10px; transition: color 0.2s;
  position: relative; z-index: 1;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.75s both;
}
.wc-skip:hover { color: var(--text-secondary); }
.wc-sig {
  font-family: var(--font-display); font-size: 1rem; font-style: italic;
  color: var(--purple); margin-top: 16px;
  position: relative; z-index: 1;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.8s both;
}
[data-theme="light"] .wg-welcome { background: rgba(248,246,243,0.92); }
[data-theme="light"] .wc-card { background: rgba(255,255,255,0.95); }
@media (max-width: 480px) {
  .wc-card { padding: 32px 24px 24px; }
  .wc-title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wg-welcome, .wc-card, .wc-photo, .wc-title, .wc-msg, .wc-go, .wc-skip, .wc-sig { animation: none !important; }
}

/* ── Contextual Tooltip (one-time feature hints) ── */
.wg-tip {
  position: fixed; z-index: 9995; max-width: 260px;
  padding: 12px 16px;
  background: var(--bg-card, rgba(18,14,32,0.95));
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(96,54,232,0.15);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.4), 0 0 30px rgba(96,54,232,0.06);
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45;
  animation: wgTipIn 0.35s cubic-bezier(0.16,1,0.3,1) both;
  pointer-events: auto;
}
.wg-tip::before {
  content: ''; position: absolute; top: -6px; left: 24px;
  width: 12px; height: 12px;
  background: var(--bg-card, rgba(18,14,32,0.95));
  border-left: 1px solid rgba(96,54,232,0.15);
  border-top: 1px solid rgba(96,54,232,0.15);
  transform: rotate(45deg);
}
.wg-tip-below::before { top: auto; bottom: -6px; transform: rotate(225deg); }
@keyframes wgTipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
[data-theme="light"] .wg-tip { background: rgba(255,255,255,0.95); border-color: rgba(96,54,232,0.1); }

.hub-footer { text-align: center; padding: 40px 24px; color: var(--text-muted); font-size: 0.8rem; position: relative; }
.hub-footer::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
}
.hub-footer a { color: var(--text-secondary); text-decoration: none; }
.hub-footer a:hover { color: var(--text-primary); }


/* ── Unlock Modal ──────────────────────────────────────────────────── */
.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); }


/* ── Stagger Animations ───────────────────────────────────────────── */
.hub-stagger-1 { opacity: 0; animation: fadeUp 0.45s var(--ease-out) 0.00s both; }
.hub-stagger-2 { opacity: 0; animation: fadeUp 0.45s var(--ease-out) 0.06s both; }
.hub-stagger-3 { opacity: 0; animation: fadeUp 0.45s var(--ease-out) 0.12s both; }
.hub-stagger-4 { opacity: 0; animation: fadeUp 0.45s var(--ease-out) 0.18s both; }
.hub-stagger-5 { opacity: 0; animation: fadeUp 0.45s var(--ease-out) 0.24s both; }


/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hub-main { padding: 84px 16px 40px; }
  .hub-command h1 { font-size: 1.3rem; }
  .roadmap-phases { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .roadmap-phase { padding: 12px 6px 16px; }
  .rp-title { font-size: 13px; }
  .rp-outcome { font-size: 11px; }
  .hub-roadmap { padding: 24px 16px 20px; }
  .roadmap-markers { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .roadmap-marker-line { display: none; }
  .hub-mentorship { padding: 20px; }
  .ia-card { padding: 16px 18px; flex-wrap: wrap; }
  .ia-enrolled-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════════════
   Onboarding Tour
   ══════════════════════════════════════════════════════════════════════ */

/* Old onboarding tour CSS removed. Replaced by welcome card + contextual tooltips. */


/* ══════════════════════════════════════════════════════════════════════
   PHASE 1: FEEL — Hub Enhancements
   ══════════════════════════════════════════════════════════════════════ */

/* ── 11. Current phase breathing pulse ────────────────────────────── */
.rp-current {
  animation: phasePulse 4s ease-in-out infinite;
}
@keyframes phasePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96,54,232,0); }
  50% { box-shadow: 0 0 0 5px rgba(96,54,232,0.08); }
}
[data-theme="light"] .rp-current {
  animation: phasePulseLight 4s ease-in-out infinite;
}
@keyframes phasePulseLight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96,54,232,0); }
  50% { box-shadow: 0 0 0 5px rgba(96,54,232,0.06); }
}

/* ── 14. Continue Watching prominence ─────────────────────────────── */
.continue-card {
  padding: 22px 26px !important;
}
.continue-icon {
  width: 52px !important;
  height: 52px !important;
}
.continue-icon svg {
  width: 26px;
  height: 26px;
}
.continue-title {
  font-size: 1.05rem !important;
}
.continue-label {
  font-size: 0.72rem !important;
}

/* ── 49. Hub card hover lift ──────────────────────────────────────── */
.roadmap-phase:hover {
  box-shadow: 0 4px 16px rgba(96,54,232,0.06);
}
.ia-card:hover,
.hub-mentorship:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 8px 24px rgba(96,54,232,0.08) !important;
}


/* ══════════════════════════════════════════════════════════════════════
   IA Glass Cards (Hub)
   ══════════════════════════════════════════════════════════════════════ */

.ia-glass-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}

.ia-glass-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  text-decoration: none; color: inherit;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  min-height: 180px;
}
/* Top shine line */
.ia-glass-card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
/* Unique gradient glow per card */
.ia-glass-vol1 { background: linear-gradient(135deg, rgba(96,54,232,0.06), rgba(202,63,160,0.03)); }
.ia-glass-vol1::after { content:''; position:absolute; top:-30%; right:-20%; width:200px; height:200px; border-radius:50%; background:radial-gradient(circle, rgba(96,54,232,0.08), transparent 70%); pointer-events:none; }

.ia-glass-vol2 { background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(96,54,232,0.04)); }
.ia-glass-vol2::after { content:''; position:absolute; top:-30%; right:-20%; width:200px; height:200px; border-radius:50%; background:radial-gradient(circle, rgba(124,58,237,0.07), transparent 70%); pointer-events:none; }

.ia-glass-vault { background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(96,54,232,0.03)); }
.ia-glass-vault::after { content:''; position:absolute; top:-30%; right:-20%; width:200px; height:200px; border-radius:50%; background:radial-gradient(circle, rgba(37,99,235,0.07), transparent 70%); pointer-events:none; }

.ia-glass-card:hover {
  border-color: rgba(202,63,160,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(96,54,232,0.06);
}
.ia-glass-card:active { transform: scale(0.97); transition-duration: 0.08s; }

.ia-glass-num {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(202,63,160,0.7);
  margin-bottom: 8px; position: relative; z-index: 1;
}
.ia-glass-title {
  font-size: 20px; font-weight: 700; color: #fff;
  margin-bottom: 6px; line-height: 1.2;
  position: relative; z-index: 1;
}
.ia-glass-meta {
  font-size: 12px; color: rgba(255,255,255,0.35);
  position: relative; z-index: 1;
}
.ia-glass-live {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px; font-weight: 600; color: rgba(52,211,153,0.7);
  position: relative; z-index: 1;
}
.ia-glass-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #fff;
  background: linear-gradient(135deg, rgba(96,54,232,0.4), rgba(202,63,160,0.4));
  padding: 3px 10px; border-radius: 100px;
  z-index: 2;
}

/* Light theme adjustments */
[data-theme="light"] .ia-glass-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ia-glass-vol1 { background: linear-gradient(135deg, rgba(96,54,232,0.04), rgba(202,63,160,0.02)); }
[data-theme="light"] .ia-glass-vol2 { background: linear-gradient(135deg, rgba(124,58,237,0.03), rgba(96,54,232,0.02)); }
[data-theme="light"] .ia-glass-vault { background: linear-gradient(135deg, rgba(37,99,235,0.03), rgba(96,54,232,0.02)); }
[data-theme="light"] .ia-glass-card:hover { border-color: rgba(202,63,160,0.15); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
[data-theme="light"] .ia-glass-num { color: rgba(202,63,160,0.8); }
[data-theme="light"] .ia-glass-title { color: var(--text-primary); }
[data-theme="light"] .ia-glass-meta { color: var(--text-muted); }
[data-theme="light"] .ia-glass-live { color: rgba(5,150,105,0.8); border-top-color: rgba(0,0,0,0.06); }

/* IA glass card stagger */
.ia-glass-card { animation: iaCardIn 0.5s var(--ease-out) both; }
.ia-glass-card:nth-child(1) { animation-delay: 0.1s; }
.ia-glass-card:nth-child(2) { animation-delay: 0.18s; }
.ia-glass-card:nth-child(3) { animation-delay: 0.26s; }
@keyframes iaCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile */
@media (max-width: 600px) {
  .ia-glass-grid { grid-template-columns: 1fr; }
  .ia-glass-card { min-height: auto; padding: 22px 20px; }
}


/* ══════════════════════════════════════════════════════════════════════
   Live Banner + Community Pulse + Practice Days
   ══════════════════════════════════════════════════════════════════════ */

/* ── Live Session Banner ── */
.live-banner { margin-bottom: 16px; }
.live-banner-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(220,38,38,0.04);
  border: 1px solid rgba(220,38,38,0.12);
  border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: all 0.3s var(--ease-out);
}
.live-banner-card:hover {
  background: rgba(220,38,38,0.07);
  border-color: rgba(220,38,38,0.2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(220,38,38,0.06);
}
.live-banner-card:active { transform: scale(0.98); transition-duration: 0.08s; }
.live-banner-left { display: flex; align-items: center; gap: 12px; }
.live-banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239,68,68,0.4);
  animation: livePulseHub 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulseHub { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-banner-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(248,113,113,0.7);
}
.live-banner-date {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
}
.live-banner-cta {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: rgba(248,113,113,0.6);
  flex-shrink: 0;
}
.live-banner-card:hover .live-banner-cta { color: rgba(248,113,113,0.9); }
.live-banner-card:hover .live-banner-cta svg { transform: translateX(2px); }
.live-banner-cta svg { transition: transform 0.3s var(--ease-spring); }

[data-theme="light"] .live-banner-card { background: rgba(220,38,38,0.03); }

/* ── Community Pulse Ticker ── */
.community-pulse {
  text-align: center;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  height: 20px;
  overflow: hidden;
  position: relative;
}
.community-pulse span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: pulseTick 12s ease-in-out infinite;
  opacity: 0;
  position: absolute;
  width: 100%;
  text-align: center;
}
.community-pulse span::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.35;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(96, 54, 232, 0.2);
}
.community-pulse span:nth-child(1) { animation-delay: 0s; }
.community-pulse span:nth-child(2) { animation-delay: 3s; }
.community-pulse span:nth-child(3) { animation-delay: 6s; }
.community-pulse span:nth-child(4) { animation-delay: 9s; }
@keyframes pulseTick {
  0% { opacity: 0; transform: translateY(8px); }
  8% { opacity: 0.6; transform: translateY(0); }
  25% { opacity: 0.6; transform: translateY(0); }
  33% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; }
}

/* ── Practice Days (inline in greeting) ── */
.hub-practice-inline {
  display: inline-block;
  font-size: 11px; font-weight: 600; color: var(--purple);
  margin-left: 8px; padding: 2px 8px;
  background: rgba(96, 54, 232, 0.08);
  border: 1px solid rgba(96, 54, 232, 0.15);
  border-radius: 20px;
  vertical-align: middle;
}
[data-theme="light"] .hub-practice-inline {
  background: rgba(96, 54, 232, 0.05);
  border-color: rgba(96, 54, 232, 0.1);
}

/* ── Contextual IA Upsell Card ── */
.ia-upsell-contextual { margin-bottom: 24px; }
.ia-upsell-card {
  position: relative; padding: 28px 32px;
  background: linear-gradient(135deg, rgba(96, 54, 232, 0.08), rgba(202, 63, 160, 0.06));
  border: 1px solid rgba(96, 54, 232, 0.2);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ia-upsell-card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 54, 232, 0.3), transparent);
}
.ia-upsell-dismiss {
  position: absolute; top: 12px; right: 16px;
  font-size: 20px; color: var(--text-muted); cursor: pointer;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.2s;
}
.ia-upsell-dismiss:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.ia-upsell-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(96, 54, 232, 0.15), rgba(202, 63, 160, 0.1));
  display: flex; align-items: center; justify-content: center;
  color: var(--purple); margin-bottom: 16px;
}
.ia-upsell-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.ia-upsell-desc {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 18px; max-width: 560px;
}
.ia-upsell-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #6036e8, #7c5ce8);
  padding: 10px 22px; border-radius: 8px;
  text-decoration: none; transition: all 0.25s;
}
.ia-upsell-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(96, 54, 232, 0.3); }
.ia-upsell-cta:active { transform: scale(0.97); }

/* ── IA Bundle CTA ── */
.ia-bundle-cta { text-align: center; margin-bottom: 32px; }
.ia-bundle-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #6036e8, #ca3fa0);
  padding: 14px 32px; border-radius: 10px;
  text-decoration: none; transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(96, 54, 232, 0.2);
}
.ia-bundle-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(96, 54, 232, 0.35); }
.ia-bundle-btn:active { transform: scale(0.97); }
.ia-bundle-sub {
  font-size: 0.75rem; color: var(--text-muted); margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════════════
   ENGAGEMENT FEATURES — Galactic Glass Standard
   Every component: glass bg, inner shine, glass-line, proper shadows,
   smooth hover, light theme variant, responsive.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Practice Plan ── */
/* ── Practice Plan (showcase) ── */
.practice-plan {
  position: relative; overflow: hidden; margin-bottom: 28px; padding: 24px;
  background: var(--bg-card, rgba(18, 14, 32, 0.55));
  backdrop-filter: var(--glass-blur, blur(20px) saturate(180%)); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: var(--radius-md, 16px);
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.15), 0 0 40px rgba(96,54,232,0.02);
}
.practice-plan::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1.5px;
  background: var(--glass-line, linear-gradient(90deg, transparent, rgba(255,255,255,0.12) 20%, rgba(96,54,232,0.35) 40%, rgba(202,63,160,0.25) 60%, rgba(255,255,255,0.12) 80%, transparent));
  filter: blur(0.3px);
}
.practice-plan::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100px;
  background: radial-gradient(ellipse at 50% 0%, rgba(96,54,232,0.05), transparent 65%);
  pointer-events: none;
}
.plan-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; position: relative; z-index: 1; }
.plan-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple); }
.plan-progress { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 12px; position: relative; z-index: 1; }
.plan-regen {
  padding: 5px 12px; border: 1px solid rgba(96, 54, 232, 0.15);
  border-radius: 8px; background: rgba(96, 54, 232, 0.04);
  color: var(--text-muted); font-family: inherit; font-size: 0.68rem; cursor: pointer;
  transition: all 0.25s ease; backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.plan-regen:hover { border-color: rgba(96, 54, 232, 0.35); color: var(--purple); background: rgba(96, 54, 232, 0.08); }
.plan-scroll-wrap {
  position: relative; z-index: 1;
}
/* Today's focus cards (stacked vertically, max 3) */
.plan-today { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.plan-lesson {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(96, 54, 232, 0.04);
  border: 1px solid rgba(96, 54, 232, 0.1);
  border-left: 3px solid var(--plan-accent, rgba(96, 54, 232, 0.3));
  border-radius: 12px;
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.03), 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
/* Phase-colored left accents */
.plan-lesson[data-phase="1"] { --plan-accent: rgba(96,54,232,0.4); }
.plan-lesson[data-phase="2"] { --plan-accent: rgba(37,99,235,0.4); }
.plan-lesson[data-phase="3"] { --plan-accent: rgba(5,150,105,0.4); }
.plan-lesson[data-phase="4"] { --plan-accent: rgba(219,39,119,0.4); }
.plan-lesson[data-phase="5"] { --plan-accent: rgba(217,119,6,0.4); }
.plan-lesson[data-phase="6"] { --plan-accent: rgba(220,38,38,0.4); }
.plan-lesson[data-phase="7"] { --plan-accent: rgba(96,54,232,0.3); }
.plan-lesson:hover {
  background: rgba(96, 54, 232, 0.08);
  border-color: rgba(96, 54, 232, 0.2); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.06), 0 8px 24px rgba(0,0,0,0.18), 0 0 24px rgba(96,54,232,0.05);
}
.plan-lesson:active { transform: scale(0.98); transition-duration: 0.08s; }
.plan-lesson-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(96,54,232,0.12), rgba(202,63,160,0.06));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--purple);
}
.plan-lesson-info { flex: 1; min-width: 0; }
.plan-lesson-phase { display: block; font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--purple); opacity: 0.5; margin-bottom: 2px; }
.plan-lesson-title { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.plan-lesson-play {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #6036e8, #7c5ce8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(96,54,232,0.2);
  transition: all 0.25s;
}
.plan-lesson:hover .plan-lesson-play { transform: scale(1.1); box-shadow: 0 6px 16px rgba(96,54,232,0.3); }
.plan-lesson.plan-done { opacity: 0.35; }
.plan-lesson.plan-done .plan-lesson-title { text-decoration: line-through; }
.plan-lesson.plan-done .plan-lesson-num { background: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(52,211,153,0.08)); color: var(--green); }
.plan-lesson.plan-done .plan-lesson-play { display: none; }

/* View full plan toggle */
.plan-expand {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border: none; background: none; width: 100%;
  color: var(--text-muted); font-family: inherit; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: color 0.2s;
}
.plan-expand:hover { color: var(--purple); }
.plan-expand svg { transition: transform 0.3s; }
.plan-expand.open svg { transform: rotate(180deg); }

/* Full plan list (collapsed by default) */
.plan-full { display: none; margin-top: 10px; }
.plan-full.open { display: block; }
.plan-full-list { display: flex; flex-direction: column; gap: 4px; }
.plan-full-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 8px; text-decoration: none; color: inherit;
  font-size: 0.78rem; transition: background 0.2s;
}
.plan-full-item:hover { background: rgba(96,54,232,0.04); }
.plan-full-item-num { width: 20px; font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); text-align: center; }
.plan-full-item-title { flex: 1; color: var(--text-secondary); }
.plan-full-item-phase { font-size: var(--text-xs); color: var(--text-muted); opacity: 0.5; }
.plan-full-item.pf-done .plan-full-item-title { text-decoration: line-through; opacity: 0.4; }
.plan-full-item.pf-done .plan-full-item-num { color: var(--green); }

/* Session time estimate */
.plan-session-time { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.plan-session-time svg { opacity: 0.4; }

[data-theme="light"] .practice-plan { background: rgba(255,255,255,0.8); box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04); }
[data-theme="light"] .plan-lesson { background: rgba(96,54,232,0.02); }
[data-theme="light"] .plan-full-item:hover { background: rgba(96,54,232,0.03); }

/* ── Plan Prompt ── */
.plan-prompt { margin-bottom: 28px; }
.plan-prompt-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 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 0 var(--glass-shine), 0 8px 24px rgba(0,0,0,0.12);
}
.plan-prompt-card::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1px;
  background: var(--glass-line); filter: blur(0.3px);
}
.plan-prompt-card::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;
}
.plan-prompt-title { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.plan-prompt-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.plan-prompt-actions { display: flex; gap: 8px; flex-shrink: 0; z-index: 1; }
.plan-prompt-yes {
  padding: 10px 20px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #6036e8, #7c5ce8); color: #fff;
  font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 16px rgba(96, 54, 232, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}
.plan-prompt-yes:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(96, 54, 232, 0.3); }
.plan-prompt-yes:active { transform: scale(0.97); }
.plan-prompt-skip {
  padding: 10px 14px; border: none; background: none;
  color: var(--text-muted); font-family: inherit; font-size: 0.75rem; cursor: pointer;
  transition: color 0.2s;
}
.plan-prompt-skip:hover { color: var(--text-secondary); }
[data-theme="light"] .plan-prompt-card { background: rgba(255,255,255,0.8); }

/* ── Streak Badge ── */
.hub-streak-inline {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--amber);
  margin-left: 10px; padding: 3px 12px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(251,191,36,0.04));
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: 20px; vertical-align: middle;
  box-shadow: 0 0 12px rgba(245,158,11,0.06);
  letter-spacing: 0.02em;
}
.hub-streak-inline::before { content: '\1F525'; font-size: 12px; }
[data-theme="light"] .hub-streak-inline { background: rgba(245,158,11,0.06); }

/* ── Welcome Back Card ── */
.welcome-back-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px; margin-bottom: 24px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(245,158,11,0.12);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.12);
}
.welcome-back-card::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.2), rgba(251,191,36,0.15), transparent);
}
.wb-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(251,191,36,0.06));
  display: flex; align-items: center; justify-content: center; color: var(--amber);
}
.wb-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.wb-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
[data-theme="light"] .welcome-back-card { background: rgba(255,255,255,0.8); }

/* ── Bookmarks Row ── */
.bookmarks-row { margin-bottom: 24px; }
.bookmarks-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple); margin-bottom: 10px; }
.bookmarks-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.bookmarks-scroll::-webkit-scrollbar { display: none; }
.bookmark-chip {
  flex-shrink: 0; padding: 10px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.04), 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none; color: inherit; transition: all 0.3s var(--ease-out);
}
.bookmark-chip:hover {
  border-color: rgba(96,54,232,0.2); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.06), 0 6px 16px rgba(0,0,0,0.15), 0 0 20px rgba(96,54,232,0.03);
}
.bookmark-chip:active { transform: scale(0.97); }
.bookmark-chip-title { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.bookmark-chip-course { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
[data-theme="light"] .bookmark-chip { background: rgba(255,255,255,0.7); }

/* ── Monthly Recap Card ── */
.recap-section { margin-bottom: 28px; }
.recap-card {
  position: relative; overflow: hidden;
  padding: 28px 24px; text-align: center;
  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 0 var(--glass-shine), 0 8px 32px rgba(0,0,0,0.15), 0 0 40px rgba(96,54,232,0.02);
}
.recap-card::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1.5px;
  background: var(--glass-line); filter: blur(0.3px);
}
.recap-card::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;
}
.recap-header { margin-bottom: 20px; position: relative; z-index: 1; }
.recap-month { font-size: 0.72rem; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 0.1em; }
.recap-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-top: 4px; }
.recap-stats { display: flex; justify-content: center; gap: 28px; margin-bottom: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.recap-stat { min-width: 64px; }
.recap-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.recap-stat-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.recap-share {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border: 1px solid rgba(96, 54, 232, 0.2);
  border-radius: 10px; background: rgba(96, 54, 232, 0.04);
  color: var(--purple); font-size: 0.78rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.3s var(--ease-out);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.recap-share:hover { background: rgba(96, 54, 232, 0.08); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(96,54,232,0.12); }
.recap-share:active { transform: scale(0.97); }
[data-theme="light"] .recap-card { background: rgba(255,255,255,0.8); box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04); }

/* ── Practice Timer ── */
/* Timer moved to lesson pages (floating widget in polish.js) */

/* ── Vault Teaser ── */
.vault-teaser { margin-bottom: 28px; }
.vault-teaser-card {
  position: relative; overflow: hidden; padding: 26px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.12), 0 0 30px rgba(52,211,153,0.02);
}
.vault-teaser-card::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,0.2), rgba(96,54,232,0.1), transparent);
}
.vault-teaser-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100px;
  background: radial-gradient(ellipse at 50% 0%, rgba(52,211,153,0.04), transparent 60%);
  pointer-events: none;
}
.vault-teaser-dismiss {
  position: absolute; top: 12px; right: 16px; font-size: 18px; color: var(--text-muted);
  cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.2s; z-index: 1;
}
.vault-teaser-dismiss:hover { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.vault-teaser-badge {
  position: relative; z-index: 1;
  display: inline-block; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green); margin-bottom: 10px;
  padding: 3px 10px; background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.15); border-radius: 20px;
}
.vault-teaser-title { position: relative; z-index: 1; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.vault-teaser-desc { position: relative; z-index: 1; font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }
.vault-teaser-cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 0.82rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, rgba(52,211,153,0.8), rgba(52,211,153,0.6));
  text-decoration: none; transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 16px rgba(52,211,153,0.15);
}
.vault-teaser-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(52,211,153,0.25); }
.vault-teaser-cta:active { transform: scale(0.97); }
[data-theme="light"] .vault-teaser-card { background: rgba(255,255,255,0.8); border-color: rgba(52,211,153,0.1); }

/* ── FFP Completion ── */
.ffp-complete { margin-bottom: 32px; }
.ffp-complete-card {
  position: relative; overflow: hidden;
  padding: 40px 32px; text-align: center;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(96, 54, 232, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 0 var(--glass-shine), 0 12px 48px rgba(0,0,0,0.2), 0 0 60px rgba(96,54,232,0.04);
}
.ffp-complete-card::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1.5px;
  background: var(--glass-line); filter: blur(0.3px);
}
.ffp-complete-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 160px;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,0.06), rgba(96,54,232,0.03) 50%, transparent 70%);
  pointer-events: none;
}
.ffp-complete-icon { position: relative; z-index: 1; color: var(--amber); margin-bottom: 16px; filter: drop-shadow(0 0 12px rgba(245,158,11,0.3)); }
.ffp-complete-title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(96,54,232,0.1);
}
.ffp-complete-desc { position: relative; z-index: 1; font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 24px; max-width: 450px; margin-left: auto; margin-right: auto; }
.ffp-complete-actions { position: relative; z-index: 1; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ffp-next-btn {
  padding: 14px 28px; border-radius: 12px; font-size: 0.88rem; font-weight: 700;
  text-decoration: none; transition: all 0.3s var(--ease-out);
}
.ffp-next-primary {
  background: linear-gradient(135deg, #6036e8, #7c5ce8); color: #fff;
  box-shadow: 0 6px 24px rgba(96, 54, 232, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.ffp-next-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(96, 54, 232, 0.35); }
.ffp-next-primary:active { transform: scale(0.97); }
.ffp-next-secondary {
  background: rgba(96, 54, 232, 0.04); color: var(--text-secondary);
  border: 1px solid rgba(96, 54, 232, 0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.ffp-next-secondary:hover { background: rgba(96, 54, 232, 0.08); border-color: rgba(96,54,232,0.25); }
[data-theme="light"] .ffp-complete-card { background: rgba(255,255,255,0.85); box-shadow: 0 4px 16px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.06); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .live-banner-cta { display: none; }
  .live-banner-date { font-size: 14px; }
  .ia-upsell-card { padding: 22px 20px; }
  .ia-bundle-btn { font-size: 0.82rem; padding: 12px 24px; }
  .plan-prompt-card { flex-direction: column; align-items: flex-start; }
  .plan-prompt-actions { width: 100%; }
  .plan-prompt-yes { flex: 1; text-align: center; }
  .recap-stats { gap: 18px; }
  .timer-card { flex-wrap: wrap; gap: 12px; }
  .timer-presets { margin-left: 0; }
  .ffp-complete-card { padding: 32px 24px; }
  .ffp-complete-actions { flex-direction: column; align-items: center; }
  .ffp-next-btn { width: 100%; text-align: center; }
  .vault-teaser-card { padding: 22px 20px; }
  .welcome-back-card { padding: 16px 18px; }
}

/* ── Reduced Motion (accessibility) ── */
@media (prefers-reduced-motion: reduce) {
  .community-pulse span { animation: none !important; opacity: 0.6; }
  .community-pulse span:first-child { opacity: 1; }
  .stone-just-earned { animation: none !important; }
  .wg-page-exit, .wg-page-enter { animation: none !important; }
  .hub-streak-inline::before { animation: none !important; }
  .ia-upsell-card, .vault-teaser-card, .ffp-complete-card,
  .recap-card, .timer-card, .plan-prompt-card,
  .nudge-card, .recent-chip, .bookmark-chip,
  .plan-lesson, .continue-card { transition: none !important; }
}


/* ══════════════════════════════════════════════════════════════════════
   LIGHT THEME — Apple-Level Overrides (Hub)
   Warm, layered, effortless. No element should make you squint.
   ══════════════════════════════════════════════════════════════════════ */

/* Overlays and backdrops: soft dim, not dark cave */
[data-theme="light"] .unlock-modal { background: rgba(0,0,0,0.25); }
[data-theme="light"] .practice-panel-overlay { background: rgba(0,0,0,0.15); }

/* Hover states: visible on white backgrounds */
[data-theme="light"] .pp-close:hover,
[data-theme="light"] .pp-close:active { background: rgba(0,0,0,0.06); color: var(--text-primary); }
[data-theme="light"] .ia-upsell-dismiss:hover { background: rgba(0,0,0,0.06); }
[data-theme="light"] .vault-teaser-dismiss:hover { background: rgba(0,0,0,0.06); }

/* Practice panel borders */
[data-theme="light"] .pp-list-item { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .pp-note { border-bottom-color: rgba(0,0,0,0.06); }

/* Glass shine lines: dark tint instead of white */
[data-theme="light"] .hub-glass-card::before,
[data-theme="light"] .ia-glass-card::before,
[data-theme="light"] .plan-prompt-card::before { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03) 20%, rgba(96,54,232,0.08) 40%, rgba(202,63,160,0.06) 60%, rgba(0,0,0,0.03) 80%, transparent); }

/* Roadmap hover: light shadow instead of heavy dark */
[data-theme="light"] .roadmap-phase:hover { border-color: rgba(0,0,0,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 0 20px rgba(96,54,232,0.04); }

/* Continue card */
[data-theme="light"] .continue-card:hover { border-color: rgba(96,54,232,0.15); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }


/* ══════════════════════════════════════════════════════════════════════
   GIFT SYSTEM — Drip Unlock Rewards (v2, 10/10 rebuild)
   8 gifts over days 0-6. Advent calendar energy. Full reveal modal.
   ══════════════════════════════════════════════════════════════════════ */

.gifts-section { margin-bottom: 28px; display: none; }

/* Glass container */
.gifts-wrap {
  position: relative; overflow: hidden; padding: 28px 24px 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: 0 0 0 1px rgba(255,255,255,0.03) inset, inset 0 1px 0 0 var(--glass-shine),
              0 8px 32px rgba(0,0,0,0.15), 0 0 40px rgba(96,54,232,0.02);
}
.gifts-wrap::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1.5px;
  background: var(--glass-line); filter: blur(0.3px);
}
.gifts-wrap::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; z-index: 0;
}
[data-theme="light"] .gifts-wrap {
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.8) inset, 0 2px 8px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.04);
}
[data-theme="light"] .gifts-wrap::before {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03) 20%, rgba(96,54,232,0.08) 40%, rgba(202,63,160,0.06) 60%, rgba(0,0,0,0.03) 80%, transparent);
}

/* Header */
.gifts-header { text-align: center; margin-bottom: 16px; position: relative; z-index: 1; }
.gifts-label {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  background: rgba(96, 54, 232, 0.1); border: 1px solid rgba(96, 54, 232, 0.2);
  color: var(--purple); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px;
}
.gifts-title {
  display: block; font-size: clamp(0.95rem, 2.5vw, 1.2rem); font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.01em; line-height: 1.3;
}
.gifts-subtitle {
  display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; line-height: 1.4;
}
.gifts-subtitle strong { color: var(--purple); font-weight: 600; }

/* ── Journey progress bar ── */
.gifts-journey {
  position: relative; z-index: 1; margin-bottom: 20px; padding: 0 4px;
}
.gifts-journey-track {
  width: 100%; height: 4px; border-radius: 4px;
  background: rgba(96, 54, 232, 0.08);
  overflow: hidden;
}
.gifts-journey-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #6036e8, #ca3fa0);
  transition: width 1s var(--ease-out);
  box-shadow: 0 0 12px rgba(96, 54, 232, 0.3);
}
.gifts-journey-dots {
  position: absolute; top: -4px; left: 4px; right: 4px; height: 12px;
  pointer-events: none;
}
.gifts-dot {
  position: absolute; top: 50%; width: 10px; height: 10px;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: rgba(96, 54, 232, 0.12);
  border: 2px solid rgba(96, 54, 232, 0.15);
  transition: all 0.6s var(--ease-out);
}
.gifts-dot-on {
  background: linear-gradient(135deg, #6036e8, #ca3fa0);
  border-color: rgba(96, 54, 232, 0.4);
  box-shadow: 0 0 8px rgba(96, 54, 232, 0.3);
}
[data-theme="light"] .gifts-journey-track { background: rgba(96, 54, 232, 0.06); }
[data-theme="light"] .gifts-dot { background: rgba(96, 54, 232, 0.06); border-color: rgba(96, 54, 232, 0.1); }

/* ── Gift grid: 4 cols desktop, 2 cols mobile ── */
.gifts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  position: relative; z-index: 1;
}
@media (max-width: 600px) {
  .gifts-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ── Individual gift card (button reset) ── */
.gift-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 8px 14px; text-align: center;
  border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(96, 54, 232, 0.03);
  transition: all 0.35s var(--ease-out);
  min-height: 130px;
  font-family: inherit; font-size: inherit; color: inherit;
}
.gift-card:active { transform: scale(0.95); transition-duration: 0.08s; }

/* Gift icon wrapper */
.gift-icon-wrap {
  margin-bottom: 10px;
}
.gift-icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease-out);
}
.gift-icon svg { width: 20px; height: 20px; }

/* Gift box (locked state) */
.gift-box-wrap {
  margin-bottom: 10px;
}
.gift-box {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(96, 54, 232, 0.06);
  color: var(--text-muted);
  animation: giftBoxShimmer 4s ease-in-out infinite;
}
.gift-box svg { width: 22px; height: 22px; }
@keyframes giftBoxShimmer {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.04); }
}

/* Gift title */
.gift-title {
  font-size: 0.72rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.3; max-width: 130px;
}

/* Tap hint for linked gifts */
.gift-link-hint {
  font-size: 0.6rem; color: var(--text-muted); margin-top: 4px;
  opacity: 0; transition: opacity 0.3s;
}
.gift-card:hover .gift-link-hint { opacity: 1; }

/* Gift countdown */
.gift-countdown {
  font-size: 0.68rem; color: var(--text-muted); margin-top: 2px;
  font-weight: 500;
}

/* NEW badge */
.gift-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 100px;
  background: linear-gradient(135deg, #6036e8, #ca3fa0);
  color: #fff; line-height: 1.4;
  animation: giftBadgePulse 2s ease-in-out infinite;
}
@keyframes giftBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96, 54, 232, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(96, 54, 232, 0); }
}

/* ── LOCKED state ── */
.gift-card.gift-locked {
  opacity: 0.4; cursor: default;
}
.gift-card.gift-locked:hover { opacity: 0.55; }

/* ── UNLOCKED state ── */
.gift-card.gift-unlocked {
  border-color: rgba(96, 54, 232, 0.15);
  background: rgba(96, 54, 232, 0.05);
}
.gift-card.gift-unlocked:hover {
  border-color: rgba(96, 54, 232, 0.3);
  background: rgba(96, 54, 232, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(96, 54, 232, 0.1);
}
.gift-card.gift-unlocked .gift-icon {
  background: linear-gradient(135deg, rgba(96, 54, 232, 0.1), rgba(202, 63, 160, 0.06));
  color: var(--purple);
}

/* ── New reveal entrance ── */
.gift-card.gift-new-reveal {
  border-color: rgba(96, 54, 232, 0.35);
  background: rgba(96, 54, 232, 0.08);
  animation: giftRevealGlow 3s ease-in-out infinite;
}
@keyframes giftRevealGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(96, 54, 232, 0.08); }
  50% { box-shadow: 0 0 28px rgba(96, 54, 232, 0.18), 0 0 8px rgba(202, 63, 160, 0.1); }
}

/* ── Finale card (gift 8, album) ── */
.gift-card.gift-finale {
  background: linear-gradient(135deg, rgba(96, 54, 232, 0.08), rgba(202, 63, 160, 0.06));
  border-color: rgba(202, 63, 160, 0.25);
}
.gift-card.gift-finale .gift-icon {
  background: linear-gradient(135deg, rgba(202, 63, 160, 0.15), rgba(96, 54, 232, 0.1));
  color: var(--pink);
}

/* ── Shake animation for locked clicks ── */
@keyframes giftShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.gift-shake { animation: giftShake 0.5s ease-in-out !important; }

/* ══════════════════════════════════════════════════════════════════════
   GIFT REVEAL MODAL — Full-screen glass popup with confetti
   ══════════════════════════════════════════════════════════════════════ */

.gift-modal {
  position: fixed; inset: 0; z-index: 99980;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.gift-modal.open { opacity: 1; pointer-events: auto; }
.gift-modal.open .gift-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.gift-modal-card {
  position: relative; overflow: hidden;
  width: 90%; max-width: 380px;
  padding: 36px 28px 28px; text-align: center;
  border-radius: 20px;
  background: var(--bg-card); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(96, 54, 232, 0.2);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 60px rgba(96, 54, 232, 0.08),
              inset 0 1px 0 var(--glass-shine);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gift-modal-card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(96, 54, 232, 0.4), rgba(202, 63, 160, 0.3), transparent);
}

/* Confetti canvas inside modal */
.gift-modal-confetti-canvas {
  position: absolute; top: 0; left: 0; right: 0; height: 200px;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.gift-confetti-dot {
  position: absolute; top: -8px;
  width: 6px; height: 6px; border-radius: 50%;
  animation: giftConfettiFall 1.5s ease-out forwards;
}
@keyframes giftConfettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

/* Badge: "Gift 3 of 8" */
.gift-modal-badge {
  position: relative; z-index: 1;
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  background: rgba(96, 54, 232, 0.1); border: 1px solid rgba(96, 54, 232, 0.2);
  color: var(--purple); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px;
}

/* Icon circle */
.gift-modal-icon { position: relative; z-index: 1; margin-bottom: 18px; }
.gift-modal-icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(96, 54, 232, 0.12), rgba(202, 63, 160, 0.08));
  color: var(--purple);
  box-shadow: 0 8px 24px rgba(96, 54, 232, 0.12);
}
.gift-modal-icon-circle svg { width: 28px; height: 28px; }

/* Finale icon (album) */
.gift-modal-icon-circle.gift-modal-finale {
  background: linear-gradient(135deg, rgba(202, 63, 160, 0.15), rgba(96, 54, 232, 0.12));
  color: var(--pink);
  box-shadow: 0 8px 24px rgba(202, 63, 160, 0.15);
}

/* Title */
.gift-modal-title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 10px; line-height: 1.3;
}

/* Description */
.gift-modal-desc {
  position: relative; z-index: 1;
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 24px; max-width: 320px; margin-left: auto; margin-right: auto;
}

/* CTA button: "Open Module" / "Start Learning" */
.gift-modal-cta {
  position: relative; z-index: 1;
  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);
  margin-bottom: 12px;
}
.gift-modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(96, 54, 232, 0.35);
}
.gift-modal-cta:active { transform: scale(0.97); }
.gift-modal-cta svg { transition: transform 0.3s var(--ease-spring); }
.gift-modal-cta:hover svg { transform: translateX(3px); }

/* Dismiss button */
.gift-modal-dismiss {
  position: relative; z-index: 1;
  display: block; margin: 0 auto;
  padding: 8px 20px; border: none; background: none;
  color: var(--text-muted); font-family: inherit; font-size: 0.8rem;
  font-weight: 500; cursor: pointer; transition: color 0.2s;
}
.gift-modal-dismiss:hover { color: var(--text-primary); }

/* ── Light theme overrides ── */
[data-theme="light"] .gift-card { background: rgba(96, 54, 232, 0.02); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .gift-card.gift-unlocked { background: rgba(96, 54, 232, 0.03); border-color: rgba(96, 54, 232, 0.1); }
[data-theme="light"] .gift-card.gift-unlocked:hover { background: rgba(96, 54, 232, 0.05); box-shadow: 0 4px 16px rgba(96, 54, 232, 0.06); }
[data-theme="light"] .gift-card.gift-new-reveal { background: rgba(96, 54, 232, 0.04); border-color: rgba(96, 54, 232, 0.15); }
[data-theme="light"] .gift-card.gift-locked { opacity: 0.3; }
[data-theme="light"] .gift-box { background: rgba(96, 54, 232, 0.04); }
[data-theme="light"] .gift-modal { background: rgba(0,0,0,0.25); }
[data-theme="light"] .gift-modal-card { box-shadow: 0 16px 48px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .gift-card, .gift-card.gift-new-reveal { animation: none !important; transition: none !important; }
  .gift-badge, .gift-box { animation: none !important; }
  .gift-modal-card { transition: none !important; }
  .gift-confetti-dot { animation: none !important; display: none; }
}
