/* ==========================================
   AI Slide Generator - iOS 26 Liquid Glass Design
   Powered by CodeCom
   ========================================== */

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease-out, visibility 0s linear 1.2s;
    will-change: opacity;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.loader-logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 8px 24px rgba(10, 132, 255, 0.5));
    transform: translateZ(0);
    backface-visibility: hidden;
}

.loader-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
    backface-visibility: hidden;
    display: flex;
}

.loader-title .letter {
    display: inline-block;
    animation: letterPulse 2s ease-in-out infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: opacity, transform;
}

.loader-title .letter:nth-child(1) { animation-delay: 0s; }
.loader-title .letter:nth-child(2) { animation-delay: 0.15s; }
.loader-title .letter:nth-child(3) { animation-delay: 0.3s; }
.loader-title .letter:nth-child(4) { animation-delay: 0.45s; }
.loader-title .letter:nth-child(5) { animation-delay: 0.6s; }
.loader-title .letter:nth-child(6) { animation-delay: 0.75s; }
.loader-title .letter:nth-child(7) { animation-delay: 0.9s; }

@keyframes letterPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        color: rgba(255, 255, 255, 0.4);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        color: #ffffff;
    }
}

.loader-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* CSS Variables - iOS 26 Style */
:root {
    /* Glass Effects - Multi-layer */
    --glass-bg: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
    --glass-border-top: rgba(255, 255, 255, 0.4);
    --glass-border-bottom: rgba(255, 255, 255, 0.1);
    --glass-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 32px 64px -12px rgba(0, 0, 0, 0.4);
    --glass-blur: 40px;
    --glass-saturate: 180%;
    
    /* Specular Highlight */
    --specular-gradient: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 40%,
        transparent 60%
    );
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* Accent Colors - iOS 26 Vibrant */
    --accent-color: #0A84FF;
    --accent-hover: #409CFF;
    --accent-glow: rgba(10, 132, 255, 0.5);
    --success-color: #30D158;
    --error-color: #FF453A;
    --warning-color: #FF9F0A;
    
    /* Border Radius - iOS 26 Continuous Corners */
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 44px;
    
    /* Animation Timing */
    --spring-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --smooth-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
    background: #000000;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iOS 26 Pure Black Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #000000;
}

.container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 30px 20px; 
    position: relative; 
    z-index: 1;
}

/* iOS 26 Glass Card Mixin */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid;
    border-image: linear-gradient(
        180deg,
        var(--glass-border-top) 0%,
        var(--glass-border-bottom) 100%
    ) 1;
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

/* Specular Highlight Layer */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--specular-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    pointer-events: none;
    z-index: 1;
}

/* Inner Glow Effect */
.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.05) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Header */
.header {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 24px;
    padding: 52px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    pointer-events: none;
}

.logo { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 14px; 
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.logo-icon { 
    font-size: 52px; 
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.logo h1 {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(
        180deg, 
        #ffffff 0%, 
        rgba(255, 255, 255, 0.8) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline { 
    font-size: clamp(14px, 3vw, 16px); 
    color: var(--text-tertiary);
    position: relative;
    z-index: 2;
}

/* Main Content Card */
.main-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: clamp(24px, 5vw, 40px);
    box-shadow: var(--glass-shadow);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 100%
    );
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    pointer-events: none;
}

.generate-form { 
    display: flex; 
    flex-direction: column; 
    gap: 24px;
    position: relative;
    z-index: 2;
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 10px;
}

.form-group label { 
    font-weight: 600; 
    font-size: 15px; 
    color: var(--text-secondary);
    display: flex; 
    align-items: center; 
    gap: 8px;
    letter-spacing: -0.01em;
}

.label-icon { font-size: 18px; }

/* iOS 26 Form Inputs */
.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s var(--smooth-ease);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 4px var(--accent-glow),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

.form-group textarea { 
    min-height: 100px; 
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.6)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 48px;
}

.form-group select option { 
    background: #1c1c1e;
    color: white;
}

.helper-text { 
    font-size: 13px; 
    color: var(--text-muted);
}

.options-row { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 16px;
}

/* Theme Section */
.theme-section { margin-top: 8px; }
.theme-section label { margin-bottom: 14px; display: block; }

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 12px;
    max-height: 220px;
    overflow-y: auto;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.theme-grid::-webkit-scrollbar { width: 6px; }
.theme-grid::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, var(--accent-color), var(--accent-hover));
    border-radius: 3px;
}

.theme-option { 
    position: relative; 
    cursor: pointer;
}

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

.theme-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: all 0.3s var(--spring-bounce);
    background: rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.theme-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.theme-option input:checked + .theme-preview {
    border-color: var(--accent-color);
    background: rgba(10, 132, 255, 0.15);
    transform: scale(1.02);
    box-shadow: 
        0 0 0 2px var(--accent-glow),
        0 8px 24px rgba(10, 132, 255, 0.3);
}

.theme-option:hover .theme-preview { 
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.theme-color-bar { 
    width: 100%; 
    height: 28px; 
    border-radius: 6px; 
    margin-bottom: 8px; 
    display: flex; 
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-color-bar span { flex: 1; height: 100%; }

.theme-name { 
    font-size: 13px; 
    font-weight: 600; 
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

/* Style Section - iOS 26 Style */
.style-section { 
    margin-bottom: 28px;
}

.style-section label {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.style-grid::-webkit-scrollbar { width: 6px; }
.style-grid::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, var(--accent-color), var(--accent-hover));
    border-radius: 3px;
}

.style-option {
    position: relative;
    cursor: pointer;
    width: 100%;
}

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

.style-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all 0.3s var(--spring-bounce);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.style-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
}

.style-option input:checked + .style-preview {
    border-color: var(--accent-color);
    background: rgba(10, 132, 255, 0.15);
    transform: scale(1.02);
    box-shadow: 
        0 0 0 2px var(--accent-glow),
        0 8px 24px rgba(10, 132, 255, 0.3);
}

.style-option:hover .style-preview {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.style-icon {
    font-size: 15px;
    font-weight: 700;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.2) 0%, rgba(10, 132, 255, 0.12) 100%);
    border-radius: 10px;
    color: #64D2FF;
    border: 1.5px solid rgba(10, 132, 255, 0.4);
    letter-spacing: -0.3px;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.15);
}

.style-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.style-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.02em;
}

.style-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

.theme-name {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* iOS 26 Generate Button - Liquid Glass */
.generate-btn {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(100, 210, 255, 0.1) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 18px 36px;
    font-size: 17px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s var(--spring-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 -1px 0 rgba(255, 255, 255, 0.1) inset;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(100, 210, 255, 0.15) 100%);
    pointer-events: none;
}

.generate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.generate-btn:hover::after { left: 100%; }

.generate-btn:hover:not(:disabled) { 
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.2) 0%, rgba(100, 210, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 -1px 0 rgba(255, 255, 255, 0.15) inset;
}

.generate-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
}

.generate-btn:disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
    transform: none;
}

.btn-loading { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Status Messages - iOS 26 Style */
.status-message {
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(30px);
    position: relative;
    overflow: hidden;
}

.status-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.status-message.info { 
    background: rgba(10, 132, 255, 0.2);
    color: #64D2FF;
    border: 1px solid rgba(10, 132, 255, 0.3);
    box-shadow: 0 8px 32px rgba(10, 132, 255, 0.2);
}

.status-message.success { 
    background: rgba(48, 209, 88, 0.2);
    color: #30D158;
    border: 1px solid rgba(48, 209, 88, 0.3);
    box-shadow: 0 8px 32px rgba(48, 209, 88, 0.2);
}

.status-message.error { 
    background: rgba(255, 69, 58, 0.2);
    color: #FF6961;
    border: 1px solid rgba(255, 69, 58, 0.3);
    box-shadow: 0 8px 32px rgba(255, 69, 58, 0.2);
}

/* Download Section */
.download-section { 
    text-align: center; 
    padding: 24px 0;
}

.success-icon { 
    font-size: 80px; 
    margin-bottom: 18px; 
    animation: bounceIn 0.6s var(--spring-bounce);
}

@keyframes bounceIn { 
    0% { transform: scale(0) rotate(-10deg); opacity: 0; } 
    50% { transform: scale(1.15) rotate(5deg); } 
    100% { transform: scale(1) rotate(0deg); opacity: 1; } 
}

.download-section h2 { 
    font-size: clamp(24px, 5vw, 32px); 
    color: var(--text-primary); 
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.presentation-title { 
    font-size: 16px; 
    color: var(--text-tertiary); 
    margin-bottom: 28px; 
    font-style: italic;
}

.action-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 14px; 
    justify-content: center; 
    margin-bottom: 24px;
}

/* Download Button - iOS 26 Liquid Glass */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.15) 0%, rgba(52, 208, 88, 0.1) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--spring-bounce);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 -1px 0 rgba(255, 255, 255, 0.1) inset;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(52, 208, 88, 0.15) 100%);
    pointer-events: none;
}

.download-btn:hover { 
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.2) 0%, rgba(52, 208, 88, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 -1px 0 rgba(255, 255, 255, 0.15) inset;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s var(--smooth-ease);
    backdrop-filter: blur(20px);
}

.secondary-btn:hover { 
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Features Section - iOS 26 */
.features {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: clamp(24px, 5vw, 44px);
    box-shadow: var(--glass-shadow);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
    pointer-events: none;
}

.features h2 { 
    text-align: center; 
    font-size: clamp(22px, 4vw, 32px); 
    color: var(--text-primary); 
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 20px;
    position: relative;
    z-index: 2;
}

.feature-card {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s var(--spring-bounce);
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(4) {
    grid-column: 1 / -1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
}



.feature-icon { 
    font-size: 48px; 
    align-items: center;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.feature-card h3 { 
    font-size: 17px; 
    color: var(--text-primary); 
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card p { 
    font-size: 14px; 
    color: var(--text-tertiary); 
    line-height: 1.6;
}

/* Powered By Footer - iOS 26 */
.powered-by {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 13px;
    color: var(--text-tertiary);
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    /* Mobile responsive */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 8px;
}

.powered-by strong {
    color: var(--accent-color);
    font-weight: 600;
}

.powered-by a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.powered-by a:hover { 
    color: var(--accent-hover);
}

/* Toggle Switch - iOS 26 */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-switch { 
    position: relative; 
    width: 52px; 
    height: 32px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    transition: 0.4s var(--spring-bounce);
    border-radius: 32px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    transition: 0.4s var(--spring-bounce);
    border-radius: 50%;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.toggle-switch input:checked + .toggle-slider { 
    background: linear-gradient(180deg, #34D058 0%, var(--success-color) 100%);
}

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

.toggle-label { 
    font-size: 15px; 
    color: var(--text-secondary);
    font-weight: 500;
}

.toggle-label span { 
    display: block; 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-top: 4px;
}

/* Logo SVG styling */
.logo-icon-svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Daily Limit Info - iOS 26 */
.daily-limit-info {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 24px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    color: #10b981;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--smooth-ease);
}

.limit-icon {
    font-size: 18px;
}

/* PWA Install Button - iOS 26 Liquid Glass */
.install-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 28px;
    width: 100%;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(100, 210, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--spring-bounce);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 -1px 0 rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.install-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(100, 210, 255, 0.15) 100%);
    pointer-events: none;
}

.install-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.2) 0%, rgba(100, 210, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 -1px 0 rgba(255, 255, 255, 0.15) inset;
}

.install-icon {
    font-size: 22px;
}

/* Container padding for footer */
.container {
    padding-bottom: 70px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .container { padding: 20px 16px; }
    .header { padding: 24px 20px; margin-bottom: 20px; }
    .logo h1 { font-size: clamp(24px, 5vw, 32px); }
    .logo-icon { font-size: 40px; }
    .tagline { font-size: 14px; }
    
    /* Daily limit info - mobile optimized */
    .daily-limit-info {
        margin-top: 12px;
        padding: 10px 18px;
        font-size: 13px;
    }
    .limit-icon { font-size: 16px; }
    
    /* Install button - mobile */
    .install-btn {
        margin-top: 12px;
        padding: 12px 20px;
        font-size: 14px;
    }
    .install-icon { font-size: 20px; }
    
    .main-content { padding: 24px 20px; }
    .options-row { grid-template-columns: 1fr; gap: 16px; }
    .theme-grid { grid-template-columns: repeat(3, 1fr); max-height: 180px; }
    .generate-btn { padding: 16px 28px; font-size: 16px; }
    .action-buttons { flex-direction: column; gap: 12px; }
    .preview-btn, .download-btn { width: 100%; justify-content: center; }
    .modal-content { max-height: 95vh; border-radius: var(--radius-lg); margin: 10px; }
    .modal-header { padding: 18px 20px; }
    .modal-body { padding: 20px; }
    
    /* Footer mobile responsive */
    .powered-by {
        padding: 12px 16px;
        font-size: 11px;
        gap: 3px 6px;
    }
    .preview-slide { padding: 18px; font-size: 14px; }
    .features { padding: 24px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .powered-by { font-size: 12px; padding: 12px; }
    .container { padding-bottom: 60px; }
    
    /* Style grid responsive on tablet */
    .style-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        width: 100%;
    }
    
    .style-preview {
        padding: 16px 18px;
        gap: 14px;
        width: 100%;
    }
    
    .style-icon {
        font-size: 14px;
        min-width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    .logo h1 { font-size: 22px; }
    .tagline { font-size: 13px; padding: 0 10px; }
    
    /* Page loader mobile */
    .loader-logo {
        width: 60px;
        height: 60px;
    }
    
    .loader-title {
        font-size: 28px;
    }
    
    .loader-dots {
        gap: 10px;
    }
    
    .loader-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .loader-text {
        font-size: 13px;
    }
    
    /* Daily limit info - small mobile */
    .daily-limit-info {
        padding: 8px 14px;
        font-size: 12px;
        gap: 8px;
    }
    
    /* Install button - small mobile */
    .install-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .theme-grid { grid-template-columns: repeat(2, 1fr); }
    .theme-option { padding: 8px; }
    .theme-name { font-size: 11px; }
    
    /* Style grid mobile */
    .style-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        width: 100%;
    }
    
    .style-preview {
        padding: 14px 16px;
        gap: 12px;
        width: 100%;
    }
    
    .style-icon {
        font-size: 13px;
        min-width: 36px;
        height: 36px;
    }
    
    .style-name {
        font-size: 15px;
    }
    
    .style-desc {
        font-size: 12px;
    }
    
    .slide-nav { flex-wrap: wrap; gap: 10px; }
    .slide-nav button { flex: 1; min-width: 90px; font-size: 13px; padding: 10px; }
    .feature-card { padding: 16px; }
    .feature-icon { font-size: 32px; }
}

/* Custom Scrollbar - iOS 26 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { 
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.25) 100%);
}

/* PWA Installation Instructions Modal */
.pwa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(30px) saturate(180%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s var(--smooth-ease);
}

.pwa-modal.active {
    opacity: 1;
}

.pwa-modal-content {
    background: linear-gradient(
        180deg,
        rgba(60, 60, 67, 0.7) 0%,
        rgba(40, 40, 45, 0.9) 100%
    );
    backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: pwaModalSlideIn 0.4s var(--spring-bounce);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

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

.pwa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.pwa-modal-header h3 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
}

.pwa-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--smooth-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pwa-modal-close:hover {
    background: rgba(255, 69, 58, 0.3);
    color: #FF453A;
    transform: rotate(90deg);
}

.pwa-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.pwa-intro {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.install-instructions {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.install-instructions h4 {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.install-instructions ol {
    margin: 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.install-instructions li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 15px;
}

.install-instructions li:last-child {
    margin-bottom: 0;
}

.install-instructions strong {
    color: var(--text-primary);
    font-weight: 600;
}

.ios-icon,
.android-icon,
.desktop-icon {
    display: inline-block;
    background: rgba(10, 132, 255, 0.2);
    color: #64D2FF;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 16px;
    margin-left: 4px;
    border: 1px solid rgba(10, 132, 255, 0.3);
}

.pwa-tip {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: var(--radius-md);
    color: #64D2FF;
    font-size: 14px;
    line-height: 1.5;
}

.pwa-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.pwa-primary-btn {
    flex: 1;
    background: linear-gradient(180deg, #34D058 0%, var(--success-color) 100%);
    color: white;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s var(--spring-bounce);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 8px 24px rgba(48, 209, 88, 0.4);
}

.pwa-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 12px 32px rgba(48, 209, 88, 0.5);
}

.pwa-secondary-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s var(--smooth-ease);
}

.pwa-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Mobile adjustments for PWA modal */
@media (max-width: 640px) {
    .pwa-modal {
        padding: 16px;
    }
    
    .pwa-modal-content {
        max-height: 90vh;
    }
    
    .pwa-modal-header {
        padding: 18px 20px;
    }
    
    .pwa-modal-header h3 {
        font-size: 18px;
    }
    
    .pwa-modal-body {
        padding: 20px;
    }
    
    .install-instructions {
        padding: 16px;
    }
    
    .install-instructions h4 {
        font-size: 16px;
    }
    
    .install-instructions li {
        font-size: 14px;
    }
    
    .pwa-modal-footer {
        flex-direction: column;
        padding: 16px 20px;
    }
    
    .pwa-secondary-btn {
        order: 2;
    }
    
    .pwa-primary-btn {
        order: 1;
    }
}

/* Animations */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.main-content, .features, .header { 
    animation: fadeIn 0.6s var(--spring-bounce);
}

.main-content { animation-delay: 0.1s; }
.features { animation-delay: 0.2s; }

/* Haptic Feedback for Touch */
@media (hover: none) {
    .generate-btn:active,
    .preview-btn:active,
    .download-btn:active {
        transform: scale(0.96);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --glass-border-top: rgba(255, 255, 255, 0.6);
        --glass-border-bottom: rgba(255, 255, 255, 0.3);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Authentication Pages Styling */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.auth-card {
    width: 100%;
    max-width: 500px;
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-card::before {
    display: none;
}

.clerk-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.clerk-wrapper > div {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Specific Clerk Component Centering */
#clerk-sign-up,
#clerk-sign-in {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cl-rootBox {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.cl-cardBox {
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    width: 100%;
}

.auth-footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.auth-link {
    color: #0A84FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #64D2FF;
    text-decoration: underline;
}

/* Auth Buttons - Top Right Corner */
.auth-buttons-topright {
    position: fixed;
    top: 16px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
}

.auth-btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s var(--spring-bounce);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.auth-btn-pricing {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: #a78bfa;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.auth-btn-pricing:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
    color: #c4b5fd;
}

.auth-btn-login {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-btn-login:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.auth-btn-signup {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(100, 210, 255, 0.1) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 -1px 0 rgba(255, 255, 255, 0.1) inset;
}

.auth-btn-signup:hover {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.2) 0%, rgba(100, 210, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* User Profile Container - Outside main content for proper popup */
#userProfileContainer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    pointer-events: none;
}

#userProfileContainer > * {
    pointer-events: auto;
}

.user-profile-topright {
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 99999;
}

.user-avatar-trigger {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.user-avatar-trigger:hover {
    transform: scale(1.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.user-avatar-trigger:hover .user-avatar {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* User Dropdown Menu */
.user-dropdown {
    position: fixed;
    top: 70px;
    right: 24px;
    min-width: 260px;
    max-width: calc(100vw - 48px);
    background: linear-gradient(
        135deg,
        rgba(30, 30, 40, 0.98) 0%,
        rgba(20, 20, 30, 0.99) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 999999;
}

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

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.dropdown-user-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    margin: 0;
}

.dropdown-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    color: #FF453A;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-logout-btn:hover {
    background: rgba(255, 69, 58, 0.15);
}

.dropdown-logout-btn svg {
    opacity: 0.8;
}

/* Legacy styles for server-rendered profile */
.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.auth-btn-logout {
    padding: 8px 16px;
    font-size: 13px;
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s var(--spring-bounce);
    font-weight: 600;
}

.auth-btn-logout:hover {
    background: rgba(255, 59, 48, 0.25);
    transform: translateY(-2px);
}

