* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    min-height: 100vh;
}

/* Left-Handed Mode - Global Fretboard Flip */
body.lefty-mode .fretboard-basic,
body.lefty-mode .scale-fretboard-basic,
body.lefty-mode .scale-fretboard,
body.lefty-mode .caged-fretboard,
body.lefty-mode .fretboard-container svg,
body.lefty-mode .fretboard-display svg,
body.lefty-mode .chord-diagram,
body.lefty-mode canvas.fretboard,
body.lefty-mode .scale-fretboard-display,
body.lefty-mode .scale-fretboard-container {
    transform: scaleX(-1);
}

/* Keep ALL text readable when flipped - flip it back */
body.lefty-mode .string-label,
body.lefty-mode .fret-number-basic,
body.lefty-mode .fret-number,
body.lefty-mode .string-name,
body.lefty-mode .fretboard-basic text,
body.lefty-mode .scale-fretboard text,
body.lefty-mode .scale-fretboard-basic text,
body.lefty-mode .caged-fretboard text,
body.lefty-mode svg text {
    transform: scaleX(-1) !important;
}

/* Under Construction Badge */
.under-construction-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 9999;
}

.badge-main {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

.construction-icon {
    font-size: 1.2rem;
}

.construction-text {
    letter-spacing: 1px;
}

.badge-subtitle {
    background: rgba(255, 165, 0, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(255, 165, 0, 0.3);
    white-space: nowrap;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
    }
}

/* Left-Handed Mode Toggle */
.lefty-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #6B46C1, #553C9A);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.lefty-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.6);
}

.lefty-toggle.active {
    background: linear-gradient(135deg, #9F7AEA, #805AD5);
    box-shadow: 0 4px 15px rgba(159, 122, 234, 0.6);
}

.lefty-icon {
    font-size: 1.2rem;
}

/* Feedback Button */
.feedback-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4169E1, #3151B1);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.6);
}

.feedback-button span:first-child {
    font-size: 1.2rem;
}

/* Feedback Modal */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.feedback-modal.active {
    display: flex;
}

.feedback-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.feedback-modal-content h2 {
    color: #4169E1;
    margin-bottom: 0.5rem;
}

.feedback-modal-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.feedback-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.feedback-close:hover {
    color: #333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .under-construction-badge {
        top: 10px;
        right: 10px;
    }

    .badge-main {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .construction-icon {
        font-size: 1rem;
    }

    .badge-subtitle {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .lefty-toggle {
        bottom: 15px;
        left: 15px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .lefty-text {
        display: none;
    }

    .lefty-icon {
        font-size: 1.5rem;
    }

    .feedback-button {
        bottom: 15px;
        right: 15px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .feedback-text {
        display: none;
    }

    .feedback-button span:first-child {
        font-size: 1.5rem;
    }

    .feedback-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Header Styles - REMOVED */
header {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1a1a1a;
}

.contact-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #333333;
}

/* Main Content */
main {
    padding: 0 2rem 2rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.25rem;
    color: #666666;
}

/* Tools Grid - Pedalboard Layout */
/* Back to Categories Button */
.back-to-categories {
    text-align: center;
    margin: 2rem auto 1rem;
    max-width: 1400px;
}

.back-btn {
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
    background: linear-gradient(135deg, #9B3C3C 0%, #7B2C2C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Category Grid - Fixed width pedals, no stretching */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 220px);
    gap: 2rem;
    margin-bottom: 3rem;
    width: fit-content;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 2rem;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 1px, transparent 1px),
        linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 15px 15px, 100% 100%;
    background-position: 0 0, 0 0;
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 8px rgba(0, 0, 0, 0.8);
    border: 4px solid #3a3a3a;
    position: relative;
    justify-content: center;
}

/* Category Card Styling - EXACT copy of tool cards */
.category-card {
    background:
        linear-gradient(to bottom,
            #e8e8e8 0%,
            #e8e8e8 55%,
            #d8d8d8 55%,
            #c8c8c8 100%
        );
    border: 3px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem 1.25rem 7rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: visible;
    min-height: 320px;
    aspect-ratio: 2 / 3;
}

.category-card[data-category="practice"] {
    background: linear-gradient(to bottom, #dff4e8 0%, #dff4e8 55%, #cfe4d8 55%, #bfd4c8 100%);
}

.category-card[data-category="theory"] {
    background: linear-gradient(to bottom, #e8e0f4 0%, #e8e0f4 55%, #d8d0e4 55%, #c8c0d4 100%);
}

.category-card[data-category="create"] {
    background: linear-gradient(to bottom, #fce8dd 0%, #fce8dd 55%, #ecd8cd 55%, #dcc8bd 100%);
}

.category-card[data-category="planner"] {
    background: linear-gradient(to bottom, #fff8e1 0%, #fff8e1 55%, #ffe8b1 55%, #ffd891 100%); /* premium gold */
    position: relative;
    box-shadow:
        0 8px 16px rgba(255, 193, 7, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Premium badge for AI category using pedal-model::after */
.category-card[data-category="planner"] .pedal-model::after {
    content: 'AI';
    position: absolute;
    top: -0.5rem;
    left: -2.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #1a1a1a;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.5);
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Add subtle glow animation on hover */
.category-card[data-category="planner"]:hover {
    box-shadow:
        0 12px 32px rgba(255, 193, 7, 0.4),
        0 0 20px rgba(255, 193, 7, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-6px) scale(1.02);
}

/* Horizontal line at 55% - exactly like tool cards */
.category-card::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: 55%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #2a2a2a 10%,
        #2a2a2a 90%,
        transparent
    );
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 5;
}

/* Top left screw - exactly like tool cards */
.category-card::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-image:
        linear-gradient(90deg, transparent 40%, #1a1a1a 45%, #1a1a1a 55%, transparent 60%),
        radial-gradient(circle at 30% 30%, #999, #333);
    border: 1px solid #1a1a1a;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(255, 255, 255, 0.3);
    top: 10px;
    left: 10px;
    z-index: 10;
}

/* Model number styling - exactly like tool cards */
.category-card .pedal-model {
    position: absolute;
    top: 8px;
    right: 30px;
    font-size: 0.65rem;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: 0.15em;
    font-family: 'Futura', 'Century Gothic', 'Arial Narrow', sans-serif;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    z-index: 10;
}

/* Top right screw on pedal model - exactly like tool cards */
.category-card .pedal-model::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-image:
        linear-gradient(90deg, transparent 40%, #1a1a1a 45%, #1a1a1a 55%, transparent 60%),
        radial-gradient(circle at 30% 30%, #999, #333);
    border: 1px solid #1a1a1a;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(255, 255, 255, 0.3);
    top: 2px;
    right: -20px;
    z-index: 10;
}

/* Icon styling - exactly like tool cards */
.category-icon {
    width: 50px;
    height: 50px;
    color: #1a1a1a;
    stroke-width: 1.5;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    margin: 0 auto;
}

/* Header container - exactly like tool cards */
.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

/* Border around header - exactly like tool cards */
.category-header::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: -0.75rem;
    right: -0.75rem;
    bottom: -0.75rem;
    background: transparent;
    border: 2px solid #2a2a2a;
    border-radius: 4px;
    pointer-events: none;
    z-index: -1;
}

/* Header text - exactly like tool cards */
.category-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    line-height: 1.2;
    text-align: center;
    min-height: 2.64rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* Status badge - red background like tool cards */
.category-status {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Description text - centered horizontally and vertically */
.category-card p {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover effect - exactly like tool cards */
.category-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.category-card:hover .category-icon {
    transform: rotate(15deg);
}

/* Tools Grid - Fixed width pedals, no stretching */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 220px);
    gap: 2rem;
    margin-bottom: 3rem;
    width: fit-content;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 2rem;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 1px, transparent 1px),
        linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 15px 15px, 100% 100%;
    background-position: 0 0, 0 0;
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 8px rgba(0, 0, 0, 0.8);
    border: 4px solid #3a3a3a;
    position: relative;
    justify-content: center;
}

/* Pedalboard texture/details */
.tools-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    pointer-events: none;
    border-radius: 8px;
}

.tool-card {
    background:
        linear-gradient(to bottom,
            #e8e8e8 0%,
            #e8e8e8 55%,
            #d8d8d8 55%,
            #c8c8c8 100%
        );
    border: 3px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem 1.25rem 7rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: visible;
    min-height: 320px;
    aspect-ratio: 2 / 3;
}

/* Subtle pastel colors for each pedal - arranged so similar hues aren't adjacent */
.tool-card[data-tool="metronome"] {
    background: linear-gradient(to bottom, #dff4e8 0%, #dff4e8 55%, #cfe4d8 55%, #bfd4c8 100%); /* mint green */
}

.tool-card[data-tool="tuner"] {
    background: linear-gradient(to bottom, #ffe0ec 0%, #ffe0ec 55%, #efd0dc 55%, #dfc0cc 100%); /* pink */
}

.tool-card[data-tool="chord-basic"] {
    background: linear-gradient(to bottom, #deeef8 0%, #deeef8 55%, #cedee8 55%, #beced8 100%); /* sky blue */
}

.tool-card[data-tool="scales"] {
    background: linear-gradient(to bottom, #fce8dd 0%, #fce8dd 55%, #ecd8cd 55%, #dcc8bd 100%); /* peach */
}

.tool-card[data-tool="caged"] {
    background: linear-gradient(to bottom, #e8e0f4 0%, #e8e0f4 55%, #d8d0e4 55%, #c8c0d4 100%); /* lavender */
}

.tool-card[data-tool="progressions"] {
    background: linear-gradient(to bottom, #fff8dd 0%, #fff8dd 55%, #efe8cd 55%, #dfd8bd 100%); /* yellow */
}

.tool-card[data-tool="note-finder"] {
    background: linear-gradient(to bottom, #ddf4f0 0%, #ddf4f0 55%, #cde4e0 55%, #bdd4d0 100%); /* teal */
}

.tool-card[data-tool="key-finder"] {
    background: linear-gradient(to bottom, #fff0dd 0%, #fff0dd 55%, #efe0cd 55%, #dfd0bd 100%); /* warm cream */
}

.tool-card[data-tool="tab-finder"] {
    background: linear-gradient(to bottom, #e8ddff 0%, #e8ddff 55%, #d8cdff 55%, #c8bdff 100%); /* light purple */
}

.tool-card[data-tool="rhythm"] {
    background: linear-gradient(to bottom, #ffe4e0 0%, #ffe4e0 55%, #efd4d0 55%, #dfc4c0 100%); /* coral */
}

.tool-card[data-tool="practice-log"] {
    background: linear-gradient(to bottom, #e0e8ff 0%, #e0e8ff 55%, #d0d8ef 55%, #c0c8df 100%); /* periwinkle */
}

.tool-card[data-tool="capo"] {
    background: linear-gradient(to bottom, #e8f4dd 0%, #e8f4dd 55%, #d8e4cd 55%, #c8d4bd 100%); /* sage */
}

.tool-card[data-tool="profile-builder"] {
    background: linear-gradient(to bottom, #fff8e1 0%, #fff8e1 55%, #ffe8b1 55%, #ffd891 100%); /* premium gold */
    box-shadow:
        0 8px 16px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.tool-card[data-tool="practice-planner"] {
    background: linear-gradient(to bottom, #fff8e1 0%, #fff8e1 55%, #ffe8b1 55%, #ffd891 100%); /* premium gold */
    box-shadow:
        0 8px 16px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Premium hover effects for AI tools */
.tool-card[data-tool="profile-builder"]:hover,
.tool-card[data-tool="practice-planner"]:hover {
    box-shadow:
        0 12px 24px rgba(255, 193, 7, 0.3),
        0 0 15px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Horizontal line separating top and bottom sections - positioned at 55% */
.tool-card::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: 55%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #2a2a2a 10%,
        #2a2a2a 90%,
        transparent
    );
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 5;
}


/* Model number (top right) - Boss style */
.pedal-model {
    position: absolute;
    top: 8px;
    right: 30px;
    font-size: 0.65rem;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: 0.15em;
    font-family: 'Futura', 'Century Gothic', 'Arial Narrow', sans-serif;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    z-index: 10;
}

/* Top left screw only */
.tool-card::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-image:
        linear-gradient(90deg, transparent 40%, #1a1a1a 45%, #1a1a1a 55%, transparent 60%),
        radial-gradient(circle at 30% 30%, #999, #333);
    border: 1px solid #1a1a1a;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(255, 255, 255, 0.3);
    top: 10px;
    left: 10px;
    z-index: 10;
}

/* Top right screw using pedal-model::before */
.pedal-model::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-image:
        linear-gradient(90deg, transparent 40%, #1a1a1a 45%, #1a1a1a 55%, transparent 60%),
        radial-gradient(circle at 30% 30%, #999, #333);
    border: 1px solid #1a1a1a;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(255, 255, 255, 0.3);
    top: 2px;
    right: -20px;
    z-index: 10;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.tool-card:hover .tool-icon {
    transform: rotate(15deg);
}

/* Top section: knobs area (icon + title + status) */
.tool-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

/* Boss-style control panel line around the top section */
.tool-header::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: -0.75rem;
    right: -0.75rem;
    bottom: -0.75rem;
    background: transparent;
    border: 2px solid #2a2a2a;
    border-radius: 4px;
    pointer-events: none;
    z-index: -1;
}

.tool-icon {
    width: 50px;
    height: 50px;
    color: #1a1a1a;
    stroke-width: 1.5;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    margin: 0 auto;
}

.tool-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    line-height: 1.2;
    text-align: center;
    min-height: 2.64rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-status {
    background: radial-gradient(circle at 30% 30%, #ff4444, #cc0000);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tool-status.beginner {
    background: radial-gradient(circle at 30% 30%, #4ecdc4, #44a08d);
}

.tool-status.intermediate {
    background: radial-gradient(circle at 30% 30%, #ffa500, #ff8c00);
}

.tool-status.practice {
    background: radial-gradient(circle at 30% 30%, #4169e1, #1e40af);
}

.tool-status.theory {
    background: radial-gradient(circle at 30% 30%, #9b59b6, #8e44ad);
}

.tool-status.progress {
    background: radial-gradient(circle at 30% 30%, #2ecc71, #27ae60);
}

.tool-status.utility {
    background: radial-gradient(circle at 30% 30%, #95a5a6, #7f8c8d);
}

/* Bottom section: footswitch button with text inside */
.tool-card p {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    height: 5rem;
    border-radius: 6px;
    background: radial-gradient(ellipse at 40% 40%, #2a2a2a, #1a1a1a);
    border: 3px solid #1a1a1a;
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        inset 0 -2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0;

    /* Text styling inside footswitch */
    color: #ffffff;
    font-size: 0.7rem;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.tool-card:active p {
    transform: translateY(2px);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Tool Content Areas */
.tool-content {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.tool-content.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-panel {
    background: linear-gradient(145deg, #e8e8e8 0%, #d5d5d5 100%);
    border: 3px solid #2a2a2a;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(145deg, #e8e8e8 0%, #d5d5d5 100%);
    border-radius: 16px 16px 0 0;
    border-bottom: 2px solid #2a2a2a;
    position: relative;
}

.panel-header h2 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.panel-header .pedal-model {
    position: absolute;
    top: 1.5rem;
    right: 5rem;
    font-size: 0.8rem;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: 0.15em;
    font-family: 'Futura', 'Century Gothic', 'Arial Narrow', sans-serif;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.close-tool {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.close-tool:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Metronome Styles */
.metronome-container {
    padding: 2rem;
    background: linear-gradient(145deg, #e8e8e8 0%, #d5d5d5 100%);
}

.metronome-display {
    text-align: center;
    margin-bottom: 2rem;
}

.beat-indicator {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #333333;
    border: 3px solid #555555;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
}

.beat-indicator.active {
    background-color: #8B2C2C;
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 44, 44, 0.6);
}

.beat-indicator.accent {
    background-color: #FF6B35;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

.tempo-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
}

.metronome-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.tempo-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tempo-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #8B2C2C;
    background-color: transparent;
    color: #8B2C2C;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tempo-btn:hover {
    background-color: #8B2C2C;
    color: #ffffff;
}

.tempo-slider {
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background-color: #333333;
    outline: none;
    appearance: none;
}

.tempo-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #8B2C2C;
    cursor: pointer;
}

.tempo-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #8B2C2C;
    cursor: pointer;
    border: none;
}

.main-controls {
    display: flex;
    gap: 1rem;
}

.play-btn, .reset-btn, .tap-tempo-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    color: #ffffff;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.play-btn.playing {
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
}

.play-btn.playing:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 44, 44, 0.4);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tap-tempo-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.tap-tempo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tap-tempo-btn.tapping {
    animation: tapPulse 0.3s ease;
}

@keyframes tapPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
}

.time-signature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-signature label {
    font-weight: 600;
    color: #1a1a1a;
}

.time-signature select {
    padding: 0.5rem;
    border: 1px solid #555555;
    border-radius: 4px;
    background-color: #333333;
    color: #ffffff;
    font-size: 1rem;
}

/* Speed Trainer Styles */
.speed-trainer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.speed-trainer h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-size: 1.3rem;
}

.trainer-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.input-group input {
    padding: 0.5rem;
    border: 2px solid #2a2a2a;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1a1a1a;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #FF6B35;
}

.trainer-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.trainer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #ff8c5a 0%, #FF6B35 100%);
}

.trainer-btn.active {
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    box-shadow: 0 4px 15px rgba(139, 44, 44, 0.3);
}

.trainer-btn.active:hover {
    background: linear-gradient(135deg, #6B1C1C 0%, #8B2C2C 100%);
}

.trainer-status {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem;
    background-color: #f5f5f5;
    color: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    display: none;
}

.trainer-status:not(:empty) {
    display: flex;
}

/* Tuner Styles */
.tuner-container {
    padding: 2rem;
}

.tuning-selector-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tuning-selector-container label {
    display: block;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tuning-select {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #2a2a2a;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    color: #1a1a1a;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.tuning-select:hover {
    border-color: #8B2C2C;
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tuning-select:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow:
        0 0 0 3px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.selected-tuning-display {
    background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid #8B2C2C;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow:
        0 8px 16px rgba(139, 44, 44, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tuning-name {
    color: #8B2C2C;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-align: center;
}

.tuning-notes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.string-note {
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    border: 2px solid #2a2a2a;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tuning-desc {
    color: #4a4a4a;
    font-size: 0.95rem;
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

.tuner-display {
    text-align: center;
    margin-bottom: 2rem;
}

.note-display {
    font-size: 4rem;
    font-weight: bold;
    color: #8B2C2C;
    margin-bottom: 0.5rem;
}

.frequency-display {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 2rem;
}

.tuning-meter {
    position: relative;
    width: 300px;
    height: 60px;
    margin: 0 auto 2rem;
    background-color: #333333;
    border-radius: 30px;
    overflow: hidden;
}

.meter-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.meter-mark {
    width: 2px;
    height: 20px;
    background-color: #666666;
}

.meter-mark.center {
    height: 30px;
    background-color: #4CAF50;
    width: 3px;
}

.meter-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 40px;
    background-color: #8B2C2C;
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.2s ease;
    transform-origin: center;
}

.tuning-status {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.tuner-controls {
    text-align: center;
}

.tuner-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.tuner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.tuner-btn.active {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.string-reference {
    background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #2a2a2a;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.string-reference h4 {
    color: #1a1a1a;
    margin-bottom: 1.25rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

.string-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.string-ref {
    background-color: #333333;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    color: #cccccc;
}

.tuning-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.tuning-list::-webkit-scrollbar {
    width: 8px;
}

.tuning-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.tuning-list::-webkit-scrollbar-thumb {
    background: #8B2C2C;
    border-radius: 4px;
}

.tuning-list::-webkit-scrollbar-thumb:hover {
    background: #FF6B35;
}

.tuning-item {
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 2px solid #d0d0d0;
    border-left: 4px solid #8B2C2C;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.tuning-item:hover {
    border-left-color: #FF6B35;
    transform: translateX(2px);
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tuning-item strong {
    color: #8B2C2C;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tuning-use {
    color: #4a4a4a;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Basic Chord Visualizer Styles */
.chord-visualiser-container {
    padding: 2rem;
}

.chord-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Random Chord Button Group - Vertically aligned with dropdowns */
.random-btn-group {
    justify-content: flex-end;
}

/* Random Chord Button - Maroon styling to match tool aesthetic */
.random-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 44, 44, 0.5);
}

.random-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 44, 44, 0.6);
}

.random-btn:active {
    transform: translateY(0);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.control-group label {
    font-weight: 600;
    color: #8B2C2C;
}

.control-group select,
.control-group input,
.control-group input[type="text"],
.control-group input[type="number"] {
    padding: 0.5rem;
    border: 1px solid #555555;
    border-radius: 4px;
    background-color: #333333;
    color: #ffffff;
    font-size: 1rem;
}

.control-group input[type="text"]:focus,
.control-group input[type="number"]:focus {
    outline: none;
    border-color: #8B2C2C;
    background-color: #3a3a3a;
}

.chord-info-display {
    text-align: center;
    margin-bottom: 2rem;
}

.chord-info-display h3 {
    color: #8B2C2C;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.chord-info-display p {
    color: #999;
    font-size: 1.1rem;
}

.fretboard-basic {
    position: relative;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px 10px 40px 10px;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.nut-basic {
    position: absolute;
    left: 8px;
    top: 15px;
    bottom: 15px;
    width: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.nut-basic::after {
    content: '';
    position: absolute;
    right: -72px;
    top: -5px;
    bottom: -5px;
    width: 2px;
    background: #555;
    border-radius: 1px;
}

.string-labels {
    position: absolute;
    left: -30px;
    top: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.string-label {
    background: #8b4513 !important;
    color: #f4f4f4 !important;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.caged-fretboard .string-label {
    background: #8b4513 !important;
    color: #f4f4f4 !important;
    line-height: 1 !important;
}

.frets-basic {
    display: flex;
    margin-left: 20px;
}

.fret-basic {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 80px;
    height: 200px;
    position: relative;
    border-right: 2px solid #444;
}

.fret-basic[data-fret="0"] {
    width: 60px;
    border-right: none;
}

.fret-number-basic {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: bold;
    color: #999;
    background: transparent;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.string-basic {
    height: 2px;
    background: #555;
    border-radius: 1px;
    position: relative;
    box-shadow: none;
}

.string-basic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.string-basic.fretted::before {
    background: #4A90E2;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.8);
}

.string-basic.open::before {
    background: transparent;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.6);
}

.string-basic.muted::before {
    background: transparent;
    border: 2px solid #999;
    box-shadow: none;
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    font-weight: bold;
}

/* Backing Track Player */
.backing-track-player {
    max-width: 600px;
    margin: 2rem auto 1.5rem;
    padding: 1rem;
    background: rgba(139, 44, 44, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(139, 44, 44, 0.2);
}

.backing-track-player h4 {
    margin: 0 0 1rem 0;
    color: #8B2C2C;
    font-size: 1.1rem;
    text-align: center;
}

.backing-track-player iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 8px;
}

.track-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.track-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.track-btn:hover {
    background: linear-gradient(135deg, #A33C3C 0%, #7B2C2C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 44, 44, 0.4);
}

.track-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.track-progress {
    margin: 1rem 0;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8B2C2C 0%, #A33C3C 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(139, 44, 44, 0.5);
}

.track-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.player-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-btn:hover {
    background: linear-gradient(135deg, #9B3C3C 0%, #7B2C2C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.player-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-btn svg {
    flex-shrink: 0;
}

.player-btn-primary {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.player-btn-primary:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

.chord-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: transparent;
    border-radius: 8px;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #4A90E2;
}

.legend-dot.fretted {
    background: #4A90E2;
}

.legend-dot.open {
    background: transparent;
    border: 2px solid #4A90E2;
}

.legend-dot.muted {
    background: transparent;
    border: 2px solid #999;
    position: relative;
}

.legend-dot.muted::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 10px;
    font-weight: bold;
}

.legend-dot.scale-note-legend {
    background: #4A90E2;
    border: 2px solid #4A90E2;
}

.legend-dot.scale-root-legend {
    background: #E84855;
    border: 2px solid #E84855;
}

/* Scale Visualizer Styles */
.scale-visualiser-container {
    padding: 1.5rem;
}

.scale-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.scale-info-display {
    text-align: center;
    margin-bottom: 1rem;
}

.scale-info-display h3 {
    color: #8B2C2C;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.scale-info-display p {
    color: #999;
    font-size: 1.1rem;
}

.custom-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-range-inputs label {
    margin-bottom: 0;
}

.custom-range-inputs input {
    margin-bottom: 0;
}

.scale-fretboard-container {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.scale-fretboard-display {
    overflow-x: auto;
}

.scale-fretboard-basic {
    position: relative;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px 10px 40px 10px;
    margin: 0 auto;
    min-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.scale-note::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4A90E2;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.8);
    z-index: 1;
}

.scale-note {
    position: relative;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Open string scale notes (fret 0) */
.string-basic[data-fret="0"].scale-note::before {
    background: transparent;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.6);
}

.string-basic[data-fret="0"].scale-note {
    color: #4A90E2;
}

.scale-root::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E84855;
    border: 2px solid #E84855;
    box-shadow: 0 0 12px rgba(232, 72, 85, 0.8);
    z-index: 1;
}

.scale-root {
    position: relative;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Open string root notes (fret 0) */
.string-basic[data-fret="0"].scale-root::before {
    background: transparent;
    border: 2px solid #E84855;
    box-shadow: 0 0 12px rgba(232, 72, 85, 0.6);
}

.string-basic[data-fret="0"].scale-root {
    color: #E84855;
}

.scale-note-active {
    background: #4A90E2 !important;
    border: 2px solid #4A90E2 !important;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.8) !important;
}

.scale-note-root {
    background: #E84855 !important;
    border: 2px solid #E84855 !important;
    box-shadow: 0 0 12px rgba(232, 72, 85, 0.8) !important;
}

/* CAGED System Styles */
.caged-container {
    padding: 2rem;
}

.caged-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.caged-info {
    text-align: center;
    margin-bottom: 2rem;
}

.caged-info h3 {
    color: #8B2C2C;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.caged-info p {
    color: #999;
    font-size: 1.1rem;
}

.caged-fretboard-container {
    overflow-x: auto;
    padding: 1rem 0;
}

.caged-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: transparent;
    border-radius: 8px;
    flex-wrap: wrap;
}

.caged-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot.caged-c {
    background: #E84855;
    border: 2px solid #E84855;
}

.legend-dot.caged-a {
    background: #44D62C;
    border: 2px solid #44D62C;
}

.legend-dot.caged-g {
    background: #FFA500;
    border: 2px solid #FFA500;
}

.legend-dot.caged-e {
    background: #4A90E2;
    border: 2px solid #4A90E2;
}

.legend-dot.caged-d {
    background: #9B59B6;
    border: 2px solid #9B59B6;
}

.caged-fretboard {
    position: relative;
    min-width: 1200px;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px 10px 40px 10px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.caged-fretboard .nut-basic {
    position: absolute;
    left: 8px;
    top: 15px;
    bottom: 15px;
    width: 6px;
    background: #e8e8e8 !important;
    border-radius: 3px;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.caged-fretboard .nut-basic::after {
    content: '' !important;
    position: absolute;
    right: -72px;
    top: -5px;
    bottom: -5px;
    width: 3px;
    background: #999 !important;
    border-radius: 1px;
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.5);
}

.caged-fretboard .frets-basic {
    margin-left: 20px;
    display: flex;
}

.caged-fretboard .fret-basic {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 80px;
    height: 200px;
    position: relative;
    border-right: 3px solid #999 !important;
}

.caged-fretboard .fret-basic[data-fret="0"] {
    width: 60px;
    border-right: none !important;
}

.caged-fretboard .fret-number-basic {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: bold;
    color: #999;
}

.caged-fretboard .string-basic {
    height: 3px !important;
    background: linear-gradient(90deg, #c0c0c0 0%, #808080 50%, #c0c0c0 100%) !important;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* CAGED shape color coding */
.caged-shape-c,
.caged-shape-a,
.caged-shape-g,
.caged-shape-e,
.caged-shape-d {
    position: relative;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.caged-shape-c::before {
    content: '';
    position: absolute;
    top: calc(50% - 6px) !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E84855;
    border: 2px solid #E84855;
    box-shadow: 0 0 12px rgba(232, 72, 85, 0.8);
    z-index: 1;
}

.caged-shape-a::before {
    content: '';
    position: absolute;
    top: calc(50% - 6px) !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #44D62C;
    border: 2px solid #44D62C;
    box-shadow: 0 0 12px rgba(68, 214, 44, 0.8);
    z-index: 1;
}

.caged-shape-g::before {
    content: '';
    position: absolute;
    top: calc(50% - 6px) !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFA500;
    border: 2px solid #FFA500;
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.8);
    z-index: 1;
}

.caged-shape-e::before {
    content: '';
    position: absolute;
    top: calc(50% - 6px) !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4A90E2;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.8);
    z-index: 1;
}

.caged-shape-d::before {
    content: '';
    position: absolute;
    top: calc(50% - 6px) !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #9B59B6;
    border: 2px solid #9B59B6;
    box-shadow: 0 0 12px rgba(155, 89, 182, 0.8);
    z-index: 1;
}

/* Open string CAGED notes (fret 0) - make them hollow */
.string-basic[data-fret="0"].caged-shape-c::before,
.string-basic[data-fret="0"] .caged-shape-c::before {
    background: transparent;
    border: 2px solid #E84855;
    box-shadow: 0 0 12px rgba(232, 72, 85, 0.6);
    top: 50% !important;
}

.string-basic[data-fret="0"].caged-shape-c,
.string-basic[data-fret="0"] .caged-shape-c {
    color: #E84855;
}

.string-basic[data-fret="0"].caged-shape-a::before,
.string-basic[data-fret="0"] .caged-shape-a::before {
    background: transparent;
    border: 2px solid #44D62C;
    box-shadow: 0 0 12px rgba(68, 214, 44, 0.6);
    top: 50% !important;
}

.string-basic[data-fret="0"].caged-shape-a,
.string-basic[data-fret="0"] .caged-shape-a {
    color: #44D62C;
}

.string-basic[data-fret="0"].caged-shape-g::before,
.string-basic[data-fret="0"] .caged-shape-g::before {
    background: transparent;
    border: 2px solid #FFA500;
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.6);
    top: 50% !important;
}

.string-basic[data-fret="0"].caged-shape-g,
.string-basic[data-fret="0"] .caged-shape-g {
    color: #FFA500;
}

.string-basic[data-fret="0"].caged-shape-e::before,
.string-basic[data-fret="0"] .caged-shape-e::before {
    background: transparent;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.6);
    top: 50% !important;
}

.string-basic[data-fret="0"].caged-shape-e,
.string-basic[data-fret="0"] .caged-shape-e {
    color: #4A90E2;
}

.string-basic[data-fret="0"].caged-shape-d::before,
.string-basic[data-fret="0"] .caged-shape-d::before {
    background: transparent;
    border: 2px solid #9B59B6;
    box-shadow: 0 0 12px rgba(155, 89, 182, 0.6);
    top: 50% !important;
}

.string-basic[data-fret="0"].caged-shape-d,
.string-basic[data-fret="0"] .caged-shape-d {
    color: #9B59B6;
}

/* Multi-shape styling - shared notes */
.caged-shape-multi {
    position: relative;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.caged-shape-multi::before {
    content: '';
    position: absolute;
    top: calc(50% - 6px) !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Two-shape combinations */
.caged-multi-a-c::before {
    background: linear-gradient(270deg, #44D62C 50%, #E84855 50%);
    border: 2px solid #999;
}

.caged-multi-a-e::before {
    background: linear-gradient(270deg, #44D62C 50%, #4A90E2 50%);
    border: 2px solid #999;
}

.caged-multi-a-g::before {
    background: linear-gradient(270deg, #FFA500 50%, #44D62C 50%);
    border: 2px solid #999;
}

.caged-multi-a-d::before {
    background: linear-gradient(270deg, #44D62C 50%, #9B59B6 50%);
    border: 2px solid #999;
}

.caged-multi-c-e::before {
    background: linear-gradient(270deg, #E84855 50%, #4A90E2 50%);
    border: 2px solid #999;
}

.caged-multi-c-g::before {
    background: linear-gradient(270deg, #E84855 50%, #FFA500 50%);
    border: 2px solid #999;
}

.caged-multi-c-d::before {
    background: linear-gradient(270deg, #E84855 50%, #9B59B6 50%);
    border: 2px solid #999;
}

.caged-multi-e-g::before {
    background: linear-gradient(270deg, #4A90E2 50%, #FFA500 50%);
    border: 2px solid #999;
}

.caged-multi-d-e::before {
    background: linear-gradient(270deg, #9B59B6 50%, #4A90E2 50%);
    border: 2px solid #999;
}

.caged-multi-d-g::before {
    background: linear-gradient(270deg, #9B59B6 50%, #FFA500 50%);
    border: 2px solid #999;
}

/* Three-shape combinations - split into thirds */
.caged-multi-a-c-e::before {
    background: conic-gradient(from 0deg, #44D62C 0deg 120deg, #E84855 120deg 240deg, #4A90E2 240deg 360deg);
    border: 2px solid #999;
}

.caged-multi-a-c-g::before {
    background: conic-gradient(from 0deg, #44D62C 0deg 120deg, #E84855 120deg 240deg, #FFA500 240deg 360deg);
    border: 2px solid #999;
}

.caged-multi-a-e-g::before {
    background: conic-gradient(from 0deg, #44D62C 0deg 120deg, #4A90E2 120deg 240deg, #FFA500 240deg 360deg);
    border: 2px solid #999;
}

.caged-multi-c-e-g::before {
    background: conic-gradient(from 0deg, #E84855 0deg 120deg, #4A90E2 120deg 240deg, #FFA500 240deg 360deg);
    border: 2px solid #999;
}

.caged-multi-a-d-e::before {
    background: conic-gradient(from 0deg, #44D62C 0deg 120deg, #9B59B6 120deg 240deg, #4A90E2 240deg 360deg);
    border: 2px solid #999;
}

.caged-multi-c-d-e::before {
    background: conic-gradient(from 0deg, #E84855 0deg 120deg, #9B59B6 120deg 240deg, #4A90E2 240deg 360deg);
    border: 2px solid #999;
}

.caged-multi-d-e-g::before {
    background: conic-gradient(from 0deg, #9B59B6 0deg 120deg, #4A90E2 120deg 240deg, #FFA500 240deg 360deg);
    border: 2px solid #999;
}

.caged-multi-a-c-d::before {
    background: conic-gradient(from 0deg, #44D62C 0deg 120deg, #E84855 120deg 240deg, #9B59B6 240deg 360deg);
    border: 2px solid #999;
}

.caged-multi-a-d-g::before {
    background: conic-gradient(from 0deg, #44D62C 0deg 120deg, #9B59B6 120deg 240deg, #FFA500 240deg 360deg);
    border: 2px solid #999;
}

.caged-multi-c-d-g::before {
    background: conic-gradient(from 0deg, #E84855 0deg 120deg, #9B59B6 120deg 240deg, #FFA500 240deg 360deg);
    border: 2px solid #999;
}

/* Four or more shapes - use a multicolor ring pattern */
.caged-multi-a-c-e-g::before,
.caged-multi-a-c-d-e::before,
.caged-multi-a-c-d-g::before,
.caged-multi-a-d-e-g::before,
.caged-multi-c-d-e-g::before,
.caged-multi-a-c-d-e-g::before {
    background: conic-gradient(
        from 0deg,
        #44D62C 0deg 72deg,
        #E84855 72deg 144deg,
        #9B59B6 144deg 216deg,
        #4A90E2 216deg 288deg,
        #FFA500 288deg 360deg
    );
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Arpeggio Styles */
.arpeggio-container {
    padding: 2rem;
}

.arpeggio-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.arpeggio-info {
    text-align: center;
    margin-bottom: 2rem;
}

.arpeggio-info h3 {
    color: #8B2C2C;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.arpeggio-info p {
    color: #999;
    font-size: 1.1rem;
}

.arpeggio-fretboard-container {
    overflow-x: auto;
    padding: 1rem 0;
}

.arpeggio-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: transparent;
    border-radius: 8px;
    flex-wrap: wrap;
}

.arpeggio-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot.arpeggio-root {
    background: #E84855;
    border: 2px solid #E84855;
}

.legend-dot.arpeggio-third {
    background: #4A90E2;
    border: 2px solid #4A90E2;
}

.legend-dot.arpeggio-fifth {
    background: #44D62C;
    border: 2px solid #44D62C;
}

.legend-dot.arpeggio-seventh {
    background: #9B59B6;
    border: 2px solid #9B59B6;
}

.arpeggio-fretboard {
    position: relative;
    min-width: 1200px;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px 10px 40px 10px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.arpeggio-fretboard .nut-basic {
    position: absolute;
    left: 8px;
    top: 15px;
    bottom: 15px;
    width: 6px;
    background: #e8e8e8 !important;
    border-radius: 3px;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.arpeggio-fretboard .frets-basic {
    display: flex;
    margin-left: 20px;
}

.arpeggio-fretboard .fret-basic {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 80px;
    height: 200px;
    position: relative;
    border-right: 2px solid #444;
}

.arpeggio-fretboard .fret-number-basic {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #999;
    font-size: 0.75rem;
    font-weight: 500;
}

.arpeggio-fretboard .string-basic {
    height: 2px;
    background: #555;
    border-radius: 1px;
    position: relative;
    box-shadow: none;
}

/* Arpeggio note styling - matches CAGED pattern */
/* Only apply to fretboard notes, not legend dots */
.string-basic .arpeggio-root::before {
    content: '';
    position: absolute;
    top: calc(50% - 6px) !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E84855;
    border: 2px solid #E84855;
    box-shadow: 0 0 12px rgba(232, 72, 85, 0.8);
    z-index: 1;
}

.string-basic .arpeggio-third::before {
    content: '';
    position: absolute;
    top: calc(50% - 6px) !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4A90E2;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.8);
    z-index: 1;
}

.string-basic .arpeggio-fifth::before {
    content: '';
    position: absolute;
    top: calc(50% - 6px) !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #44D62C;
    border: 2px solid #44D62C;
    box-shadow: 0 0 12px rgba(68, 214, 44, 0.8);
    z-index: 1;
}

.string-basic .arpeggio-seventh::before {
    content: '';
    position: absolute;
    top: calc(50% - 6px) !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #9B59B6;
    border: 2px solid #9B59B6;
    box-shadow: 0 0 12px rgba(155, 89, 182, 0.8);
    z-index: 1;
}

/* Barre Chord Styles */
.barre-container {
    padding: 2rem;
}

.barre-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.fretboard-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
    overflow-x: auto;
}

.barre-fingers {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Chord Queue Section */
.chord-queue-section {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid #444;
}

.chord-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chord-queue-header h4 {
    margin: 0;
    color: #8B2C2C;
    font-size: 1rem;
}

.chord-queue-buttons {
    display: flex;
    gap: 0.5rem;
}

.queue-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.queue-btn.add-btn {
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    color: #ffffff;
}

.queue-btn.add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 44, 44, 0.5);
}

.queue-btn.clear-btn {
    background: #444;
    color: #ccc;
}

.queue-btn.clear-btn:hover {
    background: #555;
}

.chord-queue-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    min-height: 40px;
}

.queue-empty {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

.queue-chord {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0.5rem;
    padding-top: 0.75rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.queue-chord:hover {
    background: #444;
    border-color: #8B2C2C;
}

.queue-chord.active {
    background: #5a2020;
    border-color: #8B2C2C;
    box-shadow: 0 0 8px rgba(139, 44, 44, 0.5);
}

.queue-chord .remove-chord {
    position: absolute;
    top: 2px;
    right: 5px;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1;
}

.queue-chord .remove-chord:hover {
    color: #ff6666;
}

.queue-chord-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.queue-chord-info {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 0.35rem;
}

.queue-arrow {
    color: #666;
    font-size: 1.2rem;
    align-self: center;
}

/* Mini fretboard diagram */
.mini-fretboard {
    background: #222;
    border-radius: 4px;
    padding: 4px 6px;
}

.mini-strings {
    display: flex;
    gap: 3px;
}

.mini-string {
    width: 14px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border-radius: 2px;
    position: relative;
}

.mini-string::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: #666;
}

.mini-muted {
    color: #888;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 1;
}

.mini-barre {
    width: 8px;
    height: 8px;
    background: #8B2C2C;
    border-radius: 50%;
    z-index: 1;
}

.mini-fret {
    font-size: 0.65rem;
    color: #fff;
    background: #8B2C2C;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Barre bar element - traditional barre chord diagram style */
.barre-bar {
    position: absolute;
    width: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #9B3C3C 0%, #8B2C2C 50%, #7B2C2C 100%);
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(139, 44, 44, 0.8), 0 0 20px rgba(139, 44, 44, 0.4);
    z-index: 5;
}

/* Position barre vertically based on which strings it spans */
/* Strings are distributed vertically with space-between across 200px height */
/* String positions: 1(0%), 2(20%), 3(40%), 4(60%), 5(80%), 6(100%) */

.barre-bar[data-string-count="6"][data-first-string="1"] {
    top: -5px;
    bottom: -5px;
}

.barre-bar[data-string-count="5"][data-first-string="2"] {
    top: calc(20% - 5px);
    bottom: -5px;
}

.barre-bar[data-string-count="5"][data-first-string="1"] {
    top: -5px;
    bottom: calc(20% - 5px);
}

.barre-bar[data-string-count="4"][data-first-string="1"] {
    top: -5px;
    bottom: calc(40% - 5px);
}

.barre-bar[data-string-count="4"][data-first-string="2"] {
    top: calc(20% - 5px);
    bottom: calc(20% - 5px);
}

.barre-bar[data-string-count="4"][data-first-string="3"] {
    top: calc(40% - 5px);
    bottom: -5px;
}

/* Notation Helper Styles */
.notation-container {
    padding: 1rem;
}

.notation-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.notation-info {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notation-info p {
    color: #000000;
    font-size: 0.95rem;
    font-weight: normal;
    margin: 0;
}

.notation-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid rgba(139, 44, 44, 0.2);
}

.notation-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.notation-stats .stat-label {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notation-stats .stat-value {
    color: #E84855;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(232, 72, 85, 0.5);
}

.staff-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.75rem auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

#musicStaff {
    max-width: 100%;
    height: auto;
}

.note-info-display {
    text-align: center;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
}

.note-info-display h3 {
    color: #8B2C2C;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.note-info-display p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.notation-fretboard-container {
    margin-top: 1rem;
    text-align: center;
}

.notation-fretboard-container h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.notation-fretboard-container .fretboard-basic {
    margin: 0 auto;
}

.notation-fretboard-container .nut-basic {
    left: 2px !important;
}

.notation-fretboard-container .frets-basic {
    margin-left: 20px !important;
}

.notation-fretboard-container .fret-basic[data-fret="0"] {
    width: 100px !important;
}

.notation-fretboard-container .fret-basic[data-fret="1"] {
    width: 80px !important;
}

.notation-question {
    text-align: center;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.notation-question h3 {
    color: #4A90E2;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.notation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.notation-option {
    background: #333333;
    border: 2px solid #555555;
    border-radius: 8px;
    padding: 1rem;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notation-option:hover {
    background: #444444;
    border-color: #4A90E2;
    transform: translateY(-2px);
}

.notation-option.correct {
    background: #4CAF50;
    border-color: #4CAF50;
    animation: correctPulse 0.5s ease;
}

.notation-option.wrong {
    background: #E84855;
    border-color: #E84855;
    animation: shake 0.5s ease;
}

/* Ear Trainer Styles */
.ear-trainer-container {
    padding: 1.5rem;
}

.ear-trainer-sections {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.section-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #444;
    background: #2a2a2a;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section-btn:hover {
    background: #333;
    border-color: #666;
}

.section-btn.active {
    background: linear-gradient(135deg, #8B2C2C, #6d1414);
    color: white;
    border-color: #8B2C2C;
}

.ear-section {
    display: block;
}

.ear-controls {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ear-info {
    text-align: center;
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid #4A90E2;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.ear-info p {
    color: #4A90E2;
    margin: 0;
    font-size: 1rem;
}

.ear-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    border-radius: 8px;
}

.interval-reference-list {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(139, 44, 44, 0.1);
    border: 2px solid #8B2C2C;
    border-radius: 8px;
}

.interval-reference-list h4 {
    color: #FF6B35;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    text-align: center;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    font-size: 0.9rem;
}

.reference-item {
    background: #1a1a1a;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #444;
}

.reference-item-interval {
    color: #FF6B35;
    font-weight: 600;
}

.reference-item-song {
    color: #888;
    font-style: italic;
}

.interval-display,
.chord-display {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid #444;
}

.interval-display h3,
.chord-display h3 {
    font-size: 2.5rem;
    color: #FF6B35;
    margin-bottom: 0.5rem;
}

.interval-reference,
.chord-description {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.audio-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.audio-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #4A90E2;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.audio-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5BA3F5, #4A90E2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

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

.audio-btn.secondary {
    background: linear-gradient(135deg, #8B2C2C, #6d1414);
    border-color: #8B2C2C;
}

.audio-btn.secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #A03636, #8B2C2C);
}

.ear-question {
    text-align: center;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.ear-question h3 {
    color: #4A90E2;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.ear-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.ear-option {
    padding: 1rem;
    border: 2px solid #444;
    background: #1a1a1a;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ear-option:hover {
    background: #333;
    border-color: #666;
    transform: translateY(-2px);
}

.ear-option.correct {
    background: #4CAF50;
    border-color: #4CAF50;
    animation: correctPulse 0.5s ease;
}

.ear-option.wrong {
    background: #E84855;
    border-color: #E84855;
    animation: shake 0.5s ease;
}

/* Test Mode Styles */
.test-mode {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
}

.test-mode h3 {
    color: #FF6B35;
    margin-bottom: 0.5rem;
    text-align: center;
}

.test-instructions {
    text-align: center;
    color: #888;
    margin-bottom: 1.5rem;
}

.test-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.test-item {
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.test-item-info {
    flex: 1;
}

.test-item-name {
    color: #FF6B35;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.test-item-reference {
    color: #888;
    font-size: 0.9rem;
}

.test-item-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.test-play-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #4A90E2;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.test-play-btn:hover {
    background: linear-gradient(135deg, #5BA3F5, #4A90E2);
    transform: translateY(-1px);
}

.test-feedback {
    display: flex;
    gap: 0.5rem;
}

.feedback-btn {
    padding: 0.5rem 0.75rem;
    border: 2px solid #444;
    background: #2a2a2a;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    background: #333;
    border-color: #666;
}

.feedback-btn.works {
    background: #4CAF50;
    border-color: #4CAF50;
}

.feedback-btn.broken {
    background: #E84855;
    border-color: #E84855;
}

/* Kids' Songs Styles */
.kids-songs-container {
    padding: 1.5rem;
}

.kids-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.kids-info {
    text-align: center;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 2px solid #FF8C00;
}

.kids-info p {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.song-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.song-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
}

.song-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    border-color: #FFD700;
}

.song-card.tv {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.song-card.movies {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.song-card.games {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.song-card.nursery {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.song-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.song-card h4 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.song-difficulty {
    font-size: 1.3rem;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.song-source {
    color: rgba(255,255,255,0.95);
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    font-weight: 500;
}

.song-display {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(255,255,255,0.1);
}

.song-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.song-header h3 {
    color: #FFD700;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
}

.song-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.3rem;
}

.song-meta span {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.chord-legend {
    margin-bottom: 1.5rem;
}

.chord-legend h4 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.chord-boxes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.chord-boxes .chord-box {
    background: rgba(255,255,255,0.1);
    border: 3px solid;
    border-radius: 8px;
    padding: 1rem;
    min-width: 80px;
    text-align: center;
}

.chord-boxes .chord-box.color-red {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.2);
}

.chord-boxes .chord-box.color-blue {
    border-color: #4ECDC4;
    background: rgba(78, 205, 196, 0.2);
}

.chord-boxes .chord-box.color-yellow {
    border-color: #FFE66D;
    background: rgba(255, 230, 109, 0.2);
}

.chord-boxes .chord-box.color-green {
    border-color: #95E1D3;
    background: rgba(149, 225, 211, 0.2);
}

.chord-boxes .chord-box.color-purple {
    border-color: #C589E8;
    background: rgba(197, 137, 232, 0.2);
}

.chord-boxes .chord-box.color-orange {
    border-color: #FFA500;
    background: rgba(255, 165, 0, 0.2);
}

.chord-boxes .chord-name {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.chord-fingers {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.strumming-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.strumming-section h4 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.strum-pattern {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.strum-down, .strum-up {
    font-size: 3.5rem;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
}

.strum-help {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.lyrics-section {
    margin-bottom: 1.5rem;
}

.lyrics-section h4 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.lyrics-box {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    line-height: 2;
    max-height: 400px;
    overflow-y: auto;
}

.lyric-line {
    margin-bottom: 1rem;
}

.chord-marker {
    display: inline-block;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    margin-right: 0.75rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.chord-marker.color-red { color: #FF6B6B; background: rgba(255, 107, 107, 0.2); }
.chord-marker.color-blue { color: #4ECDC4; background: rgba(78, 205, 196, 0.2); }
.chord-marker.color-yellow { color: #FFE66D; background: rgba(255, 230, 109, 0.2); }
.chord-marker.color-green { color: #95E1D3; background: rgba(149, 225, 211, 0.2); }
.chord-marker.color-purple { color: #C589E8; background: rgba(197, 137, 232, 0.2); }
.chord-marker.color-orange { color: #FFA500; background: rgba(255, 165, 0, 0.2); }

.lyric-text {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.back-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.back-btn:hover {
    transform: scale(1.05);
}

/* Chord Progressions Styles */
.progressions-container {
    padding: 2rem;
}

.progression-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progression-display {
    text-align: center;
    margin-bottom: 2rem;
}

.progression-display h3 {
    color: #8B2C2C;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.chord-sequence {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.chord-box {
    background: transparent;
    border: none;
    padding: 1rem;
    min-width: 160px;
    min-height: 220px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.chord-box.active {
    transform: scale(1.05);
}

.chord-box.active .chord-name {
    color: #8B2C2C;
    text-shadow: 0 0 10px rgba(139, 44, 44, 0.8);
}

.chord-box .chord-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.chord-diagram-mini {
    display: block;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 8px;
    width: 120px;
    max-width: 100%;
    height: auto;
}

.chord-diagram-unavailable {
    font-size: 0.7rem;
    color: #999;
    padding: 0.5rem;
}

.progression-controls-playback {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progression-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ff0000;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.progression-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

.progression-btn.secondary {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.progression-btn.secondary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

.current-chord-display {
    text-align: center;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
}

.current-chord-display h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

#currentChordName {
    font-size: 2rem;
    font-weight: bold;
    color: #8B2C2C;
}

.scale-suggestions {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
}

.scale-suggestions p {
    color: #ffffff;
    margin: 0;
}

/* Note Finder Styles */
.note-finder-container {
    padding: 2rem;
    background: transparent;
}

.note-finder-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.note-finder-info {
    text-align: center;
    margin-bottom: 2rem;
}

.note-finder-info h3 {
    color: #8B2C2C;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.note-finder-info p {
    color: #000000;
    font-size: 1.1rem;
    font-weight: normal;
}

.note-finder-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid rgba(139, 44, 44, 0.2);
}

.note-finder-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.note-finder-stats .stat-label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-finder-stats .stat-value {
    color: #E84855;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(232, 72, 85, 0.5);
}

.stat {
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.mode-description {
    text-align: center;
    padding: 0.75rem;
    margin: 1rem 0;
    background: #2a2a2a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
}

.fretboard-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 15px;
}

.note-finder-fretboard-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    margin-bottom: 2rem;
    max-width: 100%;
    background: transparent;
}

/* Scale fretboard to fit container */
@media (max-width: 1400px) {
    .note-finder-fretboard .fret-basic {
        width: 70px !important;
    }
}

@media (max-width: 1200px) {
    .note-finder-fretboard .fret-basic {
        width: 60px !important;
    }
}

@media (max-width: 1000px) {
    .note-finder-fretboard .fret-basic {
        width: 50px !important;
    }
}

/* Note Finder fretboard styling - matches Scale Visualizer */
.note-finder-fretboard {
    position: relative;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px 10px 40px 10px;
    margin: 1rem 0;
    display: flex;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    max-width: 100%;
    width: fit-content;
}

.note-finder-fretboard .frets-basic {
    display: flex;
    flex-wrap: nowrap;
    background: #1a1a1a;
}

.note-finder-fretboard .fret-basic {
    background: transparent !important;
    border-right: 1px solid #333 !important;
    flex-shrink: 0;
}

.note-finder-fretboard .string-basic {
    height: 2px;
    position: relative;
    background: #555;
}

.note-finder-fretboard .string-basic.note-finder-note {
    background: transparent;
    height: auto;
    min-height: 30px;
}

.note-finder-fretboard .string-basic.note-finder-note::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #555;
    z-index: 0;
    transform: translateY(-50%);
}

.note-finder-fretboard .string-basic:not(.note-finder-note):not(.quiz-target):not(.quiz-correct):not(.quiz-wrong)::before {
    display: none;
}

.note-finder-fretboard .note-finder-note {
    position: relative;
    color: white !important;
    font-weight: bold;
    font-size: 0.75rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
    line-height: 1;
    min-height: 30px;
    height: auto;
    overflow: visible !important;
    text-align: center;
    pointer-events: auto;
}

.note-finder-fretboard .note-finder-note::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4A90E2;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.8);
    z-index: 1;
    display: block;
}

/* Open string note finder notes (fret 0) */
.string-basic[data-fret="0"].note-finder-note::before {
    background: transparent;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.6);
}

.string-basic[data-fret="0"].note-finder-note {
    color: #4A90E2;
}

.note-finder-fretboard .string-basic.quiz-target {
    background: transparent !important;
    height: 2px !important;
    min-height: 2px !important;
}

.note-finder-fretboard .string-basic.quiz-target::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #4CAF50 !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.8) !important;
    animation: pulse 1.5s infinite !important;
    z-index: 10 !important;
    display: block !important;
}

.note-finder-fretboard .string-basic.quiz-target::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: -100% !important;
    right: -100% !important;
    width: 300% !important;
    height: 2px !important;
    background: #555 !important;
    z-index: 0 !important;
    transform: translateY(-50%) !important;
    display: block !important;
    margin-left: -100% !important;
}

.note-finder-fretboard .string-basic.quiz-correct::before {
    background: #4CAF50;
    animation: none;
    border-color: #ffffff;
}

.note-finder-fretboard .string-basic.quiz-wrong::before {
    background: #f44336;
    animation: none;
    border-color: #ffffff;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.note-finder-question {
    text-align: center;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.note-finder-question h3 {
    color: #4A90E2;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.note-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 0.75rem;
    max-width: 350px;
    margin: 0 auto;
}

.note-option {
    background: #333333;
    border: 2px solid #555555;
    border-radius: 6px;
    padding: 0.6rem;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.note-option:hover {
    background: #555555;
    border-color: #8B2C2C;
}

.note-option.correct {
    background: #4CAF50;
    border-color: #ffffff;
}

.note-option.incorrect {
    background: #f44336;
    border-color: #ffffff;
}

/* Rhythm Trainer Styles */
.rhythm-trainer-container {
    padding: 1rem;
}

.rhythm-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.rhythm-display {
    text-align: center;
    margin-bottom: 1rem;
}

.rhythm-display h3 {
    color: #8B2C2C;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.rhythm-notation {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.beat-marker {
    width: 50px;
    height: 50px;
    border: 3px solid #555555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    background: #333333;
    transition: all 0.2s ease;
}

.beat-marker.active {
    background: #8B2C2C;
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 44, 44, 0.6);
}

.rhythm-controls-playback {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rhythm-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 44, 44, 0.4);
}

.rhythm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 44, 44, 0.6);
}

.rhythm-btn.secondary {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.rhythm-btn.secondary:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

.rhythm-chord-suggestion {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
}

.rhythm-chord-suggestion h4 {
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.rhythm-chord-boxes {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rhythm-chord-box {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 1rem;
    min-width: 180px;
    min-height: 240px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.rhythm-chord-box .chord-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #8B2C2C;
    margin: 0;
}

.rhythm-chord-box .chord-diagram-mini {
    display: block;
}

.rhythm-chord-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 44, 44, 0.4);
    border-color: #8B2C2C;
}

.rhythm-visual {
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strum-indicator {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #333333;
    border: 3px solid #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.1s ease;
}

.strum-indicator.down {
    background: #8B2C2C;
    border-color: #ffffff;
    transform: scale(1.1);
}

.strum-indicator.up {
    background: #4CAF50;
    border-color: #ffffff;
    transform: scale(1.1);
}

/* Practice Log Styles */
.practice-log-container {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.log-entry-form {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.log-entry-form h3 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #555555;
    border-radius: 4px;
    background-color: #333333;
    color: #ffffff;
    font-size: 1rem;
}

.activity-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.activity-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    color: #ffffff;
}

.practice-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 44, 44, 0.4);
}

.practice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 44, 44, 0.6);
}

.practice-stats {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.practice-stats h3 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #444;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.practice-history {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.practice-history h3 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #ff6b6b;
    border: 1px solid #444;
    border-left: 4px solid #ff6b6b;
}

.history-date {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.history-duration {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.history-activities {
    color: #e0e0e0;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.history-notes {
    color: #d0d0d0;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.no-sessions {
    text-align: center;
    color: #ffffff;
    padding: 2rem;
    font-size: 1rem;
}

/* Motivate Me Styles */
.motivate-container {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.motivate-intro p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.motivate-trigger-btn {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    animation: buttonPulse 2s infinite;
}

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

/* Crash Effect Overlay */
.crash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none; /* Hidden by default, shown via JavaScript */
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.practice-text {
    font-size: 10rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow:
        0 0 20px #000000,
        0 0 40px #000000,
        0 0 60px #000000,
        0 0 80px #000000,
        0 0 100px #000000,
        0 0 120px #000000;
    letter-spacing: 0.2em;
    transform: scale(0);
    opacity: 0;
}

/* Smaller text for challenges and messages */
.practice-text.challenge-text {
    font-size: 4rem;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 0 2rem;
    max-width: 90vw;
}

/* Zoom crash animation */
.practice-text.crash-in {
    animation: crashZoom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes crashZoom {
    0% {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
    }
    80% {
        transform: scale(0.95) rotate(-2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Screen shake effect */
.crash-overlay.shake {
    animation: screenShake 0.5s ease-in-out;
}

@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-10px, -10px); }
    20% { transform: translate(10px, 10px); }
    30% { transform: translate(-10px, 10px); }
    40% { transform: translate(10px, -10px); }
    50% { transform: translate(-5px, -5px); }
    60% { transform: translate(5px, 5px); }
    70% { transform: translate(-5px, 5px); }
    80% { transform: translate(5px, -5px); }
    90% { transform: translate(-2px, -2px); }
}

/* Screen crack effect */
.screen-crack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.screen-crack.show-crack {
    animation: crackAppear 0.3s ease-out forwards;
}

@keyframes crackAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade out effect */
.crash-overlay.fade-out {
    animation: fadeOutOverlay 1s ease-out forwards;
}

@keyframes fadeOutOverlay {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .practice-text {
        font-size: 5rem;
    }

    .practice-text.challenge-text {
        font-size: 2rem;
        padding: 0 1rem;
    }
}

/* Key Finder Styles */
.key-finder-container {
    padding: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.key-finder-instructions {
    text-align: center;
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.key-finder-instructions p {
    color: #ffffff;
    margin: 0;
    font-size: 1rem;
}

.chord-selector {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
}

.chord-selector h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-align: center;
}

.chord-input-controls {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.chord-input-controls .control-group {
    flex: 1;
    min-width: 150px;
}

.chord-input-controls label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.chord-input-controls select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: #ffffff;
    font-size: 1rem;
}

.selected-chords-container {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
}

.selected-chords-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.selected-chords-label strong {
    color: #ff6b6b;
}

.selected-chords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
}

.no-chords-message {
    color: #888;
    font-style: italic;
}

.chord-tag {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.chord-tag .remove-chord {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.2s ease;
}

.chord-tag .remove-chord:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.key-results {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #333;
    text-align: center;
}

.key-results h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.detected-key-display {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 2px solid #ff6b6b;
}

.key-name {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.key-option {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.key-option:last-child {
    border-bottom: none;
}

.scale-recommendations {
    margin-bottom: 1.5rem;
}

.scale-recommendations h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.scale-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.scale-item {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    font-size: 1rem;
    min-width: 250px;
    text-align: center;
}

.key-finder-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 44, 44, 0.4);
}

.key-finder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 44, 44, 0.6);
}

.key-finder-btn.secondary {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.key-finder-btn.secondary:hover {
    background: linear-gradient(135deg, #444 0%, #333 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Theory Explainer Styles */
.theory-explainer-container {
    padding: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.theory-explainer-instructions {
    text-align: center;
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: #cccccc;
    line-height: 1.5;
}

.theory-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: #1a1a1a;
    padding: 0.5rem;
    border-radius: 12px;
}

.theory-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.theory-tab:hover {
    background: #2a2a2a;
    color: #ccc;
}

.theory-tab.active {
    background: linear-gradient(135deg, #4169E1 0%, #3151B1 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.4);
}

.theory-tab-content {
    display: none;
}

.theory-tab-content.active {
    display: block;
}

.theory-tab-content h3 {
    color: #4169E1;
    margin-bottom: 0.5rem;
}

.theory-tab-content .hint {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.progression-input,
.chord-input,
.key-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.progression-input input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.progression-input input:focus {
    outline: none;
    border-color: #4169E1;
}

.theory-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #4169E1 0%, #3151B1 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
}

.theory-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.6);
}

.theory-btn.secondary {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.theory-btn.secondary:hover {
    background: linear-gradient(135deg, #444 0%, #333 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.theory-results {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #333;
}

.result-section {
    margin-bottom: 1.5rem;
}

.result-section:last-child {
    margin-bottom: 0;
}

.result-section h4 {
    color: #4169E1;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.result-box,
.explanation-box,
.songs-box,
.uses-box,
.scales-box {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #4169E1;
    color: #ffffff;
    line-height: 1.8;
}

.explanation-box {
    border-color: #5179F1;
}

.songs-box,
.uses-box,
.scales-box {
    border-color: #3a59d1;
}

/* Question Input for Theory Explainer */
.question-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.question-input textarea {
    width: 100%;
    padding: 1rem;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.question-input textarea:focus {
    outline: none;
    border-color: #4169E1;
}

.question-input textarea::placeholder {
    color: #666;
}

.question-input .theory-btn {
    align-self: flex-start;
}

/* Suggestion Chips */
.question-suggestions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.suggestions-label {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-chip {
    padding: 0.5rem 1rem;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    background: #3a3a3a;
    border-color: #4169E1;
    color: #fff;
}

.result-box .progression-display {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #4169E1;
}

.result-box .key-display {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.5rem;
    color: #5179F1;
}

.chord-note {
    display: inline-block;
    background: #3a59d1;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin: 0.2rem;
    font-weight: 600;
}

.roman-numeral {
    display: inline-block;
    background: #4169E1;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin: 0.2rem;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.songs-list,
.chords-list {
    list-style: none;
    padding: 0;
}

.songs-list li,
.chords-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.songs-list li:last-child,
.chords-list li:last-child {
    border-bottom: none;
}

/* Capo Calculator Styles */
.capo-calculator-container {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.capo-mode-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
}

.capo-mode-selector label {
    color: #8B2C2C;
    font-weight: bold;
    font-size: 1rem;
}

.capo-mode-selector select {
    padding: 0.5rem 1rem;
    background: #2a2a2a;
    color: #ffffff;
    border: 2px solid #555555;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.capo-mode-selector select:hover {
    border-color: #8B2C2C;
}

.capo-mode-selector select:focus {
    outline: none;
    border-color: #8B2C2C;
    box-shadow: 0 0 0 3px rgba(139, 44, 44, 0.2);
}

.capo-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.capo-result {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.capo-result h3 {
    color: #8B2C2C;
    margin-bottom: 1.5rem;
}

.capo-result h4 {
    color: #8B2C2C;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.chord-transposition {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.chord-transposition h4 {
    color: #8B2C2C;
    margin-bottom: 1rem;
    text-align: center;
}

.chord-transposition h5 {
    color: #8B2C2C;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.chord-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chord {
    background: #333333;
    border: 2px solid #555555;
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
}

.arrow {
    font-size: 2rem;
    color: #8B2C2C;
    font-weight: bold;
}

.capo-reference {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
}

.capo-reference h4 {
    color: #8B2C2C;
    margin-bottom: 1rem;
    text-align: center;
}

.capo-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.capo-suggestion {
    background: #333333;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.capo-suggestion-fret {
    color: #8B2C2C;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.capo-suggestion-result {
    color: #cccccc;
    font-size: 0.9rem;
}

/* New Capo Calculator Two-Mode Layout */
.capo-mode-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.capo-mode-section h3 {
    color: #8B2C2C;
    margin-bottom: 0.5rem;
    text-align: center;
}

.mode-description {
    text-align: center;
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.capo-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #555555, transparent);
    margin: 2rem 0;
}

.capo-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.capo-suggestion-card {
    background: #333333;
    border: 2px solid #555555;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.capo-suggestion-card:hover {
    border-color: #8B2C2C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 44, 44, 0.3);
}

.capo-position {
    display: inline-block;
    background: #8B2C2C;
    color: #ffffff;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.capo-fret-number {
    font-size: 1.8rem;
    display: block;
    line-height: 1;
}

.suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-label {
    color: #8B2C2C;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.chord-list-small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.chord-small {
    background: #444444;
    border: 1px solid #666666;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ffffff;
}

.suggestion-result {
    padding-top: 1rem;
    border-top: 1px solid #555555;
}

.arrow-down {
    text-align: center;
    font-size: 1.5rem;
    color: #8B2C2C;
    margin: 0.5rem 0;
}

.actual-key-display {
    background: #333333;
    border: 3px solid #8B2C2C;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 1.5rem 0;
}

.actual-key-large {
    font-size: 3rem;
    font-weight: bold;
    color: #8B2C2C;
    text-shadow: 0 0 20px rgba(139, 44, 44, 0.5);
}

.no-suggestions {
    text-align: center;
    padding: 2rem;
    color: #999999;
    font-style: italic;
}

/* Capo Calculator Chord Selector */
.capo-mode-section .chord-selector {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
}

.capo-mode-section .chord-selector h4 {
    color: #8B2C2C;
    margin-bottom: 1rem;
    text-align: center;
}

.capo-mode-section .chord-input-controls {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.capo-mode-section .chord-input-controls .control-group {
    flex: 1;
    min-width: 150px;
}

.capo-mode-section .chord-input-controls label {
    display: block;
    color: #8B2C2C;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.capo-mode-section .chord-input-controls select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: #ffffff;
    font-size: 1rem;
}

.capo-mode-section .selected-chords-container {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
}

.capo-mode-section .selected-chords-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.capo-mode-section .selected-chords-label strong {
    color: #8B2C2C;
}

.capo-mode-section .selected-chords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
}

.capo-mode-section .no-chords-message {
    color: #999999;
    font-style: italic;
}

.capo-mode-section .chord-tag {
    background: linear-gradient(135deg, #8B2C2C 0%, #7a2525 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.capo-mode-section .chord-tag:hover {
    transform: translateY(-2px);
}

.capo-mode-section .chord-tag .remove-chord {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capo-mode-section .chord-tag .remove-chord:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Easy chord highlighting */
.chord-small.easy-chord {
    background: #2d5a2d;
    border-color: #4a7c4a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    main {
        padding: 0 1rem 1rem 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-content {
        padding: 1rem;
    }

    .tool-panel {
        max-height: 95vh;
    }

    .metronome-container,
    .tuner-container,
    .chord-visualiser-container,
    .scale-visualiser-container,
    .caged-container,
    .progressions-container,
    .note-finder-container,
    .rhythm-trainer-container,
    .practice-log-container,
    .motivate-container,
    .capo-calculator-container,
    .tone-container,
    .barre-container,
    .notation-container {
        padding: 1rem;
    }

    .tempo-controls,
    .chord-controls,
    .scale-controls,
    .caged-controls,
    .progression-controls,
    .note-finder-controls,
    .rhythm-controls,
    .capo-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .capo-suggestions-grid {
        grid-template-columns: 1fr;
    }

    .actual-key-large {
        font-size: 2.5rem;
    }

    .capo-mode-section {
        padding: 1.5rem;
    }

    .tempo-slider {
        width: 150px;
    }

    .trainer-controls {
        grid-template-columns: 1fr;
    }

    .tuning-meter {
        width: 250px;
    }

    .fretboard-basic,
    .scale-fretboard,
    .caged-fretboard,
    .note-finder-fretboard {
        transform: scale(0.8);
    }

    .chord-sequence {
        flex-wrap: wrap;
    }

    .chord-transposition {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .arrow {
        transform: rotate(90deg);
    }

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

    .coming-soon-container {
        padding: 1rem;
    }

    .coming-soon-icon {
        width: 60px;
        height: 60px;
    }
}

/* Force Everything to Fit in Portrait Mode */
@media (max-width: 1024px) and (orientation: portrait) {
    /* Prevent any horizontal scrolling */
    body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .container {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    main {
        padding: 0.25rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .tool-panel {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .tool-content {
        padding: 0.25rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Make all containers fit */
    .metronome-container,
    .tuner-container,
    .chord-visualiser-container,
    .scale-visualiser-container,
    .caged-container,
    .progressions-container,
    .note-finder-container,
    .rhythm-trainer-container,
    .practice-log-container,
    .motivate-container,
    .capo-calculator-container,
    .tone-container,
    .barre-container,
    .notation-container {
        padding: 0.25rem !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Aggressively scale fretboards to fit */
    .fret-basic {
        width: 35px !important;
        height: 130px !important;
    }

    .fret-basic[data-fret="0"] {
        width: 25px !important;
    }

    .notation-fretboard-container .fret-basic[data-fret="0"] {
        width: 50px !important;
    }

    .notation-fretboard-container .fret-basic[data-fret="1"] {
        width: 35px !important;
    }

    .fretboard-basic,
    .scale-fretboard,
    .caged-fretboard,
    .note-finder-fretboard {
        transform: scale(0.45) !important;
        transform-origin: left top !important;
        margin-bottom: -60px !important;
        max-width: 100% !important;
    }

    /* Make fretboard containers scrollable horizontally as backup */
    .scale-fretboard-container,
    .caged-fretboard-container,
    .note-finder-fretboard-container,
    .fretboard-container,
    .fretboard-display {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* Reduce text sizes */
    .page-header h1 {
        font-size: 1.25rem !important;
    }

    .page-header p {
        font-size: 0.85rem !important;
    }

    header {
        padding: 0.5rem !important;
    }

    .logo-img {
        height: 25px !important;
    }

    /* Make controls stack and fit */
    .tempo-controls,
    .chord-controls,
    .scale-controls,
    .caged-controls,
    .progression-controls,
    .note-finder-controls,
    .rhythm-controls,
    .capo-controls {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .capo-suggestions-grid {
        grid-template-columns: 1fr !important;
    }

    .actual-key-large {
        font-size: 2rem !important;
    }

    .capo-mode-section {
        padding: 1rem !important;
    }

    .capo-fret-number {
        font-size: 1.5rem !important;
    }

    .capo-mode-section .chord-input-controls {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .capo-mode-section .chord-input-controls .control-group {
        min-width: 100% !important;
    }

    /* Make buttons smaller */
    .primary-btn,
    .secondary-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Scale chord diagrams */
    .chord-diagram {
        transform: scale(0.8) !important;
    }

    /* Make selects and inputs fit */
    select, input {
        max-width: 100% !important;
        font-size: 0.85rem !important;
    }

    /* Backing track controls */
    .backing-track-controls {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .track-controls {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .progress-container {
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* Tool buttons grid */
    .button-group {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem !important;
    }

    /* Control rows */
    .control-row {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
    }

    /* Prevent any element from overflowing */
    * {
        max-width: 100vw !important;
    }

    /* Allow buttons and text to be their natural size */
    button, span, p, h1, h2, h3, h4, h5, h6, a {
        max-width: none !important;
    }
}

/* Rotation Prompt Overlay */
.rotate-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

.rotate-overlay.show {
    display: flex;
}

.rotate-message {
    color: #ffffff;
    margin-bottom: 3rem;
    max-width: 500px;
    text-align: center;
}

.rotate-message h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-align: center;
}

.rotate-message p {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.8;
    text-align: center;
    margin: 0 auto;
}

.rotate-animation {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-icon {
    width: 70px;
    height: 120px;
    border: 4px solid #ffffff;
    border-radius: 12px;
    position: relative;
    animation: rotatePhone 2.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.phone-icon::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: #ffffff;
    border-radius: 3px;
}

.phone-icon::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}

@keyframes rotatePhone {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(90deg);
    }
    75% {
        transform: rotate(90deg);
    }
}

/* Show rotation prompt only on small portrait screens */
@media (max-width: 768px) and (orientation: portrait) {
    .rotate-overlay {
        display: flex;
    }
}

@media (orientation: landscape) {
    .rotate-overlay {
        display: none !important;
    }
}

/* Common Tool Styles */
.tool-controls {
    padding: 2rem;
    background: linear-gradient(145deg, #e8e8e8 0%, #d5d5d5 100%);
}

.control-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(145deg, #e8e8e8 0%, #d5d5d5 100%);
}

.primary-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 44, 44, 0.5);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 44, 44, 0.6);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 44, 44, 0.4);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.secondary-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #444 0%, #333 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.secondary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Riff Generator Styles */
.riff-display {
    background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 2rem;
    border: 2px solid #ccc;
}

.riff-display h3 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
}

.riff-tab {
    font-family: 'Courier New', monospace;
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow-x: auto;
    white-space: pre;
    color: #4A90E2;
    font-size: 0.9rem;
    line-height: 1.8;
    min-height: 150px;
}

.riff-tab:empty::before {
    content: 'Click "Generate Riff" to create a new riff';
    color: #666;
    font-style: italic;
}

.riff-notes {
    background: rgba(74, 144, 226, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #4A90E2;
    color: #333;
    font-size: 0.9rem;
}

.riff-notes:empty {
    display: none;
}

.saved-list {
    background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 2rem;
    border: 2px solid #ccc;
}

.saved-list h3 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
}

.saved-item {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    position: relative;
}

.saved-item:hover {
    background: #f9f9f9;
    border-color: #8B2C2C;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.saved-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.saved-item-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

.saved-item-meta {
    font-size: 0.85rem;
    color: #666;
}

.saved-item-content {
    font-family: 'Courier New', monospace;
    background: #1a1a1a;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    color: #4A90E2;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: pre;
}

.saved-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.saved-item-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.saved-item-btn:hover {
    background: linear-gradient(135deg, #444 0%, #333 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.saved-item-btn.delete {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
}

.saved-item-btn.delete:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.4);
}

/* Tab Writer Styles */
.tab-editor {
    background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 2rem;
    border: 2px solid #ccc;
}

.tab-editor h3 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
}

.tab-instructions {
    background: rgba(74, 144, 226, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #4A90E2;
    margin-bottom: 1rem;
}

.tab-instructions p {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
}

.tab-canvas {
    font-family: 'Courier New', monospace;
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow-x: auto;
    white-space: pre;
    color: #4A90E2;
    font-size: 1rem;
    line-height: 2;
    min-height: 200px;
}

.tab-canvas:empty::before {
    content: 'Your tablature will appear here...';
    color: #666;
    font-style: italic;
}

.tab-line {
    display: block;
    margin: 0;
    padding: 0;
}

.tab-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.tab-controls select,
.tab-controls input[type="number"] {
    padding: 0.5rem;
    background-color: #333333;
    border: 1px solid #555555;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
}

.tab-controls select:focus,
.tab-controls input[type="number"]:focus {
    outline: none;
    border-color: #8B2C2C;
    background: #3a3a3a;
}

/* Backing Track Creator Styles */
.track-preview {
    background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 2rem;
    border: 2px solid #ccc;
}

.track-preview h3 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
}

.track-chords {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    min-height: 100px;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.track-chord {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.track-chord.active {
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(139, 44, 44, 0.6);
}

.track-player-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.track-info {
    flex: 1;
    text-align: right;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 600;
}

#trackCurrentChord {
    font-weight: bold;
    color: #8B2C2C;
}

/* Chord Progression Builder Styles */
.chord-palette {
    background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 2rem;
    border: 2px solid #ccc;
}

.chord-palette h3 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
}

.chord-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.chord-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #555 0%, #444 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 70px;
}

.chord-btn:hover {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.chord-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.progression-builder {
    background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 2rem;
    border: 2px solid #ccc;
}

.progression-builder h3 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
}

.progression-display {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    min-height: 120px;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.empty-progression {
    width: 100%;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.progression-chord {
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 44, 44, 0.5);
    position: relative;
    transition: all 0.3s ease;
}

.progression-chord:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 44, 44, 0.6);
}

.progression-chord .chord-number {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4A90E2;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid #1a1a1a;
}

.builder-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.progression-analysis {
    background: linear-gradient(145deg, #f0f4f8 0%, #e0e8f0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 2rem;
    border: 2px solid #b3c9e0;
}

.progression-analysis h3 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
}

.analysis-content {
    color: #333;
    line-height: 1.8;
}

.analysis-content p {
    margin: 0.5rem 0;
}

.analysis-content strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* ===================================
   TAB FINDER STYLES
   =================================== */

.tab-finder-container {
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tab-finder-instructions {
    background: linear-gradient(145deg, #e8e8e8 0%, #d5d5d5 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tab-finder-instructions p {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.tab-search-box {
    background: linear-gradient(145deg, #f5f5f5 0%, #e5e5e5 100%);
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.tab-search-box .control-group {
    margin-bottom: 1rem;
}

.tab-search-box label {
    display: block;
    margin-bottom: 0.35rem;
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
}

.tab-search-box input {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.tab-search-box input:focus {
    outline: none;
    border-color: #8B2C2C;
}

.tab-search-box .primary-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.7rem;
    font-size: 0.9rem;
}

/* Song Recommendations Styles */
.song-recommendations {
    background: linear-gradient(145deg, #f9f9f9 0%, #ececec 100%);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.song-recommendations h3 {
    color: #1a1a1a;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.recommendation-controls {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.recommendation-controls .control-group {
    flex: 1;
    min-width: 120px;
}

.recommendation-controls .control-group label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.recommendation-controls select {
    font-size: 0.85rem;
    padding: 0.4rem;
}

.recommendation-controls .random-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.song-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.song-suggestion-card {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease;
}

.song-suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.song-info {
    flex: 1;
}

.song-title {
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.15rem 0;
}

.song-artist {
    color: #666;
    font-size: 0.8rem;
    margin: 0 0 0.3rem 0;
}

.song-details {
    color: #888;
    font-size: 0.75rem;
    margin: 0;
}

.chord-count {
    font-weight: 600;
    color: #8B2C2C;
}

.song-difficulty {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    min-width: 80px;
}

.search-song-btn {
    padding: 0.5rem 0.9rem;
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-song-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(139, 44, 44, 0.3);
}

.tab-results {
    margin-top: 2rem;
}

.tab-results h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.tab-links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-site-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-site-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tab-site-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    flex-shrink: 0;
}

.tab-site-info {
    flex: 1;
}

.tab-site-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.tab-site-query {
    font-size: 0.9rem;
    color: #666;
}

.tab-site-arrow {
    font-size: 1.5rem;
    color: #8B2C2C;
    font-weight: bold;
    flex-shrink: 0;
}

/* ===================================
   PROFESSIONAL IMPROVEMENTS
   =================================== */

/* Hero Section - Aesthetic Design */
.hero-section {
    position: relative;
    text-align: center;
    padding: 1.5rem 2rem 1.5rem;
    background: radial-gradient(circle at 30% 50%, rgba(139, 44, 44, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
                linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    overflow: hidden;
}

/* Compact hero styles */
.hero-logo-compact {
    width: 180px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    filter: brightness(0) saturate(100%) invert(17%) sepia(51%) saturate(1468%) hue-rotate(331deg) brightness(90%) contrast(88%);
}

.hero-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-compact {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #8B2C2C;
    white-space: nowrap;
    line-height: 1;
}

.hero-subtitle-compact {
    font-size: 1.1rem;
    color: #666;
    margin: 0.25rem 0 0 0;
    white-space: nowrap;
}

.hero-cta-text {
    font-size: 0.9rem;
    color: #888;
    margin: 0.5rem 0 0 0;
    white-space: nowrap;
}

.stat-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.stat-circle-compact {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1),
                inset 0 -3px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.stat-circle-compact::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35, #8B2C2C, #4ECDC4);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-circle-compact:hover {
    transform: translateY(-3px);
}

.stat-circle-compact:hover::before {
    opacity: 1;
}

.stat-number-compact {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8B2C2C 0%, #C74040 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label-compact {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8B2C2C 0%, #C74040 100%);
    top: 50%;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A5A0 100%);
    bottom: -100px;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-accent {
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.hero-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(139, 44, 44, 0.3));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.hero-title {
    position: relative;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-title-main {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a 0%, #8B2C2C 50%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.hero-title-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(139, 44, 44, 0.3), rgba(255, 107, 53, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    z-index: -1;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stat-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1),
                inset 0 -5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.stat-circle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35, #8B2C2C, #4ECDC4);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-circle:hover {
    transform: translateY(-5px);
}

.stat-circle:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8B2C2C 0%, #C74040 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Larger Headers */
.page-header h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
}

/* Tool Badges */
.tool-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-popular {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A5A0 100%);
    color: white;
}

.badge-pro {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
}

/* Fade-in Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }
.tool-card:nth-child(7) { animation-delay: 0.35s; }
.tool-card:nth-child(8) { animation-delay: 0.4s; }
.tool-card:nth-child(9) { animation-delay: 0.45s; }
.tool-card:nth-child(10) { animation-delay: 0.5s; }

.category-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }

/* Footer Styles - Aesthetic Design */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #ffffff;
    padding: 0;
    margin-top: 4rem;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, #1a1a1a 100%);
    clip-path: polygon(
        0 50%,
        10% 40%,
        20% 45%,
        30% 35%,
        40% 40%,
        50% 30%,
        60% 35%,
        70% 25%,
        80% 30%,
        90% 20%,
        100% 25%,
        100% 100%,
        0 100%
    );
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
    animation: pulse 4s ease-in-out infinite;
}

.footer-tagline {
    color: #888;
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
    padding-left: 0.5rem;
    border-left: 3px solid #8B2C2C;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #8B2C2C, #FF6B35);
}

.footer-section a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #999;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-section a span {
    color: #8B2C2C;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-section a:hover span {
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    letter-spacing: 0.05em;
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero-main {
        gap: 2rem;
    }

    .hero-title-compact {
        font-size: 2rem;
    }

    .hero-subtitle-compact {
        font-size: 1rem;
    }

    .hero-cta-text {
        font-size: 0.85rem;
    }

    .stat-circle-compact {
        width: 60px;
        height: 60px;
    }

    .stat-number-compact {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 1rem 1rem;
    }

    .hero-logo-compact {
        width: 100px;
        margin-bottom: 0.75rem;
    }

    .hero-main {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title-compact {
        font-size: 1.75rem;
        white-space: normal;
    }

    .hero-subtitle-compact {
        font-size: 0.95rem;
        white-space: normal;
    }

    .hero-cta-text {
        font-size: 0.8rem;
        white-space: normal;
    }

    .stat-item-compact {
        flex-direction: row;
        gap: 0.5rem;
    }

    .stat-circle-compact {
        width: 50px;
        height: 50px;
    }

    .stat-number-compact {
        font-size: 1.25rem;
    }

    .stat-label-compact {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0.75rem 1rem 0.75rem;
    }

    .hero-logo-compact {
        width: 80px;
        margin-bottom: 0.5rem;
    }

    .hero-main {
        gap: 0.75rem;
    }

    .hero-title-compact {
        font-size: 1.5rem;
    }

    .hero-subtitle-compact {
        font-size: 0.85rem;
    }

    .hero-cta-text {
        font-size: 0.75rem;
    }

    .stat-circle-compact {
        width: 45px;
        height: 45px;
    }

    .stat-number-compact {
        font-size: 1.1rem;
    }

    .stat-label-compact {
        font-size: 0.65rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* Tone Guide Styles */
.tone-container {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.genre-selection {
    margin-bottom: 1rem;
}

.genre-selection h3 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.genre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.genre-btn {
    padding: 0.4rem 0.9rem;
    border: 2px solid #8B2C2C;
    border-radius: 6px;
    background: linear-gradient(135deg, #f4f4f4 0%, #e0e0e0 100%);
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.genre-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 44, 44, 0.3);
}

.genre-btn.active {
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 44, 44, 0.5);
}

.tone-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tone-info h3 {
    color: #1a1a1a;
    margin-bottom: 0.15rem;
    font-size: 1rem;
}

.tone-info p {
    color: #666;
    font-size: 0.85rem;
}

/* Marshall Amp Panel */
.amp-panel {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #444;
}

.amp-title {
    color: #D4AF37;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    letter-spacing: 2px;
}

.amp-knobs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

/* Marshall Style Knob */
.marshall-knob {
    width: 85px;
    height: 85px;
    position: relative;
    cursor: default;
}

/* Scale markings around knob */
.knob-scale {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.scale-num {
    position: absolute;
    color: #D4AF37;
    font-size: 0.65rem;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-42px) rotate(calc(-1 * var(--angle)));
}

.scale-tick {
    position: absolute;
    width: 2px;
    height: 5px;
    background: #888;
    left: 50%;
    top: 0;
    transform-origin: 50% 42px;
    transform: translateX(-50%) rotate(var(--angle));
}

.knob-outer {
    width: 52px;
    height: 52px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.knob-inner {
    width: 65%;
    height: 65%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #F4D03F 0%, #D4AF37 50%, #B8860B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5),
                inset 0 2px 8px rgba(255, 255, 255, 0.3),
                inset 0 -2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.knob-pointer {
    width: 3px;
    height: 40%;
    background: #1a1a1a;
    position: absolute;
    top: 10%;
    left: 50%;
    transform-origin: 50% 100%;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.knob-label {
    color: #D4AF37;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: center;
}

.knob-value {
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    background: rgba(139, 44, 44, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #8B2C2C;
    min-width: 32px;
    text-align: center;
}

/* Tone Extras Section */
.tone-extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.extras-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.extras-section h4 {
    color: #8B2C2C;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.extras-section p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Songwriter Helper Styles */
.songwriter-container {
    padding: 1.5rem;
}

.songwriter-container .button-group {
    display: flex !important;
    background: none !important;
    padding: 0 !important;
    margin: 1rem auto !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
}

.songwriter-controls {
    margin-bottom: 1.5rem;
}

.songwriter-controls .control-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.songwriter-controls .control-group {
    flex: 1;
    min-width: 200px;
}

.progression-display-songwriter {
    min-height: 150px;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.progression-display-songwriter .empty-progression {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

.songwriter-progression {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.songwriter-chord-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.songwriter-chord-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B2C2C;
    min-width: 80px;
    text-align: center;
}

.songwriter-chord-diagram {
    width: 80px;
    height: 100px;
}

.mini-chord-svg {
    width: 100%;
    height: 100%;
}

.mini-chord-placeholder {
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
    border: 2px dashed #ddd;
    border-radius: 4px;
}

.enhanced-chords-display {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fff9e6;
    border-radius: 8px;
    border: 2px solid #f5d742;
}

.enhanced-chords-display h3 {
    color: #8B2C2C;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.enhanced-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.enhanced-chord-suggestion {
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5d18a;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
    min-width: 180px;
}

.original-to-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.original-chord {
    font-weight: 600;
    color: #666;
    min-width: 60px;
}

.arrow {
    color: #8B2C2C;
    font-weight: 700;
    font-size: 1.5rem;
}

.enhanced-chord {
    font-weight: 700;
    color: #8B2C2C;
    min-width: 80px;
}

.enhanced-chord-diagram {
    width: 80px;
    height: 100px;
    margin-top: 0.5rem;
}

.enhanced-chord-name-display {
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid #8B2C2C;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #8B2C2C;
    text-align: center;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
    .amp-knobs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .marshall-knob {
        width: 80px;
        height: 80px;
    }

    .knob-outer {
        width: 50px;
        height: 50px;
    }

    .scale-num {
        font-size: 0.6rem;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-40px) rotate(calc(-1 * var(--angle)));
    }

    .amp-title {
        font-size: 1rem;
    }

    .genre-grid {
        justify-content: center;
    }

    .genre-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}
/* Ampeg SVT Bass Amp Styling */
.bass-amp-container {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.amp-header {
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #2c5f8d 0%, #1e4d73 100%);
    border-radius: 8px 8px 0 0;
    border: 2px solid #4a7ba7;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.1);
}

.amp-logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 123, 167, 0.3);
    letter-spacing: 5px;
    margin-bottom: 0.2rem;
}

.amp-model {
    font-size: 0.65rem;
    color: #a8d5ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.amp-faceplate {
    background: linear-gradient(180deg, #c0c5ce 0%, #8b92a0 100%);
    border-radius: 0 0 8px 8px;
    padding: 1.25rem;
    border: 2px solid #4a7ba7;
    border-top: none;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.amp-info {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 6px;
    border: 2px solid rgba(74, 123, 167, 0.3);
}

.genre-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.2rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.genre-description {
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.3;
    font-weight: 500;
}

.amp-controls {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.amp-slider-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.slider-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100px;
}

.amp-slider {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 30px;
    height: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #2c5f8d 50%, #1a1a2e 100%);
    border-radius: 15px;
    outline: none;
    cursor: default;
    border: 2px solid #4a7ba7;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 2px 5px rgba(0, 0, 0, 0.2);
}

.amp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 18px;
    background: linear-gradient(180deg, #d4d9e0 0%, #8b92a0 100%);
    cursor: default;
    border-radius: 3px;
    border: 2px solid #4a7ba7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.amp-slider::-moz-range-thumb {
    width: 40px;
    height: 18px;
    background: linear-gradient(180deg, #d4d9e0 0%, #8b92a0 100%);
    cursor: default;
    border-radius: 3px;
    border: 2px solid #4a7ba7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.slider-value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    min-width: 30px;
    padding: 0.3rem 0.5rem;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 4px;
    border: 2px solid rgba(74, 123, 167, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.genre-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.genre-selector .genre-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2c5f8d 0%, #1e4d73 100%);
    color: #fff;
    border: 2px solid #4a7ba7;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.genre-selector .genre-btn:hover {
    background: linear-gradient(135deg, #3a7ab5 0%, #2a5f95 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 123, 167, 0.4);
}

.genre-selector .genre-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .amp-logo {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }

    .amp-controls {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .amp-slider-container {
        min-width: 50px;
    }

    .slider-wrapper {
        height: 120px;
    }

    .amp-slider {
        width: 25px;
    }

    .amp-slider::-webkit-slider-thumb {
        width: 35px;
        height: 16px;
    }

    .amp-slider::-moz-range-thumb {
        width: 35px;
        height: 16px;
    }

    .genre-title {
        font-size: 1.1rem;
    }

    .genre-description {
        font-size: 0.8rem;
    }
}

/* What's This Button */
.whats-this-btn {
    background: rgba(139, 44, 44, 0.2);
    color: #FF6B35;
    border: 2px solid #8B2C2C;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: absolute;
    right: 4.8rem;
    top: 2.8rem;
}

.whats-this-btn:hover {
    background: #8B2C2C;
    color: white;
    transform: scale(1.1);
}

/* Info Modal */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.info-modal.active {
    display: flex;
}

.info-modal-content {
    background: #1a1a1a;
    border: 2px solid #8B2C2C;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    line-height: 1;
}

.info-modal-close:hover {
    color: #FF6B35;
}

.info-modal-content h3 {
    color: #FF6B35;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-modal-content p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
}

/* ===================================
   RSL GRADES TOOL
   =================================== */

.rsl-grades-container {
    padding: 1.5rem;
}

.rsl-controls {
    background: rgba(139, 44, 44, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.rsl-requirements {
    background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #ccc;
}

.rsl-grade-title {
    color: #8B2C2C;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.rsl-tempo {
    color: #555;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.rsl-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.req-item {
    background: #8B2C2C;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.rsl-section {
    margin-bottom: 2rem;
}

.rsl-section-title {
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8B2C2C;
}

.rsl-scales-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rsl-scale-box {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
}

.rsl-scale-name {
    color: #8B2C2C;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

.rsl-scale-fretboard-container {
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.rsl-scale-fretboard {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px 10px 40px 10px;
    position: relative;
    min-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.rsl-fretboard-basic {
    position: relative;
}

.rsl-nut-basic {
    position: absolute;
    left: 28px;
    top: 0px;
    bottom: 0px;
    width: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    z-index: 10;
}

.rsl-open-strings {
    position: absolute;
    left: 20px;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
    z-index: 11;
}

.rsl-open-indicator {
    height: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsl-open-indicator.active::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.6);
}

.rsl-string-labels {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
}

.rsl-string-label {
    color: #999;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: right;
    width: 15px;
}

.rsl-frets-basic {
    display: flex;
    margin-left: 40px;
}

.rsl-fret-basic {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 80px;
    height: 200px;
    position: relative;
    border-right: 2px solid #444;
}

.rsl-fret-basic[data-fret="0"] {
    width: 60px;
    border-right: none;
}

.rsl-fret-number-basic {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: bold;
    color: #999;
    background: transparent;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsl-string-basic {
    height: 2px;
    background: #555;
    border-radius: 1px;
    position: relative;
    box-shadow: none;
}

.rsl-string-basic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.rsl-string-basic.has-note::before,
.rsl-string-basic.root-note::before {
    background: #4A90E2;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.8);
}

.rsl-string-basic.open-note::before {
    background: transparent;
    border: 2px solid #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.6);
}

.rsl-chords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
}

.rsl-chord-box {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
    text-align: center;
}

.rsl-chord-name {
    color: #8B2C2C;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.rsl-chord-diagram {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rsl-arpeggios-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rsl-chords-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }

    .rsl-summary {
        flex-direction: column;
    }

    .rsl-scale-fretboard {
        min-width: 500px;
    }
}

/* ===== Chords in Keys Tool ===== */
.chords-keys-container {
    padding: 1.5rem;
}

.chords-keys-controls {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.chords-keys-controls .control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chords-keys-controls label {
    font-weight: 600;
    color: #8B2C2C;
}

.chords-keys-controls select {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 2px solid #8B2C2C;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    min-width: 150px;
}

#chordsKeysDisplay {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ck-chord-card {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
    text-align: center;
    transition: transform 0.2s;
}

.ck-chord-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ck-chord-name {
    color: #8B2C2C;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.ck-chord-type {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.75rem 0;
    font-style: italic;
}

.ck-chord-diagram {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ck-key-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 12px;
    border: 2px solid #ddd;
}

.ck-key-info h3 {
    color: #8B2C2C;
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.ck-key-info p {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
}

/* Technique Lab / Picking Exercises Styles */
.exercise-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #555555;
    border-radius: 8px;
    background-color: #333333;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exercise-select:hover {
    background-color: #3a3a3a;
    border-color: #FF6B35;
}

.exercise-select:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.exercise-select optgroup {
    background-color: #2a2a2a;
    color: #FF6B35;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
}

.exercise-select option {
    background-color: #333333;
    color: #ffffff;
    padding: 8px 12px;
    font-weight: 400;
}

/* Make Stop button dark red/maroon in Technique Lab */
#tool-technique-lab .reset-btn {
    background: linear-gradient(135deg, rgba(139, 44, 44, 0.9) 0%, rgba(90, 28, 28, 0.9) 100%);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

#tool-technique-lab .reset-btn:hover {
    background: linear-gradient(135deg, rgba(139, 44, 44, 1) 0%, rgba(90, 28, 28, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 44, 44, 0.4);
}

/* Technique Lab - wider panel for better tablature display */
#tool-technique-lab .tool-panel {
    max-width: 1200px;
    max-height: 95vh;
}

.technique-lab-container {
    padding: 1.5rem;
}

/* Layout Toggle */
.layout-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: fit-content;
}

.layout-label {
    color: #999;
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.layout-btn {
    padding: 0.4rem 0.75rem;
    border: 1px solid #555;
    border-radius: 6px;
    background: #333;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.layout-btn:hover {
    background: #444;
    border-color: #666;
}

.layout-btn.active {
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    border-color: #8B2C2C;
    color: #fff;
}

/* AlphaTab surface - page layout that fits container */
.alphatab-surface {
    min-height: 300px;
    max-height: 500px;
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
}

/* Style alphaTab SVG rendering */
.alphatab-surface .at-surface-svg {
    display: block;
}

/* Scale up alphaTab rendering */
.alphatab-surface > * {
    transform-origin: top left;
}

/* AlphaTab playback cursor - only show when playing */
.at-cursor-bar {
    background: rgba(255, 107, 53, 0.3) !important;
    width: 3px !important;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Show cursor when alphaTab is in playing state */
.alphatab-surface.playing .at-cursor-bar {
    opacity: 1 !important;
}

.at-cursor-beat {
    background: rgba(255, 107, 53, 0.5) !important;
}

.at-selection {
    background: rgba(255, 107, 53, 0.2) !important;
}

/* Pedal Board Builder Styles */
.pedalboard-container {
    padding: 1.5rem;
}

.genre-selector, .budget-selector {
    margin-bottom: 1.5rem;
}

.genre-selector h3, .budget-selector h3 {
    color: #FF6B35;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* FX Loop Toggle */
.fx-loop-toggle {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.05);
    border: 2px solid #FF6B35;
    border-radius: 8px;
}

.fx-loop-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.fx-loop-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FF6B35;
}

.fx-loop-text {
    color: #FF6B35;
    font-weight: 600;
    font-size: 1rem;
}

/* FX Loop Sections */
.fx-loop-section {
    margin-bottom: 2rem;
}

.fx-section-title {
    color: #FF6B35;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border-left: 4px solid #FF6B35;
    border-radius: 4px;
}

.genre-select {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.genre-select:hover {
    border-color: #FF6B35;
    background-color: #333;
}

.budget-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.budget-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.budget-btn:hover {
    background-color: #333;
    border-color: #666;
}

.budget-btn.active {
    background: linear-gradient(135deg, #FF6B35, #ff8c5a);
    border-color: #FF6B35;
    color: #fff;
    font-weight: 600;
}

.pedalboard-display {
    min-height: 400px;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 1px, transparent 1px),
        linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 15px 15px, 100% 100%;
    background-position: 0 0, 0 0;
    border: 4px solid #3a3a3a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 8px rgba(0, 0, 0, 0.8);
    position: relative;
}

.pedalboard-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #888;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.pedalboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    position: relative;
    z-index: 2;
}

.pedal-card {
    width: 180px;
    perspective: 1000px;
}

.pedal-body {
    background:
        linear-gradient(to bottom,
            #e8e8e8 0%,
            #e8e8e8 55%,
            #d8d8d8 55%,
            #c8c8c8 100%
        );
    border: 3px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Horizontal line at 55% on each pedal */
.pedal-body::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    top: 55%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #2a2a2a 10%,
        #2a2a2a 90%,
        transparent
    );
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 1;
}

.pedal-card:hover .pedal-body {
    transform: translateY(-5px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.pedal-category {
    text-align: center;
    font-size: 0.7rem;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.pedal-name {
    text-align: center;
    font-size: 0.85rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.pedal-type {
    text-align: center;
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.pedal-led {
    width: 12px;
    height: 12px;
    background-color: #FF6B35;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
    position: relative;
    z-index: 2;
}

.pedal-knobs {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.knob {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #999, #333);
    border-radius: 50%;
    border: 1px solid #1a1a1a;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(255, 255, 255, 0.3);
    position: relative;
}

.knob::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background-color: #FF6B35;
    border-radius: 2px;
}

.signal-chain-info {
    background: linear-gradient(135deg, #8B2C2C 0%, #6B1C1C 100%);
    border: 2px solid #8B2C2C;
    border-radius: 8px;
    padding: 1.5rem;
}

.signal-chain-info h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.signal-chain-text {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.8;
}

.chain-highlight {
    color: #FF6B35;
    font-weight: 600;
}

/* ========================================
   EQUIPMENT BUYER STYLES
   ======================================== */

.equipment-buyer-container {
    padding: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.equipment-section {
    margin-bottom: 2rem;
}

.equipment-section h3 {
    color: #8B2C2C;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

/* Style Selection Buttons */
.style-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.style-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.style-btn:hover {
    border-color: #8B2C2C;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 44, 44, 0.3);
}

.style-btn.active {
    border-color: #FF6B35;
    background: linear-gradient(145deg, #3a2a2a, #2a1a1a);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.style-name {
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

/* Budget Tier Buttons */
.budget-tier-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.budget-tier-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.budget-tier-btn:hover {
    border-color: #8B2C2C;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 44, 44, 0.3);
}

.budget-tier-btn.active {
    border-color: #FF6B35;
    background: linear-gradient(145deg, #3a2a2a, #2a1a1a);
}

.budget-tier-name {
    color: #FF6B35;
    font-weight: bold;
    font-size: 1.1rem;
}

.budget-tier-price {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
}

.budget-tier-desc {
    color: #999;
    font-size: 0.85rem;
}

/* Results Section */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h3 {
    margin-bottom: 0;
}

.start-over-btn {
    background: #333;
    border: 1px solid #555;
    color: #FF6B35;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.start-over-btn:hover {
    background: #444;
    border-color: #FF6B35;
}

/* Guitar Results Grid */
.guitar-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Individual Guitar Card */
.guitar-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #444;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.guitar-card:hover {
    border-color: #8B2C2C;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 44, 44, 0.3);
}

.guitar-image-container {
    width: 100%;
    height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.guitar-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.guitar-card:hover .guitar-image {
    transform: scale(1.05);
}

.guitar-image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #252525, #1a1a1a);
    text-decoration: none;
    transition: all 0.3s ease;
}

.guitar-image-fallback:hover {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
}

.guitar-image-fallback:hover .guitar-silhouette {
    transform: scale(1.05);
}

.guitar-image-fallback:hover .view-images-text {
    color: #FF6B35;
}

.guitar-silhouette {
    transition: transform 0.3s ease;
}

.view-images-text {
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guitar-info {
    padding: 1.25rem;
}

.guitar-brand {
    color: #FF6B35;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.guitar-model {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.guitar-price {
    color: #8B2C2C;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.guitar-description {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.guitar-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.guitar-feature {
    background: #333;
    color: #ccc;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.guitar-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.guitar-link {
    flex: 1;
    min-width: 100px;
    background: #8B2C2C;
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.guitar-link:hover {
    background: #a33;
    transform: translateY(-2px);
}

.guitar-link.secondary {
    background: #333;
    border: 1px solid #555;
    color: #FF6B35;
}

.guitar-link.secondary:hover {
    background: #444;
    border-color: #FF6B35;
}

/* Budget Badge */
.budget-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #8B2C2C;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Pro Tip Section */
.pro-tip {
    background: linear-gradient(145deg, #2a2520, #1a1510);
    border: 1px solid #8B2C2C;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}

.pro-tip-title {
    color: #FF6B35;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pro-tip-text {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #chordsKeysDisplay {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .ck-chord-card {
        padding: 0.75rem;
    }

    .alphatab-surface {
        min-height: 300px;
    }

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

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

    .guitar-results {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   AI PRACTICE COACH STYLES
   ============================================ */

/* Premium Category Card Styling */
.category-card.premium-category {
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
}

.category-card.premium-category h2 {
    color: #fff;
}

.category-card.premium-category p {
    color: #aaa;
}

.category-card.premium-category .category-status {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
}

.category-card.premium-category:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.category-card.premium-category .category-icon {
    color: #FFD700;
}

.category-card.premium-category:hover .category-icon {
    color: #FFA500;
}

/* Premium Tool Card Styling */
.tool-card.premium-tool {
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
}

.tool-card.premium-tool:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.premium-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Panel Model Badge - Premium */
.pedal-model.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
}

/* AI Coach Container */
.ai-coach-container {
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}

/* Premium Banner */
.premium-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 12px 20px;
    margin: -20px -20px 20px -20px;
}

.premium-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #FFD700;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.premium-icon {
    color: #FFD700;
}

/* Coach Welcome Section */
.coach-welcome {
    text-align: center;
    padding: 20px 20px 30px;
}

.coach-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FF6B35;
    color: #FF6B35;
}

.coach-welcome h3 {
    color: #fff;
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.coach-welcome h3 span {
    color: #FF6B35;
}

.coach-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

/* Plan Toggle */
.plan-toggle-container {
    padding: 0 20px 20px;
}

.plan-toggle {
    display: flex;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.plan-toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-toggle-btn:hover {
    color: #fff;
}

.plan-toggle-btn.active {
    background: linear-gradient(145deg, #FF6B35, #e55a28);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Plan View */
.plan-view {
    display: none;
    padding: 0 20px;
}

.plan-view.active {
    display: block;
}

/* Plan Header */
.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(145deg, #1f1f1f, #171717);
    border-radius: 12px;
    margin-bottom: 20px;
}

.plan-date {
    display: flex;
    flex-direction: column;
}

.plan-day {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.plan-date-full {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.plan-focus {
    text-align: right;
}

.focus-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.focus-topic {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FF6B35;
}

/* Progress Bar */
.plan-progress-bar {
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #FFA500);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin: 0 0 25px 0;
}

/* Practice Tasks */
.practice-tasks {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.practice-task {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: linear-gradient(145deg, #1f1f1f, #171717);
    border-radius: 12px;
    border-left: 3px solid #333;
    transition: all 0.3s ease;
}

.practice-task:hover {
    background: linear-gradient(145deg, #252525, #1a1a1a);
}

.practice-task.completed {
    opacity: 0.6;
    border-left-color: #4CAF50;
}

.practice-task.completed .task-title {
    text-decoration: line-through;
    color: #666;
}

/* Task Checkbox */
.task-checkbox {
    flex-shrink: 0;
    padding-top: 2px;
}

.task-checkbox input[type="checkbox"] {
    display: none;
}

.task-checkbox label {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #444;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.task-checkbox label:hover {
    border-color: #FF6B35;
}

.task-checkbox input[type="checkbox"]:checked + label {
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    border-color: #4CAF50;
}

.task-checkbox input[type="checkbox"]:checked + label::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 8px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Task Content */
.task-content {
    flex: 1;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.task-number {
    width: 22px;
    height: 22px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
}

.task-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 10px;
}

.task-type.warmup {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.task-type.technique {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
}

.task-type.theory {
    background: rgba(156, 39, 176, 0.2);
    color: #BA68C8;
}

.task-type.apply {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.task-duration {
    margin-left: auto;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.task-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.task-description {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.task-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    color: #FF6B35;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-tool-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
}

.task-tool-btn svg {
    color: #FF6B35;
}

/* Plan Total */
.plan-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(145deg, #1f1f1f, #171717);
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.total-label {
    font-size: 0.9rem;
    color: #888;
}

.total-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FF6B35;
}

/* ============================================
   7-DAY PLAN VIEW STYLES
   ============================================ */

.week-overview {
    background: linear-gradient(145deg, #1f1f1f, #171717);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.week-header {
    text-align: center;
    margin-bottom: 20px;
}

.week-header h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 5px 0;
}

.week-dates {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* Week Progress */
.week-progress {
    margin-bottom: 25px;
}

.week-progress-bar {
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.week-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #FFA500);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.week-progress-text {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin: 0;
}

/* Week Days */
.week-days {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.week-day {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 10px;
    border-left: 3px solid #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.week-day:hover {
    background: #222;
}

.week-day.completed {
    border-left-color: #4CAF50;
    opacity: 0.8;
}

.week-day.active {
    border-left-color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

/* Day Indicator */
.day-indicator {
    flex-shrink: 0;
    width: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
}

.day-number {
    width: 28px;
    height: 28px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
}

.week-day.active .day-number {
    background: #FF6B35;
    color: #fff;
}

.day-check {
    width: 28px;
    height: 28px;
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Day Content */
.day-content {
    flex: 1;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.day-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.day-tag.today {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    background: linear-gradient(145deg, #FF6B35, #e55a28);
    color: #fff;
    border-radius: 8px;
}

.day-duration {
    margin-left: auto;
    font-size: 0.8rem;
    color: #666;
}

.day-theme {
    margin-bottom: 6px;
}

.theme-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 8px;
}

.theme-badge.technique {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
}

.theme-badge.theory {
    background: rgba(156, 39, 176, 0.2);
    color: #BA68C8;
}

.theme-badge.songs {
    background: rgba(33, 150, 243, 0.2);
    color: #64B5F6;
}

.theme-badge.scales {
    background: rgba(0, 188, 212, 0.2);
    color: #4DD0E1;
}

.theme-badge.creative {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.theme-badge.review {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.day-focus {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* Week Stats */
.week-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background: linear-gradient(145deg, #1f1f1f, #171717);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Generate Plan Section */
.generate-plan-section {
    padding: 25px 20px 20px;
    text-align: center;
}

.generate-plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: #FFD700;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-plan-btn:hover {
    background: linear-gradient(145deg, #333, #222);
    border-color: #FFD700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.generate-plan-btn svg {
    transition: transform 0.3s ease;
}

.generate-plan-btn:hover svg {
    transform: rotate(72deg);
}

.generate-hint {
    font-size: 0.8rem;
    color: #555;
    margin: 12px 0 0 0;
}

/* AI Coach Panel */
.ai-coach-panel {
    max-width: 750px;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .plan-header {
        flex-direction: column;
        gap: 15px;
    }

    .plan-focus {
        text-align: left;
    }

    .practice-task {
        flex-direction: column;
        gap: 12px;
    }

    .task-checkbox {
        padding-top: 0;
    }

    .week-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .week-day {
        flex-direction: column;
        gap: 10px;
    }

    .day-indicator {
        width: 100%;
        justify-content: flex-start;
    }

    .day-header {
        flex-wrap: wrap;
    }

    .day-duration {
        margin-left: 0;
        width: 100%;
    }
}
