/**
 * ChordMaster - Dark Studio Theme
 * Professional music-oriented dashboard aesthetic
 */

/* ========================================
   CSS Variables & Theme
   ======================================== */
:root {
    /* Dark Studio Palette */
    --bg-primary: #0d0d0f;
    --bg-secondary: #151518;
    --bg-tertiary: #1c1c21;
    --bg-card: #1e1e24;
    --bg-hover: #252530;

    /* Text Colors */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Accent Colors - Electric */
    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --accent-success: #22c55e;
    --accent-warning: #eab308;
    --accent-error: #ef4444;
    --accent-info: #3b82f6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-card: linear-gradient(145deg, #1e1e24 0%, #151518 100%);

    /* Spacing */
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { color: var(--text-secondary); }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--accent-secondary); }

/* ========================================
   Layout - App Container
   ======================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   Sidebar Navigation
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 0.25rem;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.nav-item-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.nav-item.active .nav-item-icon {
    opacity: 1;
}

/* Sidebar User Profile */
.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-level {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================
   Main Content Area
   ======================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.stat-icon {
    font-size: 1.25rem;
}

.stat-value {
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 2rem;
}

/* Page Content - Tab switching */
.page-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-content.active {
    display: block;
}

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

/* ========================================
   Cards & Panels
   ======================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ========================================
   Practice Area
   ======================================== */
.practice-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

.practice-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Play Button Area */
.play-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.play-button {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    position: relative;
}

.play-button::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--accent-glow), var(--shadow-lg);
}

.play-button:active {
    transform: scale(0.98);
}

.play-button svg {
    width: 50px;
    height: 50px;
    fill: white;
    margin-left: 6px;
}

.play-button.playing svg {
    animation: bounce 0.6s ease infinite;
}

.play-hint {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Chord Selection Grid */
.chord-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.chord-btn {
    padding: 1.25rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.chord-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.chord-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chord-btn.correct {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--accent-success);
    animation: correctPulse 0.5s ease;
}

.chord-btn.incorrect {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--accent-error);
    animation: shake 0.4s ease;
}

.chord-btn .chord-type {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 400;
}

/* ========================================
   Sidebar Panel (Progress, Daily Goal)
   ======================================== */
.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Radial Progress */
.progress-ring-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}

.progress-ring {
    position: relative;
    width: 160px;
    height: 160px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 12;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 0.8s ease;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Streak Display */
.streak-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin: 0 1.5rem;
}

.streak-icon {
    font-size: 1.75rem;
}

.streak-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-warning);
}

.streak-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Skill Tree */
.skill-tree {
    padding: 1rem 1.5rem;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.level-item:last-child {
    border-bottom: none;
}

.level-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.level-item.unlocked .level-icon {
    background: var(--gradient-primary);
}

.level-item.locked .level-icon {
    opacity: 0.4;
}

.level-item.current .level-icon {
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.level-info {
    flex: 1;
}

.level-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.level-item.locked .level-name {
    color: var(--text-muted);
}

.level-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.level-progress {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ========================================
   Feedback & Notifications
   ======================================== */
.feedback-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.feedback-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    max-width: 400px;
}

.feedback-overlay.active .feedback-card {
    transform: scale(1);
}

.feedback-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.feedback-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feedback-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.xp-earned {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    font-weight: 600;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* ========================================
   Forms & Inputs
   ======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ========================================
   Animations
   ======================================== */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

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

@keyframes xpFloat {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-40px); }
}

.xp-popup {
    position: fixed;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    pointer-events: none;
    animation: xpFloat 1s ease forwards;
    z-index: 1001;
}

/* ========================================
   Modal / Auth Forms
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-muted);
}

/* ========================================
   Daily Progress Card (New)
   ======================================== */
.daily-progress-card {
    padding: 1.25rem;
}

.daily-progress-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.daily-streak {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
}

.streak-fire {
    font-size: 1.25rem;
}

.streak-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.daily-info {
    flex: 1;
}

.daily-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.daily-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.daily-goal-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.goal-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.daily-goal-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ========================================
   Level Roadmap (New)
   ======================================== */
.level-roadmap {
    margin-top: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.roadmap-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.roadmap-container {
    position: relative;
}

.roadmap-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 1rem;
}

.roadmap-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

/* Connector line between levels */
.roadmap-connector {
    position: absolute;
    top: 28px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: var(--bg-tertiary);
    z-index: 0;
}

.roadmap-connector.filled {
    background: var(--gradient-primary);
}

/* Level node */
.roadmap-node {
    position: relative;
    z-index: 1;
    margin-bottom: 0.75rem;
}

.node-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Completed level */
.roadmap-level.completed .node-circle {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.roadmap-level.completed .node-circle svg {
    width: 24px;
    height: 24px;
}

/* Current level */
.roadmap-level.current .node-circle {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow), 0 0 0 4px rgba(139, 92, 246, 0.2);
    animation: currentPulse 2s ease-in-out infinite;
}

@keyframes currentPulse {
    0%, 100% { box-shadow: 0 4px 20px var(--accent-glow), 0 0 0 4px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 4px 30px var(--accent-glow), 0 0 0 8px rgba(139, 92, 246, 0.1); }
}

.current-level-num {
    font-size: 1.5rem;
}

/* Progress ring around current level */
.current-progress-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 68px;
    height: 68px;
    z-index: 1;
}

.current-progress-ring svg {
    width: 100%;
    height: 100%;
}

/* Locked level */
.roadmap-level.locked .node-circle {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 2px dashed rgba(255, 255, 255, 0.15);
}

/* Pro locked level */
.roadmap-level.pro .node-circle {
    background: linear-gradient(135deg, #1a1a2e, #252540);
    border: 2px solid var(--accent-primary);
    cursor: pointer;
}

.roadmap-level.pro:hover .node-circle {
    box-shadow: 0 0 20px var(--accent-glow);
}

.crown-icon {
    font-size: 1.25rem;
}

/* Level info */
.roadmap-info {
    text-align: center;
    max-width: 120px;
}

.roadmap-level-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pro-tag {
    font-size: 0.6rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-weight: 600;
}

.roadmap-chords {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.roadmap-progress-text {
    font-size: 0.7rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.roadmap-xp-needed {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Gradient definitions for SVG */
.roadmap-container svg defs {
    position: absolute;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .practice-section {
        grid-template-columns: 1fr;
    }

    .sidebar-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-panel > .card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .main-content {
        margin-left: 0;
    }

    .main-header {
        padding: 0 1rem;
    }

    .content-area {
        padding: 1rem;
    }

    .chord-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        display: none;
    }

    /* Roadmap responsive */
    .level-roadmap {
        padding: 1rem;
        margin-top: 1rem;
    }

    .roadmap-track {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .roadmap-level {
        flex-direction: row;
        max-width: 100%;
        padding: 0.75rem 0;
        border-left: 3px solid var(--bg-tertiary);
        margin-left: 28px;
        padding-left: 1.5rem;
    }

    .roadmap-level.completed {
        border-left-color: var(--accent-success);
    }

    .roadmap-level.current {
        border-left-color: var(--accent-primary);
    }

    .roadmap-connector {
        display: none;
    }

    .roadmap-node {
        margin-bottom: 0;
        margin-right: 1rem;
        position: absolute;
        left: -30px;
    }

    .node-circle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .current-progress-ring {
        width: 56px;
        height: 56px;
        top: -6px;
        left: -6px;
    }

    .roadmap-info {
        text-align: left;
        max-width: 100%;
    }

    .roadmap-level-name {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .practice-section {
        gap: 1rem;
    }

    .play-area {
        padding: 2rem 1rem;
    }

    .play-button {
        width: 100px;
        height: 100px;
    }

    .play-button svg {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--accent-success); }
.text-error { color: var(--accent-error); }
.text-warning { color: var(--accent-warning); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
