/*********** Современный дизайн страницы одиночной генерации ***********/

/* === ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ === */
:root {
    /* Обновленная зеленая цветовая гамма */
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-light: #34d399;
    --accent-emerald: #047857;
    --accent-teal: #14b8a6;
    
    /* Градиенты с зеленым */
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --secondary-gradient: linear-gradient(135deg, #34d399 0%, #14b8a6 100%);
    --success-gradient: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
    --dark-gradient: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --card-gradient: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    
    /* Тени и эффекты */
    --card-shadow: 0 10px 40px rgba(16, 185, 129, 0.12);
    --card-shadow-hover: 0 20px 60px rgba(16, 185, 129, 0.20);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.3);
    --glow-green-strong: 0 0 30px rgba(16, 185, 129, 0.5);
    
    /* Переходы */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Радиусы */
    --border-radius: 20px;
    --border-radius-md: 12px;
    --border-radius-small: 8px;
    
    /* Отступы */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
}

/* === ЗАГОЛОВОК СТРАНИЦЫ === */
.acw-page-header {
    margin: 20px 0 24px 0;
    padding: 0;
    background: transparent;
    border: none;
    animation: fadeIn 0.6s ease-out;
}

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

.acw-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.acw-page-header .acw-page-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Компактные бейджи и кнопки для унификации с Pro-версией */
.acw-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
}

.acw-pill.ghost {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ecfccb;
}

.acw-page-header .acw-pill.ghost {
    background: rgba(16, 185, 129, 0.12);
    border: none;
    color: #065f46;
}

.acw-page-actions,
.acw-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.aiw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-size: 14px;
}

.aiw-btn-primary {
    background: #fef08a;
    color: #713f12;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
}

.aiw-btn-ghost {
    background: transparent;
    border-color: rgba(248, 250, 252, 0.4);
    color: #f8fafc;
}

.acw-page-header .aiw-btn-ghost {
    color: #065f46;
    border-color: rgba(6, 95, 70, 0.15);
}

.aiw-btn-link {
    background: transparent;
    padding: 0;
    border: none;
    color: var(--accent-teal);
    box-shadow: none;
}

.aiw-btn:hover,
.aiw-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

.acw-mode-hint {
    grid-column: 1 / -1;
    text-align: center;
    margin: -10px 0 18px;
    color: #ecfccb;
    font-size: 13px;
}

.acw-primary-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.acw-lite-hero {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(0, 122, 98, 0.95));
    border-radius: 32px;
    padding: 36px 40px;
    color: #ecfdf5;
    position: relative;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 118, 110, 0.35);
    gap: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.acw-lite-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 60%);
    pointer-events: none;
}

.acw-lite-hero-copy {
    position: relative;
    z-index: 1;
}

.acw-lite-hero h2 {
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -0.5px;
}

.acw-lite-hero p {
    margin: 0 0 12px;
    color: rgba(236, 253, 245, 0.9);
}

.acw-hero-quick-brief {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(236, 253, 245, 0.25);
}

.acw-hero-quick-brief-item {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px 16px;
}

.acw-hero-quick-brief-item strong {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a7f3d0;
}

.acw-hero-quick-brief-item span {
    display: block;
    margin-top: 6px;
    color: rgba(236, 253, 245, 0.85);
    font-size: 13px;
}

.acw-hero-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 24px 0 0;
    padding: 0;
}

.acw-hero-meta li {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(236, 253, 245, 0.75);
}

.acw-hero-meta strong {
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 0;
    margin-top: 4px;
}

.acw-hero-side-card {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.45);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    color: rgba(236, 253, 245, 0.9);
    box-sizing: border-box;
}

.acw-hero-side-card .aiw-btn-ghost {
    width: 100%;
    justify-content: center;
    border: none;
    color: #0f172a;
    background: linear-gradient(135deg, #fef08a, #fcd34d);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
    font-weight: 700;
    box-sizing: border-box;
    padding: 10px 18px;
}

.acw-hero-side-card .aiw-btn-ghost:hover {
    background: linear-gradient(135deg, #fde047, #facc15);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
}

.acw-lite-hero .acw-pill.ghost {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fef3c7;
}

.acw-hero-side-card h3 {
    margin: 12px 0 16px;
    font-size: 18px;
    color: #fefce8;
}

.acw-pro-checklist {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acw-pro-checklist li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}

.acw-pro-checklist li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #fef08a;
}

/* === ОСНОВНОЙ КОНТЕЙНЕР (КОМПАКТНЫЙ) === */
.ai-content-wizard-page-container {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 20px;
    border-radius: var(--border-radius);
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    margin: 15px 15px 15px 0;
    position: relative;
    overflow: visible;
    animation: fadeIn 0.6s ease-out;
    box-shadow: 0 25px 80px rgba(16, 185, 129, 0.25);
}

/* Анимированный фон с сеткой */
.ai-content-wizard-page-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveBackground 30s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

/* Дополнительный декоративный элемент */
.ai-content-wizard-page-container::after {
    content: none;
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

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

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

/* === РЕЖИМ LONGREAD === */
.ai-content-wizard-page-container.longread-mode {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    animation: pulseGlow 3s ease-in-out infinite;
}

.ai-content-wizard-page-container.longread-mode::after {
    content: none;
}

@keyframes pulseGlow {
    0%, 100% { 
        filter: brightness(1) saturate(1); 
        box-shadow: 0 25px 80px rgba(245, 158, 11, 0.25);
    }
    50% { 
        filter: brightness(1.05) saturate(1.1); 
        box-shadow: 0 30px 100px rgba(245, 158, 11, 0.35);
    }
}

/* === ПЕРЕКЛЮЧАТЕЛЬ РЕЖИМОВ === */
.mode-toggle {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0;
    z-index: 100;
    position: relative;
    opacity: 1;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.mode-toggle .toggle-wrapper {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mode-toggle .toggle-wrapper:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Іконки помощи по бокам */
.mode-help-icon {
    color: #ffffff;
    cursor: help;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 200;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-help-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.mode-help-icon:hover {
    color: #fef3c7;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* Tooltip для іконок help */
.mode-help-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    max-width: 400px;
    white-space: normal;
    line-height: 1.5;
    z-index: 100001;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 280px;
}

.mode-help-left::after {
    left: 100%;
    margin-left: 12px;
}

.mode-help-right::after {
    right: 100%;
    margin-right: 12px;
}

.mode-help-icon:hover::after {
    opacity: 1;
}

/* Стрелки для tooltip */
.mode-help-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100000;
}

.mode-help-left::before {
    left: 100%;
    margin-left: 6px;
    border-right: 6px solid #1f2937;
}

.mode-help-right::before {
    right: 100%;
    margin-right: 6px;
    border-left: 6px solid #1f2937;
}

.mode-help-icon:hover::before {
    opacity: 1;
}

.mode-toggle .toggle-label {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 var(--spacing-lg);
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.mode-toggle .toggle-label:hover {
    color: #fef3c7;
    transform: scale(1.05);
}

/* Иконка информации для Longread */
.longread-info-icon {
    margin-left: var(--spacing-xs);
    color: #fbbf24;
    font-size: 20px;
    vertical-align: middle;
    animation: pulse 2s ease-in-out infinite;
}

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

/* === СОВРЕМЕННЫЙ ПЕРЕКЛЮЧАТЕЛЬ === */
.mode-toggle .switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 40px;
}

.mode-toggle .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mode-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transition: var(--transition-smooth);
    border-radius: 40px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(16, 185, 129, 0.5);
    overflow: hidden;
}

/* Декоративная линия внутри переключателя */
.mode-toggle .slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: sliderShimmer 2s infinite;
}

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

.mode-toggle .slider:before {
    position: absolute;
    content: "";
    height: 32px;
    width: 32px;
    left: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    transition: var(--transition-smooth);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.mode-toggle .switch input:checked + .slider {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25), 0 4px 20px rgba(245, 158, 11, 0.6);
}

.mode-toggle .switch input:checked + .slider:before {
    transform: translateX(40px);
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
}

.mode-toggle .switch:hover .slider {
    transform: scale(1.05);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25), 0 6px 24px rgba(16, 185, 129, 0.6);
}

.mode-toggle .switch input:checked:hover + .slider {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25), 0 6px 24px rgba(245, 158, 11, 0.7);
}

/* === КОНТЕЙНЕРЫ ФОРМЫ И НАСТРОЕК (КОМПАКТНЫЕ) === */
.ai-content-wizard-form-container,
.ai-content-wizard-settings-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 16px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Floating animation for sidebar */
.ai-content-wizard-settings-container {
    animation: float 6s ease-in-out infinite;
    padding: 12px;
}

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

/* Декоративный элемент сверху - УБРАНО */
.ai-content-wizard-form-container::before,
.ai-content-wizard-settings-container h2 {
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 6px;
    line-height: 1.35;
    word-wrap: break-word;
}
.ai-content-wizard-settings-container h2 > span:first-child {
    display: inline-block;
    margin-bottom: 2px;
}
.ai-content-wizard-settings-container h2 br {
    display: none;
}
/* === СТИЛИ ФОРМЫ (КОМПАКТНЫЕ) === */
.ai-content-wizard-form-container form#ai_content_wizard_form {
    display: flex;
    flex-direction: column;
}

/* Анімація появи полів */
.acw-form-row {
    animation: slideInLeft 0.5s ease-out both;
}

.acw-form-row:nth-child(1) { animation-delay: 0.1s; }
.acw-form-row:nth-child(2) { animation-delay: 0.2s; }
.acw-form-row:nth-child(3) { animation-delay: 0.3s; }
.acw-form-row:nth-child(4) { animation-delay: 0.4s; }
.acw-form-row:nth-child(5) { animation-delay: 0.5s; }
.acw-form-row:nth-child(6) { animation-delay: 0.6s; }

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

/* Анімація появи полів */
.acw-form-field {
    animation: slideInLeft 0.5s ease-out both;
}

.acw-form-field:nth-child(1) { animation-delay: 0.1s; }
.acw-form-field:nth-child(2) { animation-delay: 0.2s; }
.acw-form-field:nth-child(3) { animation-delay: 0.3s; }
.acw-form-field:nth-child(4) { animation-delay: 0.4s; }

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

/* === МЕТКИ И ПОЛЯ ВВОДА (КОМПАКТНЫЕ) === */
.ai-content-wizard-form-container label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
    position: relative;
}

.ai-content-wizard-form-container label .required {
    color: #ef4444;
    font-weight: 700;
    font-size: 14px;
    animation: requiredPulse 2s ease-in-out infinite;
}

@keyframes requiredPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.ai-content-wizard-form-container label .info-icon {
    color: #10b981;
    cursor: help;
    transition: var(--transition-bounce);
    font-size: 16px;
    margin-left: auto;
}

.ai-content-wizard-form-container label .info-icon:hover {
    color: #059669;
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}

/* Современные поля ввода (компактные) */
.ai-content-wizard-form-container input[type="text"],
.ai-content-wizard-form-container select,
.ai-content-wizard-form-container textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ОБЯЗАТЕЛЬНЫЕ ПОЛЯ - выделены зеленой рамкой */
.acw-form-field:has(label .required) input[type="text"],
.acw-form-field:has(label .required) select,
.acw-form-field:has(label .required) textarea {
    border-color: #10b981;
    border-width: 2px;
    background: #ffffff;
}

.acw-form-field:has(label .required) input[type="text"]:focus,
.acw-form-field:has(label .required) select:focus,
.acw-form-field:has(label .required) textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), 0 2px 8px rgba(16, 185, 129, 0.2);
}
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ai-content-wizard-form-container input[type="text"]:hover,
.ai-content-wizard-form-container select:hover,
.ai-content-wizard-form-container textarea:hover {
    border-color: #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
    transform: translateY(-1px);
}

.ai-content-wizard-form-container input[type="text"]:focus,
.ai-content-wizard-form-container select:focus,
.ai-content-wizard-form-container textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
    background: #f9fafb;
}

.ai-content-wizard-form-container input[type="text"]::placeholder,
.ai-content-wizard-form-container textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
    font-weight: 400;
}

.ai-content-wizard-form-container textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.5;
}

/* === HERO & PROMO LAYOUT === */
.acw-lite-hero-detached {
    margin: 15px 15px 24px 0;
}

.acw-promopilot-placement {
    margin: 0 15px 24px 0;
}

.acw-promopilot-placement .promopilot-dashboard-banner {
    margin: 0 !important;
}

/* === FORM CARDS & CTA === */
.acw-form-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.acw-form-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.acw-settings-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 26px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.acw-settings-head .acw-pill.ghost,
.acw-settings-card .acw-pill.ghost {
    background: rgba(16, 185, 129, 0.14);
    border-color: transparent;
    color: #065f46;
}

.acw-form-card-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.acw-form-card-head h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.acw-form-card-head p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.acw-form-card-head .acw-pill {
    width: fit-content;
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
}

.acw-form-card-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.acw-form-card-body .acw-form-row {
    margin: 0;
}

.acw-form-card-body .acw-form-field {
    margin: 0;
}

.acw-form-card-body textarea {
    min-height: 90px;
}

.acw-locked-card {
    border: 1px dashed rgba(6, 95, 70, 0.35);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.02));
}

.acw-locked-card .acw-form-card-head h3 {
    color: #065f46;
}

.acw-locked-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #047857;
}

.acw-form-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acw-generate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.35);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.acw-generate-icon {
    display: none;
}

.acw-generate-icon svg {
    display: none;
}

.acw-generate-icon::before {
    content: none;
}

.acw-generate-copy {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.acw-generate-copy strong {
    font-size: 16px;
    line-height: 1;
}

.acw-generate-copy small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.acw-generate-arrow {
    display: none;
}

.acw-generate-button:hover {
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.acw-generate-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35);
}

.acw-cta-note {
    font-size: 13px;
    color: #4b5563;
    margin: 0 8px;
}

.acw-upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a 0%, #0b3b2c 100%);
    color: #f0fdf4;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.acw-upgrade-banner strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.acw-upgrade-banner p {
    margin: 0;
    color: rgba(240, 253, 244, 0.8);
    font-size: 14px;
}

.acw-upgrade-banner .aiw-btn {
    white-space: nowrap;
}

.acw-upgrade-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f766e 100%);
    border-radius: 20px;
    padding: 20px;
    color: #f0fdf4;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.acw-upgrade-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: #fef3c7;
}

.acw-upgrade-card p {
    margin: 0 0 16px;
    color: #fef3c7 !important;
    font-size: 14px;
    line-height: 1.5;
}

.acw-upgrade-card .aiw-btn-primary {
    background: linear-gradient(135deg, #fef08a, #fcd34d);
    color: #0f172a;
    width: 100%;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(254, 240, 138, 0.3);
    box-sizing: border-box;
}

.acw-upgrade-card .aiw-btn-primary:hover {
    background: linear-gradient(135deg, #fde047, #facc15);
    box-shadow: 0 10px 25px rgba(254, 240, 138, 0.4);
}

/* === ADMIN CHROME CLEANUP FOR THIS PAGE === */
body.ai-content-wizard_page_ai_content_wizard_create_post #wpfooter {
    display: none;
}

body.ai-content-wizard_page_ai_content_wizard_create_post #wpcontent {
    padding-bottom: 0;
}

/* === БЛОК ПЕРЕВОДА === */
.acw-translation-section {
    margin-top: 15px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(71, 118, 230, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-left: 3px solid #4776E6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.acw-translation-section:hover {
    box-shadow: 0 2px 8px rgba(71, 118, 230, 0.15);
}

.acw-translation-header {
    margin-bottom: 10px;
}

.acw-checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.acw-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.acw-checkbox-custom {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #4776E6;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
}

.acw-checkbox-input:checked ~ .acw-checkbox-custom {
    background: #4776E6;
    border-color: #4776E6;
}

.acw-checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.acw-checkbox-input:checked ~ .acw-checkbox-custom::after {
    display: block;
}

.acw-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.acw-checkbox-label .dashicons {
    color: #4776E6;
    font-size: 20px;
}

.acw-translation-info {
    margin-left: 30px;
}

.acw-translation-langs {
    margin: 0 0 6px 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.acw-translation-langs strong {
    color: #4776E6;
    font-weight: 600;
}

.acw-translation-note {
    margin: 0;
    color: #666;
    font-size: 12px;
    font-style: italic;
    line-height: 1.4;
}

.ai-content-wizard-form-container select {
    cursor: pointer;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2310b981' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 12px center;
    background-size: 12px;
    background-origin: padding-box;
    background-clip: padding-box;
    padding-right: 42px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#category {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2310b981' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 42px;
}

#category:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23059669' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.ai-content-wizard-form-container select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23059669' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-size: 12px;
    background-position: right 12px center;
}

/* Специальные поля */
.ai-content-wizard-field {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--card-gradient);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-green);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.ai-content-wizard-field::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(16, 185, 129, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.ai-content-wizard-field:hover::before {
    transform: translateX(100%);
}

.ai-content-wizard-field:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%);
    border-left-width: 6px;
    transform: translateX(4px);
}

.ai-content-wizard-field label {
    color: #374151;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.ai-content-wizard-field .description {
    font-size: 13px;
    color: #6b7280;
    margin-top: var(--spacing-sm);
    line-height: 1.6;
    font-style: italic;
}

/* === НАСТРОЙКИ LONGREAD === */
#longread_options {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.12) 100%);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
    border: 3px dashed rgba(245, 158, 11, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

#longread_options::before {
    content: '⚡';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 40px;
    opacity: 0.15;
    animation: rotate 10s linear infinite;
}

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

#longread_options:hover {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 10px 35px rgba(245, 158, 11, 0.2);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.18) 100%);
}

#longread_options h3 {
    color: #f59e0b;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 var(--spacing-lg) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

#longread_options h3::before {
    content: '🔥';
    font-size: 24px;
    animation: flame 1.5s ease-in-out infinite;
}

@keyframes flame {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.1) translateY(-3px);
    }
}

/* Стильные range слайдеры */
#longread_options input[type="range"] {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(to right, #10b981 0%, #fbbf24 50%, #f59e0b 100%);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.3s;
    margin: var(--spacing-md) 0;
    -webkit-appearance: none;
    appearance: none;
}

#longread_options input[type="range"]:hover {
    opacity: 1;
    transform: scaleY(1.2);
}

#longread_options input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: var(--transition-bounce);
    border: 3px solid #f59e0b;
}

#longread_options input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.7);
}

#longread_options input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
    cursor: pointer;
    border: 3px solid #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: var(--transition-bounce);
}

#longread_options input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.7);
}

#longread_options label {
    display: block;
    font-weight: 700;
    color: #92400e;
    margin-top: var(--spacing-lg);
    font-size: 14px;
}

#longread_options span {
    display: inline-block;
    min-width: 90px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.2) 100%);
    border-radius: 30px;
    font-weight: 700;
    color: #f59e0b;
    text-align: center;
    margin-left: var(--spacing-md);
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* Чекбоксы в Longread */
#longread_options input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #f59e0b;
    margin-right: var(--spacing-sm);
}

#youtube_video_settings {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* === СТИЛИ НАСТРОЕК (КОМПАКТНІ) === */
.ai-content-wizard-settings-container h2 {
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 12px;
    line-height: 1.5;
    word-wrap: break-word;
}

.ai-content-wizard-settings-container h2 > span:first-child {
    display: inline-block;
    margin-bottom: 6px;
}

.ai-content-wizard-settings-container h2 br {
    display: block;
    content: "";
    margin: 4px 0;
}

.ai-content-wizard-settings-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    animation: expandLine 1.5s ease-out forwards, slideBar 3s ease-in-out infinite 1.5s;
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

@keyframes slideBar {
    0%, 100% {
        left: 0;
        width: 60px;
    }
    50% {
        left: calc(100% - 60px);
        width: 60px;
    }
}

/* Назва моделі та кнопка в окремому рядку */
.ai-content-wizard-model-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #059669 !important;
    margin: 4px 0 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    word-break: break-word;
    -webkit-text-fill-color: #059669 !important;
    text-align: left;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.12);
}

.ai-content-wizard-current-model {
    font-size: 10px;
    color: #666 !important;
    font-weight: 500;
}

.ai-content-wizard-change-model-link {
    font-size: 13px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin-top: 6px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-text-fill-color: #ffffff !important;
}

.ai-content-wizard-change-model-link::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;
}

.ai-content-wizard-change-model-link:hover::before {
    left: 100%;
}

.ai-content-wizard-change-model-link:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #ffffff !important;
}

.ai-content-wizard-change-model-link:active {
    transform: translateY(-1px) scale(1);
}

/* Info icon в заголовку налаштувань */
.ai-content-wizard-settings-container h2 .info-icon {
    font-size: 16px;
    color: #10b981;
    cursor: help;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.ai-content-wizard-settings-container h2 .info-icon:hover {
    color: #059669;
    transform: scale(1.2) rotate(15deg);
}

.ai-content-wizard-settings-container h2 > span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

/* Компактна картка вартості */
#estimated_cost_card {
    width: 100% !important;
    margin: 0 0 16px 0 !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    justify-content: space-between !important;
}

#estimated_cost_card span:first-of-type {
    font-size: 11px !important;
}

#estimated_cost_value {
    font-size: 18px !important;
}

/* Компактний опис режимів */
.settings-description {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 3px solid #10b981;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.settings-description p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: #374151 !important;
}

/* Список налаштувань у popup */
.ai-content-wizard-settings-container ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.ai-content-wizard-settings-container ul li {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 0;
    color: #555;
}

.ai-content-wizard-settings-container ul li strong {
    color: #10b981;
    font-weight: 600;
    font-size: 12px;
}

.ai-content-wizard-settings-container p {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    margin: 10px 0;
}

/* Список налаштувань під карткою вартості */
.settings-display {
    margin-top: 10px;
}

.setting-item:nth-child(1) { animation-delay: 0.1s; }
.setting-item:nth-child(2) { animation-delay: 0.2s; }
.setting-item:nth-child(3) { animation-delay: 0.3s; }
.setting-item:nth-child(4) { animation-delay: 0.4s; }
.setting-item:nth-child(5) { animation-delay: 0.5s; }
.setting-item:nth-child(6) { animation-delay: 0.6s; }

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

.setting-name {
    font-size: 11px;
    color: #374151;
    line-height: 1.3;
}

.setting-name strong {
    color: #059669;
    font-weight: 600;
}

.edit-setting-link {
    font-size: 10px;
    color: #ffffff;
    text-decoration: none;
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.edit-setting-link::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;
}

.edit-setting-link:hover::before {
    left: 100%;
}

.edit-setting-link:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

.edit-setting-link:active {
    transform: translateY(0) scale(1);
}
    border-radius: 3px;
    animation: slideRight 2s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% {
        width: 60px;
        opacity: 1;
    }
    50% {
        width: 100px;
        opacity: 0.7;
    }
}

.ai-content-wizard-model-name {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 6px 14px;
    border-radius: 25px;
    -webkit-text-fill-color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.ai-content-wizard-current-model {
    font-weight: 500;
    opacity: 0.8;
    font-size: 11px;
    text-transform: lowercase;
}

.ai-content-wizard-change-model-link {
    font-size: 14px;
    color: #10b981;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    position: relative;
    padding: 4px 8px;
}

.ai-content-wizard-change-model-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.ai-content-wizard-change-model-link:hover {
    color: #059669;
    transform: translateX(4px);
}

.ai-content-wizard-change-model-link:hover::after {
    width: 100%;
}

/* === ОТОБРАЖЕНИЕ НАСТРОЕК === */
.settings-display {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    margin-bottom: 4px;
    background: #ffffff;
    border-radius: 6px;
    border-left: 3px solid var(--primary-green);
    transition: var(--transition-smooth);
    position: relative;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.5s ease-out both;
}

.setting-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.08), transparent);
    transition: left 0.5s ease;
}

.setting-item:hover::before {
    left: 100%;
}

.setting-item:hover {
    background: #f0fdf4;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    border-left-width: 4px;
}

.setting-item .setting-name {
    flex-grow: 1;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    line-height: 1.5;
}

.setting-item .setting-name strong {
    color: #10b981;
    font-weight: 800;
    margin-right: var(--spacing-xs);
}

.edit-setting-link {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition-bounce);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.edit-setting-link:hover {
    background: rgba(16, 185, 129, 0.25);
    transform: scale(1.08);
    color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* === ОПИСАНИЕ НАСТРОЕК === */
.settings-description {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: var(--border-radius-md);
    border-left: 4px solid #0ea5e9;
    position: relative;
}

.settings-description::before {
    content: 'ℹ️';
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 24px;
    opacity: 0.3;
}

.settings-description p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
}

/* === КАРТОЧКА СТОИМОСТИ === */
#costCard {
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f766e 100%);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

#costCard::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
}

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

#costCard:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
}

#costCard span.label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(254, 243, 199, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 1;
}

#estimated_cost_value {
    font-size: 26px;
    font-weight: 900;
    color: #fef08a;
    z-index: 1;
    letter-spacing: 0.5px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes costPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 10px rgba(16, 185, 129, 0.6));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 4px 16px rgba(16, 185, 129, 0.9));
    }
}

#costCard p {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(254, 243, 199, 0.8);
    line-height: 1.4;
    z-index: 1;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1200px) {
    .ai-content-wizard-page-container {
        grid-template-columns: 1fr;
    }
    
    .acw-lite-hero {
        grid-template-columns: 1fr;
    }
    
    .ai-content-wizard-settings-container {
        order: 2;
    }
}

@media (max-width: 768px) {
    .ai-content-wizard-page-container {
        padding: var(--spacing-md);
        margin: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .mode-toggle .toggle-wrapper {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .mode-toggle .toggle-label {
        margin: 0;
    }
    
    .ai-content-wizard-form-container,
    .ai-content-wizard-settings-container {
        padding: var(--spacing-md);
    }
    
    .acw-lite-hero {
        padding: var(--spacing-lg);
        text-align: center;
    }
    
    .acw-hero-side-card {
        padding: var(--spacing-lg);
    }
    
    .acw-hero-meta,
    .acw-hero-actions {
        justify-content: center;
    }
    
    /* Двоколонкова розкладка на мобільних стає одноколонковою */
    .acw-form-row.acw-two-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .acw-form-card {
        padding: var(--spacing-lg);
    }

    .acw-generate-button {
        flex-direction: column;
        align-items: flex-start;
    }

    .acw-generate-arrow {
        align-self: flex-end;
    }

    .acw-upgrade-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* === ПРЕЛОАДЕР === */
#preload, #preload-longread {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px) saturate(120%);
    z-index: 100000;
    display: none;
    animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

#preload > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.98) 100%);
    padding: 0;
    border-radius: 20px;
    text-align: center;
    width: min(480px, calc(100% - 32px));
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#preload-longread > div {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(249, 115, 22, 0.98) 100%);
}

#preload > div::before,
#preload-longread > div::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: moveBackground 30s linear infinite;
    opacity: 0.5;
}

h2#generating_content_text,
h2#generating_longread_text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 8px;
    padding: 18px 16px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.4px;
    transition: font-size 0.3s ease;
}

/* === AI LOADER === */
.ai-loader {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
}

.ai-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
    animation: bounce 1.4s infinite ease-in-out both;
}

.ai-dot:nth-child(1) { 
    animation-delay: -0.32s;
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
}

.ai-dot:nth-child(2) { 
    animation-delay: -0.16s;
    background: linear-gradient(135deg, #fff 0%, #d1fae5 100%);
}

.ai-dot:nth-child(3) {
    background: linear-gradient(135deg, #fff 0%, #dbeafe 100%);
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0) translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.3) translateY(-20px);
        opacity: 1;
    }
}

/* === ИНДИКАТОР ПРОГРЕССА === */
#progress_stage_container {
    margin: 0;
    padding: 14px 16px;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

#current_stage_text {
    display: none;
}

#progress_bar {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 14px;
}

.stage {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: help;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.stage svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
    opacity: 0.75;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.stage.pending {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

.stage.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
    animation: stagePulse 1.5s ease-in-out infinite;
    transform: scale(1.05);
}

.stage.active svg {
    color: #10b981;
    opacity: 1;
    animation: stageIconBounce 0.6s ease-out;
}

.stage.completed {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
}

.stage.completed svg {
    color: #ffffff;
    opacity: 0.95;
}

@keyframes stagePulse {
    0%, 100% {
        transform: scale(1.05);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
    }
}

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

/* Tooltip для этапов */
.stage[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.stage[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 100;
}

.stage:hover[data-tooltip]::after,
.stage:hover[data-tooltip]::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Translation stage (скрыта по умолчанию) */
.translation-stage {
    display: none;
}

.translation-stage.active,
.translation-stage.completed {
    display: flex;
}

/* === КНОПКИ ПОСЛЕ ГЕНЕРАЦИИ === */
#post_generation_buttons,
#post_generation_buttons_longread {
    display: none;
    margin-top: var(--spacing-xl);
    gap: var(--spacing-md);
    justify-content: center;
}

#post_generation_buttons .button,
#post_generation_buttons_longread .button {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius-md);
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

#post_generation_buttons .button::before,
#post_generation_buttons_longread .button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#post_generation_buttons .button:hover::before,
#post_generation_buttons_longread .button:hover::before {
    width: 300px;
    height: 300px;
}

#view_post, #view_post_longread {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

#view_post:hover, #view_post_longread:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

#generate_another_post, #generate_another_post_longread {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

#generate_another_post:hover, #generate_another_post_longread:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.45);
}

/* === ТАЙМЕР === */
#generation_timer {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-md);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#timer_label {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#timer_display {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    margin-left: var(--spacing-md);
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

/* === TRANSLATION PROGRESS === */
.translation-progress-panel {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-md);
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.translation-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.translation-progress-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.translation-progress-language {
    color: #fbbf24;
    font-weight: 800;
    font-size: 15px;
    background: rgba(251, 191, 36, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.translation-progress-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.translation-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    background-size: 200% 100%;
    border-radius: 15px;
    transition: width 0.5s ease;
    animation: progressShine 2s linear infinite;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.translation-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.translation-progress-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 15px;
}

.translation-progress-status {
    font-style: italic;
    opacity: 0.8;
}

/* === PRODUCT HUNT === */
.ai-content-wizard-product-hunt {
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    margin-top: var(--spacing-xl);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ai-content-wizard-product-hunt:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ai-content-wizard-product-hunt img {
    transition: var(--transition-bounce);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ai-content-wizard-product-hunt:hover img {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* === MULTILINGUAL SECTION === */
.ai-content-wizard-multilingual-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%);
    border-left: 4px solid #3b82f6;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.ai-content-wizard-multilingual-section:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(37, 99, 235, 0.18) 100%);
    border-left-width: 6px;
}

.ai-content-wizard-multilingual-section .dashicons-translation {
    color: #3b82f6;
    font-size: 22px;
    animation: pulse 2s ease-in-out infinite;
}

/* === ЧЕКЛИСТ PRE-SUBMIT === */
#acw-pre-submit {
    margin-top: var(--spacing-md);
}

#acw-pre-submit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.acw-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.acw-check.fail {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.acw-check.ok {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.acw-check .dashicons {
    font-size: 18px;
}

#acw-timeout-warning {
    font-size: 12px;
    line-height: 1.6;
    color: #ef4444;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--border-radius-small);
    border-left: 3px solid #ef4444;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1400px) {
    .ai-content-wizard-page-container {
        grid-template-columns: 1fr 380px;
        gap: var(--spacing-lg);
        padding: var(--spacing-xl);
    }
}

@media (max-width: 1200px) {
    .ai-content-wizard-page-container {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg);
    }
    
    .ai-content-wizard-settings-container {
        order: 2;
    }
    
    .mode-toggle .toggle-wrapper {
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .ai-content-wizard-page-container {
        padding: var(--spacing-md);
        margin: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .mode-toggle .toggle-wrapper {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .mode-toggle .toggle-label {
        margin: 0;
        font-size: 15px;
    }
    
    .mode-toggle .switch {
        width: 70px;
        height: 36px;
    }
    
    .mode-toggle .slider:before {
        height: 28px;
        width: 28px;
    }
    
    .mode-toggle .switch input:checked + .slider:before {
        transform: translateX(34px);
    }
    
    .ai-content-wizard-form-container,
    .ai-content-wizard-settings-container {
        padding: var(--spacing-lg);
    }
    
    #preload > div,
    #preload-longread > div {
        width: 95%;
        padding: var(--spacing-lg);
    }
    
    h2#generating_content_text,
    h2#generating_longread_text {
        font-size: 22px;
    }
    
    #progress_bar {
        gap: 6px;
        padding: var(--spacing-sm);
    }
    
    .stage {
        width: 40px;
        height: 40px;
    }
    
    #acw-pre-submit-list {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    #costCard {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ai-content-wizard-page-container {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm);
    }
    
    .ai-content-wizard-form-container,
    .ai-content-wizard-settings-container {
        padding: var(--spacing-md);
    }
    
    .ai-content-wizard-form-container input[type="text"],
    .ai-content-wizard-form-container select,
    .ai-content-wizard-form-container textarea {
        font-size: 14px;
        padding: 12px 14px;
    }
    
    #progress_bar {
        gap: 4px;
        padding: var(--spacing-xs);
    }
    
    .stage {
        width: 32px;
        height: 32px;
    }
    
    .stage svg {
        width: 16px;
        height: 16px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ === */

/* Плавная анимация появления элементов */
.ai-content-wizard-form-container > *,
.ai-content-wizard-settings-container > * {
    animation: fadeInUp 0.5s ease-out backwards;
}

.ai-content-wizard-form-container > *:nth-child(1) { animation-delay: 0.1s; }
.ai-content-wizard-form-container > *:nth-child(2) { animation-delay: 0.15s; }
.ai-content-wizard-form-container > *:nth-child(3) { animation-delay: 0.2s; }
.ai-content-wizard-form-container > *:nth-child(4) { animation-delay: 0.25s; }
.ai-content-wizard-form-container > *:nth-child(5) { animation-delay: 0.3s; }

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

/* Улучшенные скроллбары для webkit */
.ai-content-wizard-form-container *::-webkit-scrollbar,
.ai-content-wizard-settings-container *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.ai-content-wizard-form-container *::-webkit-scrollbar-track,
.ai-content-wizard-settings-container *::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.ai-content-wizard-form-container *::-webkit-scrollbar-thumb,
.ai-content-wizard-settings-container *::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

.ai-content-wizard-form-container *::-webkit-scrollbar-thumb:hover,
.ai-content-wizard-settings-container *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Эффект свечения для фокусированных элементов */
.ai-content-wizard-form-container input[type="text"]:focus,
.ai-content-wizard-form-container select:focus,
.ai-content-wizard-form-container textarea:focus {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 4px 12px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.25), 0 6px 16px rgba(16, 185, 129, 0.3);
    }
}

/* === СТИЛИ ЗАГОЛОВКА СТРАНИЦЫ === */
h1 {
    color: #1f2937;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

/* === ОПИСАНИЕ ПЛАГИНА (КОМПАКТНОЕ) === */
.ai-content-wizard-description {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.05) 100%);
    padding: 12px 18px;
    border-radius: 6px;
    margin: -10px 0 20px 0;
    border-left: 3px solid var(--primary-green);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
    position: relative;
}

.ai-content-wizard-description p {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 !important;
    font-weight: 500;
}

/* === FORM ROW WITH TWO COLUMNS === */
.acw-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.acw-form-row.acw-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.acw-form-field {
    display: flex;
    flex-direction: column;
}

.acw-form-field {
    min-height: 72px;
}

.acw-form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #2c3e50;
    min-height: 18px;
    display: flex;
    align-items: center;
}

.acw-form-field select,
.acw-form-field input[type="text"] {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    height: 42px;
}

/* Hide icons in select options */
.acw-form-field select option::before,
.acw-form-field select option .dashicons,
.acw-form-field select option [class*="dashicons"],
select option::before,
select option .dashicons,
select option [class*="dashicons"],
select option::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

/* Remove all pseudo-elements and icons from select */
select option {
    background-image: none !important;
    list-style: none !important;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.acw-form-field select:focus,
.acw-form-field input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

/* Вирівнювання двоколонкових полів */
.acw-form-row.acw-two-columns {
    align-items: stretch;
}

.acw-form-row {
    align-items: flex-start;
}

/* === СТИЛИ ДЛЯ ФОРМЫ === */
.ai-content-wizard-form-container form#ai_content_wizard_form {
    display: flex;
    flex-direction: column;
}

/* === WARNING/NOTICE СТИЛИ (КОМПАКТНІ) === */
#language_warning,
.notice {
    padding: 8px 12px;
    border-radius: 6px;
    margin: 6px 0 0 0;
    border-left: 3px solid;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: slideInLeft 0.4s ease-out;
    font-size: 12px;
}

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

#language_warning.notice-warning,
.notice.notice-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-left-color: #f59e0b;
}

.notice.notice-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    border-left-color: #10b981;
}

.notice .dashicons-warning {
    color: #f59e0b;
    font-size: 18px;
    margin-top: 1px;
}

.notice strong {
    color: #1f2937;
    font-weight: 600;
}

.notice p {
    margin: 0;
    line-height: 1.5;
}

/* === TOOLTIPS === */
.ai-content-wizard-tooltip {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    border: 2px solid var(--primary-green);
}

.ai-content-wizard-tooltip h2 {
    color: var(--primary-green);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: var(--spacing-sm);
}

.ai-content-wizard-tooltip p {
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.ai-content-wizard-tooltip ul {
    margin-left: var(--spacing-lg);
    color: #4b5563;
}

.ai-content-wizard-tooltip li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.ai-content-wizard-tooltip strong {
    color: var(--primary-green);
    font-weight: 700;
}

/* ========================================
   MODAL GENERATION - СОВРЕМЕННЫЙ ДИЗАЙН
======================================== */

/* Overlay */
#preload,
#preload-longread {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px) saturate(120%);
    animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Main Modal Card */
.acw-generation-modal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, calc(100% - 32px));
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.95) 0%, 
        rgba(5, 150, 105, 0.98) 100%);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Close Button */
.acw-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.acw-modal-close-btn svg {
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

.acw-modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.25);
    transform: rotate(90deg);
}

.acw-modal-close-btn:hover svg {
    color: #ffffff;
}

/* Info Badge */
.acw-modal-close-btn::after {
    content: attr(data-info);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.acw-modal-close-btn:hover::after {
    opacity: 1;
}

/* Header Section */
.acw-gen-header {
    background: rgba(0, 0, 0, 0.15);
    padding: 18px 16px 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: padding 0.3s ease;
}

#preload.generation-complete .acw-gen-header,
#preload-longread.generation-complete .acw-gen-header {
    padding: 16px 16px 14px;
}

.acw-gen-header::before {
    display: none;
}

.acw-modern-spinner {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#preload.generation-complete .acw-modern-spinner,
#preload-longread.generation-complete .acw-modern-spinner {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    margin: 0;
    height: 0;
}

.acw-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid transparent;
}

.acw-spinner-ring:nth-child(1) {
    border-top-color: rgba(255, 255, 255, 0.9);
    border-right-color: rgba(255, 255, 255, 0.7);
    animation: spinnerRotate 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.acw-spinner-ring:nth-child(2) {
    border-top-color: rgba(255, 255, 255, 0.5);
    border-right-color: rgba(255, 255, 255, 0.3);
    animation: spinnerRotate 2s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
    inset: 8px;
}

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

.acw-spinner-core {
    position: absolute;
    inset: 18px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    animation: spinnerPulse 2s ease-in-out infinite;
}

.acw-spinner-core svg {
    color: #10b981;
    animation: spinnerIcon 2.5s linear infinite;
}

@keyframes spinnerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
    }
}

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

/* Title & Subtitle */
.acw-gen-title,
h2#generating_content_text,
h2#generating_longread_text {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: font-size 0.3s ease;
}

#preload.generation-complete .acw-gen-title,
#preload.generation-complete h2#generating_content_text,
#preload-longread.generation-complete .acw-gen-title,
#preload-longread.generation-complete h2#generating_longread_text {
    font-size: 20px;
    margin-bottom: 0;
}

.acw-gen-subtitle,
#tips,
#tips_longread {
    margin: 0;
    font-size: 13px;
    color: #fbbf24 !important;
    line-height: 1.5;
    max-width: 420px;
    margin: 0 auto;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-style: italic;
    transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

#preload.generation-complete .acw-gen-subtitle,
#preload.generation-complete #tips,
#preload-longread.generation-complete .acw-gen-subtitle,
#preload-longread.generation-complete #tips_longread {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}


/* Stages Wrapper */
.acw-stages-wrapper {
    padding: 14px 16px;
    background: transparent;
}

.acw-current-stage {
    display: none;
}

.acw-stage-label {
    display: none;
}

.acw-stage-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Progress Stages Grid */
.acw-progress-stages {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.stage {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: help;
}

.stage svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
    opacity: 0.75;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.stage.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: #ffffff;
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.3);
    animation: stagePulse 1.5s ease-in-out infinite;
    transform: scale(1.05);
}

.stage.active svg {
    color: #10b981;
    opacity: 1;
    animation: stageIconBounce 0.6s ease-out;
}

.stage.completed {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
}

.stage.completed svg {
    color: #ffffff;
    opacity: 0.95;
}

@keyframes stagePulse {
    0%, 100% {
        transform: scale(1.05);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
    }
}

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

/* Stage Tooltip */
.stage .tooltip-icon {
    display: none;
}

.stage[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.stage[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #111827;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.stage:hover::after,
.stage:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Translation Panel */
.acw-translation-panel,
.translation-progress-panel {
    margin: 0 16px 12px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.acw-trans-header,
.translation-progress-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.acw-trans-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.acw-trans-icon svg {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

.acw-trans-title,
.translation-progress-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.acw-trans-current,
.translation-progress-language {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
}

.acw-trans-progress,
.translation-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.acw-trans-fill,
.translation-progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.acw-trans-meta,
.translation-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.acw-trans-count,
.translation-progress-count {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.acw-trans-status,
.translation-progress-status {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Timer */
.acw-gen-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 0 16px 14px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.acw-gen-timer svg {
    width: 18px;
    height: 18px;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.acw-gen-timer #timer_label,
#generation_timer #timer_label,
span#timer_label {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.acw-gen-timer #timer_display,
#generation_timer #timer_display,
span#timer_display {
    font-variant-numeric: tabular-nums;
    letter-spacing: 1.5px;
    font-size: 19px;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Action Buttons */
.acw-gen-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.acw-gen-actions .acw-btn {
    flex: 1;
    max-width: 200px;
    justify-content: center;
}

.acw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.acw-btn svg {
    width: 17px;
    height: 17px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.acw-btn-primary {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.acw-btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.acw-btn-primary:hover svg {
    transform: scale(1.05);
}

.acw-btn-secondary {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.45);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.acw-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.acw-btn-secondary:hover svg {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .acw-generation-modal {
        width: calc(100% - 24px);
    }
    
    .acw-gen-header {
        padding: 16px 14px 12px;
    }
    
    .acw-modern-spinner {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .acw-spinner-core {
        inset: 14px;
    }

    .acw-spinner-core svg {
        width: 18px;
        height: 18px;
    }
    
    .acw-gen-title {
        font-size: 17px;
    }
    
    .acw-stages-wrapper {
        padding: 12px;
    }
    
    .acw-progress-stages {
        gap: 6px;
    }
    
    .stage svg {
        width: 16px;
        height: 16px;
    }
    
    .acw-gen-actions {
        gap: 8px;
        padding: 12px;
        flex-wrap: nowrap;
    }
    
    .acw-gen-actions .acw-btn {
        max-width: 100%;
    }
    
}

@media (max-width: 480px) {
    .acw-progress-stages {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .stage svg {
        width: 16px;
        height: 16px;
    }

    .acw-gen-actions {
        padding: 16px 20px;
    }
}
