:root {
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent: #03B3D3; 
    --accent-glow: rgba(3, 179, 211, 0.2);
    --tuner-ok: #2ed573;
    --tuner-flat: #3498db;
    --tuner-sharp: #ee5253;
    --fretboard-bg: #121212;
}

/* Make the container wider for this page to fit the fretboard */
.container {
    max-width: 1200px;
}

/* Override global styles for unique tool accent */
::selection { background: var(--accent); }
::-webkit-scrollbar-thumb { background: var(--accent); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
    .container {
        max-width: 100%;
    }
}

.tool-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 32px;
    backdrop-filter: blur(20px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: 100%;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.tool-card:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: none !important;
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 16px;
}

.tool-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: #fff;
    opacity: 0.9;
}

/* Metronome Styles */
.bpm-display-container {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.bpm-display {
    font-size: 5rem;
    font-weight: 800;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease;
    background: transparent;
    border: none;
    width: 100%;
    max-width: 250px;
    font-family: inherit;
    outline: none;
    cursor: text;
}

.bpm-display:focus {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

/* Remove arrows from number input */
.bpm-display::-webkit-outer-spin-button,
.bpm-display::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.bpm-display[type=number] {
    -moz-appearance: textfield;
}

.bpm-display.beat-pulse {
    transform: scale(1.02);
    text-shadow: 0 0 40px var(--accent-glow);
}

.countin-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent);
    display: none;
    z-index: 5;
    text-shadow: 0 0 30px var(--accent-glow);
    pointer-events: none;
}

.bpm-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.btn-round {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-round:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-round:active {
    transform: scale(0.95);
}

.btn-main {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: none;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-main:hover {
    box-shadow: 0 12px 30px var(--accent-glow);
    filter: brightness(1.1);
}

.btn-main.active {
    background: #2f3542;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    color: #8898aa;
}

.btn-action {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* Clean Toggle Switch */
.custom-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.custom-toggle input {
    display: none !important;
}

.custom-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.05);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.custom-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.custom-toggle input:checked + .custom-slider {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.custom-toggle input:checked + .custom-slider:before {
    transform: translateX(20px);
}

/* Tuner Styles */
.tuner-display {
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    margin: 10px 0;
    border: 1px solid rgba(255,255,255,0.03);
}

.note-name {
    font-size: 6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

.freq-display {
    font-size: 1rem;
    color: #8898aa;
    margin-top: 5px;
    font-weight: 600;
    letter-spacing: 1px;
}

.tuner-meter {
    width: 80%;
    height: 4px;
    background: rgba(255,255,255,0.05);
    margin-top: 40px;
    position: relative;
    border-radius: 4px;
    overflow: visible;
}

.tuner-needle {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 3px;
    height: 24px;
    background: var(--accent);
    transition: left 0.1s linear;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 2;
}

.tuner-center {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 4px;
    height: 28px;
    background: var(--tuner-ok);
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0.5;
    z-index: 1;
}

.tuner-status {
    margin-top: 24px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    height: 20px;
}

.status-in-tune { color: var(--tuner-ok); text-shadow: 0 0 15px rgba(46, 213, 115, 0.3); }
.status-flat { color: var(--tuner-flat); }
.status-sharp { color: var(--tuner-sharp); }

/* Training Options */
.options-group {
    margin-top: 28px;
    background: rgba(0,0,0,0.15);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.03);
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.option-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8898aa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sequential Time Signature Styles */
.sequence-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.measure-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.02);
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}

.measure-row.active-measure {
    border-color: var(--accent-glow);
    background: rgba(3, 179, 211, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.measure-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-field {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0,0,0,0.3);
}

.measure-row .input-field {
    width: 48px;
    font-size: 0.9rem;
    font-weight: 800;
}

.measure-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    width: 28px;
    opacity: 0.8;
}

.measure-dots {
    display: flex;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap;
    min-height: 24px;
    align-content: center;
    justify-content: flex-start;
}

.measure-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.measure-dot.active {
    background: var(--accent);
    transform: scale(1.5);
    box-shadow: 0 0 12px var(--accent-glow);
}

.btn-small {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-small:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.btn-add-measure {
    width: 100%;
    margin-top: 16px;
    font-size: 0.8rem;
    padding: 12px;
    font-weight: 800;
    border-radius: 12px;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.btn-add-measure:hover {
    background: rgba(255,255,255,0.05);
    border-style: solid;
}

/* Presets Styling */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.btn-preset {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #a8b2cc;
    padding: 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-preset:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: var(--accent);
}

.btn-preset.active {
    background: var(--accent);
    color: #000 !important;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Fretboard Styling */
.fretboard-panel {
    display: grid;
    gap: 18px;
    align-items: start;
    margin-top: 18px;
    width: 100%;
}

.fretboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    padding: 0 4px 14px 4px;
    flex-wrap: nowrap;
}

.toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.toolbar-group.transpose-group {
    flex: 0 0 auto;
    min-width: 200px;
    align-items: center;
}

.transpose-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.transpose-actions .btn-small {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.transpose-actions .btn-small:hover {
    transform: translateY(-1px);
}

.btn-small {
    width: auto;
    min-width: 64px;
    height: 38px;
    border-radius: 12px;
}

.tuning-controls,
.tuning-rail {
    display: block;
}

.tuning-row {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 28px;
    padding: 2px 0;
}

.tuning-row label {
    font-size: 0.8rem;
    color: #fff;
    min-width: 62px;
    opacity: 0.85;
}

.tuning-row select.input-field {
    padding: 4px;
    font-size: 0.75rem;
    width: 50px;
    flex: none !important;
}

.fretboard-container {
    overflow-x: visible;
    background: var(--fretboard-bg);
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    border-radius: 24px;
    padding: 40px 20px 40px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    min-height: 260px;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 0;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.tuning-rail {
    position: relative;
    left: 0;
    top: 0;
    width: 60px;
    min-height: 100%;
    z-index: 10;
}

.tuning-row label {
    display: none;
}

@media (max-width: 1100px) {
    .fretboard-toolbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
        scrollbar-width: none;
    }
    .fretboard-toolbar::-webkit-scrollbar { display: none; }
    .toolbar-group {
        flex: 0 0 auto;
        min-width: 120px;
    }
    .toolbar-group.transpose-group {
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .fretboard-container {
        grid-template-columns: 60px 1fr;
        padding-bottom: 40px;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
    }
    .tuning-rail {
        width: 60px;
        position: relative;
        margin-bottom: 0;
    }
    .tuning-row {
        position: absolute;
        top: auto;
    }
    .tuning-row label {
        display: none;
    }
    .container {
        max-width: 100%;
    }
    .toolbar-group {
        flex: 0 0 calc(50% - 12px);
    }
}

.fretboard {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 180px;
    min-width: 0;
}

.string {
    position: absolute;
    right: 0;
    height: 3px;
    background: linear-gradient(180deg, #444 0%, #aaa 50%, #444 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    z-index: 5;
    pointer-events: none;
}

.fret {
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(90deg, #666, #ccc, #666);
    box-shadow: 1px 0 2px rgba(0,0,0,0.3);
    z-index: 4;
}

.fret-nut {
    width: 10px;
    background: #eee;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    z-index: 6;
    border-radius: 3px;
}

.fret-highlight {
    width: 4px;
    background: linear-gradient(90deg, #888, #eee, #888);
    z-index: 4;
}

.fret-num {
    position: absolute;
    top: -30px;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 800;
    color: #8898aa;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8;
}

.fret-marker {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

.fret-marker.double-marker::before,
.fret-marker.double-marker::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

.fret-marker.double-marker { background: transparent; box-shadow: none; border: none; }
.fret-marker.double-marker::before { top: -42px; left: 0; }
.fret-marker.double-marker::after { top: 42px; left: 0; }

.note-marker {
    position: absolute;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    transform: translate(-50%, -50%);
    z-index: 15;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.15s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.note-marker.root-note {
    background: #fff;
    color: #000;
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 16;
}

.note-marker.open-note {
    /* Now matches regular notes by default */
}

/* Circle of Fifths Improvement */
.circle-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1/1;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

.circle-svg {
    width: 100%;
    height: 100%;
}

.circle-slice {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    stroke: rgba(255,255,255,0.08);
    stroke-width: 1;
    pointer-events: auto;
}

.circle-slice:hover {
    filter: brightness(1.5);
    transform: scale(1.02);
    transform-origin: center;
}

.circle-slice.active {
    fill: var(--accent) !important;
    stroke: var(--accent);
    stroke-width: 2;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.circle-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    pointer-events: none;
    fill: #fff;
    transition: fill 0.3s ease;
    font-size: 13px;
}

.circle-text.minor {
    font-size: 10px;
    opacity: 0.7;
}

.permission-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 11, 16, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    padding: 40px;
    border-radius: 28px;
    backdrop-filter: blur(10px);
}

.tip-box {
    margin: 48px auto 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.tip-icon {
    background: var(--accent);
    color: #000;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px var(--accent-glow);
}

.tip-content h4 { color: #fff; margin: 0 0 4px 0; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }
.tip-content p { margin: 0; line-height: 1.6; color: #8898aa; font-size: 0.95rem; text-align: left; }

@media (max-width: 600px) {
    .tip-box { flex-direction: column; text-align: center; gap: 16px; }
    .tip-content p { text-align: center; }
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    cursor: help;
    color: var(--accent);
    opacity: 0.5;
    transition: all 0.2s;
    vertical-align: middle;
}

.tooltip:hover {
    opacity: 1;
    transform: scale(1.1);
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 220px;
    background: #1a1c24;
    color: #fff;
    text-align: left;
    border-radius: 12px;
    padding: 12px 16px;
    position: absolute;
    z-index: 100;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    pointer-events: none;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1a1c24 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Custom Slider Styling */
input[type=range] { -webkit-appearance: none; background: transparent; accent-color: var(--accent); }
input[type=range]::-webkit-slider-runnable-track { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%; background: #fff; cursor: pointer; margin-top: -7px; box-shadow: 0 0 10px rgba(0,0,0,0.5); transition: transform 0.2s ease; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); background: var(--accent); }

/* Chord Library Styles */
.chord-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.chord-diagram-container {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.chord-diagram-container:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(255,255,255,0.04);
}

.chord-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    display: block;
}

.chord-type-label {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
}

.chord-svg {
    width: 100px;
    height: 120px;
}

/* Chord Modal Styles */
.chord-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 11, 16, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    padding: 20px;
}

.chord-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 48px;
    position: relative;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 24px; right: 24px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}

.modal-close:hover {
    background: #ee5253;
    transform: rotate(90deg);
}

#modal-chord-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

#modal-chord-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

#modal-chord-type {
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 32px;
    display: block;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.measure-row { animation: fadeIn 0.3s ease-out; }