/* LivemeetAI - World-Class Ultra-Premium Video Meeting Platform */

/* Advanced CSS Variables for Next-Gen Theme */
:root {
    /* Premium Gradient Collection */
    --gradient-aurora: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    --gradient-cosmic: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #c7417b 100%);
    --gradient-nebula: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    --gradient-holographic: linear-gradient(135deg, #a8edea 0%, #fed6e3 25%, #ffeaa7 50%, #dfe6e9 75%, #a8edea 100%);
    --gradient-premium: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 50%, #f093fb 100%);
    --gradient-platinum: linear-gradient(135deg, #e0e0e0 0%, #efefef 50%, #fafafa 100%);
    
    /* Sophisticated Color System */
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #818cf8;
    --secondary-color: #06b6d4;
    --accent-color: #f5576c;
    --premium-gold: #ffd700;
    --neon-blue: #00d4ff;
    --neon-purple: #c617d8;
    
    /* Ultra-Dark Premium Backgrounds */
    --bg-primary: #050510;
    --bg-secondary: #0a0a1a;
    --bg-tertiary: #0f0f2a;
    --surface: #1a1a3a;
    --surface-hover: #252545;
    --surface-glass: rgba(26, 26, 58, 0.3);
    
    /* Premium Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4b9d0;
    --text-tertiary: #8890b5;
    --text-gold: #ffd700;
    
    /* Advanced Borders */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(102, 126, 234, 0.5);
    
    /* Status Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Premium Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-2xl: 0 30px 80px rgba(0, 0, 0, 0.8);
    
    --glow-primary: 0 0 30px rgba(102, 126, 234, 0.6);
    --glow-secondary: 0 0 30px rgba(6, 182, 212, 0.6);
    --glow-accent: 0 0 30px rgba(245, 87, 108, 0.6);
    --glow-gold: 0 0 40px rgba(255, 215, 0, 0.6);
    --glow-neon: 0 0 50px rgba(0, 212, 255, 0.8);
    
    /* Premium Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Premium Blur Values */
    --blur-base: 20px;
    --blur-strong: 40px;
    --blur-ultra: 80px;
}

/* Global Premium Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}


/* Ultra-Premium Glassmorphism */
.glass-ultra {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(var(--blur-strong)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-strong)) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.05),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Premium App Container */
.app-container {
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Animated Background Effects */
.app-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 20%, rgba(245, 87, 108, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
    animation: cosmicFloat 30s ease-in-out infinite;
    pointer-events: none;
}

.app-container::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667eea' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    animation: patternDrift 60s linear infinite;
    pointer-events: none;
}

@keyframes cosmicFloat {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(-30px, -30px) scale(1.05) rotate(1deg); }
    50% { transform: translate(30px, -20px) scale(0.95) rotate(-1deg); }
    75% { transform: translate(-20px, 30px) scale(1.02) rotate(0.5deg); }
}

@keyframes patternDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating Particles System */
.particle-system {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--gradient-aurora);
    border-radius: 50%;
    pointer-events: none;
}

.particle.small {
    width: 3px;
    height: 3px;
    animation: floatParticle 20s linear infinite;
}

.particle.medium {
    width: 6px;
    height: 6px;
    animation: floatParticle 25s linear infinite;
    filter: blur(1px);
}

.particle.large {
    width: 10px;
    height: 10px;
    animation: floatParticle 30s linear infinite;
    filter: blur(2px);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        transform: translateY(90vh) translateX(10px) scale(1);
        opacity: 1;
    }
    90% {
        transform: translateY(10vh) translateX(-10px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
}

/* Ultra-Premium Header */
.main-header {
    padding: 1.5rem 2rem; /* Reduced padding */
    position: relative;
    z-index: 1000;
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    border-bottom: 1px solid var(--border-primary);
    animation: headerReveal 1s ease-out;
}

@keyframes headerReveal {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem; /* Reduced gap */
}

.logo-image {
    width: 40px; /* Reduced from 50px */
    height: 40px; /* Reduced from 50px */
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    animation: logoPulse 3s ease-in-out infinite;
}

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

.logo-text {
    font-size: 2rem; /* Reduced from 2.5rem */
    font-weight: 900;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    position: relative;
    animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% { filter: brightness(1) contrast(1); }
    50% { filter: brightness(1.2) contrast(1.1); }
}

.logo-tagline {
    font-size: 0.75rem; /* Reduced from 0.9rem */
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInSlide 1s ease-out 0.5s forwards;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Section - Ultra Premium */
.landing-container {
    max-width: 1400px; /* Reduced from 1600px */
    margin: 0 auto;
    padding: 2rem; /* Reduced from 3rem */
    position: relative;
    z-index: 10;
}

.hero-section {
    text-align: center;
    padding: 3rem 0 4rem; /* Reduced padding */
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px; /* Reduced from 800px */
    height: 600px; /* Reduced from 800px */
    background: radial-gradient(circle, 
        rgba(102, 126, 234, 0.1) 0%, 
        transparent 70%);
    transform: translate(-50%, -50%);
    animation: heroGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Reduced from clamp(3rem, 6vw, 5rem) */
    font-weight: 900;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroReveal 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    line-height: 1.1;
    letter-spacing: -0.04em;
    position: relative;
}

.hero-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: none;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(102, 126, 234, 0.3);
    animation: strokeAnimation 3s ease-in-out infinite;
}

@keyframes strokeAnimation {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(2px, 2px); }
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem); /* Reduced from clamp(1.25rem, 2.5vw, 1.75rem) */
    color: var(--text-secondary);
    margin-bottom: 3rem; /* Reduced from 4rem */
    animation: heroReveal 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Ultra-Premium Input Section */
.user-input-section {
    display: flex;
    gap: 1rem; /* Reduced from 1.5rem */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: heroReveal 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s both;
}

.user-name-input {
    padding: 1rem 1.5rem; /* Reduced from 1.25rem 2rem */
    font-size: 1rem; /* Reduced from 1.125rem */
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    border: 2px solid transparent;
    border-radius: 16px; /* Reduced from 20px */
    color: var(--text-primary);
    width: 320px; /* Reduced from 380px */
    transition: all var(--transition-base);
    position: relative;
    background-clip: padding-box;
}

.user-name-input::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-aurora);
    border-radius: 16px; /* Reduced from 20px */
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.user-name-input:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.3),
        inset 0 0 20px rgba(102, 126, 234, 0.1);
}

.user-name-input:focus::before {
    opacity: 1;
}

.user-name-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Ultimate CTA Button */
.cta-button {
    padding: 1rem 2.5rem; /* Reduced from 1.25rem 3rem */
    font-size: 1rem; /* Reduced from 1.125rem */
    font-weight: 700;
    background: var(--gradient-premium);
    color: white;
    border: none;
    border-radius: 16px; /* Reduced from 20px */
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-aurora);
    border-radius: 16px; /* Reduced from 20px */
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
    filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 8px 40px rgba(102, 126, 234, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button:hover::after {
    opacity: 0.5;
}

.cta-button:active {
    transform: translateY(-2px) scale(1);
}

/* Premium Avatar Selection */
.avatar-selection {
    margin-top: 4rem; /* Reduced from 5rem */
    opacity: 0;
    transform: translateY(40px);
    animation: sectionReveal 0.8s ease-out forwards;
}

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

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem); /* Reduced from clamp(2rem, 4vw, 3rem) */
    text-align: center;
    margin-bottom: 3rem; /* Reduced from 4rem */
    font-weight: 800;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    width: 80px; /* Reduced from 100px */
    height: 3px; /* Reduced from 4px */
    background: var(--gradient-aurora);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: var(--glow-primary);
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reduced from 300px */
    gap: 2rem; /* Reduced from 2.5rem */
    margin-bottom: 3rem; /* Reduced from 4rem */
}

/* Ultra-Premium Avatar Cards */
.avatar-card {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    border-radius: 24px; /* Reduced from 30px */
    padding: 2rem; /* Reduced from 2.5rem */
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-slow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.02);
    animation: cardFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--card-index) * 0.2s);
}

.avatar-card:nth-child(1) { --card-index: 0; }
.avatar-card:nth-child(2) { --card-index: 1; }
.avatar-card:nth-child(3) { --card-index: 2; }
.avatar-card:nth-child(4) { --card-index: 3; }

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

.avatar-card::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent,
        var(--primary-color),
        transparent
    );
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.avatar-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--surface);
    border-radius: 22px; /* Adjusted for smaller border-radius */
    z-index: 1;
}

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

.avatar-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.4),
        inset 0 0 40px rgba(102, 126, 234, 0.1);
}

.avatar-card:hover::before {
    opacity: 1;
}

.avatar-card.selected {
    border-color: var(--gradient-gold);
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        var(--surface-glass) 100%);
    box-shadow: 
        0 20px 60px rgba(255, 215, 0, 0.3),
        inset 0 0 40px rgba(255, 215, 0, 0.1);
}

.avatar-card > * {
    position: relative;
    z-index: 2;
}

.avatar-image {
    width: 140px; /* Reduced from 160px */
    height: 140px; /* Reduced from 160px */
    border-radius: 50%;
    margin: 0 auto 1.5rem; /* Reduced margin */
    object-fit: cover;
    border: 4px solid var(--border-primary);
    position: relative;
    transition: all var(--transition-base);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.avatar-card:hover .avatar-image {
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.4),
        0 0 40px rgba(102, 126, 234, 0.3);
}

.avatar-name {
    font-size: 1.25rem; /* Reduced from 1.5rem */
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.avatar-role {
    color: var(--text-secondary);
    font-size: 0.875rem; /* Reduced from 1rem */
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Premium Meeting Container */
.meeting-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.meeting-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    animation: meetingBg 20s ease-in-out infinite;
    pointer-events: none;
}

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

/* Ultra-Premium Meeting Header */
.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem; /* Reduced from 1.5rem 3rem */
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-strong));
    border-bottom: 1px solid var(--border-primary);
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.meeting-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-aurora);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1); }
}

.meeting-info {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Reduced from 2rem */
}

.meeting-id {
    color: var(--text-secondary);
    font-size: 0.75rem; /* Reduced from 0.875rem */
    font-weight: 600;
    padding: 0.5rem 1rem; /* Reduced from 0.75rem 1.5rem */
    background: var(--surface);
    border-radius: 10px; /* Reduced from 12px */
    border: 1px solid var(--border-primary);
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.meeting-id::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transform: translateY(-50%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.meeting-timer {
    font-size: 1.25rem; /* Reduced from 1.5rem */
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.leave-button {
    padding: 0.75rem 1.5rem; /* Reduced from 1rem 2rem */
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px; /* Reduced from 16px */
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem; /* Added smaller font size */
    box-shadow: 
        0 4px 20px rgba(239, 68, 68, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.leave-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s;
}

.leave-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(239, 68, 68, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.leave-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Ultimate Video Grid - FIXED FOR SIDE-BY-SIDE LAYOUT */
.video-grid-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    padding: 1.5rem; /* Reduced from 2rem */
}

.video-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Fixed 2-column layout for laptops */
    gap: 1.5rem; /* Reduced from 2rem */
    align-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Premium Video Participants */
.video-participant {
    position: relative;
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    border-radius: 24px; /* Reduced from 30px */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
    max-height: 500px; /* Added max-height for better visibility */
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 40px rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-primary);
    transition: all var(--transition-slow);
}

.video-participant::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent,
        var(--primary-color),
        transparent
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.video-participant::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-secondary);
    border-radius: 22px; /* Adjusted for smaller border-radius */
    z-index: 1;
}

.video-participant:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 
        0 30px 80px rgba(102, 126, 234, 0.5),
        inset 0 0 50px rgba(102, 126, 234, 0.1);
}

.video-participant:hover::before {
    opacity: 0.5;
}

.video-participant video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.participant-info {
    position: absolute;
    bottom: 1rem; /* Reduced from 1.5rem */
    left: 1rem; /* Reduced from 1.5rem */
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-strong));
    padding: 0.75rem 1rem; /* Reduced from 1rem 1.5rem */
    border-radius: 12px; /* Reduced from 16px */
    border: 1px solid var(--border-primary);
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.participant-name {
    font-weight: 700;
    display: block;
    font-size: 1rem; /* Reduced from 1.125rem */
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.participant-role {
    font-size: 0.75rem; /* Reduced from 0.875rem */
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 500;
}

.ai-indicator {
    position: absolute;
    top: 1rem; /* Reduced from 1.5rem */
    right: 1rem; /* Reduced from 1.5rem */
    background: var(--gradient-gold);
    color: var(--bg-primary);
    padding: 0.375rem 1rem; /* Reduced from 0.5rem 1.25rem */
    border-radius: 20px; /* Reduced from 30px */
    font-size: 0.75rem; /* Reduced from 0.875rem */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 
        0 4px 20px rgba(255, 215, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    z-index: 3;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6); }
}

/* Premium Chat Panel */
.chat-panel {
    width: 400px; /* Reduced from 450px */
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-strong));
    border-left: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-slow);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.chat-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--gradient-aurora);
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.chat-header {
    padding: 1rem; /* Reduced from 1.5rem */
    border-bottom: 1px solid var(--border-primary);
    background: rgba(26, 26, 58, 0.5);
    position: relative;
}

.chat-header h3 {
    font-size: 1.125rem; /* Reduced from 1.25rem */
    font-weight: 700;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem; /* Reduced from 1.5rem */
    scroll-behavior: smooth;
}

/* Premium Chat Messages */
.chat-message {
    margin-bottom: 1rem; /* Reduced from 1.25rem */
    padding: 1rem; /* Reduced from 1.25rem */
    border-radius: 16px; /* Reduced from 20px */
    animation: messageReveal 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    max-width: 85%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 0.875rem; /* Added smaller font size */
}

@keyframes messageReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-message.user {
    background: var(--gradient-premium);
    margin-left: auto;
    border-bottom-right-radius: 4px;
    color: white;
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.chat-message.avatar {
    background: rgba(26, 26, 58, 0.6);
    margin-right: auto;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-primary);
}

.chat-message.system {
    background: var(--surface-glass);
    text-align: center;
    font-size: 0.75rem; /* Reduced from 0.875rem */
    color: var(--text-tertiary);
    max-width: 100%;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Premium Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.75rem; /* Reduced from 1rem */
    margin: 0.5rem 0;
}

.typing-indicator span {
    width: 10px; /* Reduced from 12px */
    height: 10px; /* Reduced from 12px */
    border-radius: 50%;
    background: var(--gradient-premium);
    margin: 0 3px; /* Reduced from 4px */
    animation: typing 1.4s infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

/* Ultimate Chat Input */
.chat-input-container {
    padding: 1rem; /* Reduced from 1.5rem */
    border-top: 1px solid var(--border-primary);
    display: flex;
    gap: 0.75rem; /* Reduced from 1rem */
    background: rgba(26, 26, 58, 0.5);
    position: relative;
}

.chat-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-aurora);
    opacity: 0.5;
}

.chat-input-container input {
    flex: 1;
    padding: 0.75rem 1rem; /* Reduced from 1rem 1.5rem */
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    border: 2px solid var(--border-primary);
    border-radius: 12px; /* Reduced from 16px */
    color: var(--text-primary);
    font-size: 0.875rem; /* Reduced from 1rem */
    transition: all var(--transition-base);
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(26, 26, 58, 0.8);
    box-shadow: 
        0 0 30px rgba(102, 126, 234, 0.3),
        inset 0 0 20px rgba(102, 126, 234, 0.1);
}

.chat-input-container button {
    padding: 0.75rem 1.5rem; /* Reduced from 1rem 2rem */
    background: var(--gradient-premium);
    color: white;
    border: none;
    border-radius: 12px; /* Reduced from 16px */
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem; /* Added smaller font size */
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.chat-input-container button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(102, 126, 234, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Ultimate Meeting Controls */
.meeting-controls {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Reduced from 1.5rem */
    padding: 1.5rem; /* Reduced from 2rem */
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-strong));
    border-top: 1px solid var(--border-primary);
    position: relative;
}

.meeting-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-aurora);
    animation: borderGlow 3s ease-in-out infinite;
}

.control-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Reduced from 0.75rem */
    padding: 1rem 1.5rem; /* Reduced from 1.25rem 2rem */
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: 16px; /* Reduced from 20px */
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    min-width: 90px; /* Reduced from 110px */
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.control-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-premium);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.control-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s;
}

.control-button:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 
        0 8px 30px rgba(102, 126, 234, 0.4),
        inset 0 0 30px rgba(102, 126, 234, 0.1);
}

.control-button:hover::before {
    opacity: 0.1;
}

.control-button:hover::after {
    width: 200px;
    height: 200px;
}

.control-button.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: white;
}

.control-button.active:hover {
    box-shadow: 
        0 8px 30px rgba(239, 68, 68, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.control-button .icon {
    font-size: 1.5rem; /* Reduced from 1.75rem */
    position: relative;
    z-index: 1;
}

.control-button .label {
    font-size: 0.75rem; /* Reduced from 0.875rem */
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Premium Notifications */
.notification {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem; /* Reduced from 1.25rem 2.5rem */
    border-radius: 16px; /* Reduced from 20px */
    font-weight: 600;
    font-size: 0.875rem; /* Added smaller font size */
    z-index: 10000;
    backdrop-filter: blur(var(--blur-strong));
    animation: notificationDrop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes notificationDrop {
    0% {
        transform: translate(-50%, -150%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
}

.notification-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
}

.notification-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
}

.notification-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9) 0%, rgba(217, 119, 6, 0.9) 100%);
}

.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
}

/* Premium Loading Screen */
.loader {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 16, 0.98);
    backdrop-filter: blur(var(--blur-ultra));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px; /* Reduced from 80px */
    height: 60px; /* Reduced from 80px */
    position: relative;
    margin: 0 auto 1.5rem; /* Reduced margin */
}

.spinner::before,
.spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.spinner::before {
    border-top-color: var(--primary-color);
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner::after {
    border-bottom-color: var(--secondary-color);
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
}

.loader-text {
    font-size: 1rem; /* Reduced from 1.25rem */
    font-weight: 600;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px; /* Reduced from 12px */
    height: 10px; /* Reduced from 12px */
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px; /* Reduced from 6px */
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-premium);
    border-radius: 5px; /* Reduced from 6px */
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-gold);
}

/* Responsive Premium Design */
@media (max-width: 1200px) {
    .chat-panel {
        width: 350px; /* Reduced from 380px */
    }
    
    /* Keep side-by-side layout on smaller laptops */
    .video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .video-participant {
        max-height: 400px; /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    html {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem; /* Reduced from 3rem */
    }
    
    .user-input-section {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .user-name-input {
        width: 100%;
        max-width: 350px; /* Reduced from 400px */
    }
    
    .avatar-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced from 280px */
        gap: 1.5rem; /* Reduced from 2rem */
    }
    
    /* Switch to single column on mobile */
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-panel {
        position: fixed;
        right: -400px; /* Adjusted for new width */
        top: 0;
        height: 100%;
        width: 100%;
        max-width: 400px; /* Adjusted */
        z-index: 2000;
        transition: right var(--transition-slow);
    }
    
    .chat-panel.active {
        right: 0;
    }
    
    .meeting-controls {
        flex-wrap: wrap;
        padding: 1rem; /* Reduced from 1.5rem */
        gap: 0.75rem; /* Reduced from 1rem */
    }
    
    .control-button {
        min-width: 80px; /* Reduced from 90px */
        padding: 0.75rem 1.25rem; /* Reduced from 1rem 1.5rem */
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 1rem; /* Reduced from 1.5rem 1rem */
    }
    
    .logo-text {
        font-size: 1.75rem; /* Reduced from 2rem */
    }
    
    .meeting-header {
        flex-wrap: wrap;
        gap: 0.75rem; /* Reduced from 1rem */
        padding: 0.75rem; /* Reduced from 1rem */
    }
    
    .avatar-card {
        padding: 1.5rem; /* Reduced from 2rem */
    }
    
    .avatar-image {
        width: 100px; /* Reduced from 120px */
        height: 100px; /* Reduced from 120px */
    }
}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #8b9dc3;
        --bg-primary: #000000;
        --text-primary: #ffffff;
        --border-primary: rgba(255, 255, 255, 0.3);
    }
}

/* Focus Visible */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}










/* LivemeetAI Enhanced Styles with Speech Integration */


/* Main Video Grid */
.video-grid-container {
    display: flex;
    flex: 1;
    gap: 1rem;
    padding: 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex: 1;
    max-height: calc(100vh - 200px);
}

.video-participant {
    position: relative;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.video-participant:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: scale(1.02);
}

.video-participant video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.participant-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.participant-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.participant-role {
    font-size: 0.75rem;
    color: #94a3b8;
}

.ai-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

/* Speech Controls */
.speech-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.push-to-talk-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.push-to-talk-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.push-to-talk-btn:hover:before {
    left: 100%;
}

.push-to-talk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.push-to-talk-btn.active {
    background: linear-gradient(135deg, #ef4444, #f97316);
    animation: pulse 1s infinite;
}

.push-to-talk-btn .icon {
    font-size: 1.25rem;
}

.speech-status {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.speech-status.ready {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.speech-status.listening {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: pulse 1s infinite;
}

.speech-status.processing {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.speech-status.speaking {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

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

/* Speaking Indicators */
.speaking-indicator {
    position: absolute;
    bottom: 4rem;
    left: 1rem;
    display: flex;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.speaking-indicator.active {
    opacity: 1;
}

.speaking-indicator .wave {
    width: 4px;
    height: 16px;
    background: #22c55e;
    border-radius: 2px;
    animation: wave 1s infinite ease-in-out;
}

.speaking-indicator .wave:nth-child(2) {
    animation-delay: 0.1s;
}

.speaking-indicator .wave:nth-child(3) {
    animation-delay: 0.2s;
}

/* Chat Panel */
.chat-panel {
    width: 350px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: calc(100vh - 200px);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.chat-mode-toggle {
    display: flex;
    gap: 0.5rem;
}

.mode-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.mode-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 400px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    line-height: 1.5;
}

.chat-message.user {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid #6366f1;
}

.chat-message.avatar {
    background: rgba(20, 184, 166, 0.1);
    border-left: 3px solid #14b8a6;
}

.chat-message.system {
    background: rgba(107, 114, 128, 0.1);
    border-left: 3px solid #6b7280;
    font-style: italic;
}

.chat-message.generated {
    border-left: 3px solid #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    position: relative;
}

.chat-message.generated:before {
    content: '🎤';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-container input {
    flex: 1;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    color: #f1f5f9;
    font-size: 0.875rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chat-input-container button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Meeting Controls */
.meeting-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.control-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.control-button:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #f1f5f9;
    transform: translateY(-2px);
}

.control-button.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.control-button .icon {
    font-size: 1.25rem;
}

.control-button .label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Avatar Placeholder */
.avatar-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
}

.avatar-placeholder-content {
    text-align: center;
}

.pulse-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    margin: 0 auto 1rem;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.avatar-placeholder.speaking .pulse-circle {
    animation: pulse 0.5s ease-in-out infinite;
    background: rgba(20, 184, 166, 0.5);
}

.status {
    color: #10b981;
    font-size: 0.875rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes wave {
    0%, 40%, 100% {
        transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1);
    }
}

@keyframes typing {
    0%, 80%, 100% { 
        opacity: 0.3; 
        transform: scale(1); 
    }
    40% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
}

@keyframes slideDown {
    from { 
        transform: translate(-50%, -100%); 
        opacity: 0; 
    }
    to { 
        transform: translate(-50%, 0); 
        opacity: 1; 
    }
}

@keyframes slideUp {
    from { 
        transform: translate(-50%, 0); 
        opacity: 1; 
    }
    to { 
        transform: translate(-50%, -100%); 
        opacity: 0; 
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-grid-container {
        flex-direction: column;
    }
    
    .chat-panel {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .meeting-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .meeting-info {
        gap: 1rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .speech-controls {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .push-to-talk-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .meeting-controls {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        overflow-x: auto;
    }
    
    .control-button {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .control-button .icon {
        font-size: 1rem;
    }
    
    .control-button .label {
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .meeting-header {
        padding: 0.5rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .meeting-timer {
        font-size: 1rem;
    }
    
    .leave-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Navigation Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-premium);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Footer Styles */
.main-footer {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    border-top: 1px solid var(--border-primary);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Pricing Page Styles */
.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.pricing-hero {
    text-align: center;
    padding: 3rem 0 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.pricing-card {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    border-radius: 24px;
    padding: 2.5rem;
    border: 2px solid var(--border-primary);
    transition: all var(--transition-base);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--bg-primary);
    padding: 0.375rem 1.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.plan-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-premium);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-secondary);
    font-size: 0.9rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--surface);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-button.primary {
    background: var(--gradient-premium);
    color: white;
    border: none;
}

.plan-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.pricing-faq {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-primary);
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* About Page Styles */
.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.about-hero {
    text-align: center;
    padding: 3rem 0 4rem;
}

.about-section {
    margin-bottom: 4rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.features-section {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.team-section {
    text-align: center;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-item {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    font-weight: 600;
    color: var(--text-primary);
}

/* Contact Page Styles */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-hero {
    text-align: center;
    padding: 3rem 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-primary);
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-form-container {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--surface);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.submit-button {
    padding: 1rem 2rem;
    background: var(--gradient-premium);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Checkout Page Styles */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.checkout-form-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.checkout-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.checkout-form {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-primary);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.checkout-button {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--gradient-premium);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkout-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.checkout-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.order-summary {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-base));
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-primary);
    height: fit-content;
}

.order-summary h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary-plan {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.summary-plan h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.plan-features-mini {
    list-style: none;
    padding: 0;
}

.plan-features-mini li {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.25rem 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.badge {
    background: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Error Modal */
.error-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.error-modal-content {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-strong));
    padding: 3rem;
    border-radius: 24px;
    border: 2px solid var(--danger);
    max-width: 500px;
    text-align: center;
    animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-modal-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--danger);
}

.error-modal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-close-btn {
    padding: 0.75rem 2rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
}

.error-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

/* Responsive Design for New Pages */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-grid,
    .contact-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .main-nav {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pricing-grid,
    .features-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--surface-glass);
        backdrop-filter: blur(var(--blur-strong));
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-slow);
        z-index: 999;
        border-left: 1px solid var(--border-primary);
    }

    .main-nav.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border-secondary);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Overlay for mobile menu */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

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

/* Update social links for Instagram */
.social-links a[aria-label="Twitter"] {
    /* Change Twitter to Instagram */
    background: var(--surface);
    transition: all var(--transition-base);
}

.social-links a[aria-label="Twitter"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    transform: translateY(-2px);
}