/* Modern CSS Variables - 2025 Design System */
:root {
    /* Updated Primary Colors - More Professional */
    --primary-50: #f0f4ff;
    --primary-100: #e0ecff;
    --primary-200: #c7ddff;
    --primary-500: #6366f1;
    --primary-600: #5b4ee7;
    --primary-700: #5043d7;
    --primary-800: #4338ca;
    --primary-900: #3730a3;

    /* Enhanced Gradients */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 25%, #ec4899 50%, #f97316 100%);
    --primary-gradient-subtle: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --secondary-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);

    /* Neutral Colors */
    --dark-bg: #0f172a;
    --light-bg: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.98);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: rgba(226, 232, 240, 0.8);
    --border-subtle: rgba(241, 245, 249, 0.8);

    /* Enhanced Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);

    /* Spacing & Design */
    --border-radius: 20px;
    --border-radius-lg: 24px;
    --border-radius-sm: 12px;
    --border-radius-xs: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #0F0F1E;
        --light-bg: #1A1A2E;
        --card-bg: rgba(26, 26, 46, 0.95);
        --text-primary: #F7FAFC;
        --text-secondary: #A0AEC0;
        --border-color: rgba(74, 85, 104, 0.6);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
    background: var(--primary-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Enhanced Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 60%, rgba(249, 115, 22, 0.05) 0%, transparent 40%);
    animation: floatingParticles 30s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatingParticles {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: blur(0px);
    }
    25% {
        transform: translateY(-30px) rotate(2deg) scale(1.05);
        filter: blur(1px);
    }
    50% {
        transform: translateY(20px) rotate(-1deg) scale(0.98);
        filter: blur(0px);
    }
    75% {
        transform: translateY(-15px) rotate(1deg) scale(1.02);
        filter: blur(0.5px);
    }
}

/* Modern Header - Force styles with higher specificity */
header.header,
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.header.scrolled,
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-medium);
}

/* Logo styles with maximum specificity */
body header .logo a,
header .logo a,
.logo a {
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

.logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Ensure logo icon works everywhere */
header .logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.logo .logo-icon::before,
header .logo .logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 12px;
    opacity: 0.8;
    animation: logoGlow 3s ease-in-out infinite;
}

.logo .logo-icon::after,
header .logo .logo-icon::after {
    content: '📞' !important;
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
}

@keyframes logoGlow {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

.logo:hover .logo-icon,
header .logo:hover .logo-icon {
    transform: rotate(8deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.logo .logo-text,
header .logo /* Logo text with maximum specificity and !important */
body header .logo .logo-text,
header .logo .logo-text,
.logo .logo-text,
.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    position: relative;
}

.logo .logo-text::after,
header .logo .logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo:hover .logo-text::after,
header .logo:hover .logo-text::after {
    transform: scaleX(1);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 80%;
}

.nav-links a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-links a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Enhanced Modern Containers */
.container {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    padding: 3.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin: 6rem auto 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
    opacity: 0.9;
    filter: blur(1px);
}

.container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(99, 102, 241, 0.05),
        transparent,
        rgba(139, 92, 246, 0.05),
        transparent
    );
    animation: containerRotate 20s linear infinite;
    pointer-events: none;
}

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

.container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-large), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.container.wide {
    max-width: 900px;
}

.container.narrow {
    max-width: 450px;
}

/* Enhanced Modern Typography */
h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.005em;
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Modern Action Box */
.action-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.action-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.action-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Modern Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

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

/* Modern Form Elements */
input[type="password"],
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
}

/* Password input specific styles */
input[type="password"] {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
    font-weight: 500;
    color: #1e293b !important;
}

input[type="password"]:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    color: #0f172a !important;
}

/* Text inputs specific */
input[type="text"],
input[type="email"] {
    background: rgba(248, 250, 252, 0.95) !important;
    color: #1e293b !important;
}

input[type="text"]:focus,
input[type="email"]:focus {
    background: rgba(255, 255, 255, 1) !important;
    color: #0f172a !important;
}

/* Fix placeholder text */
input::placeholder,
textarea::placeholder {
    color: #64748b !important;
    opacity: 1;
}

/* Share link input specific styles */
.share-link input {
    background: rgba(249, 250, 251, 0.95) !important;
    border: 2px solid var(--border-color) !important;
    color: #1e293b !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.9rem !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.share-link input:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #667eea !important;
    color: #0f172a !important;
}

/* Fix textarea color */
textarea {
    background: rgba(248, 250, 252, 0.95) !important;
    color: #1e293b !important;
}

textarea:focus {
    background: rgba(255, 255, 255, 1) !important;
    color: #0f172a !important;
}

/* Fix select color */
select {
    background: rgba(248, 250, 252, 0.95) !important;
    color: #1e293b !important;
}

select:focus {
    background: rgba(255, 255, 255, 1) !important;
    color: #0f172a !important;
}

/* Enhanced Modern Buttons */
button {
    width: 100%;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
}

button::before {
    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 ease;
}

button:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-medium), 0 0 20px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-large), 0 0 30px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: var(--shadow-medium), 0 0 20px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-large), 0 0 30px rgba(245, 158, 11, 0.5);
    filter: brightness(1.1);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: var(--shadow-medium), 0 0 20px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-success:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-large), 0 0 30px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
    box-shadow: var(--shadow-medium), 0 0 20px rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-large), 0 0 30px rgba(239, 68, 68, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: var(--primary-700);
    border: 2px solid var(--primary-500);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary-gradient-subtle);
    color: white;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-large), 0 0 25px rgba(99, 102, 241, 0.4);
}

button:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Call Interface Styles */
.room-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    word-wrap: break-word;
    position: relative;
}

.room-info::before {
    content: '📞';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.3;
}

.room-info p {
    color: var(--text-primary);
    margin: 0.8rem 0;
    font-weight: 500;
}

.room-info code {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    display: inline-block;
    margin: 0.5rem 0;
}

.share-link {
    display: flex;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.share-link input {
    flex-grow: 1;
    margin-bottom: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.share-link button {
    width: auto;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
}

/* Modern Call Controls */
.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.controls button {
    margin: 0;
    padding: 1.2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 60px;
}

.controls button::before {
    font-size: 1.2rem;
}

#callBtn {
    background: var(--success-gradient);
    grid-column: 1 / -1;
}

#callBtn::before {
    content: '📞';
}

#hangupBtn {
    background: var(--danger-gradient);
}

#hangupBtn::before {
    content: '📵';
}

#micBtn {
    background: var(--warning-gradient);
}

#micBtn::before {
    content: '🎤';
}

#micBtn.muted::before {
    content: '🔇';
}

#micBtn.muted {
    background: var(--text-secondary);
}

/* Status Display */
.status {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    border-left: 4px solid #667eea;
}

.status.connecting {
    border-left-color: #FFA726;
    background: rgba(255, 167, 38, 0.1);
}

.status.connected {
    border-left-color: #13B497;
    background: rgba(19, 180, 151, 0.1);
}

.status.error {
    border-left-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

/* Password Prompt */
#passwordPrompt {
    text-align: center;
}

#passwordPrompt h2 {
    margin-bottom: 2rem;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .nav-links {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .logo a,
    header .logo a {
        font-size: 1.5rem;
        gap: 0.6rem;
    }

    .logo .logo-icon,
    header .logo .logo-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .logo .logo-icon::after,
    header .logo .logo-icon::after {
        font-size: 1rem;
    }

    .nav-links a {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }

    .container {
        width: 95%;
        padding: 2rem;
        margin: 5rem auto 1rem;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }

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

    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.5rem;
    }

    .controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #callBtn {
        grid-column: 1;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card {
        padding: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-price {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
        margin: 4rem auto 1rem;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

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

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .controls button {
        padding: 1.2rem;
        font-size: 1rem;
        min-height: 55px;
    }

    .logo-text::after {
        height: 2px;
    }

    .share-link {
        flex-direction: column;
    }

    .share-link input {
        border-top-right-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
        border-right: 2px solid var(--border-color);
        margin-bottom: 1rem;
    }

    .share-link button {
        border-top-left-radius: var(--border-radius);
        border-bottom-left-radius: var(--border-radius);
        width: 100%;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
        margin: 1rem 0;
    }

    .action-box {
        padding: 1.5rem;
    }

    button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    input[type="password"],
    input[type="text"],
    input[type="email"],
    textarea {
        padding: 1rem;
        font-size: 1rem;
    }
}

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

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

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

.slide-up {
    animation: slideUp 0.4s ease-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

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

/* Enhanced Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(99, 102, 241, 0.1) 0%,
        transparent 50%
    );
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1.1);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 950;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleEntrance 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.03em;
    line-height: 0.9;
    position: relative;
    z-index: 1;
}

@keyframes heroTitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.05);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    animation: heroSubtitleEntrance 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    font-weight: 500;
    letter-spacing: -0.005em;
    position: relative;
    z-index: 1;
}

@keyframes heroSubtitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern FAQ Section */
.faq {
    margin-top: 4rem;
    text-align: left;
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    color: var(--text-primary);
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    color: #667eea;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-question.open::after {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

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

/* Modern Business Features */
.business-features {
    margin: 4rem 0;
}

.business-features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-large);
}

.pricing-card.featured::before {
    content: 'ПОПУЛЯРНЫЙ';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--danger-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: #13B497;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

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

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .hero-title {
        background: linear-gradient(135deg, #a8b2ff 0%, #c19fff 50%, #ffc6ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .pricing-card {
        background: rgba(26, 26, 46, 0.95);
        border-color: rgba(74, 85, 104, 0.6);
    }

    .faq-item {
        background: rgba(26, 26, 46, 0.95);
        border-color: rgba(74, 85, 104, 0.6);
    }
}