:root {
    /* Modern SaaS Color Palette */
    --primary-mint: #10B981;
    --primary-blue: #06B6D4;
    --accent-yellow: #F59E0B;
    --bg-primary: #FEFFFE;
    --bg-secondary: #F8FAFC;
    --bg-gradient-start: #F0FDF4;
    --bg-gradient-end: #ECFEFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;
    --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);
}

/* ========== DARK MODE COLORS ========== */
[data-theme="dark"] {
    --primary-mint: #10B981;
    --primary-blue: #06B6D4;
    --accent-yellow: #F59E0B;
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-gradient-start: #1E293B;
    --bg-gradient-end: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-light: #64748B;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Theme toggle button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Dark mode specific styles */
[data-theme="dark"] body {
    background: #0F172A;
}

[data-theme="dark"] header {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    border-bottom: 1px solid #334155;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .form-container,
[data-theme="dark"] .profile-header-card,
[data-theme="dark"] .stat-card {
    background: #1E293B;
    border-color: #334155;
}
/* Dark mode - Profile fixes */
[data-theme="dark"] .profile-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

[data-theme="dark"] .profile-gradient-bg {
    background: linear-gradient(135deg, #0F172A, #1E293B);
}

[data-theme="dark"] .avatar-main {
    border-color: #1E293B;
}

[data-theme="dark"] .profile-plan-badge {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10B981;
}

[data-theme="dark"] .progress-track {
    background: #334155;
}

[data-theme="dark"] .subscription-badge {
    background: #1E293B;
    border-color: #10B981;
}

/* Dark mode - Hero section */
[data-theme="dark"] .hero {
    background: radial-gradient(ellipse at top, rgba(30, 41, 59, 0.6) 0%, transparent 50%);
}

[data-theme="dark"] .hero h1 {
    background: linear-gradient(135deg, #F1F5F9 0%, #10B981 50%, #06B6D4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dark mode - AI Demo container */
[data-theme="dark"] .demo-main-panel,
[data-theme="dark"] .demo-preview-panel {
    background: rgba(30, 41, 59, 0.95);
}

[data-theme="dark"] .ai-suggestions {
    background: linear-gradient(135deg, #1E293B, #334155);
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .suggestion-item {
    border-bottom-color: #334155;
}

/* Dark mode - Chat widget */
[data-theme="dark"] .chat-window {
    background: #1E293B;
    border-color: #334155;
}

[data-theme="dark"] .chat-header {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    border-bottom-color: #334155;
}

[data-theme="dark"] .chat-message {
    background: #0F172A;
}

[data-theme="dark"] .message-content {
    background: #334155;
    color: #F1F5F9;
}

[data-theme="dark"] .chat-input {
    background: #0F172A;
    border-color: #334155;
    color: #F1F5F9;
}

[data-theme="dark"] .chat-powered {
    background: #0F172A;
    border-top-color: #334155;
    color: #64748B;
}

/* Dark mode - Uploaded images */
[data-theme="dark"] .uploaded-image {
    border: 2px solid #334155;
}

/* Dark mode - Social buttons */
[data-theme="dark"] .social-btn {
    background: #1E293B;
    border-color: #334155;
}

[data-theme="dark"] .social-btn:hover {
    background: #334155;
}

/* Dark mode - FAQ */
[data-theme="dark"] .faq-item {
    background: #1E293B;
    border-color: #334155;
}

[data-theme="dark"] .faq-question {
    background: transparent;
    color: #F1F5F9;
}

[data-theme="dark"] .faq-answer {
    background: #0F172A;
}

/* Dark mode - Pricing */
[data-theme="dark"] .billing-toggle {
    background: #1E293B;
    border-color: #334155;
    color: #94A3B8;
}

[data-theme="dark"] .billing-toggle.active {
    background: linear-gradient(135deg, #10B981, #06B6D4);
    color: white;
    border-color: #10B981;
}
[data-theme="dark"] .demo-input,
[data-theme="dark"] .form-group input {
    background: #0F172A;
    color: #F1F5F9;
    border-color: #334155;
}

[data-theme="dark"] .ai-demo-wrapper {
    background: #1E293B;
}

[data-theme="dark"] footer {
    background: linear-gradient(135deg, #0F172A, #1E293B);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
    }
    * {
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    }
html {
height: 100%;
}


/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
position: fixed;
top: 0;
left: 0;
right: 0;
background: linear-gradient(135deg, #0a5b40 0%, #06B6D4 50%, #F59E0B 100%);
backdrop-filter: blur(20px);
border-bottom: none;
z-index: 1000;
transition: all 0.3s ease;
box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);  /* уменьшена тень */
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.logo {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
}

.logo-icon {
width: 100px;  /* было 70px */
height: 60px;  /* было 70px */
background: transparent;
border-radius: 12px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
box-shadow: none;
transition: transform 0.3s ease;
}

.logo-icon:hover {
transform: translateY(-2px) rotate(5deg);
}

.logo-icon img {
width: 100%;
height: 100%;
object-fit: contain;
}
.logo-text {
font-size: 26px;  /* было 24px */
font-weight: 800;
background: linear-gradient(135deg, #FFFFFF 0%, #E0F2FE 50%, #FEF3C7 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -0.5px;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
text-decoration: none;
color: white;
font-weight: 600;  /* было 500 */
font-size: 17px;   /* было 15px */
transition: all 0.3s ease;
position: relative;
padding: 8px 16px;
border-radius: 8px;
}

.nav-links a:hover {
background: rgba(255, 255, 255, 0.15);
}

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

.nav-links a:hover::after {
width: 60%;
}
.language-selector {
    position: relative;
}
.language-btn {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 10px 16px;  /* было 8px 12px */
border-radius: 12px;
cursor: pointer;
font-weight: 600;  /* было 500 */
font-size: 16px;   /* было 14px */
color: white;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--primary-mint);
    color: var(--primary-mint);
    box-shadow: var(--shadow-md);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    display: none;
opacity: 1;    
}

.language-dropdown.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}
.platform-selector {
position: relative;
}

.thread-input {
width: 100%;
border: none;
background: transparent;
resize: none;
min-height: 80px;
font-family: inherit;
font-size: 16px;
outline: none;
padding: 8px 0;
}

.thread-input:focus {
outline: none;
}

.thread-input::placeholder {
color: var(--text-light);
}

.platform-btn {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
padding: 8px 12px;
border-radius: 12px;
cursor: pointer;
font-weight: 500;
font-size: 14px;
color: var(--text-secondary);
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
width: 100%;
justify-content: space-between;
}

.platform-btn:hover {
background: var(--bg-primary);
border-color: var(--primary-mint);
color: var(--primary-mint);
box-shadow: var(--shadow-md);
}

.platform-dropdown {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 8px;
margin-top: 8px;
box-shadow: var(--shadow-lg);
display: none;
z-index: 100;
}

.platform-dropdown.active {
display: block;
animation: fadeInUp 0.3s ease;
}

.platform-option {
display: block;
padding: 8px 12px;
color: var(--text-secondary);
text-decoration: none;
border-radius: 8px;
font-size: 14px;
transition: all 0.3s ease;
cursor: pointer;
border: none;
background: none;
width: 100%;
text-align: left;
}

.platform-option:hover {
background: var(--bg-secondary);
color: var(--primary-mint);
}

.platform-icon {
width: 16px;
height: 16px;
margin-right: 8px;
}
.thread-container {
display: flex;
flex-direction: column;
gap: 16px;
margin-top: 16px;
}

.thread-item {
position: relative;
border: 2px solid var(--border-color);
border-radius: 16px;
padding: 20px;
background: white;
}

.thread-counter {
position: absolute;
top: 12px;
right: 12px;
font-size: 12px;
color: var(--text-light);
font-weight: 600;
}

.thread-input {
width: 100%;
border: none;
background: transparent;
resize: none;
min-height: 80px;
font-family: inherit;
font-size: 16px;
outline: none;
}

.add-thread-btn {
width: 100%;
padding: 12px;
border: 2px dashed var(--border-color);
border-radius: 12px;
background: transparent;
color: var(--text-secondary);
cursor: pointer;
font-size: 14px;
font-weight: 600;
transition: all 0.3s ease;
}

.add-thread-btn:hover {
border-color: var(--primary-mint);
color: var(--primary-mint);
background: rgba(16, 185, 129, 0.05);
}

.image-upload-container {
margin-top: 12px;
}
.image-upload-btn {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 10px 16px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 500;
color: var(--text-secondary);
transition: all 0.3s ease;
}

.image-upload-btn svg {
width: 18px;
height: 18px;
fill: currentColor;
}

.image-upload-btn:hover svg {
fill: var(--primary-mint);
}


.uploaded-images {
display: flex;
gap: 8px;
margin-top: 12px;
flex-wrap: wrap;
}
.uploaded-images:empty {
display: none;
}
.uploaded-image {
position: relative;
width: 80px;
height: 80px;
border-radius: 8px;
overflow: hidden;
}

.uploaded-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.remove-image {
position: absolute;
top: 4px;
right: 4px;
background: rgba(0,0,0,0.7);
color: white;
border: none;
border-radius: 50%;
width: 20px;
height: 20px;
cursor: pointer;
font-size: 12px;
}
.ai-demo-wrapper {
position: relative;
background: linear-gradient(135deg, var(--primary-mint), var(--primary-blue), var(--accent-yellow));
border-radius: 20px;
padding: 3px;
border: none;
}


.ai-demo-wrapper::before {
content: '';
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
background: linear-gradient(135deg, var(--primary-mint), var(--primary-blue), var(--accent-yellow));
border-radius: 23px;
z-index: -1;
}

.demo-input {
    width: 100%;
    padding: 24px 24px 24px 70px;
    border: none;
    border-radius: 16px;
    font-size: 18px;  /* ✅ Увеличен с 16px */
    line-height: 1.6;  /* ✅ Увеличен с 1.4 */
    min-height: 400px;  /* ✅ НОВОЕ: минимальная высота */
    max-height: 60vh;   /* ✅ НОВОЕ: максимальная высота */
    resize: vertical;   /* ✅ НОВОЕ: разрешить изменение размера */
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    background: var(--bg-primary);
    overflow-y: auto;   /* ✅ НОВОЕ: скролл при переполнении */
    display: block;
}

.demo-input:focus {
    outline: none;
    border-color: var(--primary-mint);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 0 20px rgba(16, 185, 129, 0.1);
    background: var(--bg-primary);
    transform: scale(1.01);
}

/* ✅ НОВОЕ: Увеличить контейнер для My Work */
.demo-main-panel {
    max-width: 1100px;  /* ✅ Увеличено с ~800px */
}

.thread-input:focus {
outline: none;
}

.thread-input::placeholder {

color: var(--text-light);
}

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

.language-option {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-option:hover {
    background: var(--bg-secondary);
    color: var(--primary-mint);
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.login-btn {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 10px 20px;  /* было 8px 16px */
border-radius: 12px;
cursor: pointer;
font-weight: 600;  /* было 500 */
color: white;
transition: all 0.3s ease;
text-decoration: none;
font-size: 16px;  /* было 14px */
}

.login-btn:hover {
background: rgba(255, 255, 255, 0.3);
border-color: var(--primary-mint);
color: var(--primary-mint);
box-shadow: var(--shadow-md);
}
/* Profile Button */
.profile-btn {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 10px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
width: 44px;
height: 44px;
}

.profile-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.1);
}

.profile-btn svg {
fill: white;
}
main {
margin-top: 60px;
flex: 1;
display: flex;
flex-direction: column;
}

.page {
display: none;
min-height: calc(100vh - 60px);
flex: 1;
}

.page > section {
flex: 1;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
text-align: center;
padding: 80px 0 40px;
background: 
radial-gradient(ellipse at top, rgba(240, 253, 244, 0.6) 0%, transparent 50%);
position: relative;
backdrop-filter: blur(10px);
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-mint) 50%, var(--primary-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero .highlight {
    background: linear-gradient(135deg, var(--primary-mint), var(--accent-yellow));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-features {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin: 48px auto;
max-width: 1000px;
justify-items: center;
}
.feature-badge {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
background: var(--bg-primary);
padding: 12px 16px;
border-radius: 24px;
color: var(--text-secondary);
font-weight: 500;
font-size: 14px;
box-shadow: var(--shadow-sm);
border: 1px solid var(--border-color);
text-align: center;
white-space: nowrap;
width: 100%;
max-width: 240px;
}
.feature-badge::before {
    flex-shrink: 0;
}

.feature-badge::before {
    content: "✅";
    font-size: 16px;
}

.cta-btn {
background: linear-gradient(135deg, #10B981 0%, #059669 100%);
color: white;
padding: 16px 32px;
border: none;
border-radius: 14px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
box-shadow: 
0 8px 24px rgba(16, 185, 129, 0.5),
0 4px 8px rgba(0, 0, 0, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
position: relative;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.2);
opacity: 1 !important;
}

.cta-btn::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.5s ease;
}

.cta-btn:hover::before {
left: 100%;
}

.cta-btn:hover {
background: linear-gradient(135deg, #059669 0%, #047857 100%);
transform: translateY(-2px);
box-shadow: 
0 8px 20px rgba(16, 185, 129, 0.5),
0 4px 8px rgba(0, 0, 0, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cta-btn.hero-primary {
font-size: 18px;
padding: 18px 40px;
box-shadow: 
0 6px 16px rgba(16, 185, 129, 0.45),
0 2px 6px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary {
background: linear-gradient(135deg, #10B981 0%, #059669 100%);
font-weight: 700;
}

.cta-btn.hero-primary:hover {
background: linear-gradient(135deg, #059669, #047857);
box-shadow: 
0 12px 32px 0 rgba(16, 185, 129, 0.45),
0 0 0 4px rgba(16, 185, 129, 0.15),
inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
transform: translateY(-4px) scale(1.02);
}

.cta-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 ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}
.cta-btn.secondary {
background: linear-gradient(135deg, #10B981, #059669);
box-shadow: 
0 4px 14px 0 rgba(16, 185, 129, 0.4),
0 0 0 3px rgba(16, 185, 129, 0.1);
font-weight: 700;
color: white;
border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
background: linear-gradient(135deg, #059669, #047857);
box-shadow: 
0 6px 20px 0 rgba(16, 185, 129, 0.5),
0 0 0 4px rgba(16, 185, 129, 0.15);
transform: translateY(-3px);
}
/* Billing Toggle Switch */
.billing-toggle {
padding: 12px 24px;
border: 2px solid var(--border-color);
background: white;
border-radius: 12px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
color: var(--text-secondary);
}

.billing-toggle.active {
background: linear-gradient(135deg, var(--primary-mint), var(--primary-blue));
color: white;
border-color: var(--primary-mint);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.billing-toggle:hover {
transform: translateY(-2px);
border-color: var(--primary-mint);
}
/* ========== AI DEMO - КОНТЕЙНЕР ========== */

.ai-demo {
    background: transparent;
    padding: 80px 0 60px 200px;  /* ✅ ДОБАВЛЕН padding-left: 200px */
    width: 100%;
    max-width: calc(100% - 200px);  /* ✅ ОГРАНИЧИТЬ ШИРИНУ */
    margin-left: 135px;  /* ✅ ДОПОЛНИТЕЛЬНЫЙ СДВИГ */
    }
/* ========== ADAPTIVE SPLIT-SCREEN CONTAINERS ========== */
.demo-container {
display: flex;
gap: 24px;
max-width: 1600px;
margin: 0 auto;
padding: 0 40px;
align-items: stretch;
justify-content: center;
transition: all 0.6s ease;
}

/* Platform-specific widths */
.demo-container.platform-mywork {
max-width: 1600px;
}

.demo-container.platform-linkedin {
max-width: 1400px;
}

.demo-container.platform-twitter,
.demo-container.platform-instagram {
max-width: 1200px;
}

/* Main panels - always equal width */
.demo-main-panel,
.demo-preview-panel {
flex: 1;
min-width: 0;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 24px;
padding: 40px;
min-height: 500px;
box-shadow: 
0 20px 60px -15px rgba(16, 185, 129, 0.15),
0 10px 30px -10px rgba(6, 182, 212, 0.1),
0 0 0 1px rgba(16, 185, 129, 0.08);
position: relative;
transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.demo-main-panel::before,
.demo-preview-panel::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #10B981, #06B6D4, #F59E0B);
    border-radius: 27px;
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .demo-main-panel::before,
[data-theme="dark"] .demo-preview-panel::before {
    opacity: 0.3;
}
/* Hidden preview panel by default */
.demo-preview-panel {
opacity: 0;
transform: translateX(100px);
pointer-events: none;
position: absolute;
right: -9999px;
}

/* Split mode active */
.demo-container.split-mode {
gap: 24px;
}

.demo-container.split-mode .demo-main-panel {
flex: 1;
}

.demo-container.split-mode .demo-preview-panel {
flex: 1;
opacity: 1;
transform: translateX(0);
pointer-events: auto;
position: relative;
right: auto;
}

/* Hide elements in analysis mode */
.demo-container.split-mode .demo-title,
.demo-container.split-mode .platform-selector,
.demo-container.split-mode .demo-actions,
.demo-container.split-mode .ai-suggestions {
display: none !important;
}

/* Responsive */
@media (max-width: 1200px) {
.demo-container {
flex-direction: column;
padding: 0 20px;
}

.demo-container.split-mode .demo-preview-panel {
margin-top: 20px;
}
}
.ai-suggestions {
margin-top: 16px;
margin-bottom: 0;
margin-right: 40px; /* ← ДОБАВЛЕНО: чтобы не прилипал к краю */
padding: 16px 20px;
background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
border-radius: 16px;
border: 3px solid rgba(75, 177, 143, 0.2);
display: inline-block;
max-width: 100%;
width: auto;
}



.demo-preview-panel {
flex: 1;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 24px;
padding: 32px;  /* было 50px -> 0 */
min-height: 450px;  /* было 400px */
box-shadow: 
0 20px 60px -15px rgba(16, 185, 129, 0.15),
0 10px 30px -10px rgba(6, 182, 212, 0.1),
0 0 0 1px rgba(16, 185, 129, 0.08);
position: relative;
opacity: 0;
transform: translateX(100px) scale(0.9);
pointer-events: none;
max-width: 0;
overflow: hidden;
transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.demo-preview-panel::before {
content: '';
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
background: linear-gradient(135deg, #10B981, #06B6D4, #F59E0B);
border-radius: 27px;
z-index: -1;
opacity: 0.8;
}

/* ========== SPLIT MODE ACTIVE ========== */
.demo-container.split-mode .demo-preview-panel {
opacity: 1;
transform: translateX(0) scale(1);
pointer-events: auto;
max-width: 100%;
padding: 40px;
}


.ai-preview-window::before {
content: '';
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
background: linear-gradient(135deg, #10B981, #06B6D4, #F59E0B);
border-radius: 27px;
z-index: -1;
opacity: 0.8;
}
.ai-preview-window.active {
right: 2%;
opacity: 1;
}

.preview-window-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}

.preview-window-title {
font-size: 24px;
font-weight: 700;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 12px;
}

.preview-close-btn {
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.2);
color: #EF4444;
width: 36px;
height: 36px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
transition: all 0.3s ease;
}

.preview-close-btn:hover {
background: rgba(239, 68, 68, 0.2);
transform: scale(1.1);
}

.demo-title {
font-size: 32px;
font-weight: 800;
color: #111827;
text-align: left;
letter-spacing: -0.5px;
margin-bottom: 32px;
}
.demo-input {
width: 100%;
padding: 20px 20px 20px 70px;
border: none;
border-radius: 16px;
font-size: 18px;
min-height: 180px;
resize: none;
transition: all 0.2s ease;
font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
line-height: 1.4;
background: var(--bg-primary); /* ← Добавить эту строку */
overflow: hidden;
display: block;
}

.demo-input:focus {
outline: none;
border-color: var(--primary-mint);
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 0 20px rgba(16, 185, 129, 0.1);
background: var(--bg-primary);
transform: scale(1.01);
}

.demo-avatar {
position: absolute;
top: 20px;
left: 20px;
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary-mint), var(--primary-blue));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
font-size: 18px;
z-index: 10;
}

.demo-avatar svg {
width: 20px;
height: 20px;
fill: white;
}

.demo-counter {
position: absolute;
bottom: 12px;
right: 16px;
font-size: 12px;
color: var(--text-light);
font-weight: 500;
transition: color 0.2s ease;
display: none;
}

.demo-counter.warning {
color: var(--accent-yellow);
}

.demo-counter.error {
color: #EF4444;
}

.demo-actions {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 16px;
padding: 16px 0;
border-top: 1px solid var(--border-color);
}

.demo-actions-left {
display: flex;
gap: 12px;
align-items: center;
}

.demo-cta-note {
text-align: center;
margin-top: 12px;
font-size: 14px;
color: var(--text-secondary);
opacity: 0.8;
}

.cta-btn.active {
opacity: 1;
transform: scale(1.02);
}

.cta-btn:not(.active) {
opacity: 0.6;
}
.ai-suggestions {
margin-top: 16px;
margin-bottom: 0;
padding: 16px 20px;
background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
border-radius: 16px;
border: 3px solid rgba(75, 177, 143, 0.2);
display: inline-block;
max-width: 100%;
width: auto;
}
.ai-suggestions h4 {
    color: var(--primary-mint);
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-item {
padding: 10px 0; /* уменьшен padding */
color: var(--text-secondary);
border-bottom: 1px solid var(--border-color);
font-size: 14px; /* уменьшен размер шрифта */
white-space: nowrap; /* текст в одну строку */
}

.suggestion-item:last-child {
    border-bottom: none;
}

.features-section {
padding: 0 0 40px;
background: var(--bg-primary);
margin-top: -20px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.section-subtitle {
    color: var(--primary-mint);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 24px;
padding: 32px;
text-align: center;
transition: all 0.3s ease;
box-shadow: var(--shadow-sm);
position: relative; /* ✅ ДОДАЙТЕ ЦЕ */
overflow: visible;  /* ✅ ДОДАЙТЕ ЦЕ */
}
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 10%;
right: auto;
width: 80%;  /* ✅ ШИРИНА ЛИНИИ: 80% от карточки */
height: 3px;  /* ✅ ТОЛЩИНА: можно менять (2px, 3px, 4px) */
background: linear-gradient(90deg, var(--primary-mint), var(--primary-blue));
transform: translateX(-50%) scaleX(0);
transform-origin: center;
transition: transform 0.4s ease;
border-radius: 0 0 2px 2px;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-mint);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}
/* ========== AI ANALYSIS ENHANCEMENTS ========== */
.ai-analysis-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
border-radius: 12px;
margin-bottom: 16px;
}

.analysis-title {
display: flex;
align-items: center;
gap: 12px;
font-weight: 700;
font-size: 16px;
}

.confidence-badge {
background: rgba(16, 185, 129, 0.2);
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
color: var(--primary-mint);
}

.toggle-compare-btn {
background: white;
border: 2px solid var(--border-color);
padding: 8px 16px;
border-radius: 10px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}

.toggle-compare-btn:hover {
border-color: var(--primary-mint);
background: rgba(16, 185, 129, 0.05);
}

.toggle-compare-btn.active {
background: var(--primary-mint);
color: white;
border-color: var(--primary-mint);
}

/* Quick Stats */
.quick-stats {
display: flex;
gap: 16px;
padding: 12px 20px;
background: white;
border-radius: 10px;
margin-bottom: 16px;
border: 1px solid var(--border-color);
}

.stat-item {
display: flex;
flex-direction: column;
gap: 4px;
}

.stat-label {
font-size: 11px;
color: var(--text-light);
text-transform: uppercase;
font-weight: 600;
}

.stat-value {
font-size: 14px;
font-weight: 700;
color: var(--text-primary);
}

/* Emotion Map */
.emotion-map {
padding: 16px 20px;
background: white;
border-radius: 10px;
margin-bottom: 16px;
border: 1px solid var(--border-color);
}

.emotion-label {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 12px;
}

.emotion-bars {
display: flex;
flex-direction: column;
gap: 10px;
}

.emotion-bar {
display: grid;
grid-template-columns: 80px 1fr 50px;
align-items: center;
gap: 12px;
}

.emotion-name {
font-size: 12px;
color: var(--text-secondary);
font-weight: 500;
}

.emotion-track {
height: 8px;
background: var(--bg-secondary);
border-radius: 10px;
overflow: hidden;
}

.emotion-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary-mint), var(--primary-blue));
border-radius: 10px;
transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
width: 0;
}

.emotion-percent {
font-size: 11px;
font-weight: 600;
color: var(--text-secondary);
text-align: right;
}

/* Tone Adjuster */
.tone-adjuster {
padding: 16px 20px;
background: white;
border-radius: 10px;
margin-bottom: 16px;
border: 1px solid var(--border-color);
}

.adjuster-label {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 12px;
}

.tone-buttons {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}

.tone-btn {
background: var(--bg-secondary);
border: 2px solid var(--border-color);
padding: 10px 12px;
border-radius: 10px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
color: var(--text-secondary);
}

.tone-btn:hover {
border-color: var(--primary-mint);
background: rgba(16, 185, 129, 0.05);
color: var(--primary-mint);
transform: translateY(-2px);
}

.tone-btn:active {
transform: translateY(0);
}

/* Compare Mode */
.compare-container {
display: grid;
grid-template-columns: 1fr auto 1fr;
gap: 12px;
padding: 16px;
background: white;
border-radius: 10px;
margin-bottom: 16px;
border: 1px solid var(--border-color);
}

.compare-column {
display: flex;
flex-direction: column;
gap: 8px;
}

.compare-label {
font-size: 12px;
font-weight: 600;
color: var(--text-light);
text-transform: uppercase;
}

.compare-content {
font-size: 14px;
line-height: 1.6;
color: var(--text-primary);
padding: 12px;
background: var(--bg-secondary);
border-radius: 8px;
min-height: 100px;
max-height: 200px;
overflow-y: auto;
}

.compare-divider {
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: var(--primary-mint);
font-weight: 700;
}

/* Keywords Section */
.keywords-section {
padding: 16px 20px;
background: white;
border-radius: 10px;
margin-top: 16px;
border: 1px solid var(--border-color);
}

.keywords-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
font-weight: 600;
font-size: 14px;
}

.copy-all-btn {
background: var(--primary-mint);
color: white;
border: none;
padding: 6px 12px;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}

.copy-all-btn:hover {
background: var(--primary-blue);
transform: translateY(-1px);
}

.keywords-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.keyword-tag {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
padding: 6px 12px;
border-radius: 20px;
font-size: 13px;
font-weight: 500;
color: var(--text-primary);
border: 1px solid rgba(16, 185, 129, 0.3);
cursor: pointer;
transition: all 0.3s ease;
}

.keyword-tag:hover {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
transform: translateY(-2px);
}

/* Headlines Section */
.headlines-section {
padding: 16px 20px;
background: white;
border-radius: 10px;
margin-top: 16px;
border: 1px solid var(--border-color);
}

.headlines-header {
font-weight: 600;
font-size: 14px;
margin-bottom: 12px;
}

.headlines-list {
display: flex;
flex-direction: column;
gap: 10px;
}

.headline-item {
padding: 12px;
background: var(--bg-secondary);
border-radius: 8px;
border: 2px solid var(--border-color);
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}

.headline-item:hover {
border-color: var(--primary-mint);
background: rgba(16, 185, 129, 0.05);
transform: translateX(4px);
}

.headline-text {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 4px;
}

.headline-score {
font-size: 11px;
color: var(--text-light);
}

.refine-btn {
background: linear-gradient(135deg, var(--primary-blue), var(--primary-mint));
color: white;
box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.refine-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
.nav-links {
display: none;
}

.hero h1 {
font-size: 36px;
}

.hero p {
font-size: 18px;
}

.hero-features {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}

    .features-grid {
        grid-template-columns: 1fr;
    }

    .ai-demo {
        padding: 24px;
        margin: 40px 16px;
    }

    .section-title {
        font-size: 32px;
    }
}
@media (max-width: 1200px) {
.nav-links {
display: none;
}

.hero h1 {
font-size: 36px;
}

.hero p {
font-size: 18px;
}

.hero-features {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}

.features-grid {
grid-template-columns: 1fr;
}

.ai-demo {
padding: 40px 20px;
margin: 20px auto;
}

.section-title {
font-size: 32px;
}
}

@media (max-width: 600px) {
.hero-features {
grid-template-columns: 1fr;
gap: 12px;
}
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

@media (max-width: 1200px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* Form Styles */
.form-container {
    max-width: 450px;
    margin: 60px auto;
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-mint);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: var(--bg-primary);
}

.form-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-mint), var(--primary-blue));
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

.form-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-footer a {
    color: var(--primary-mint);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
background: linear-gradient(135deg, var(--text-primary), #1F2937);
color: var(--text-light);
padding: 60px 0 20px;
margin-top: auto;
}

.footer-content {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
gap: 40px;
margin-bottom: 40px;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    font-size: 16px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #374151;
    color: #9CA3AF;
    font-size: 14px;
}
.footer-logo {
color: var(--primary-mint);
font-size: 24px;
font-weight: 800;
text-decoration: none;
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
}
.footer-logo .logo-icon {
background: transparent;
border-radius: 12px;
box-shadow: none;
}
/* Добавить после строки 766 */
/* Enhanced Auth Styles */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
}

.social-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    border-color: var(--primary-mint);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.social-btn.google:hover {
    background: #f8f9fa;
}

.social-btn.apple:hover {
    background: #000;
    color: white;
}

.auth-success {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    border: 1px solid var(--primary-mint);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--primary-mint);
    font-weight: 500;
    text-align: center;
    display: none;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    color: #dc2626;
    font-weight: 500;
    text-align: center;
    display: none;
}
/* ========== PREMIUM PROFILE DESIGN ========== */

.profile-section {
    min-height: 100vh;
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
}

.profile-header-card {
    max-width: 600px;  /* ✅ Уменьшили с 900px до 600px */
    margin: 0 auto 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}
.profile-gradient-bg {
    height: 180px;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    position: relative;
}

.profile-gradient-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.profile-content {
    padding: 0 48px 48px;
    text-align: center;
}

/* Avatar */
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-top: -80px;
    margin-bottom: 24px;
}

.avatar-ring-animated {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    animation: rotate-ring 3s linear infinite;
}

@keyframes rotate-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-main {
    width: 120px;  /* ✅ Уменьшили с 160px до 120px */
    height: 120px;  /* ✅ Уменьшили с 160px до 120px */
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    border: 6px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

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

.avatar-svg {
    width: 70px;
    height: 70px;
}

.avatar-photo {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    border: 4px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
}

/* User Info */
.profile-info {
    margin-top: 24px;
}

.profile-username {
    font-size: 26px;  /* ✅ Уменьшили с 32px до 26px */
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
}

.profile-user-email {
    font-size: 16px;
    color: #6B7280;
    margin: 0 0 24px;
}

.profile-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border: 2px solid #10B981;
    border-radius: 50px;
    font-weight: 700;
    color: #10B981;
    font-size: 16px;
}

/* Stats Grid */
.profile-stats-grid {
    max-width: 900px;
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.stat-card {
    background: white;
    border: 2px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 24px;  /* ✅ Уменьшили с 32px до 24px */
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.stat-card:hover {
    border-color: #10B981;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
    transform: translateY(-4px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* Usage Display */
.usage-display {
    text-align: center;
    margin-bottom: 20px;
}

.usage-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.usage-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 600;
    margin: 4px 0 0;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 16px;
}

.progress-track {
    height: 12px;
    background: #E5E7EB;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-value {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #06B6D4);
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.progress-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
}

/* Subscription Display */
.subscription-display {
    text-align: center;
    margin-bottom: 24px;
}

.subscription-badge {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    border: 2px solid #10B981;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 12px;
}

.subscription-text {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.subscription-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.subscription-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.profile-actions {
    max-width: 600px;  /* ✅ Уменьшили с 900px до 600px */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.action-primary {
    background: linear-gradient(135deg, #10B981, #06B6D4);
    color: white;
}

.action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.action-danger {
    background: white;
    color: #EF4444;
    border: 2px solid #EF4444;
}

.action-danger:hover {
    background: #EF4444;
    color: white;
}

/* Mobile */
@media (max-width: 768px) {
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-actions {
        grid-template-columns: 1fr;
    }
    
    .profile-content {
        padding: 0 24px 32px;
    }
}
/* ========== FLOATING PARTICLES BACKGROUND ========== */

.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #fefce8 100%);
}

[data-theme="dark"] .bg-shapes {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}

/* ========== FLOATING PARTICLES ========== */

/* Cyan particles */
.particle-cyan-1 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #06B6D4;
    border-radius: 50%;
    box-shadow: 0 0 15px #06B6D4, 0 0 30px rgba(6, 182, 212, 0.4);
    opacity: 0;
    animation: float-fade-1 8s ease-in-out infinite;
}

.particle-cyan-2 {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #22D3EE;
    border-radius: 50%;
    box-shadow: 0 0 12px #22D3EE, 0 0 25px rgba(34, 211, 238, 0.3);
    opacity: 0;
    animation: float-fade-2 10s ease-in-out infinite 2s;
}

.particle-cyan-3 {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #06B6D4;
    border-radius: 50%;
    box-shadow: 0 0 10px #06B6D4;
    opacity: 0;
    animation: float-fade-3 12s ease-in-out infinite 4s;
}

.particle-cyan-4 {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #22D3EE;
    border-radius: 50%;
    box-shadow: 0 0 12px #22D3EE;
    opacity: 0;
    animation: float-fade-4 9s ease-in-out infinite 1s;
}

/* Green particles */
.particle-green-1 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 15px #10B981, 0 0 30px rgba(16, 185, 129, 0.4);
    opacity: 0;
    animation: float-fade-5 11s ease-in-out infinite 3s;
}

.particle-green-2 {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #34D399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34D399;
    opacity: 0;
    animation: float-fade-6 9s ease-in-out infinite 5s;
}

.particle-green-3 {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 12px #10B981, 0 0 25px rgba(16, 185, 129, 0.3);
    opacity: 0;
    animation: float-fade-7 10s ease-in-out infinite 6s;
}

.particle-green-4 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #34D399;
    border-radius: 50%;
    box-shadow: 0 0 14px #34D399;
    opacity: 0;
    animation: float-fade-8 13s ease-in-out infinite 2s;
}

/* Yellow particles */
.particle-yellow-1 {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #F59E0B;
    border-radius: 50%;
    box-shadow: 0 0 12px #F59E0B, 0 0 25px rgba(245, 158, 11, 0.3);
    opacity: 0;
    animation: float-fade-9 10s ease-in-out infinite 4s;
}

.particle-yellow-2 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FCD34D;
    border-radius: 50%;
    box-shadow: 0 0 15px #FCD34D, 0 0 30px rgba(252, 211, 77, 0.4);
    opacity: 0;
    animation: float-fade-10 11s ease-in-out infinite 1s;
}

.particle-yellow-3 {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #F59E0B;
    border-radius: 50%;
    box-shadow: 0 0 10px #F59E0B;
    opacity: 0;
    animation: float-fade-11 9s ease-in-out infinite 7s;
}

.particle-yellow-4 {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #FBB024;
    border-radius: 50%;
    box-shadow: 0 0 12px #FBB024;
    opacity: 0;
    animation: float-fade-12 12s ease-in-out infinite 3s;
}

/* Mixed color particles for variety */
.particle-mix-1 {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #22D3EE;
    border-radius: 50%;
    box-shadow: 0 0 10px #22D3EE;
    opacity: 0;
    animation: float-fade-13 10s ease-in-out infinite 5s;
}

.particle-mix-2 {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #34D399;
    border-radius: 50%;
    box-shadow: 0 0 12px #34D399;
    opacity: 0;
    animation: float-fade-14 11s ease-in-out infinite 8s;
}

.particle-mix-3 {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FCD34D;
    border-radius: 50%;
    box-shadow: 0 0 10px #FCD34D;
    opacity: 0;
    animation: float-fade-15 9s ease-in-out infinite 6s;
}

.particle-mix-4 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #06B6D4;
    border-radius: 50%;
    box-shadow: 0 0 14px #06B6D4;
    opacity: 0;
    animation: float-fade-16 13s ease-in-out infinite 4s;
}

/* ========== ANIMATIONS ========== */

@keyframes float-fade-1 {
    0% {
        top: 10%;
        left: 15%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: translate(20px, -30px) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translate(80px, 40px) scale(1);
    }
    100% {
        top: 25%;
        left: 25%;
        opacity: 0;
        transform: translate(100px, 60px) scale(0.5);
    }
}

@keyframes float-fade-2 {
    0% {
        top: 70%;
        left: 80%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.7;
        transform: translate(-30px, -20px) scale(1);
    }
    80% {
        opacity: 0.7;
        transform: translate(-90px, -50px) scale(1);
    }
    100% {
        top: 55%;
        left: 65%;
        opacity: 0;
        transform: translate(-120px, -70px) scale(0.5);
    }
}

@keyframes float-fade-3 {
    0% {
        top: 30%;
        left: 5%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.9;
        transform: translate(40px, 20px) scale(1);
    }
    80% {
        opacity: 0.9;
        transform: translate(120px, 50px) scale(1);
    }
    100% {
        top: 45%;
        left: 20%;
        opacity: 0;
        transform: translate(150px, 70px) scale(0.5);
    }
}

@keyframes float-fade-4 {
    0% {
        top: 85%;
        left: 30%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: translate(30px, -40px) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translate(70px, -100px) scale(1);
    }
    100% {
        top: 65%;
        left: 40%;
        opacity: 0;
        transform: translate(90px, -130px) scale(0.5);
    }
}

@keyframes float-fade-5 {
    0% {
        top: 15%;
        left: 70%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: translate(-20px, 30px) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translate(-60px, 90px) scale(1);
    }
    100% {
        top: 35%;
        left: 60%;
        opacity: 0;
        transform: translate(-80px, 120px) scale(0.5);
    }
}

@keyframes float-fade-6 {
    0% {
        top: 60%;
        left: 10%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.7;
        transform: translate(50px, -25px) scale(1);
    }
    80% {
        opacity: 0.7;
        transform: translate(130px, -60px) scale(1);
    }
    100% {
        top: 50%;
        left: 25%;
        opacity: 0;
        transform: translate(160px, -80px) scale(0.5);
    }
}

@keyframes float-fade-7 {
    0% {
        top: 40%;
        left: 85%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: translate(-40px, 20px) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translate(-110px, 50px) scale(1);
    }
    100% {
        top: 55%;
        left: 70%;
        opacity: 0;
        transform: translate(-140px, 70px) scale(0.5);
    }
}

@keyframes float-fade-8 {
    0% {
        top: 20%;
        left: 50%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.9;
        transform: translate(20px, 40px) scale(1);
    }
    80% {
        opacity: 0.9;
        transform: translate(60px, 110px) scale(1);
    }
    100% {
        top: 40%;
        left: 60%;
        opacity: 0;
        transform: translate(80px, 140px) scale(0.5);
    }
}

@keyframes float-fade-9 {
    0% {
        top: 75%;
        left: 90%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: translate(-50px, -30px) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translate(-130px, -80px) scale(1);
    }
    100% {
        top: 60%;
        left: 75%;
        opacity: 0;
        transform: translate(-160px, -100px) scale(0.5);
    }
}

@keyframes float-fade-10 {
    0% {
        top: 25%;
        left: 20%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.7;
        transform: translate(35px, 25px) scale(1);
    }
    80% {
        opacity: 0.7;
        transform: translate(100px, 70px) scale(1);
    }
    100% {
        top: 40%;
        left: 35%;
        opacity: 0;
        transform: translate(130px, 90px) scale(0.5);
    }
}

@keyframes float-fade-11 {
    0% {
        top: 50%;
        left: 75%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.9;
        transform: translate(-30px, -35px) scale(1);
    }
    80% {
        opacity: 0.9;
        transform: translate(-90px, -90px) scale(1);
    }
    100% {
        top: 35%;
        left: 60%;
        opacity: 0;
        transform: translate(-110px, -110px) scale(0.5);
    }
}

@keyframes float-fade-12 {
    0% {
        top: 8%;
        left: 40%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: translate(25px, 45px) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translate(70px, 120px) scale(1);
    }
    100% {
        top: 30%;
        left: 50%;
        opacity: 0;
        transform: translate(90px, 150px) scale(0.5);
    }
}

@keyframes float-fade-13 {
    0% {
        top: 65%;
        left: 45%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.7;
        transform: translate(-25px, -20px) scale(1);
    }
    80% {
        opacity: 0.7;
        transform: translate(-70px, -60px) scale(1);
    }
    100% {
        top: 50%;
        left: 35%;
        opacity: 0;
        transform: translate(-90px, -80px) scale(0.5);
    }
}

@keyframes float-fade-14 {
    0% {
        top: 35%;
        left: 95%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: translate(-40px, 15px) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translate(-120px, 40px) scale(1);
    }
    100% {
        top: 45%;
        left: 75%;
        opacity: 0;
        transform: translate(-150px, 55px) scale(0.5);
    }
}

@keyframes float-fade-15 {
    0% {
        top: 80%;
        left: 15%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.9;
        transform: translate(45px, -35px) scale(1);
    }
    80% {
        opacity: 0.9;
        transform: translate(120px, -90px) scale(1);
    }
    100% {
        top: 65%;
        left: 30%;
        opacity: 0;
        transform: translate(150px, -110px) scale(0.5);
    }
}

@keyframes float-fade-16 {
    0% {
        top: 12%;
        left: 85%;
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: translate(-35px, 30px) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translate(-100px, 80px) scale(1);
    }
    100% {
        top: 28%;
        left: 70%;
        opacity: 0;
        transform: translate(-130px, 100px) scale(0.5);
    }
}

/* ========== DARK MODE ========== */

[data-theme="dark"] .particle-cyan-1,
[data-theme="dark"] .particle-cyan-2,
[data-theme="dark"] .particle-cyan-3,
[data-theme="dark"] .particle-cyan-4,
[data-theme="dark"] .particle-green-1,
[data-theme="dark"] .particle-green-2,
[data-theme="dark"] .particle-green-3,
[data-theme="dark"] .particle-green-4,
[data-theme="dark"] .particle-yellow-1,
[data-theme="dark"] .particle-yellow-2,
[data-theme="dark"] .particle-yellow-3,
[data-theme="dark"] .particle-yellow-4,
[data-theme="dark"] .particle-mix-1,
[data-theme="dark"] .particle-mix-2,
[data-theme="dark"] .particle-mix-3,
[data-theme="dark"] .particle-mix-4 {
    box-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
}

/* ========== MOBILE ========== */

@media (max-width: 768px) {
    .particle-cyan-1,
    .particle-cyan-2,
    .particle-cyan-3,
    .particle-cyan-4,
    .particle-green-1,
    .particle-green-2,
    .particle-green-3,
    .particle-green-4,
    .particle-yellow-1,
    .particle-yellow-2,
    .particle-yellow-3,
    .particle-yellow-4,
    .particle-mix-1,
    .particle-mix-2,
    .particle-mix-3,
    .particle-mix-4 {
        width: 4px;
        height: 4px;
    }
}
/* ========== ФИЛЬТРЫ ДЛИНЫ И СТИЛЯ ========== */
.filter-selector {
    position: relative;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
}

.filter-btn:hover {
    background: var(--bg-primary);
    border-color: var(--primary-mint);
    color: var(--primary-mint);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
    animation: fadeInUp 0.3s ease;
}

.filter-dropdown.active {
    display: block;
}

.filter-option {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-weight: 500;
}

.filter-option:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    color: var(--primary-mint);
    transform: translateX(4px);
}

/* ========== THREAD BUTTONS ========== */
.thread-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.thread-btn {
    background: linear-gradient(135deg, var(--primary-mint), var(--primary-blue));
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.thread-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.thread-btn.secondary {
    background: white;
    color: var(--primary-mint);
    border: 2px solid var(--primary-mint);
}

/* Dark mode */
[data-theme="dark"] .filter-btn {
    background: #1E293B;
    border-color: #334155;
    color: #F1F5F9;
}

[data-theme="dark"] .filter-btn:hover {
    background: #334155;
    border-color: #10B981;
}

[data-theme="dark"] .filter-dropdown {
    background: #1E293B;
    border-color: #334155;
}

[data-theme="dark"] .filter-option:hover {
    background: rgba(16, 185, 129, 0.2);
}


/* ========== КОМПАКТНАЯ ПАНЕЛЬ ФИЛЬТРОВ ========== */
.demo-filters-bar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .demo-filters-bar {
    background: #0F172A;
    border-color: #334155;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn.compact {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
    background: var(--bg-secondary);
}

[data-theme="dark"] .filter-btn.compact {
    background: #1E293B;
}

.emoji-toggle-group {
    display: flex;
    gap: 8px;
}

.emoji-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.emoji-toggle-btn:hover {
    border-color: var(--primary-mint);
    background: rgba(16, 185, 129, 0.05);
    color: var(--primary-mint);
    transform: translateY(-2px);
}

.emoji-toggle-btn.active {
    background: linear-gradient(135deg, #10B981, #06B6D4);
    border-color: #10B981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.option-icon {
    font-size: 16px;
    margin-right: 4px;
}

/* ========== АДАПТИВНЫЕ КОНТЕЙНЕРЫ ПО ПЛАТФОРМАМ ========== */

/* My Work - Максимальное пространство */
.demo-container.platform-mywork .single-post {
    min-height: 600px;
}

.demo-container.platform-mywork .demo-input {
    min-height: 500px;
    font-size: 18px;
    line-height: 1.8;
}

/* Twitter - Компактный */
.demo-container.platform-twitter .single-post {
    min-height: 280px;
}

.demo-container.platform-twitter .demo-input {
    min-height: 200px;
    font-size: 16px;
}

/* Instagram - Средний */
.demo-container.platform-instagram .single-post {
    min-height: 400px;
}

.demo-container.platform-instagram .demo-input {
    min-height: 320px;
    font-size: 17px;
}

/* LinkedIn - Средний-Большой */
.demo-container.platform-linkedin .single-post {
    min-height: 450px;
}

.demo-container.platform-linkedin .demo-input {
    min-height: 350px;
    font-size: 17px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .demo-filters-bar {
        flex-wrap: wrap;
    }
    
    .filter-group {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .demo-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .demo-filters-bar {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}

/* ========== СТИЛИ ДЛЯ ИКОНОК В ФИЛЬТРАХ ========== */
.filter-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.filter-option svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.filter-option:hover svg {
    transform: scale(1.1);
}

/* ✅ Цвета для разных стилей */
.filter-option:nth-child(1) svg { color: #F59E0B; } /* Auto - Золотой */
.filter-option:nth-child(2) svg { color: #10B981; } /* Fun - Зелёный */
.filter-option:nth-child(3) svg { color: #3B82F6; } /* Sad - Синий */
.filter-option:nth-child(4) svg { color: #6366F1; } /* Formal - Индиго */
.filter-option:nth-child(5) svg { color: #EC4899; } /* Informal - Розовый */
.filter-option:nth-child(6) svg { color: #8B5CF6; } /* Professional - Фиолетовый */

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-consent {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--primary-mint);
}

.cookie-consent.show {
    bottom: 20px;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: cookieBounce 2s ease-in-out infinite;
}

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

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.cookie-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, #10B981, #06B6D4);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.cookie-btn.decline {
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.cookie-btn.decline:hover {
    border-color: #EF4444;
    color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}

/* Dark mode */
[data-theme="dark"] .cookie-consent {
    background: #1E293B;
    border-color: #334155;
}

[data-theme="dark"] .cookie-text h3 {
    color: #F1F5F9;
}

[data-theme="dark"] .cookie-text p {
    color: #94A3B8;
}

[data-theme="dark"] .cookie-btn.decline {
    background: #0F172A;
    border-color: #334155;
    color: #94A3B8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-icon {
        font-size: 40px;
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
}