/* Gideon Guitar Method — Design System v2 */
/* 7-Figure Designer · 12 Years Product Experience */

/* ===== Design Tokens ===== */
:root {
  --gld: #C89B3C;
  --gld-dark: #A67B2E;
  --gld-light: #E8C96A;
  --gld-glow: rgba(200,155,60,.15);
  --gld-glass: rgba(200,155,60,.08);

  --black: #0a0a0a;
  --text: #f0f0f8;
  --text2: #9090a8;
  --text3: #5a5a70;
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --bg4: #22222f;
  --surface: #1e1e2a;
  --border: rgba(255,255,255,.08);
  --border2: rgba(255,255,255,.15);

  --red-light: #f87171;
  --red-dim: rgba(248,113,113,.12);
  --red-glass: rgba(248,113,113,.15);
  --green-light: #4ade80;
  --green-dim: rgba(74,222,128,.12);
  --green-glass: rgba(74,222,128,.15);
  --blue-light: #60a5fa;
  --blue-dim: rgba(96,165,250,.12);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.5, 0.64, 1);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.2);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.25);
  --shadow-glow: 0 0 30px rgba(200,155,60,.1);

  --text-xs: 10px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 28px;
  --text-3xl: 40px;

  --z-base: 1;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-popup: 500;
}

/* ===== Base Overrides ===== */
.guitar-app {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
}

.guitar-app ::selection { background: var(--gld); color: var(--black); }

/* ===== Screen / Page Transition ===== */
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(12px);
  transition: opacity .35s var(--ease-smooth), transform .35s var(--ease-out);
  overflow: hidden;
}
.screen.active { opacity: 1; transform: translateY(0); }

/* ===== Header ===== */
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 8px;
  background: rgba(10,10,10,.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.04);
  position: sticky; top: 0; z-index: var(--z-sticky);
  min-height: 52px;
}
.hdr-logo {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.hdr-logo .icon { font-size: 20px; }

/* ===== Bottom Navigation ===== */
.bottom-nav {
  display: flex; align-items: center; justify-content: space-around;
  padding: 4px 0 env(safe-area-inset-bottom, 8px);
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,.06);
  position: relative; z-index: var(--z-sticky);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px;
  font-size: 10px; color: var(--text3);
  text-decoration: none; transition: all .2s var(--ease-out);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-item i { font-size: 20px; transition: transform .2s var(--ease-spring); }
.nav-item:active i { transform: scale(.85); }
.nav-item.active { color: var(--gld); }
.nav-item.active::before {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--gld);
  transition: width .3s var(--ease-out);
}
.nav-item span { font-size: 9px; font-weight: 500; letter-spacing: .2px; }

/* ===== Glass Card ===== */
.glass {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
}
.glass-strong {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
}
.gold-border { border-color: rgba(200,155,60,.2); }

/* ===== Card Hover ===== */
.card-hover {
  transition: all .3s var(--ease-out);
  cursor: pointer;
}
.card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(200,155,60,.2);
  box-shadow: var(--shadow-glow);
}
.card-hover:active { transform: translateY(0) scale(.98); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all .25s var(--ease-out);
  position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn i { font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--gld-dark), var(--gld));
  color: var(--black);
  box-shadow: 0 2px 12px rgba(200,155,60,.2);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(200,155,60,.3); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.96); }

.btn-secondary {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
}
.btn-ghost:hover { background: rgba(255,255,255,.04); color: var(--text); }

.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: 11px; border-radius: var(--radius-sm); }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-md); }
.btn-icon.btn-sm { width: 36px; height: 36px; }
.btn-block { width: 100%; }

/* Ripple effect */
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,.15), transparent 60%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }

/* ===== Skeleton Loading ===== */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite var(--ease-smooth);
  border-radius: var(--radius-sm);
}
.skeleton-title { height: 20px; width: 60%; margin-bottom: 8px; }
.skeleton-text { height: 14px; width: 100%; margin-bottom: 6px; }
.skeleton-avatar { width: 44px; height: 44px; border-radius: var(--radius-full); }
.skeleton-card { height: 80px; border-radius: var(--radius-lg); margin-bottom: 8px; }
.skeleton-badge { width: 56px; height: 56px; border-radius: var(--radius-lg); }

/* ===== Toast ===== */
.toast-container {
  position: fixed; bottom: calc(80px + env(safe-area-inset-bottom, 8px));
  left: 50%; transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500;
  background: rgba(30,30,30,.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  animation: toastIn .35s var(--ease-spring);
  pointer-events: auto;
  max-width: 90vw;
  text-align: center;
}
.toast-success { border-color: rgba(74,222,128,.2); }
.toast-error { border-color: rgba(248,113,113,.2); }
.toast-info { border-color: rgba(200,155,60,.2); }
@keyframes toastIn {
  0% { opacity: 0; transform: translateY(20px) scale(.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== XP Popup ===== */
.xp-popup {
  position: fixed; z-index: var(--z-popup);
  pointer-events: none;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 20px;
  color: var(--gld);
  animation: xpFloat 1s var(--ease-out) forwards;
}
@keyframes xpFloat {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-80px) scale(1.2); }
}

/* ===== Bottom Sheet ===== */
.sheet-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none; align-items: flex-end; justify-content: center;
  animation: overlayIn .25s var(--ease-out);
}
.sheet-overlay.open { display: flex; }
@keyframes overlayIn { 0% { opacity: 0; } 100% { opacity: 1; } }

.sheet {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-width: 500px; width: 100%; max-height: 85vh;
  overflow-y: auto;
  animation: sheetUp .4s var(--ease-spring);
  box-shadow: 0 -8px 40px rgba(0,0,0,.4);
}
@keyframes sheetUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
.sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.12);
  margin: 10px auto 8px;
}
.sheet-scroll { padding: 0 24px 24px; overflow-y: auto; }

/* ===== Fretboard (enhanced) ===== */
.fretboard {
  display: flex; flex-direction: column; gap: 0;
  padding: 16px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20,20,20,.8), rgba(10,10,10,.8));
  border: 1px solid rgba(255,255,255,.06);
  overflow-x: auto; max-width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.fret-string { display: flex; align-items: center; height: 36px; position: relative; }
.fret-string::after {
  content: ''; position: absolute; left: 28px; right: 8px;
  height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.08), transparent 80%);
  z-index: 0;
}
.fret-string-label {
  width: 28px; font-size: 11px; font-weight: 700; color: var(--gld);
  z-index: 1; text-align: center; flex-shrink: 0;
  font-family: monospace;
}
.fret-note {
  width: 36px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: var(--text3);
  z-index: 1; cursor: pointer;
  transition: all .2s var(--ease-out);
  border-radius: var(--radius-sm);
  margin: 0 1px; position: relative;
}
.fret-note:hover { background: var(--gld-glass); color: var(--gld); }
.fret-note.root {
  background: var(--gld); color: var(--black); font-weight: 800;
  border-radius: 50%; width: 26px; height: 26px; font-size: 11px;
  box-shadow: 0 0 12px rgba(200,155,60,.3);
}
.fret-note.filled {
  background: var(--gld-glass); color: var(--gld); font-weight: 700;
  border-radius: 50%; width: 26px; height: 26px; font-size: 10px;
}
.fret-note.target {
  background: rgba(248,113,113,.8); color: white;
  border-radius: 50%; width: 26px; height: 26px; font-size: 10px;
  animation: pulse 1s infinite;
  box-shadow: 0 0 12px rgba(248,113,113,.3);
}
.fret-note.correct {
  background: rgba(74,222,128,.8); color: white;
  border-radius: 50%; width: 26px; height: 26px; font-size: 10px;
  animation: pop .35s var(--ease-spring);
}
.fret-note.wrong {
  background: rgba(248,113,113,.8); color: white;
  border-radius: 50%; width: 26px; height: 26px; font-size: 10px;
  animation: shake .3s var(--ease-out);
}

/* ===== Chord Diagram (enhanced) ===== */
.chord-diagram {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 16px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20,20,20,.8), rgba(10,10,10,.8));
  border: 1px solid rgba(255,255,255,.06);
  min-width: 130px; box-shadow: var(--shadow-sm);
}
.chord-name {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--gld); margin-bottom: 10px;
}
.chord-fret-row { display: grid; grid-template-columns: 20px repeat(6, 12px); gap: 2px; align-items: center; }
.chord-fret-row + .chord-fret-row { margin-top: 1px; }
.chord-dot { width: 9px; height: 9px; border-radius: 50%; margin: auto; }
.chord-dot.filled { background: var(--gld); box-shadow: 0 0 6px rgba(200,155,60,.3); }

/* ===== Tuner (enhanced) ===== */
.tuner-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px;
}
.tuner-canvas-wrap {
  position: relative; width: 160px; height: 160px; margin: 0 auto;
}
.tuner-canvas { width: 160px; height: 160px; }
.tuner-note-display {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: 'Syne', sans-serif; font-size: 42px; font-weight: 800;
  color: var(--gld); transition: all .3s var(--ease-spring);
}
.tuner-status {
  font-size: 13px; color: var(--text2); margin-top: 8px;
  transition: color .2s;
}
.tuner-status.in-tune { color: var(--green-light); }
.tuner-string-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.tuner-string-btn {
  padding: 8px 16px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.08);
  background: transparent; color: var(--text3);
  cursor: pointer; font-size: 12px; font-weight: 600;
  transition: all .2s var(--ease-out);
  font-family: 'DM Sans', sans-serif;
}
.tuner-string-btn:hover { border-color: var(--gld); color: var(--gld); }
.tuner-string-btn.active { border-color: var(--gld); color: var(--gld); background: var(--gld-glass); }

/* ===== Metronome (enhanced) ===== */
.metronome-wrap { display: flex; flex-direction: column; align-items: center; padding: 24px; }
.metro-bpm { font-family: 'Syne', sans-serif; font-size: 56px; font-weight: 800; color: var(--gld); line-height: 1; }
.metro-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }
.metro-visual { display: flex; gap: 10px; margin-top: 24px; align-items: center; }
.metro-beat {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: all .12s var(--ease-out);
}
.metro-beat.active { background: var(--gld); transform: scale(1.4); box-shadow: 0 0 12px rgba(200,155,60,.4); }
.metro-beat.accent { background: var(--gld-dark); }
.metro-beat.accent.active { background: var(--gld); transform: scale(1.5); box-shadow: 0 0 16px rgba(200,155,60,.5); }

/* ===== One-Minute Drill (enhanced) ===== */
.om-wrap { display: flex; flex-direction: column; align-items: center; padding: 24px; }
.om-ring {
  position: relative; width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.om-ring svg { position: absolute; transform: rotate(-90deg); }
.om-ring-bg { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 4; }
.om-ring-progress { fill: none; stroke: var(--gld); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.om-timer {
  font-family: 'Syne', sans-serif; font-size: 48px; font-weight: 800; color: var(--gld);
  z-index: 1;
}
.om-score {
  font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 700;
  color: var(--text); margin-top: 12px;
}
.om-pair { font-size: 16px; font-weight: 600; color: var(--text2); margin-bottom: 16px; }

/* ===== Practice Timer (enhanced) ===== */
.pt-timer {
  text-align: center; padding: 32px 0;
}
.pt-countdown {
  font-family: 'Syne', sans-serif; font-size: 72px; font-weight: 800;
  color: var(--gld); line-height: 1;
  text-shadow: 0 0 40px rgba(200,155,60,.1);
}
.pt-block-label {
  font-size: 14px; color: var(--text2); margin-top: 8px;
  font-weight: 500;
}
.pt-progress-ring { position: relative; display: inline-flex; }
.pt-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 400px; margin: 20px auto 0; }
.pt-block {
  padding: 14px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  text-align: center; transition: all .3s var(--ease-out);
}
.pt-block.active { border-color: var(--gld); background: var(--gld-glass); box-shadow: var(--shadow-glow); }
.pt-block.done { border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.04); }
.pt-block-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; }
.pt-block-time { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); margin-top: 4px; }

/* ===== Song Card (enhanced) ===== */
.song-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.song-card {
  border-radius: var(--radius-lg); padding: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  cursor: pointer; transition: all .3s var(--ease-out);
}
.song-card:hover { transform: translateY(-3px); border-color: var(--gld); box-shadow: var(--shadow-glow); }
.song-card:active { transform: translateY(-1px) scale(.98); }
.song-card .icon { font-size: 32px; margin-bottom: 8px; }
.song-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; }
.song-artist { font-size: 12px; color: var(--text3); margin-top: 2px; }
.song-chord-tag {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  background: var(--gld-glass); color: var(--gld);
  font-size: 10px; font-weight: 600; font-family: monospace;
  margin: 2px;
}

/* ===== Curriculum (enhanced) ===== */
.curriculum-tier { margin-bottom: 28px; }
.tier-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tier-badge { font-size: 28px; }
.tier-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; }
.tier-sub { font-size: 12px; color: var(--text3); }
.module-card {
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  cursor: pointer; transition: all .3s var(--ease-out);
  display: flex; align-items: center; gap: 14px;
}
.module-card:hover { transform: translateY(-2px); border-color: var(--gld); box-shadow: var(--shadow-glow); }
.module-card:active { transform: translateY(0) scale(.98); }
.module-card.locked { opacity: .5; cursor: not-allowed; }
.module-card.locked:hover { border-color: rgba(255,255,255,.06); transform: none; box-shadow: none; }
.module-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gld-glass);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--gld); flex-shrink: 0;
}
.module-info { flex: 1; min-width: 0; }
.module-name { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; }
.module-desc { font-size: 11px; color: var(--text3); margin-top: 2px; }
.module-lessons { font-size: 10px; color: var(--gld); margin-top: 4px; }

/* ===== Progress Bar ===== */
.progress-bar { height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gld-dark), var(--gld));
  border-radius: 2px; transition: width .6s var(--ease-out);
}

/* ===== Stat Card ===== */
.stat-card {
  padding: 16px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  text-align: center;
  transition: all .3s var(--ease-out);
}
.stat-card:hover { border-color: var(--gld); box-shadow: var(--shadow-glow); }
.stat-value {
  font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800;
  color: var(--gld); line-height: 1;
}
.stat-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }

/* ===== Badge Wall (enhanced) ===== */
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 8px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  transition: all .3s var(--ease-out);
}
.badge-item:hover { border-color: var(--gld); }
.badge-unlocked { border-color: rgba(200,155,60,.2); background: var(--gld-glass); }
.badge-icon { font-size: 32px; margin-bottom: 6px; }
.badge-name { font-size: 9px; text-align: center; color: var(--text2); line-height: 1.3; }

/* ===== Paywall (enhanced) ===== */
.paywall-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: flex-end; justify-content: center;
}
.paywall-overlay.open { display: flex; }
.paywall-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 32px 24px 24px;
  max-width: 420px; width: 100%; max-height: 90vh; overflow-y: auto;
  animation: sheetUp .4s var(--ease-spring);
}
.paywall-icon { font-size: 48px; text-align: center; margin-bottom: 8px; }
.paywall-title {
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700;
  text-align: center; margin-bottom: 4px;
}
.paywall-price {
  font-family: 'Syne', sans-serif; font-size: 52px; font-weight: 800;
  color: var(--gld); text-align: center; margin: 8px 0;
}
.paywall-desc { font-size: 13px; color: var(--text2); text-align: center; margin-bottom: 16px; line-height: 1.6; }
.paywall-features { list-style: none; padding: 0; margin: 16px 0; }
.paywall-features li {
  padding: 8px 0; display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text2);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.paywall-features .check { color: var(--green-light); font-size: 16px; }

/* ===== Scrollbar ===== */
.scrollable::-webkit-scrollbar { width: 3px; }
.scrollable::-webkit-scrollbar-track { background: transparent; }
.scrollable::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

/* ===== Page Sections ===== */
.section { padding: 20px; max-width: 700px; margin: 0 auto; width: 100%; }
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700;
  margin-bottom: 4px;
}
.section-sub {
  font-size: 12px; color: var(--text3); margin-bottom: 16px;
  line-height: 1.5;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; margin-bottom: 12px;
  background: none; border: none;
  color: var(--text3); font-size: 12px; cursor: pointer;
  transition: color .2s;
}
.back-btn:hover { color: var(--text); }

/* ===== Lesson Content (enhanced) ===== */
.lesson-viewer { line-height: 1.8; font-size: 14px; color: var(--text2); }
.lesson-viewer h2 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.lesson-viewer h3 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); margin: 20px 0 6px; }
.lesson-viewer p { margin-bottom: 14px; }
.lesson-viewer ul, .lesson-viewer ol { padding-left: 20px; margin-bottom: 14px; }
.lesson-viewer li { margin-bottom: 6px; }
.lesson-viewer strong { color: var(--text); }
.lesson-viewer table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; border-radius: var(--radius-md); overflow: hidden; }
.lesson-viewer th { background: var(--gld-glass); color: var(--gld); padding: 10px 12px; text-align: left; font-weight: 600; }
.lesson-viewer td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.04); }
.lesson-viewer tr:last-child td { border-bottom: none; }
.lesson-viewer pre {
  background: rgba(0,0,0,.3); padding: 16px; border-radius: var(--radius-md);
  font-size: 13px; overflow-x: auto; margin: 16px 0;
  font-family: 'Courier New', monospace; color: var(--gld); line-height: 1.6;
  border: 1px solid rgba(255,255,255,.04);
}
.lesson-viewer iframe { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); margin: 16px 0; }
.lesson-viewer blockquote {
  border-left: 3px solid var(--gld);
  padding: 12px 20px; margin: 16px 0;
  background: var(--gld-glass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic; color: var(--text2);
}

/* ===== Lesson Card ===== */
.lesson-card {
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  cursor: pointer; transition: all .3s var(--ease-out);
  display: flex; align-items: center; gap: 14px;
}
.lesson-card:hover { border-color: var(--gld); transform: translateX(4px); box-shadow: var(--shadow-glow); }
.lesson-card:active { transform: translateX(2px) scale(.99); }

/* ===== Filter Pills ===== */
.filter-pill {
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .2s var(--ease-out);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text3);
  flex-shrink: 0;
}
.filter-pill:hover { border-color: var(--gld); color: var(--gld); }
.filter-pill.active { background: var(--gld); color: var(--black); border-color: var(--gld); }

/* ===== Form Elements ===== */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text2); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text); font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s var(--ease-out);
  outline: none;
}
.form-input:focus { border-color: var(--gld); box-shadow: 0 0 0 3px var(--gld-glass); }
.form-input::placeholder { color: var(--text3); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px 40px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,155,60,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(200,155,60,.04) 0%, transparent 50%),
              linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  z-index: 0;
}
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  pointer-events: none;
}
.hero-particle {
  position: absolute; width: 4px; height: 4px;
  background: var(--gld); border-radius: 50%;
  opacity: 0; animation: particleFloat 6s infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: .6; }
  80% { opacity: .6; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-icon { font-size: 56px; margin-bottom: 12px; display: block; }
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 7vw, 56px); font-weight: 800;
  line-height: 1.1; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gld-light), var(--gld), var(--gld-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 15px; color: var(--text2); line-height: 1.7; max-width: 480px; margin: 0 auto 24px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800;
  color: var(--gld);
  opacity: 0; transform: translateY(10px);
  transition: all .6s var(--ease-out);
}
.hero-stat-num.visible { opacity: 1; transform: translateY(0); }
.hero-stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

/* ===== Method Steps ===== */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method-card {
  padding: 18px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  text-align: center;
  transition: all .3s var(--ease-out);
}
.method-card:hover { border-color: var(--gld); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.method-icon { font-size: 28px; margin-bottom: 8px; }
.method-title { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.method-desc { font-size: 11px; color: var(--text3); line-height: 1.5; }

/* ===== Horizontal Scroll ===== */
.h-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.h-scroll::-webkit-scrollbar { height: 2px; }
.h-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

/* ===== Pillar Card ===== */
.pillar-card {
  flex-shrink: 0; padding: 18px; border-radius: var(--radius-lg);
  width: 170px;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  text-align: center;
  transition: all .3s var(--ease-out);
}
.pillar-card:hover { border-color: var(--gld); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.pillar-card .icon { font-size: 36px; margin-bottom: 8px; }

/* ===== Divider ===== */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); margin: 24px 0; }

/* ===== CTA Section ===== */
.cta-section { text-align: center; padding: 48px 20px; }
.cta-section h2 { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.cta-section p { color: var(--text2); font-size: 14px; margin-bottom: 20px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ===== Animations ===== */
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes pop {
  0% { transform: scale(.5); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  0% { opacity: 0; transform: scale(.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes slideRight {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Entrance classes */
.fade-up { animation: fadeUp .5s var(--ease-out) both; }
.scale-in { animation: scaleIn .4s var(--ease-spring) both; }
.slide-right { animation: slideRight .4s var(--ease-out) both; }
.stagger > * { animation: fadeUp .5s var(--ease-out) both; }
.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: .08s; }
.stagger > *:nth-child(3) { animation-delay: .16s; }
.stagger > *:nth-child(4) { animation-delay: .24s; }
.stagger > *:nth-child(5) { animation-delay: .32s; }
.stagger > *:nth-child(6) { animation-delay: .4s; }

/* ===== Gap / Spacing Helpers ===== */
.gap-xs { gap: 4px; } .gap-sm { gap: 8px; } .gap-md { gap: 16px; } .gap-lg { gap: 24px; }
.mt-sm { margin-top: 8px; } .mt-md { margin-top: 16px; } .mt-lg { margin-top: 24px; }
.mb-sm { margin-bottom: 8px; } .mb-md { margin-bottom: 16px; }
.p-md { padding: 16px; } .p-lg { padding: 24px; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.w-full { width: 100%; } .text-center { text-align: center; }
.flex-1 { flex: 1; }

/* ===== Responsive ===== */
@media(max-width:480px){
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .hero-icon { font-size: 40px; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 20px; }
  .song-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .pt-blocks { grid-template-columns: 1fr; }
  .om-ring { width: 140px; height: 140px; }
  .om-timer { font-size: 36px; }
  .pt-countdown { font-size: 56px; }
  .tuner-canvas-wrap { width: 120px; height: 120px; }
  .tuner-canvas { width: 120px; height: 120px; }
  .tuner-note-display { font-size: 32px; }
  .stat-value { font-size: 24px; }
  .paywall-price { font-size: 40px; }
  .fret-note { width: 28px; height: 26px; font-size: 9px; }
  .fret-note.root, .fret-note.filled, .fret-note.target, .fret-note.correct, .fret-note.wrong { width: 22px; height: 22px; font-size: 9px; }
}
@media(min-width:768px){
  .song-grid { grid-template-columns: 1fr 1fr 1fr; }
  .badge-grid { grid-template-columns: repeat(5, 1fr); }
  .method-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-grid { grid-template-columns: repeat(4, 1fr); }
  .pt-blocks { grid-template-columns: 1fr 1fr; }
}

/* ===== Desktop (>=1024px) ===== */
@media(min-width:1024px){

  /* Un-fix screens — flow naturally */
  .screen {
    position: relative;
    inset: auto;
    min-height: 100vh;
    overflow: visible;
    padding-left: 240px;
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  /* Bottom nav → fixed left sidebar */
  .bottom-nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 240px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 10px 24px;
    gap: 2px;
    background: rgba(10,10,10,.96);
    backdrop-filter: blur(24px);
    border-top: none;
    border-right: 1px solid rgba(255,255,255,.06);
    z-index: var(--z-sticky);
  }

  /* Sidebar brand at top */
  .bottom-nav::before {
    content: '🎸 Gideon Guitar';
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 20px 16px 16px;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--gld);
    border-bottom: 1px solid rgba(255,255,255,.04);
    margin-bottom: 12px;
  }

  .nav-item {
    flex-direction: row;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
  }
  .nav-item i { font-size: 18px; }
  .nav-item span { font-size: 13px; font-weight: 500; display: block; }
  .nav-item.active::before { display: none; }
  .nav-item.active { background: rgba(200,155,60,.1); }

  /* Header — sleeker on desktop */
  .hdr {
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,.04);
    padding: 16px 24px 12px;
    min-height: auto;
  }
  .hdr-logo { font-size: 13px; color: var(--text2); }
  .hdr-logo .icon { font-size: 16px; }

  /* Content area — override inline max-width */
  .screen > .scrollable {
    max-width: none !important;
    padding: 24px 32px !important;
    overflow: visible !important;
    height: auto !important;
  }

  /* Hero — full width, taller */
  .hero {
    min-height: 80vh;
    padding: 80px 24px 60px;
  }
  .hero-content { max-width: 720px; }
  .hero h1 { font-size: clamp(48px, 5vw, 72px); }
  .hero p { font-size: 17px; max-width: 560px; }
  .hero-stats { gap: 48px; }
  .hero-stat-num { font-size: 32px; }

  /* Wider grids */
  .song-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }
  .badge-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .method-grid { gap: 16px; }
  .method-card { padding: 24px; }
  .method-icon { font-size: 36px; }
  .method-title { font-size: 14px; }
  .method-desc { font-size: 12px; }

  /* Dashboard — double row */
  .dashboard-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .stat-value { font-size: 36px; }

  /* Song cards — bigger */
  .song-card { padding: 20px; }
  .song-title { font-size: 16px; }
  .song-artist { font-size: 13px; }

  /* Practice — wider timer */
  .pt-countdown { font-size: 120px; }
  .om-ring { width: 220px; height: 220px; }
  .om-timer { font-size: 64px; }

  /* Tuner — larger */
  .tuner-canvas-wrap { width: 200px; height: 200px; }
  .tuner-canvas { width: 200px; height: 200px; }
  .tuner-note-display { font-size: 56px; }

  /* Lesson cards — side by side */
  .lesson-card { padding: 18px 20px; font-size: 14px; }

  /* Leaderboard */
  .lb-row { padding: 14px 18px; font-size: 14px; }

  /* Filter pills */
  .filter-pill { padding: 10px 22px; font-size: 13px; }

  /* Stagger animation delays — shorter on desktop */
  .stagger > *:nth-child(1) { animation-delay: 0s; }
  .stagger > *:nth-child(2) { animation-delay: .04s; }
  .stagger > *:nth-child(3) { animation-delay: .08s; }
  .stagger > *:nth-child(4) { animation-delay: .12s; }

  /* CTA */
  .cta-section { padding: 80px 24px; }
  .cta-section h2 { font-size: 32px; }
}

/* ===== DOM Fretboard (click-to-place) ===== */
.fretboard-dom { position: relative; width: 100%; min-width: 500px; }
.fretboard-dom .string-row { display: flex; align-items: center; height: 38px; position: relative; }
.fretboard-dom .string-name { width: 28px; font-family: monospace; font-size: 12px; color: var(--gld); font-weight: 500; text-align: center; flex-shrink: 0; }
.fretboard-dom .string-line { flex: 1; height: 100%; position: relative; display: flex; }
.fretboard-dom .string-line::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1.5px; background: rgba(255,255,255,.08); transform: translateY(-50%); }
.fretboard-dom .fret-cell { flex: 1; height: 100%; border-right: 1px solid rgba(255,255,255,.06); position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fretboard-dom .fret-cell:first-child { border-left: 3px solid var(--text3); }
.fretboard-dom .fret-cell:hover .fret-dot-ghost { opacity: 1; }
.fretboard-dom .fret-dot-ghost { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.15); opacity: 0; transition: opacity .15s; z-index: 1; position: relative; }
.fretboard-dom .fret-dot-active { width: 22px; height: 22px; border-radius: 50%; background: var(--gld); display: flex; align-items: center; justify-content: center; font-family: monospace; font-size: 10px; color: #000; font-weight: 700; z-index: 2; position: absolute; cursor: pointer; animation: popIn .2s cubic-bezier(.34,1.56,.64,1); }
.fretboard-dom .fret-dot-active.muted { background: var(--red-light); }
.fretboard-dom .fret-dot-active.open { background: var(--green-light); }
.fretboard-dom .fret-inlay { background: var(--text3); width: 5px; height: 5px; border-radius: 50%; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.fretboard-dom .fret-nums { display: flex; margin-left: 28px; }
.fretboard-dom .fret-num-cell { flex: 1; text-align: center; font-family: monospace; font-size: 10px; color: var(--text3); padding-top: 4px; }

/* ===== Chord Trainer ===== */
.trainer-prompt { text-align: center; padding: 32px 20px; background: linear-gradient(180deg, rgba(20,20,20,.8), rgba(10,10,10,.8)); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-lg); margin-bottom: 16px; }
.trainer-instruction { font-size: 13px; color: var(--text3); margin-bottom: 8px; }
.trainer-chord { font-family: 'Syne', sans-serif; font-size: 56px; font-weight: 800; color: var(--gld); line-height: 1; margin-bottom: 4px; }
.trainer-chord-hint { font-size: 13px; color: var(--text2); margin-top: 8px; }
.trainer-score { display: flex; gap: 24px; justify-content: center; margin-top: 16px; }
.trainer-score-item { text-align: center; }
.trainer-score-num { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; }
.trainer-score-lbl { font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; }
.feedback-pop { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 4px 14px; font-size: 13px; font-weight: 600; color: var(--gld); opacity: 0; transition: all .3s var(--ease-out); pointer-events: none; white-space: nowrap; }
.feedback-pop.show { opacity: 1; top: -40px; }
.trainer-prompt { position: relative; }
.chord-mini-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin: 8px auto; width: 72px; }
.chord-dot-mini { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--bg4); }
.chord-dot-mini.on { background: var(--gld); }
.chord-dot-mini.mute { background: var(--red-light); }
.chord-diff { font-size: 11px; margin-top: 4px; padding: 2px 8px; border-radius: 10px; display: inline-block; }
.diff-easy { background: var(--green-glass); color: var(--green-light); }
.diff-medium { background: var(--gld-glass); color: var(--gld); }
.diff-hard { background: var(--red-glass); color: var(--red-light); }

/* ===== Strum Pattern Animator ===== */
.strum-animator { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(180deg, rgba(20,20,20,.8), rgba(10,10,10,.8)); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-lg); min-height: 60px; flex-wrap: wrap; }
.strum-char { font-size: 28px; font-weight: 700; font-family: 'Syne', sans-serif; padding: 4px 12px; border-radius: var(--radius-sm); transition: all .15s var(--ease-out); color: var(--text3); }
.strum-char.active { color: var(--gld); background: var(--gld-glass); transform: scale(1.15); box-shadow: 0 0 20px rgba(200,155,60,.15); }
.strum-char[data-dir="D"].active { color: var(--green-light); }
.strum-char[data-dir="U"].active { color: var(--gld); }
.strum-char[data-dir="M"].active { color: var(--red-light); }

/* ===== Mini Song Player ===== */
.mini-player { position: fixed; bottom: 60px; left: 0; right: 0; background: linear-gradient(180deg, rgba(30,30,42,.98), rgba(20,20,30,.98)); border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; align-items: center; gap: 12px; padding: 10px 16px; z-index: 200; transition: transform .3s var(--ease-out); }
@media(min-width: 1024px) { .mini-player { bottom: 0; left: 260px; } }
.mini-player.hidden { transform: translateY(100%); }
.player-info { flex: 1; min-width: 0; }
.player-song { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-chord-row { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.player-chord { font-family: monospace; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,.04); color: var(--text3); transition: all .2s var(--ease-out); }
.player-chord.current { background: var(--gld-glass); color: var(--gld); transform: scale(1.1); box-shadow: 0 0 12px rgba(200,155,60,.2); }
.player-controls { display: flex; gap: 4px; align-items: center; }
.player-controls .ctrl-btn { width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--text2); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s var(--ease-out); flex-shrink: 0; }
.player-controls .ctrl-btn:hover { background: rgba(255,255,255,.12); color: var(--text); }
.player-controls .ctrl-btn.play { background: var(--gld-glass); color: var(--gld); font-size: 16px; }
.player-controls .ctrl-btn.play:hover { background: var(--gld); color: #000; }
.player-tempo { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text3); flex-shrink: 0; }
.player-tempo input[type="range"] { width: 60px; accent-color: var(--gld); }

@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

/* ===== Dashboard - Bold & Refreshing ===== */

/* Display font */
.dash-display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }

/* Greeting */
.dash-greeting { font-family: 'Bebas Neue', sans-serif; font-size: clamp(32px, 5vw, 48px); letter-spacing: 1px; line-height: 1; }
.dash-sub { font-size: 14px; color: var(--text2); margin-top: 4px; }

/* Stats hero */
.stats-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 12px; text-align: center; }
.stat-hero-num { font-family: 'Bebas Neue', sans-serif; font-size: 32px; line-height: 1; }
.stat-hero-lbl { font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
@media(max-width:480px) { .stats-hero { grid-template-columns: repeat(2, 1fr); } .stat-hero-num { font-size: 26px; } }
@media(min-width:1024px) { .stats-hero { gap: 14px; } .stat-hero { padding: 18px; } .stat-hero-num { font-size: 40px; } }

/* Today's lesson hero card */
.lesson-today { grid-column: 1 / -1; background: linear-gradient(135deg, #1a1a24 0%, #16161f 100%); border: 1px solid rgba(200,155,60,.15); border-radius: var(--radius-lg); padding: 20px; position: relative; overflow: hidden; }
.lesson-today::before { content: ''; position: absolute; top: -30px; right: -30px; width: 140px; height: 140px; background: rgba(200,155,60,.06); border-radius: 50%; }
.lesson-today-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gld); font-weight: 600; }
.lesson-today-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; margin-top: 4px; line-height: 1.1; }
.lesson-today-desc { font-size: 13px; color: var(--text2); margin-top: 6px; max-width: 500px; line-height: 1.5; }
.lesson-today-meta { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.lesson-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text2); }
@media(min-width:1024px) { .lesson-today { padding: 28px; } .lesson-today-title { font-size: 34px; } }

/* SVG skill rings */
.skill-rings { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.skill-ring-wrap { text-align: center; }
.skill-ring-lbl { font-size: 10px; color: var(--text2); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.ring-svg { transform: rotate(-90deg); }
.ring-bg { stroke: rgba(255,255,255,.06); fill: none; stroke-width: 6; }
.ring-fg { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(0.4,0,0.2,1); }

/* XP bar + level badge in sidebar */
.xp-bar-wrap { display: flex; align-items: center; gap: 10px; }
.xp-level-badge { width: 36px; height: 36px; border-radius: 50%; background: var(--gld); color: var(--black); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; font-family: 'Bebas Neue', sans-serif; flex-shrink: 0; }
.xp-detail { flex: 1; }
.xp-label { font-size: 11px; color: var(--text2); display: flex; justify-content: space-between; }

/* Streak card */
.streak-card { background: rgba(200,155,60,.08); border: 1px solid rgba(200,155,60,.15); border-radius: var(--radius-md); padding: 12px; }
.streak-top { display: flex; align-items: center; gap: 8px; }
.streak-flame { font-size: 20px; }
.streak-num { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--gld); line-height: 1; }
.streak-label { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; }
.streak-bar { display: flex; gap: 3px; margin-top: 6px; }
.streak-dot { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); }
.streak-dot.done { background: var(--gld); }

/* Week nav buttons */
.weeks-grid { display: grid; gap: 2px; padding: 0 8px 8px; }
.week-btn { background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--text2); padding: 6px 10px; font-size: 11px; font-family: 'DM Sans', sans-serif; cursor: pointer; text-align: left; transition: all .15s; display: flex; align-items: center; justify-content: space-between; }
.week-btn:hover { border-color: var(--border2); color: var(--text); }
.week-btn.active { border-color: rgba(200,155,60,.3); background: rgba(200,155,60,.08); color: var(--gld); }
.week-pct { font-size: 10px; color: var(--text3); }

/* Calendar / 30-day journey */
.calendar-view { }
.week-section { margin-bottom: 24px; }
.week-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--text2); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.week-theme { font-size: 10px; color: var(--gld); background: rgba(200,155,60,.08); border: 1px solid rgba(200,155,60,.12); padding: 2px 8px; border-radius: 20px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
@media(max-width:600px) { .days-grid { grid-template-columns: repeat(4, 1fr); } }
.day-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 8px; cursor: pointer; transition: all .15s; text-align: center; position: relative; }
.day-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.day-card.completed { border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.06); }
.day-card.today { border-color: rgba(200,155,60,.3); background: rgba(200,155,60,.08); box-shadow: 0 0 16px rgba(200,155,60,.08); }
.day-card.locked { opacity: .35; cursor: not-allowed; }
.day-card.locked:hover { transform: none; border-color: var(--border); }
.day-num { font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 1; color: var(--text2); }
.day-card.today .day-num { color: var(--gld); }
.day-card.completed .day-num { color: var(--green-light); }
.day-name { font-size: 9px; color: var(--text3); margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }
.day-check { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; background: var(--green-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; color: #000; font-weight: 700; }

/* Achievement row */
.achievement { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.achievement:last-child { border-bottom: none; }
.ach-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(200,155,60,.08); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ach-name { font-size: 12px; font-weight: 500; }
.ach-desc { font-size: 11px; color: var(--text3); }
.ach-points { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gld); white-space: nowrap; }

/* Chord mastery bars */
.skill-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.skill-bar-label { font-size: 12px; min-width: 28px; font-family: 'JetBrains Mono', monospace; color: var(--gld); }
.skill-bar-track { flex: 1; height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 3px; transition: width 1s cubic-bezier(0.4,0,0.2,1); }
.skill-bar-pct { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text3); min-width: 32px; text-align: right; }

/* Challenge banner */
.challenge-banner { background: linear-gradient(135deg, rgba(167,139,250,.08) 0%, rgba(200,155,60,.08) 100%); border: 1px solid rgba(167,139,250,.15); border-radius: var(--radius-lg); padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.challenge-icon { font-size: 32px; }
.challenge-text { flex: 1; min-width: 140px; }
.challenge-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: .5px; }
.challenge-desc { font-size: 12px; color: var(--text2); margin-top: 2px; }
.challenge-reward { background: var(--gld); color: var(--black); padding: 6px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 12px; white-space: nowrap; }

/* Card component for dash */
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.dash-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-card-title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); font-weight: 500; }
.dash-card-icon { font-size: 16px; }

/* Dashboard grid container */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:600px) { .dash-grid { grid-template-columns: 1fr; } }
@media(min-width:1024px) { .dash-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* Progression progress bar */
.prog-bar { height: 5px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--gld); border-radius: 3px; transition: width .6s cubic-bezier(0.4,0,0.2,1); }
.prog-fill.green { background: var(--green-light); }
.prog-fill.blue { background: var(--blue-light); }
.prog-fill.purple { background: #a78bfa; }

/* Practice graph */
.practice-graph { display: flex; align-items: flex-end; gap: 8px; height: 80px; padding-top: 8px; }

/* ===== Reduced Motion ===== */
@media(prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-particle { display: none; }
}
