/* Neuronica Landing Page - Modern Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #0a0a0f;
    --bg-elevated: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #f8f9fc;
    --text-secondary: #8b8fa3;
    --text-muted: #5c6070;
    --primary: #00f5d4;
    --primary-dim: rgba(0, 245, 212, 0.15);
    --secondary: #7b61ff;
    --secondary-dim: rgba(123, 97, 255, 0.15);
    --accent: #ff6b9d;
    --success: #10b981;
    --warning: #f59e0b;
    --vk: #0077ff;
    --tg: #26a5e4;
    --yt: #ff0000;
    --ig: #e4405f;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.gradient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0, 245, 212, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(16, 185, 129, 0.1), transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 90%, rgba(0, 212, 170, 0.08), transparent 50%);
    animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition);
}

.nav a:hover {
    color: var(--text);
}

.nav a:hover::after {
    width: 100%;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-right: 8px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(16, 185, 129, 0.1));
    color: var(--primary);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-code {
    letter-spacing: 0.5px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: var(--bg);
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 245, 212, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--surface);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* Hero Section - Compact */
.hero-compact {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    padding: 100px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: fit-content;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title-compact {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #00f5d4, #00d4aa, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
}

/* Hero Highlights - Catchy phrases */
.hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(0, 245, 212, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(4px);
    border-color: rgba(0, 245, 212, 0.3);
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.12), rgba(16, 185, 129, 0.08));
}

.highlight-icon {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.highlight-text {
    font-size: 0.9rem;
    color: var(--text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.highlight-text b {
    color: var(--primary);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-mini-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.mini-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.mini-stat strong {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
}

.mini-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Hero Right - Workflow Pipeline */
.hero-right {
    display: flex;
    flex-direction: column;
}

.workflow-pipeline {
    background: linear-gradient(145deg, rgba(20, 25, 35, 0.95), rgba(15, 20, 28, 0.98));
    border: 1px solid rgba(0, 245, 212, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 245, 212, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(0, 245, 212, 0.08), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pipeline-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pipeline-title::before {
    content: '⚡';
    font-size: 1rem;
}

.pipeline-step-counter {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 245, 212, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.pipeline-step-counter span {
    color: var(--primary);
    font-weight: 700;
}

.pipeline-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.2);
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pipeline-steps::-webkit-scrollbar {
    display: none;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 56px;
    flex-shrink: 0;
    background: rgba(30, 35, 45, 0.6);
    border: 1px solid transparent;
}

.pipeline-step:hover {
    transform: translateY(-2px);
}

.pipeline-step:hover .step-num {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
}

.pipeline-step.active {
    background: linear-gradient(180deg, rgba(0, 245, 212, 0.2), rgba(0, 245, 212, 0.05));
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.15);
}

.pipeline-step.active .step-num {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: var(--bg);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
    transform: scale(1.15);
}

.pipeline-step.done .step-num {
    background: var(--success);
    color: white;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.step-num {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pipeline-step span {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
    transition: all var(--transition);
}

.pipeline-step.active span {
    color: var(--primary);
    font-weight: 700;
}

.pipeline-step.done span {
    color: var(--success);
}

.pipeline-connector {
    display: none;
}

.pipeline-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    margin: 0 20px;
    border-radius: 2px;
}

.pipeline-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

.pipeline-content {
    padding: 20px;
    min-height: 250px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.1));
}

.pipeline-slide {
    display: none;
    animation: slideIn 0.3s ease;
}

.pipeline-slide.active {
    display: block;
}

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

.slide-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.slide-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(0, 245, 212, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.slide-info strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text);
}

.slide-info small {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.slide-demo {
    background: linear-gradient(145deg, rgba(30, 35, 45, 0.9), rgba(20, 25, 32, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* CRM Demo V2 - with stages */
.crm-demo-v2 {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.crm-stages {
    display: flex;
    gap: 8px;
}

.crm-stage {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.crm-stage.done {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.crm-stage.active {
    border-color: rgba(0, 245, 212, 0.4);
    background: rgba(0, 245, 212, 0.1);
}

.stage-icon {
    font-size: 1.2rem;
}

.stage-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.stage-name {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.crm-stage.done .stage-name {
    color: var(--success);
}

.crm-stage.active .stage-name {
    color: var(--primary);
}

.stage-check {
    font-size: 0.7rem;
    color: var(--success);
}

.stage-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-dim);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.crm-client-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid var(--primary);
    border-radius: 10px;
}

.ccm-avatar {
    font-size: 1.8rem;
}

.ccm-info {
    flex: 1;
}

.ccm-info b {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.ccm-socials {
    display: flex;
    gap: 4px;
}

.ccm-s {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    color: white;
}

.ccm-s.vk { background: var(--vk); }
.ccm-s.tg { background: var(--tg); }
.ccm-s.yt { background: var(--yt); }

.ccm-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Brief Chatbot V2 - Interactive */
.brief-demo-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-window {
    background: rgba(20, 25, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    min-height: 160px;
}

.cb-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cb-msg.user {
    flex-direction: row-reverse;
}

.cb-avatar {
    font-size: 1.3rem;
}

.cb-bubble {
    padding: 10px 14px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 12px;
    border-top-left-radius: 4px;
    font-size: 0.8rem;
    max-width: 240px;
}

.cb-msg.user .cb-bubble {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg);
    border-top-left-radius: 12px;
    border-top-right-radius: 4px;
}

.cb-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 36px;
}

.cb-btn {
    padding: 8px 14px;
    background: rgba(30, 35, 45, 0.9);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cb-btn:hover {
    background: rgba(0, 245, 212, 0.15);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.brief-progress-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bpv-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bpv-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.bpv-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Brief Info Block */
.brief-info-block {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05), rgba(16, 185, 129, 0.03));
    border: 1px solid rgba(0, 245, 212, 0.15);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
}

.brief-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.brief-example-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.brief-example-link:hover {
    background: rgba(0, 245, 212, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 245, 212, 0.2);
}

.brief-example-link .link-icon {
    font-size: 0.9rem;
}

.brief-example-link .link-arrow {
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.brief-example-link:hover .link-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Plan Generator V2 - Interactive */
.plan-demo-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-generator {
    background: rgba(20, 25, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.pg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0, 245, 212, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pg-ai {
    font-size: 0.8rem;
    color: var(--primary);
}

.pg-loader {
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-dim);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pg-items {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pg-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(30, 35, 45, 0.6);
    border-radius: 8px;
    opacity: 0.4;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.pg-item.generated {
    opacity: 1;
    transform: translateX(0);
}

.pg-item.generating {
    opacity: 0.8;
    border: 1px solid var(--primary);
    animation: itemPulse 1.5s ease-in-out infinite;
}

@keyframes itemPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.2); }
    50% { box-shadow: 0 0 0 4px rgba(0, 245, 212, 0); }
}

.pgi-icon {
    font-size: 1.2rem;
}

.pgi-text {
    flex: 1;
}

.pgi-text b {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.pgi-text small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.typing-effect b::after {
    content: '|';
    animation: blink 0.8s infinite;
}

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

.pgi-check {
    color: var(--success);
    font-size: 0.8rem;
}

.plan-stats-v2 {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.psv-item {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.psv-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    margin-bottom: 2px;
}

/* Posts Demo V2 - with tabs */
.posts-demo-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-tabs {
    display: flex;
    gap: 8px;
}

.social-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-tab input {
    display: none;
}

.social-tab:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.social-tab.active {
    border-color: var(--primary);
    background: rgba(0, 245, 212, 0.1);
}

.st-icon {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
}

.st-icon.vk { background: var(--vk); }
.st-icon.tg { background: var(--tg); }
.st-icon.yt { background: var(--yt); }
.st-icon.ig { background: #e1306c; }

.st-check {
    font-size: 0.7rem;
    color: var(--success);
}

.post-previews {
    position: relative;
    min-height: 160px;
}

.post-preview {
    display: none;
    background: rgba(30, 35, 45, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    animation: fadeIn 0.3s ease;
}

.post-preview.active {
    display: block;
}

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

.pp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pp-logo {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.pp-logo.vk { background: var(--vk); }
.pp-logo.tg { background: var(--tg); }
.pp-logo.yt { background: var(--yt); }
.pp-logo.ig { background: #e1306c; }

.pp-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.pp-content {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.pp-content p {
    margin: 0 0 4px;
}

.pp-image {
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.pp-image.square {
    height: 100px;
}

.pp-video {
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 8px;
}

.pp-play {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #ff0000;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.pp-dur {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    font-size: 0.65rem;
}

.pp-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.pp-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.pp-btn {
    padding: 6px 12px;
    background: var(--tg);
    border-radius: 6px;
    font-size: 0.7rem;
    color: white;
}

.pp-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* CRM Demo Mini - keep for compatibility */
.crm-demo-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crm-kanban-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.km-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.km-head {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 2px solid;
    color: var(--text-muted);
}

.km-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
}

.km-card span {
    font-size: 1rem;
}

.km-card b {
    display: block;
    font-size: 0.7rem;
}

.km-card small {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.km-card.new-pulse {
    border-color: #4c6ef5;
    animation: cardPulse 2s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 110, 245, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(76, 110, 245, 0); }
}

.km-card.done-card {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.crm-client-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
}

.client-avatar {
    font-size: 1.5rem;
}

.client-details b {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.client-socials {
    display: flex;
    gap: 4px;
}

.cs {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    color: white;
}

.cs.vk { background: var(--vk); }
.cs.tg { background: var(--tg); }
.cs.yt { background: var(--yt); }

.cs-add {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Brief Demo */
.brief-demo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-window {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 160px;
    overflow: hidden;
}

.chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.chat-msg.user {
    flex-direction: row-reverse;
}

.bot-avatar {
    font-size: 1.2rem;
}

.msg-bubble {
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    max-width: 200px;
}

.chat-msg.user .msg-bubble {
    background: var(--primary-dim);
    color: var(--primary);
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-dots {
    display: flex;
    gap: 3px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.typing-dots span {
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

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

@keyframes typingDot {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

.brief-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.bp-bar {
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Plan Demo */
.plan-demo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.plan-item.generating {
    border: 1px solid var(--warning);
}

.pi-type {
    font-size: 1.2rem;
}

.pi-info {
    flex: 1;
}

.pi-info b {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.pi-info small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.pi-status {
    font-size: 0.8rem;
}

.pi-status.ready {
    color: var(--success);
}

.pi-status.gen {
    color: var(--warning);
    animation: spin 1s linear infinite;
}

.plan-summary {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.plan-summary b {
    color: var(--primary);
}

/* Video Demo */
.video-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.vs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    position: relative;
    transition: all 0.2s ease;
}

.vs-item span {
    font-size: 1rem;
}

.vs-item i {
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 0.6rem;
    font-style: normal;
    color: var(--success);
}

.vs-item i.spinner {
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary-dim);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.vs-item.done {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
}

.vs-item.active {
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.vs-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.video-preview {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vp-player {
    flex: 1;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(20, 25, 35, 0.6));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--border);
}

.vp-progress {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
}

.vp-fill {
    width: 35%;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.vp-play {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--bg);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
}

.vp-time {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 0.55rem;
    color: var(--text-muted);
}

.vp-models {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vm {
    padding: 6px 10px;
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.vm:hover {
    border-color: rgba(0, 245, 212, 0.3);
}

.vm.active {
    border-color: var(--primary);
    background: rgba(0, 245, 212, 0.15);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

/* Posts Demo */
.posts-demo .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.post-card {
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
    border-top: 3px solid;
    transition: all 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
}

.post-card.vk { border-color: var(--vk); }
.post-card.tg { border-color: var(--tg); }
.post-card.ig { border-color: #e1306c; }

.pc-head {
    margin-bottom: 6px;
}

.pc-head span {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    color: white;
}

.post-card.vk .pc-head span { background: var(--vk); }
.post-card.tg .pc-head span { background: var(--tg); }
.post-card.ig .pc-head span { background: #e1306c; }

.pc-text {
    margin-bottom: 6px;
}

.pc-line {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 3px;
}

.pc-line.short {
    width: 60%;
}

.pc-img {
    height: 35px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.pc-img.square {
    height: 50px;
}

.pc-btn {
    font-size: 0.55rem;
    background: var(--tg);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 6px;
}

.pc-stats {
    font-size: 0.55rem;
    color: var(--text-muted);
}

/* SEO Demo */
.seo-demo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seo-keywords-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skm {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
}

.skm b {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
}

.seo-article-mini {
    background: var(--bg-card);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.sam-title {
    height: 10px;
    width: 70%;
    background: var(--text-secondary);
    border-radius: 2px;
    margin-bottom: 8px;
}

.sam-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.sam-lines div {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.sam-lines div:nth-child(1) { width: 100%; }
.sam-lines div:nth-child(2) { width: 90%; }
.sam-lines div:nth-child(3) { width: 80%; }

.sam-img {
    height: 30px;
    background: linear-gradient(135deg, var(--primary-dim), rgba(16, 185, 129, 0.15));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.seo-stats-mini {
    display: flex;
    gap: 12px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.wp-badge {
    background: #21759b;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

/* Approval Demo */
.approval-demo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.approval-calendar {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.ac-header {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ac-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ac-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    border-left: 3px solid var(--border);
}

.ac-item span {
    font-size: 0.9rem;
}

.ac-item b {
    display: block;
    font-size: 0.7rem;
}

.ac-item small {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.ac-item.approved {
    border-color: var(--success);
}

.ac-item.approved small {
    color: var(--success);
}

.ac-item.pending {
    border-color: var(--warning);
}

.ac-item.rejected {
    border-color: #ef4444;
}

.ac-item.rejected small {
    color: #ef4444;
}

.approval-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.approval-link code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    color: var(--primary);
}

/* Autopost Demo */
.autopost-demo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ap-calendar {
    display: flex;
    gap: 8px;
}

.ap-day {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
}

.ap-day.active {
    border: 1px solid var(--primary);
}

.ap-date {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.ap-posts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ap-post {
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.55rem;
    font-weight: 600;
    color: white;
}

.ap-post.vk { background: var(--vk); }
.ap-post.tg { background: var(--tg); }
.ap-post.yt { background: var(--yt); }
.ap-post.publishing {
    background: var(--primary);
    animation: pulse 1s ease-in-out infinite;
}

.ap-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Telegram Demo */
.tg-demo .tg-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tg-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tg-bot {
    font-size: 1.2rem;
}

.tg-bubble {
    background: var(--bg-card);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    max-width: 250px;
}

.tg-bubble b {
    display: block;
    font-size: 0.7rem;
    color: var(--tg);
    margin-bottom: 4px;
}

.tg-bubble p {
    font-size: 0.75rem;
    margin: 0;
}

.tg-bubble small {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.tg-bubble.typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
}

.tg-bubble.typing span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.tg-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.tg-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

/* Video Generator Demo */
.video-gen-demo {
    padding: 14px;
}

.vg-step {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-muted);
    position: relative;
    min-width: 70px;
}

.vg-step.active {
    background: var(--primary-dim);
    color: var(--primary);
}

.vg-icon {
    font-size: 1.3rem;
}

.vg-check {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 0.6rem;
    display: grid;
    place-items: center;
}

.vg-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-dim);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: -4px;
    right: -4px;
}

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

.vg-arrow {
    display: inline-block;
    color: var(--text-muted);
    margin: 0 8px;
    font-size: 1rem;
}

.vg-preview {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.vg-player {
    flex: 1;
    height: 80px;
    background: linear-gradient(135deg, var(--surface), var(--bg-elevated));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--border);
}

.vg-player span {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--bg);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
}

.player-bar {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.player-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 35%;
    background: var(--primary);
    border-radius: 2px;
}

.vg-models {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.model {
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.model.active {
    border-color: var(--primary);
    background: var(--primary-dim);
    color: var(--primary);
}

/* SEO Generator Demo */
.seo-gen-demo {
    padding: 14px;
}

.seo-keywords {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.kw-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.kw-item strong {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
}

.seo-article {
    background: var(--surface);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.article-line {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-bottom: 6px;
}

.article-line.w100 { width: 100%; }
.article-line.w90 { width: 90%; }
.article-line.w80 { width: 80%; }
.article-line.w70 { width: 70%; }

.article-img {
    height: 40px;
    background: linear-gradient(135deg, var(--primary-dim), rgba(16, 185, 129, 0.15));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--primary);
    margin: 8px 0;
}

.seo-meta {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.seo-meta .wp {
    background: #21759b;
    color: white;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
}

/* Posts Generator Demo */
.posts-gen-demo {
    padding: 14px;
}

.post-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.pp-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
}

.pp-item.vk { border-top: 3px solid var(--vk); }
.pp-item.tg { border-top: 3px solid var(--tg); }
.pp-item.yt { border-top: 3px solid var(--yt); }

.pp-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    line-height: 24px;
    margin-bottom: 8px;
}

.pp-item.vk .pp-icon { background: var(--vk); }
.pp-item.tg .pp-icon { background: var(--tg); }
.pp-item.yt .pp-icon { background: var(--yt); }

.pp-preview {
    height: 50px;
    margin-bottom: 6px;
}

.pp-line {
    height: 5px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 4px;
}

.pp-line.short {
    width: 60%;
}

.pp-btn {
    font-size: 0.6rem;
    background: var(--tg);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 4px;
}

.pp-preview.video {
    background: linear-gradient(135deg, var(--surface), var(--bg-card));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-preview.video span {
    width: 20px;
    height: 20px;
    background: var(--yt);
    color: white;
    border-radius: 50%;
    font-size: 0.5rem;
    display: grid;
    place-items: center;
}

.pp-item small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.ai-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: var(--primary-dim);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--primary);
}

/* Content Plan Demo */
.plan-gen-demo {
    padding: 14px;
}

.plan-calendar {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.cal-header {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.cal-day {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    padding: 4px;
}

.cal-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: 4px;
    position: relative;
}

.cal-cell.has-post {
    background: var(--bg-elevated);
    color: var(--text);
}

.cal-cell.has-post span {
    font-weight: 600;
}

.cal-cell.active {
    border: 2px solid var(--primary);
}

.cal-cell i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    bottom: 3px;
}

.cal-cell i:nth-child(2) { left: calc(50% - 3px); }
.cal-cell i:nth-child(3) { left: calc(50% + 2px); }

.cal-cell i.vk { background: var(--vk); }
.cal-cell i.tg { background: var(--tg); }
.cal-cell i.yt { background: var(--yt); }

.plan-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.ps-item {
    text-align: center;
}

.ps-item strong {
    display: block;
    font-size: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
}

.ps-item span {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ========================================
   NEW PIPELINE SLIDE STYLES V3
   ======================================== */

/* CRM Demo V3 - Kanban with clickable cards */
.crm-demo-v3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crm-kanban-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.kanban-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kanban-col-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.col-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.col-dot.new { background: #4c6ef5; }
.col-dot.progress { background: #f59e0b; }
.col-dot.done { background: var(--success); }

.client-card-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: rgba(30, 35, 45, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.client-card-mini:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 245, 212, 0.15);
}

.client-card-mini.active {
    border-color: #f59e0b;
    animation: cardGlow 2s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 12px 2px rgba(245, 158, 11, 0.2); }
}

.client-card-mini.done {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.client-card-mini .ccm-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
}

.client-card-mini .ccm-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-card-mini .ccm-badges {
    display: flex;
    gap: 3px;
}

.badge-vk, .badge-tg, .badge-yt, .badge-ig {
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.5rem;
    font-weight: 700;
    color: white;
}

.badge-vk { background: var(--vk); }
.badge-tg { background: var(--tg); }
.badge-yt { background: var(--yt); }
.badge-ig { background: #e1306c; }

.gen-indicator {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.gen-indicator span {
    width: 4px;
    height: 4px;
    background: #f59e0b;
    border-radius: 50%;
    animation: genDot 1.4s ease-in-out infinite;
}

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

@keyframes genDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.done-check {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: white;
}

.crm-hint {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding-top: 4px;
}

/* Client Popup */
.client-popup-overlay,
.post-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.client-popup-overlay.active,
.post-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.client-popup,
.post-popup {
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(145deg, rgba(25, 30, 40, 0.98), rgba(15, 20, 28, 0.99));
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 20px;
    padding: 24px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 245, 212, 0.1);
}

.client-popup-overlay.active .client-popup,
.post-popup-overlay.active .post-popup {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.client-popup {
    position: relative;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.popup-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.popup-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.popup-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.popup-status {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.popup-status.new {
    background: rgba(76, 110, 245, 0.2);
    color: #4c6ef5;
}

.popup-status.progress {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.popup-status.done {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.popup-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

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

.popup-ch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 0.85rem;
}

.popup-ch.connected {
    border-color: rgba(16, 185, 129, 0.3);
}

.ch-icon {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.ch-icon.vk { background: var(--vk); }
.ch-icon.tg { background: var(--tg); }
.ch-icon.yt { background: var(--yt); }
.ch-icon.ig { background: #e1306c; }

.ch-ok {
    margin-left: auto;
    color: var(--success);
}

.ch-add {
    margin-left: auto;
    width: 24px;
    height: 24px;
    border: 1px dashed var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.popup-brief {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.brief-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: rgba(30, 35, 45, 0.6);
    border-radius: 8px;
}

.brief-row span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.brief-row b {
    font-size: 0.8rem;
    font-weight: 600;
}

.popup-plans {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(30, 35, 45, 0.8);
    border-radius: 10px;
}

.plan-ic {
    font-size: 1.3rem;
}

.popup-plan > div {
    flex: 1;
}

.popup-plan b {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.popup-plan small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.plan-progress {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.plan-progress div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.plan-progress.done div {
    background: var(--success);
}

.popup-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.popup-stats .ps-item {
    text-align: center;
}

.popup-stats .ps-val {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
}

.popup-stats .ps-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Video Demo V3 - Detailed Pipeline */
.video-demo-v3 {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vgen-pipeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.vgen-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.vgen-step.done {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.vgen-step.active {
    background: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.4);
}

.vgen-num {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.vgen-step.done .vgen-num {
    background: var(--success);
    color: white;
}

.vgen-step.active .vgen-num {
    background: var(--primary);
    color: var(--bg);
}

.vgen-content {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.vgen-icon {
    font-size: 0.9rem;
}

.vgen-info {
    flex: 1;
    min-width: 0;
}

.vgen-info b {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vgen-info small {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.vgen-step.done .vgen-info b { color: var(--success); }
.vgen-step.active .vgen-info b { color: var(--primary); }

.vgen-check {
    font-size: 0.7rem;
    color: var(--success);
}

.vgen-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-dim);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.vgen-preview {
    background: rgba(20, 25, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
}

.vgen-segments {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.seg {
    width: 50px;
    height: 36px;
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.seg span {
    font-weight: 700;
}

.seg.done {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: var(--success);
}

.seg.active {
    background: rgba(0, 245, 212, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.seg.active i {
    width: 8px;
    height: 8px;
    border: 2px solid var(--primary-dim);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.vgen-model {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.vm-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.vm-active {
    padding: 4px 10px;
    background: rgba(0, 245, 212, 0.15);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
}

.vm-alt {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.vgen-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vgp-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.vgp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px;
}

.vgp-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Articles Demo V3 - SEO Pipeline */
.articles-demo-v3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.art-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.art-stage.done {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.art-stage.active {
    background: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.4);
}

.art-icon {
    font-size: 1.2rem;
}

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

.art-title {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text);
}

.art-desc {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.art-stage.done .art-title { color: var(--success); }
.art-stage.active .art-title { color: var(--primary); }

.art-check {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
    font-size: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-spinner {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-dim);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.article-preview {
    background: rgba(20, 25, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.ap-header {
    padding: 10px 12px;
    background: rgba(0, 245, 212, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ap-title {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.ap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ap-tag {
    padding: 2px 6px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 4px;
    font-size: 0.55rem;
    color: var(--primary);
}

.ap-content {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.ap-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ap-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.ap-line.short {
    width: 70%;
}

.ap-image {
    width: 80px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.ap-img-icon {
    font-size: 1rem;
}

.ap-img-text {
    font-size: 0.5rem;
    color: var(--primary);
}

.ap-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.ap-meta {
    display: flex;
    gap: 10px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.ap-wp {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wp-icon {
    width: 20px;
    height: 20px;
    background: #21759b;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.wp-status {
    font-size: 0.65rem;
    color: var(--primary);
}

/* Autopost Calendar V3 */
.autopost-demo-v3 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-mini {
    background: rgba(20, 25, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.cal-mini-header {
    padding: 10px 12px;
    background: rgba(0, 245, 212, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.cal-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 8px;
}

.cal-mini-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.cal-mini-day.header {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-secondary);
    aspect-ratio: auto;
    padding: 4px 0;
}

.cal-mini-day.has-post {
    background: rgba(30, 35, 45, 0.8);
    color: var(--text);
    cursor: pointer;
}

.cal-mini-day.has-post:hover {
    background: rgba(0, 245, 212, 0.15);
    border-color: var(--primary);
    transform: scale(1.05);
}

.cal-mini-day.today {
    background: rgba(0, 245, 212, 0.2);
    color: var(--primary);
    font-weight: 700;
}

.cal-mini-day.scheduled {
    opacity: 0.6;
}

.day-posts {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.dp {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dp.vk { background: var(--vk); }
.dp.tg { background: var(--tg); }
.dp.yt { background: var(--yt); }
.dp.ig { background: #e1306c; }

.cal-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.cal-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.leg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.leg-dot.vk { background: var(--vk); }
.leg-dot.tg { background: var(--tg); }
.leg-dot.yt { background: var(--yt); }
.leg-dot.ig { background: #e1306c; }

.cal-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Post Popup */
.post-popup {
    position: relative;
    max-width: 360px;
}

.post-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pph-icon {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.pph-icon.vk { background: var(--vk); }
.pph-icon.tg { background: var(--tg); }
.pph-icon.yt { background: var(--yt); }
.pph-icon.ig { background: #e1306c; }

.pph-info {
    flex: 1;
}

.pph-info b {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.pph-info span {
    font-size: 0.75rem;
    color: var(--success);
}

.post-popup-content {
    margin-bottom: 16px;
}

.ppc-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.ppc-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.ppc-text p {
    margin: 0 0 8px;
}

.ppc-hashtags {
    color: var(--primary);
    font-size: 0.8rem;
}

.post-popup-stats {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Mobile Hero */
@media (max-width: 1024px) {
    .hero-compact {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 90px 20px 40px;
        min-height: auto;
    }
    
    .hero-left {
        order: 1;
        text-align: center;
        align-items: center;
    }
    
    .hero-right {
        order: 2;
    }
    
    .hero-desc {
        max-width: 100%;
    }
    
    .hero-mini-stats {
        justify-content: center;
    }
    
    .hero-highlights {
        margin: 12px 0;
    }
    
    .highlight-item {
        padding: 8px 12px;
        width: 100%;
    }
    
    .highlight-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .highlight-text {
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
    }
    
    .pipeline-steps {
        padding: 14px 10px;
        gap: 2px;
        justify-content: flex-start;
    }
    
    .pipeline-steps::before {
        display: none;
    }
    
    .pipeline-step {
        min-width: 48px;
        padding: 8px 6px;
    }
    
    .pipeline-step span {
        font-size: 0.55rem;
    }
    
    .step-num {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .pipeline-content {
        padding: 14px;
        min-height: 240px;
    }
    
    .slide-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .crm-kanban-mini {
        grid-template-columns: 1fr;
    }
    
    .video-steps {
        gap: 2px;
    }
    
    .posts-demo .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .ap-calendar {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .hero-compact {
        padding: 80px 16px 32px;
    }
    
    .hero-title-compact {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-mini-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .mini-stat {
        flex: 0 0 auto;
    }
    
    .feature-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mini-kanban {
        grid-template-columns: 1fr;
    }
    
    .post-platforms {
        grid-template-columns: 1fr;
    }
    
    .cal-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    /* Fix width consistency */
    .section {
        padding: 50px 16px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-desc {
        font-size: 0.9rem;
    }
    
    /* Pipeline horizontal scroll */
    .pipeline-steps {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 8px;
        margin: 0 -8px;
    }
    
    .pipeline-step {
        min-width: 44px;
        padding: 6px 4px;
    }
    
    .pipeline-step span {
        font-size: 0.5rem;
        white-space: nowrap;
    }
    
    .step-num {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }
    
    /* Workflow pipeline */
    .workflow-pipeline {
        border-radius: 16px;
    }
    
    .pipeline-content {
        padding: 12px;
        min-height: 200px;
    }
    
    /* Hero highlights */
    .hero-highlights {
        gap: 8px;
        width: 100%;
    }
    
    .highlight-item {
        padding: 8px 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .highlight-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .highlight-text {
        font-size: 0.78rem;
    }
    
    /* Ensure no overflow */
    .hero-left,
    .hero-right {
        max-width: 100%;
        overflow: hidden;
    }
}

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-dim);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(0, 245, 212, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.gradient-bg-icon {
    background: linear-gradient(135deg, var(--primary-dim), var(--secondary-dim));
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.feature-demo {
    margin-top: 20px;
}

.mini-kanban {
    display: flex;
    gap: 8px;
}

.mini-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-card {
    height: 24px;
    background: var(--surface);
    border-radius: 4px;
}

.mini-card.active {
    background: var(--primary-dim);
    border: 1px solid var(--primary);
}

.mini-card.done {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--success);
}

/* CRM Section */
.crm-section {
    padding: 100px 24px;
    max-width: 100%;
}

.crm-demo {
    display: grid;
    grid-template-columns: 60px 1fr 320px;
    gap: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.crm-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crm-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all var(--transition);
}

.crm-nav-item svg {
    width: 20px;
    height: 20px;
}

.crm-nav-item.active {
    background: var(--primary-dim);
    color: var(--primary);
}

.crm-nav-item:hover {
    background: var(--surface);
    color: var(--text);
}

.crm-main {
    padding: 20px;
    overflow-x: auto;
}

.crm-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 16px;
    min-width: 700px;
}

.board-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.board-column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.new { background: var(--vk); }
.status-dot.progress { background: var(--warning); }
.status-dot.generating { background: var(--secondary); }
.status-dot.done { background: var(--success); }

.board-column-header .count {
    margin-left: auto;
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.board-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.board-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: pointer;
    transition: all var(--transition);
}

.board-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.board-card.highlighted {
    border-color: var(--warning);
    animation: highlightPulse 2s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 20px 5px rgba(245, 158, 11, 0.15); }
}

.board-card.generating {
    border-color: var(--secondary);
}

.board-card.done {
    border-color: var(--success);
}

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

.card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.card-title {
    display: flex;
    flex-direction: column;
}

.card-title span {
    font-size: 0.9rem;
    font-weight: 600;
}

.card-title small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-socials {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.social-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
}

.social-badge.vk { background: var(--vk); }
.social-badge.tg { background: var(--tg); }
.social-badge.yt { background: var(--yt); }
.social-badge.ig { background: var(--ig); }

.card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
}

.card-status.pending { background: var(--primary-dim); color: var(--primary); }
.card-status.filling { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.card-status.success { background: rgba(16, 185, 129, 0.15); color: var(--success); }

.typing-indicator {
    display: flex;
    gap: 3px;
}

.typing-indicator span {
    width: 5px;
    height: 5px;
    background: var(--warning);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

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

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

.generation-progress {
    margin-top: 8px;
}

.progress-bar {
    height: 4px;
    background: var(--surface);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.generation-progress span {
    font-size: 0.75rem;
    color: var(--secondary);
}

/* CRM Panel */
.crm-panel {
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 20px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.panel-badge {
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

.profile-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.profile-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.panel-section {
    margin-bottom: 24px;
}

.panel-section h5 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

.channel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.channel.connected {
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.channel-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
}

.channel-icon.vk { background: var(--vk); }
.channel-icon.tg { background: var(--tg); }
.channel-icon.yt { background: var(--yt); }
.channel-icon.ig { background: var(--ig); }

.channel-status {
    margin-left: auto;
    color: var(--success);
}

.connect-btn {
    margin-left: auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px dashed var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.connect-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.plan-icon {
    font-size: 1.5rem;
}

.plan-info span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.plan-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Video Section */
.video-section {
    background: linear-gradient(180deg, transparent, var(--bg-elevated), transparent);
}

.video-demo {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.video-workflow {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding: 20px 0;
}

.workflow-step {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-number {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.workflow-step.active .step-number {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.step-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.step-visual {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.step-visual.script {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.script-line {
    display: flex;
    gap: 12px;
    padding: 4px 0;
    color: var(--text-secondary);
}

.line-num {
    color: var(--text-muted);
}

.script-line.typing {
    color: var(--primary);
}

.cursor {
    animation: blink 1s step-end infinite;
}

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

.step-visual.segments {
    display: flex;
    gap: 8px;
}

.segment {
    flex: 1;
    text-align: center;
}

.segment-preview {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--surface), var(--bg-card));
    border-radius: 6px;
    margin-bottom: 6px;
}

.segment-preview.generating {
    background: linear-gradient(135deg, var(--secondary-dim), var(--primary-dim));
    animation: generating 1.5s ease-in-out infinite;
}

@keyframes generating {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.segment span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.step-visual.ai-models {
    display: flex;
    gap: 10px;
}

.model-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.model-badge.active {
    border-color: var(--primary);
    background: var(--primary-dim);
    color: var(--primary);
}

.model-logo {
    font-size: 1.2rem;
}

.step-visual.final {
    text-align: center;
}

.video-preview {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--surface), var(--bg-card));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: var(--bg);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

.video-timeline {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    height: 4px;
}

.timeline-segment {
    flex: 1;
    border-radius: 2px;
}

.timeline-segment.s1 { background: var(--primary); }
.timeline-segment.s2 { background: var(--success); }
.timeline-segment.s3 { background: #00d4aa; }

.workflow-connector {
    display: flex;
    align-items: center;
    padding-top: 48px;
    color: var(--text-muted);
}

.workflow-connector svg {
    width: 24px;
    height: 24px;
}

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

.video-feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

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

.feature-text h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Video Section V2 - Interactive Demo */
.video-section-v2 {
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.03), transparent);
    padding: 80px 0;
}

.video-demo-interactive {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 520px;
}

/* Steps Panel */
.vdi-steps {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
    border-right: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

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

.vdi-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--primary-dim);
    padding: 4px 10px;
    border-radius: 20px;
}

.vdi-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vdi-step-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.vdi-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.vdi-step:hover {
    background: rgba(255, 255, 255, 0.03);
}

.vdi-step.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
}

.vdi-step.done {
    opacity: 0.7;
}

.vdi-step.done .vdi-step-num {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.vdi-step.done .vdi-step-num::after {
    content: '✓';
    position: absolute;
    font-size: 0.7rem;
}

.vdi-step-num {
    position: relative;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vdi-step.active .vdi-step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.vdi-step-info {
    flex: 1;
    min-width: 0;
}

.vdi-step-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.vdi-step-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.vdi-step-icon {
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.vdi-step.active .vdi-step-icon {
    opacity: 1;
}

.vdi-progress {
    height: 4px;
    background: var(--surface);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.vdi-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Content Panel */
.vdi-content {
    padding: 28px;
    position: relative;
}

.vdi-panel {
    display: none;
    animation: fadeInPanel 0.3s ease;
}

.vdi-panel.active {
    display: block;
}

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

.vdi-panel-header {
    margin-bottom: 24px;
}

.vdi-panel-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.vdi-panel-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Step 1: Prompt */
.vdi-prompt-demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prompt-textarea-wrapper {
    position: relative;
}

.prompt-textarea {
    width: 100%;
    min-height: 140px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: none;
    transition: border-color 0.2s;
}

.prompt-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.prompt-textarea::placeholder {
    color: var(--text-muted);
}

.prompt-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.prompt-hint {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-hint:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.vdi-next-btn, .vdi-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.vdi-next-btn {
    background: var(--success);
    color: white;
}

.vdi-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.vdi-next-btn.generate {
    background: var(--success);
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
}

.vdi-back-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.vdi-back-btn:hover {
    background: var(--bg-elevated);
}

.vdi-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

/* Step 2: Styles Grid */
.vdi-styles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.vdi-style-card {
    padding: 12px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.vdi-style-card:hover {
    border-color: var(--primary-dim);
    transform: translateY(-2px);
}

.vdi-style-card.active {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.style-preview {
    aspect-ratio: 16/9;
    border-radius: 6px;
    margin-bottom: 8px;
}

.style-preview.cinematic { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.style-preview.minimalist { background: linear-gradient(135deg, #f5f5f5, #e0e0e0); }
.style-preview.dynamic { background: linear-gradient(135deg, #ff4e50, #f9d423); }
.style-preview.emotional { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.style-preview.luxury { background: linear-gradient(135deg, #232526, #414345, #d4af37); }
.style-preview.vintage { background: linear-gradient(135deg, #c9b18b, #a67c52); }

.vdi-style-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

/* Step 3: Models */
.vdi-models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.vdi-model-card {
    padding: 20px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.vdi-model-card:hover {
    border-color: var(--primary-dim);
}

.vdi-model-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
}

.model-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.model-logo {
    font-size: 1.1rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: white;
}

.model-logo.veo {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

.model-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: var(--surface);
    border-radius: 4px;
    color: var(--text-muted);
}

.model-badge.google {
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.model-specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.spec-row span { color: var(--text-muted); }
.spec-row b { color: var(--text); }

.model-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.model-features span {
    font-size: 0.75rem;
    color: var(--success);
}

/* Step 4: Generation Animation */
.vdi-generation-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.gen-preview-area {
    width: 100%;
    display: flex;
    justify-content: center;
}

.gen-canvas {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gen-particles {
    position: absolute;
    inset: 0;
}

.gen-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: orbit 3s linear infinite;
}

.gen-particles span:nth-child(1) { animation-delay: 0s; }
.gen-particles span:nth-child(2) { animation-delay: 0.5s; }
.gen-particles span:nth-child(3) { animation-delay: 1s; }
.gen-particles span:nth-child(4) { animation-delay: 1.5s; background: var(--secondary); }
.gen-particles span:nth-child(5) { animation-delay: 2s; background: var(--secondary); }
.gen-particles span:nth-child(6) { animation-delay: 2.5s; background: #7c3aed; }

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); opacity: 0; }
}

.gen-progress-circle {
    position: relative;
    width: 140px;
    height: 140px;
}

.gen-progress-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.gen-progress-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.gen-progress-circle circle.bg {
    stroke: var(--surface);
}

.gen-progress-circle circle.progress {
    stroke: url(#genGradient);
    stroke: var(--primary);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.5s ease;
}

.gen-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.gen-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 300px;
}

.gen-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.gen-status-item.done {
    color: var(--success);
}

.gen-status-item.active {
    background: var(--primary-dim);
    color: var(--primary);
}

.status-icon {
    width: 20px;
    text-align: center;
}

.mini-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gen-model-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gmi-value {
    font-weight: 600;
    color: var(--primary);
}

.gmi-sep {
    opacity: 0.3;
}

/* Step 5: Result */
.vdi-result-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-video-container {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
}

.result-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.video-overlay.playing {
    background: transparent;
    pointer-events: none;
}

.video-overlay.playing .play-button {
    opacity: 0;
}

.play-button {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: rgba(16, 185, 129, 0.9);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.play-button svg {
    width: 28px;
    height: 28px;
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.video-badge-model {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.result-gallery {
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius);
}

.gallery-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.gallery-items {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-item {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.gallery-item:hover {
    border-color: var(--primary-dim);
}

.gallery-item.active {
    border-color: var(--primary);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.gallery-model {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 3px;
    color: white;
}

.result-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Video Features V2 */
.video-features-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.video-feature-v2 {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.video-feature-v2:hover {
    border-color: var(--primary-dim);
    transform: translateY(-2px);
}

.vf-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.vf-content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.vf-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* Mobile responsive for video section v2 */
@media (max-width: 900px) {
    .video-demo-interactive {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .vdi-steps {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    
    .vdi-step-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
    }
    
    .vdi-step {
        flex-direction: column;
        padding: 8px;
        min-width: 70px;
        text-align: center;
    }
    
    .vdi-step-info {
        display: none;
    }
    
    .vdi-step-num {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .vdi-step-icon {
        font-size: 1rem;
    }
    
    .vdi-content {
        padding: 20px;
    }
    
    .vdi-styles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vdi-models-grid {
        grid-template-columns: 1fr;
    }
    
    .video-features-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-features-v2 {
        grid-template-columns: 1fr;
    }
    
    .vdi-styles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .result-cta {
        flex-direction: column;
    }
    
    .result-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Video Demo V2 Extended - 7 Steps */
.vdi-expanded {
    min-height: 580px;
}

.vdi-expanded .vdi-steps {
    min-width: 280px;
}

.vdi-expanded .vdi-step {
    padding: 10px 12px;
}

.vdi-expanded .vdi-step-num {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

.vdi-expanded .vdi-step-info strong {
    font-size: 0.85rem;
}

.vdi-expanded .vdi-step-info small {
    font-size: 0.7rem;
}

/* Scenario Demo */
.vdi-scenario-demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scenario-input-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scenario-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.scenario-input {
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
}

.scenario-input:focus {
    outline: none;
    border-color: var(--primary);
}

.scenario-hints {
    display: flex;
    gap: 8px;
}

.scenario-hints span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--surface);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.scenario-hints span:hover {
    background: var(--primary-dim);
}

.scenario-result {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.scenario-ai-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.scenario-gen-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--success-dim);
    color: var(--success);
    border-radius: 10px;
}

.scenario-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.scenario-scene {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.scene-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.scenario-scene p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Settings Grid (Step 2) */
.vdi-settings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Mini Styles */
.vdi-styles-mini {
    display: flex;
    gap: 8px;
}

.style-mini {
    flex: 1;
    padding: 8px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.style-mini:hover {
    border-color: var(--primary-dim);
}

.style-mini.active {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.style-mini-preview {
    height: 32px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.style-mini span {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Mini Models */
.vdi-models-mini {
    display: flex;
    gap: 10px;
}

.model-mini {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.model-mini:hover {
    border-color: var(--primary-dim);
}

.model-mini.active {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.model-mini-logo {
    font-weight: 800;
    font-size: 0.85rem;
    padding: 4px 8px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: white;
    border-radius: 4px;
}

.model-mini-logo.veo {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

.model-mini-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Segments Slider */
.segments-section {
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius);
}

.segments-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.segments-slider {
    flex: 1;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    appearance: none;
    cursor: pointer;
}

.segments-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.segments-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.segments-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.segments-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.segments-preview {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.seg-item {
    flex: 1;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    transition: all 0.3s;
}

.seg-item.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.segments-info {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.segments-info b {
    color: var(--text);
}

/* Media Selector (Step 3) */
.vdi-media-selector {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.media-section-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.media-grid {
    display: flex;
    gap: 10px;
}

.media-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.media-item:hover {
    border-color: var(--primary-dim);
}

.media-item.active {
    border-color: var(--primary);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.media-item.active .media-check {
    display: flex;
}

.media-item.add-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-style: dashed;
}

.media-item.add-new span {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.media-item.add-new small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Image Generation (Step 4) */
.vdi-image-generation {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-gen-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.image-gen-before,
.image-gen-after {
    flex: 1;
    position: relative;
}

.ig-label {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    z-index: 1;
}

.image-gen-before img,
.image-gen-after img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
}

.ig-generating {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--surface), var(--bg-elevated));
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ig-loader {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.ig-generating span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.image-gen-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.arrow-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-icon {
    font-size: 1.5rem;
    color: var(--primary);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
}

.arrow-text {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.image-gen-info {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.igi-item {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.igi-item b {
    color: var(--text);
}

/* Video Generation Segments (Step 5) */
.vdi-video-generation {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-gen-segments {
    display: flex;
    gap: 12px;
}

.vg-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vg-seg-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
}

.vg-seg-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vg-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.vg-seg-preview.generating {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border-color: var(--primary);
}

.vg-loader {
    width: 24px;
    height: 24px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.vg-pending {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
}

.vg-seg-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.vg-seg-status {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.vg-segment.done .vg-seg-status {
    color: var(--success);
}

.vg-segment.active .vg-seg-status {
    color: var(--primary);
}

.video-gen-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vgp-bar {
    flex: 1;
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
}

.vgp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.vgp-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.video-gen-model {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vgm-active {
    color: var(--primary);
    font-weight: 600;
}

/* Merge Demo (Step 6) */
.vdi-merge-demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.merge-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius);
}

.merge-track {
    display: flex;
    gap: 4px;
    height: 60px;
}

.mt-segment {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.mt-segment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mt-segment span {
    position: absolute;
    bottom: 4px;
    left: 4px;
    font-size: 0.6rem;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 3px;
}

.merge-audio-track,
.merge-voice-track {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 4px;
}

.mat-icon,
.mvt-icon {
    font-size: 1rem;
}

.mat-waveform,
.mvt-waveform {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 20px;
}

.mat-waveform span,
.mvt-waveform span {
    flex: 1;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 1px;
    animation: waveform 0.5s ease-in-out infinite alternate;
}

.mat-waveform span:nth-child(1) { height: 40%; animation-delay: 0s; }
.mat-waveform span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.mat-waveform span:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.mat-waveform span:nth-child(4) { height: 60%; animation-delay: 0.3s; }
.mat-waveform span:nth-child(5) { height: 80%; animation-delay: 0.4s; }
.mat-waveform span:nth-child(6) { height: 50%; animation-delay: 0.5s; }
.mat-waveform span:nth-child(7) { height: 90%; animation-delay: 0.6s; }
.mat-waveform span:nth-child(8) { height: 40%; animation-delay: 0.7s; }
.mat-waveform span:nth-child(9) { height: 70%; animation-delay: 0.8s; }
.mat-waveform span:nth-child(10) { height: 55%; animation-delay: 0.9s; }

.mvt-waveform span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.mvt-waveform span:nth-child(2) { height: 90%; animation-delay: 0.2s; }
.mvt-waveform span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.mvt-waveform span:nth-child(4) { height: 80%; animation-delay: 0.4s; }
.mvt-waveform span:nth-child(5) { height: 70%; animation-delay: 0.5s; }

@keyframes waveform {
    0% { transform: scaleY(0.5); }
    100% { transform: scaleY(1); }
}

.mat-label,
.mvt-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.merge-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ms-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ms-item.done {
    color: var(--success);
}

.ms-item.active {
    color: var(--primary);
}

.ms-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.merge-result-preview {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px;
    background: var(--primary-dim);
    border-radius: var(--radius-sm);
}

.mrp-duration,
.mrp-quality {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* Video Segments Indicator */
.video-segments-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.vsi-item {
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.3s;
}

.vsi-item.active {
    background: var(--primary);
    width: 32px;
}

/* Video Stats Bar */
.video-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.vsb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vsb-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.vsb-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile responsive for expanded video section */
@media (max-width: 900px) {
    .vdi-expanded .vdi-step-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 2px;
        padding-bottom: 8px;
    }
    
    .vdi-expanded .vdi-step {
        flex-direction: column;
        min-width: 50px;
        padding: 6px;
    }
    
    .vdi-expanded .vdi-step-info {
        display: none;
    }
    
    .image-gen-container {
        flex-direction: column;
    }
    
    .image-gen-arrow {
        transform: rotate(90deg);
    }
    
    .video-gen-segments {
        flex-wrap: wrap;
    }
    
    .vg-segment {
        min-width: calc(50% - 6px);
    }
    
    .video-stats-bar {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .vsb-item {
        min-width: calc(50% - 10px);
    }
}

/* SEO Section */
.seo-section {
    background: linear-gradient(180deg, var(--bg-elevated), transparent);
}

.seo-demo {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.seo-pipeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.seo-stage {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.seo-stage.active,
.seo-stage:hover {
    background: var(--surface);
}

.stage-icon {
    font-size: 2rem;
}

.stage-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.stage-visual {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.stage-visual.keywords {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keyword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.keyword-item.high .kw-volume {
    color: var(--primary);
    font-weight: 600;
}

.keyword-item.medium .kw-volume {
    color: var(--success);
}

.keyword-item.adding {
    color: var(--text-muted);
    font-style: italic;
    animation: pulse 2s ease-in-out infinite;
}

.kw-volume {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.stage-visual.competitors {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.competitor-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.comp-pos {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.competitor-row.highlight .comp-pos {
    color: var(--primary);
}

.comp-name {
    width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comp-bar {
    flex: 1;
    height: 8px;
    background: var(--surface);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.comp-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--width);
    background: var(--text-muted);
    border-radius: 4px;
    transition: width 1s ease;
}

.competitor-row.highlight .comp-bar::after {
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.comp-bar.growing::after {
    animation: growBar 2s ease-in-out infinite;
}

@keyframes growBar {
    0%, 100% { width: var(--width); }
    50% { width: calc(var(--width) + 15%); }
}

.stage-visual.clusters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cluster {
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cluster.active {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.cluster-name {
    font-weight: 500;
}

.cluster-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.stage-visual.article-preview {
    padding: 16px;
}

.article-header {
    margin-bottom: 12px;
}

.article-title-line {
    height: 16px;
    width: 80%;
    background: var(--text-secondary);
    border-radius: 4px;
    margin-bottom: 8px;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.text-line {
    height: 8px;
    background: var(--surface);
    border-radius: 2px;
}

.text-line.w-full { width: 100%; }
.text-line.w-90 { width: 90%; }
.text-line.w-80 { width: 80%; }
.text-line.w-70 { width: 70%; }

.article-image {
    height: 60px;
    background: linear-gradient(135deg, var(--primary-dim), var(--secondary-dim));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    font-size: 0.8rem;
    color: var(--primary);
}

.stage-visual.wordpress {
    padding: 16px;
}

.wp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.wp-logo {
    width: 24px;
    height: 24px;
    background: #21759b;
    color: white;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.wp-status {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
}

.wp-status.published {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.wp-stats {
    display: flex;
    gap: 16px;
}

.wp-stat {
    text-align: center;
}

.wp-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.wp-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.seo-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.connector-line {
    width: 2px;
    height: 40px;
    background: var(--border);
}

.connector-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin: 4px 0;
}

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

.seo-feature {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.seo-feature:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.seo-feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.seo-feature h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.seo-feature p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Social Media Section */
.social-section {
    background: linear-gradient(180deg, transparent, var(--bg-elevated), transparent);
}

.social-demo {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.social-platforms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition);
}

.platform-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.platform-card.vk { border-top: 3px solid var(--vk); }
.platform-card.telegram { border-top: 3px solid var(--tg); }
.platform-card.youtube { border-top: 3px solid var(--yt); }
.platform-card.instagram { border-top: 3px solid var(--ig); }

.platform-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.platform-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.platform-card.vk .platform-icon { background: var(--vk); }
.platform-card.telegram .platform-icon { background: var(--tg); }
.platform-card.youtube .platform-icon { background: var(--yt); }
.platform-card.instagram .platform-icon { background: var(--ig); }

.platform-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.platform-status {
    margin-left: auto;
    font-size: 0.8rem;
}

.platform-status.connected {
    color: var(--success);
}

.post-preview {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.post-content {
    margin-bottom: 10px;
}

.post-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.post-text .text-line {
    height: 8px;
    width: 100%;
    background: var(--border);
    border-radius: 2px;
}

.post-text .text-line.short {
    width: 60%;
}

.post-image {
    height: 80px;
    background: linear-gradient(135deg, var(--surface), var(--bg-card));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.post-buttons {
    display: flex;
    gap: 8px;
}

.tg-btn {
    padding: 6px 12px;
    background: var(--tg);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.post-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-post .video-thumb {
    height: 80px;
    background: linear-gradient(135deg, var(--surface), var(--bg-card));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 10px;
}

.video-thumb span:first-child {
    width: 32px;
    height: 32px;
    background: var(--yt);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0,0,0,0.8);
    border-radius: 4px;
    font-size: 0.7rem;
}

.video-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.insta-img {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--surface), var(--bg-card));
    border-radius: 4px;
}

.platform-schedule {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.platform-schedule.add-platform {
    color: var(--primary);
    cursor: pointer;
}

.social-ai-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.ai-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.ai-icon {
    font-size: 1.5rem;
}

.ai-panel-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.ai-generation-demo {
    margin-bottom: 24px;
}

.gen-input {
    background: var(--surface);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.gen-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.gen-value {
    font-weight: 500;
}

.gen-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 12px 0;
    animation: bounceDown 1s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

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

.gen-output {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.output-platform {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
}

.output-platform.vk { background: var(--vk); }
.output-platform.tg { background: var(--tg); }
.output-platform.yt { background: var(--yt); }

.output-text {
    color: var(--text-secondary);
}

.ai-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.ai-feature-item .check {
    color: var(--success);
    font-weight: 600;
}

@media (max-width: 1200px) {
    .social-demo {
        grid-template-columns: 1fr;
    }
    
    .social-ai-panel {
        position: static;
    }
    
    .seo-pipeline {
        flex-direction: column;
    }
    
    .seo-connector {
        transform: rotate(0);
    }
}

@media (max-width: 768px) {
    .social-platforms {
        grid-template-columns: 1fr;
    }
    
    .seo-stage {
        max-width: 100%;
    }
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Workflow Timeline */
.workflow-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-track {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 72px;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 16px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    transition: all var(--transition);
}

.timeline-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.timeline-item:hover .timeline-content {
    border-color: var(--border-hover);
}

.timeline-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.timeline-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Calendar Section */
.calendar-section {
    padding: 100px 48px;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

.calendar-section .section-header {
    padding: 0 16px;
}

.calendar-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.calendar-demo {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cal-nav {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
}

.cal-month {
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 6px;
    gap: 4px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    position: relative;
}

.cal-day.other {
    color: var(--text-muted);
    background: transparent;
}

.cal-day.today {
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.cal-day.scheduled {
    background: var(--secondary-dim);
}

.cal-post {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.cal-post.vk { background: var(--vk); }
.cal-post.tg { background: var(--tg); }
.cal-post.yt { background: var(--yt); }
.cal-post.scheduled-post { background: var(--text-muted); }

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.vk { background: var(--vk); }
.legend-dot.tg { background: var(--tg); }
.legend-dot.yt { background: var(--yt); }
.legend-dot.scheduled { background: var(--text-muted); }

/* Notifications Demo */
.notifications-demo {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.notifications-demo h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notifications-demo h4::before {
    content: '💬';
}

.tg-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-message {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius);
}

.tg-message.incoming {
    animation: messageIn 0.5s ease-out;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.tg-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tg-content {
    flex: 1;
}

.tg-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tg);
    display: block;
    margin-bottom: 4px;
}

.tg-content p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.tg-content small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tg-content .typing {
    color: var(--text-muted);
}

.dots span {
    animation: dots 1.4s ease-in-out infinite;
}

.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

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

/* Brand Section */
.brand-section {
    background: linear-gradient(180deg, transparent, var(--bg-elevated), transparent);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.brand-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.brand-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.brand-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.brand-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.brand-demo {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.product-item {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.product-item.add {
    border-style: dashed;
    color: var(--text-muted);
    cursor: pointer;
}

.product-item.add:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.avatar-showcase {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.avatar-item {
    text-align: center;
    cursor: pointer;
}

.avatar-img {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 8px;
    transition: all var(--transition);
}

.avatar-item.active .avatar-img {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-dim);
}

.avatar-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.avatar-item.active span {
    color: var(--primary);
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ci-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.ci-item span {
    font-size: 1rem;
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-elevated);
}

.gallery-demo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gallery-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.gf-step {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 160px;
}

.gf-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.gf-step h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.gf-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gf-arrow {
    font-size: 1.5rem;
    color: var(--primary);
}

.gallery-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.gp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 500;
}

.gp-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gp-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.gp-copy {
    padding: 6px 12px;
    background: var(--primary);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.gp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
}

.gp-item {
    aspect-ratio: 1;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
}

.gp-item:hover {
    border-color: var(--primary);
}

.gp-item.selected {
    border-color: var(--success);
}

.gp-item.selected i {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 0.6rem;
    display: grid;
    place-items: center;
    font-style: normal;
}

.gp-item.video {
    background: linear-gradient(135deg, var(--surface), var(--bg-card));
}

.gp-footer {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.gp-selected {
    color: var(--success);
    font-weight: 600;
}

/* Generators Section */
.generators-section {
    background: linear-gradient(180deg, transparent, var(--bg-elevated));
}

.generators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.gen-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.gen-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.gen-category h3 span {
    font-size: 1.3rem;
}

.gen-models {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gen-model {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}

.gen-model:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.gen-model.featured {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.gm-logo {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.gen-model.featured .gm-logo {
    color: var(--primary);
}

.gen-model span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

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

.gf-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.gf-item span {
    font-size: 2rem;
}

.gf-item b {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.gf-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Transcription Section */
.transcription-section {
    background: var(--bg-elevated);
}

.transcription-demo {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.trans-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tf-step {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 140px;
}

.tf-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.tf-step h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.tf-step p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tf-arrow {
    font-size: 1.5rem;
    color: var(--primary);
}

.trans-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tp-transcript,
.tp-tasks {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tp-header {
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
}

.tp-speakers {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tp-speaker {
    display: flex;
    gap: 12px;
}

.speaker-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.speaker-text b {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.speaker-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.task-notifications {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-notif {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.tn-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.tn-content b {
    display: block;
    font-size: 0.75rem;
    color: var(--tg);
    margin-bottom: 4px;
}

.tn-content p {
    font-size: 0.8rem;
    margin: 0 0 4px;
}

.tn-content small {
    font-size: 0.7rem;
    color: var(--success);
}

@media (max-width: 768px) {
    .brand-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-flow,
    .trans-flow {
        flex-direction: column;
    }
    
    .gf-arrow,
    .tf-arrow {
        transform: rotate(90deg);
    }
    
    .gp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .generators-grid {
        grid-template-columns: 1fr;
    }
    
    .gen-models {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trans-preview {
        grid-template-columns: 1fr;
    }
}

/* Blog Preview Section */
.blog-preview-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-center {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.blog-preview-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-preview-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 245, 212, 0.08);
}

.bpc-image {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bpc-image-real {
    background: var(--bg-card);
}

.bpc-image-real img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-preview-card:hover .bpc-image-real img {
    transform: scale(1.08);
}

.bpc-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 245, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.blog-preview-card:hover .bpc-image::before {
    opacity: 1;
}

.bpc-icon {
    position: relative;
    font-size: 3rem;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bpc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(0, 245, 212, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.bpc-content {
    padding: 24px;
}

.bpc-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bpc-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bpc-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bpc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.3s ease;
}

.blog-preview-card:hover .bpc-link {
    gap: 10px;
}

.blog-preview-cta {
    text-align: center;
}

@media (max-width: 768px) {
    .blog-preview-section {
        padding: 60px 16px;
    }
    
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .bpc-image {
        height: 150px;
    }
    
    .bpc-icon {
        font-size: 2.5rem;
        padding: 16px;
    }
}

/* CTA Section */
.cta-section {
    padding: 60px 48px 120px;
}

.cta-card {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    padding: 64px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(0, 245, 212, 0.15), transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(16, 185, 129, 0.15), transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-visual {
    position: relative;
    z-index: 1;
}

.cta-stats {
    display: flex;
    gap: 32px;
}

.cta-stat {
    text-align: center;
}

.cta-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 64px 48px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 130px;
}

.footer-column h5 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 0;
    transition: color var(--transition);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .crm-demo {
        grid-template-columns: 1fr;
    }
    
    .crm-sidebar {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .crm-panel {
        border-left: none;
        border-top: 1px solid var(--border);
    }
    
    .calendar-section {
        padding: 80px 32px;
    }
    
    .calendar-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .nav {
        display: none !important;
    }
    
    .header-actions .btn {
        display: none !important;
    }
    
    .lang-switcher {
        margin-right: 4px;
    }
    
    .lang-btn {
        padding: 5px 8px;
    }
    
    .lang-code {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .stat-divider {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card.featured {
        grid-column: span 1;
    }
    
    .video-workflow {
        flex-direction: column;
    }
    
    .workflow-connector {
        transform: rotate(90deg);
        padding: 0;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
        padding: 32px;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-stats {
        justify-content: center;
    }
    
    /* Calendar Section Mobile */
    .calendar-section {
        padding: 60px 16px;
    }
    
    .calendar-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calendar-demo {
        padding: 16px;
    }
    
    .calendar-header {
        margin-bottom: 16px;
    }
    
    .cal-nav {
        width: 32px;
        height: 32px;
    }
    
    .cal-month {
        font-size: 0.95rem;
    }
    
    .calendar-grid {
        gap: 3px;
    }
    
    .cal-day {
        font-size: 0.75rem;
        padding-top: 4px;
        gap: 2px;
    }
    
    .cal-day-header {
        font-size: 0.65rem;
        padding: 6px 0;
    }
    
    .cal-post {
        width: 5px;
        height: 5px;
    }
    
    .calendar-legend {
        gap: 10px;
        margin-top: 16px;
        padding-top: 12px;
    }
    
    .legend-item {
        font-size: 0.7rem;
    }
    
    .legend-dot {
        width: 6px;
        height: 6px;
    }
    
    .notifications-demo {
        padding: 16px;
    }
    
    .notifications-demo h4 {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .tg-messages {
        gap: 10px;
    }
    
    .tg-message {
        padding: 10px;
        gap: 10px;
    }
    
    .tg-avatar {
        font-size: 1.2rem;
    }
    
    .tg-name {
        font-size: 0.8rem;
    }
    
    .tg-content p {
        font-size: 0.85rem;
    }
    
    .tg-content small {
        font-size: 0.7rem;
    }
    
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
        width: 100%;
        text-align: left;
    }
    
    .footer-column {
        min-width: 0;
    }
    
    .footer-column h5 {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .footer-column a {
        font-size: 0.9rem;
        padding: 5px 0;
    }
}

@media (max-width: 480px) {
    /* Calendar Section - Extra Small */
    .calendar-section {
        padding: 40px 12px;
    }
    
    .calendar-row {
        gap: 16px;
    }
    
    .calendar-demo {
        padding: 12px;
    }
    
    .cal-nav {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .cal-month {
        font-size: 0.85rem;
    }
    
    .calendar-grid {
        gap: 2px;
    }
    
    .cal-day {
        font-size: 0.65rem;
        padding-top: 3px;
        gap: 1px;
    }
    
    .cal-day-header {
        font-size: 0.55rem;
        padding: 4px 0;
    }
    
    .cal-post {
        width: 4px;
        height: 4px;
    }
    
    .calendar-legend {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .legend-item {
        font-size: 0.65rem;
    }
    
    .legend-dot {
        width: 5px;
        height: 5px;
    }
    
    .notifications-demo {
        padding: 12px;
    }
    
    .notifications-demo h4 {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .tg-message {
        padding: 8px;
        gap: 8px;
    }
    
    .tg-avatar {
        font-size: 1rem;
    }
    
    .tg-name {
        font-size: 0.75rem;
    }
    
    .tg-content p {
        font-size: 0.8rem;
    }
    
    .tg-content small {
        font-size: 0.65rem;
    }
    
    .footer {
        padding: 32px 16px 16px;
    }
    
    .footer-inner {
        gap: 24px;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }
    
    .footer-column h5 {
        font-size: 0.75rem;
    }
    
    .footer-column a {
        font-size: 0.85rem;
        padding: 4px 0;
    }

    .kanban-demo {
        grid-template-columns: 1fr;
    }
    
    .crm-board {
        grid-template-columns: 1fr;
        min-width: auto;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg);
}

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

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

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


/* =====================================================
   SEO: Расширенный блок блога на главной
   ===================================================== */

/* Категории блога */
.blog-categories-mini {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.blog-cat-link {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.blog-cat-link:hover,
.blog-cat-link.active {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
}

/* Расширенная сетка блога */
.blog-preview-grid-expanded {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Рекомендуемая статья - занимает 2 колонки */
.blog-preview-featured {
    grid-column: span 2;
}

.blog-preview-featured .bpc-image {
    height: 280px;
}

.blog-preview-featured h3 {
    font-size: 1.25rem;
}

.bpc-badge-featured {
    background: linear-gradient(135deg, var(--primary), #10b981) !important;
    color: var(--bg) !important;
}

/* Размеры изображений для CLS */
.blog-preview-card .bpc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA блока блога */
.blog-preview-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Адаптив для расширенного блога */
@media (max-width: 1200px) {
    .blog-preview-grid-expanded {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-preview-featured {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    .blog-preview-grid-expanded {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-preview-featured {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .blog-preview-grid-expanded {
        grid-template-columns: 1fr;
    }
    
    .blog-preview-featured {
        grid-column: span 1;
    }
    
    .blog-preview-featured .bpc-image {
        height: 200px;
    }
    
    .blog-categories-mini {
        gap: 8px;
    }
    
    .blog-cat-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .blog-preview-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-preview-cta .btn {
        justify-content: center;
    }
}

/* ========================================
   Extended Section Descriptions - New Styles
   ======================================== */

.section-desc-extended {
    max-width: 900px;
    margin: 28px auto 0;
    text-align: center;
}

/* Video Section Extended */
.video-extended {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05), rgba(16, 185, 129, 0.03));
    border: 1px solid rgba(0, 245, 212, 0.15);
    border-radius: 20px;
    padding: 28px;
}

.video-benefit-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.video-benefit {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
}

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

.vb-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--primary, #00f5d4);
}

.vb-text span {
    font-size: 0.8rem;
    color: var(--text-muted, #5c6070);
    line-height: 1.5;
}

.video-hint {
    font-size: 0.9rem;
    color: var(--text-secondary, #8b8fa3);
    margin-top: 16px;
}

/* SEO Section Extended */
.seo-extended {
    text-align: left;
}

.seo-benefit-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.seo-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 16px;
}

.seo-benefit-item:hover {
    background: rgba(0, 245, 212, 0.05);
    border-color: rgba(0, 245, 212, 0.2);
}

.sbi-num {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary, #00f5d4), var(--success, #10b981));
    color: #0a0a0f;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sbi-content strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.sbi-content p {
    font-size: 0.85rem;
    color: var(--text-secondary, #8b8fa3);
    line-height: 1.6;
}

.seo-joke {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border-left: 3px solid var(--primary, #00f5d4);
    font-size: 0.9rem;
    color: var(--text-secondary, #8b8fa3);
    text-align: center;
}

/* Social Section Extended */
.social-extended {
    margin-top: 24px;
}

.social-benefit-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.sp-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.vk-pill .sp-icon { background: #0077ff; }
.tg-pill .sp-icon { background: #26a5e4; }
.yt-pill .sp-icon { background: #ff0000; }
.ig-pill .sp-icon { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743); }

.sp-text {
    font-size: 0.85rem;
    color: var(--text-secondary, #8b8fa3);
}

.social-bonus {
    font-size: 0.9rem;
    color: var(--text-secondary, #8b8fa3);
    padding: 14px 20px;
    background: rgba(0, 245, 212, 0.08);
    border-radius: 12px;
}

/* Workflow Section Extended */
.workflow-extended {
    margin-top: 32px;
}

.workflow-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.wf-compare {
    padding: 24px;
    border-radius: 16px;
    text-align: left;
}

.wf-compare.old {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.wf-compare.new {
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.wf-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.wf-compare ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.wf-compare li {
    font-size: 0.85rem;
    color: var(--text-secondary, #8b8fa3);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wf-total {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.wf-compare.old .wf-total {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.wf-compare.new .wf-total {
    background: rgba(0, 245, 212, 0.2);
    color: var(--primary, #00f5d4);
}

/* Calendar Section Extended */
.calendar-extended {
    margin-top: 24px;
}

.calendar-features {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cal-feature {
    flex: 1;
    max-width: 280px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 14px;
    text-align: center;
}

.cf-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.cal-feature strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.cal-feature p {
    font-size: 0.8rem;
    color: var(--text-muted, #5c6070);
    line-height: 1.5;
}

/* Brand Section Extended */
.brand-extended {
    margin-top: 24px;
}

.brand-explain {
    padding: 18px 24px;
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.15);
    border-radius: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary, #8b8fa3);
    line-height: 1.7;
}

/* Gallery Section Extended */
.gallery-extended {
    margin-top: 28px;
}

.gallery-use-cases {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.guc-item {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 12px;
    text-align: center;
}

.guc-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.guc-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.guc-item p {
    font-size: 0.75rem;
    color: var(--text-muted, #5c6070);
}

/* Generators Section Extended */
.generators-extended {
    margin-top: 28px;
}

.gen-value-props {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.gvp-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 14px;
}

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

.gvp-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.gvp-text p {
    font-size: 0.8rem;
    color: var(--text-muted, #5c6070);
}

/* Transcription Section Extended */
.trans-extended {
    margin-top: 28px;
    text-align: left;
}

.trans-magic-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tms-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 14px;
}

.tms-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary, #00f5d4), var(--success, #10b981));
    color: #0a0a0f;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tms-arrow {
    font-size: 1.2rem;
    color: var(--text-muted, #5c6070);
}

.tms-content strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.tms-content p {
    font-size: 0.75rem;
    color: var(--text-muted, #5c6070);
}

.trans-bonus {
    text-align: center;
    padding: 14px 20px;
    background: rgba(0, 245, 212, 0.08);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary, #8b8fa3);
}

/* CRM Section Extended */
.crm-extended {
    margin: 28px auto;
    max-width: 800px;
    text-align: left;
}

.crm-why-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 20px;
    padding: 28px;
}

.crm-why-block h4 {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.crm-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.crm-compare-item {
    padding: 20px;
    border-radius: 14px;
}

.crm-compare-item.old {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.crm-compare-item.new {
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.cci-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.crm-compare-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crm-compare-item li {
    font-size: 0.8rem;
    color: var(--text-secondary, #8b8fa3);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.crm-compare-item.old li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #ef4444;
}

.crm-compare-item.new li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary, #00f5d4);
}

/* Responsive */
@media (max-width: 900px) {
    .video-benefit-row {
        flex-direction: column;
    }
    
    .workflow-comparison {
        grid-template-columns: 1fr;
    }
    
    .calendar-features {
        flex-direction: column;
        align-items: center;
    }
    
    .cal-feature {
        max-width: 100%;
    }
    
    .gallery-use-cases {
        flex-wrap: wrap;
    }
    
    .gen-value-props {
        flex-direction: column;
        align-items: center;
    }
    
    .trans-magic-steps {
        flex-direction: column;
    }
    
    .tms-arrow {
        transform: rotate(90deg);
    }
    
    .crm-compare-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .social-benefit-pills {
        flex-direction: column;
    }
    
    .social-pill {
        justify-content: center;
    }
}

/* =====================================================
   TOOLS PAGE STYLES
   ===================================================== */

.tools-hero {
    padding: 160px 24px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.tools-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.tools-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.tools-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    position: relative;
    z-index: 1;
}

@media (max-width: 968px) {
    .tools-section {
        grid-template-columns: 1fr;
    }
}

.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 968px) {
    .tools-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tool-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.tool-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05), rgba(16, 185, 129, 0.03));
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.1);
}

.tool-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #000;
}

.tool-badge.coming-soon {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.tool-workspace {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-height: 600px;
}

.tool-workspace-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.tool-workspace-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dim), var(--secondary-dim));
    border-radius: var(--radius);
}

.tool-workspace-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tool-workspace-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: var(--surface);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #10b981);
    border-radius: 50%;
}

.upload-icon svg {
    width: 28px;
    height: 28px;
    color: #000;
}

.upload-zone h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-zone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.upload-formats {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.format-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
}

.settings-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.setting-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.setting-group label svg {
    width: 16px;
    height: 16px;
}

.scale-selector {
    display: flex;
    gap: 8px;
}

.scale-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.scale-option:hover {
    border-color: var(--border-hover);
}

.scale-option.active {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.scale-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.scale-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.quality-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-track {
    flex: 1;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.slider-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #10b981);
    border-radius: 4px;
}

.slider-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 245, 212, 0.4);
}

.slider-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
}

.preview-area {
    display: none;
    margin: 32px 0;
}

.preview-area.visible {
    display: block;
}

.comparison-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
}

.comparison-container {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.comparison-image {
    width: 100%;
    display: block;
}

.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.comparison-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--primary);
    cursor: ew-resize;
    transform: translateX(-50%);
}

.comparison-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 12px rgba(0, 245, 212, 0.5);
}

.comparison-label {
    position: absolute;
    top: 16px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.comparison-label.left {
    left: 16px;
}

.comparison-label.right {
    right: 16px;
}

.processing-overlay {
    display: none;
    padding: 48px;
    text-align: center;
}

.processing-overlay.visible {
    display: block;
}

.processing-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

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

.processing-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.processing-progress {
    max-width: 300px;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.processing-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #10b981);
    animation: progress 2s ease-in-out infinite;
}

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

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-process, .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-process {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #000;
}

.btn-process:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 245, 212, 0.3);
}

.btn-process:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-download {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-download:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.feature-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dim);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.feature-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}


/* =====================================================
   TARIFFS/PRICING PAGE STYLES
   ===================================================== */

.pricing-hero {
    padding: 160px 24px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.pricing-hero > p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.pricing-hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.pricing-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pricing-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pricing-section {
    padding: 0 24px 80px;
    position: relative;
    z-index: 1;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tariff-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.tariff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tariff-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08), rgba(16, 185, 129, 0.04));
    box-shadow: 0 0 40px rgba(0, 245, 212, 0.15);
}

.tariff-card.featured::before {
    content: '⭐ Популярный';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
}

.tariff-card.free {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.08), rgba(123, 97, 255, 0.03));
}

.tariff-header {
    margin-bottom: 24px;
}

.tariff-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tariff-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tariff-price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.tariff-price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
}

.tariff-price-currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tariff-tokens {
    margin-top: 8px;
}

.tariff-tokens-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.tariff-tokens-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.tariff-efficiency {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tariff-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.tariff-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tariff-feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--success);
}

.tariff-feature-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tariff-cta {
    display: block;
    text-align: center;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.tariff-cta.primary {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #000;
}

.tariff-cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 245, 212, 0.3);
}

.tariff-cta.secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.tariff-cta.secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.tariff-cta.free-cta {
    background: linear-gradient(135deg, var(--secondary), #a78bfa);
    color: #fff;
}

.tariff-cta.free-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 97, 255, 0.3);
}

/* Models Section */
.models-section {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.models-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

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

.models-column {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.models-column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.models-column-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.models-column-icon.images {
    background: linear-gradient(135deg, var(--primary), #10b981);
}

.models-column-icon.video {
    background: linear-gradient(135deg, var(--accent), #f472b6);
}

.models-column-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.model-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: var(--transition);
}

.model-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.model-item:last-child {
    margin-bottom: 0;
}

.model-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.model-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.model-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.model-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.model-badge.new {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #000;
}

.model-badge.pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}

.model-badge.sound {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
}

.model-price {
    text-align: right;
}

.model-price-value, .model-price-range {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.model-price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

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

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

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--surface);
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08), rgba(16, 185, 129, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-container > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 245, 212, 0.3);
}

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

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--border-hover);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}


/* =====================================================
   AUTO-PUBLISHING PAGE STYLES
   ===================================================== */

.ap-hero {
    padding: 160px 24px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.ap-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.ap-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ap-hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.ap-features-strip {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.feature-chip:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.feature-chip-icon {
    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ap-hero-image {
    margin-top: 40px;
    max-width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ap-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Onboarding Section */
.ap-onboarding {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.onboarding-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ap-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.ap-section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.ap-section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.onboarding-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.onboarding-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.onboarding-step:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.onboarding-step.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08), rgba(16, 185, 129, 0.04));
}

.onboarding-step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-dim), var(--secondary-dim));
    border-radius: 50%;
    position: relative;
}

.onboarding-step-num {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
}

.onboarding-step-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.onboarding-step-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.onboarding-demo {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-height: 350px;
}

.onboarding-demo-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.onboarding-demo-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Demo Panels - интерактивные блоки шагов */
.demo-panel {
    display: none;
}

.demo-panel.active {
    display: block;
    animation: fadeInPanel 0.3s ease-out;
}

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

/* Step 1: Link Generation */
.demo-link-gen {
    max-width: 600px;
    margin: 0 auto;
}

.demo-link-gen h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.demo-link-gen p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.link-generator {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.link-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.link-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
}

.link-copy-btn {
    padding: 14px 20px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.link-copy-btn:hover {
    background: var(--secondary);
}

.link-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.link-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.link-feature-icon {
    color: var(--primary);
    font-weight: 600;
}

/* Step 2: Brief Demo */
.demo-brief {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .demo-brief {
        grid-template-columns: 1fr;
    }
}

.brief-form-demo {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.brief-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.brief-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-dim), var(--secondary-dim));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.brief-form-header strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
}

.brief-progress {
    height: 4px;
    background: var(--surface);
    border-radius: 2px;
    overflow: hidden;
    width: 150px;
}

.brief-progress-fill {
    height: 100%;
    width: 85%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.brief-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brief-field {
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.brief-field.filled {
    border-color: rgba(0, 245, 212, 0.3);
    background: rgba(0, 245, 212, 0.05);
}

.brief-field.typing {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.1);
}

.brief-field-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.brief-field-value {
    font-size: 0.95rem;
    color: var(--text);
}

.brief-info {
    padding: 24px;
}

.brief-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.brief-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.brief-info-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brief-info-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.brief-info-feature span:first-child {
    font-size: 1.1rem;
}

/* Step 3: Content Plan Demo */
.demo-content-plan {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .demo-content-plan {
        grid-template-columns: 1fr;
    }
}

.content-plan-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.content-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.content-plan-header h4 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-plan-month {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.content-plan-items {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-plan-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.content-plan-item:hover {
    border-color: var(--border-hover);
}

.content-plan-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.content-plan-item-info {
    flex: 1;
}

.content-plan-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.content-plan-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.content-plan-item-status {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.content-plan-item-status.done {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.content-plan-item-status.generating {
    background: rgba(0, 245, 212, 0.15);
    color: var(--primary);
}

.content-plan-item-status.queue {
    background: var(--surface);
    color: var(--text-secondary);
}

.content-plan-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-plan-stat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.content-plan-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.content-plan-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Step 4: Generation Demo */
.demo-generation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .demo-generation {
        grid-template-columns: 1fr;
    }
}

.demo-generation h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.demo-generation p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.generation-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.generation-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.generation-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-dim), var(--secondary-dim));
    border-radius: var(--radius-sm);
}

.generation-item-info {
    flex: 1;
}

.generation-item-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.generation-progress {
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
}

.generation-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.generation-item-status {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

.generation-item-status.done {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.generation-item-status.progress {
    background: rgba(0, 245, 212, 0.15);
    color: var(--primary);
}

.generation-item-status.queue {
    background: var(--surface);
    color: var(--text-secondary);
}

/* Step 5: Calendar Demo */
.demo-calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .demo-calendar {
        grid-template-columns: 1fr;
    }
}

.calendar-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.calendar-month {
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-nav button:hover {
    border-color: var(--primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 16px;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.calendar-day:hover {
    background: var(--surface);
}

.calendar-day.has-posts::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.calendar-day.active {
    background: var(--primary);
    color: #000;
    font-weight: 600;
}

.calendar-info {
    padding: 24px;
}

.calendar-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.calendar-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.calendar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-action-btn.primary {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #000;
    border: none;
}

.calendar-action-btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.calendar-action-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.calendar-action-btn.secondary:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

/* Step 6: Auto-publish Demo */
.demo-autopublish {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .demo-autopublish {
        grid-template-columns: 1fr;
    }
}

.autopublish-status {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.autopublish-status h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.autopublish-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.autopublish-stat {
    text-align: center;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.autopublish-stat-icon {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.autopublish-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.autopublish-stat-value.published {
    color: #10b981;
}

.autopublish-stat-value.pending {
    color: var(--primary);
}

.autopublish-stat-value.growth {
    color: #3b82f6;
}

.autopublish-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.autopublish-activity {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.autopublish-activity-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.autopublish-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.autopublish-activity-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.autopublish-activity-text {
    flex: 1;
    color: var(--text-secondary);
}

.autopublish-activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.autopublish-info {
    padding: 24px;
}

.autopublish-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.autopublish-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.autopublish-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.autopublish-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.autopublish-feature-icon {
    color: var(--primary);
    font-weight: 600;
}

/* Platforms Section */
.ap-platforms {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.platforms-container {
    max-width: 1200px;
    margin: 0 auto;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.platform-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.platform-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.platform-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: var(--radius-sm);
}

.platform-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.platform-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: auto;
    padding-bottom: 16px;
}

.platform-feature-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
}

.platform-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: auto;
}

.platform-status.active {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #000;
}

.platform-status.soon {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px dashed var(--border);
}

/* Advantages Section */
.ap-advantages {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.advantages-container {
    max-width: 1200px;
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.advantage-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-dim), var(--secondary-dim));
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.advantage-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.advantage-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Benefits Section - Auto-publishing */
.ap-benefits {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.benefit-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-dim), var(--secondary-dim));
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.benefit-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.benefit-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* SEO Keywords Section */
.seo-keywords-section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.seo-keywords-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.keyword-tag:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
}

.keyword-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* CTA Section - Auto-publishing */
.ap-cta {
    padding: 80px 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ap-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.ap-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Brief Benefits (inside demo) */
.brief-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.brief-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.brief-benefit-icon {
    font-size: 1.1rem;
}

/* Plan items styling */
.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.plan-header h4 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-month {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.plan-items {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.plan-item:hover {
    border-color: var(--border-hover);
}

.plan-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.plan-item-info {
    flex: 1;
}

.plan-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.plan-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.plan-item-status {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.plan-item-status.done {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.plan-item-status.generating {
    background: rgba(0, 245, 212, 0.15);
    color: var(--primary);
}

.plan-item-status.queue {
    background: var(--surface);
    color: var(--text-secondary);
}

.plan-stats {
    display: flex;
    gap: 16px;
    padding: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.plan-stat {
    text-align: center;
    padding: 16px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.plan-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.plan-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =====================================================
   LEGAL PAGES STYLES (terms.php, privacy.php)
   ===================================================== */

.legal-page {
    position: relative;
    z-index: 1;
    padding: 140px 24px 80px;
    min-height: 100vh;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.legal-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 24px;
    }
    
    .legal-page {
        padding: 120px 16px 60px;
    }
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.section-icon {
    font-size: 1.3rem;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text);
}

.legal-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section ul, 
.legal-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-section li strong {
    color: var(--text);
}

/* Highlight boxes */
.highlight-box {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: var(--radius);
    margin: 20px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-secondary);
}

.highlight-box.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.highlight-box.info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(79, 70, 229, 0.05));
    border-color: rgba(99, 102, 241, 0.2);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.feature-item {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Tariff table */
.tariff-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.tariff-table th,
.tariff-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tariff-table th {
    background: var(--bg-elevated);
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tariff-table tr:hover td {
    background: var(--surface);
}

.tariff-table td {
    color: var(--text-secondary);
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-elevated);
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
}

.data-table td {
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: var(--surface);
}

/* Social badges */
.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: var(--transition);
}

.social-badge:hover {
    border-color: var(--border-hover);
}

.social-badge svg {
    width: 20px;
    height: 20px;
}

.social-badge.vk {
    border-color: rgba(0, 119, 255, 0.3);
    background: rgba(0, 119, 255, 0.1);
}

.social-badge.telegram {
    border-color: rgba(34, 158, 217, 0.3);
    background: rgba(34, 158, 217, 0.1);
}

.social-badge.dzen {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.social-badge.youtube {
    border-color: rgba(255, 0, 0, 0.3);
    background: rgba(255, 0, 0, 0.1);
}

.social-badge.tiktok {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.social-badge.instagram {
    border-color: rgba(228, 64, 95, 0.3);
    background: rgba(228, 64, 95, 0.1);
}

.social-badge.pinterest {
    border-color: rgba(230, 0, 35, 0.3);
    background: rgba(230, 0, 35, 0.1);
}

/* Rights grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.rights-item {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.rights-item:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.rights-item .icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.rights-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.rights-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Responsive legal tables */
@media (max-width: 768px) {
    .tariff-table,
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tariff-table th,
    .tariff-table td,
    .data-table th,
    .data-table td {
        min-width: 120px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .rights-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Hero Workflow Visual Animation
   ========================================== */
.hero-workflow-visual {
    position: relative;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    min-height: 500px;
}

.hw-stage {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

.hw-stage.active {
    background: rgba(0, 245, 212, 0.08);
    border-color: rgba(0, 245, 212, 0.3);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.1);
}

.hw-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.hw-stage.active .hw-icon-circle {
    background: var(--primary);
    color: #000;
}

.hw-content {
    flex: 1;
}

.hw-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.hw-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hw-connector {
    height: 30px;
    margin-left: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hw-line {
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.hw-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 0;
    opacity: 0;
}

.hw-connector.active .hw-dot {
    animation: dropDot 0.6s linear forwards;
    opacity: 1;
}

@keyframes dropDot {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Animations per stage */
.hw-sources-anim {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    opacity: 0;
}
.hw-stage.active .hw-sources-anim { opacity: 1; }
.hw-source-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    animation: bounce 1s infinite;
}
.hw-source-dot:nth-child(2) { animation-delay: 0.2s; }
.hw-source-dot:nth-child(3) { animation-delay: 0.4s; }

.hw-typing-indicator {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    opacity: 0;
}
.hw-stage.active .hw-typing-indicator { opacity: 1; }
.hw-typing-indicator span {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: type 1s infinite;
}

.hw-image-loader {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
    opacity: 0;
}
.hw-stage.active .hw-image-loader {
    opacity: 1;
}
.hw-stage.active .hw-image-loader::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: var(--primary);
    animation: loadBar 2s ease infinite;
}

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

/* Result Popup */
.hw-result-popup {
    position: absolute;
    top: 50%;
    right: -20px;
    width: 280px;
    background: #1a1a20;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(-50%) scale(0.9) translateX(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.hw-result-popup.visible {
    opacity: 1;
    transform: translateY(-50%) scale(1) translateX(0);
    right: 20px;
}

.hw-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.hw-result-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f5d4, #10b981);
}
.hw-result-name { font-weight: 700; font-size: 0.9rem; }
.hw-result-time { font-size: 0.7rem; color: #666; }
.hw-result-text { font-size: 0.85rem; margin-bottom: 10px; line-height: 1.4; }
.hw-result-image {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    background: #2a2a30;
    overflow: hidden;
    position: relative;
}
.hw-img-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('https://neironica.ru/blog/images/ai-image-generation-guide.webp'); /* Placeholder */
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

/* Modal for Digest */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.digest-modal {
    background: #15151a;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .digest-modal {
    transform: scale(1);
}
.digest-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.digest-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.digest-sources, .digest-result {
    padding: 24px;
    overflow-y: auto;
}
.digest-sources {
    border-right: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}
.source-item {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.source-item h4 { color: var(--primary); margin: 0 0 4px; font-size: 0.8rem; text-transform: uppercase; }
.result-preview {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 16px;
    font-family: 'Helvetica', sans-serif;
}
.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================
   5 ANIMATED CASE STUDIES
   ========================================== */
.animated-cases-section {
    padding: 120px 24px;
    position: relative;
    z-index: 1;
}

.cases-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Case Block */
.case-block {
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-block:hover {
    border-color: rgba(0, 245, 212, 0.15);
}

.case-header {
    padding: 32px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.case-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 245, 212, 0.15);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.case-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    flex: 1;
    min-width: 200px;
}

.case-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    width: 100%;
    margin-top: -10px;
}

.case-demo {
    padding: 40px;
}

.case-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px auto 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 12px;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-play-btn:hover {
    background: rgba(0, 245, 212, 0.2);
    transform: translateY(-2px);
}

.play-icon {
    font-size: 1.2rem;
}

/* CASE 1: Poster Flow */
.case-flow {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.flow-card {
    flex-shrink: 0;
    width: 280px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.flow-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(0, 245, 212, 0.3);
}

.flow-card-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flow-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.flow-badge.source { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.flow-badge.character { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.flow-badge.result { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.flow-channel {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.flow-card-body {
    padding: 16px;
}

.flow-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.flow-image-placeholder {
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
}

.flow-image-placeholder span {
    font-size: 2rem;
}

/* Character Preview */
.character-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.character-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7b61ff, #00f5d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.character-info strong {
    display: block;
    margin-bottom: 4px;
}

.character-info small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Generated Image */
.flow-image-generated {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 8px;
    overflow: hidden;
}

.generated-image-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-character {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

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

.poster-frame {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    color: #000;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: rotate(-5deg);
}

.image-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 0.65rem;
    background: rgba(0, 245, 212, 0.9);
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Flow Arrow */
.flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.flow-arrow.active {
    opacity: 1;
}

.arrow-line {
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.arrow-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.arrow-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* CASE 2: Digest Grid */
.digest-demo-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.digest-sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.digest-source-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.digest-source-mini:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: scale(1.02);
}

.digest-source-mini:nth-child(7) {
    grid-column: span 2;
}

.source-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.source-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.source-preview {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Merge Animation */
.digest-merge-animation {
    text-align: center;
}

.merge-funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.funnel-top, .funnel-bottom {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.funnel-middle {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.funnel-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Digest Result Card */
.digest-result-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.digest-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-avatar {
    font-size: 2rem;
}

.digest-result-header strong {
    display: block;
}

.digest-result-header small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.digest-result-body {
    padding: 16px;
}

.digest-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}

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

.digest-item {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

/* CASE 3: Crypto Demo */
.crypto-demo {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.crypto-source {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.crypto-source-header {
    font-weight: 600;
    margin-bottom: 12px;
}

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

.signal-pair {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

.signal-action {
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.signal-action.buy {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.signal-price {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

/* Crypto Process Steps */
.crypto-process {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.process-step.active {
    opacity: 1;
    border-color: rgba(0, 245, 212, 0.4);
    background: rgba(0, 245, 212, 0.1);
}

.step-icon {
    font-size: 1.5rem;
}

.process-arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Crypto Result */
.crypto-result {
    display: flex;
    justify-content: center;
}

.crypto-post-card {
    max-width: 400px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.crypto-post-image {
    height: 180px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    position: relative;
    overflow: hidden;
}

.chart-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.chart-line {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.chart-candles {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.candle {
    width: 20px;
    height: 40px;
    border-radius: 2px;
}

.candle.green {
    background: linear-gradient(180deg, #10b981, #059669);
}

.candle.red {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    height: 30px;
}

.candle.tall {
    height: 70px;
}

.crypto-mascot {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    animation: float 2s ease-in-out infinite;
}

.crypto-speech {
    position: absolute;
    top: 15px;
    right: 80px;
    background: #10b981;
    color: #000;
    padding: 6px 12px;
    border-radius: 12px 12px 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.crypto-post-text {
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CASE 4: Meme Demo */
.meme-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.meme-before, .meme-after {
    text-align: center;
}

.meme-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.meme-boring-post {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.boring-header {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.boring-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #888;
}

.meme-transform {
    text-align: center;
}

.transform-sparkles {
    font-size: 2rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.transform-text {
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 10px;
}

.meme-viral-post {
    background: rgba(0, 245, 212, 0.05);
    border: 2px solid rgba(0, 245, 212, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.viral-image {
    background: #000;
    padding: 20px;
}

.meme-template {
    background: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.meme-top-text, .meme-bottom-text {
    font-weight: 900;
    font-size: 0.9rem;
    color: #000;
    text-transform: uppercase;
}

.meme-face {
    font-size: 3rem;
    margin: 10px 0;
}

.viral-text {
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.meme-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* CASE 5: Multi-Platform */
.multi-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.multi-source-post {
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.3);
    border-radius: 16px;
    padding: 20px;
}

.multi-source-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.platform-icon {
    font-size: 1.5rem;
}

.multi-source-content p {
    font-size: 0.9rem;
    margin: 8px 0;
    line-height: 1.4;
}

.multi-distribute {
    text-align: center;
}

.distribute-center {
    position: relative;
    width: 80px;
    height: 150px;
}

.distribute-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    z-index: 2;
}

.distribute-lines {
    position: absolute;
    inset: 0;
}

.line {
    position: absolute;
    width: 2px;
    height: 50px;
    background: var(--primary);
    left: 50%;
    transform-origin: top center;
}

.line-1 { top: 0; transform: translateX(-50%) rotate(0deg); }
.line-2 { bottom: 0; top: auto; transform: translateX(-50%) rotate(180deg); }
.line-3 { top: 50%; transform: translateX(-50%) rotate(90deg); }

.multi-targets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.target-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.3s ease;
}

.target-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
}

.target-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.platform-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.platform-badge.vk { background: rgba(0, 119, 255, 0.2); color: #4a9eff; }
.platform-badge.yt { background: rgba(255, 0, 0, 0.2); color: #ff6b6b; }
.platform-badge.tg { background: rgba(0, 136, 204, 0.2); color: #00a8e8; }

.adapt-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.target-preview p {
    font-size: 0.85rem;
    margin: 4px 0;
}

.target-preview .adapted {
    font-size: 0.75rem;
    color: var(--primary);
    font-style: italic;
}

.multi-timing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.timing-label {
    font-weight: 600;
}

.timing-slots {
    display: flex;
    gap: 12px;
}

.slot {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive */
@media (max-width: 992px) {
    .case-flow {
        flex-direction: column;
    }
    
    .flow-card {
        width: 100%;
        max-width: 350px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .digest-demo-grid,
    .meme-demo,
    .multi-demo {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .digest-merge-animation,
    .meme-transform,
    .multi-distribute {
        display: flex;
        justify-content: center;
    }
    
    .merge-funnel {
        flex-direction: row;
    }
    
    .funnel-arrow {
        transform: rotate(-90deg);
    }
}

@media (max-width: 768px) {
    .case-header {
        padding: 24px;
    }
    
    .case-demo {
        padding: 24px;
    }
    
    .case-header h3 {
        font-size: 1.3rem;
    }
    
    .crypto-process {
        gap: 8px;
    }
    
    .process-step {
        padding: 8px 12px;
    }
    
    .meme-stats {
        gap: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* ==========================================
   5 NEW ANIMATED CASES (06-10)
   ========================================== */

/* CASE 6: Satire/Absurd Theater */
.satire-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.satire-label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
    text-align: center;
}

.satire-original .satire-label { color: #888; }
.satire-result .satire-label { color: var(--primary); }

.satire-boring {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.boring-logo {
    font-size: 2rem;
    opacity: 0.5;
}

.boring-content strong {
    display: block;
    margin-bottom: 8px;
    color: #888;
}

.boring-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.satire-transform {
    text-align: center;
}

.transform-magic {
    font-size: 2.5rem;
    animation: wobble 2s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.transform-label {
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: 8px;
}

.satire-viral {
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.15), rgba(255, 107, 107, 0.15));
    border: 2px solid rgba(123, 97, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.viral-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.viral-channel { color: var(--primary); font-weight: 600; }
.viral-views { color: #888; }

.viral-image-satire {
    height: 120px;
    background: linear-gradient(135deg, #2a1a3a, #1a2a3a);
    position: relative;
    overflow: hidden;
}

.clown-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clown {
    font-size: 3rem;
    animation: bounce 1s ease-in-out infinite;
}

.money-rain {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    animation: rain 2s linear infinite;
}

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

.chart-down {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 2rem;
}

.viral-text-satire {
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.satire-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.metric-icon { font-size: 1.5rem; }
.metric-value { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.metric-label { font-size: 0.85rem; color: var(--text-secondary); }

/* CASE 7: Travel Blogger */
.travel-demo {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.travel-sources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.travel-source-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.travel-source-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: scale(1.05);
}

.location-icon {
    font-size: 2rem;
}

.travel-character {
    text-align: center;
}

.character-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff9a56, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 12px;
    animation: float 3s ease-in-out infinite;
}

.character-prompt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 200px;
    margin: 0 auto;
}

.travel-results {
    display: flex;
    gap: 16px;
}

.travel-post {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.travel-image {
    height: 100px;
    background: linear-gradient(135deg, #2a3a5a, #1a2a4a);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.travel-image.tokyo {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.landmark {
    font-size: 3rem;
    opacity: 0.8;
}

.mascot-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5rem;
}

.sakura {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.2rem;
    animation: fall 3s linear infinite;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(50px) rotate(360deg); opacity: 0; }
}

.travel-caption {
    padding: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.travel-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.travel-stats span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* CASE 8: Gaming Streamer */
.gaming-demo {
    display: grid;
    grid-template-columns: 1fr auto 1.5fr;
    gap: 30px;
    align-items: center;
}

.gaming-news-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gaming-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.gaming-news-item:hover {
    border-color: rgba(123, 97, 255, 0.3);
}

.game-icon {
    font-size: 1.5rem;
}

.news-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-text strong {
    font-size: 0.9rem;
}

.news-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.gaming-streamer {
    text-align: center;
    position: relative;
}

.streamer-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #7b61ff, #00f5d4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    position: relative;
}

.live-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.reaction-bubbles {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.reaction {
    font-size: 1.2rem;
    animation: pop 0.5s ease-out;
}

@keyframes pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.gaming-post-result {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(123, 97, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.post-header-gaming {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-name {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.post-image-gaming {
    height: 140px;
    background: linear-gradient(135deg, #1a0a2e, #2a1a4e);
    position: relative;
}

.game-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-bg {
    font-size: 4rem;
    opacity: 0.3;
    position: absolute;
}

.streamer-char {
    font-size: 3rem;
    z-index: 2;
    animation: float 2s ease-in-out infinite;
}

.speech-gaming {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4444;
    color: white;
    padding: 6px 12px;
    border-radius: 12px 12px 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.post-text-gaming {
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CASE 9: Business Analyst */
.business-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.business-data-raw {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.data-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

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

.data-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.data-row span:first-child {
    color: var(--text-secondary);
}

.data-row span:last-child {
    font-family: 'JetBrains Mono', monospace;
    color: #10b981;
}

.business-ai-transform {
    text-align: center;
}

.ai-icon-big {
    font-size: 2rem;
    margin-bottom: 8px;
}

.business-ai-transform span {
    font-size: 0.85rem;
    color: var(--primary);
}

.infographic-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(0, 245, 212, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 20px;
}

.infographic-header {
    font-weight: 600;
    margin-bottom: 16px;
}

.infographic-chart {
    position: relative;
    margin-bottom: 16px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    height: 80px;
}

.bar {
    width: 40px;
    background: linear-gradient(180deg, var(--primary), #10b981);
    border-radius: 4px 4px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8px;
    transition: height 0.5s ease;
}

.bar-label {
    font-size: 0.7rem;
    font-weight: 600;
}

.growth-arrow {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #10b981;
}

.infographic-stats {
    display: flex;
    gap: 12px;
}

.stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.business-benefits {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.business-benefits span {
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #10b981;
}

/* CASE 10: Music Critic */
.music-demo {
    display: grid;
    grid-template-columns: 1fr auto 1.5fr;
    gap: 30px;
    align-items: center;
}

.album-announce {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.album-cover-mini {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7b61ff, #ff6b6b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.album-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.album-info strong {
    color: var(--primary);
}

.album-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.music-process {
    text-align: center;
}

.process-icon-music {
    font-size: 2.5rem;
    margin-bottom: 8px;
    animation: pulse 2s infinite;
}

.process-steps-music {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.music-post-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(123, 97, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.album-cover-generated {
    height: 160px;
    background: linear-gradient(135deg, #1a0a2e, #2a0a3e);
    position: relative;
    overflow: hidden;
}

.cover-art {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.neon-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.5), transparent);
    border-radius: 50%;
    filter: blur(20px);
}

.artist-silhouette {
    font-size: 3rem;
    z-index: 2;
}

.album-title-overlay {
    position: absolute;
    bottom: 10px;
    font-size: 0.7rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.1em;
    color: white;
    text-shadow: 0 0 10px rgba(123, 97, 255, 0.8);
}

.ai-badge-music {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(123, 97, 255, 0.8);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.review-text {
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.rating-stars {
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.music-genres {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.genre-tag {
    padding: 8px 16px;
    background: rgba(123, 97, 255, 0.1);
    border: 1px solid rgba(123, 97, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background: rgba(123, 97, 255, 0.2);
    transform: scale(1.05);
}

/* Responsive for new cases */
@media (max-width: 992px) {
    .satire-demo,
    .travel-demo,
    .gaming-demo,
    .business-demo,
    .music-demo {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .travel-results {
        flex-direction: column;
    }
    
    .satire-transform,
    .travel-character,
    .gaming-streamer,
    .business-ai-transform,
    .music-process {
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .satire-metrics,
    .travel-stats,
    .business-benefits,
    .music-genres {
        gap: 12px;
    }
    
    .metric,
    .travel-stats span,
    .business-benefits span,
    .genre-tag {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* ==========================================
   TRANSLATION SECTION
   ========================================== */
.translation-section {
    padding: 120px 24px;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(0, 245, 212, 0.02), transparent);
}

.translation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.translation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.translation-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.translation-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 245, 212, 0.1);
}

.trans-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trans-from, .trans-to {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-flag {
    font-size: 1.5rem;
}

.lang-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.trans-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.trans-preview {
    margin-bottom: 16px;
}

.trans-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.channel-icon {
    font-size: 1.2rem;
}

.trans-channel span:last-child {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.trans-snippet {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

.trans-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.trans-stats span {
    font-size: 0.8rem;
    color: #888;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 6px;
}

.view-example-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-example-btn:hover {
    background: rgba(0, 245, 212, 0.2);
}

/* Translation Features */
.translation-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.trans-feature {
    text-align: center;
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.trans-feature .feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.trans-feature strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.trans-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Translation Modal */
.translation-modal {
    background: #15151a;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .translation-modal {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.modal-body-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    overflow: hidden;
}

.original-side, .translated-side {
    padding: 24px;
    overflow-y: auto;
}

.original-side {
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.side-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.post-card.original {
    border-color: rgba(255, 255, 255, 0.1);
}

.post-card.translated {
    border-color: rgba(0, 245, 212, 0.3);
    position: relative;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-avatar {
    font-size: 1.8rem;
}

.channel-info {
    display: flex;
    flex-direction: column;
}

.channel-info strong {
    font-size: 1rem;
}

.channel-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.post-content {
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-content strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 12px;
}

.post-content p {
    margin: 8px 0;
}

.ai-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 245, 212, 0.2);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .translation-features {
        grid-template-columns: 1fr;
    }
    
    .modal-body-split {
        grid-template-columns: 1fr;
    }
    
    .original-side {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    .translation-grid {
        grid-template-columns: 1fr;
    }
    
    .trans-header {
        flex-wrap: wrap;
    }
    
    .translation-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* ==========================================
   NEW TRANSLATION CARDS DESIGN
   ========================================== */
.trans-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.trans-card-new {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trans-card-new:hover {
    border-color: rgba(0, 245, 212, 0.4);
    background: rgba(0, 245, 212, 0.05);
    transform: translateY(-2px);
}

.trans-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.trans-card-new:hover::before {
    opacity: 1;
}

.trans-card-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.trans-card-content {
    flex: 1;
    min-width: 0;
}

.trans-card-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}

.trans-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 10px;
    line-height: 1.4;
}

.trans-card-example {
    font-size: 0.8rem;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.example-label {
    color: var(--primary);
    font-weight: 600;
}

.trans-card-example span:last-child {
    color: #aaa;
    font-style: italic;
}

.trans-card-usecase {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trans-card-usecase span {
    font-size: 1rem;
}

.trans-card-cta {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.trans-card-new:hover .trans-card-cta {
    opacity: 1;
    transform: translateX(0);
}

/* Info Card */
.trans-card-info {
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 16px;
    text-align: center;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.trans-card-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.trans-card-info > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.info-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.info-features span {
    font-size: 0.75rem;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .trans-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .trans-card-new {
        flex-direction: column;
        text-align: center;
    }
    
    .trans-card-icon {
        margin: 0 auto;
    }
    
    .trans-card-example {
        justify-content: center;
    }
    
    .trans-card-usecase {
        justify-content: center;
    }
    
    .trans-card-cta {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 12px;
    }
}

/* ==========================================
   CASE 6: TRANSLATION SHOWCASE (COMPACT)
   ========================================== */
.trans-showcase {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
}

.trans-flags-wheel {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.flag-item {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flag-item.active {
    opacity: 1;
    border-color: var(--primary);
    background: rgba(0, 245, 212, 0.1);
    transform: scale(1.1);
}

.flag-item:hover {
    opacity: 0.8;
}

.trans-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.trans-source, .trans-result {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
}

.trans-result {
    border-color: rgba(0, 245, 212, 0.3);
    background: rgba(0, 245, 212, 0.05);
}

.source-label, .result-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-label {
    color: var(--primary);
}

.source-post, .result-post {
    transition: all 0.3s ease;
}

.source-post strong, .result-post strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.source-post p, .result-post p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.result-post p {
    color: var(--text);
}

.trans-magic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.magic-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.magic-label {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
}

.magic-dots {
    display: flex;
    gap: 4px;
}

.magic-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}

.magic-dots span:nth-child(2) { animation-delay: 0.2s; }
.magic-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.trans-stats-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trans-stats-row span {
    font-size: 0.85rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .trans-flow {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .trans-magic {
        flex-direction: row;
        gap: 12px;
    }
    
    .magic-dots {
        display: none;
    }
    
    .trans-stats-row {
        gap: 10px;
    }
    
    .trans-stats-row span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* =============================================
   CHAT PAGE STYLES - chat.php
   ============================================= */

/* Chat Landing Section */
.chat-landing {
    padding: 120px 24px 60px;
    min-height: 100vh;
}

.chat-container {
    max-width: 900px;
    margin: 0 auto;
}

.chat-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-dim);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.chat-hero-badge svg {
    width: 20px;
    height: 20px;
}

.chat-hero-badge .count {
    font-weight: 700;
}

.chat-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.chat-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Chat Window Pro */
.chat-window-pro {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chat-pro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

/* Model Selector */
.model-selector {
    position: relative;
}

.model-selector-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.model-selector-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.model-selector.open .model-selector-btn {
    border-color: var(--primary);
}

.model-selector-btn .model-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-selector-btn .model-icon svg {
    width: 18px;
    height: 18px;
}

.model-selector-btn .arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
    margin-left: auto;
}

.model-selector.open .arrow {
    transform: rotate(180deg);
}

.free-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Model Dropdown */
.model-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 380px;
    max-height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    overflow-y: auto;
    z-index: 1000;
}

.model-selector.open .model-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.model-cat {
    padding: 8px 0;
}

.model-cat:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.model-cat-header {
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all var(--transition);
}

.model-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.model-item.active {
    background: var(--primary-dim);
}

.model-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.model-item-icon svg {
    width: 18px;
    height: 18px;
}

.model-item-info {
    flex: 1;
    min-width: 0;
}

.model-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.model-item-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.model-item-caps {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.cap-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
}

.cap-tag svg {
    width: 12px;
    height: 12px;
}

.model-price {
    text-align: right;
    flex-shrink: 0;
}

.model-price .price-main {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Message Counter */
.msg-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.msg-counter svg {
    color: var(--primary);
}

.msg-counter .num {
    font-weight: 700;
    color: var(--primary);
}

/* Chat Body */
.chat-pro-body {
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

/* Chat Welcome */
.chat-welcome-pro {
    padding: 40px 24px;
    text-align: center;
}

.chat-welcome-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-dim), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-welcome-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.chat-welcome-pro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.chat-welcome-pro p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Chat Models Grid */
.chat-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.chat-model-card {
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.chat-model-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.chat-model-card.active {
    background: var(--primary-dim);
    border-color: rgba(0, 245, 212, 0.4);
}

.chat-model-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.chat-model-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.chat-model-icon svg {
    width: 16px;
    height: 16px;
}

.chat-model-name h4 {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-model-name .provider {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.chat-model-price {
    font-size: 0.8rem;
}

.chat-model-price .price-value {
    color: var(--text-secondary);
}

.chat-model-price .price-value.free {
    color: #10b981;
    font-weight: 600;
}

/* Chat Ticker */
.chat-ticker {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin-top: 16px;
}

.chat-ticker-wrapper {
    display: flex;
    gap: 12px;
    animation: tickerScroll 40s linear infinite;
    width: max-content;
}

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

.chat-ticker-item {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.chat-ticker-item:hover {
    background: var(--primary-dim);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--primary);
}

/* Messages Container */
.messages-container {
    display: none;
    padding: 20px;
}

.messages-container.active {
    display: block;
}

/* Message Styles */
.msg {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.msg.user {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg.user .msg-avatar {
    background: linear-gradient(135deg, #7b61ff, #a78bfa);
}

.msg.ai .msg-avatar {
    background: linear-gradient(135deg, var(--primary), #10b981);
}

.msg-avatar svg {
    width: 18px;
    height: 18px;
    color: white;
}

.msg-body {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.msg.user .msg-body {
    background: linear-gradient(135deg, #7b61ff, #6d5ae6);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg.ai .msg-body {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Chat Input */
.chat-pro-input {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

.input-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.input-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}

.input-main {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 12px 16px;
}

.input-main textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: none;
    max-height: 150px;
}

.input-main textarea::placeholder {
    color: var(--text-muted);
}

.send-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: #0a0a0f;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
    background: #00d4b8;
    transform: scale(1.05);
}

.send-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.send-button svg {
    width: 20px;
    height: 20px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    overflow-x: auto;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.quick-btn:hover {
    background: var(--primary-dim);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--primary);
}

.quick-btn svg {
    width: 14px;
    height: 14px;
}

/* Chat CTA Box */
.chat-cta-box {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.chat-cta-box p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* Code Block Wrapper */
.code-block-wrapper {
    margin: 12px 0;
    background: #1a1a2e;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.code-block-lang {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.code-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
}

.code-copy-btn:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
}

.code-copy-btn svg {
    width: 14px;
    height: 14px;
}

.code-block-wrapper pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
}

.code-block-wrapper code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.chat-inline-code {
    padding: 2px 6px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: var(--primary);
}

.chat-quote {
    padding: 12px 16px;
    border-left: 3px solid var(--primary);
    background: rgba(0, 245, 212, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Chat Alerts */
.chat-alert {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

.chat-alert-info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); }
.chat-alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); }
.chat-alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }
.chat-alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }

.chat-alert-icon { font-size: 1.2rem; }
.chat-alert-content { flex: 1; }

/* Chat Badge */
.chat-badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.chat-badge-default { background: rgba(255, 255, 255, 0.1); }
.chat-badge-primary { background: var(--primary-dim); color: var(--primary); }
.chat-badge-success { background: rgba(16, 185, 129, 0.2); color: #10b981; }

/* Chat Card */
.chat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 8px 0;
}

.chat-card-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.chat-card-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Chat Button */
.chat-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.chat-button-default {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
}

.chat-button-primary {
    background: var(--primary);
    color: #0a0a0f;
}

.chat-button:hover {
    transform: translateY(-1px);
}

.chat-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* Models Section */
.models-section {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.models-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Capability Legend */
.cap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.cap-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.cat-separator {
    grid-column: 1 / -1;
    padding: 24px 0 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.cat-separator h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.cat-separator p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Model Card Pro */
.model-card-pro {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition);
}

.model-card-pro:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.model-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.model-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.model-card-icon svg {
    width: 22px;
    height: 22px;
}

.model-card-title h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.model-card-title .provider {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.model-card-caps {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.model-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 16px;
    min-height: 40px;
}

.model-card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.model-card-price .label,
.model-card-usage .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.model-card-price .value {
    font-size: 0.95rem;
    font-weight: 600;
}

.model-card-price .value.free {
    color: #10b981;
}

.model-card-usage .value {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Modal */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-bg.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.modal-box h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal-box > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-benefits {
    text-align: left;
    margin-bottom: 24px;
}

.modal-benefits > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.modal-benefits span {
    font-size: 1.2rem;
}

.auth-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.auth-status.active {
    display: flex;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-dim);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .chat-landing {
        padding: 100px 16px 40px;
    }
    
    .chat-hero-title {
        font-size: 1.8rem;
    }
    
    .chat-hero-subtitle {
        font-size: 1rem;
    }
    
    .chat-pro-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .model-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .chat-models-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .msg-body {
        max-width: 90%;
    }
    
    .quick-actions {
        flex-wrap: nowrap;
        padding: 10px 12px;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .chat-models-grid {
        grid-template-columns: 1fr;
    }
    
    .model-selector-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .chat-model-card {
        padding: 12px;
    }
}

/* =============================================
   ADDITIONAL SECTIONS STYLES - chat.php
   ============================================= */

/* Section Head (not header) */
.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-head p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-dim);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-tag svg {
    width: 16px;
    height: 16px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Benefits Section */
.benefits-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.benefit-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.benefit-card .icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dim);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 14px;
    margin-bottom: 20px;
}

.benefit-card .icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.benefit-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: 80px 24px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item.open {
    border-color: rgba(0, 245, 212, 0.3);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: all var(--transition);
}

.faq-q:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-q h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.faq-q .arr {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.faq-item.open .faq-q .arr {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-a p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.cta-section > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #0a0a0f;
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 245, 212, 0.4);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-telegram {
    background: linear-gradient(135deg, #26a5e4, #0088cc);
    color: white;
    box-shadow: 0 4px 20px rgba(38, 165, 228, 0.3);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(38, 165, 228, 0.4);
}

.btn-telegram svg {
    width: 20px;
    height: 20px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive for additional sections */
@media (max-width: 768px) {
    .benefits-section,
    .faq-section,
    .cta-section {
        padding: 60px 16px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-q {
        padding: 16px 20px;
    }
    
    .faq-item.open .faq-a {
        padding: 0 20px 16px;
    }
    
    .cta-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}
