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

        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #ffffff;
            color: #000000;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Основные переменные */
        :root {
            --primary: #0077b6;
            --primary-light: #0096c7;
            --accent: #00d4ff;
            --orange: #e55a28;
            --purple: #8b5cf6;
            --pink: #ec4899;
            --glow: rgba(0, 212, 255, 0.6);
            --glass: rgba(255, 255, 255, 0.1);
        }

        /* Заголовки - тонкие */
        h1, h2, h3 {
            font-weight: 200;
            color: #343a40;
        }

        p {
            color: #000000;
        }

        /* Анимации */
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes holographicGlow {
            0%, 100% { 
                filter: drop-shadow(0 0 10px var(--primary));
                transform: scale(1);
            }
            50% { 
                filter: drop-shadow(0 0 20px var(--accent));
                transform: scale(1.02);
            }
        }

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

        /* Логотип */
        .neon-sheen {
            background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
            background-size: 200% 200%;
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            display: inline-block;
            animation: gradientShift 6s ease infinite;
        }

        /* Хедер */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(25px);
            border-bottom: 1px solid rgba(0, 119, 182, 0.15);
            padding: 1rem 0;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .header-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .header-logo .logo-text {
            font-size: 1.8rem;
            font-weight: 300;
            text-transform: uppercase;
            letter-spacing: 3px;
        }

        .header-nav {
            flex: 1;
            display: flex;
            justify-content: center;
        }

        .header-menu {
            list-style: none;
            display: flex;
            gap: 2rem;
            margin: 0;
            padding: 0;
        }

        .header-menu a {
            color: #1e293b;
            text-decoration: none;
            font-weight: 600;
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid transparent;
        }

        .header-menu a:hover {
            color: var(--primary);
            background: rgba(0, 119, 182, 0.05);
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .header-auth {
            display: flex;
            gap: 1.5rem;
            align-items: center;
        }

        .header-btn-login {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            border: 2px solid var(--primary);
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

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

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

        .header-btn-login:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        .header-btn-register {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            border: none;
            padding: 0.8rem 2rem;
            font-weight: 600;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        .header-btn-register::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--accent), var(--primary));
            opacity: 0;
            transition: opacity 0.3s;
        }

        .header-btn-register:hover::before {
            opacity: 1;
        }

        .header-btn-register:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }

        .header-btn-register span {
            position: relative;
            z-index: 2;
        }

        /* Кнопка выйти - стиль для авторизованных пользователей */
        button.header-btn-logout {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
            border: 2px solid rgba(239, 68, 68, 0.2);
            padding: 0.8rem 2rem;
            font-weight: 600;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
            display: inline-block;
            cursor: pointer;
            font-family: inherit;
            font-size: inherit;
        }

        button.header-btn-logout:hover {
            background: #dc2626;
            color: white;
            border-color: #dc2626;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
        }

        button.header-btn-logout span {
            position: relative;
            z-index: 2;
        }

        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #343a40;
            padding: 0.5rem;
            border-radius: 4px;
            transition: all 0.3s;
        }

        /* Основной контент */
        .main-content {
            margin-top: 0;
            width: 100%;
            background: #ffffff;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .container-hero {
            width: 100%;
            margin: 0;
            padding: 0 2rem;
        }

        .section {
            padding: 6rem 0;
            animation: slideInUp 1s ease-out;
        }

        /* Hero секция - ПРОФЕССИОНАЛЬНАЯ ВЕРСИЯ */
        .hero {
            height: 85vh;
            margin: 80px 0 0 0;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: linear-gradient(-45deg, var(--primary), var(--primary-light), #023e8a, var(--primary));
            background-size: 400% 400%;
            animation: gradientShift 8s ease infinite;
            border-radius: 0;
        }

        .hero-content {
            width: 100%;
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 1.5rem;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .hero-title {
            font-size: 2.5rem;
            font-weight: 500;
            margin-bottom: 1.5rem;
            color: white;
            line-height: 1.2;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .hero-description {
            font-size: 1.3rem;
            margin-bottom: 3rem;
            line-height: 1.7;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }

        .cta-button {
            display: inline-block;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 1.2rem 3rem;
            font-size: 1.2rem;
            font-weight: 700;
            text-decoration: none;
            border-radius: 4px;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.3s;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        }

        .cta-button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 600;
            text-align: center;
            margin-bottom: 3rem;
            color: var(--primary);
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 720px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
            z-index: 10;
        }

        /* Выгоды */
        .benefits {
            background: #ffffff;
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 3rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Улучшенная система теней */
        .benefit-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            padding: 2rem 1.5rem;
            border-radius: 12px;
            text-align: center;
            border: 1px solid rgba(0, 119, 182, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            min-height: 250px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        .benefit-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            border-color: var(--orange);
        }
        
        /* Disabled state for benefit cards */
        .benefit-card.disabled {
            opacity: 0.6;
            background: rgba(255, 255, 255, 0.5);
            pointer-events: none;
            cursor: not-allowed;
        }
        
        .benefit-card.disabled:hover {
            transform: none;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            border-color: rgba(255, 255, 255, 0.2);
        }

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

        .benefit-description {
            font-size: 1rem;
            line-height: 1.6;
            color: #000000;
        }

        /* Функции */
        .how-it-works {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        }

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

        .feature-item {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(15px);
            padding: 2rem;
            border-radius: 12px;
            border: 1px solid rgba(0, 119, 182, 0.1);
            border-left: 4px solid var(--primary);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        .feature-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            border-left-color: var(--purple);
        }

        .feature-title {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #343a40;
        }

        .feature-description {
            font-size: 1rem;
            color: #000000;
            line-height: 1.6;
        }

        /* ПРОСТОЙ КАЛЬКУЛЯТОР */
        .economics {
            background: #ffffff;
        }

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

        .section-subtitle {
            font-size: 1.2rem;
            color: #000000;
            margin-bottom: 4rem;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            text-align: center;
        }

        .calculator-container {
            max-width: 800px;
            margin: 3rem auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .calc-tabs {
            display: flex;
            background: #f8f9fa;
        }

        .calc-tab {
            flex: 1;
            padding: 1rem;
            border: none;
            background: transparent;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1.1rem;
            color: #6c757d;
        }

        .calc-tab.active {
            background: var(--primary);
            color: white;
        }

        .calc-section {
            padding: 2rem;
        }

        .calc-section.hidden {
            display: none;
        }

        .calc-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .input-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: #343a40;
        }

        .input-group input {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

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

        .calc-result {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
            margin-top: 2rem;
        }

        .result-label {
            font-size: 1rem;
            margin-bottom: 0.5rem;
            opacity: 0.9;
        }

        .result-value {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .result-period {
            font-size: 0.9rem;
            opacity: 0.8;
        }

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

        .fact-item {
            text-align: center;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 4px;
            border: 1px solid var(--glass);
            transition: all 0.3s;
        }

        .fact-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .fact-number {
            font-size: 2.5rem;
            font-weight: 700;
            background: linear-gradient(45deg, var(--primary), var(--purple));
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            margin-bottom: 0.5rem;
        }

        .fact-label {
            font-size: 1.1rem;
            color: #6c757d;
            font-weight: 600;
        }

        /* Тарифы */
        .pricing {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .pricing-card {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 16px;
            padding: 2.5rem 2rem;
            border: 2px solid rgba(0, 119, 182, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            text-align: center;
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        .pricing-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            border-color: var(--primary);
        }

        .pricing-card.featured {
            border-color: var(--primary);
            transform: translateY(-8px);
            background: linear-gradient(135deg, rgba(0, 119, 182, 0.03) 0%, rgba(255, 255, 255, 0.97) 100%);
            box-shadow: 0 20px 25px -5px rgba(0, 119, 182, 0.1), 0 10px 10px -5px rgba(0, 119, 182, 0.04);
        }

        .pricing-badge {
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            padding: 0.5rem 1.5rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        }

        .pricing-header {
            margin-bottom: 2rem;
        }

        .pricing-title {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--primary);
        }

        .pricing-subtitle {
            font-size: 1rem;
            color: #6c757d;
        }

        .pricing-price {
            margin-bottom: 2rem;
        }

        .price-amount {
            font-size: 3rem;
            font-weight: 300;
            color: var(--primary);
        }

        .price-period {
            font-size: 1.1rem;
            color: #6c757d;
        }

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

        .pricing-features li {
            padding: 0.8rem 0;
            color: #000000;
            border-bottom: 1px solid var(--glass);
            font-size: 1rem;
        }

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

        .pricing-button {
            width: 100%;
            padding: 1rem;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            border-radius: 4px;
            font-weight: 600;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 1rem;
        }

        .pricing-button:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        .pricing-button.primary {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        }

        .pricing-button.primary:hover {
            transform: translateY(-5px) scale(1.05);
        }

        .pricing-note {
            font-size: 0.9rem;
            color: #6c757d;
            font-style: italic;
        }

        .pricing-faq {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .faq-title {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 2rem;
            color: var(--primary);
        }

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

        .faq-item {
            text-align: left;
            background: rgba(255, 255, 255, 0.8);
            padding: 1.5rem;
            border-radius: 4px;
            border: 1px solid var(--glass);
            border-left: 4px solid var(--primary);
            transition: all 0.3s;
        }

        .faq-item:hover {
            transform: translateY(-5px);
            border-left-color: var(--orange);
        }

        .faq-question {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #343a40;
        }

        .faq-answer {
            color: #000000;
            line-height: 1.6;
        }

        /* CTA */
        .cta-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            text-align: center;
        }

        .cta-content {
            max-width: 600px;
            margin: 0 auto;
        }

        .cta-subtitle {
            font-size: 1.1rem;
            color: #000000;
            margin-top: 1rem;
        }

        /* Отзывы */
        .testimonials {
            background: #ffffff;
        }

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

        .testimonial-item {
            background: rgba(248, 249, 250, 0.8);
            padding: 2rem;
            border-radius: 4px;
            border: 1px solid var(--glass);
            border-left: 4px solid var(--primary);
            transition: all 0.3s;
        }

        .testimonial-item:hover {
            transform: translateY(-5px);
            border-left-color: var(--pink);
        }

        .testimonial-text {
            font-size: 1.1rem;
            font-style: italic;
            margin-bottom: 1rem;
            color: #000000;
        }

        .testimonial-author {
            font-weight: 700;
            background: linear-gradient(45deg, var(--primary), var(--orange));
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

        .testimonial-company {
            font-size: 0.9rem;
            color: #6c757d;
        }

        /* Футер */
        .footer {
            background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
            color: #f8fafc;
            padding: 4rem 0 2rem;
            position: relative;
        }

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

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

        .footer-brand {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .footer-logo-text {
            font-size: 1.8rem;
            font-weight: 300;
            text-transform: uppercase;
            letter-spacing: 2px;
            background: linear-gradient(45deg, var(--accent), #ffffff);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

        .footer-description {
            font-size: 1.1rem;
            line-height: 1.7;
            color: #cbd5e1;
            max-width: 400px;
        }

        .footer-stats {
            display: flex;
            gap: 2rem;
            margin-top: 1rem;
        }

        .footer-stat-number {
            font-size: 1.8rem;
            font-weight: 700;
            background: linear-gradient(45deg, var(--accent), var(--purple));
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            display: block;
        }

        .footer-stat-label {
            font-size: 0.9rem;
            color: #94a3b8;
        }

        .footer-column h4 {
            font-size: 1.1rem;
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

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

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

        .footer-links a {
            color: #cbd5e1;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 0.95rem;
        }

        .footer-links a:hover {
            color: var(--accent);
            transform: translateX(5px);
        }

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

        .footer-copyright {
            color: #94a3b8;
            font-size: 0.9rem;
        }

        .footer-legal {
            display: flex;
            gap: 2rem;
        }

        .footer-legal a {
            color: #94a3b8;
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
        }

        .footer-legal a:hover {
            color: var(--accent);
        }

        /* Генерация контента */
        .models-section, .prompt-section {
            margin-bottom: 2rem;
        }

        .models-section h3, .prompt-section h3 {
            font-size: 1.4rem;
            font-weight: 400;
            margin-bottom: 0.5rem;
            color: #343a40;
        }

        .models-section p, .prompt-section p {
            font-size: 1rem;
            color: #6b7280;
            margin-bottom: 1rem;
        }

        /* Модели - сетка 4x2 */
        .models-grid-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            margin: 1rem 0;
        }

        .model-card {
            padding: 1rem;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-left: 4px solid var(--primary);
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            text-align: center;
            position: relative;
        }

        .model-card:hover {
            transform: translateY(-5px);
            border-left-color: var(--orange);
        }

        .model-card.selected {
            border-left-color: var(--accent);
            background: rgba(0, 119, 182, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
        }
        
        .model-card.selected::after {
            content: '✓';
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: var(--accent);
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
        }
        
        /* Disabled state for model cards */
        .model-card.disabled {
            opacity: 0.6;
            background: rgba(255, 255, 255, 0.4);
            pointer-events: none;
            cursor: not-allowed;
        }
        
        .model-card.disabled:hover {
            transform: none;
            border-left-color: var(--primary);
        }

        .model-card i, .model-card strong {
            font-size: 1.5rem;
            color: var(--primary);
        }

        .model-card span {
            font-size: 1.3rem;
            font-weight: 300;
        }

        /* Промт */
        .prompt-section textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid #ddd;
            border-radius: 4px;
            font-family: inherit;
            font-size: 1rem;
            resize: none;
            margin: 1rem 0;
            min-height: 100px;
            max-height: 400px;
            overflow-y: auto;
            transition: height 0.3s ease;
        }

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

        .char-counter {
            text-align: right;
            font-size: 0.9rem;
            color: #666;
            margin-top: -0.5rem;
            margin-bottom: 1rem;
        }

        .char-counter.warning {
            color: var(--orange);
        }

        .char-counter.error {
            color: #dc3545;
        }

        /* Кнопка генерации */
        .button-container {
            display: flex;
            justify-content: flex-end;
            margin-top: 1rem;
        }

        .prompt-section button {
            background: var(--primary);
            color: white;
            padding: 1rem 2rem;
            font-size: 1.2rem;
            font-weight: 400;
            border-radius: 4px;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }

        .prompt-section button:hover {
            background: #005a8b;
            transform: translateY(-2px);
        }

        /* Результаты генерации */
        .result-panels {
            padding: 1rem;
        }
        
        .result-panel {
            display: none;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .result-panel.active {
            display: block;
        }
        
        .result-text {
            font-size: 1rem;
            line-height: 1.6;
            color: #000;
            margin-bottom: 1rem;
            white-space: pre-wrap;
            word-wrap: break-word;
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 4px;
            border: 1px solid #e9ecef;
            max-height: 500px;
            overflow-y: auto;
            transition: all 0.3s ease;
        }
        
        .result-actions {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
        }
        
        .copy-btn, .select-btn, .edit-btn, .result-actions .add-image-btn {
            padding: 0.5rem 1rem;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }
        
        .copy-btn:hover, .select-btn:hover, .edit-btn:hover, .result-actions .add-image-btn:hover {
            background: var(--primary);
            color: white;
        }
        
        .select-btn {
            background: var(--primary);
            color: white;
        }
        
        .select-btn:hover {
            background: #005a8b;
        }
        
        .results-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }
        
        /* Компактные model-card для результатов - ПОЛНАЯ ПЕРЕОПРЕДЕЛЕНИЕ */
        .result-model-card {
            /* Базовые размеры */
            padding: 0.4rem 0.8rem;
            min-width: 90px;
            max-width: 130px;
            flex: none;
            min-height: 32px;
            
            /* Компоновка */
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            gap: 0.4rem;
            text-align: left;
            
            /* Полное переопределение стилей */
            border: 2px solid var(--primary) !important;
            border-left: 2px solid var(--primary) !important;
            background: rgba(255, 255, 255, 0.8) !important;
            color: var(--primary) !important;
            transform: none !important;
            box-shadow: none !important;
        }
        
        .result-model-card i, .result-model-card strong {
            font-size: 0.85rem;
        }
        
        .result-model-card span {
            font-size: 0.8rem;
            font-weight: 400;
        }
        
        /* Убираем ВСЕ эффекты наведения для результатов */
        .result-model-card:hover {
            border: 2px solid var(--primary) !important;
            border-left: 2px solid var(--primary) !important;
            transform: none !important;
            box-shadow: none !important;
            background: rgba(255, 255, 255, 0.8) !important;
            color: var(--primary) !important;
        }
        
        /* ТОЛЬКО активный таб оранжевый */
        .result-model-card.active {
            border: 2px solid var(--orange) !important;
            border-left: 2px solid var(--orange) !important;
            background: rgba(255, 107, 53, 0.1) !important;
            color: var(--orange) !important;
            transform: none !important;
            box-shadow: none !important;
        }
        
        .result-model-card.active:hover {
            border: 2px solid var(--orange) !important;
            border-left: 2px solid var(--orange) !important;
            background: rgba(255, 107, 53, 0.1) !important;
            color: var(--orange) !important;
        }
        
        /* Полностью убираем галочки для результатов */
        .result-model-card::after,
        .result-model-card.selected::after,
        .result-model-card.active::after {
            display: none !important;
        }
        
        .result-tab {
            padding: 0.4rem 0.6rem;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-family: inherit;
            font-size: 0.8rem;
            white-space: nowrap;
            min-height: 32px;
        }
        
        .result-tab.active {
            border-color: var(--accent);
            background: transparent;
            color: var(--accent);
        }
        
        .result-tab:hover {
            border-color: var(--accent);
            color: var(--accent);
            transform: translateY(-1px);
        }
        
        .result-tab i, .result-tab strong {
            font-size: 0.85rem;
            color: inherit;
        }
        
        .result-tab span {
            font-size: 0.8rem;
            font-weight: 400;
        }
        
        .tab-badge {
            background: var(--orange);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 12px;
            font-size: 0.75rem;
        }
        
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(0, 119, 182, 0.3);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .full-width {
            grid-column: 1 / -1;
        }
        
        /* Стили для результатов без рамок */
        .results-container {
            width: 100%;
            background: none;
            border: none;
            padding: 0;
            margin: 0;
        }
        
        .loading-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 1rem;
        }
        
        .loading-description {
            font-size: 1rem;
            color: #666;
            margin: 0;
        }
        
        /* Заголовок результатов - в 2 раза тоньше с градиентом */
        .results-title {
            font-size: 2.5rem;
            font-weight: 300;
            text-align: center;
            margin-bottom: 3rem;
            background: linear-gradient(90deg, #005577, #0099cc, #00d4ff);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            position: relative;
        }
        
        .results-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 720px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
            z-index: 10;
        }
        
        /* ЭТАЛОННЫЙ ЗАГОЛОВОК - ТОНКИЙ С ГРАДИЕНТОМ */
        .gradient-title {
            font-size: 2.5rem;
            font-weight: 300;
            text-align: center;
            margin-bottom: 3rem;
            background: linear-gradient(90deg, #005577, #0099cc, #00d4ff);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            position: relative;
        }

        .gradient-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 720px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
            z-index: 10;
        }

        /* РЕДАКТОР РЕЗУЛЬТАТОВ */
        .result-editor {
            background: rgba(255, 255, 255, 0.8);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 2rem 0;
            border: 1px solid rgba(0, 0, 0, 0.1);
            display: none;
        }

        .result-editor.active {
            display: block;
        }

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

        .editor-header h3 {
            margin: 0;
            color: var(--primary);
            font-weight: 300;
        }

        .editor-actions {
            display: flex;
            gap: 0.5rem;
        }

        .action-btn {
            padding: 0.5rem 1rem;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .action-btn:hover {
            border-color: var(--orange);
            color: var(--orange);
            transform: translateY(-2px);
        }

        .result-textarea {
            width: 100%;
            min-height: 150px;
            max-height: 400px;
            padding: 1rem;
            border: 2px solid #ddd;
            border-radius: 4px;
            font-family: inherit;
            font-size: 1rem;
            resize: none;
            transition: all 0.3s ease;
            line-height: 1.6;
        }

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

        .editor-footer {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        .save-btn, .reset-btn {
            padding: 0.75rem 1.5rem;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

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

        .reset-btn {
            border-color: #dc3545;
            color: #dc3545;
        }

        .reset-btn:hover {
            background: #dc3545;
            color: white;
        }

        /* ГЕНЕРАЦИЯ ИЗОБРАЖЕНИЙ */
        .image-generation {
            background: rgba(255, 255, 255, 0.8);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 2rem 0;
            border: 1px solid rgba(0, 0, 0, 0.1);
            display: none;
        }

        .image-generation.active {
            display: block;
        }

        .image-models {
            margin-bottom: 2rem;
        }

        .image-models h3 {
            margin-bottom: 1rem;
            color: var(--primary);
            font-weight: 300;
        }

        .image-models-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .image-model-card {
            position: relative;
            padding: 1rem;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-left: 4px solid var(--primary);
            background: rgba(255, 255, 255, 0.8);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            text-align: center;
        }

        .image-model-card:hover {
            border-left-color: var(--orange);
            transform: translateY(-2px);
        }

        .image-model-card.selected {
            border-left-color: var(--accent);
            background: rgba(0, 119, 182, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
        }

        .image-model-card.selected::after {
            content: '✓';
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: var(--accent);
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
        }

        .image-model-card i, .image-model-card strong {
            font-size: 1.5rem;
            color: var(--primary);
        }

        .image-model-card span {
            font-size: 1rem;
            font-weight: 300;
        }

        .image-prompt {
            margin-top: 2rem;
        }

        .image-prompt h3 {
            margin-bottom: 1rem;
            color: var(--primary);
            font-weight: 300;
        }

        .image-prompt-textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid #ddd;
            border-radius: 4px;
            font-family: inherit;
            font-size: 1rem;
            resize: none;
            transition: all 0.3s ease;
            margin-bottom: 0.5rem;
        }

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

        .image-char-counter {
            text-align: right;
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 1rem;
        }

        .image-settings {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin: 1rem 0;
        }

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

        .setting-group label {
            font-weight: 500;
            color: var(--primary);
            font-size: 0.9rem;
        }

        .image-size-select, .image-style-select {
            padding: 0.5rem;
            border: 2px solid #ddd;
            border-radius: 4px;
            background: white;
            font-size: 0.9rem;
            cursor: pointer;
        }

        .image-size-select:focus, .image-style-select:focus {
            outline: none;
            border-color: var(--primary);
        }

        .image-button-container {
            display: flex;
            justify-content: center;
            margin-top: 1.5rem;
        }

        .generate-image-btn {
            padding: 0.75rem 2rem;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.1rem;
            font-weight: 500;
        }

        .generate-image-btn:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        /* КНОПКА ДОБАВЛЕНИЯ ИЗОБРАЖЕНИЯ */
        .add-image-container {
            text-align: center;
            margin: 2rem 0;
            padding: 1rem;
        }

        .add-image-btn {
            padding: 0.75rem 1.5rem;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            font-weight: 500;
        }

        .add-image-btn:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        /* INLINE ПАНЕЛЬ ГЕНЕРАЦИИ ИЗОБРАЖЕНИЙ */
        .image-generation-panel {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 2rem;
            margin: 2rem 0;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .image-generation-panel h3 {
            margin: 0 0 1.5rem 0;
            color: var(--primary);
            font-weight: 300;
            font-size: 1.5rem;
        }

        .image-context {
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 4px;
            border-left: 4px solid var(--primary);
        }

        .image-context h4 {
            margin: 0 0 0.5rem 0;
            color: var(--primary);
            font-size: 1rem;
            font-weight: 500;
        }

        .image-context p {
            margin: 0;
            color: #666;
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .image-prompt-row {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2rem;
            margin-bottom: 1.5rem;
        }

        .image-prompt-field h4 {
            margin: 0 0 0.5rem 0;
            color: var(--primary);
            font-size: 1rem;
            font-weight: 500;
        }

        .image-prompt-field textarea {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid #ddd;
            border-radius: 4px;
            font-family: inherit;
            font-size: 0.9rem;
            resize: vertical;
            min-height: 100px;
        }

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

        .image-char-counter {
            text-align: right;
            font-size: 0.8rem;
            color: #666;
            margin-top: 0.25rem;
        }

        .image-options-inline {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .inline-option {
            display: flex;
            flex-direction: column;
        }

        .inline-option label {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--primary);
            margin-bottom: 0.25rem;
        }

        .inline-option select {
            padding: 0.5rem;
            border: 2px solid #ddd;
            border-radius: 4px;
            font-size: 0.9rem;
            background: white;
            cursor: pointer;
        }

        .inline-option select:focus {
            outline: none;
            border-color: var(--primary);
        }

        .image-generation-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .close-panel-btn, .regenerate-btn, .cancel-btn, .save-inline-btn {
            padding: 0.75rem 1.5rem;
            border: 2px solid var(--primary);
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .close-panel-btn, .cancel-btn {
            background: transparent;
            color: #666;
            border-color: #ddd;
        }

        .close-panel-btn:hover, .cancel-btn:hover {
            background: #f8f9fa;
            border-color: #666;
        }

        .generate-image-btn, .save-inline-btn {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .generate-image-btn:hover, .save-inline-btn:hover {
            background: var(--primary-light);
            transform: translateY(-1px);
        }

        .regenerate-btn {
            background: transparent;
            color: var(--primary);
            border-color: var(--primary);
        }

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

        /* INLINE РЕЗУЛЬТАТ ГЕНЕРАЦИИ */
        .inline-image-result {
            border-top: 1px solid #e9ecef;
            padding-top: 1.5rem;
        }

        .inline-image-container {
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .inline-image-container img {
            max-width: 100%;
            max-height: 400px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .inline-image-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            padding: 2rem;
        }

        .inline-image-loading p {
            color: var(--primary);
            font-size: 1.1rem;
            margin: 0;
        }

        .inline-image-actions {
            display: flex;
            justify-content: center;
            gap: 1rem;
        }

        /* АДАПТИВНОСТЬ INLINE ПАНЕЛИ */
        @media (max-width: 768px) {
            .image-prompt-row {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .image-generation-panel {
                padding: 1rem;
            }
            
            .image-generation-actions, .inline-image-actions {
                flex-direction: column;
            }
        }

        /* МОДАЛЬНЫЕ ОКНА */
        .image-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: white;
            border-radius: 8px;
            max-width: 600px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            border-bottom: 1px solid #e9ecef;
        }

        .modal-header h3 {
            margin: 0;
            color: var(--primary);
            font-weight: 300;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            color: #666;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-modal:hover {
            color: var(--primary);
        }

        .modal-body {
            padding: 1.5rem;
        }

        .text-preview {
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 4px;
            border-left: 4px solid var(--primary);
        }

        .text-preview h4 {
            margin: 0 0 0.5rem 0;
            color: var(--primary);
            font-size: 1rem;
            font-weight: 500;
        }

        .text-preview p {
            margin: 0;
            color: #666;
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .image-prompt-section {
            margin-bottom: 1.5rem;
        }

        .image-prompt-section h4 {
            margin: 0 0 0.5rem 0;
            color: var(--primary);
            font-size: 1rem;
            font-weight: 500;
        }

        .modal-textarea {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid #ddd;
            border-radius: 4px;
            font-family: inherit;
            font-size: 0.9rem;
            resize: vertical;
            min-height: 80px;
        }

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

        .modal-char-counter {
            text-align: right;
            font-size: 0.8rem;
            color: #666;
            margin-top: 0.25rem;
        }

        .image-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .option-group {
            display: flex;
            flex-direction: column;
        }

        .option-group label {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--primary);
            margin-bottom: 0.25rem;
        }

        .option-group select {
            padding: 0.5rem;
            border: 2px solid #ddd;
            border-radius: 4px;
            font-size: 0.9rem;
            background: white;
            cursor: pointer;
        }

        .option-group select:focus {
            outline: none;
            border-color: var(--primary);
        }

        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            padding: 1.5rem;
            border-top: 1px solid #e9ecef;
        }

        .modal-btn {
            padding: 0.75rem 1.5rem;
            border: 2px solid var(--primary);
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .modal-btn.cancel-btn {
            background: transparent;
            color: #666;
            border-color: #ddd;
        }

        .modal-btn.cancel-btn:hover {
            background: #f8f9fa;
            border-color: #666;
        }

        .modal-btn.generate-btn, .modal-btn.save-btn {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .modal-btn.generate-btn:hover, .modal-btn.save-btn:hover {
            background: var(--primary-light);
            transform: translateY(-1px);
        }

        .modal-btn.secondary-btn {
            background: transparent;
            color: var(--primary);
            border-color: var(--primary);
        }

        .modal-btn.secondary-btn:hover {
            background: var(--primary);
            color: white;
        }

        /* РЕЗУЛЬТАТ ГЕНЕРАЦИИ */
        .generated-image-container {
            text-align: center;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .generated-image-container img {
            max-width: 100%;
            max-height: 400px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .image-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .image-loading p {
            color: var(--primary);
            font-size: 1.1rem;
            margin: 0;
        }

        /* АДАПТИВНОСТЬ МОДАЛОК */
        @media (max-width: 768px) {
            .image-options {
                grid-template-columns: 1fr;
            }
            
            .modal-content {
                margin: 1rem;
                width: calc(100% - 2rem);
            }
            
            .modal-footer {
                flex-direction: column;
            }
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            .container-hero {
                width: 100%;
                margin: 0;
                padding: 0 1rem;
            }

            .header-nav {
                display: none;
            }

            .mobile-menu-toggle {
                display: block;
            }

            .header-auth {
                gap: 0.5rem;
            }

            .header-btn-login, .header-btn-register, .header-btn-logout {
                padding: 0.7rem 1rem;
                font-size: 0.9rem;
            }
            
            .models-grid-4 {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .results-tabs {
                flex-wrap: wrap;
            }
            
            .image-models-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .image-settings {
                grid-template-columns: 1fr;
            }
            
            .editor-actions {
                flex-wrap: wrap;
            }

            .main-content {
                margin-top: 80px;
            }

            .hero {
                height: 75vh;
                margin: 80px 0 0 0;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .hero-title {
                font-size: 1.8rem;
            }

            .section-title {
                font-size: 2rem;
            }

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

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

            .features-grid, .testimonials-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

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

            .pricing-card.featured {
                transform: none;
            }

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

            .footer-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .footer-stats {
                justify-content: space-between;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
            
            /* Адаптивность для генерации */
            .models-grid-4 {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .results-tabs {
                flex-direction: column;
            }
            
            .result-tab {
                width: 100%;
                justify-content: center;
            }
            
            .result-actions {
                flex-direction: column;
                gap: 0.5rem;
            }
        }

/* Inline Image Generation Panel */
.image-generation-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.image-generation-panel h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.image-context {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.image-context h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1rem;
}

.image-context p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.image-prompt-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.image-prompt-field {
    flex: 1;
}

.image-prompt-field h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1rem;
}

.image-prompt-field textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.image-prompt-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
}

.image-char-counter {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.image-options-inline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 200px;
}

.inline-option {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.inline-option label {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.inline-option select {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.inline-option select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
}

.image-generation-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.close-panel-btn,
.generate-image-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-panel-btn {
    border-color: #6c757d;
    color: #6c757d;
}

.close-panel-btn:hover {
    background: rgba(108, 117, 125, 0.1);
    transform: translateY(-2px);
}

.generate-image-btn {
    border-color: var(--primary);
    color: var(--primary);
}

.generate-image-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 119, 182, 0.3);
}

.inline-image-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.inline-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.inline-image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #666;
}

.inline-image-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#inline-generated-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inline-image-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.regenerate-btn,
.cancel-btn,
.save-inline-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.regenerate-btn {
    border-color: var(--orange);
    color: var(--orange);
}

.regenerate-btn:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 90, 40, 0.3);
}

.cancel-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.cancel-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.save-inline-btn {
    border-color: var(--primary);
    color: var(--primary);
}

.save-inline-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 119, 182, 0.3);
}

@media (max-width: 768px) {
    .image-prompt-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .image-options-inline {
        min-width: auto;
    }
    
    .inline-option {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .inline-option label {
        min-width: 80px;
    }
    
    .inline-option select {
        flex: 1;
    }
    
    .image-generation-actions,
    .inline-image-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .close-panel-btn,
    .generate-image-btn,
    .regenerate-btn,
    .cancel-btn,
    .save-inline-btn {
        width: 100%;
    }
}

/* Post Action, Schedule, and Publish Panels */
.post-action-panel,
.schedule-panel,
.publish-panel {
    display: block; /* Показываем по умолчанию */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: none;
}

/* Disabled state for panels */
.post-action-panel.disabled,
.schedule-panel.disabled,
.publish-panel.disabled,
.result-panel-final.disabled {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Text Preview Card */
.text-preview-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.text-preview-card p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 1.5rem;
}

.form-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Platform cards use existing model-card styles */
.model-card input[type="checkbox"] {
    display: none;
}

/* Image Generation Panel */
.image-generation-panel {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: none;
}

.close-panel-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.image-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-group {
    flex: 1;
}

.option-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.option-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    font-size: 0.9rem;
}

.image-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.inline-image-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.inline-image-container {
    text-align: center;
    margin-bottom: 1rem;
}

.inline-image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.inline-image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--orange);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .models-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-options {
        flex-direction: column;
    }
    
    .image-actions {
        flex-direction: column;
    }
    
    .inline-image-actions {
        flex-direction: column;
    }
}

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

.panel-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.4rem;
}

.step-indicator {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.panel-header .close-panel-btn {
    width: auto;
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.3);
    border-radius: 50%;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-header .close-panel-btn:hover {
    background: rgba(108, 117, 125, 0.2);
    transform: scale(1.1);
}

.panel-text-preview {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.panel-text-preview h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
}

.panel-text-preview p {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.panel-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    justify-content: center;
    min-width: 150px;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 119, 182, 0.3);
}

.action-btn.secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.action-btn.secondary:hover {
    background: #6c757d;
    color: white;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Disabled state for action buttons */
.action-btn.disabled {
    opacity: 0.6;
    background: transparent;
    border-color: #ccc;
    color: #ccc;
    pointer-events: none;
    cursor: not-allowed;
}

.action-btn.disabled:hover {
    background: transparent;
    border-color: #ccc;
    color: #ccc;
    transform: none;
    box-shadow: none;
}

/* Disabled state for inputs */
input[disabled] {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: #999;
    cursor: not-allowed;
}

.action-btn i {
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .post-action-panel,
    .schedule-panel,
    .publish-panel {
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .panel-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .panel-header h3 {
        font-size: 1.2rem;
    }
    
    .panel-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-btn {
        width: 100%;
        min-width: auto;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Result Panel Final */
.result-panel-final {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: none;
}

.result-summary {
    margin-bottom: 1.5rem;
}

.result-success {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
}

.result-error {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
}

.success-icon {
    color: #28a745;
    font-size: 2rem;
    line-height: 1;
}

.error-icon {
    color: #dc3545;
    font-size: 2rem;
    line-height: 1;
}

.success-content h4,
.error-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.2rem;
}

.success-content p,
.error-content p {
    margin: 0.25rem 0;
    color: #333;
    font-size: 0.95rem;
}

.success-content span {
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .result-panel-final {
        padding: 1rem;
    }
    
    .result-success,
    .result-error {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .success-icon,
    .error-icon {
        font-size: 1.5rem;
    }
    
    .success-content h4,
    .error-content h4 {
        font-size: 1.1rem;
    }
    
    .step-indicator {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Schedule and Publish Forms */
.schedule-form,
.publish-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.platform-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.platform-checkbox:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.platform-checkbox input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.platform-checkbox input[type="checkbox"]:checked + i {
    color: var(--primary);
}

.platform-checkbox i {
    font-size: 1.1rem;
    color: #666;
    transition: color 0.3s ease;
}

.platform-checkbox input[type="checkbox"]:checked ~ * {
    color: var(--primary);
    font-weight: 500;
}

#schedule-datetime {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--primary);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#schedule-datetime:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
}

.publish-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    color: #856404;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.publish-note i {
    color: #ffc107;
    font-size: 1.1rem;
}

/* Loading timer styles */
.loading-timer {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0.8;
    font-family: 'Courier New', monospace;
}

.loading-description {
    font-style: italic;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin-bottom: 0.5rem;
}

.loading-title {
    transition: opacity 0.3s ease;
}

.loading-section {
    position: relative;
    background: linear-gradient(135deg, rgba(0,119,182,0.1), rgba(0,198,255,0.1));
    border-radius: 15px;
    border: 1px solid rgba(0,119,182,0.2);
}

/* Оверлей загрузки поверх результатов */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    min-height: 300px;
}

.loading-content {
    text-align: center;
    padding: 3rem;
}

.results-container {
    position: relative;
    min-height: 300px;
}

/* Фиксированное состояние выбора для соцсетей */
.schedule-panel .model-card.selected {
    border-left-color: var(--orange) !important;
    background: rgba(255, 107, 53, 0.1) !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2) !important;
}

.schedule-panel .model-card.selected:hover {
    border-left-color: var(--orange) !important;
    background: rgba(255, 107, 53, 0.1) !important;
}

/* Блок создания изображения */
.image-creation-section {
    background: linear-gradient(135deg, rgba(0,119,182,0.05), rgba(0,198,255,0.05));
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(0,119,182,0.1);
}

.image-creation-section.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.image-prompt-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

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

.image-preview {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.image-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Карточки моделей изображений */
.image-model-card {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    position: relative;
}

.image-model-card:hover {
    border-left-color: var(--orange);
    transform: translateY(-2px);
}

.image-model-card.selected {
    border-left-color: var(--accent);
    background: rgba(0, 119, 182, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

.image-model-card.selected::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--accent);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Блок предпросмотра поста */
.post-preview-section {
    background: linear-gradient(135deg, rgba(0,198,255,0.05), rgba(255,107,53,0.05));
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(0,198,255,0.1);
}

.post-preview-section.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.preview-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.preview-content {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.preview-image-container {
    flex-shrink: 0;
}

.preview-image-container img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.preview-text-container {
    flex: 1;
}

.preview-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    min-height: 100px;
    padding: 1rem;
    border: 2px dashed transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.preview-text:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,119,182,0.05);
}

.preview-meta {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.meta-label {
    font-weight: 600;
    color: #666;
    margin-right: 0.5rem;
}

.selected-platforms {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.platform-tag {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.text-edit-panel {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.post-text-editor {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.post-text-editor:focus {
    outline: none;
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .preview-content {
        flex-direction: column;
    }
    
    .preview-image-container img {
        width: 100%;
        height: auto;
        max-height: 250px;
    }
    
    .preview-actions {
        flex-direction: column;
    }
}

/* Модальное окно полноэкранного просмотра */
.post-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(0,119,182,0.05), rgba(0,198,255,0.05));
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.full-post-preview {
    text-align: center;
}

.full-post-image {
    margin-bottom: 2rem;
}

.full-post-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.full-post-text {
    text-align: left;
    background: rgba(248, 249, 250, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.full-post-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
    white-space: pre-wrap;
}

.modal-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    background: rgba(248, 249, 250, 0.5);
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .action-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    min-width: auto;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-actions {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .modal-actions .action-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: 120px;
    }
}

/* Красивое поле календаря в стиле contenius */
.datetime-input-container {
    position: relative;
    display: block;
}

.datetime-input {
    width: 100%;
    padding: 1rem 1.2rem;
    padding-left: 3.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,249,250,0.9));
    transition: all 0.3s ease;
    color: #333;
    cursor: pointer;
}

.datetime-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 12px rgba(0,119,182,0.15);
    transform: translateY(-1px);
}

.datetime-input:hover:not(:disabled) {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,119,182,0.1);
}

.datetime-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.datetime-label {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
}

.datetime-label i {
    color: var(--primary);
    font-size: 1.1rem;
}

.datetime-input:focus + .datetime-label,
.datetime-input:not(:placeholder-shown) + .datetime-label {
    opacity: 0;
}

.datetime-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
}

/* Стили для браузеров на основе Webkit */
.datetime-input::-webkit-datetime-edit {
    padding: 0;
    color: transparent;
}

.datetime-input:focus::-webkit-datetime-edit {
    color: #333;
}

.datetime-input::-webkit-datetime-edit-fields-wrapper {
    background: transparent;
}

.datetime-input::-webkit-datetime-edit-text {
    color: var(--primary);
    padding: 0 0.3rem;
}

.datetime-input::-webkit-datetime-edit-month-field,
.datetime-input::-webkit-datetime-edit-day-field,
.datetime-input::-webkit-datetime-edit-year-field,
.datetime-input::-webkit-datetime-edit-hour-field,
.datetime-input::-webkit-datetime-edit-minute-field {
    background: rgba(0,119,182,0.1);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    margin: 0 0.1rem;
    color: var(--primary);
    font-weight: 500;
}

/* Дополнительные улучшения для форм */
.form-section h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

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

.schedule-form .form-section:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .datetime-input {
        padding: 0.8rem 1rem;
        padding-left: 3rem;
        font-size: 0.95rem;
    }
    
    .datetime-label {
        left: 1rem;
    }
    
    .datetime-label i {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .platform-checkbox {
        padding: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .publish-note {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
}

/* Platform selection styles */
.platform-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.15);
}

.platform-card.selected {
    border-color: var(--orange);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}

.platform-card.selected::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--orange), var(--accent));
    border-radius: 12px;
    z-index: -1;
}

.platform-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.platform-card.selected .platform-indicator {
    background: var(--orange);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--orange);
}

.schedule-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    overflow: hidden;
}

.schedule-panel.disabled {
    display: none;
}
