/* Seeyoo Magic Main Styles */

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    
    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #1f2937;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Предотвращаем зум на iOS при фокусе на input */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Предотвращаем горизонтальную прокрутку */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Улучшаем производительность на мобильных */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Единый шрифт для всех элементов хедера */
.header,
.header *,
.header .logo,
.header .logo-text,
.header .nav,
.header .nav-link,
.header .user-info,
.header .language-btn,
.header .language-option {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
}

.logo i {
    font-size: 1.8rem;
    color: #667eea;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: nowrap;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

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

/* User info in navigation */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    order: 2;
    flex-wrap: wrap;
}

/* Language selector in navigation */
.nav .language-selector {
    margin-left: 0;
    order: 1;
}

.user-info .username {
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .credits {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.user-info .dashboard-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.user-info .dashboard-link:hover {
    background: var(--primary-color);
    color: white;
}

.user-info .logout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.user-info .logout-btn:hover {
    background: #ef4444;
    color: white;
}

.mobile-menu-toggle {
    display: none;
    font-size: var(--font-size-xl);
    cursor: pointer;
    color: var(--primary-color);
    padding: 8px;
    transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

/* Мобильное меню */
.nav.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    z-index: 999;
    animation: slideDown 0.3s ease-out;
}

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

.nav.mobile-active .nav-link {
    padding: var(--spacing-md);
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    font-size: var(--font-size-lg);
}

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

.nav.mobile-active .user-info {
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.nav.mobile-active .btn {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

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

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    padding: var(--spacing-3xl) 0;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-zone-preview {
    width: 300px;
    height: 300px;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.preview-animation {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
}

.animation-arrow {
    animation: pulse 2s ease-in-out infinite;
}

.animated-icon {
    animation: bounce 2s ease-in-out infinite;
}

/* Upload Section */
.upload-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.upload-header h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.upload-header p {
    color: var(--text-light);
}

/* Upload Zone */
.upload-zone {
    background: var(--bg-primary);
    border: 3px dashed var(--primary-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--primary-dark);
    background: rgba(99, 102, 241, 0.02);
}

.upload-zone.dragover {
    border-color: var(--secondary-color);
    background: rgba(236, 72, 153, 0.05);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.upload-icon {
    font-size: var(--font-size-5xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.upload-zone h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.upload-zone p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Preview Section */
.preview-section {
    margin-top: var(--spacing-2xl);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.preview-image {
    position: relative;
}

.preview-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.image-info {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-white);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

.preview-controls h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.5rem;
}

.animation-description {
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    padding: 0 20px;
}

.animation-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.animation-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.animation-type:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

.animation-type.active {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.animation-type i {
    font-size: var(--font-size-xl);
}

.animation-type span {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Processing Section */
.processing-section {
    margin-top: var(--spacing-2xl);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.processing-container {
    max-width: 500px;
    margin: 0 auto;
}

.processing-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-2xl);
}

.spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.ai-brain {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.processing-section h3 {
    margin-bottom: var(--spacing-md);
}

.processing-section p {
    margin-bottom: var(--spacing-2xl);
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: width var(--transition-normal);
    width: 0%;
}

.processing-steps {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.step.active {
    opacity: 1;
}

.step i {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}

.step span {
    font-size: var(--font-size-xs);
    text-align: center;
}

/* Result Section */
.result-section {
    margin-top: var(--spacing-2xl);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
}

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

.result-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.result-video {
    width: 100%;
}

.result-video video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

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

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: var(--font-size-2xl);
    color: var(--text-white);
}

.feature-card h3 {
    margin-bottom: var(--spacing-md);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: auto;
}

/* Минималистичный футер */
.footer.minimal {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: var(--spacing-lg) 0;
    color: var(--text-secondary);
}

.footer.minimal .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer.minimal .footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.footer.minimal .footer-logo i {
    font-size: 1.2rem;
}

.footer.minimal .footer-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.footer.minimal .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

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

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

.footer-section h4 {
    color: var(--text-white);
    margin-bottom: var(--spacing-lg);
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: var(--spacing-lg);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--text-white);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: background var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer User Credits Info */
.footer-user-info {
    display: none; /* Hidden by default, shown for authenticated users */
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-lg);
}

/* Footer User Credits Info - Minimal Style */
.footer.minimal .footer-user-info {
    background: #e0f2fe;
    border: 1px solid #b3e5fc;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer.minimal .footer-credits {
    color: var(--text-primary);
}

.footer.minimal .footer-credits .credits-icon {
    color: #f59e0b;
}

.footer.minimal .footer-credits .credits-value {
    color: #f59e0b;
    font-weight: 600;
}

.footer.minimal .footer-user-name {
    color: var(--text-secondary);
}

.footer.minimal .footer-user-name .user-icon {
    color: var(--primary-color);
}

.footer.minimal .footer-buy-credits {
    background: var(--primary-color);
    font-size: 0.8rem;
    padding: var(--spacing-xs) var(--spacing-sm);
}

.footer.minimal .footer-buy-credits:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.footer-user-info.show {
    display: flex;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-white);
    font-weight: 500;
}

.footer-credits .credits-icon {
    font-size: 1.2rem;
    color: #fbbf24;
}

.footer-credits .credits-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fbbf24;
}

.footer-user-name {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: #9ca3af;
    font-size: var(--font-size-sm);
}

.footer-user-name .user-icon {
    color: var(--primary-color);
}

.footer-buy-credits {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-buy-credits:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer-buy-credits .btn-icon {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: var(--font-size-sm);
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: var(--bg-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-lg);
}

/* Responsive Design */
/* Адаптивность header для средних экранов */
@media (max-width: 1200px) {
    .nav {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .user-info {
        gap: 8px;
    }
    
    .user-info .username {
        max-width: 150px;
    }
    
    .user-info .dashboard-link,
    .user-info .logout-btn {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .user-info .credits {
        padding: 3px 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .header-content {
        gap: 8px;
    }
    
    .nav {
        gap: 6px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .user-info .username {
        max-width: 120px;
        font-size: 0.85rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .preview-container {
        grid-template-columns: 1fr;
    }
    
    .result-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero адаптация */
    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: var(--spacing-xl) 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Demo визуализация */
    .demo-container {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .demo-arrow {
        transform: rotate(90deg);
    }
    
    .animation-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Features адаптация */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .feature-card {
        padding: var(--spacing-xl);
    }
    
    .processing-steps {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .step {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    /* Pricing адаптация */
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .pricing-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    /* Footer User Info - Mobile */
    .footer-user-info {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
        padding: var(--spacing-md);
    }

    .footer-user-name {
        justify-content: center;
    }

    .footer-credits {
        justify-content: center;
        font-size: 1rem;
    }

    .footer-buy-credits {
        align-self: center;
        width: auto;
        min-width: 140px;
    }
    
    /* Minimal Footer - Mobile */
    .footer.minimal .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer.minimal .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Hero */
    .hero {
        padding: 70px 0 40px;
    }
    
    .hero-content {
        padding: var(--spacing-md) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
    
    /* Demo визуализация */
    .demo-photo, .demo-video {
        width: 200px;
        height: 200px;
    }
    
    .demo-face {
        width: 80px;
        height: 100px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: var(--font-size-sm);
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* Upload zone */
    .upload-zone {
        padding: var(--spacing-lg);
    }
    
    /* Animation types */
    .animation-types {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Features */
    .features-grid {
        gap: var(--spacing-md);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-xl);
    }
    
    /* Sections */
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-sm);
    }
    
    /* Pricing */
    .pricing-card {
        padding: var(--spacing-lg);
    }
    
    /* Footer */
    .footer.minimal .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer.minimal .footer-links a {
        padding: var(--spacing-sm) 0;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.how-it-works .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.how-it-works .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.how-it-works .section-header p {
    font-size: 1.2rem;
    color: #4a5568;
    margin: 0;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.step-arrow {
    text-align: center;
    color: #667eea;
    font-size: 1.5rem;
    margin: 10px 0;
}

.cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.cta-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: white;
}

.cta-section .btn {
    background: white;
    color: #667eea;
    border: none;
    font-weight: 600;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.cta-section .btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* Адаптивность для How It Works */
@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }
    
    .how-it-works .section-header h2 {
        font-size: 2rem;
    }
    
    .steps-container {
        margin: 0 20px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .cta-section {
        margin: 40px 20px 0;
        padding: 30px 20px;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

/* Hero Visual Demo Styles */
.hero-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.demo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.demo-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-frame, .video-frame {
    width: 200px;
    height: 250px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.face-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.face-circle.animated {
    animation: faceGlow 2s ease-in-out infinite alternate;
}

@keyframes faceGlow {
    0% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    100% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.6); }
}

.eyes {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.eye {
    width: 12px;
    height: 12px;
    background: #2d3436;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.eye.blinking {
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 90%, 100% { height: 12px; }
    95% { height: 2px; }
}

.mouth {
    width: 20px;
    height: 10px;
    border: 2px solid #2d3436;
    border-top: none;
    border-radius: 0 0 20px 20px;
    transition: all 0.3s ease;
}

.mouth.talking {
    animation: talk 1.5s ease-in-out infinite;
}

@keyframes talk {
    0%, 100% { 
        width: 20px; 
        height: 10px; 
        border-radius: 0 0 20px 20px; 
    }
    50% { 
        width: 15px; 
        height: 15px; 
        border-radius: 50%; 
        border: 2px solid #2d3436; 
    }
}

.photo-label, .video-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
}

.play-button {
    font-size: 0.8rem;
}

.progress-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #667eea;
    border-radius: 2px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.demo-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.arrow-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    position: relative;
}

.arrow-head {
    width: 0;
    height: 0;
    border-left: 8px solid #764ba2;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 60px;
    margin-top: -9px;
}

.ai-badge {
    position: absolute;
    top: -30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    animation: pulse 2s ease-in-out infinite;
}

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

.demo-description {
    text-align: center;
    margin-top: 20px;
}

.demo-description p {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Адаптивность для демо */
@media (max-width: 768px) {
    .demo-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .photo-frame, .video-frame {
        width: 180px;
        height: 220px;
    }
    
    .face-circle {
        width: 100px;
        height: 100px;
    }
    
    .demo-arrow {
        transform: rotate(90deg);
    }
    
    .ai-badge {
        top: -25px;
        font-size: 0.6rem;
    }
}

/* Minimal Footer Styles */
.footer.minimal {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: var(--spacing-lg) 0;
    color: var(--text-secondary);
}

.footer.minimal .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer.minimal .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    width: 100%;
}

.footer.minimal .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

/* Mobile styles for minimal footer */
@media (max-width: 768px) {
    .footer.minimal .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Touch-friendly стили для мобильных устройств */
@media (hover: none) and (pointer: coarse) {
    /* Увеличенные области нажатия */
    .btn, .nav-link, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Убираем hover эффекты на touch устройствах */
    .btn:hover, .nav-link:hover, a:hover {
        transform: none;
    }
    
    /* Активное состояние для touch */
    .btn:active, .nav-link:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    /* Увеличенные кнопки для удобства */
    .mobile-menu-toggle {
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Input поля - предотвращаем зум на iOS */
    input, textarea, select {
        font-size: 16px !important; /* iOS не зумит если >= 16px */
    }
}

/* Дополнительные стили для input на всех мобильных */
@media (max-width: 768px) {
    input, textarea, select {
        font-size: 16px;
        padding: 12px;
        border-radius: var(--radius-md);
    }
    
    /* Улучшаем видимость placeholder */
    input::placeholder, textarea::placeholder {
        font-size: 14px;
        opacity: 0.6;
    }
}
