body.czgai-page .entry-header,
body.czgai-page .page-header,
body.czgai-page .entry-title,
body.czgai-page .page-title,
body.czgai-page .wp-block-post-title {
    display: none !important;
}

body.czgai-page #content,
body.czgai-page .site-content,
body.czgai-page .content-area,
body.czgai-page #primary,
body.czgai-page .site-main,
body.czgai-page main.site-main,
body.czgai-page article.page,
body.czgai-page .inside-article,
body.czgai-page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.czgai-page .entry-content > *:first-child,
body.czgai-page .inside-article > *:first-child {
    margin-top: 0 !important;
}

.czgai-app {
    width: min(1160px, calc(100% - 28px));
    margin: 0 auto 64px;
    color: #172033;
    font-size: 16px;
    line-height: 1.68;
}

.czgai-app *,
.czgai-app *::before,
.czgai-app *::after {
    box-sizing: border-box;
}

.czgai-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    padding: 4px 0 10px;
    color: #667085;
    font-size: 13px;
}

.czgai-breadcrumb a {
    color: #3656a6;
    text-decoration: none;
}

.czgai-hero {
    padding: 28px 31px;
    border: 1px solid #dfe5ef;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7faff 0%, #ffffff 58%, #f7f2ff 100%);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.czgai-eyebrow {
    margin: 0 0 7px !important;
    color: #5b45c8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.czgai-hero h1 {
    max-width: 980px;
    margin: 0 0 14px;
    color: #101828;
    font-size: clamp(32px, 5vw, 53px);
    line-height: 1.07;
    letter-spacing: -0.035em;
}

.czgai-hero > p:last-child {
    max-width: 960px;
    margin: 0;
    color: #475467;
    font-size: 17px;
}

.czgai-tool,
.czgai-catalog-preview,
.czgai-related,
.czgai-faq,
.czgai-content-grid article {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.045);
}

.czgai-tool,
.czgai-catalog-preview,
.czgai-related,
.czgai-faq {
    margin-top: 24px;
    padding: 26px;
}

.czgai-tool-heading {
    margin-bottom: 20px;
}

.czgai-tool-heading h2,
.czgai-related h2,
.czgai-faq > h2,
.czgai-catalog-preview h2 {
    margin: 0 0 7px;
    color: #111827;
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.2;
}

.czgai-tool-heading p,
.czgai-catalog-preview .czgai-tool-heading p {
    margin: 0;
    color: #667085;
}

.czgai-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.czgai-fields label,
.czgai-filters label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.czgai-fields input,
.czgai-fields select,
.czgai-filters input,
.czgai-filters select {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: 15px;
    box-shadow: none;
}

.czgai-fields input:focus,
.czgai-fields select:focus,
.czgai-filters input:focus,
.czgai-filters select:focus {
    border-color: #6d5ce7;
    outline: 3px solid rgba(109, 92, 231, 0.14);
}

.czgai-button {
    min-height: 48px;
    margin-top: 19px;
    padding: 11px 21px;
    border: 0;
    border-radius: 10px;
    background: #4f3cc9;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(79, 60, 201, 0.2);
}

.czgai-button:hover,
.czgai-button:focus {
    background: #3f2fb0;
}

.czgai-result {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #c9d1ff;
    border-radius: 14px;
    background: #f8faff;
}

.czgai-result[hidden] {
    display: none !important;
}

.czgai-result-header span {
    display: block;
    margin-bottom: 5px;
    color: #5b45c8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.czgai-result-header h3 {
    margin: 0 0 19px;
    color: #111827;
    font-size: 25px;
    line-height: 1.25;
}

.czgai-fit.good { color: #0f7a45; }
.czgai-fit.warn { color: #9a6700; }
.czgai-fit.bad { color: #b42318; }

.czgai-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.czgai-metrics > div {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
}

.czgai-metrics strong {
    display: block;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
}

.czgai-metrics span {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
}

.czgai-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.czgai-plan-grid > div,
.czgai-warnings {
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
}

.czgai-plan-grid h4,
.czgai-warnings h4,
.czgai-products-heading,
.czgai-recommendations h4 {
    margin: 0 0 7px;
    color: #1f2937;
}

.czgai-plan-grid p,
.czgai-warnings ul,
.czgai-note {
    margin: 0;
    color: #475467;
}

.czgai-warnings {
    margin-top: 15px;
    border-color: #fde68a;
    background: #fffdf4;
}

.czgai-warnings ul {
    padding-left: 20px;
}

.czgai-products-heading {
    margin-top: 22px;
    font-size: 21px;
}

.czgai-recommendations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.czgai-recommendations article {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
}

.czgai-recommendation-main {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.czgai-recommendation-image {
    display: block;
    width: 104px;
    height: 104px;
    padding: 5px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.czgai-recommendations h4 {
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.4;
}

.czgai-recommendations p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.czgai-recommendation-footer {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
}

.czgai-recommendation-footer strong,
.czgai-recommendation-footer span {
    display: block;
}

.czgai-recommendation-footer span {
    color: #667085;
    font-size: 12px;
}

.czgai-buy,
.czgai-recommendations a {
    color: #4f3cc9;
    font-weight: 800;
    text-decoration: none;
}

.czgai-note,
.czgai-empty {
    margin-top: 15px;
    padding: 13px 15px;
    border-radius: 9px;
    background: #eef2ff;
    font-size: 14px;
}

.czgai-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.czgai-content-grid article {
    padding: 25px;
}

.czgai-content-grid h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 23px;
    line-height: 1.25;
}

.czgai-content-grid p {
    margin: 0;
    color: #475467;
}

.czgai-filters {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.czgai-filter-count {
    margin: 0 0 14px;
    color: #667085;
    font-size: 13px;
}

.czgai-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
}

.czgai-product-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 14px;
}

.czgai-product-table th,
.czgai-product-table td {
    padding: 13px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.czgai-product-table th {
    background: #f8fafc;
    color: #344054;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.czgai-product-table tr:last-child td {
    border-bottom: 0;
}

.czgai-product-main {
    display: grid;
    grid-template-columns: 72px minmax(220px, 1fr);
    gap: 12px;
    align-items: center;
}

.czgai-product-main img {
    width: 72px;
    height: 72px;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    object-fit: contain;
}

.czgai-product-main strong,
.czgai-product-main span {
    display: block;
}

.czgai-product-main span {
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
}

.czgai-product-table small {
    color: #667085;
}

.czgai-compare-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.czgai-compare-cards article {
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
}

.czgai-compare-cards h4,
.czgai-compare-cards p,
.czgai-compare-cards ul {
    margin-top: 0;
}

.czgai-compare-cards strong {
    display: block;
    margin-bottom: 5px;
    color: #111827;
    font-size: 24px;
}

.czgai-related > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.czgai-related a {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    color: #3448a0;
    font-weight: 700;
    text-decoration: none;
}

.czgai-faq details {
    border-top: 1px solid #e5e7eb;
    padding: 14px 0;
}

.czgai-faq details:first-of-type {
    border-top: 0;
}

.czgai-faq summary {
    color: #1f2937;
    font-weight: 800;
    cursor: pointer;
}

.czgai-faq p {
    margin: 10px 0 0;
    color: #475467;
}

@media (max-width: 900px) {
    .czgai-fields,
    .czgai-metrics,
    .czgai-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .czgai-compare-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .czgai-app {
        width: min(100% - 18px, 1160px);
    }

    .czgai-hero,
    .czgai-tool,
    .czgai-catalog-preview,
    .czgai-related,
    .czgai-faq {
        padding: 20px;
        border-radius: 14px;
    }

    .czgai-fields,
    .czgai-metrics,
    .czgai-plan-grid,
    .czgai-recommendations,
    .czgai-content-grid,
    .czgai-related > div,
    .czgai-filters {
        grid-template-columns: 1fr;
    }

    .czgai-recommendation-main {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .czgai-recommendation-image {
        width: 82px;
        height: 82px;
    }

    .czgai-recommendation-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
