/* ============================================
   musai - AI Music Generator
   Premium Design System v2.0
   ============================================ */

/* CSS Variables - Sistema de diseño premium */
:root {
    /* Colores base - Negro profundo elegante */
   --bg-primary: #030305;
   --bg-secondary: #08080c;
   --bg-tertiary: #0c0c12;
   --bg-card: rgba(255, 255, 255, 0.05);          
   --bg-card-hover: rgba(255, 255, 255, 0.08);    
   --bg-glass: rgba(8, 8, 12, 0.9);               
   
   /* Bordes refinados */
   --border-subtle: rgba(255, 255, 255, 0.12);     
   --border-medium: rgba(255, 255, 255, 0.18);     
   --border-glow: rgba(99, 102, 241, 0.5);       
   
   /* Textos */
   --text-primary: #ffffff;
   --text-secondary: #b4b4bc;                   
   --text-muted: #8a8a94;                         
   --text-dim: #6b6b75;                         
    
    /* Acentos - Paleta índigo/violeta original */
    --accent-1: #6366F1;
    --accent-2: #8B5CF6;
    --accent-3: #A78BFA;
    --accent-4: #818CF8;
    --accent-5: #C4B5FD;
    
    /* Gradientes elegantes */
    --accent-gradient: linear-gradient(135deg,
        #6366F1 0%,
        #8B5CF6 50%,
        #A78BFA 100%
    );
    --accent-gradient-hover: linear-gradient(135deg,
        #818CF8 0%,
        #A78BFA 100%
    );
    --accent-gradient-subtle: linear-gradient(135deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(139, 92, 246, 0.1) 100%
    );
    --mesh-gradient: radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(129, 140, 248, 0.06) 0px, transparent 50%),
                     radial-gradient(at 80% 50%, rgba(167, 139, 250, 0.05) 0px, transparent 50%);
    
    /* Estados */
    --success: #34d399;
    --success-glow: rgba(52, 211, 153, 0.25);
    --error: #f87171;
    --error-glow: rgba(248, 113, 113, 0.25);
    --warning: #fbbf24;
    
    /* Radios */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Sombras premium */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.15);
    --shadow-glow-strong: 0 0 70px rgba(99, 102, 241, 0.25);
    
    /* Transiciones suaves */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-base: 0.4s var(--ease-out-expo);
    --transition-slow: 0.6s var(--ease-out-expo);
    --transition-slower: 0.8s var(--ease-out-expo);
    
    /* Safe areas */
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
}

/* ============================================
   Reset & Base Premium
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) transparent;
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-1), var(--accent-3));
    border-radius: 4px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* App Container */
.app {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
}

/* ============================================
   Background Effects - Premium Aurora
   ============================================ */

.bg-aurora {
    position: fixed;
    inset: 0;
    background: var(--mesh-gradient);
    pointer-events: none;
    z-index: 0;
    animation: auroraShift 25s ease-in-out infinite alternate;
    opacity: 0.6;
}

.bg-aurora::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 60% at 50% -30%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(129, 140, 248, 0.05) 0%, transparent 50%);
    animation: auroraShiftAlt 30s ease-in-out infinite alternate-reverse;
}

@keyframes auroraShift {
    0% {
        opacity: 0.8;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 0.95;
        filter: hue-rotate(8deg);
    }
    100% {
        opacity: 0.85;
        filter: hue-rotate(-5deg);
    }
}

@keyframes auroraShiftAlt {
    0% { opacity: 0.7; transform: translateX(0) translateY(0); }
    100% { opacity: 0.85; transform: translateX(-2%) translateY(-2%); }
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.015) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image:
        radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image:
        radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: orbFloat 30s ease-in-out infinite;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
    top: -12%;
    left: -8%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    top: 45%;
    right: -12%;
    animation-delay: -10s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
    bottom: 8%;
    left: 18%;
    animation-delay: -20s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(25px, -25px) scale(1.03); }
    50% { transform: translate(-15px, 20px) scale(0.98); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ============================================
   Noise Texture Overlay
   ============================================ */

.app::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   Header & Navigation - Glass Premium
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 24px;
    background: rgba(3, 3, 5, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.3) 20%,
        rgba(167, 139, 250, 0.3) 50%,
        rgba(99, 102, 241, 0.3) 80%,
        transparent 100%
    );
    opacity: 0.5;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
}

/* Logo Premium */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
}

.logo-icon {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.logo-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0;
    animation: logoPulse 4s ease-in-out infinite;
    filter: blur(8px);
}

@keyframes logoPulse {
    0%, 100% { opacity: 0; transform: scale(0.85); }
    50% { opacity: 0.4; transform: scale(1.15); }
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(135deg,
        #fff 0%,
        rgba(255, 255, 255, 0.9) 30%,
        var(--accent-1) 60%,
        var(--accent-3) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 8s ease infinite;
    letter-spacing: -0.02em;
}

@keyframes logoGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    opacity: 1;
}

/* Signup Button Premium */
.btn-signup {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    color: white;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-signup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-signup:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 40px rgba(99, 102, 241, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-signup:hover::before {
    opacity: 1;
}

.btn-signup svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.btn-signup:hover svg {
    transform: translateX(4px);
}

/* Back Button */
.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--accent-1);
    transform: translateX(-2px);
}

.btn-back svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.btn-back:hover svg {
    transform: translateX(-3px);
}

.back-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 3, 5, 0.9);
    backdrop-filter: blur(16px);
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

/* Credits Display - Pill Premium */
.credits-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(167, 139, 250, 0.1) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    transition: all var(--transition-fast);
}

.credits-display:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.25);
}

.credits-display.hidden {
    display: none;
}

.credits-display svg {
    width: 16px;
    height: 16px;
    animation: creditsPulse 2s ease-in-out infinite;
}

@keyframes creditsPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.credits-display .credits-label {
    color: var(--text-muted);
    font-weight: 400;
}

#creditsCount {
    font-variant-numeric: tabular-nums;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User Menu Premium */
.user-menu {
    position: relative;
}

.user-menu.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    color: var(--text-primary);
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-gradient);
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.user-btn:hover .user-avatar {
    border-color: var(--accent-1);
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.user-menu.open .user-btn svg {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all var(--transition-fast);
    z-index: 200;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-info {
    padding: 14px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}

.user-email {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.dropdown-item:hover svg {
    color: var(--accent-1);
}

/* ============================================
   Hero Section - Spectaculaire
   ============================================ */

.hero {
    position: relative;
    z-index: 10;
    padding: 80px 24px 60px;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(167, 139, 250, 0.1) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s var(--ease-out-expo);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
    letter-spacing: -0.03em;
}

.hero-title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg,
        var(--accent-1) 0%,
        var(--accent-2) 25%,
        var(--accent-3) 50%,
        var(--accent-2) 75%,
        var(--accent-1) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
    line-height: 1.6;
    max-width: 500px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.hero-feature:hover {
    color: var(--text-primary);
}

.hero-feature svg {
    width: 20px;
    height: 20px;
    color: var(--accent-1);
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
}

/* Hero Visual Premium */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s var(--ease-out-expo) 0.2s both;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 80px rgba(99, 102, 241, 0.15);
    transition: all 0.6s var(--ease-out-expo);
}

.hero-image-container:hover .hero-image {
    transform: scale(1.03) rotateY(-2deg) rotateX(2deg);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 100px rgba(99, 102, 241, 0.25);
}

.hero-image-glow {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(ellipse at center, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(167, 139, 250, 0.15) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 6s ease-in-out infinite;
}

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

/* Floating Elements - Enhanced */
.floating-element {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

.floating-element svg {
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

.floating-note-1 {
    top: -20px;
    left: -30px;
    width: 48px;
    height: 48px;
    color: var(--accent-1);
    animation: floatNote1 8s ease-in-out infinite;
}

.floating-note-2 {
    bottom: 25%;
    right: -35px;
    width: 40px;
    height: 40px;
    color: var(--accent-2);
    animation: floatNote2 9s ease-in-out infinite 0.5s;
}

.floating-wave {
    top: 35%;
    left: -40px;
    width: 56px;
    height: 56px;
    color: var(--accent-3);
    opacity: 0.9;
    animation: floatWave 10s ease-in-out infinite 1s;
}

.floating-sparkle-1 {
    top: 8%;
    right: -20px;
    width: 28px;
    height: 28px;
    color: #fbbf24;
    animation: floatSparkle 5s ease-in-out infinite;
}

.floating-sparkle-2 {
    bottom: 18%;
    left: 8%;
    width: 20px;
    height: 20px;
    color: var(--accent-1);
    animation: floatSparkle 6s ease-in-out infinite 2s;
}

.floating-eq {
    bottom: -15px;
    right: 12%;
    width: 52px;
    height: 52px;
    color: var(--accent-2);
    animation: floatEq 6s ease-in-out infinite 0.3s;
}

@keyframes floatNote1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(12px, -18px) rotate(12deg); }
    50% { transform: translate(-8px, -28px) rotate(-6deg); }
    75% { transform: translate(15px, -12px) rotate(10deg); }
}

@keyframes floatNote2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-15px, 20px) rotate(-15deg); }
    66% { transform: translate(12px, -12px) rotate(10deg); }
}

@keyframes floatWave {
    0%, 100% { transform: translate(0, 0) scaleX(1); }
    50% { transform: translate(15px, -20px) scaleX(1.15); }
}

@keyframes floatSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.4) rotate(180deg); opacity: 1; }
}

@keyframes floatEq {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(5deg); }
}

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

/* ============================================
   Main Content
   ============================================ */

.main {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ============================================
   Tabs - Premium Glass
   ============================================ */

.tabs-wrapper {
    margin-bottom: 40px;
}

.tabs {
    position: relative;
    display: flex;
    padding: 6px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
}

.tab:hover:not(.active) {
    color: var(--text-primary);
}

.tab.active {
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.tab-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tab-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: var(--accent-gradient);
    background-size: 200% 200%;
    border-radius: var(--radius-xl);
    transition: all 0.4s var(--ease-out-expo);
    z-index: 0;
    box-shadow:
        0 0 30px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gradientShift 6s ease infinite;
}

/* ============================================
   Forms - Glass Premium
   ============================================ */

.form {
    display: none;
}

.form.active {
    display: block;
    animation: fadeIn 0.5s var(--ease-out-expo);
}

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

.form-card {
    position: relative;
    padding: 36px;
    background: rgba(12, 12, 18, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    margin-bottom: 28px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.02) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.form-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.08);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
        rgba(99, 102, 241, 0.06) 0%,
        transparent 40%
    );
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.form-card:hover .card-glow {
    opacity: 1;
}

.input-group {
    margin-bottom: 24px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.label-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-1);
}

/* Input & Textarea Premium */
.input-wrapper,
.textarea-wrapper {
    position: relative;
}

.input-wrapper input,
.textarea-wrapper textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    outline: none;
}

.textarea-wrapper textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.input-wrapper input::placeholder,
.textarea-wrapper textarea::placeholder {
    color: var(--text-dim);
}

.input-wrapper input:hover,
.textarea-wrapper textarea:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.input-wrapper input:focus,
.textarea-wrapper textarea:focus {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.05);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.1),
        0 0 30px rgba(99, 102, 241, 0.1);
}

.input-border,
.textarea-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.input-wrapper input:focus + .input-border,
.textarea-wrapper textarea:focus + .textarea-border {
    opacity: 1;
}

/* Select Premium */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 16px 48px 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    transition: all var(--transition-fast);
    outline: none;
}

.select-wrapper select:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.select-wrapper select:focus {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.select-wrapper select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px;
}

.select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: transform var(--transition-fast);
}

.select-wrapper select:focus + .select-arrow {
    color: var(--accent-1);
}

/* Options Row */
.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.options-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Checkbox Premium */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    user-select: none;
}

.checkbox-label:hover {
    color: var(--text-primary);
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    position: relative;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.checkbox-custom svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-fast);
    color: white;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.checkbox-label input:checked + .checkbox-custom svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--accent-1);
}

.checkbox-label.compact {
    margin-top: 28px;
}

/* Generate Button - Spectacular */
.btn-generate {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-base);
}

.btn-bg {
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    border-radius: inherit;
    transition: all var(--transition-base);
}

.btn-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%
    );
    border-radius: inherit;
}

.btn-generate:hover .btn-bg {
    transform: scale(1.02);
    box-shadow:
        0 0 50px rgba(99, 102, 241, 0.4),
        0 10px 40px rgba(99, 102, 241, 0.3);
}

.btn-generate:active .btn-bg {
    transform: scale(0.98);
}

.btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1.0625rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-fast);
}

.btn-generate:hover .btn-icon {
    transform: scale(1.1);
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

/* ============================================
   Status Section - Enhanced
   ============================================ */

.status-section {
    margin-top: 40px;
}

.status-section.hidden {
    display: none;
}

.status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 48px 32px;
    background: rgba(12, 12, 18, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    text-align: center;
}

.status-visual {
    position: relative;
    width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sound Wave Animation - Enhanced */
.sound-wave {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 60px;
}

.sound-wave span {
    width: 6px;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    animation: soundWave 1.2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.sound-wave span:nth-child(1) { animation-delay: 0s; height: 30%; }
.sound-wave span:nth-child(2) { animation-delay: 0.1s; height: 50%; }
.sound-wave span:nth-child(3) { animation-delay: 0.2s; height: 80%; }
.sound-wave span:nth-child(4) { animation-delay: 0.3s; height: 60%; }
.sound-wave span:nth-child(5) { animation-delay: 0.4s; height: 100%; }
.sound-wave span:nth-child(6) { animation-delay: 0.5s; height: 60%; }
.sound-wave span:nth-child(7) { animation-delay: 0.6s; height: 80%; }
.sound-wave span:nth-child(8) { animation-delay: 0.7s; height: 50%; }
.sound-wave span:nth-child(9) { animation-delay: 0.8s; height: 30%; }

@keyframes soundWave {
    0%, 100% { transform: scaleY(0.3); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

.status-icon-done,
.status-icon-error {
    display: none;
    width: 60px;
    height: 60px;
}

.status-card.done .sound-wave { display: none; }
.status-card.done .status-icon-done {
    display: block;
    color: var(--success);
    animation: successPop 0.5s var(--ease-out-expo);
    filter: drop-shadow(0 0 20px var(--success-glow));
}

.status-card.error .sound-wave { display: none; }
.status-card.error .status-icon-error {
    display: block;
    color: var(--error);
    animation: errorShake 0.5s var(--ease-out-expo);
    filter: drop-shadow(0 0 20px var(--error-glow));
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.task-id {
    font-size: 0.8125rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

/* ============================================
   Results Section - Premium Cards
   ============================================ */

.results-section {
    margin-top: 48px;
}

.results-section.hidden {
    display: none;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.results-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.2) 0%,
        rgba(167, 139, 250, 0.15) 100%
    );
    border-radius: var(--radius-md);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}

.results-icon {
    width: 26px;
    height: 26px;
    color: var(--accent-1);
}

.results-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-list {
    display: grid;
    gap: 24px;
}

/* Song Card - Premium Glass */
.song-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: rgba(12, 12, 18, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    overflow: hidden;
}

.song-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.02) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.song-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(99, 102, 241, 0.1);
}

.song-cover {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.song-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.song-info {
    min-width: 0;
}

.song-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.song-tags {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.song-actions {
    display: flex;
    gap: 10px;
}

/* Action Buttons Premium */
.btn-action {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-action:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-action:hover::before {
    opacity: 1;
}

.btn-action svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-fast);
}

.btn-action:hover svg {
    transform: scale(1.1);
}

.btn-action.btn-play {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.btn-action.btn-play:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

.btn-action.btn-play.playing {
    animation: playingPulse 2s ease-in-out infinite;
}

@keyframes playingPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}

.btn-action .icon-pause {
    display: none;
}

.btn-action.playing .icon-play {
    display: none;
}

.btn-action.playing .icon-pause {
    display: block;
}

/* ============================================
   My Songs Section
   ============================================ */

.my-songs-section {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.my-songs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.3) 50%,
        transparent 100%
    );
}

.my-songs-section.hidden {
    display: none;
}

.my-songs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.my-songs-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.my-songs-icon-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.2) 0%,
        rgba(167, 139, 250, 0.15) 100%
    );
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.my-songs-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-1);
}

.my-songs-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
}

.btn-refresh {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-refresh:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-1);
    color: var(--accent-1);
    transform: rotate(90deg);
}

.btn-refresh.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-refresh svg {
    width: 20px;
    height: 20px;
}

.my-songs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.my-songs-loading.hidden {
    display: none;
}

.mini-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-medium);
    border-top-color: var(--accent-1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.my-songs-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
}

.my-songs-empty.hidden {
    display: none;
}

.my-songs-empty svg {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    opacity: 0.4;
    color: var(--accent-1);
}

.my-songs-empty p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.my-songs-empty span {
    font-size: 0.9375rem;
}

.my-songs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 16px;
}

/* Mini Song Card */
.song-card-mini {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: rgba(12, 12, 18, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

.song-card-mini:hover {
    background: rgba(18, 18, 26, 0.85);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.song-cover-mini {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.song-info-mini {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.song-title-mini {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.song-tags-mini {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.song-actions-mini {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.btn-mini {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-mini:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--accent-1);
}

.btn-mini.btn-play-mini {
    background: var(--accent-gradient);
    border: none;
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.btn-mini.btn-play-mini:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.btn-mini.btn-play-mini.playing {
    animation: miniPlayPulse 2s ease-in-out infinite;
}

@keyframes miniPlayPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.5); }
}

.btn-mini svg {
    width: 16px;
    height: 16px;
}

.btn-mini .icon-pause {
    display: none;
}

.btn-mini.playing .icon-play {
    display: none;
}

.btn-mini.playing .icon-pause {
    display: block;
}

.btn-mini.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--error);
}

/* ============================================
   Modal Overlay - Premium Glass
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-2xl);
    padding: 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.3s var(--ease-out-expo);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    color: var(--error);
}

.modal-icon-accent {
    background: rgba(99, 102, 241, 0.15);
}

.modal-icon-accent svg {
    color: var(--accent-1);
}

.modal-icon-warning {
    background: rgba(245, 158, 11, 0.15);
}

.modal-icon-warning svg {
    color: var(--warning);
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal-actions {
    display: flex;
    gap: 14px;
}

.modal-actions-vertical {
    flex-direction: column;
}

.modal-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

.modal-btn-delete {
    background: var(--error);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.modal-btn-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.modal-btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.modal-btn-secondary {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    text-decoration: none;
    text-align: center;
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works {
    position: relative;
    z-index: 10;
    padding: 100px 24px;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(167, 139, 250, 0.1) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    position: relative;
    padding: 40px 32px;
    background: rgba(12, 12, 18, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.015) 0%,
        transparent 50%
    );
    border-radius: inherit;
    pointer-events: none;
}

.step:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(99, 102, 241, 0.1);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(167, 139, 250, 0.1) 100%
    );
    border-radius: var(--radius-lg);
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-1);
}

.step h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing {
    position: relative;
    z-index: 10;
    padding: 100px 24px;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    padding: 6px;
    background: rgba(12, 12, 18, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-toggle-btn {
    flex: 1;
    padding: 14px 28px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.pricing-toggle-btn:hover:not(.active) {
    color: var(--text-primary);
}

.pricing-toggle-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

#pricing-subscription.pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 28px;
    background: rgba(12, 12, 18, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.015) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(99, 102, 241, 0.08);
}

.pricing-card-popular {
    border-color: var(--accent-1);
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.08) 0%,
        rgba(167, 139, 250, 0.05) 100%
    );
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.pricing-card-popular:hover {
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(99, 102, 241, 0.2);
}

.popular-badge {
    position: absolute;
    top: -1px;
    right: 24px;
    padding: 8px 18px;
    background: var(--accent-gradient);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.pricing-card-header {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-card-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

.price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--accent-1);
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.pricing-btn-primary {
    background: var(--accent-gradient);
    background-size: 200% 200%;
    border: none;
    color: white;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
    animation: gradientShift 6s ease infinite;
}

.pricing-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(99, 102, 241, 0.4);
}

.pricing-btn-secondary {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

.pricing-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-1);
}

.pricing-note {
    text-align: center;
    margin-top: 48px;
    font-size: 0.9375rem;
    color: var(--text-muted);
}



/* ============================================
   Notifications - Premium
   ============================================ */

.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.4s var(--ease-out-expo);
    max-width: 420px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(16, 185, 129, 0.15);
}

.notification-error {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(239, 68, 68, 0.15);
}

.notification-info {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(99, 102, 241, 0.15);
}

.notification span {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #fff;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.notification-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* No Credits Modal Actions */
.no-credits-actions {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.no-credits-actions button {
    flex: 1;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.no-credits-actions .btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.no-credits-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.no-credits-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

.no-credits-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

/* ============================================
   Share Modal
   ============================================ */

.share-modal-content {
    max-width: 440px;
    text-align: center;
}

.share-modal-content h3 {
    margin: 0 0 10px;
    font-size: 1.375rem;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.share-song-title {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 28px;
    font-style: italic;
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.share-btn-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
}

.share-btn-large:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.share-btn-large svg {
    width: 32px;
    height: 32px;
    transition: transform var(--transition-fast);
}

.share-btn-large:hover svg {
    transform: scale(1.15);
}

/* Social Platform Colors */
.share-btn-large[data-platform="whatsapp"] {
    border-color: rgba(37, 211, 102, 0.3);
}
.share-btn-large[data-platform="whatsapp"]:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.5);
}
.share-btn-large[data-platform="whatsapp"] svg {
    fill: #25D366;
}

.share-btn-large[data-platform="x"] {
    border-color: rgba(255, 255, 255, 0.15);
}
.share-btn-large[data-platform="x"]:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}
.share-btn-large[data-platform="x"] svg {
    fill: var(--text-primary);
}

.share-btn-large[data-platform="facebook"] {
    border-color: rgba(24, 119, 242, 0.3);
}
.share-btn-large[data-platform="facebook"]:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.5);
}
.share-btn-large[data-platform="facebook"] svg {
    fill: #1877F2;
}

.share-btn-large[data-platform="telegram"] {
    border-color: rgba(0, 136, 204, 0.3);
}
.share-btn-large[data-platform="telegram"]:hover {
    background: rgba(0, 136, 204, 0.15);
    border-color: rgba(0, 136, 204, 0.5);
}
.share-btn-large[data-platform="telegram"] svg {
    fill: #0088cc;
}

.share-btn-large[data-platform="email"] {
    border-color: rgba(99, 102, 241, 0.3);
}
.share-btn-large[data-platform="email"]:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
}
.share-btn-large[data-platform="email"] svg {
    stroke: var(--accent-1);
    fill: none;
}

.share-btn-large[data-platform="copy"] {
    border-color: rgba(148, 163, 184, 0.3);
}
.share-btn-large[data-platform="copy"]:hover {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.5);
}
.share-btn-large[data-platform="copy"] svg {
    stroke: var(--text-secondary);
    fill: none;
}

.share-btn-large[data-platform="tiktok"] {
    border-color: rgba(255, 0, 80, 0.3);
}
.share-btn-large[data-platform="tiktok"]:hover {
    background: rgba(255, 0, 80, 0.15);
    border-color: rgba(255, 0, 80, 0.5);
}
.share-btn-large[data-platform="tiktok"] svg {
    fill: #ff0050;
}

.share-btn-large[data-platform="instagram"] {
    border-color: rgba(225, 48, 108, 0.3);
}
.share-btn-large[data-platform="instagram"]:hover {
    background: linear-gradient(135deg,
        rgba(131, 58, 180, 0.15) 0%,
        rgba(253, 29, 29, 0.15) 50%,
        rgba(252, 176, 69, 0.15) 100%
    );
    border-color: rgba(225, 48, 108, 0.5);
}
.share-btn-large[data-platform="instagram"] svg {
    stroke: #E1306C;
    fill: none;
}

.share-btn-large[data-platform="youtube"] {
    border-color: rgba(255, 0, 0, 0.3);
}
.share-btn-large[data-platform="youtube"]:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.5);
}
.share-btn-large[data-platform="youtube"] svg {
    fill: #FF0000;
}

.share-btn-large[data-platform="linkedin"] {
    border-color: rgba(0, 119, 181, 0.3);
}
.share-btn-large[data-platform="linkedin"]:hover {
    background: rgba(0, 119, 181, 0.15);
    border-color: rgba(0, 119, 181, 0.5);
}
.share-btn-large[data-platform="linkedin"] svg {
    fill: #0077B5;
}

.share-btn-large[data-platform="twitter"] {
    border-color: rgba(29, 161, 242, 0.3);
}
.share-btn-large[data-platform="twitter"]:hover {
    background: rgba(29, 161, 242, 0.15);
    border-color: rgba(29, 161, 242, 0.5);
}
.share-btn-large[data-platform="twitter"] svg {
    fill: #1DA1F2;
}

.share-btn-large.loading {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

.share-btn-large.loading svg {
    animation: pulse 1s ease-in-out infinite;
}

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 48px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    #pricing-subscription.pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
    
    
}

@media (max-width: 768px) {
    .hero {
        padding: 48px 20px 40px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    /* Reposicionar floating elements dentro de la imagen */
    .floating-note-1 {
        top: 5%;
        left: 5%;
        width: 36px;
        height: 36px;
    }
    
    .floating-note-2 {
        bottom: 20%;
        right: 5%;
        width: 30px;
        height: 30px;
    }
    
    .floating-wave {
        top: 30%;
        left: 3%;
        width: 40px;
        height: 40px;
    }
    
    .floating-sparkle-1 {
        top: 10%;
        right: 8%;
        width: 20px;
        height: 20px;
    }
    
    .floating-sparkle-2 {
        bottom: 15%;
        left: 12%;
        width: 16px;
        height: 16px;
    }
    
    .floating-eq {
        bottom: 5%;
        right: 10%;
        width: 38px;
        height: 38px;
    }
    
    .main {
        padding: 0 20px 60px;
    }
    
    .tabs {
        border-radius: var(--radius-xl);
    }
    
    .tab {
        padding: 14px 16px;
        font-size: 0.875rem;
    }
    
    .form-card {
        padding: 28px 20px;
    }
    
    .options-row,
    .options-row.three-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkbox-label.compact {
        margin-top: 0;
    }
    
    .song-card {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .song-cover {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .song-actions {
        justify-content: center;
    }
    
    .pricing-grid,
    #pricing-subscription.pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-toggle {
        flex-direction: row;
        max-width: 100%;
        width: 100%;
        border-radius: var(--radius-xl);
    }
    
    .pricing-toggle-btn {
        padding: 12px 16px;
        font-size: 0.875rem;
        border-radius: var(--radius-lg);
    }
    
    .how-it-works,
    .pricing {
        padding: 64px 20px;
    }
    
    
}

@media (max-width: 560px) {
    .nav-links {
        gap: 6px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    
    .btn-signup {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .btn-signup span:not(.sr-only) {
        display: none;
    }
    
    .share-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .my-songs-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }
    
    .logo-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .credits-display {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
    
    .credits-display .credits-label {
        display: none;
    }
    
    .pricing-toggle {
        padding: 4px;
    }
    
    .pricing-toggle-btn {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
    
    .notification {
        left: 16px;
        right: 16px;
        max-width: none;
    }
    
    .modal-content {
        padding: 28px 20px;
        margin: 16px;
    }
    
    .modal-actions {
        flex-direction: column-reverse;
    }
    
    .share-modal-content {
        margin: 16px;
    }
}

/* ============================================
   Additional Utilities & Touch Optimizations
   ============================================ */

/* Pricing grid hidden state */
.pricing-grid.hidden {
    display: none;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-generate:hover,
    .btn-action:hover,
    .song-card:hover,
    .pricing-card:hover,
    .step:hover {
        transform: none;
    }
    
    .song-card:hover .song-cover img {
        transform: none;
    }
    
    .hero-image-container:hover .hero-image {
        transform: none;
    }
    
    input[type="text"],
    textarea,
    select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .share-btn-large:hover {
        transform: none;
    }
   
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 32px 20px 24px;
    }
    
    .hero-badge {
        margin-bottom: 16px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        margin-bottom: 16px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .song-card-mini {
        gap: 10px;
        padding: 10px;
    }
    
    .song-cover-mini {
        width: 48px;
        height: 48px;
    }
    
    .song-actions-mini {
        gap: 4px;
    }
    
    .btn-mini {
        width: 30px;
        height: 30px;
    }
    
    .nav-links {
        gap: 4px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 0.8125rem;
    }
    
    .btn-signup {
        padding: 8px 12px;
        font-size: 0.8125rem;
    }
    
    .pricing-toggle-btn {
        padding: 9px 8px;
        font-size: 0.75rem;
    }
    
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bg-aurora,
    .bg-aurora::before,
    .orb,
    .logo-pulse,
    .sound-wave span {
        animation: none;
    }
    
    .gradient-text,
    .logo-text,
    .btn-bg,
    .tab-indicator,
    .pricing-btn-primary {
        animation: none;
        background-size: 100% 100%;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    :root {
        --border-subtle: rgba(255, 255, 255, 0.2);
        --border-medium: rgba(255, 255, 255, 0.35);
        --text-secondary: #d4d4d8;
        --text-muted: #a1a1aa;
    }
    
    .btn-signup,
    .btn-generate .btn-bg,
    .pricing-btn-primary,
    .modal-btn-primary {
        border: 2px solid white;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .bg-aurora,
    .bg-grid,
    .bg-orbs,
    .header,
    .btn-generate,
    .btn-action,
    .btn-mini,
    .floating-element {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .song-card,
    .form-card,
    .pricing-card {
        border: 1px solid #ccc;
        background: white;
    }
}

.recent-songs {
    position: relative;
    z-index: 10;
    padding: 80px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.recent-songs-container {
    background: rgba(12, 12, 18, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.recent-songs-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(245, 166, 35, 0.03) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.recent-songs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.recent-songs-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.recent-songs-icon-wrapper {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient-subtle, linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(247, 183, 49, 0.1) 100%));
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 25px rgba(245, 166, 35, 0.15);
}

.recent-songs-icon {
    width: 26px;
    height: 26px;
    color: var(--gold-1, #F5A623);
}

.recent-songs-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.recent-songs-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.recent-songs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 64px 24px;
    color: var(--text-secondary);
}

.recent-songs-loading.hidden {
    display: none;
}

.recent-songs-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
}

.recent-songs-empty.hidden {
    display: none;
}

.recent-songs-empty svg {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    opacity: 0.4;
    color: var(--gold-1, #F5A623);
}

.recent-songs-empty p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.recent-songs-empty span {
    font-size: 0.9375rem;
}

/* Grid de canciones recientes */
.recent-songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Card de canción reciente */
.recent-song-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.recent-song-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(245, 166, 35, 0.05) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.recent-song-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(245, 166, 35, 0.1);
}

.recent-song-card:hover::before {
    opacity: 1;
}

.recent-song-cover {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast);
}

.recent-song-card:hover .recent-song-cover {
    transform: scale(1.05);
}

.recent-song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.recent-song-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.recent-song-tags {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.recent-song-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.recent-song-duration,
.recent-song-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-song-duration svg,
.recent-song-time svg {
    width: 12px;
    height: 12px;
}

/* Botón de play en hover */
.recent-song-play {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient, linear-gradient(135deg, #F5A623 0%, #F7B731 40%, #FFC857 100%));
    border: none;
    border-radius: 50%;
    color: #1a1a1a;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
    z-index: 2;
}

.recent-song-play svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.recent-song-card:hover .recent-song-play {
    opacity: 1;
}

.recent-song-play:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}

.recent-song-play.playing {
    animation: recentPlayPulse 2s ease-in-out infinite;
}

@keyframes recentPlayPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(245, 166, 35, 0.6); }
}

.recent-song-play .icon-pause {
    display: none;
    margin-left: 0;
}

.recent-song-play.playing .icon-play {
    display: none;
}

.recent-song-play.playing .icon-pause {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .recent-songs {
        padding: 60px 20px;
    }
    
    .recent-songs-container {
        padding: 28px 20px;
    }
    
    .recent-songs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .recent-songs-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-song-play {
        opacity: 1;
        position: static;
        transform: none;
        flex-shrink: 0;
    }
    
    .recent-song-play:hover {
        transform: scale(1.05);
    }
    
    .recent-song-card {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .recent-songs-icon-wrapper {
        width: 44px;
        height: 44px;
    }
    
    .recent-songs-icon {
        width: 22px;
        height: 22px;
    }
    
    .recent-songs-header h2 {
        font-size: 1.25rem;
    }
    
    .recent-song-cover {
        width: 60px;
        height: 60px;
    }
    
    .recent-song-play {
        width: 38px;
        height: 38px;
    }
    
    .recent-song-play svg {
        width: 16px;
        height: 16px;
    }
}

/* Ocultar hasta que i18n esté listo */
.app {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.app.i18n-ready {
    opacity: 1;
}
/* Botón Cargar más */
.btn-load-more {
    width: 100%;
    padding: 12px 20px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-load-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

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

.btn-load-more .mini-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}
