/* ========================================
   CSS Variables & Reset
   ======================================== */

:root {
    /* Colors */
    --color-primary: #a855f7;
    --color-primary-light: #c084fc;
    --color-primary-dark: #9333ea;
    --color-primary-darker: #7e22ce;
    
    --color-secondary: #e879f9;
    --color-accent: #fbbf24;
    
    --color-bg-dark: #0a0a0a;
    --color-bg-darker: #050505;
    --color-bg-card: #18181b;
    --color-bg-card-hover: #27272a;
    
    --color-text-primary: #fafafa;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    
    --color-border: #27272a;
    --color-border-light: #3f3f46;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.3);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --header-height: 80px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Utilities
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm);
    z-index: 100;
    text-decoration: none;
    border-radius: var(--radius-md);
}

.skip-link:focus {
    top: var(--spacing-sm);
    left: var(--spacing-sm);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navigation & Header Styles
   ======================================== */

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 9998;
    transition: var(--transition-base);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.logo-text .accent {
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: var(--spacing-md);
    position: relative;
    z-index: 99999;
    min-width: 48px;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    left: 0;
}

.hamburger::before {
    top: -8px;
    transform: var(--before-transform, none);
}

.hamburger::after {
    bottom: -8px;
    transform: var(--after-transform, none);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* User Menu & Dropdown */
.user-menu {
    position: relative;
    z-index: 9999;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-arrow {
    transition: var(--transition-fast);
}

.user-menu-trigger[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Desktop dropdown styles - only apply on screens wider than 768px */
@media (min-width: 769px) {
    .user-dropdown {
        position: absolute;
        top: calc(100% + var(--spacing-xs));
        right: 0;
        min-width: 280px;
        background: rgba(20, 20, 20, 0.95);
        border: 1px solid rgba(139, 69, 197, 0.3);
        border-radius: var(--radius-lg);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition-smooth);
        z-index: 9999;
    }

    .user-menu.active .user-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: block !important;
    }
}

.user-dropdown-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(139, 69, 197, 0.2);
    background: rgba(139, 69, 197, 0.1);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.user-name-full {
    font-weight: 600;
    color: var(--color-white);
    font-size: 1rem;
}

.user-email {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.user-dropdown-menu {
    padding: var(--spacing-xs);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--color-white);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(139, 69, 197, 0.2);
    color: var(--color-primary);
    transform: translateX(2px);
}

.dropdown-item.logout {
    margin-top: var(--spacing-xs);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(139, 69, 197, 0.2);
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ff5555;
}

.dropdown-item.impersonation-exit {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.dropdown-item.impersonation-exit:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fde047;
}

.dropdown-icon {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.dropdown-item:hover .dropdown-icon {
    color: currentColor;
}

/* ========================================
   Mobile Navigation Styles
   ======================================== */
@media (max-width: 768px) {
    .logo {
        flex-shrink: 0;
        order: 1;
    }
    
    .logo .logo-text {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        position: relative;
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 69, 197, 0.2));
        border-radius: var(--radius-md);
        border: 1px solid rgba(168, 85, 247, 0.4);
        transition: all 0.3s ease;
        flex-shrink: 0;
        order: 2;
    }
    
    .mobile-menu-toggle:hover {
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(139, 69, 197, 0.3));
        border-color: rgba(168, 85, 247, 0.6);
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }
    
    /* Improved mobile menu */
    .navbar-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        background: linear-gradient(180deg, rgba(10, 10, 20, 0.98) 0%, rgba(15, 10, 25, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-2xl);
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        margin: 0;
    }
    
    .navbar-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
        flex: 0 0 auto;
    }
    
    .nav-links li {
        width: 100%;
        animation: slideInRight 0.3s ease forwards;
        opacity: 0;
    }
    
    .navbar-menu.active .nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .navbar-menu.active .nav-links li:nth-child(2) { animation-delay: 0.15s; }
    .navbar-menu.active .nav-links li:nth-child(3) { animation-delay: 0.2s; }
    .navbar-menu.active .nav-links li:nth-child(4) { animation-delay: 0.25s; }
    .navbar-menu.active .nav-links li:nth-child(5) { animation-delay: 0.3s; }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: var(--radius-lg);
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 69, 197, 0.15));
        border: 1px solid rgba(168, 85, 247, 0.3);
        transition: all 0.3s ease;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        color: var(--color-white);
        position: relative;
        overflow: hidden;
    }
    
    .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .nav-links a:hover::before {
        left: 100%;
    }
    
    .nav-links a:hover {
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(139, 69, 197, 0.3));
        border-color: rgba(168, 85, 247, 0.6);
        transform: translateX(4px);
        box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
        color: var(--color-white);
    }
    
    .nav-actions {
        width: 100%;
        flex-direction: column;
        gap: var(--spacing-sm);
        padding-top: var(--spacing-lg);
        border-top: 2px solid rgba(168, 85, 247, 0.2);
        flex: 0 0 auto;
        margin-top: var(--spacing-md);
    }
    
    /* Mobile User Menu */
    .user-menu {
        width: 100%;
        position: relative;
        z-index: 1000;
    }
    
    .user-menu-trigger {
        width: 100%;
        justify-content: space-between;
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: var(--radius-lg);
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 69, 197, 0.15));
        border: 1px solid rgba(168, 85, 247, 0.3);
    }
    
    /* Reset all desktop dropdown styles for mobile - HIDDEN by default */
    .navbar-menu .nav-actions .user-menu .user-dropdown {
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        min-width: 100% !important;
        transform: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        transition: max-height 0.3s ease, opacity 0.3s ease !important;
        margin-top: var(--spacing-sm);
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        display: block !important;
    }
    
    /* Show dropdown when active - MUST match or exceed specificity of hiding rule above (4 classes) */
    .navbar-menu .nav-actions .user-menu.active .user-dropdown {
        display: block !important;
        max-height: 500px !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: var(--spacing-md) !important;
        border: 2px solid #a855f7 !important;
        background: rgba(10, 10, 20, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: var(--radius-lg) !important;
        width: 100% !important;
        position: relative !important;
        z-index: 99999 !important;
    }
    
    /* Even more specific rule to ensure it shows */
    .navbar-menu.active .nav-actions .user-menu.active > .user-dropdown {
        display: block !important;
        max-height: 999px !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 99999 !important;
    }
    
    .navbar-menu .nav-actions .user-menu.active .user-dropdown .user-dropdown-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-xs) !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
    }
    
    .navbar-menu .nav-actions .user-menu.active .user-dropdown .dropdown-item {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .user-dropdown-menu {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .dropdown-item {
        padding: var(--spacing-md) var(--spacing-lg);
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 69, 197, 0.2));
        border: 1px solid rgba(168, 85, 247, 0.4);
        font-size: 1rem;
        font-weight: 600;
        border-radius: var(--radius-lg);
        color: var(--color-white);
        transition: all 0.3s ease;
    }
    
    .user-menu-trigger .user-avatar {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .user-menu-trigger .user-name {
        flex: 1;
        text-align: left;
        margin-left: var(--spacing-sm);
    }
    
    .user-menu-trigger:hover {
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(139, 69, 197, 0.3));
        border-color: rgba(168, 85, 247, 0.6);
        transform: translateX(4px);
    }
    
    .user-menu-trigger .dropdown-arrow {
        transition: transform 0.3s ease;
    }
    
    .user-menu.active .user-menu-trigger .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .user-dropdown-header {
        display: none;
    }
    
    .user-dropdown .dropdown-item {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: all 0.2s ease;
        pointer-events: auto !important;
    }
    
    .user-menu.active .user-dropdown .dropdown-item {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    .dropdown-item {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .dropdown-item .dropdown-icon {
        flex-shrink: 0;
    }
    
    .dropdown-item:hover {
        background: rgba(168, 85, 247, 0.2);
        transform: translateX(4px);
    }
    
    .dropdown-item.logout {
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-md);
        border-top: 1px solid rgba(168, 85, 247, 0.3);
        color: #ef4444;
    }
    
    .dropdown-item.logout:hover {
        background: rgba(239, 68, 68, 0.1);
        color: #ff5555;
    }

    /* Hero Section Mobile */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }

    .hero-section {
        padding-top: calc(70px + var(--spacing-2xl));
        padding-bottom: var(--spacing-2xl);
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .btn-large {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .step-connector {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Authentication Pages Mobile */
    .auth-container {
        padding: var(--spacing-sm);
    }
    
    .auth-wrapper {
        border-radius: var(--radius-lg);
    }
    
    .auth-content {
        padding: var(--spacing-lg);
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .social-login-buttons {
        flex-direction: column;
    }
    
    .instrument-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-navigation {
        flex-direction: column-reverse;
    }
    
    .btn-back,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
    
    .pricing-cards {
        gap: var(--spacing-lg);
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .auth-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .separator {
        display: none;
    }

    /* Success Card Mobile */
    .success-card {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    .success-title {
        font-size: 1.5rem;
    }
    .success-message {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    .success-actions {
        padding: 0 var(--spacing-sm);
    }
}



/* ========================================
   Buttons
   ======================================== */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(168, 85, 247, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(168, 85, 247, 0.1);
    color: var(--color-primary-light);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.2);
    color: var(--color-primary-light);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    padding-top: calc(80px + var(--spacing-3xl));
    padding-bottom: var(--spacing-3xl);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(232, 121, 249, 0.1) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

.hero-visual {
    position: relative;
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}

.hero-illustration {
    width: 400px;
    height: 400px;
    position: relative;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 60%;
    right: -10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: -5%;
    animation-delay: 2s;
}

.card-4 {
    top: 10%;
    right: -5%;
    animation-delay: 0.5s;
}

.card-5 {
    bottom: 50%;
    right: -15%;
    animation-delay: 1.5s;
}

.card-icon {
    font-size: 1.5rem;
}

.card-text {
    font-weight: 600;
    font-size: 0.875rem;
}

/* ========================================
   Sections
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* Instruments Section */
.instruments-section {
    padding: var(--spacing-3xl) 0;
    background: var(--color-bg-darker);
}

.instruments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.instrument-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.instrument-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.instrument-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.instrument-icon .iconify,
.instrument-icon svg {
    font-size: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    width: 1em;
    height: 1em;
}

.instrument-icon .iconify svg {
    width: 1em !important;
    height: 1em !important;
    display: block !important;
    margin: 0 auto !important;
}

.instrument-name {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.instrument-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--color-primary);
}

.link-icon {
    width: 16px;
    height: 16px;
}

/* Features Section */
.features-section {
    padding: var(--spacing-3xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-card-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.feature-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: var(--spacing-3xl) 0;
    background: var(--color-bg-darker);
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto var(--spacing-md);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.step-description {
    color: var(--color-text-secondary);
}

.step-connector {
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    position: relative;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--spacing-3xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-md);
}

.star {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    font-weight: 600;
    font-style: normal;
}

.testimonial-instrument {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(232, 121, 249, 0.1) 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.cta-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--color-bg-darker);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.footer-subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.footer-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
}

.social-link .icon {
    width: 20px;
    height: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

/* ========================================
   Authentication Pages
   ======================================== */
.auth-page main {
    padding-top: var(--header-height);
}

.auth-container {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(232, 121, 249, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    animation: floatGradient 20s ease-in-out infinite;
}

@keyframes floatGradient {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: clamp(320px, 92vw, 680px);
    background: var(--color-bg-card);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-wrapper-wide {
    max-width: 1200px;
}

.auth-wrapper-centered {
    max-width: 500px;
}

.auth-content {
    flex: 1;
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.auth-content-narrow {
    width: 100%;
}

.auth-header {
    margin-bottom: var(--spacing-xl);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-primary);
}

.auth-logo .logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.auth-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.auth-logo .logo-text .accent {
    color: var(--color-primary);
}

.auth-form-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.auth-form-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-title {
    font-size: 2rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-label {
    font-weight: 500;
    color: var(--color-text-primary);
    font-size: 0.875rem;
}

.form-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-link {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.form-link:hover {
    color: var(--color-primary-light);
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--color-bg-darker);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition-fast);
}

.password-toggle:hover {
    color: var(--color-primary);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Checkbox Styles */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    background: var(--color-bg-darker);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-fast);
}

.checkbox-wrapper:hover .checkbox-custom {
    border-color: var(--color-primary);
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Button Styles */
.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.btn-link:hover {
    color: var(--color-primary-light);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: var(--spacing-lg) 0;
}

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

.divider-text {
    position: relative;
    background: var(--color-bg-card);
    padding: 0 var(--spacing-sm);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Social Login */
.social-login-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-login-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem;
    background: var(--color-bg-darker);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.social-login-btn:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-primary);
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* Benefits List */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 14px;
    height: 14px;
}

.benefit-text {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Testimonial Card */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.testimonial-quote {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.quote-icon {
    width: 24px;
    height: 24px;
    opacity: 0.3;
    margin-bottom: var(--spacing-xs);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

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

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: space-around;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

/* Auth Footer */
.auth-footer-text {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.auth-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--color-primary-light);
}

/* Registration Form Specific */
/* (removed stepper UI styles: .auth-steps, .step-item, .step-circle, .step-number, .step-check, .step-info, .step-title, .step-description) */

.register-container {
    padding: 0 var(--spacing-2xl) var(--spacing-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.register-form {
    margin-bottom: var(--spacing-lg);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.step-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.step-heading {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
}

.step-subheading {
    color: var(--color-text-secondary);
}

/* Instrument Selection */
.preference-section {
    margin-bottom: var(--spacing-2xl);
}

.preference-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.instrument-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.instrument-select {
    cursor: pointer;
}

.instrument-radio {
    position: absolute;
    opacity: 0;
}

.instrument-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--color-bg-darker);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.instrument-radio:checked + .instrument-box {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--color-primary);
}

.instrument-select:hover .instrument-box {
    border-color: var(--color-primary);
}

.instrument-emoji {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.instrument-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Experience Levels */
.experience-levels {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.experience-option {
    cursor: pointer;
}

.experience-radio {
    position: absolute;
    opacity: 0;
}

.experience-box {
    padding: var(--spacing-md);
    background: var(--color-bg-darker);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.experience-radio:checked + .experience-box {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--color-primary);
}

.experience-option:hover .experience-box {
    border-color: var(--color-primary);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.experience-label {
    font-weight: 600;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition-fast);
}

.experience-radio:checked ~ .experience-box .radio-custom {
    border-color: var(--color-primary);
}

.experience-radio:checked ~ .experience-box .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.experience-description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Time Slider */
.time-slider {
    padding: var(--spacing-md);
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--color-bg-darker);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.slider-value {
    color: var(--color-primary);
    font-weight: 600;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.pricing-card {
    position: relative;
}

.pricing-card.recommended {
    transform: scale(1.05);
}

.recommended-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.pricing-label {
    cursor: pointer;
}

.plan-radio {
    position: absolute;
    opacity: 0;
}

.pricing-content {
    background: var(--color-bg-darker);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-fast);
}

.plan-radio:checked + .pricing-content {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--color-primary);
}

.pricing-label:hover .pricing-content {
    border-color: var(--color-primary);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.plan-name {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

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

.plan-savings {
    margin-top: var(--spacing-xs);
    color: var(--color-primary-light);
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
}

.feature-icon {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-select {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    font-weight: 600;
    position: relative;
}

.select-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    margin-left: var(--spacing-sm);
    position: relative;
}

.plan-radio:checked ~ .pricing-content .select-indicator {
    border-color: var(--color-primary);
}

.plan-radio:checked ~ .pricing-content .select-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.btn-back,
.btn-next,
.btn-submit {
    min-width: 150px;
}

/* Password Strength */
.password-strength {
    margin-top: var(--spacing-xs);
}

.strength-bar {
    height: 4px;
    background: var(--color-bg-darker);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar.weak { background-color: #ef4444; }
.strength-bar.medium { background-color: #f59e0b; }
.strength-bar.good { background-color: #84cc16; }
.strength-bar.strong { background-color: #22c55e; }

.strength-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

/* Password Requirements */
.password-requirements {
    background: var(--color-bg-darker);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.requirements-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.requirements-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.requirement-item.met {
    color: #10b981;
}

.requirement-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Success/Error States */
.success-container,
.error-container {
    text-align: center;
    padding: var(--spacing-2xl);
}

.success-icon-wrapper,
.error-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon,
.error-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.error-icon {
    color: #ef4444;
}

.email-tips {
    background: var(--color-bg-darker);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    text-align: left;
}

.tip-title {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.tips-list li::before {
    content: '•';
    color: var(--color-primary);
    margin-right: var(--spacing-xs);
}

/* Icon Wrapper */
.icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon {
    width: 30px;
    height: 30px;
    color: var(--color-primary);
}

/* Auth Links */
.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.link-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

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

.inline-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.inline-link:hover {
    color: var(--color-primary-light);
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

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

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

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

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

@media (max-width: 480px) {
    .auth-container {
        padding: var(--spacing-sm);
        align-items: center;
    }
    
    .auth-wrapper {
        border-radius: var(--radius-lg);
        border: 1px solid var(--color-border);
        min-height: auto;
    }
    
    .auth-content {
        padding: var(--spacing-md);
    }
    
    .auth-title {
        font-size: 1.25rem;
    }
    
    .instrument-emoji {
        font-size: 1.5rem;
    }
    
    .pricing-header {
        padding-bottom: var(--spacing-sm);
    }
    
    .plan-name {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 1.75rem;
    }
}

/* Compact vertical spacing for shorter screens to avoid scroll */
@media (max-height: 800px) {
    .auth-content {
        padding: var(--spacing-xl);
    }
    .auth-header,
    .auth-form-header {
        margin-bottom: var(--spacing-lg);
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme by default */
}

/* Hover Effects Disabled on Touch Devices */
@media (hover: none) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover {
        transform: none;
    }
    
    .instrument-card:hover,
    .feature-card:hover,
    .social-login-btn:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 2px;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
    
    .auth-wrapper {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .decoration-circle,
    .floating-card,
    .hero-image-glow {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .social-login-buttons,
    .btn-back,
    .password-toggle {
        display: none !important;
    }
    
    .auth-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .auth-container {
        min-height: auto;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .navbar-content {
        gap: var(--spacing-sm);
        padding: 0 var(--spacing-md);
        position: relative;
        z-index: 99998;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-menu {
        gap: var(--spacing-lg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero-image-glow,
    .hero-illustration {
        width: 320px;
        height: 320px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    /* Auth form adjustments */
    .auth-wrapper {
        flex-direction: column;
        max-width: clamp(320px, 94vw, 560px);
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .pricing-card.recommended {
        transform: none;
    }
}

/* Small phones */
@media (max-width: 640px) {
    html {
        font-size: 15px;
    }

    .navbar {
        padding: var(--spacing-xs) 0;
    }

    .hero-section {
        padding-top: calc(70px + var(--spacing-2xl));
        padding-bottom: var(--spacing-2xl);
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .btn-large {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }
}

/* Very small phones: tighten spacing & font sizes slightly */
@media (max-width: 360px) {
    :root { --header-height: 64px; }
    .auth-content { padding: var(--spacing-lg); }
    .auth-title { font-size: 1.5rem; }
    .btn-primary, .btn-secondary { padding: 0.6rem 1rem; }
}

/* Small phones use a shorter header height */
@media (max-width: 640px) {
    :root { --header-height: 70px; }
}

/* Success Page Styles */
.success-card {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.success-icon {
    display: inline-block;
    color: #22c55e;
    width: 4rem;
    height: 4rem;
    margin-bottom: var(--spacing-md);
}

.success-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.success-message {
    max-width: 450px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Responsive adjustments for the success page */
@media (max-width: 480px) {
    .success-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    .success-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: var(--spacing-sm);
    }
    .success-title {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-xs);
    }
    .success-message {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-md);
    }
    .success-actions .btn-primary {
        width: 100%;
        max-width: 280px;
    }
}

