/* ==========================================================================
   Zeezora - Brazilian Chord Sheet Application
   Theme System: Revamped with Modern Colors & Typography
   ========================================================================== */

/* --- Color Palette --- */
:root {
    --color-black: #000000;
    --color-purple-dark: #7C3AED;
    --color-purple-light: #A78BFA;
    --color-blue-dark: #3B82F6;
    --color-blue-light: #60A5FA;
    --color-green: #22C55E;
    --color-white: #FFFFFF;
    --color-grey: #A0A0B0;

    /* Base sizes (mobile - 0-767px) */
    --top-bar-height: 48px;
    --alphabet-bar-height: 38px;
    --touch-target-min: 44px;
    --btn-height: 35px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --font-base: 15px;
    --font-song: 15px;
    --logo-height: 28px;
    --btn-font-size: 28px;
}

/* Tablet portrait (768px-1024px) */
@media (min-width: 768px) {
    :root {
        --top-bar-height: 52px;
        --alphabet-bar-height: 42px;
        --touch-target-min: 48px;
        --btn-height: 38px;
        --font-base: 16px;
        --font-song: 16px;
        --logo-height: 32px;
        --btn-font-size: 32px;
    }
}

/* Tablet landscape / Small laptop (1025px-1439px) */
@media (min-width: 1025px) {
    :root {
        --top-bar-height: 56px;
        --alphabet-bar-height: 46px;
        --touch-target-min: 48px;
        --btn-height: 38px;
        --font-base: 17px;
        --font-song: 17px;
        --logo-height: 36px;
        --btn-font-size: 34px;
    }
}

/* Desktop / Large screens (1440px+) */
@media (min-width: 1440px) {
    :root {
        --top-bar-height: 64px;
        --alphabet-bar-height: 52px;
        --touch-target-min: 52px;
        --btn-height: 42px;
        --font-base: 18px;
        --font-song: 18px;
        --logo-height: 42px;
        --btn-font-size: 36px;
    }
}

/* --- Default White Blue Theme --- */
:root,
[data-theme="white-blue"] {
    --color-primary: #3b82f6;
    --color-primary-hover: #2563EB;
    --color-primary-light: rgba(59, 130, 246, 0.1);
    --color-primary-border: rgba(59, 130, 246, 0.25);
    --color-bg: #FFFFFF;
    --color-surface: #F8FAFC;
    --color-surface-alt: #F1F5F9;
    --color-border: #E2E8F0;
    --color-border-strong: #CBD5E1;
    --color-text: #0F172A;
    --color-chord: #1f34ec;    
    --color-text-secondary: #334155;
    --color-text-muted: #64748B;
    --color-success: #16a34a;
    --color-success-hover: #15803d;
    --color-error: #dc2626;
    --color-error-hover: #b91c1c;
    --color-error-bg: rgba(220, 38, 38, 0.08);
    --color-error-border: rgba(220, 38, 38, 0.2);
    --color-success-bg: rgba(22, 163, 74, 0.08);
    --color-success-border: rgba(22, 163, 74, 0.2);
    --color-beat-accent: #9ca3af;
    --color-beat-inactive: #e5e7eb;
    --color-link: #3B82F6;
    --color-link-hover: #2563EB;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.08);
    --focus-ring: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-primary);
    --top-bar-bg: #000000;
    --logo-src: url('/static/images/zeezora 36 black bg.png');
}

/* --- Theme: Black Purple --- */
[data-theme="black-purple"] {
    --color-primary: #7C3AED;
    --color-primary-hover: #6D28D9;
    --color-primary-light: rgba(124, 58, 237, 0.2);
    --color-primary-border: rgba(124, 58, 237, 0.4);
    --color-bg: #000000;
    --color-surface: #1A1A2E;
    --color-surface-alt: #252542;
    --color-border: #2D2D4A;
    --color-border-strong: #3D3D5C;
    --color-text: #F8FAFC;
    --color-chord: #a981ec;    
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;
    --color-success: #22C55E;
    --color-success-hover: #4ADE80;
    --color-error: #EF4444;
    --color-error-hover: #DC2626;
    --color-error-bg: rgba(239, 68, 68, 0.15);
    --color-error-border: rgba(239, 68, 68, 0.3);
    --color-success-bg: rgba(34, 197, 94, 0.15);
    --color-success-border: rgba(34, 197, 94, 0.3);
    --color-beat-accent: #6b7280;
    --color-beat-inactive: #374151;
    --color-link: #ac86ec;
    --color-link-hover: #A78BFA;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.6), 0 2px 4px -2px rgba(0,0,0,0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.6), 0 4px 6px -4px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.7), 0 8px 10px -6px rgba(0,0,0,0.6);
    --focus-ring: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-primary);
    --top-bar-bg: #000000;
    --logo-src: url('/static/images/zeezora 36 black bg.png');
}

/* --- White Purple Theme --- */
[data-theme="white-purple"] {
    --color-primary: #7C3AED;
    --color-primary-hover: #6D28D9;
    --color-primary-light: rgba(124, 58, 237, 0.1);
    --color-primary-border: rgba(124, 58, 237, 0.25);
    --color-bg: #FFFFFF;
    --color-surface: #F8FAFC;
    --color-surface-alt: #F1F5F9;
    --color-border: #E2E8F0;
    --color-border-strong: #CBD5E1;
    --color-text: #0F172A;
    --color-chord: #540e83;
    --color-text-secondary: #334155;
    --color-text-muted: #64748B;
    --color-success: #16a34a;
    --color-success-hover: #15803d;
    --color-error: #dc2626;
    --color-error-hover: #b91c1c;
    --color-error-bg: rgba(220, 38, 38, 0.08);
    --color-error-border: rgba(220, 38, 38, 0.2);
    --color-success-bg: rgba(22, 163, 74, 0.08);
    --color-success-border: rgba(22, 163, 74, 0.2);
    --color-beat-accent: #9ca3af;
    --color-beat-inactive: #e5e7eb;
    --color-link: #7C3AED;
    --color-link-hover: #6D28D9;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.08);
    --focus-ring: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-primary);
    --top-bar-bg: #0F172A;
    --logo-src: url('/static/images/zeezora 36 black bg.png');
}

/* --- Black Blue Theme --- */
[data-theme="black-blue"] {
    --color-primary: #3B82F6;
    --color-primary-hover: #2563EB;
    --color-primary-light: rgba(59, 130, 246, 0.2);
    --color-primary-border: rgba(59, 130, 246, 0.4);
    --color-bg: #000000;
    --color-surface: #1A1A2E;
    --color-surface-alt: #252542;
    --color-border: #2D2D4A;
    --color-border-strong: #3D3D5C;
    --color-text: #F8FAFC;
    --color-chord: #71a4f5;    
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;
    --color-success: #22C55E;
    --color-success-hover: #4ADE80;
    --color-error: #EF4444;
    --color-error-hover: #DC2626;
    --color-error-bg: rgba(239, 68, 68, 0.15);
    --color-error-border: rgba(239, 68, 68, 0.3);
    --color-success-bg: rgba(34, 197, 94, 0.15);
    --color-success-border: rgba(34, 197, 94, 0.3);
    --color-beat-accent: #6b7280;
    --color-beat-inactive: #374151;
    --color-link: #7aa9f5;
    --color-link-hover: #60A5FA;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.6), 0 2px 4px -2px rgba(0,0,0,0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.6), 0 4px 6px -4px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.7), 0 8px 10px -6px rgba(0,0,0,0.6);
    --focus-ring: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-primary);
    --top-bar-bg: #0F0F23;
    --logo-src: url('/static/images/zeezora 36 black bg.png');
}


/* --- Animated Gradient Separator --- */
.top-bar-separator {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FA40E4 0%, #0034F2 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    z-index: 998;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Logo in Top Bar --- */
.zeezora-logo {
    height: var(--logo-height);
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.bar-title-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-name-top-bar {
    color: #979DBA;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    font-family: 'Poppins', sans-serif;
}

.alphabet-bar {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.chord-sidebar {
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
}

.chord-item {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.chord-item:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-border);
}

.song-content {
    column-rule-color: var(--color-border);
}

.chord-line {
    color: var(--color-primary);
}

.inline-decor-bg {
    display: inline;
    padding: 0 4px;
    line-height: 1.3;
    border-radius: 3px;
}

[data-theme="white-blue"] .inline-decor-bg {
    background-color: #dbeafe;
    color: #1e3a5f;
}

[data-theme="white-purple"] .inline-decor-bg {
    background-color: #ede9fe;
    color: #3b0764;
}

[data-theme="black-blue"] .inline-decor-bg {
    background-color: #1e2a4a;
    color: #93c5fd;
}

[data-theme="black-purple"] .inline-decor-bg {
    background-color: #2e1a4a;
    color: #c4b5fd;
}



.edit-textarea {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.suggestion-box {
    background-color: var(--color-surface);
    border-color: var(--color-border-strong);
    color: var(--color-text);
}

.modal-content {
    background: var(--color-surface);
}

.modal-header {
    background: var(--color-surface-alt);
    border-bottom-color: var(--color-border);
}

.setlist-dropdown {
    background: var(--color-surface);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-lg);
}

.setlist-dropdown-section select {
    background: var(--color-bg);
    border-color: var(--color-border-strong);
    color: var(--color-text);
}

.btn-setlist-action {
    background: var(--color-surface-alt);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.btn-setlist-action:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.btn-setlist-link {
    background: var(--color-surface-alt);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.btn-setlist-link:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.rhythm-editor-panel {
    background: var(--color-surface);
    border-top-color: var(--color-primary);
}

.setlist-sort-header h1 {
    color: var(--color-primary);
}

.song-drag-item {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.song-drag-item:hover {
    background-color: var(--color-surface-alt);
    border-color: var(--color-border-strong);
}

.song-drag-item .song-number {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.setlist-empty-message {
    color: var(--color-text-secondary);
}

.error-message {
    background-color: var(--color-error-bg);
    border-bottom-color: var(--color-error-border);
}

.suggestion-title {
    color: var(--color-primary);
}

.suggestion-description {
    color: var(--color-text-secondary);
}

details {
    background: var(--color-surface);
    border-color: var(--color-border);
}

summary {
    background: var(--color-surface-alt);
    color: var(--color-text-secondary);
}

details[open] summary {
    border-bottom-color: var(--color-border);
    color: var(--color-text);
}

summary:hover {
    background: var(--color-border);
}

.artist-grid {
    column-rule-color: var(--color-border);
}

.artist-grid a {
    color: var(--color-link);
}

.artist-grid a:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.letter-separator {
    background-color: var(--color-primary);
}

.song-item {
    border-bottom-color: var(--color-border);
}

.song-item:hover {
    background-color: var(--color-surface-alt);
}

.song-link {
    color: var(--color-text);
}

.song-link:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.song-link.visited {
    background-color: var(--color-primary-light);
    border-left-color: var(--color-primary);
}

.song-link.visited .s-artist {
    color: var(--color-text-secondary);
}

.s-artist {
    color: var(--color-text-secondary);
}

.s-divider {
    color: var(--color-border-strong);
}

.s-title {
    color: var(--color-text);
}

.setlist-info {
    background: var(--color-surface-alt);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.setlist-checkbox {
    accent-color: var(--color-primary);
}

.btn-back,
.btn-action,
.btn-col,
.btn-font {
    background: var(--color-surface-alt);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.btn-back:hover,
.btn-action:hover,
.btn-font:hover {
    background: var(--color-border);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.btn-toggle-chords {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-toggle-chords:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-toggle-chords.hidden-state {
    background: var(--color-surface-alt);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.btn-toggle-chords.hidden-state:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.btn-rhythm {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-rhythm:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-rhythm.playing {
    background: var(--color-success);
    border-color: var(--color-success);
}

.btn-nav {
    color: var(--color-primary);
}

.btn-nav:hover {
    background-color: var(--color-primary-light);
}

.alphabet-bar a {
    color: var(--color-text-secondary);
}

.alphabet-bar a:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.song-title-header {
    color: var(--color-text);
}

/* White themes: song title in top bar must be white since bar is black */
[data-theme="white-purple"] .song-title-header,
[data-theme="white-blue"] .song-title-header {
    color: #ffffff;
}


.chord-sidebar-header h3 {
    color: var(--color-primary);
}

.position-indicator {
    color: var(--color-text-muted);
}

.chord-modal {
    background: rgba(0, 0, 0, 0.7);
}

.modal-close {
    color: var(--color-text-muted);
}

.modal-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.position-option {
    border-color: var(--color-border);
}

.position-option:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.position-label {
    color: var(--color-text-secondary);
}

.btn-select-position {
    background: var(--color-primary);
    color: white;
}

.btn-select-position:hover {
    background: var(--color-primary-hover);
}

.btn-save {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-save:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.beat-circle,
.instrument-circle {
    background: var(--color-surface-alt);
}

.beat-circle:hover,
.instrument-circle:hover {
    background: var(--color-border-strong);
}

.instrument-circle.active {
    background: var(--color-primary);
}

.instrument-circle.active:hover {
    background: var(--color-primary-hover);
}

.rhythm-status {
    color: var(--color-text-secondary);
}

.rhythm-beat-indicator {
    background: var(--color-border-strong);
}

.rhythm-beat-indicator.flash {
    background: var(--color-primary);
}

.rhythm-table .instrument-label {
    color: var(--color-text-secondary);
}

.no-rhythm {
    color: var(--color-text-muted);
}

.rhythm-key-hint {
    color: var(--color-text-muted);
}

.rhythm-bpm-control label {
    color: var(--color-text-secondary);
}

.rhythm-bpm-control input {
    background: var(--color-bg);
    border-color: var(--color-border-strong);
    color: var(--color-text);
}

.rhythm-editor-title {
    color: var(--color-primary);
}

.rhythm-editor-close {
    color: var(--color-text-muted);
}

.rhythm-editor-close:hover {
    background: var(--color-surface-alt);
    color: var(--color-text);
}

.ordenacao-actions .btn-secondary {
    background: var(--color-surface-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.ordenacao-actions .btn-secondary:hover {
    background: var(--color-border);
}

.ordenacao-actions-top .btn-secondary {
    background: var(--color-surface-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.ordenacao-actions-top .btn-secondary:hover {
    background: var(--color-border);
}

.setlist-sort-header .btn-voltar {
    background: var(--color-surface-alt);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.setlist-sort-header .btn-voltar:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.btn-submit {
    background-color: var(--color-success);
    color: white;
}

.btn-submit:hover {
    background-color: var(--color-success-hover);
}

.separator {
    border-top-color: var(--color-border);
}

/* --- Scroll to Top Button --- */
.btn-scroll-top {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: var(--btn-height);
    height: var(--btn-height);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 900;
}

.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.btn-scroll-top:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-xl);
    transform: translateX(-50%) translateY(-2px);
}

.btn-scroll-top:active {
    transform: translateX(-50%) translateY(0);
}

.col-info {
    background: var(--color-surface-alt);
    color: var(--color-text-secondary);
}

.btn-primary,
.btn-suggest,
.btn-clear,
.btn-new-song,
.btn-view-sugestoes,
.btn-setlist {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover,
.btn-suggest:hover,
.btn-clear:hover,
.btn-new-song:hover,
.btn-view-sugestoes:hover,
.btn-setlist:hover {
    background-color: var(--color-primary-hover);
}

[data-theme="white-blue"] .btn-setlist-action.btn-danger,
[data-theme="white-purple"] .btn-setlist-action.btn-danger {
    background: var(--color-bg);
    color: var(--color-error);
    border-color: var(--color-border-strong);
}

[data-theme="white-blue"] .btn-setlist-action.btn-danger:hover,
[data-theme="white-purple"] .btn-setlist-action.btn-danger:hover {
    background: var(--color-surface-alt);
}

[data-theme="black-purple"] .btn-setlist-action.btn-danger,
[data-theme="black-blue"] .btn-setlist-action.btn-danger {
    background: var(--color-error-bg);
    color: var(--color-error);
    border-color: var(--color-error-border);
}

[data-theme="black-purple"] .btn-setlist-action.btn-danger:hover,
[data-theme="black-blue"] .btn-setlist-action.btn-danger:hover {
    background: var(--color-error-border);
}

/* Dark mode toggle button */
.btn-theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    color: #94A3B8;
    font-size: 1.1rem;
    line-height: 1;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logout button */
.btn-logout {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    color: #94A3B8;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-logout:hover {
    background: #252542;
    color: var(--color-error);
}

.btn-logout:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-theme-toggle:hover {
    background: #252542;
    color: #F8FAFC;
}

.btn-theme-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.top-bar .btn-back {
    background: none;
    border: none;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    color: #94A3B8;
}

.top-bar .btn-back:hover {
    background: #252542;
    color: #F8FAFC;
    border: none;
}

/* Actions dropdown */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-dropdown-trigger {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: inherit;
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.actions-dropdown-trigger:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.actions-dropdown-trigger:active {
    transform: translateY(0);
}

.actions-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    min-width: 140px;
    overflow: hidden;
    padding: 4px;
}

.actions-dropdown-menu.open {
    display: block;
}

.actions-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    color: var(--color-text-secondary);
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

.actions-dropdown-item:last-child {
    margin-bottom: 0;
}

.actions-dropdown-item:hover {
    background: var(--color-border);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.actions-dropdown-section {
    padding: 6px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 4px;
}

.actions-dropdown-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.actions-dropdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 4px;
}

.actions-dropdown-label-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-border, #ccc);
    transition: 0.2s;
    border-radius: 18px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--color-primary, #9b59b6);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(14px);
}

.col-mode-indicator {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.btn-rhythm-menu {
    background: var(--color-primary) !important;
    color: white !important;
    border-color: var(--color-primary) !important;
}

.btn-rhythm-menu:hover {
    background: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
}

.btn-font-menu,
.btn-col-menu,
.btn-transpose {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.transpose-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

.actions-dropdown-menu {
    min-width: 160px;
}

/* Theme transition on interactive elements */
body, .top-bar, .alphabet-bar, .chord-sidebar, .edit-textarea,
.suggestion-box, .modal-content, .setlist-dropdown, .rhythm-editor-panel,
.song-drag-item, details, summary, .chord-item, .song-item, .artist-grid a,
.song-link, .btn-nav, .btn-back, .btn-action, .btn-col, .btn-font,
.btn-primary, .btn-suggest, .btn-setlist, .btn-setlist-action, .btn-toggle-chords, .btn-rhythm,
.alphabet-bar a, .position-option, .beat-circle, .instrument-circle, .bulk-chord-item {
    transition: background-color var(--transition-normal),
                border-color var(--transition-normal),
                color var(--transition-normal),
                box-shadow var(--transition-normal);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--font-base);
    background-color: var(--color-bg);
    color: var(--color-text);
    padding-top: calc(var(--top-bar-height) + var(--alphabet-bar-height));
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Song page - no alphabet bar, only top bar */
body.song-page {
  padding-top: calc(var(--top-bar-height) * 1.1);
}

/* Song Title Overlay */
.song-title-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    padding: 12px 20px;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    animation: slideUpFade 3s ease-out forwards;
    pointer-events: none;
    font-size: 0.875rem;
    font-weight: 600;
}

@keyframes slideUpFade {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    10% {
        transform: translateY(0);
        opacity: 1;
    }
    85% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

.song-title-content {
    text-align: center;
}

.song-title-artist {
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.song-title-name {
    letter-spacing: 0.5px;
}

/* Chords use monospace */
.song-content,
.chord-name,
.edit-textarea {
    font-family: 'IBM Plex Mono', 'JetBrains Mono', 'Courier New', Courier, monospace;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Barra Superior --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-bar-height);
    background: var(--top-bar-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5), inset 0 -1px 0 rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1000;
    gap: 8px;
}

.nav-buttons-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-nav {
    text-decoration: none;
    color: var(--color-primary);
    background: transparent;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color var(--transition-fast);
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-nav svg {
    fill: currentColor;
}

.btn-nav:hover {
    background-color: var(--color-primary-light);
}

/* --- Barra de Alfabeto --- */
.alphabet-bar {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    right: 0;
    height: var(--alphabet-bar-height);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 0 12px;
    z-index: 999;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.alphabet-bar-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.alphabet-bar::-webkit-scrollbar {
    display: none;
}

.alphabet-bar a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    min-width: 28px;
    height: var(--btn-height);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.alphabet-bar a:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.alphabet-bar a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* --- Botões Gerais --- */
.btn-back, .btn-action, .btn-col, .btn-font {
    text-decoration: none;
    color: var(--color-text-secondary);
    background: var(--color-surface-alt);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    line-height: 1.4;
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-back svg, .btn-nav svg {
    fill: currentColor;
}

.btn-back:hover, .btn-action:hover, .btn-font:hover {
    background-color: var(--color-border);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.btn-back:focus-visible, .btn-action:focus-visible, .btn-font:focus-visible,
.btn-primary:focus-visible, .btn-submit:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Additional focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.song-link:focus-visible {
    outline: none;
    background-color: var(--color-primary-light);
    box-shadow: var(--focus-ring);
}

.artist-grid a:focus-visible {
    outline: none;
    background-color: var(--color-primary-light);
    box-shadow: var(--focus-ring);
}

.btn-col.active { background-color: var(--color-primary); color: white; border-color: var(--color-primary); }

/* --- Botões Primários Unificados --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    line-height: 1.4;
    height: var(--btn-height);
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-sm);
}

/* --- Botão de Sugestão --- */
.btn-suggest {
    background-color: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-suggest:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-sm);
}

/* --- NOVO: Formulário de Sugestão --- */
.suggestion-box {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 16px;
    resize: vertical;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: var(--color-surface);
    line-height: 1.6;
}

.suggestion-box:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.btn-submit {
    background-color: var(--color-success);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-fast);
    font-family: inherit;
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-submit:hover { background-color: var(--color-success-hover); box-shadow: var(--shadow-sm); }

.btn-clear {
    background-color: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- NOVO: Botão Nova Música --- */
.btn-new-song {
    background-color: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-clear:hover { background-color: var(--color-primary-hover); }

.btn-view-sugestoes {
    background-color: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-view-sugestoes:hover { background-color: var(--color-primary-hover); }

/* --- Container de botões de ação centralizado --- */
.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 0 8px;
}

.action-buttons form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* --- Container Principal da Lista --- */
.container-list {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    padding-top: 0;
    box-sizing: border-box;
}

/* --- Sugestão Container --- */
.suggest-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px;
    padding-top: 79px;
}

/* --- Índice de Artistas --- */
details {
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0;
    background: var(--color-surface);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

details:hover {
    box-shadow: var(--shadow-sm);
}

summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    outline: none;
    padding: 10px 16px;
    background: var(--color-surface-alt);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
    user-select: none;
}

details[open] summary {
    border-bottom-color: var(--color-border);
    color: var(--color-text);
}

summary:hover {
    background: var(--color-border);
}

summary::-webkit-details-marker {
    margin-right: 6px;
}

/* GRID DE ARTISTAS RESPONSIVO */
.artist-grid {
    margin-top: 0;
    padding: 12px 16px;
    column-count: 4;
    column-gap: 20px;
    column-rule: 1px solid var(--color-border);
}

/* Mobile: Ajuste para 2 colunas */
@media (max-width: 768px) {
    .artist-grid {
        column-count: 2;
    }
}

.artist-grid a {
    display: block;
    text-decoration: none;
    color: var(--color-link);
    font-size: 0.85rem;
    margin-bottom: 4px;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.artist-grid a:hover {
    text-decoration: none;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.separator { border: 0; border-top: 1px solid var(--color-border); margin: 16px 0; }

/* --- Lista de Músicas Compacta --- */
.song-list-compact ul { list-style: none; }
.letter-separator {
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    padding: 4px 12px;
    font-size: 0.85rem;
    margin-top: 16px;
    border-radius: var(--radius-sm);
    scroll-margin-top: calc(var(--top-bar-height) + var(--alphabet-bar-height) + 30px);
    letter-spacing: 0.02em;
}
.song-item {
    border-bottom: 1px solid var(--color-border);
    line-height: 1.3;
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
    transform-origin: left center;
    cursor: pointer;
    height: var(--btn-height);
}
.song-item:hover {
    background-color: var(--color-surface-alt);
    transform: scale(1.005);
}
.song-link {
    display: flex;
    align-items: center;
    padding: 8px 8px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.925rem;
    flex: 1;
    min-width: 0;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}
.song-link:hover { background-color: var(--color-primary-light); color: var(--color-primary); }
.song-link.visited {
    background-color: var(--color-primary-light);
    border-left: 3px solid var(--color-primary);
    padding-left: 5px;
    transition: background-color 0.4s ease, border-left-color 0.4s ease;
}
.song-link.visited .s-artist {
    color: var(--color-text-secondary);
}
.s-artist { font-weight: 600; color: var(--color-text-secondary); }
.s-divider { margin: 0 6px; color: var(--color-border-strong); font-weight: 300; }
.s-title { color: var(--color-text); }
.artist-anchor { display: block; min-height: 1px; scroll-margin-top: calc(var(--top-bar-height) + var(--alphabet-bar-height) + 30px); }

/* Empty state */
.setlist-empty-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}

.setlist-empty-message p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.setlist-empty-message p:last-child {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* --- Visualização da Música (Song Page) --- */
.container {
    padding: 8px 12px;
    padding-top: 4px;
    width: 100%;
    max-width: 100%;
    background-color: var(--color-bg);
    min-height: calc(100vh - 50px);  
    box-sizing: border-box;
}
.song-content {
    font-family: 'IBM Plex Mono', 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: var(--font-song);
    font-weight: 500;
    line-height: 0.95;
    column-gap: 1.5rem;
    column-rule: 1px solid var(--color-border);
    widows: 1; orphans: 1;
    margin-top: 0;
    padding-top: 0;
}
.song-content.single-col-mode {
    height: auto !important;
    column-count: 1 !important;
    width: 100%;
    max-width: 100%;
    padding-bottom: 50px;
    box-sizing: border-box;
    touch-action: manipulation;
}
.song-content.single-col-mode .line {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.line-wrapper {
    display: block;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin: 0;
    padding: 0;
}
.line {
    display: block;
    min-height: 0.7em;
    white-space: pre;
    margin: 0;
    padding: 0;
}

/* Remove space before first line */
.line-wrapper:first-child {
    margin-top: 0;
}

.song-content .line-wrapper:first-child .line {
    margin-top: 0;
    padding-top: 0;
}
.chord-line { color: var(--color-chord); font-weight: 500; }

[data-theme="white-blue"] .inline-decor-01,
[data-theme="white-purple"] .inline-decor-01 {
    color: #c2410c;
    font-weight: 600;
}

[data-theme="white-blue"] .inline-decor-02 {
    color: #7c3aed;
    font-weight: 600;
}

[data-theme="white-purple"] .inline-decor-02 {
    color: #0369a1;
    font-weight: 600;
}

[data-theme="black-blue"] .inline-decor-01,
[data-theme="black-purple"] .inline-decor-01 {
    color: #fb923c;
    font-weight: 600;
}

[data-theme="black-blue"] .inline-decor-02 {
    color: #c084fc;
    font-weight: 600;
}

[data-theme="black-purple"] .inline-decor-02 {
    color: #67e8f9;
    font-weight: 600;
}

.inline-decor-03 {
    display: inline;
    padding: 0 4px;
    line-height: 1.3;
    border-radius: 3px;
}

[data-theme="white-blue"] .inline-decor-03 {
    background-color: #f3e8ff;
    color: #3b0764;
}

[data-theme="white-purple"] .inline-decor-03 {
    background-color: #e0f2fe;
    color: #1e3a5f;
}

[data-theme="black-blue"] .inline-decor-03 {
    background-color: #3b1f5e;
    color: #c4b5fd;
}

[data-theme="black-purple"] .inline-decor-03 {
    background-color: #1a2e4a;
    color: #93c5fd;
}

.song-title-header {
    font-weight: 600; font-size: 0.85rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 50%; text-align: center;
    color: var(--color-text);
    transition: font-size var(--transition-fast);
}
.bar-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.col-label { font-size: 0.8rem; display: none; }

/* Font size buttons */
.btn-font {
    width: var(--btn-font-size);
    height: var(--btn-font-size);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .song-title-header { font-size: 1rem; letter-spacing: 0.02em; font-weight: 700; }
    .col-label { display: inline; }
    .song-content { font-size: 16px; }
}

/* Song page top bar */
.song-top-bar {
    background: var(--top-bar-bg);
    border-bottom: 1px solid var(--color-primary-border);
}

/* Index page top bar */
.index-top-bar {
    background: var(--top-bar-bg);
    border-bottom: 1px solid var(--color-primary-border);
}
/* Mobile - preserve for audience (max 767px) */
@media (max-width: 767px) {
    :root {
        --top-bar-height: 44px;
        --alphabet-bar-height: 34px;
        --touch-target-min: 44px;
        --btn-height: 32px;
        --font-base: 14px;
        --font-song: 14px;
        --logo-height: 24px;
        --btn-font-size: 24px;
    }

    .song-content { line-height: 1.1; }
    .top-bar { padding: 0 8px; }
    .song-title-header { max-width: 40%; font-size: 0.8rem; }
    .top-bar-separator { top: 44px; height: 2px; }
}

/* JavaScript automatic column classes */
.col-info {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    background: var(--color-surface-alt);
    padding: 2px 6px;
    border-radius: 3px;
}

.auto-1-col {
    height: auto !important;
    column-count: 1 !important;
    padding-bottom: 50px;
}

.auto-2-cols { column-count: 2; column-gap: 1.5rem; }
.auto-3-cols { column-count: 3; column-gap: 1.5rem; }
.auto-4-cols { column-count: 4; column-gap: 1.5rem; }
.auto-5-cols { column-count: 5; column-gap: 1.5rem; }
.auto-6-cols { column-count: 6; column-gap: 1.5rem; }
.auto-7-cols { column-count: 7; column-gap: 1.5rem; }
.auto-8-cols { column-count: 8; column-gap: 1.5rem; }

/* === CHORD SIDEBAR STYLES === */
.chord-sidebar {
    position: fixed;
    left: 0;
    top: var(--top-bar-height);
    width: 100px !important;
    height: calc(100vh - var(--top-bar-height));
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    z-index: 100;
    padding: 8px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) transparent;
    transition: width 0.2s ease;
}

.chord-sidebar.two-column {
    width: 170px !important;
}

.chord-sidebar::-webkit-scrollbar {
    width: 4px;
}

.chord-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.chord-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: 4px;
}

.chord-sidebar-header {
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.chord-sidebar-header h3 {
    font-size: 0.75rem;
    color: var(--color-primary);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Poppins', sans-serif;
}

.chord-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chord-sidebar.two-column .chord-list {
    display: block;
    columns: 2;
    column-gap: 6px;
}

.chord-sidebar.two-column .chord-item {
    break-inside: avoid-column;
    margin-bottom: 4px;
}

.chord-item {
    text-align: center;
    padding: 4px 2px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chord-item:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-border);
    transform: translateX(2px);
    box-shadow: var(--shadow-xs);
}

.chord-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 2px;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fallback-dot {
    width: 6px;
    height: 6px;
    background-color: #facc15;
    border-radius: 50%;
    display: inline-block;
}

.chord-diagram-container {
    margin: 2px 0;
}

.chord-diagram-container svg {
    display: block;
    margin: 0 auto;
}

.position-indicator {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 3px;
}

/* Content adjustment when sidebar is present */
.with-chord-sidebar {
    padding-left: 108px;
    transition: padding-left 0.2s ease;
}

.with-chord-sidebar .song-content {
    width: calc(100% - 108px);
    max-width: calc(100% - 108px);
    transition: width 0.2s ease, max-width 0.2s ease;
}

.with-chord-sidebar.two-column-sidebar {
    padding-left: 178px;
}

.with-chord-sidebar.two-column-sidebar .song-content {
    width: calc(100% - 178px);
    max-width: calc(100% - 178px);
}

/* Hide chord sidebar on mobile */
@media (max-width: 767px) {
    .chord-sidebar {
        display: none;
    }
    .chord-sidebar.hidden {
        display: none !important;
    }
    .with-chord-sidebar {
        margin-left: 0;
    }
}

/* Toggle button for chord sidebar */
.btn-toggle-chords {
    background: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
    transition: all var(--transition-fast);
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
}

.btn-toggle-chords:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-toggle-chords.hidden-state {
    background: var(--color-surface-alt);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn-toggle-chords.hidden-state:hover {
    background: var(--color-border);
    color: var(--color-text);
}

/* Hidden state for chord sidebar (desktop) */
.chord-sidebar.hidden {
    display: none;
}

/* Adjust container when sidebar is hidden */
.with-chord-sidebar.without-chord-sidebar {
    margin-left: 0;
}

/* === CHORD MODAL STYLES === */
.chord-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}

[data-theme="white-purple"] .chord-modal,
[data-theme="white-blue"] .chord-modal {
    background: rgba(15, 23, 42, 0.6);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.2s ease;
    border: 1px solid var(--color-border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

.modal-header h3 span {
    color: var(--color-primary);
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.modal-body {
    padding: 20px;
}

.position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
}

.position-option {
    text-align: center;
    padding: 12px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.position-option:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
}

.position-svg {
    margin-bottom: 8px;
}

.position-svg svg {
    display: block;
    margin: 0 auto;
}

.position-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.btn-select-position {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.btn-select-position:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-sm);
}

/* === BULK CHORD MODAL STYLES === */
.bulk-chord-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}

[data-theme="white-purple"] .bulk-chord-modal,
[data-theme="white-blue"] .bulk-chord-modal {
    background: rgba(15, 23, 42, 0.6);
}

.bulk-modal-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.2s ease;
    border: 1px solid var(--color-border);
}

.bulk-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-shrink: 0;
}

.bulk-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 600;
}

.bulk-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.bulk-modal-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.bulk-modal-body {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}

.bulk-chord-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 3px;
}

.bulk-chord-item {
    text-align: center;
    padding: 2px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--color-surface);
}

.bulk-chord-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.bulk-chord-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.bulk-chord-controls {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.cycle-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.cycle-btn:hover {
    background: var(--color-primary-hover);
}

.bulk-chord-diagram {
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.bulk-chord-diagram svg {
    max-width: 80px;
    max-height: 80px;
}

.bulk-chord-position {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.bulk-chord-hide {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
}

.bulk-chord-hide label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.bulk-chord-hide input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
    accent-color: var(--color-primary);
}

.bulk-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex-shrink: 0;
}

.bulk-modal-footer .btn-cancel {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.bulk-modal-footer .btn-cancel:hover {
    background: var(--color-border);
}

.bulk-modal-footer .btn-save {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.bulk-modal-footer .btn-save:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-sm);
}

/* === SONG EDIT PAGE STYLES === */
html.edit-page {
    overflow: hidden;
}

html.edit-page body {
    padding-top: 0;
    overflow: hidden;
}

.error-message {
    position: fixed;
    top: 51px;
    left: 0;
    right: 0;
    background-color: var(--color-error-bg);
    color: var(--color-error);
    padding: 12px 20px;
    border-bottom: 2px solid var(--color-error-border);
    z-index: 999;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.edit-container {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.edit-container form {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.edit-container form .btn-save {
    align-self: flex-end;
    margin: 16px;
    z-index: 100;
}

.edit-textarea {
    width: 100%;
    height: 100%;
    padding: 16px;
    border: none;
    resize: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: 1.5;
    background-color: var(--color-surface);
    outline: none;
    white-space: pre;
    overflow: auto;
    color: var(--color-text);
    tab-size: 4;
}

.edit-textarea:focus {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.edit-textarea::placeholder {
    color: var(--color-text-muted);
}

.btn-save {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    font-weight: 600;
    transition: all var(--transition-fast);
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
}

.btn-save:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    box-shadow: var(--shadow-sm);
}

.btn-help {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    background-color: var(--color-surface-alt);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-help:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.help-markers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-marker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--color-surface-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.help-marker-code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    min-width: 80px;
}

.help-marker-desc {
    flex: 1;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.help-marker-example {
    font-size: 14px;
    padding: 4px 8px;
}

/* --- Setlist Styles --- */
.setlist-dropdown-container {
    position: relative;
    display: inline-block;
}

.btn-setlist {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: inherit;
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-setlist:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-setlist:active {
    transform: translateY(0);
}

.btn-primary:focus-visible,
.btn-suggest:focus-visible,
.btn-setlist:focus-visible,
.btn-new-song:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.setlist-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 300px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    padding: 16px;
    animation: slideUp 0.15s ease;
}

.setlist-dropdown.show {
    display: block;
}

.setlist-dropdown-section {
    margin-bottom: 12px;
}

.setlist-dropdown-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.03em;
}

.setlist-dropdown-section select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
    cursor: pointer;
}

.setlist-dropdown-section select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.setlist-dropdown-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.btn-setlist-action {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-family: inherit;
    color: var(--color-text-secondary);
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-setlist-action:hover {
    background: var(--color-border);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.btn-setlist-action.btn-danger {
    background: var(--color-surface);
    color: var(--color-error);
    border-color: var(--color-border-strong);
}

.btn-setlist-action.btn-danger:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-error);
}

.btn-setlist-link {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-family: inherit;
    height: var(--btn-height);
}

.btn-setlist-link:hover {
    background: var(--color-border);
    color: var(--color-text);
    text-decoration: none;
}

.setlist-checkbox {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.setlist-info {
    text-align: center;
    padding: 12px;
    margin-bottom: 16px;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

/* === RHYTHM PLAYER STYLES === */
.rhythm-player-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
}

.rhythm-header-btns {
    display: inline-flex;
    gap: 4px;
}

.btn-rhythm {
    background: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    font-family: inherit;
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-rhythm:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-rhythm.playing {
    background: var(--color-success);
    border-color: var(--color-success);
}

.rhythm-editor-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 2px solid var(--color-primary);
    padding: 16px;
    z-index: 500;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.rhythm-editor-panel.hidden {
    display: none;
}

.rhythm-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rhythm-editor-title {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.rhythm-editor-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text-muted);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.rhythm-editor-close:hover {
    background: var(--color-surface-alt);
    color: var(--color-text);
}

.rhythm-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rhythm-btn {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.rhythm-btn-record {
    background: var(--color-primary);
    color: white;
}

.rhythm-btn-record.recording {
    background: var(--color-primary-hover);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.rhythm-btn-play {
    background: var(--color-primary);
    color: white;
}

.rhythm-btn-play.playing {
    background: var(--color-primary-hover);
}

.rhythm-btn-save {
    background: var(--color-primary);
    color: white;
}

.rhythm-btn-save:hover {
    background: var(--color-primary-hover);
}

.rhythm-btn-clear {
    background: var(--color-primary);
    opacity: 0.7;
    color: white;
}

.rhythm-btn-clear:hover {
    background: var(--color-primary-hover);
}

.rhythm-btn-tempo {
    background: var(--color-primary);
    color: white;
}

.rhythm-btn-tempo:hover {
    background: var(--color-primary-hover);
}

.rhythm-bpm-input {
    width: 55px;
    height: 32px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    outline: none;
    -moz-appearance: textfield;
}

.rhythm-bpm-input::-webkit-inner-spin-button,
.rhythm-bpm-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rhythm-bpm-input:focus {
    border-color: var(--color-primary);
}

.rhythm-bpm-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-right: 4px;
}

.rhythm-btn-double {
    background: var(--color-primary);
    color: white;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.rhythm-btn-double:hover {
    background: var(--color-primary-hover);
}

.rhythm-btn-timing {
    background: var(--color-primary);
    color: white;
}

.rhythm-btn-timing.active {
    background: var(--color-primary-hover);
    border: 2px solid var(--color-primary);
}

.rhythm-bpm-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rhythm-bpm-control label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.rhythm-bpm-control input {
    width: 60px;
    padding: 5px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: center;
    -moz-appearance: textfield;
    font-family: inherit;
}

.rhythm-bpm-control input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.rhythm-bpm-control input::-webkit-outer-spin-button,
.rhythm-bpm-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rhythm-btn-apply {
    background: var(--color-primary);
    color: white;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.rhythm-btn-apply:hover {
    background: var(--color-primary-hover);
}

.rhythm-status {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    min-width: 80px;
    font-weight: 500;
}

.rhythm-beat-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-border-strong);
    display: inline-block;
    transition: background 0.1s;
}

.rhythm-beat-indicator.flash {
    background: var(--color-primary);
}

.rhythm-matrix {
    overflow-x: auto;
    padding: 8px 0;
}

.rhythm-table {
    border-collapse: collapse;
    margin: 0;
}

.rhythm-table th {
    vertical-align: middle;
}

.beat-sound-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 400;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    cursor: pointer;
    margin-left: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

.beat-sound-toggle input {
    margin: 0;
    width: 11px;
    height: 11px;
    cursor: pointer;
}

.rhythm-table td {
    padding: 4px;
    text-align: center;
    vertical-align: top;
}

.rhythm-table .instrument-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-align: right;
    padding-right: 8px;
    white-space: nowrap;
    font-weight: 500;
}

.beat-circle,
.instrument-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-surface-alt);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.beat-circle:hover,
.instrument-circle:hover {
    background: var(--color-border-strong);
}

.beat-circle.accent {
    background: var(--color-beat-accent);
}

.beat-circle.accent:hover {
    background: var(--color-border-strong);
}

.beat-circle.inactive {
    background: var(--color-beat-inactive);
    opacity: 0.5;
}

.beat-circle.loop-start {
    background: var(--color-success) !important;
    border: 2px solid var(--color-success-hover);
}

.beat-circle.loop-end-reference {
    background: var(--color-error) !important;
    border: 2px solid var(--color-error-hover);
}

.beat-circle.in-range {
    background: var(--color-surface-alt);
}

.beat-circle.in-range.accent {
    background: var(--color-beat-accent);
}

.beat-circle.out-of-range {
    background: var(--color-beat-inactive);
    opacity: 0.4;
}

.beat-circle.out-of-range.accent {
    background: var(--color-beat-accent);
    opacity: 0.4;
}

.instrument-circle.active {
    background: var(--color-primary);
}

.instrument-circle.active:hover {
    background: var(--color-primary-hover);
}

.beat-circle.playing,
.instrument-circle.playing {
    transform: scale(1.2);
    box-shadow: 0 0 6px var(--color-primary);
}

.rhythm-timing-controls {
    display: none;
}

.rhythm-timing-controls.visible {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 2px;
}

.timing-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.timing-btn.plus {
    background: var(--color-success);
    color: white;
}

.timing-btn.minus {
    background: var(--color-error);
    color: white;
}

.timing-btn:hover {
    transform: scale(1.1);
}

.no-rhythm {
    text-align: center;
    color: var(--color-text-muted);
    padding: 20px;
    font-style: italic;
}

.rhythm-key-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    text-align: center;
}

/* === SUGGESTION PAGE STYLES === */
.suggestion-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 20px;
}

.suggestion-title {
    margin-bottom: 16px;
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 700;
}

.suggestion-description {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* === SETLIST ORDERING PAGE STYLES === */
.setlist-sort-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

.setlist-sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.setlist-sort-header h1 {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.setlist-sort-header .btn-voltar {
    text-decoration: none;
    color: var(--color-text-secondary);
    background: var(--color-surface-alt);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.setlist-sort-header .btn-voltar:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.song-drag-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.song-drag-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    cursor: grab;
    transition: all var(--transition-fast);
    user-select: none;
}

.song-drag-item:hover {
    background-color: var(--color-surface-alt);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-border-strong);
}

.song-drag-item.dragging {
    opacity: 0.5;
    background: var(--color-surface-alt);
    cursor: grabbing;
    box-shadow: var(--shadow-md);
}

.song-drag-item.drag-over {
    border-top: 3px solid var(--color-primary);
}

.song-drag-item.selected {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
}

.song-drag-item .drag-handle {
    color: var(--color-text-muted);
    margin-right: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

.song-drag-item .song-number {
    font-weight: 700;
    color: var(--color-primary);
    margin-right: 10px;
    min-width: 28px;
    font-size: 0.85rem;
    text-align: center;
    background: var(--color-primary-light);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.song-drag-item .song-info {
    flex: 1;
    min-width: 0;
}

.song-drag-item .song-artist {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.song-drag-item .song-title {
    color: var(--color-text);
    font-size: 0.85rem;
}

.song-drag-item .song-divider {
    margin: 0 4px;
    color: var(--color-border-strong);
    font-weight: 300;
}

.ordenacao-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.ordenacao-actions .btn-primary {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.ordenacao-actions .btn-secondary {
    background: var(--color-surface-alt);
    color: var(--color-text);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: inherit;
    text-align: center;
}

.ordenacao-actions .btn-secondary:hover {
    background: var(--color-border);
}

.ordenacao-actions-top {
    display: flex;
    gap: 8px;
}

.ordenacao-actions-top .btn-primary {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.ordenacao-actions-top .btn-secondary {
    background: var(--color-surface-alt);
    color: var(--color-text);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: inherit;
    text-align: center;
}

.ordenacao-actions-top .btn-secondary:hover {
    background: var(--color-border);
}

/* ==========================================================================
   Login Page Styles
   ========================================================================== */

body.login-page {
    padding-top: 0;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px 24px;
    background: var(--color-surface, #ffffff);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    margin: 20px;
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo-img {
    max-width: 180px;
    height: auto;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text, #0f172a);
    text-align: center;
    margin: 0 0 8px 0;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #334155);
    text-align: center;
    margin: 0 0 24px 0;
}

.login-error {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    color: var(--color-error);
    padding: 12px 16px;
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-align: center;
}

.login-success {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success);
    padding: 12px 16px;
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text, #0f172a);
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"] {
    font-size: 0.95rem;
    padding: 12px 14px;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    background: var(--color-bg, #ffffff);
    color: var(--color-text, #0f172a);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-group input:focus {
    border-color: var(--color-primary, #7c3aed);
    box-shadow: 0 0 0 3px var(--color-primary-light, rgba(124, 58, 237, 0.1));
}

.form-group input::placeholder {
    color: var(--color-text-muted, #94a3b8);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted, #94a3b8);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--color-text-secondary, #334155);
}

.password-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-text-secondary, #334155);
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border, #cbd5e1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--color-primary, #7c3aed);
    border-color: var(--color-primary, #7c3aed);
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--color-primary, #7c3aed);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--color-primary-hover, #6d28d9);
    text-decoration: underline;
}

.btn-login-primary {
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 24px;
    background: var(--color-primary, #7c3aed);
    color: white;
    border: none;
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 8px;
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login-primary:hover {
    background: var(--color-primary-hover, #6d28d9);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-login-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-primary-light, rgba(124, 58, 237, 0.3));
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--color-text-muted, #94a3b8);
    font-size: 0.875rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border, #e2e8f0);
}

.login-divider span {
    padding: 0 16px;
}

.btn-magic-link {
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 24px;
    background: transparent;
    color: var(--color-primary, #7c3aed);
    border: 2px solid var(--color-primary, #7c3aed);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-magic-link:hover {
    background: var(--color-primary-light, rgba(124, 58, 237, 0.1));
}

.btn-magic-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-primary-light, rgba(124, 58, 237, 0.3));
}

.form-divider-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text, #0f172a);
    margin-top: 16px;
    margin-bottom: 4px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted, #64748b);
    margin-top: -4px;
    margin-bottom: 12px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--color-error, #dc2626);
    margin-top: 2px;
    min-height: 1.2em;
    display: block;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.form-error.visible {
    opacity: 1;
}

.slug-preview {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    background: var(--color-bg, #ffffff);
    overflow: hidden;
}

.slug-domain {
    font-size: 0.875rem;
    padding: 12px 0 12px 14px;
    color: var(--color-text-muted, #64748b);
    background: var(--color-surface, #f8fafc);
    border-right: 1px solid var(--color-border, #e2e8f0);
    white-space: nowrap;
}

.slug-preview input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.slug-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted, #64748b);
    margin-top: 4px;
}

.slug-hint.slug-error {
    color: var(--color-error, #dc2626);
}

.login-footer {
    font-size: 0.875rem;
    color: var(--color-text-secondary, #334155);
    text-align: center;
    margin-top: 24px;
}

.register-link {
    color: var(--color-primary, #7c3aed);
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-container {
        padding: 32px 20px;
        margin: 16px;
    }

    .login-title {
        font-size: 1.375rem;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .forgot-link {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Landing Page Styles
   ========================================================================== */

body.landing-page {
    padding-top: 0;
    background: #faf9f7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

.landing-page .top-bar,
.landing-page .alphabet-bar {
    display: none;
}

/* Hero Section - Immersive with live feel */
.landing-hero {
    padding: 80px 24px 60px;
    background: linear-gradient(180deg, #faf9f7 0%, #f5f3f0 100%);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-visual {
    flex: 0 0 320px;
    position: relative;
}

.hero-logo {
    margin-bottom: 32px;
}

.hero-logo-img {
    max-width: 240px;
    height: auto;
    opacity: 0.9;
}

.hero-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f0f0f;
    margin: 0 0 20px 0;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a4a4a;
    margin: 0 0 40px 0;
    line-height: 1.5;
    max-width: 520px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background: #7c3aed;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
    letter-spacing: -0.01em;
}

.hero-cta-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #7c3aed;
    background: transparent;
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.06);
    transform: translateY(-1px);
}

/* Phone Mockup - Enhanced with glow effect */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16162a 100%);
    border-radius: 40px;
    border: 3px solid #2d2d4a;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(124, 58, 237, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 60px rgba(124, 58, 237, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.4s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 26px;
    background: #1a1a2e;
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.phone-screen {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f18 100%);
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-header-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a0a0b0;
    letter-spacing: 0.01em;
}

.phone-header-live {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.1em;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.phone-song {
    padding: 18px;
    flex: 1;
    overflow: hidden;
}

.phone-song-artist {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #707080;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.phone-song-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.phone-chord-line {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 2px;
    line-height: 1.4;
}

.phone-lyric-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: #c0c0d0;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Steps Section - Cleaner, more spacious */
.landing-steps {
    padding: 100px 24px;
    background: #ffffff;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f0f0f;
    text-align: center;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin: 0 0 60px 0;
    font-weight: 400;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f0f0f;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.step-description {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Features Section - More refined */
.landing-features {
    padding: 80px 24px;
    background: #faf9f7;
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
}

.landing-features .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.landing-features .feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.landing-features .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.landing-features .feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(109, 40, 217, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
}

.landing-features .feature-text {
    flex: 1;
}

.landing-features .feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f0f0f;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.landing-features .feature-description {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Presentations Section */
.landing-profiles {
    padding: 100px 24px;
    background: #ffffff;
}

.profiles-container {
    max-width: 1100px;
    margin: 0 auto;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #faf9f7;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

.profile-card:hover {
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.12);
    transform: translateY(-2px);
}

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-avatar-placeholder {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
}

.profile-info {
    min-width: 0;
}

.profile-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f0f0f;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.profile-slug {
    font-size: 0.8rem;
    color: #7c3aed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.no-profiles {
    text-align: center;
    padding: 60px 24px;
    color: #888;
}

.no-profiles svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-profiles p {
    margin: 0 0 20px 0;
    font-size: 1.05rem;
}

/* CTA Section - Bold and inviting */
.landing-cta {
    padding: 100px 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
    position: relative;
    overflow: hidden;
}

.landing-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 32px 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 44px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
    letter-spacing: -0.01em;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

/* Footer - Clean and minimal */
.landing-footer {
    padding: 48px 24px;
    background: #faf9f7;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    opacity: 0.7;
}

.footer-text {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 8px 0;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .hero-visual {
        flex: 0 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-logo-img {
        max-width: 200px;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 30px;
    }

    .phone-notch {
        width: 100px;
        height: 20px;
    }

    .phone-screen {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .landing-features .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .landing-hero {
        padding: 40px 16px 24px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Presentation Banner
   ========================================================================== */

.profile-banner,
.profile-banner-fallback {
    width: calc(100% - 32px);
    max-width: calc(1200px - 32px);
    margin: 16px auto;
    aspect-ratio: 1546 / 423;
    max-height: 200px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-sizing: border-box;
}

.profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-banner-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #533483, #7c3aed, #a855f7, #ec4899, #f43f5e, #fbbf24, #22c55e, #3b82f6);
    background-size: 400% 400%;
    animation: bannerBackgroundShift 8s ease infinite;
}

.profile-banner-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: bannerShine 4s ease-in-out infinite;
}

.banner-animation {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: bannerFloat 3s ease-in-out infinite;
}

.banner-text {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 8vw, 4.5rem);
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(255,255,255,0.8),
        0 0 20px rgba(255,255,255,0.6),
        0 0 40px rgba(255,255,255,0.4),
        0 4px 8px rgba(0,0,0,0.5);
    animation:
        bannerSlideSequence 10s ease-in-out infinite,
        bannerGlow 2s ease-in-out infinite alternate,
        bannerSpin 6s linear infinite;
    letter-spacing: 0.05em;
    display: inline-block;
}

@keyframes bannerSlideSequence {
    0% { transform: translateX(-200px) rotate(-10deg); opacity: 0; }
    10% { transform: translateX(0) rotate(0); opacity: 1; }
    70% { transform: translateX(0) rotate(0); opacity: 1; }
    80% { transform: translateX(50px) rotate(2deg); opacity: 1; }
    90% { transform: translateX(200px) rotate(10deg); opacity: 0; }
    100% { transform: translateX(200px) rotate(10deg); opacity: 0; }
}

@keyframes bannerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes bannerBackgroundShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

@keyframes bannerShine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

@keyframes bannerGlow {
    0% {
        text-shadow:
            0 0 10px rgba(255,255,255,0.8),
            0 0 20px rgba(255,255,255,0.6),
            0 0 40px rgba(255,255,255,0.4),
            0 4px 8px rgba(0,0,0,0.5);
    }
    100% {
        text-shadow:
            0 0 15px rgba(255,255,255,1),
            0 0 30px rgba(255,255,255,0.9),
            0 0 60px rgba(255,255,255,0.7),
            0 4px 8px rgba(0,0,0,0.5);
    }
}

@keyframes bannerSpin {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@media (max-width: 767px) {
    .profile-banner,
    .profile-banner-fallback {
        max-height: 120px;
    }
}

@media (min-width: 768px) {
    .profile-banner,
    .profile-banner-fallback {
        max-height: 160px;
    }
}

@media (min-width: 1025px) {
    .profile-banner,
    .profile-banner-fallback {
        max-height: 180px;
    }
}

@media (min-width: 1440px) {
    .profile-banner,
    .profile-banner-fallback {
        max-height: 200px;
    }
}
/* ==========================================================================
   Admin Chords Page
   ========================================================================== */

body.admin-chords { padding-top: calc(var(--top-bar-height) + 2px); }
.admin-container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.admin-container h1 { color: var(--color-primary); margin-bottom: 30px; display: flex; align-items: center; gap: 12px; }
.chord-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; border: 1px solid var(--color-border); }
.chord-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.chord-names { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chord-name { font-size: 0.9rem; font-weight: 600; color: var(--color-primary); }
.chord-brazilian { font-size: 1.1em; color: var(--color-link); font-weight: 500; }
.chord-aliases { display: block; font-size: 0.75em; color: var(--color-text-muted); margin-top: 4px; font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace; }
.chord-count { color: var(--color-text-muted); font-size: 0.9em; }
.voicings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.voicing-card { background: var(--color-surface-alt); border-radius: var(--radius-md); padding: 12px; text-align: center; position: relative; }
.voicing-card.first { border: 2px solid var(--color-success); }
.voicing-index { position: absolute; top: 8px; left: 8px; background: var(--color-primary); color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 0.7em; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.voicing-svg { margin-bottom: 8px; }
.voicing-info { font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace; font-size: 0.75em; color: var(--color-text-muted); margin-bottom: 8px; }
.voicing-actions { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.btn-sm { padding: 4px 8px; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.75em; transition: all var(--transition-fast); font-family: inherit; }
.btn-edit { background: var(--color-primary); color: #fff; }
.btn-edit:hover { background: var(--color-primary-hover); }
.btn-delete { background: var(--color-error); color: #fff; }
.btn-delete:hover { background: var(--color-error-hover); }
.btn-save { background: var(--color-success); color: #fff; }
.btn-save:hover { background: var(--color-success-hover); }
.btn-cancel { background: var(--color-text-muted); color: #fff; }
.btn-cancel:hover { background: var(--color-text-secondary); }
.btn-reorder { background: var(--color-primary); color: #fff; padding: 4px 6px; }
.btn-reorder:hover { background: var(--color-primary-hover); }
.btn-reorder:disabled { background: var(--color-border); color: var(--color-text-muted); cursor: not-allowed; }
.edit-form { display: none; margin-top: 12px; }
.edit-form.active { display: block; }
.fret-inputs { display: flex; gap: 4px; justify-content: center; margin-bottom: 8px; }
.fret-input { width: 32px; text-align: center; padding: 4px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-text); font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace; font-size: 0.8em; }
.base-fret-input { width: 40px; }
.add-form { background: var(--color-surface); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; border: 1px dashed var(--color-border-strong); }
.add-form h3 { margin-top: 0; color: var(--color-text-secondary); }
.add-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.add-group { display: flex; flex-direction: column; gap: 4px; }
.add-group label { font-size: 0.8em; color: var(--color-text-muted); }
.add-group input { padding: 8px 12px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface-alt); color: var(--color-text); font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace; }
.add-group input:focus { outline: none; border-color: var(--color-primary); }
.search-box { width: 100%; max-width: 400px; padding: 12px 16px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); font-size: 1em; margin-bottom: 20px; font-family: inherit; }
.search-box:focus { outline: none; border-color: var(--color-primary); }
.chord-card.hidden { display: none; }
.stats { color: var(--color-text-muted); margin-bottom: 20px; display: flex; gap: 20px; flex-wrap: wrap; }
.stat-item { display: flex; align-items: center; gap: 6px; }
.stat-item.search-stat { color: var(--color-primary); }
.first-badge { position: absolute; top: 8px; right: 8px; background: var(--color-success); color: #fff; font-size: 0.6em; padding: 2px 6px; border-radius: var(--radius-sm); font-weight: bold; }
.actions-row { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.edit-row { display: flex; flex-direction: column; gap: 8px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--color-text-muted); }
.empty-state p:first-child { font-size: 1.2em; margin-bottom: 8px; }
.admin-search-form { display: flex; gap: 8px; margin-bottom: 20px; align-items: center; }
.admin-search-form .search-box { margin-bottom: 0; flex: 1; }
.btn-search { padding: 12px 20px !important; font-size: 1em !important; text-decoration: none; display: inline-flex; align-items: center; }

/* ==========================================================================
   Suggestions List Page
   ========================================================================== */

.suggestions-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg);
    min-height: 100vh;
    box-sizing: border-box;
}
.suggestion-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.suggestion-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.suggestion-delete {
    background: none;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 4px;
}
.suggestion-delete:hover {
    background: var(--color-error);
    color: white;
}
.suggestion-content {
    font-size: 0.85rem;
    color: var(--color-text);
    white-space: pre-wrap;
    line-height: 1.5;
}
.no-suggestions {
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px;
}

/* ==========================================================================
   Icon Visibility (Theme Toggle & Password Toggle)
   ========================================================================== */

.icon-sun,
.icon-eye,
.icon-collapse {
    display: none;
}

/* ==========================================================================
   Members Page
   ========================================================================== */

.members-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px;
}

.members-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.members-page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.members-page-count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.members-plan-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.members-plan-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.members-plan-info svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.members-plan-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.members-plan-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.btn-plan-change {
    padding: 8px 16px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-plan-change:hover {
    background: var(--color-primary);
    color: white;
}

.upgrade-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upgrade-banner-content svg {
    color: var(--color-error-border);
    flex-shrink: 0;
}

.members-upgrade-banner {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.members-upgrade-banner p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.9rem;
}

.members-section-block {
    margin-bottom: 32px;
}

.members-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 12px 0;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-surface);
    transition: background var(--transition-fast);
}

.member-item:hover {
    background: var(--color-surface-alt);
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.member-owner .member-avatar {
    background: var(--color-primary);
    color: #fff;
}

.invite-avatar {
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
}

.member-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.member-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-email {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-role-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.role-owner {
    background: var(--color-primary);
    color: #fff;
}

.role-admin {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
}

.role-member {
    background: var(--color-surface-alt);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.member-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-action-danger {
    color: var(--color-error) !important;
}

.btn-action-danger:hover {
    background: var(--color-error-bg) !important;
    border-color: var(--color-error-border) !important;
}

.members-empty {
    padding: 32px 20px;
    text-align: center;
    background: var(--color-surface);
    color: var(--color-text-muted);
}

.members-empty p {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
}

.members-empty p:last-child {
    font-size: 0.85rem;
}

.members-invite-form-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.members-feedback {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.members-feedback-success {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success);
}

.members-feedback-error {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    color: var(--color-error);
}

.members-invite-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.members-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.members-form-field {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.members-form-field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.members-form-field input,
.members-form-field select {
    font-size: 0.9rem;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.members-form-field input:focus,
.members-form-field select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

.members-permissions-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.members-permissions-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.members-permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.members-perm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.members-perm-check:hover {
    background: var(--color-surface-alt);
}

.members-perm-check input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.members-modal-content {
    max-width: 500px;
}

.members-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 600px) {
    .member-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .member-role-badge {
        order: 3;
    }

    .member-actions {
        order: 4;
        width: 100%;
        justify-content: flex-end;
    }

    .members-form-row {
        flex-direction: column;
    }

    .members-permissions-grid {
        grid-template-columns: 1fr;
    }

    .members-upgrade-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   UPGRADE PAGE
   ============================================ */

.upgrade-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
}

.upgrade-header {
    text-align: center;
    margin-bottom: 32px;
}

.upgrade-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
}

.upgrade-current-plan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.875rem;
}

.current-plan-label {
    color: var(--color-text-muted);
}

.current-plan-name {
    font-weight: 600;
    color: var(--color-primary);
}

.current-plan-billing {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.upgrade-billing-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.billing-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.billing-btn.active {
    background: var(--color-primary);
    color: white;
}

.billing-discount {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-left: 4px;
}

.billing-btn:not(.active) .billing-discount {
    background: var(--color-primary-light, rgba(31, 52, 236, 0.1));
    color: var(--color-primary);
}

.upgrade-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .upgrade-plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

.upgrade-plan-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.upgrade-plan-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.upgrade-plan-card.plan-current {
    border-color: var(--color-primary);
    background: var(--color-primary-light, rgba(31, 52, 236, 0.03));
}

.plan-badge-current {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 4px;
}

.plan-description {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 16px;
}

.plan-price-container {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.plan-price-free {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.plan-price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    vertical-align: top;
}

.plan-price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
}

.plan-price-period {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--color-text);
}

.plan-feature.feature-highlight {
    font-weight: 600;
    color: var(--color-primary);
}

.plan-feature.feature-check svg {
    color: #22c55e;
}

.plan-feature.feature-cross svg {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.plan-feature.feature-cross {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.btn-plan {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.btn-plan:hover {
    background: var(--color-primary);
    color: white;
}

.btn-plan.btn-plan-current {
    background: var(--color-primary);
    color: white;
    cursor: default;
    opacity: 0.7;
}

.upgrade-modal-content {
    max-width: 440px;
}

.upgrade-warning {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin: 16px 0;
    color: #92400e;
    font-size: 0.85rem;
}

.upgrade-warning svg {
    flex-shrink: 0;
    color: #f59e0b;
}

[data-theme="black-blue"] .upgrade-warning,
[data-theme="black-purple"] .upgrade-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.upgrade-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.upgrade-removed-list {
    padding: 12px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-top: 12px;
    font-size: 0.85rem;
}

.upgrade-removed-list ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.upgrade-removed-list li {
    padding: 2px 0;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Admin Dashboard
   ========================================================================== */

.admin-dashboard-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px;
}

.admin-dashboard-section {
    margin-bottom: 32px;
}

.admin-dashboard-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    padding-left: 4px;
}

.admin-dashboard-divider {
    height: 2px;
    background: linear-gradient(90deg, #FA40E4 0%, #0034F2 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    margin: 24px 0;
    border-radius: 1px;
}

.admin-dashboard-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.admin-dashboard-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-dashboard-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-light);
    border: 2px solid var(--color-primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

.admin-dashboard-profile-info h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.admin-dashboard-profile-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.admin-dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-dashboard-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    color: var(--color-text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.admin-dashboard-action-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.admin-dashboard-action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin-dashboard-action-btn.primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.admin-dashboard-action-btn.primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.admin-dashboard-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-dashboard-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition-fast);
    border-radius: var(--radius-sm);
}

.admin-dashboard-link-item:last-child {
    border-bottom: none;
}

.admin-dashboard-link-item:hover {
    background: var(--color-surface-alt);
}

.admin-dashboard-link-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.admin-dashboard-link-item span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-dashboard-link-item .link-chevron {
    margin-left: auto;
    color: var(--color-text-muted);
    opacity: 0.5;
}

/* ==========================================================================
   My Profiles Page
   ========================================================================== */

.my-profiles-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px;
}

.my-profiles-section {
    margin-bottom: 32px;
}

.my-profiles-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    padding-left: 4px;
}

.my-profiles-invite-card {
    background: var(--color-surface);
    border: 1px solid var(--color-primary-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.my-profiles-invite-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.my-profiles-invite-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.my-profiles-invite-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.my-profiles-invite-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.my-profiles-invite-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 2px 0 0;
}

.my-profiles-invite-actions {
    display: flex;
    gap: 10px;
}

.my-profiles-invite-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.my-profiles-invite-btn.accept {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: white;
}

.my-profiles-invite-btn.accept:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.my-profiles-invite-btn.reject {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.my-profiles-invite-btn.reject:hover {
    background: var(--color-error-bg);
    border-color: var(--color-error-border);
    color: var(--color-error);
}

.my-profiles-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
    text-decoration: none;
    color: var(--color-text);
}

.my-profiles-card:hover {
    box-shadow: var(--shadow-md);
}

.my-profiles-card.is-current {
    border-color: var(--color-primary);
    border-width: 2px;
    background: var(--color-primary-light);
}

.my-profiles-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface-alt);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.my-profiles-card.is-current .my-profiles-card-avatar {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.my-profiles-card-info {
    flex: 1;
    min-width: 0;
}

.my-profiles-card-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-profiles-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-profiles-card-role {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
}

.my-profiles-card.is-current .my-profiles-card-role {
    background: var(--color-primary);
    color: white;
}

.my-profiles-card-chevron {
    color: var(--color-text-muted);
    opacity: 0.4;
    flex-shrink: 0;
}

.my-profiles-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.my-profiles-create-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--color-text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 16px;
}

.my-profiles-create-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.my-profiles-create-btn svg {
    width: 20px;
    height: 20px;
}

/* Create Profile Modal */
.create-profile-modal-content {
    max-width: 440px;
}

.create-profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.create-profile-field label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.create-profile-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.create-profile-field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.create-profile-field .input-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.create-profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* ==========================================================================
   Profile Switcher (Index page)
   ========================================================================== */

.profile-switcher-container {
    position: relative;
    display: inline-block;
}

.profile-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    color: var(--color-text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

[data-theme="white-blue"] .profile-switcher-btn,
[data-theme="white-purple"] .profile-switcher-btn {
    background: #1a1a2e;
    color: #979dba;
    border-color: #2d2d4a;
}

[data-theme="white-blue"] .profile-switcher-btn:hover,
[data-theme="white-purple"] .profile-switcher-btn:hover {
    background: #252542;
    color: #f8fafc;
    border-color: #3d3d5c;
}

.profile-switcher-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.profile-switcher-btn svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.profile-switcher-btn.open svg.chevron-down {
    transform: rotate(180deg);
}

.profile-switcher-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.profile-switcher-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-switcher-dropdown-header {
    padding: 10px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

.profile-switcher-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--color-border);
}

.profile-switcher-item:last-child {
    border-bottom: none;
}

.profile-switcher-item:hover {
    background: var(--color-surface-alt);
}

.profile-switcher-item.is-current {
    background: var(--color-primary-light);
}

.profile-switcher-item-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.profile-switcher-item.is-current .profile-switcher-item-avatar {
    background: var(--color-primary);
    color: white;
}

.profile-switcher-item-info {
    flex: 1;
    min-width: 0;
}

.profile-switcher-item-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-switcher-item-role {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.profile-switcher-item-check {
    color: var(--color-primary);
    flex-shrink: 0;
}

.profile-switcher-footer {
    padding: 8px;
    border-top: 1px solid var(--color-border);
}

.profile-switcher-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.profile-switcher-footer a:hover {
    background: var(--color-surface-alt);
    color: var(--color-text);
}

.profile-switcher-footer a svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Bio Editor Page
   ========================================================================== */

.bio-editor-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 16px 48px;
}

.bio-editor-header {
    margin-bottom: 16px;
}

.bio-editor-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px 0;
}

.bio-editor-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.bio-editor-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.bio-editor-section-future {
    opacity: 0.6;
}

.bio-editor-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 10px 0;
}

.bio-editor-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: -4px 0 8px 0;
}

.bio-editor-form-group {
    margin-bottom: 10px;
}

.bio-editor-form-group:last-child {
    margin-bottom: 0;
}

.bio-editor-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.bio-editor-input,
.bio-editor-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.8rem;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.bio-editor-input:focus,
.bio-editor-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.bio-editor-textarea {
    resize: vertical;
    min-height: 64px;
}

.bio-editor-char-count {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.bio-color-schemes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
}

.bio-color-scheme-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-alt);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.bio-color-scheme-btn:hover {
    border-color: var(--color-border-strong);
}

.bio-color-scheme-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.bio-color-preview {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--preview-bg);
    border: 1.5px solid var(--preview-accent);
    flex-shrink: 0;
}

.bio-color-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text);
}

.bio-avatar-shapes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bio-shape-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-alt);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    font-size: 0.7rem;
    color: var(--color-text-secondary);
}

.bio-shape-btn:hover {
    border-color: var(--color-border-strong);
}

.bio-shape-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.bio-shape-preview {
    width: 28px;
    height: 28px;
    background: var(--color-border-strong);
}

.bio-shape-preview.circle {
    border-radius: 50%;
}

.bio-shape-preview.rounded {
    border-radius: 6px;
}

.bio-shape-preview.rectangle {
    border-radius: 3px;
    width: 40px;
    height: 24px;
}

.bio-editor-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--color-text);
}

.bio-editor-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.bio-sections-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bio-editor-placeholder {
    text-align: center;
    padding: 12px;
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.bio-editor-actions {
    margin-top: 16px;
}

.bio-editor-save-btn {
    width: 100%;
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bio-editor-save-btn:hover {
    background: var(--color-primary-hover);
}

.bio-editor-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bio-editor-preview-link {
    text-align: center;
    margin-top: 10px;
}

.bio-editor-preview-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-primary);
    font-size: 0.75rem;
    text-decoration: none;
}

.bio-editor-preview-link a:hover {
    text-decoration: underline;
}

.bio-toast {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.bio-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.bio-toast-success {
    background: var(--color-success);
    color: white;
}

.bio-toast-error {
    background: var(--color-error);
    color: white;
}

.btn-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.btn-preview:hover {
    background: var(--color-surface-alt);
    color: var(--color-primary);
}

.bio-editor-list {
    margin-bottom: 10px;
}

.bio-editor-empty {
    text-align: center;
    padding: 10px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
}

.bio-editor-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: all var(--transition-fast);
}

.bio-editor-list-item:hover {
    border-color: var(--color-border-strong);
}

.bio-editor-list-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bio-editor-list-item-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bio-editor-list-item-meta {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bio-editor-list-item-delete {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: 6px;
}

.bio-editor-list-item-delete:hover {
    background: var(--color-error);
    color: white;
}

.bio-editor-list-item-edit {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-right: 4px;
}

.bio-editor-list-item-edit:hover {
    background: var(--color-primary);
    color: white;
}

.bio-editor-platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .bio-editor-platforms-grid {
        grid-template-columns: 1fr;
    }
}

.bio-editor-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media (max-width: 480px) {
    .bio-editor-form-row {
        grid-template-columns: 1fr;
    }
}

.bio-editor-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bio-editor-add-btn:hover {
    background: var(--color-primary-hover);
}

/* Drag and Drop para ordenação de seções */
.bio-sections-order-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bio-section-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: move;
    transition: all 0.2s ease;
    user-select: none;
}

.bio-section-order-item:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-hover);
}

.bio-section-order-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.bio-section-order-item.drag-over {
    border-color: var(--color-primary);
    border-style: dashed;
    background: var(--color-primary-light);
}

.bio-section-order-handle {
    color: var(--color-text-muted);
    cursor: grab;
    display: flex;
    align-items: center;
}

.bio-section-order-handle:active {
    cursor: grabbing;
}

.bio-section-order-info {
    flex: 1;
}

.bio-section-order-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.bio-section-order-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.bio-section-order-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bio-section-order-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-border);
    transition: 0.3s;
    border-radius: 24px;
}

.bio-section-order-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.bio-section-order-toggle input:checked + .bio-section-order-toggle-slider {
    background-color: var(--color-primary);
}

.bio-section-order-toggle input:checked + .bio-section-order-toggle-slider:before {
    transform: translateX(20px);
}

.bio-editor-list-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bio-editor-list-item-expand {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.bio-editor-list-item-expand:hover {
    background: var(--color-surface);
    color: var(--color-primary);
}

.bio-editor-add-btn-secondary {
    background: var(--color-surface-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.bio-editor-add-btn-secondary:hover {
    background: var(--color-border);
}

.bio-editor-subsection-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin: 0 0 8px 0;
}

.bio-analytics-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
}

.bio-analytics-header {
    margin-bottom: 32px;
}

.bio-analytics-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px 0;
}

.bio-analytics-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.bio-analytics-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 600px) {
    .bio-analytics-metrics {
        grid-template-columns: 1fr;
    }
}

.bio-analytics-metric-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.bio-analytics-metric-icon {
    color: var(--color-primary);
    margin-bottom: 12px;
}

.bio-analytics-metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.bio-analytics-metric-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bio-analytics-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.bio-analytics-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 16px 0;
}

.bio-analytics-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bio-analytics-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.bio-analytics-link-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.bio-analytics-link-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.bio-analytics-loading {
    text-align: center;
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.bio-analytics-empty {
    text-align: center;
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.bio-analytics-error {
    text-align: center;
    padding: 20px;
    color: var(--color-error);
    font-size: 0.85rem;
}

.bio-analytics-content {
    margin-top: 12px;
}

.bio-analytics-loading {
    text-align: center;
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.bio-analytics-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .bio-analytics-metrics {
        grid-template-columns: 1fr;
    }
}

.bio-analytics-metric {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.bio-analytics-metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.bio-analytics-metric-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bio-analytics-links {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.bio-analytics-links-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 12px 0;
}

.bio-analytics-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bio-analytics-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.bio-analytics-link-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.bio-analytics-link-clicks {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

/* Custom Colors Panel */
.bio-custom-colors-panel {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
}

.bio-color-picker-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

@media (max-width: 600px) {
    .bio-color-picker-row {
        flex-wrap: wrap;
    }
}

.bio-color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.bio-color-picker-group label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin: 0;
    white-space: nowrap;
}

.bio-color-picker-group input[type="color"] {
    width: 100%;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 2px;
    background: var(--color-surface);
}

.bio-color-picker-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.bio-color-picker-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: var(--radius-sm);
}

.bio-color-picker-group input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: var(--radius-sm);
}

.bio-editor-btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bio-editor-btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-primary);
}

.bio-editor-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bio-editor-btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.bio-editor-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bio-editor-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.bio-editor-blur-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.bio-editor-blur-control label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.bio-blur-slider {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: var(--color-border);
    outline: none;
    -webkit-appearance: none;
}

.bio-blur-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
}

.bio-blur-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
}

#blur-amount-display {
    min-width: 40px;
    text-align: right;
    color: var(--color-text);
    font-weight: 600;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Font Options */
.bio-font-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .bio-font-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bio-font-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.bio-font-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-hover);
}

.bio-font-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.bio-font-preview-text {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-text);
}

.bio-font-name {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Color Preview Box */
.bio-color-preview-box {
    position: relative;
    background: var(--preview-bg, #0a0a0f);
    color: var(--preview-text, #f8fafc);
    border: 1px solid var(--preview-accent, #A78BFA);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin-top: 8px;
    transition: all 0.2s ease;
    overflow: hidden;
    min-height: 140px;
}

.bio-color-preview-box.has-blurred-bg::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--preview-accent, #A78BFA);
    filter: blur(40px);
    opacity: 0.3;
    transform: scale(1.5);
    z-index: 0;
}

.bio-color-preview-box.has-blurred-bg::after {
    content: '📷 Avatar desfocado como fundo';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 2;
}

.bio-color-preview-box .preview-content {
    position: relative;
    z-index: 1;
}

.bio-color-preview-box .preview-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--preview-text, #f8fafc);
    line-height: 1.2;
}

.bio-color-preview-box .preview-name.font-space-grotesk {
    font-family: 'Space Grotesk', sans-serif;
}

.bio-color-preview-box .preview-name.font-playfair {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.bio-color-preview-box .preview-name.font-bebas {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
}

.bio-color-preview-box .preview-name.font-outfit {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.bio-color-preview-box .preview-bio {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 16px;
    color: var(--preview-text, #f8fafc);
    line-height: 1.4;
}

.bio-color-preview-box .preview-button {
    background: var(--preview-btn-bg, #7C3AED);
    color: var(--preview-btn-text, #ffffff);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 12px;
    cursor: default;
    display: inline-block;
}

.bio-color-preview-box .preview-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.bio-color-preview-box .preview-link {
    color: var(--preview-accent, #A78BFA);
    font-size: 0.8rem;
}

.bio-template-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bio-template-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    background: var(--color-bg, #ffffff);
    color: var(--color-text, #1a1a2e);
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
    font-family: inherit;
}

.bio-template-btn:hover {
    border-color: var(--color-primary, #540e83);
}

.bio-template-btn.active {
    border-color: var(--color-primary, #540e83);
    background: color-mix(in srgb, var(--color-primary, #540e83) 8%, transparent);
}

.bio-template-preview-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.bio-template-name {
    font-weight: 600;
    font-size: 0.8rem;
}

.bio-template-desc {
    font-size: 0.65rem;
    opacity: 0.6;
    text-align: center;
}

