/********** AI Content Wizard main page refresh **********/

:root {
    --aiw-bg: #f5f7fb;
    --aiw-surface: #ffffff;
    --aiw-surface-alt: #0f172a;
    --aiw-primary: #0ea5e9;
    --aiw-primary-dark: #0369a1;
    --aiw-green: #10b981;
    --aiw-text: #0f172a;
    --aiw-muted: #6b7280;
    --aiw-radius: 32px;
    --aiw-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

.aiw-main-page,
.ai-content-wizard-dashboard {
    background: var(--aiw-bg);
    border-radius: var(--aiw-radius);
    padding: 32px;
    margin: 20px 20px 60px 0;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--aiw-text);
}

.aiw-main-page section + section,
.ai-content-wizard-dashboard section + section {
    margin-top: 40px;
}

.aiw-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    background: linear-gradient(130deg, #0d9488, #0ea5e9 65%, #38bdf8);
    border-radius: var(--aiw-radius);
    padding: 32px;
    color: #f8fafc;
    position: relative;
    overflow: hidden;
}

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

.aiw-hero__content,
.aiw-hero-text {
    position: relative;
    z-index: 1;
}

.aiw-hero__badge,
.aiw-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--aiw-primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
}

.aiw-hero .aiw-pill {
    background: rgba(15, 23, 42, 0.25);
    color: #f8fafc;
}

.aiw-pill.ghost {
    background: rgba(15, 23, 42, 0.08);
    border: none;
    color: var(--aiw-text);
}

.aiw-hero .aiw-pill.ghost {
    background: rgba(248, 250, 252, 0.15);
    border: 1px solid rgba(248, 250, 252, 0.25);
    color: #f8fafc;
}

.aiw-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1;
}

.aiw-section h2 {
    font-size: 26px;
    margin: 8px 0 6px;
}

.aiw-hero__lead,
.aiw-hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 20px;
}

.aiw-hero__actions,
.aiw-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.aiw-button,
.aiw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    text-decoration: none;
}
.aiw-button--primary,
.aiw-btn-primary {
    background: #fef08a;
    color: #713f12;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
}

.aiw-button--ghost,
.aiw-btn-ghost {
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: var(--aiw-text);
}

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

.aiw-button--secondary {
    background: var(--aiw-primary);
    color: #f8fafc;
}

.aiw-button:hover,
.aiw-btn:hover {
    transform: translateY(-2px);
}

.aiw-btn-link {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.ai-content-wizard-dashboard .aiw-btn-link {
    color: var(--aiw-primary);
}

.aiw-hero .aiw-btn-link {
    color: #fef08a;
}

.aiw-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aiw-hero__pills span {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.3);
}

.aiw-hero__meta,
.aiw-hero-meta {
    font-size: 13px;
    color: rgba(248, 250, 252, 0.8);
    margin-top: 10px;
    display: flex;
    gap: 18px;
    padding: 0;
    list-style: none;
}

.aiw-hero-meta li {
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.aiw-hero-meta strong {
    font-size: 18px;
    color: #f8fafc;
    letter-spacing: 0;
}

.aiw-hero__stats {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    position: relative;
    z-index: 1;
}

.aiw-stat-card {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.aiw-stat-card__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(248, 250, 252, 0.7);
}

.aiw-stat-card strong {
    display: block;
    font-size: 36px;
    margin: 10px 0;
    color: #f8fafc;
}

.aiw-stat-card small {
    color: rgba(248, 250, 252, 0.75);
}

.aiw-highlight-grid header,
.aiw-workflow header,
.aiw-blog header {
    margin-bottom: 18px;
}

.aiw-quick-nav {
    margin: 30px 0 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.aiw-quick-nav__card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfeff, #dbeafe);
    border: 1px solid rgba(14, 165, 233, 0.2);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.15);
}

.aiw-quick-nav__card strong {
    display: block;
    font-size: 15px;
}

.aiw-quick-nav__card p {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--aiw-muted);
}

.aiw-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(130deg, rgba(14, 165, 233, 0.15), rgba(16, 185, 129, 0.15));
    color: var(--aiw-primary-dark);
    flex-shrink: 0;
}

.aiw-workflow-step .aiw-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(14, 165, 233, 0.15);
}

.aiw-card-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.4;
}

.aiw-highlight-grid__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.aiw-highlight-card {
    background: var(--aiw-surface);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.aiw-highlight-card h3 {
    margin: 0 0 8px;
}

/* Компоненты, используемые в Lite-разметке */
.aiw-hero-highlight {
    background: rgba(15, 23, 42, 0.35);
    border-radius: 24px;
    padding: 24px;
    color: #f8fafc;
    border: 1px solid rgba(248, 250, 252, 0.15);
    box-shadow: var(--aiw-shadow);
    position: relative;
}

.aiw-hero-highlight ul {
    margin: 12px 0 20px;
    padding-left: 18px;
    color: rgba(248, 250, 252, 0.85);
    line-height: 1.5;
}

.aiw-hero-highlight h3 {
    margin: 10px 0;
    font-size: 20px;
}

.aiw-banner-card {
    background: var(--aiw-surface);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--aiw-shadow);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.aiw-section {
    margin-top: 40px;
}

.aiw-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.aiw-support {
    background: var(--aiw-surface);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--aiw-shadow);
}

.aiw-grid {
    display: grid;
    gap: 18px;
}

.aiw-grid + .aiw-grid {
    margin-top: 24px;
}

.aiw-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.aiw-card {
    background: var(--aiw-surface);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--aiw-shadow);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--aiw-text);
}

.aiw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
}

.aiw-card a {
    color: inherit;
    text-decoration: none;
}

.aiw-stat-card {
    text-align: left;
}

.aiw-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--aiw-muted);
}

.aiw-card strong {
    display: block;
    font-size: 30px;
    margin: 6px 0;
    color: var(--aiw-text);
    font-weight: 700;
}

.aiw-card p {
    margin: 0;
    color: var(--aiw-muted);
}

.aiw-focus-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.aiw-focus-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aiw-focus-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(130deg, rgba(14, 165, 233, 0.15), rgba(16, 185, 129, 0.25));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--aiw-primary-dark);
}

.aiw-quick-links {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.aiw-quick-link {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ecfeff, #dbeafe);
    border: 1px solid rgba(14, 165, 233, 0.2);
    text-decoration: none;
    color: var(--aiw-text);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    box-shadow: 0 20px 45px rgba(14, 165, 233, 0.15);
}

.aiw-arrow {
    font-size: 18px;
    color: var(--aiw-primary);
    position: absolute;
    right: 20px;
    bottom: 20px;
}

.aiw-quick-link span {
    font-weight: 600;
    font-size: 16px;
}

.aiw-upgrade {
    background: linear-gradient(135deg, #0d9488, #0ea5e9);
    border-radius: 28px;
    padding: 28px;
    color: #f8fafc;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

.aiw-upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.aiw-upgrade-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
}

.aiw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fef08a;
    margin-top: 6px;
}

.aiw-blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.aiw-blog-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.aiw-blog-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
}

.aiw-blog-date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--aiw-muted);
}

.aiw-blog-card h3 {
    margin: 0;
    font-size: 18px;
}

.aiw-support-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.aiw-contact-list,
.aiw-doc-links {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aiw-contact-list a,
.aiw-doc-links a {
    color: var(--aiw-primary);
    text-decoration: none;
    font-weight: 600;
}

.aiw-contact-list li,
.aiw-doc-links li {
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .ai-content-wizard-dashboard {
        padding: 24px;
    }
    
    .aiw-hero {
        grid-template-columns: 1fr;
    }
    
    .aiw-hero-highlight {
        order: 2;
    }
}

@media (max-width: 768px) {
    .ai-content-wizard-dashboard {
        padding: 20px 18px;
    }
    
    .aiw-section h2 {
        font-size: 22px;
    }
    
    .aiw-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .aiw-upgrade {
        padding: 24px;
    }
}

.aiw-split {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
}

.aiw-split__primary,
.aiw-split__secondary {
    background: var(--aiw-surface);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--aiw-shadow);
}

.aiw-perk-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aiw-perk-list__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--aiw-primary-dark);
}

.aiw-product-hunt {
    display: inline-flex;
    margin-top: 14px;
}

.aiw-workflow__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.aiw-workflow-step {
    background: var(--aiw-surface);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aiw-workflow-step__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aiw-step-index {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    color: var(--aiw-green);
    font-weight: 700;
    margin-bottom: 10px;
}

.aiw-blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.aiw-blog-card {
    background: var(--aiw-surface);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--aiw-shadow);
    display: flex;
    flex-direction: column;
}

.aiw-blog-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(14, 165, 233, 0.35), rgba(14, 165, 233, 0.05));
}

.aiw-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aiw-blog-card__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(16, 185, 129, 0.25));
    border: 1px dashed rgba(14, 165, 233, 0.5);
}

.aiw-media-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--aiw-primary-dark);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aiw-blog-card__body {
    padding: 20px;
}

.aiw-blog-card__date {
    font-size: 12px;
    color: var(--aiw-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.aiw-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--aiw-primary);
    text-decoration: none;
    font-weight: 600;
}

.aiw-resource-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    background: var(--aiw-surface);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--aiw-shadow);
}

.aiw-resource-hub ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aiw-resource-hub a {
    text-decoration: none;
    color: var(--aiw-primary-dark);
    font-weight: 600;
}

.aiw-contact-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aiw-contact-list a {
    color: var(--aiw-primary-dark);
}

@media (max-width: 1024px) {
    .aiw-main-page {
        padding: 24px;
    }

    .aiw-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .aiw-hero {
        padding: 24px;
        grid-template-columns: 1fr;
    }

    .aiw-hero h1 {
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.2;
    }

    .aiw-hero__stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .aiw-main-page section + section {
        margin-top: 32px;
    }
}

@media (max-width: 820px) {
    .aiw-hero {
        grid-template-columns: 1fr;
    }

    .aiw-quick-nav {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}
