:root {
    --bg-dark: #0f0f13;
    --bg-panel: #18181b;
    --bg-card: #222226;
    --primary: #22c55e;
    /* Violet/Purple */
    --primary-hover: #7c3aed;
    --accent: #22d3ee;
    /* Cyan for neon touches */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border: #3f3f46;

    --sidebar-width: 250px;
    --header-height: 70px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    /* App-like feel */
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    padding-top: var(--header-height);
    /* Space for fixed mobile header */
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    display: none;
    /* Hidden on mobile by default */
}

.logo-area {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.logo-area i {
    color: var(--primary);
}

.nav-group {
    margin-bottom: 2rem;
}

.nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--text-main);
}

.nav-item.active {
    border-left: 3px solid var(--primary);
}

.badge-new {
    background: var(--primary);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    color: white;
}

.user-credits {
    margin-top: auto;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
}

.credits-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.btn-upgrade {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow-y: scroll;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(34, 34, 38, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

}

.mobile-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: fixed;
    /* User requested FIXED */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99;
    /* Glass effect */
    background: rgba(24, 24, 27, 0.95);
    /* Slightly less transp to hide content behind */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
}

.content-wrapper {
    padding: 1rem;
    padding-bottom: 100px;
    /* Space for sticky bar */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Models */
.models-section {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.models-section::-webkit-scrollbar {
    display: none;
}

.model-card {
    min-width: 250px;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.model-card.active {
    border-color: var(--primary);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), var(--bg-card));
}

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

.model-header h3 {
    font-size: 1.1rem;
}

.cost {
    font-size: 0.8rem;
    color: var(--accent);
}

.model-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.model-specs {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Forms */
.creation-interface {
    background: var(--bg-panel);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.creation-params {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: var(--text-main);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    /* Align with border-bottom of tabs */
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-small {
    background: #3f3f46;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

/* Tags */
.tags-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tag-category span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
}

.tag-chip:hover,
.tag-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Upload */
.upload-box {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.upload-box:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

/* Sticky Action Bar */
/* Static Create Bar (Bottom of form) */
.create-bar {
    position: static;
    /* No longer fixed */
    margin-top: 2rem;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-top: 1px solid var(--border);
    backdrop-filter: none;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(19, 19, 20, 0.95);
    /* High opacity dark bg */
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.nav-item-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.nav-item-bottom i {
    font-size: 1.2rem;
}

.nav-item-bottom.active {
    color: var(--text-main);
}

.nav-item-bottom.active i {
    color: var(--primary);
}

.create-settings {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(16px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.btn-create {
    background: linear-gradient(90deg, var(--primary), #d946ef);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    cursor: pointer;
}

/* Mobile Sidebar Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Sidebar State */
.sidebar.mobile-active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 200;
    background: var(--bg-panel);
    width: 80%;
    /* Partial width */
    max-width: 300px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Desktop Media Queries */
@media (min-width: 768px) {
    .sidebar {
        display: flex;
    }

    .mobile-header {
        display: none;
    }

    .app-container {
        padding-top: 0;
    }

    .create-bar {
        position: static;
        padding: 2rem 0;
        background: transparent;
        justify-content: flex-end;
    }

    .bottom-nav {
        display: none;
    }

    .create-settings {
        margin-right: auto;
    }
}

/* Lyrics Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.modal-box {
    background: #18181b;
    /* Dark background */
    border: 1px solid var(--border);
    /* Standard border */
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.modal-input-wrapper {
    position: relative;
    background: #27272a;
    border-radius: 8px;

}

.modal-input-wrapper textarea {
    background: transparent;
    border: none;
    resize: none;
    height: 100px;
    padding: 0;
    font-size: 0.95rem;
    color: #a1a1aa;
    width: 100%;
}

.modal-input-wrapper textarea:focus {
    outline: none;
    color: white;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: #71717a;
    margin-top: 0.5rem;
}

.btn-write-lyrics {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-write-lyrics:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

/* ================= Library Page Styles ================= */

/* Library Header */
.library-header {
    position: fixed;
    height: 70px;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1rem 1.0rem;

    background: rgba(19, 19, 20, 0.95);
}

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

.mobile-logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.mobile-logo-area .menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    margin-right: 0.5rem;
    display: flex;
    /* Ensure alignment */
    align-items: center;
}

.mobile-logo-area i {
    color: #22c55e;
    /* Green logo icon */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    /* Push to right */
}

.credits-pill {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.credits-pill .green-text {
    color: #22c55e;
    font-weight: 600;
}

.btn-icon {
    background: #3f3f46;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-profile {
    background: #a1a1aa;
    border: none;
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    cursor: pointer;
}

/* Library Tabs */
.library-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    overflow-x: auto;
}

.lib-tab {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding-bottom: 0.2rem;
    white-space: nowrap;
}

.lib-tab.active {
    color: white;
}

.sub-tabs {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.sub-tab {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding-bottom: 4px;
    font-weight: 600;
}

.sub-tab.active {
    color: #22c55e;
    border-bottom: 2px solid #22c55e;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.btn-filter {
    background: #18181b;
    border: 1px solid var(--border);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.search-box {
    flex: 1;
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.6rem;
    width: 100%;
}

.search-box input:focus {
    outline: none;
}

.search-box i {
    color: var(--text-muted);
}


/* Song List */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.song-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.song-cover {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.song-cover .duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 4px;
}

.song-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.song-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.song-header h3 {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.version-badge {
    background: #27272a;
    border: 1px solid var(--border);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
}

.song-genre {
    color: var(--primary);
    /* Using primary or styled specific color */
    font-size: 0.85rem;
    margin-bottom: auto;
}

.song-actions-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

.action-btn:hover {
    color: white;
}

.stat {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .library-header {
        display: block;
        /* Simplification */
        padding: 2rem 3rem;
    }

    .mobile-logo-area {
        display: none;
    }

    /* Already in sidebar */

    /* Restore Song List Grid for Desktop */
    .song-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* ================= Context Menu Styles (Lightbox) ================= */
.context-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.2s;
}

.context-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.context-menu-box {
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.2s;
}

.context-menu-overlay.active .context-menu-box {
    transform: scale(1);
}

.menu-header {
    padding: 0.5rem 0.5rem 1rem;
    font-size: 1rem;
    color: white;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: #e4e4e7;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item i {
    width: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.menu-item:hover i {
    color: white;
}

.menu-item .badge-new {
    margin-left: auto;
    background: #22c55e;
    color: black;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.text-danger {
    color: #ef4444;
}

.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.text-danger i {
    color: #ef4444;
}

.small-switch {
    width: 30px;
    height: 18px;
    margin-left: auto;
}

.small-switch .slider:before {
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
}

.small-switch input:checked+.slider:before {
    transform: translateX(12px);
}

/* ================= Floating Music Player Styles ================= */
.music-player {
    position: fixed;
    bottom: 70px;
    /* Above bottom nav on mobile */
    left: 1rem;
    right: 1rem;
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    display: none;
    /* Hidden by default */
    animation: slideUp 0.3s ease-out;
}

.music-player.active {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.player-close-btn {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #18181b;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.player-close-btn:hover {
    color: white;
    border-color: white;
}

.player-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.player-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

.player-text {
    display: flex;
    flex-direction: column;
}

.player-title {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

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

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.ctrl-btn:hover {
    color: white;
}

.ctrl-btn.play-pause {
    width: 36px;
    height: 36px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.ctrl-btn.play-pause:hover {
    transform: scale(1.05);
    color: black;
}

.player-progress-container {
    width: 100%;
    height: 4px;
    background: #3f3f46;
    border-radius: 2px;
    overflow: hidden;
}

.player-progress-bar {
    width: 100%;
    height: 100%;
}

.progress-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .music-player {
        bottom: 1rem;
        /* Lower on desktop since no bottom nav */
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 600px;
    }

    .music-player.active {
        animation: none;
        /* simple display on desktop */
    }
}

/* ================= Login Page Styles ================= */
.login-body {
    background: #09090b;
    /* Deep dark background */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background blob effect similar to main app */
.login-body::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1.5rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.login-brand {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.login-brand i {
    color: #22c55e;
}

.login-card {
    width: 100%;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.login-card h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.btn-google {
    width: 100%;
    background: white;
    color: #1f1f1f;
    border: none;
    padding: 0.8rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    margin-bottom: 1.5rem;
}

.btn-google:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.divider {
    position: relative;
    text-align: center;
    margin-bottom: 1.5rem;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.divider span {
    background: #18191b;
    /* Matches card bg somewhat if opaque, but card is transparent. */
    /* Fix: use card roughly bg color or just text-shadow/transparent safe logic */
    background: #19191d;
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

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

.login-form .input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.login-form .input-group input:focus {
    border-color: #22c55e;
}

.btn-login-email {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.btn-login-email:hover {
    background: var(--primary-hover);
}

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

.login-footer a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
}

/* ================= Plans Page Styles ================= */
.plans-body {
    background: #09090b;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    color: white;
}

.close-plans {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-muted);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.2s;
    z-index: 10;
}

.close-plans:hover {
    color: white;
}

/* Plans Modal Styles */
.plans-container {
    width: 96%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    background: #09090b;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #3f3f46;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);

    /* Center Content */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Custom Scrollbar for Plans */
.plans-container::-webkit-scrollbar {
    width: 8px;
}

.plans-container::-webkit-scrollbar-track {
    background: #18181b;
    border-radius: 4px;
}

.plans-container::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}

.plans-container::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

.plans-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.plans-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.plans-header p {
    color: var(--text-muted);
}

.billing-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #18191b;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.badge-discount {
    background: #22c55e;
    color: black;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 5px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.plan-card {
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    transition: transform 0.2s;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card.popular {
    border: 1px solid var(--primary);
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.1), rgba(24, 24, 27, 0.6));
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
}

.plan-price .currency {
    font-size: 1.2rem;
    margin-right: 4px;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.btn-plan {
    width: 100%;
    background: #27272a;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-plan:hover {
    background: #3f3f46;
}

.btn-plan.btn-glow {
    background: var(--primary);
}

.btn-plan.btn-glow:hover {
    background: var(--primary-hover);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #e4e4e7;
}

.plan-features li i {
    color: #22c55e;
}

/* ================= Account Page Styles ================= */

.account-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 100px;
}

.profile-header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    background: linear-gradient(to right, rgba(34, 34, 38, 0.5), rgba(139, 92, 246, 0.05));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #a1a1aa;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.profile-text h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.plan-badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-balance {
    text-align: right;
}

.profile-balance span {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.2rem;
}

.profile-balance h3 {
    font-size: 2rem;
    color: white;
    font-weight: 700;
}

.profile-balance h3 small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.divider-transparent {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
}

.section-title {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.icon-box.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.icon-box.purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.icon-box.orange {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

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

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.history-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.history-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.history-action {
    color: #e4e4e7;
    font-weight: 500;
}

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

.history-right {
    font-weight: 700;
}

.history-right.negative {
    color: #f87171;
}

.history-right.positive {
    color: #4ade80;
}

/* Subscription Card */
.subscription-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sub-info h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
}

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

.active-text {
    color: #22c55e;
    font-weight: 600;
}

.cancel-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
}

.btn-cancel {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-cancel.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-cancel.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-cancel.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
}

.cancel-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ================= Explore Page Styles ================= */

.explore-wrapper {
    padding-bottom: 100px;
}

.explore-hero {
    height: 300px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.hero-badge {
    background: #22c55e;
    color: black;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-content p {
    color: #e4e4e7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-hero-play {
    background: white;
    color: black;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

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

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

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-orange {
    color: #f97316;
}

.see-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

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

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

.card-vertical {
    min-width: 160px;
    cursor: pointer;
}

.card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-vertical:hover .card-img img {
    transform: scale(1.05);
}

.card-play-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #22c55e;
    /* Green play button */
    color: black;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-vertical:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.card-info span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    display: block;
}

/* Vibe Grid */
.vibe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.vibe-card {
    height: 100px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.vibe-card:hover {
    transform: translateY(-5px);
}

.vibe-card i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.vibe-card span {
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ================= Copyright Page Styles ================= */

.copyright-wrapper {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.copyright-header {
    margin-bottom: 2rem;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: white;
}

/* Registration Form */
.registration-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.reg-header i {
    font-size: 2.5rem;
    color: #fbbf24;
    /* Gold */
    margin-bottom: 1rem;
}

.reg-header h3 {
    font-size: 1.5rem;
    color: white;
}

.reg-header p {
    color: var(--text-muted);
}

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

.form-group label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.readonly-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    width: 100%;
    cursor: default;
}

.text-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    width: 100%;
}

.select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    appearance: none;
    cursor: pointer;
}

.select-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    color: #93c5fd;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.btn-register {
    width: 100%;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: black;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-register:hover {
    transform: translateY(-2px);
}

/* Certificate */
.certificate-paper {
    background: #fdf6e3;
    /* Paper color */
    color: #1a1a1a;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    position: relative;
}

.cert-border {
    border: 4px double #b45309;
    /* Fancy border */
    padding: 2rem;
    text-align: center;
    position: relative;
}

.cert-logo {
    font-size: 3rem;
    color: #b45309;
    margin-bottom: 1rem;
}

.cert-header h1 {
    font-family: serif;
    font-size: 2rem;
    color: #78350f;
    margin-bottom: 0.5rem;
}

.cert-header p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #92400e;
}

.cert-body {
    margin: 3rem 0;
}

.cert-song {
    font-family: serif;
    font-size: 2.5rem;
    font-style: italic;
    margin: 1rem 0;
    color: #000;
}

.cert-owner {
    font-size: 1.5rem;
    text-decoration: underline;
    margin: 1rem 0;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 3rem;
    border-top: 1px solid #dba756;
    padding-top: 1rem;
}

.cert-id {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.cert-id span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #92400e;
}

.cert-id code {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
}

.cert-stamp {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    transform: rotate(-15deg);
}

.stamp-inner {
    border: 3px solid #b91c1c;
    color: #b91c1c;
    padding: 0.5rem 1rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.2rem;
    border-radius: 4px;
    opacity: 0.8;
}

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

.btn-action {
    background: #3f3f46;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-action:hover {
    background: #52525b;
}

.success-message {
    text-align: center;
    color: #4ade80;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.plan-features li.disabled {
    color: var(--text-muted);
}

.plan-features li.disabled i {
    color: #52525b;
}

.plans-footer {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ================= Extend Page Styles ================= */

.extend-wrapper {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.extend-header {
    margin-bottom: 2rem;
}

.song-context {
    color: var(--text-muted);
}

.song-context strong {
    color: white;
}

/* Waveform Visualizer */
.waveform-context-card {
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.waveform-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.time-readout {
    color: #22c55e;
    font-family: monospace;
}

.waveform-visual {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 3px;
    position: relative;
    padding: 10px 0;
}

/* Mock Bars */
.wave-bar {
    width: 4px;
    border-radius: 2px;
    height: 40px;
    background: #3f3f46;
}

.wave-bar:nth-child(odd) {
    height: 60%;
}

.wave-bar:nth-child(even) {
    height: 40%;
}

.wave-bar:nth-child(3n) {
    height: 80%;
}

.wave-bar:nth-child(4n) {
    height: 30%;
}

.wave-bar.played {
    background: #22c55e;
}

.wave-bar.ghost {
    background: #27272a;
    border: 1px dashed #3f3f46;
}

/* Split Line & Handle */
.extend-point-line {
    width: 2px;
    height: 100%;
    background: white;
    position: relative;
    margin: 0 5px;
    z-index: 10;
    cursor: ew-resize;
}

.extend-handle {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: black;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.helper-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* Creation Panel */
.creation-panel {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.lyrics-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    margin-top: 0.5rem;
}

.controls-row {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.toggle-switch {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 26px;
    margin-top: 0.5rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3f3f46;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #22c55e;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.pill-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pill {
    background: #27272a;
    border: 1px solid var(--border);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.pill.active {
    background: #22c55e;
    color: black;
    border-color: #22c55e;
    font-weight: 600;
}

.btn-create-extend {
    width: 100%;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    /* Purple for create */
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: filter 0.2s;
}

.btn-create-extend:hover {
    filter: brightness(1.1);
}

.cost-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* End of styles */
/* ================= Easy Mode & New Tabs ================= */

.mode-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tabs-group {
    background: #27272a;
    padding: 4px;
    border-radius: 999px;
    display: inline-flex;
    gap: 5px;
}

.mode-tab {
    background: transparent;
    border: none;
    color: #a1a1aa;
    padding: 8px 24px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-tab.active {
    background: white;
    color: black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.version-badge {
    background: #27272a;
    border: 1px solid #3f3f46;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.easy-card {
    background: #121215;
    /* Extremely dark card */
    border: 1px solid #27272a;
    border-radius: 24px;
    padding: 1.5rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Simulate the look in the screenshot */
    background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
}

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

.easy-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.btn-dice {
    background: #27272a;
    border: none;
    color: #e4e4e7;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-dice:hover {
    background: #3f3f46;
}

.easy-desc {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.easy-textarea {
    width: 100%;
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    font-family: inherit;
    min-height: 150px;
}

.easy-textarea::placeholder {
    color: #52525b;
}

.easy-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align to bottom */
    margin-top: auto;
    /* Push to bottom */
    padding-top: 1rem;
}

.easy-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch-pill {
    background: #27272a;
    padding: 6px 6px 6px 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    user-select: none;
}

.toggle-switch-pill input {
    display: none;
}

.toggle-switch-pill .slider {
    width: 40px;
    height: 24px;
    background: #3f3f46;
    border-radius: 999px;
    position: relative;
    transition: 0.3s;
}

.toggle-switch-pill .slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}

.toggle-switch-pill input:checked+.slider {
    background: #22c55e;
}

.toggle-switch-pill input:checked+.slider:before {
    transform: translateX(16px);
}

.icon-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #27272a;
    border: none;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.icon-btn:hover {
    background: #3f3f46;
    color: white;
}

.char-count {
    color: #52525b;
    font-size: 0.85rem;
    font-family: monospace;
}

/* Custom Select spacing */
.custom-select-input {
    width: 100%;
    padding: 1rem;
    background: #18181b;
    border: 1px solid #27272a;
    color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
}