* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* FIX 2026-07-31: Prevent horizontal overflow on mobile (iPhone 14 fix) */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: #0F0A1E;
    color: #e2e8f0;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: calc(100vh - 90px);
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: #1a0f3d;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.logo .highlight {
    color: #F97316;
}

.logo-img {
    width: 160px;
    margin-bottom: 2rem;
    margin-left: 0.5rem;
    /* Transparent PNG — invert black to white for dark theme */
    filter: invert(1);
    display: block;
}

.menu ul {
    list-style: none;
}

.menu li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu li:hover, .menu li.active {
    background-color: #2dd4bf;
    color: #0F0A1E;
}

.badge {
    background-color: #f59e0b;
    color: #0F0A1E;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
    font-weight: 800;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: linear-gradient(to bottom, #1e293b, #0F0A1E);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-bar {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: none;
    background-color: #1a0f3d;
    color: #fff;
    width: 350px;
}

/* View Sections */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view-section.active {
    display: block;
}

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

/* Hero Sections */
.hero-generate {
    background: #1a0f3d;
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-generate h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-generate p {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.generate-box {
    background: #0F0A1E;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: left;
}

.generate-box textarea {
    width: 100%;
    height: 100px;
    background: transparent;
    border: none;
    color: #fff;
    resize: none;
    font-size: 1.1rem;
    outline: none;
}

.generate-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
}

.upload-btn {
    color: #94a3b8;
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.upload-btn:hover { background: #1a0f3d; color: #F97316; }

.primary-btn {
    background: #F97316;
    color: #0F0A1E;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.1s;
}

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

.hero-edu {
    background: linear-gradient(135deg, #10b98122, #0F0A1E);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border: 1px solid #10b98155;
}

.hero-edu h1 { font-size: 2rem; color: #10b981; margin-bottom: 0.5rem; }
.hero-edu p { color: #94a3b8; }

.section-title {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 800;
}

/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.album-card {
    background-color: #1a0f3d;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s;
}

.album-card:hover {
    transform: translateY(-5px);
    background-color: #272c36;
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.ochem-cover { background: linear-gradient(135deg, #10b981, #047857); }
.odyssey-cover { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.trig-cover { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.album-info h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.album-info p { font-size: 0.85rem; color: #94a3b8; margin-bottom: 0.5rem; }

.tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}
.tag.science { background-color: #10b981; color: #fff; }
.tag.math { background-color: #8b5cf6; color: #fff; }
.tag.gen { background-color: #f59e0b; color: #fff; }
.tag.fantasy { background-color: #a855f7; color: #fff; }
.tag.mystery { background-color: #64748b; color: #fff; }
.tag.romance { background-color: #f43f5e; color: #fff; }
.tag.scifi { background-color: #ef4444; color: #fff; }
.tag.leadership { background-color: #f59e0b; color: #0F0A1E; }
.tag.scripture { background-color: #7c3aed; color: #fff; }
.tag.cinema { background-color: #1c1917; color: #e7e5e4; border: 1px solid #44403c; }
.tag.sports { background-color: #166534; color: #bbf7d0; }

/* Classics Vault */
.hero-classics {
    background: linear-gradient(135deg, #1a0f3d80, #0F0A1E);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #F9731622;
}
.hero-classics h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero-classics p { color: #94a3b8; }

.genre-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.genre-tab {
    background: #1a0f3d;
    border: 1px solid #333;
    color: #94a3b8;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.genre-tab:hover { border-color: #F97316; color: #F97316; }
.genre-tab.active { background: #F97316; color: #0F0A1E; border-color: #F97316; }

.generate-placeholder {
    padding: 2rem;
    background: #1a0f3d;
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
}

.empty-state {
    padding: 3rem;
    text-align: center;
    background: #1a0f3d;
    border-radius: 12px;
    color: #94a3b8;
}

/* Details Section */
.back-btn {
    background: none;
    border: none;
    color: #F97316;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.details-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.large-cover {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.detail-text h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.detail-text p { font-size: 1.1rem; color: #94a3b8; }
.detail-text .description { margin-top: 1rem; font-size: 0.95rem; line-height: 1.5; color: #cbd5e1; }

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

.track-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #1a0f3d;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    gap: 0.75rem;
}
.track-row:hover { background-color: #1e2433; }
.track-row:hover .track-row-title { color: #F97316; }

.track-row-rich { padding: 0.6rem 0.75rem; }

.track-row-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.track-row-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.track-row-meta {
    font-size: 0.75rem;
    color: #475569;
}

/* Library track cover overlay */
.lib-track-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 0.4rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Player Bar */
.player-bar {
    height: 90px;
    background-color: #0F0A1E;
    border-top: 1px solid #1a0f3d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 250px;
}

.mini-cover {
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.track-info h4 { font-size: 0.9rem; }
.track-info p { font-size: 0.75rem; color: #94a3b8; }

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* ─── 3D Glossy Player Buttons ──────────────────────────────── */
.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(56,189,248,0.25);
    cursor: pointer;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F97316;
    position: relative;
    overflow: hidden;

    /* Radial gradient gives the 3D depth illusion */
    background: radial-gradient(circle at 38% 32%, #1e2d42, #080c12);

    /* Outer ring + shadow stack for glossy depth */
    box-shadow:
        0 0 0 1px rgba(56,189,248,0.15),
        0 5px 14px rgba(0,0,0,0.85),
        0 2px 4px rgba(0,0,0,0.9),
        inset 0 1px 0 rgba(56,189,248,0.18),
        inset 0 -2px 3px rgba(0,0,0,0.6);

    transition: all 0.12s ease;
    margin: 0;
    flex-shrink: 0;
}

/* Glass shine — top-left highlight arc */
.control-btn::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 55%;
    height: 42%;
    background: linear-gradient(135deg, rgba(56,189,248,0.22) 0%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.control-btn:hover {
    color: #7dd3fc;
    background: radial-gradient(circle at 38% 32%, #243a52, #0a1020);
    box-shadow:
        0 0 0 1px rgba(56,189,248,0.35),
        0 6px 18px rgba(0,0,0,0.9),
        0 0 22px rgba(56,189,248,0.18),
        inset 0 1px 0 rgba(56,189,248,0.25),
        inset 0 -2px 3px rgba(0,0,0,0.6);
}

.control-btn:active {
    transform: scale(0.91);
    background: radial-gradient(circle at 50% 60%, #0e1520, #050810);
    box-shadow:
        0 0 0 1px rgba(56,189,248,0.2),
        0 2px 6px rgba(0,0,0,0.95),
        inset 0 3px 8px rgba(0,0,0,0.7),
        inset 0 1px 2px rgba(0,0,0,0.8);
}

/* Play/Pause — larger, more prominent, brighter cyan core */
.play-btn {
    width: 58px;
    height: 58px;
    font-size: 1.3rem;
    color: #e0f7ff;
    border: 2px solid rgba(56,189,248,0.5);
    background: radial-gradient(circle at 38% 32%, #1b4f72, #071525);
    box-shadow:
        0 0 0 1px rgba(56,189,248,0.3),
        0 6px 20px rgba(0,0,0,0.9),
        0 0 32px rgba(56,189,248,0.2),
        inset 0 1px 0 rgba(56,189,248,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.7);
}

.play-btn::before {
    background: linear-gradient(135deg, rgba(56,189,248,0.3) 0%, transparent 100%);
}

.play-btn:hover {
    color: #fff;
    background: radial-gradient(circle at 38% 32%, #1e6a96, #091d30);
    box-shadow:
        0 0 0 1px rgba(56,189,248,0.5),
        0 8px 24px rgba(0,0,0,0.9),
        0 0 40px rgba(56,189,248,0.3),
        inset 0 1px 0 rgba(56,189,248,0.35),
        inset 0 -2px 4px rgba(0,0,0,0.7);
}

.play-btn:active {
    transform: scale(0.91);
    background: radial-gradient(circle at 50% 60%, #0a1e30, #040c18);
    box-shadow:
        0 0 0 1px rgba(56,189,248,0.25),
        0 2px 8px rgba(0,0,0,0.95),
        inset 0 3px 10px rgba(0,0,0,0.8);
}

.progress-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin-top: 0.5rem;
}

.time { font-size: 0.75rem; color: #94a3b8; }
.slider {
    flex: 1;
    cursor: pointer;
    /* Minimum 44px touch target per mobile accessibility guidelines */
    min-height: 44px;
    accent-color: #38bdf8;
}

.lyrics-btn {
    background-color: #F97316;
    color: #0F0A1E;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* ─── Track Title Input ───────────────────────────────── */
.track-title-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: #0F0A1E;
    border: 2px solid #F97316;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    outline: none;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.track-title-input:focus {
    border-color: #F97316;
    box-shadow: 0 0 16px #F9731640;
}

/* ─── Generate CTA ───────────────────────────────── */
.hero-tagline-img {
    max-width: 520px;
    width: 90%;
    margin: 0 auto 1.5rem;
    display: block;
}

.generate-cta {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    margin-top: 1.5rem;
    border-radius: 30px;
    box-shadow: 0 0 30px #F9731640;
    transition: box-shadow 0.2s, transform 0.1s;
}
.generate-cta:hover { box-shadow: 0 0 45px #F9731670; }

/* ─── Wizard Modal ────────────────────────────────── */
.wizard-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 17, 21, 0.96);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.wizard-content {
    background: #1a0f3d;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.close-wizard {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    cursor: pointer;
}
.close-wizard:hover { color: #fff; }

/* Step indicators */
.wizard-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.wstep {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
}
.wstep span {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #333;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}
.wstep.active { color: #F97316; }
.wstep.active span { background: #F97316; color: #0F0A1E; }
.wstep.done { color: #10b981; }
.wstep.done span { background: #10b981; color: #fff; }
.wstep-divider { color: #333; font-size: 1rem; }

.wizard-heading {
  text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
}

/* Source cards */
.source-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.source-card {
    background: #0F0A1E;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.source-card:hover {
    border-color: #F97316;
    background: #0F0A1E;
    box-shadow: 0 0 20px #F9731620;
}
.source-card .source-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.source-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 0.3rem; color: #fff; }
.source-card p { font-size: 0.8rem; color: #64748b; }

/* Back button */
.wizard-back {
    background: none;
    border: none;
    color: #F97316;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0;
}

/* Source preview badge */
.wizard-selected-source {
    background: #0F0A1E;
    border: 1px solid #F9731640;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: #F97316;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.wizard-style-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wizard-generate-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    color: #64748b;
}
.upload-zone:hover { border-color: #F97316; color: #F97316; }

/* Manual textarea */
.wiz-textarea {
    width: 100%;
    height: 200px;
    background: #0F0A1E;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    padding: 1rem;
    resize: vertical;
    outline: none;
    font-family: inherit;
}
.wiz-textarea:focus { border-color: #F97316; }

/* Lyrics Modal */
.lyrics-modal {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 90px;
    background: rgba(15, 17, 21, 0.95);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lyrics-content {
    background: #1a0f3d;
    width: 600px;
    height: 70%;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-lyrics {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.lyrics-content h2 { margin-bottom: 1rem; color: #F97316; }
.lyrics-text {
    flex: 1;
    overflow-y: auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #e2e8f0;
    white-space: pre-line;
}

/* Auth Styles */
/* Header avatar button — transparent, no pill, circular photo only */
.header-avatar-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    transition: transform 0.2s;
}
.header-avatar-btn:hover { transform: scale(1.08); }
.header-avatar-btn:focus { outline: none !important; box-shadow: none !important; }
.header-avatar-btn img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #F97316;
    display: block;
    box-shadow: none;
}
.header-avatar-initials-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #F97316;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #F97316;
}

.login-btn {
    background-color: transparent;
    color: #F97316;
    border: 1px solid #F97316;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn:hover {
    background-color: #F97316;
    color: #0F0A1E;
}

.auth-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 17, 21, 0.95);
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
}
.auth-modal.active {
    display: flex;
}

.auth-content {
    background: #1a0f3d;
    width: 400px;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    text-align: center;
}

.close-auth {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header .highlight {
    color: #F97316;
}

.auth-header p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: #F97316;
    border-bottom: 2px solid #F97316;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #333;
    background: #0F0A1E;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.auth-form input:focus {
    border-color: #F97316;
}

.auth-submit {
    margin-top: 1rem;
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
}

/* Generate Form UI */
.custom-select {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #333;
    background: #0F0A1E;
    color: #fff;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.custom-select:focus {
    border-color: #F97316;
}

.generation-progress {
    background: #0F0A1E;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #1a0f3d;
    border-top: 5px solid #F97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ─── Tier Badge (header) ───────────────────────────────── */
.tier-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: #1a0f3d;
    border: 1px solid #333;
}

/* ─── Usage Meter ──────────────────────────────────── */
.usage-meter { margin-bottom: 1rem; }

.usage-meter-bar {
    height: 6px;
    background: #1a0f3d;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.usage-meter-fill {
    height: 100%;
    background: #F97316;
    border-radius: 3px;
    transition: width 0.4s ease, background 0.3s;
}

.usage-meter-label {
    font-size: 0.78rem;
    color: #64748b;
    text-align: right;
}

.wizard-upgrade-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.75rem;
}
.wizard-upgrade-hint a { color: #F97316; }

/* ─── Pricing Page ──────────────────────────────────── */
.pricing-hero {
    text-align: center;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}
.pricing-hero h1 { font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.pricing-hero p { color: #64748b; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: #0F0A1E;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    transition: border-color 0.2s;
}

.pricing-card-featured {
    border-color: #F97316;
    box-shadow: 0 0 30px #F9731620;
}

.pricing-card.current-tier {
    border-color: #10b981;
    box-shadow: 0 0 20px #10b98120;
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #F97316;
    color: #0F0A1E;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-tier-badge {
    font-size: 1.1rem;
    font-weight: 800;
}
.pricing-tier-badge.bronze { color: #cd7f32; }
.pricing-tier-badge.gold { color: #f59e0b; }
.pricing-tier-badge.platinum { color: #F97316; }

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: #64748b; }

.pricing-desc { color: #64748b; font-size: 0.875rem; line-height: 1.5; }

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.pricing-features li { font-size: 0.875rem; color: #94a3b8; }
.pricing-features li:has(✅) { color: #cbd5e1; }
.pricing-note { color: #64748b !important; font-size: 0.8rem !important; }

.coming-soon {
    background: #1a0f3d;
    color: #64748b;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.pricing-btn {
    width: 100%;
    padding: 0.85rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.pricing-btn:hover { opacity: 0.85; }
.pricing-btn:disabled { opacity: 0.4; cursor: default; }

.upgrade-btn { background: #F97316; color: #0F0A1E; }
.current-plan { background: #10b98122; color: #10b981; border: 1px solid #10b98144; }

/* Add-ons */
.addons-section {
    background: #0F0A1E;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
.addons-section h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.addons-section > p { color: #64748b; font-size: 0.875rem; margin-bottom: 1.5rem; }

.addons-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.addon-card {
    background: #1a0f3d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    min-width: 180px;
}
.addon-card h4 { font-weight: 800; margin-bottom: 0.5rem; }
.addon-price { font-size: 1.75rem; font-weight: 900; color: #F97316; margin-bottom: 0.25rem; }
.addon-save { font-size: 0.75rem; color: #10b981; font-weight: 700; margin-bottom: 1rem; }

.pricing-footnote {
    text-align: center;
    color: #475569;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* ─── FAQ Section ──────────────────────────────────── */
.faq-hero {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
}
.faq-hero h1 { font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.faq-hero p { color: #64748b; }

.faq-body { max-width: 760px; }

.faq-category {
    margin-bottom: 2.5rem;
}

.faq-category-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F97316;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e293b;
}

.faq-item {
    background: #0F0A1E;
    border: 1px solid #1e293b;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    cursor: pointer;
    transition: border-color 0.2s;
    overflow: hidden;
}

.faq-item:hover { border-color: #F9731640; }
.faq-item.open { border-color: #F97316; }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #e2e8f0;
    user-select: none;
}

.faq-arrow {
    color: #475569;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: color 0.2s;
}

.faq-item.open .faq-arrow { color: #F97316; }

.faq-answer {
    display: none;
    padding: 0 1.25rem 1.25rem;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.8;
    border-top: 1px solid #1e293b;
    padding-top: 1rem;
}

.faq-item.open .faq-answer { display: block; animation: fadeIn 0.2s ease; }

.faq-answer strong { color: #e2e8f0; }
.faq-answer em { color: #F97316; font-style: normal; }

/* ─── About Page ──────────────────────────────────── */
.about-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a0f3d80, #0F0A1E);
    border: 1px solid #F9731620;
    border-radius: 16px;
    margin-bottom: 2.5rem;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.about-tagline {
    color: #94a3b8;
    font-size: 1.15rem;
    font-style: italic;
}

.about-body { max-width: 760px; }

.about-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #1e293b;
}
.about-block:last-of-type { border-bottom: none; }

.about-block h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #F97316;
    margin-bottom: 1rem;
}

.about-block p {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 1rem;
}

.about-block em { color: #e2e8f0; font-style: normal; font-weight: 600; }

/* How it works steps */
.about-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #0F0A1E;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1.25rem;
}

.about-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F97316;
    color: #0F0A1E;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fff;
}

.about-step p { color: #64748b; font-size: 0.9rem; line-height: 1.6; }

/* Audience cards */
.about-audience {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.about-audience-card {
    background: #0F0A1E;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.2s;
}
.about-audience-card:hover { border-color: #F9731640; }

.about-audience-icon { font-size: 1.75rem; margin-bottom: 0.6rem; }
.about-audience-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; color: #fff; }
.about-audience-card p { font-size: 0.85rem; color: #64748b; line-height: 1.5; }

/* CTA block */
.about-cta {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #F9731610, #0F0A1E);
    border: 1px solid #F9731630;
    border-radius: 16px;
    margin-top: 1rem;
}

.about-cta p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ─── Community Highlights ─────────────────────────── */
.community-card { position: relative; }

.community-card.playing {
    border: 1px solid #F97316;
    box-shadow: 0 0 20px #F9731630;
}

.preview-play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.community-card:hover .preview-play-btn { background: #F97316; color: #0F0A1E; }

.preview-badge {
    background: #F9731622;
    color: #F97316;
    border: 1px solid #F9731640;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Preview ended overlay */
.preview-ended-overlay {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.preview-ended-card {
    background: #1a0f3d;
    border: 1px solid #F97316;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 30px #F9731620;
    pointer-events: all;
    min-width: 320px;
    animation: fadeIn 0.3s ease;
}

/* ─── Profile Section ────────────────────────────────── */
.profile-header-banner {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #1a0f3d, #0F0A1E);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid #F97316;
    overflow: hidden;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #F97316;
    color: #0F0A1E;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    border: 2px solid #0F0A1E;
}

.profile-header-info h2 { font-size: 1.5rem; margin-bottom: 0.2rem; }

.profile-visibility-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #333;
    color: #64748b;
}

/* Profile form */
.profile-form { max-width: 700px; }

.profile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
}

.profile-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.field-note {
    font-size: 0.7rem;
    color: #475569;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    margin-left: 0.4rem;
}

.profile-input {
    background: #0F0A1E;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.profile-input:focus { border-color: #F97316; }

.field-feedback {
    font-size: 0.8rem;
    margin-top: 0.35rem;
    min-height: 1.1em;
}

/* Genre chips */
.genre-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.genre-chip {
    background: #0F0A1E;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.15s;
    user-select: none;
}
.genre-chip:hover { border-color: #F97316; color: #F97316; }
.genre-chip.active { background: #F9731622; border-color: #F97316; color: #F97316; font-weight: 600; }

/* Bio counter */
.bio-counter {
    font-size: 0.78rem;
    color: #475569;
    text-align: right;
    margin-top: 0.35rem;
}

/* Visibility toggle */
.profile-visibility-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #0F0A1E;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.5rem;
}

.toggle-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: #333;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

/* Security section */
.profile-security-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0F0A1E;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.security-note {
    color: #475569;
}

/* Forgot password button */
.forgot-password-btn {
    background: none;
    border: none;
    color: #F97316;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0;
    text-align: center;
    width: 100%;
}
.forgot-password-btn:hover { text-decoration: underline; }

/* Save feedback */
.profile-save-feedback {
    text-align: center;
    color: #10b981;
    font-weight: 700;
    margin-top: 1rem;
    font-size: 1rem;
    animation: fadeIn 0.3s ease;
}

.generation-error {
    background: #0F0A1E;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #f43f5e55;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

/* ── Master Voice Cards ────────────────────────────────────────────────── */
.wiz-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem 0;
}

.voice-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.voice-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #0d111a;
  border: 1.5px solid #1e293b;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.voice-card:hover {
  background: #131929;
  border-color: #334155;
}

.voice-card.selected {
  border-color: var(--vc-color, #F97316);
  background: #0a1628;
  box-shadow: 0 0 0 1px var(--vc-color, #F97316);
}

.voice-card-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.voice-card-info {
  min-width: 0;
}

.voice-card-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-card-tag {
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Genre + Style Pills ───────────────────────────────────────────────── */
.wiz-pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wiz-pill {
  background: #0d111a;
  border: 1.5px solid #1e293b;
  border-radius: 20px;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.wiz-pill:hover {
  border-color: #F97316;
  color: #e2e8f0;
}

.wiz-pill.selected {
  background: #0c2340;
  border-color: #F97316;
  color: #F97316;
}

.wiz-style-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.4rem 0 0 0;
  font-style: italic;
}

/* ── Surprise Me Button ────────────────────────────────────────────────── */
.surprise-btn {
  width: 100%;
  margin-top: 0.75rem;
  background: transparent;
  border: 1.5px dashed #334155;
  border-radius: 12px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.surprise-btn:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.surprise-discount {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-weight: 700;
}

/* ── Book Search Result Cards ──────────────────────────────────────────── */
.source-result-card {
  background: #0d111a;
  border: 1.5px solid #1e293b;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.source-result-card:hover {
  border-color: #F97316;
  background: #131929;
}

/* ── Content Disclaimer ─────────────────────────────────────────────────── */
.content-disclaimer {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 0.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ── Generation Tier Banner ─────────────────────────────────────────────── */
.generation-tiers {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0d111a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.gen-tier {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 140px;
}

.tier-icon { font-size: 1.4rem; }

.tier-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
}

.tier-desc {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.1rem;
}

.tier-summary .tier-label { color: #f59e0b; }
.tier-full    .tier-label { color: #10b981; }

.tier-arrow {
  color: #334155;
  font-size: 1.2rem;
  font-weight: 300;
}

/* ── Source Card Quality Badge ──────────────────────────────────────────── */
.source-quality {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

.source-quality.full {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.source-quality.varies {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ── Vault Section Headers ───────────────────────────────────────────────── */
.vault-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  margin: 1.5rem 0 0.75rem 0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
}

.vault-section-header:first-child { margin-top: 0.25rem; }

.vault-section-browse span:first-child { color: #f59e0b; }

.vault-section-count {
  font-size: 0.72rem;
  font-weight: 400;
  color: #475569;
}

/* ── Browse List (no tracks yet) ────────────────────────────────────────── */
.vault-browse-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vault-browse-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #0d111a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.vault-browse-row:hover {
  border-color: #334155;
  background: #131929;
}

.browse-icon { font-size: 1.3rem; flex-shrink: 0; }

.browse-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.browse-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browse-author {
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browse-genre {
  font-size: 0.68rem;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}

.browse-generate-btn {
  background: transparent;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #F97316;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}

.browse-generate-btn:hover {
  background: #0c2340;
  border-color: #F97316;
}

/* ── Vault Genre Navigator ───────────────────────────────────────────────── */
.vault-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vault-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #0d111a;
  border: 1.5px solid #1e293b;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}

.vault-arrow:hover {
  border-color: #F97316;
  color: #F97316;
}

.vault-genre-selector {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

#vault-genre-dropdown {
  background: #0d111a;
  border: 1.5px solid #1e293b;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  text-align: center;
  width: 100%;
  max-width: 280px;
  appearance: none;
}

#vault-genre-dropdown:focus { outline: none; border-color: #F97316; }

.vault-genre-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.vault-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1e293b;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.vault-dot.active {
  background: #F97316;
  transform: scale(1.3);
}

/* ── Vault Row Header ────────────────────────────────────────────────────── */
.vault-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
}

/* ── Horizontal Scroll Row ───────────────────────────────────────────────── */
.vault-scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.vault-scroll-row::-webkit-scrollbar { display: none; }

/* ── Horizontal Card ─────────────────────────────────────────────────────── */
.vault-h-card {
  flex-shrink: 0;
  width: 150px;
  cursor: pointer;
  transition: transform 0.15s;
}

.vault-h-card:hover { transform: translateY(-3px); }

.vault-h-cover {
  width: 150px; height: 150px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  margin-bottom: 0.6rem;
}

.vault-h-info { padding: 0 0.1rem; }

.vault-h-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vault-h-author {
  font-size: 0.68rem;
  color: #64748b;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Profile Stats Bar ─────────────────────────────────────── */
.profile-stats-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.profile-stat {
  flex: 1;
  min-width: 100px;
  background: #1a0f3d;
  border: 1px solid #2a2d35;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #F97316;
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Beta Badge ────────────────────────────────────────────── */
.profile-beta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #F9731622;
  color: #F97316;
  border: 1px solid #F9731640;
}

/* ── Library Track List ────────────────────────────────────── */
.lib-track-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lib-track-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #1a0f3d;
  border: 1px solid #2a2d35;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}
.lib-track-row:hover { border-color: #F9731640; }

.lib-track-cover {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.lib-play-overlay {
  position: absolute;
  inset: 0;
  background: #00000066;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.lib-track-cover:hover .lib-play-overlay { opacity: 1; }

.lib-track-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.lib-track-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}
.lib-track-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.1rem;
}
.lib-track-date {
  font-size: 0.7rem;
  color: #475569;
}

.lib-track-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lib-action-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.lib-action-btn:hover { opacity: 0.8; }
.lib-btn-private  { background: #1e293b; color: #64748b; border-color: #333; }
.lib-btn-public   { background: #0ea5e922; color: #F97316; border-color: #F9731640; }
.lib-btn-download { background: #16a34a22; color: #4ade80; border-color: #4ade8040; }
.lib-btn-delete   { background: #1a0f3d; color: #475569; border-color: #333; font-size: 0.85rem; padding: 0.35rem 0.6rem; }

/* ── Library Empty State ───────────────────────────────────── */
.lib-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #1a0f3d;
  border: 1px dashed #2a2d35;
  border-radius: 16px;
}

/* ── Profile Tab Bar ───────────────────────────────────────── */
.profile-tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #2a2d35;
  padding-bottom: 0;
}
.profile-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.profile-tab:hover { color: #e2e8f0; }
.profile-tab.active {
  color: #F97316;
  border-bottom-color: #F97316;
}

/* ── Flywheel Source Selector ──────────────────────────────── */
.flywheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.flywheel-main {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, #1a0f3d, #0F0A1E);
  border: 1px solid #F9731640;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.25s ease;
}
.flywheel-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}
.flywheel-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}
.flywheel-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.flywheel-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #F9731622;
  color: #F97316;
  border: 1px solid #F9731640;
  margin-bottom: 1.5rem;
}
.flywheel-cta {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}

/* Nav arrows + dots */
.flywheel-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.flywheel-arrow {
  background: #1a0f3d;
  border: 1px solid #2a2d35;
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.flywheel-arrow:hover { border-color: #F97316; color: #F97316; }
.flywheel-dots { display: flex; gap: 0.4rem; }
.flywheel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2d35;
  cursor: pointer;
  transition: background 0.2s;
}
.flywheel-dot.active { background: #F97316; }

/* Option pills */
.flywheel-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.flywheel-pill {
  background: #1a0f3d;
  border: 1px solid #2a2d35;
  color: #64748b;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.flywheel-pill:hover { border-color: #F97316; color: #e2e8f0; }
.flywheel-pill.active { background: #F9731622; border-color: #F97316; color: #F97316; }

/* ── Library Suggestion Strip ── */
#wiz-library-strip {
  margin-top: 1.5rem;
  display: none;
}
.lib-strip-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
/* Category filter pills */
.lib-cat-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.lib-cat-pill {
  background: #1a0f3d;
  border: 1px solid #2a2d35;
  color: #64748b;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.lib-cat-pill:hover { border-color: #F97316; color: #e2e8f0; }
.lib-cat-pill.active { background: #F9731622; border-color: #F97316; color: #F97316; }
.lib-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.lib-strip-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #1a0f3d;
  border: 1px solid #2a2d35;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lib-strip-card:hover { border-color: #F97316; background: #F9731611; }
.lib-strip-icon { font-size: 1.2rem; flex-shrink: 0; }
.lib-strip-info { flex: 1; min-width: 0; }
.lib-strip-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-strip-cat { font-size: 0.7rem; color: #475569; margin-top: 0.1rem; }
.lib-strip-cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #F97316;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.lib-strip-card:hover .lib-strip-cta { opacity: 1; }

/* ── Psyche Module ── */
.psyche-field { display: flex; flex-direction: column; gap: 0.35rem; }
.psyche-label { font-size: 0.82rem; font-weight: 700; color: #94a3b8; }
.lib-psyche-link {
  background: none;
  border: none;
  color: #F97316;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}
.lib-psyche-link:hover { color: #7dd3fc; }
/* Recommended category pill highlight */
.lib-cat-pill.recommended {
  border-color: #F9731655;
  color: #7dd3fc;
}
.lib-cat-pill.recommended::after {
  content: ' ✦';
  font-size: 0.6rem;
  vertical-align: super;
  color: #F97316;
}
/* Psyche result */
.psyche-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 0.25rem; }
.psyche-tag {
  background: #F9731622;
  border: 1px solid #F9731644;
  color: #F97316;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.psyche-cat-pill {
  background: #1a0f3d;
  border: 1px solid #F97316;
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── New App Logo ── */
.nav-logo-app { display:flex; flex-direction:column; line-height:1; padding-left:0.5rem; margin-bottom:1.5rem; }
.logo-my-app { font-family:'Space Grotesk',sans-serif; font-weight:400; font-style:italic; color:#F97316; font-size:0.9rem; letter-spacing:0.02em; }
.logo-tunes-app { font-family:'Space Grotesk',sans-serif; font-weight:800; color:#F8FAFC; font-size:1.35rem; letter-spacing:0.05em; }
.logo-underline-app { height:2px; background:#F97316; width:100%; margin-top:2px; }

/* ── App Hero Headline ── */
.hero-headline-app { margin-bottom:1.5rem; }
.app-hero-h1 { font-family:'Space Grotesk',sans-serif; font-weight:800; font-size:2.4rem; line-height:1.15; color:#F8FAFC; }
.app-hero-amber { color:#F97316; }

/* ── Hide old logo img if it still appears ── */
.logo-img { display:none !important; }
.hero-tagline-img { display:none !important; }

/* ── Hero App Logo Image (above the motto) ── */
.hero-app-logo-img {
  display: block;
  width: 200px;
  max-width: 72%;
  height: auto;
  margin: 0 auto 1.75rem;
  filter: invert(1);
  opacity: 0.95;
}
.hero-css-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  margin: 0 auto 1.75rem;
}
.hero-css-logo .logo-my-app { font-size: 1.4rem; }
.hero-css-logo .logo-tunes-app { font-size: 2.2rem; }
.hero-css-logo .logo-underline-app { width: 100%; }

/* ── Consent Flow Modal ────────────────────────────────────── */
.consent-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 8, 20, 0.97);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.consent-content {
    background: #1a0f3d;
    width: 640px;
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid #2d1b69;
}
.consent-header { text-align: center; margin-bottom: 1.5rem; }
.consent-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.4rem; color: #F97316; }
.consent-logo span { color: #ffffff; }
.consent-header h2 { color: #ffffff; font-size: 1.5rem; margin: 0.5rem 0 0.25rem; }
.consent-subtitle { color: #94a3b8; font-size: 0.9rem; margin: 0; }
.consent-scroll-area {
    flex: 1;
    overflow-y: auto;
    background: #0f0b28;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 0.5rem;
    max-height: 300px;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.7;
    border: 1px solid #2d1b69;
}
.consent-scroll-hint { text-align: center; color: #F97316; font-size: 0.8rem; margin-bottom: 1rem; }
.consent-data-content {
    background: #0f0b28;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.7;
    border: 1px solid #2d1b69;
    max-height: 160px;
    overflow-y: auto;
}
.consent-toggles { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.consent-toggle-row {
    display: flex; align-items: flex-start; gap: 1rem;
    background: #0f0b28; border-radius: 8px; padding: 1rem;
    border: 1px solid #2d1b69; cursor: pointer;
}
.consent-toggle-row input[type=checkbox] { display: none; }
.toggle-switch {
    width: 44px; height: 24px; background: #333; border-radius: 12px;
    position: relative; flex-shrink: 0; margin-top: 2px; transition: background 0.2s;
}
.consent-toggle-row input:checked ~ .toggle-switch { background: #F97316; }
.toggle-switch::after {
    content: ''; position: absolute; width: 18px; height: 18px;
    background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: left 0.2s;
}
.consent-toggle-row input:checked ~ .toggle-switch::after { left: 23px; }
.consent-toggle-info { flex: 1; }
.consent-toggle-info strong { color: #ffffff; font-size: 0.9rem; }
.consent-toggle-info p { margin: 0.25rem 0 0; color: #94a3b8; font-size: 0.8rem; }
.required-badge { background: #7c3aed; color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 600; }
.optional-badge { background: #1e40af; color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 600; }
.consent-actions { display: flex; gap: 1rem; justify-content: flex-end; }
.consent-btn-primary {
    background: #F97316; color: #fff; border: none; border-radius: 8px;
    padding: 0.75rem 1.5rem; font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: opacity 0.2s;
}
.consent-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.consent-btn-primary:not(:disabled):hover { background: #ea6c0a; }
.consent-btn-secondary {
    background: transparent; color: #94a3b8; border: 1px solid #444;
    border-radius: 8px; padding: 0.75rem 1.5rem; font-size: 0.95rem; cursor: pointer;
}
.consent-btn-secondary:hover { color: #e53e3e; border-color: #e53e3e; }

/* ══════════════════════════════════════════════════════════════
   Melo V2 Ambient Presence — shared across ALL pages
   RULE: V2 is the default. V1 only appears when creator
   explicitly chooses "Switch to Chatbot" from the V2 menu.
   ══════════════════════════════════════════════════════════════ */
.melo-ambient-wrap {
  position: fixed;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  background: transparent !important;
}
.melo-ambient-wrap:hover { transform: scale(1.05); }
.melo-ambient-wrap.pos-br { bottom: 24px; right: 24px; }
.melo-ambient-wrap.pos-bl { bottom: 24px; left: 24px; }
.melo-ambient-wrap.pos-tr { top: 24px; right: 24px; }
.melo-ambient-wrap.pos-tl { top: 24px; left: 24px; }
/* Hidden state — ONLY class that hides V2 */
.melo-ambient-wrap.melo-hidden { display: none !important; }

.melo-v2-img {
  width: 160px;
  height: auto;
  background: transparent;
  filter: drop-shadow(0 0 12px rgba(6,182,212,0.6))
          drop-shadow(0 4px 16px rgba(6,182,212,0.3));
  animation: meloAmbientBreathe 6s ease-in-out infinite,
             meloAmbientEntrance 0.6s ease forwards;
}
@keyframes meloAmbientEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes meloAmbientBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-8px) scale(1.03); }
  66%       { transform: translateY(-4px) scale(1.01); }
}
@keyframes meloAmbientCelebrate {
  0%   { transform: scale(1) rotate(0deg); }
  20%  { transform: scale(1.08) rotate(-4deg); }
  40%  { transform: scale(1.12) rotate(4deg); }
  60%  { transform: scale(1.08) rotate(-2deg); }
  80%  { transform: scale(1.04) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.melo-ambient-celebrate .melo-v2-img {
  animation: meloAmbientCelebrate 0.6s ease forwards !important;
}
.melo-ambient-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  color: rgba(248,250,252,0.7);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* Context menu */
.melo-ctx-menu {
  position: absolute;
  bottom: 110%;
  right: 0;
  background: #1A0A55;
  border: 1px solid #F97316;
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  z-index: 10002;
  animation: ctxFadeIn 0.15s ease forwards;
}
@keyframes ctxFadeIn {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.melo-ctx-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: #F8FAFC;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.15s;
}
.melo-ctx-btn:hover {
  background: rgba(249,115,22,0.15);
  color: #F97316;
}
