.audit-severity {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.audit-severity div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 7px;
}
.audit-severity i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #98a2b3;
    grid-row: 1/3;
}
.audit-severity i[data-severity="high"] {
    background: #f04438;
}
.audit-severity i[data-severity="medium"] {
    background: #f79009;
}
.audit-severity i[data-severity="low"] {
    background: #2e90fa;
}
.audit-severity small {
    grid-column: 2;
    color: #667085;
}
.audit-issue-list {
    display: grid;
    gap: 10px;
}
.audit-issue {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid #eaecf0;
}
.audit-issue > i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fef3f2;
    color: #d92d20;
}
.audit-issue span {
    float: right;
    color: #667085;
}
.audit-issue details {
    margin-top: 9px;
}
.audit-url {
    margin-top: 6px;
    padding: 7px;
    background: #f9fafb;
    font-size: 11px;
    overflow-wrap: anywhere;
}
.audit-themes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.audit-theme {
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.audit-theme__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 14px;
    align-items: center;
    padding: 13px;
}
.audit-theme__summary > span {
    font-weight: 650;
}
.audit-theme__summary > strong {
    grid-column: 1;
    color: #101828;
    font-size: 20px;
}
.audit-theme__summary > .link-btn {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
}
.audit-theme__detail {
    padding: 0 13px 13px;
    border-top: 1px solid #eaecf0;
    background: #f9fafb;
}
.audit-theme__detail[hidden] {
    display: none;
}
.audit-theme-metrics,
.audit-theme-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.audit-theme__detail section {
    padding-top: 12px;
}
.audit-theme__detail h5 {
    margin: 0 0 8px;
    color: #344054;
}
.audit-theme__detail p {
    margin: 5px 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}
.audit-theme-warning {
    color: #b54708 !important;
}
.audit-section-title {
    margin-bottom: 18px;
}
.audit-empty {
    padding: 55px 25px;
    border: 1px dashed #d0d5dd;
    border-radius: 10px;
    text-align: center;
    background: #fff;
}

.audit-table-wrap {
    overflow: auto;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
}
.audit-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}
.audit-table th,
.audit-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #eaecf0;
    text-align: left;
    vertical-align: top;
}
.audit-table th {
    background: #f9fafb;
    color: #475467;
    font-size: 11px;
    text-transform: uppercase;
}
.audit-table a {
    display: block;
    max-width: 430px;
    color: #175cd3;
    overflow-wrap: anywhere;
}
.audit-stat-row {
    display: grid;
    grid-template-columns: 100px 1fr 36px;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}
.audit-stat-row progress {
    width: 100%;
}
.audit-compare-grid strong {
    display: block;
    margin: 8px 0;
    font-size: 28px;
}

.audit-issue-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
}
.audit-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.audit-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #475467;
    cursor: pointer;
}
.audit-filter-pill:hover {
    border-color: #84adff;
}
.audit-filter-pill[aria-pressed="true"] {
    border-color: #2e90fa;
    background: #eff8ff;
    color: #175cd3;
}
.audit-filter-pill b {
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    background: #f2f4f7;
    font-size: 11px;
    text-align: center;
}
.audit-filter-pill[aria-pressed="true"] b {
    background: #d1e9ff;
}
.audit-issue[hidden] {
    display: none;
}
.audit-filter-empty {
    display: none;
    padding: 35px;
    text-align: center;
    color: #667085;
}
.audit-filter-empty.is-visible {
    display: block;
}

.audit-search {
    display: block;
    margin: 0 0 14px;
}
.audit-search input {
    width: 100%;
    max-width: 520px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
}
.audit-search input:focus {
    border-color: #2e90fa;
    box-shadow: 0 0 0 3px #d1e9ff;
    outline: 0;
}
.audit-pages-toggle {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 3px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #f9fafb;
}
.audit-pages-toggle button {
    padding: 7px 13px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #667085;
    cursor: pointer;
}
.audit-pages-toggle button[aria-pressed="true"] {
    background: #fff;
    color: #175cd3;
    box-shadow: 0 1px 3px #d0d5dd;
}
.audit-structure {
    display: grid;
    gap: 10px;
}
.audit-structure-row {
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #fff;
}
.audit-structure-row[hidden] {
    display: none;
}
.audit-structure-row summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
}
.audit-structure-row summary span {
    color: #667085;
    font-size: 12px;
}
.audit-structure-row > div {
    display: grid;
    border-top: 1px solid #eaecf0;
}
.audit-structure-row a {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 14px;
    border-bottom: 1px solid #f2f4f7;
    text-decoration: none;
}
.audit-structure-row a span {
    overflow-wrap: anywhere;
}
.audit-structure-row a b {
    color: #027a48;
}
.audit-table tbody tr[hidden] {
    display: none;
}

.audit-stat-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 16px;
    padding: 4px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #f9fafb;
}
.audit-stat-tabs button {
    flex: 1;
    padding: 9px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #667085;
    font-weight: 650;
    cursor: pointer;
}
.audit-stat-tabs button[aria-pressed="true"] {
    background: #fff;
    color: #175cd3;
    box-shadow: 0 1px 3px #d0d5dd;
}
.audit-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.audit-stat-grid[hidden] {
    display: none;
}
[data-card="graph"] {
    margin: 0;
}
.audit-graph-summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 18px;
}
.audit-graph-summary strong {
    font-size: 32px;
    color: #101828;
}
.audit-graph-summary span {
    color: #667085;
    font-size: 12px;
}
.audit-graph-row {
    display: grid;
    grid-template-columns: 150px 1fr 42px;
    gap: 10px;
    align-items: center;
    margin: 9px 0;
    font-size: 12px;
}
.audit-graph-row > div {
    height: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: #eaecf0;
}
.audit-graph-row i {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: 99px;
    background: #2e90fa;
}
.audit-graph-row i[data-color="1"] {
    background: #12b76a;
}
.audit-graph-row i[data-color="2"] {
    background: #f79009;
}
.audit-graph-row i[data-color="3"] {
    background: #7f56d9;
}
.audit-graph-row i[data-color="4"] {
    background: #06aed4;
}
.audit-graph-row i[data-color="5"] {
    background: #f04438;
}
.audit-data-note {
    display: block;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #eaecf0;
    color: #98a2b3;
}

[data-card="title"] {
    margin: 0;
}
.audit-title-value {
    margin: 8px 0 2px;
    color: #101828;
    font-size: 34px;
    font-weight: 750;
}
.audit-card[data-card="title"] > small {
    display: block;
    padding-top: 12px;
    border-top: 1px solid #eaecf0;
    color: #475467;
    line-height: 1.7;
}

.audit-compare-tabs {
    display: flex;
    margin-bottom: 18px;
    border-bottom: 1px solid #d0d5dd;
}
.audit-compare-tabs button {
    padding: 12px 18px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #667085;
    font-weight: 700;
    cursor: pointer;
}
.audit-compare-tabs button[aria-pressed="true"] {
    border-color: #175cd3;
    color: #175cd3;
}
.audit-history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.audit-history-filters label {
    display: grid;
    gap: 5px;
    color: #475467;
    font-size: 12px;
}
.audit-history-filters input {
    min-height: 36px;
    padding: 5px 9px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
}
.audit-history-chart {
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    overflow: auto;
}
.audit-history-chart svg {
    display: block;
    width: 100%;
    min-width: 650px;
}
.audit-chart-grid path {
    fill: none;
    stroke: #eaecf0;
    stroke-width: 1;
}
.audit-history-chart polyline {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.audit-history-chart [data-series="issues"] {
    stroke: #7f56d9;
}
.audit-history-chart [data-series="pages"] {
    stroke: #2e90fa;
}
.audit-history-chart [data-series="health"] {
    stroke: #12b76a;
}
.audit-history-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 20px;
}
.audit-history-legend span:before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 5px;
    border-radius: 50%;
    background: #98a2b3;
}
.audit-history-legend [data-series="issues"]:before {
    background: #7f56d9;
}
.audit-history-legend [data-series="pages"]:before {
    background: #2e90fa;
}
.audit-history-legend [data-series="health"]:before {
    background: #12b76a;
}
.audit-history-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.audit-history-metrics details {
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #fff;
}
.audit-history-metrics summary {
    cursor: pointer;
    font-weight: 700;
}
.audit-history-metrics details > div {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    color: #475467;
}

.audit-history-chart [data-series="errors"] {
    stroke: #f04438;
}
.audit-history-chart [data-series="warnings"] {
    stroke: #f79009;
}
.audit-history-chart [data-series="notices"] {
    stroke: #06aed4;
}
.audit-history-chart [data-series="serverErrors"] {
    stroke: #b42318;
}
.audit-history-legend [data-series="errors"]:before {
    background: #f04438;
}
.audit-history-legend [data-series="warnings"]:before {
    background: #f79009;
}
.audit-history-legend [data-series="notices"]:before {
    background: #06aed4;
}
.audit-history-legend [data-series="serverErrors"]:before {
    background: #b42318;
}
.audit-history-metrics label.is-unavailable {
    color: #98a2b3;
}
.audit-history-metrics label.is-unavailable input {
    cursor: not-allowed;
}

.audit-history-legend span:before {
    background: var(--series-color, #98a2b3);
}
.audit-compare-visuals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.audit-compare-chart {
    padding: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}
.audit-compare-chart h4 {
    margin: 0 0 5px;
}
.audit-compare-chart > p {
    margin: 0 0 16px;
    color: #667085;
}
.audit-compare-key {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    color: #475467;
    font-size: 12px;
}
.audit-compare-key span:before,
.audit-donut-legend span:before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
}
.audit-compare-key [data-crawl="previous"]:before,
.audit-pair-bars [data-crawl="previous"] {
    background: #b9c0cc;
}
.audit-compare-key [data-crawl="latest"]:before,
.audit-pair-bars [data-crawl="latest"] {
    background: #2e90fa;
}
.audit-pair-row,
.audit-change-row {
    display: grid;
    grid-template-columns: 90px minmax(70px, 1fr) 70px;
    gap: 8px;
    align-items: center;
    margin: 12px 0;
    color: #475467;
    font-size: 12px;
}
.audit-pair-row > b,
.audit-change-row > b {
    text-align: right;
    color: #344054;
}
.audit-pair-bars {
    display: grid;
    gap: 4px;
}
.audit-pair-bars i {
    display: block;
    height: 8px;
    min-width: 3px;
    border-radius: 999px;
}
.audit-change-track {
    position: relative;
    height: 12px;
    background: linear-gradient(
        90deg,
        #f2f4f7 49%,
        #98a2b3 49%,
        #98a2b3 51%,
        #f2f4f7 51%
    );
}
.audit-change-track i {
    position: absolute;
    top: 2px;
    height: 8px;
    border-radius: 999px;
}
.audit-change-track [data-direction="increase"] {
    left: 50%;
    background: #12b76a;
}
.audit-change-track [data-direction="decrease"] {
    right: 50%;
    background: #f04438;
}
.audit-donut-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.audit-compare-donut {
    display: grid;
    place-items: center;
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    border-radius: 50%;
    background: conic-gradient(
        #f04438 0 var(--error-end),
        #f79009 var(--error-end) var(--warning-end),
        #06aed4 var(--warning-end) 100%
    );
}
.audit-compare-donut:before {
    content: "";
    grid-area: 1/1;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
}
.audit-compare-donut span {
    z-index: 1;
    grid-area: 1/1;
    text-align: center;
    color: #667085;
    font-size: 12px;
}
.audit-compare-donut b {
    display: block;
    color: #101828;
    font-size: 24px;
}
.audit-donut-legend {
    display: grid;
    gap: 10px;
    min-width: 105px;
    color: #475467;
}
.audit-donut-legend span {
    display: flex;
}
.audit-donut-legend b {
    margin-left: auto;
    color: #101828;
}
.audit-donut-legend [data-severity="error"]:before {
    background: #f04438;
}
.audit-donut-legend [data-severity="warning"]:before {
    background: #f79009;
}
.audit-donut-legend [data-severity="notice"]:before {
    background: #06aed4;
}
@media (max-width: 1100px) {
    .audit-compare-visuals {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 500px) {
    .audit-donut-layout {
        flex-direction: column;
    }
    .audit-pair-row,
    .audit-change-row {
        grid-template-columns: 85px minmax(60px, 1fr);
    }
    .audit-pair-row > b,
    .audit-change-row > b {
        grid-column: 2;
    }
}

/* ========================================
   Loader
======================================== */

.scan-loader {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.mini-loader {
    width: 18px;
    height: 18px;
    border-width: 3px;
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.scan-loader p {
    margin-top: 10px;
    font-weight: 600;
}

/* ========================================
   Dashboard Layout
======================================== */

.ai-seo-dashboard {
    max-width: 1100px;
    padding: 20px;
    font-family: system-ui;
}

.seo-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.seo-card,
.results-card {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    border: 1px solid #d0d5dd;
    margin-bottom: 25px;
    overflow: hidden;
}

.section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    margin: 0 0 6px;
}

.section-header p,
.score-subtext {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

/* ========================================
   Start Button
======================================== */

.start-btn {
    background: #2ea44f;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
}

.start-btn:hover {
    background: #218739;
}

.start-btn:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.secondary-btn,
.link-btn {
    border: 1px solid #cfd4dc;
    background: #fff;
    color: #1d4ed8;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.secondary-btn:hover,
.link-btn:hover {
    background: #f8fafc;
}

.link-btn {
    border: 0;
    padding: 0;
    text-align: left;
    background: transparent;
}

.site-scan-card {
    padding: 22px;
}

.seokey-card {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 22px;
    background: #f9fafb;
}

.seokey-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px);
    gap: 14px;
    margin-bottom: 12px;
}

.seokey-form label,
.seokey-form > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seokey-form span {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.seokey-form input {
    border: 1px solid #cfd4dc;
    border-radius: 6px;
    padding: 10px 12px;
    width: 100%;
}

.seokey-form strong {
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    color: #344054;
    min-height: 18px;
    padding: 10px 12px;
}
.robots-card {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 22px;
    background: #f9fafb;
}

.robots-card__header,
.fix-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.robots-card__header h2,
.fix-card__header h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.robots-card__header p,
.fix-card__header p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.fix-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.fix-card {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 16px;
    background: #f9fafb;
}

.fix-card + .fix-card {
    margin-top: 16px;
}

.fix-result,
.fix-empty {
    margin-top: 12px;
    color: #475467;
    font-size: 13px;
}

.fix-list {
    margin-top: 14px;
    overflow-x: auto;
}

.default-og-image-control {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
}

.default-og-image-preview {
    width: 120px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 120px;
    overflow: hidden;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #f9fafb;
    color: #667085;
    font-size: 12px;
    text-align: center;
}

.default-og-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-og-image-fields {
    min-width: 0;
    flex: 1;
}

.default-og-image-fields label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-weight: 600;
}

.default-og-image-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.default-og-image-row input[type="url"] {
    min-width: 260px;
    flex: 1;
    border: 1px solid #cfd4dc;
    border-radius: 6px;
    padding: 8px 10px;
}

.fix-table {
    min-width: 720px;
}

.robots-status {
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
    color: #475467;
    font-weight: 600;
}

.robots-status--ok {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #027a48;
}

.robots-status--warning {
    border-color: #fedf89;
    background: #fffaeb;
    color: #b54708;
}

.robots-status--error {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.robots-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.robots-meta div {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    padding: 10px;
}

.robots-meta span {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.robots-meta strong {
    display: block;
    overflow-wrap: anywhere;
    color: #101828;
    font-size: 13px;
}

.robots-explanation,
.robots-missing {
    margin-top: 12px;
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
}

.robots-missing ul {
    margin: 8px 0 0 18px;
}

.robots-editor {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.robots-editor span {
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.robots-content {
    margin: 12px 0 0;
    min-height: 180px;
    max-height: 260px;
    width: 100%;
    overflow: auto;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    background: #fff;
    padding: 12px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
}

.robots-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

#robots-save-result {
    color: #475467;
    font-size: 13px;
}

.site-scan-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.site-scan-card__header h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.site-scan-card__header p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.site-scan-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 140px 140px;
    gap: 14px;
    align-items: end;
}

.site-scan-form label {
    display: grid;
    gap: 6px;
}

.site-scan-form span {
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-scan-form input,
.site-scan-actions select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #cfd4dc;
    border-radius: 6px;
    padding: 2.2px 10px;
    text-align: center;
    background: #fff;
}

.site-scan-status {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f9fafb;
}

.site-scan-status__item {
    min-width: 0;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 10px;
}

.site-scan-status__item span {
    display: inline-block;
    margin-bottom: 5px;
    margin-right: 5px;
    font-weight: bold;
    color: #667085;
    font-size: 12px;
}

.site-scan-status__item strong {
    display: block;
    color: #101828;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.site-scan-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.site-scan-actions select {
    width: 120px;
}

/* ========================================
   Top Scores
======================================== */

.score-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.score-grid-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-box {
    background: #f9fafb;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.score-box span {
    font-size: 30px;
    font-weight: 700;
    display: block;
    margin-top: 8px;
}

/* ========================================
   SEO Score Breakdown
======================================== */

#seo-breakdown {
    margin-top: 15px;
}

.seo-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.seo-breakdown-name {
    font-weight: 500;
}

.seo-breakdown-score {
    font-weight: 600;
}

/* ========================================
   Lighthouse Section
======================================== */

.lighthouse-section {
    margin-top: 8px;
}

.lighthouse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.lighthouse-panel {
    background: #f9fafb;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    padding: 18px;
}

.lighthouse-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.lighthouse-panel-header h3 {
    margin: 0;
}

.perf-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2f6;
    color: #475467;
    font-size: 12px;
    font-weight: 600;
}

.perf-status.is-loading {
    background: #fff4e5;
    color: #b54708;
}

.perf-status.is-ready {
    background: #ecfdf3;
    color: #027a48;
}

.perf-status.is-error {
    background: #fef3f2;
    color: #b42318;
}

.lighthouse-score-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lighthouse-score-card {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 8px;
    padding: 14px;
}

.lighthouse-score-card label {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-bottom: 6px;
}

.lighthouse-score-card span {
    font-size: 24px;
    font-weight: 700;
}

.score-good {
    color: #027a48;
}

.score-needs-work {
    color: #b54708;
}

.score-poor {
    color: #b42318;
}

.perf-metrics {
    margin-top: 16px;
    font-size: 13px;
    text-align: left;
}

.perf-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-height: 40px;
}

.perf-loading-text {
    color: #667085;
}

.perf-metric-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.perf-metric-list div {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 6px;
    padding: 10px;
}

.perf-error {
    color: #b42318;
    text-align: center;
    padding: 10px 0;
}

.site-scan-list {
    margin-top: 24px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.site-scan-list__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e4e7ec;
    background: linear-gradient(180deg, #fff, #f9fafb);
}

.site-scan-list__header h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #101828;
}

.site-scan-list__header p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.site-scan-list__status {
    padding: 0 18px;
    color: #667085;
    font-size: 13px;
}

.site-scan-list__status:not(:empty) {
    padding-top: 14px;
    padding-bottom: 14px;
}

#site-scan-list-table {
    overflow-x: auto;
}

.site-scan-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.site-scan-table th,
.site-scan-table td {
    padding: 14px 18px;
    border-top: 1px solid #e4e7ec;
    text-align: left;
    vertical-align: middle;
}

.site-scan-table th {
    color: #475467;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f9fafb;
}

.scan-row-subtext {
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
    word-break: break-all;
}

.scan-delete-btn {
    margin-left: 6px;
}

.site-scan-delete-modal[hidden] {
    display: none;
}

.site-scan-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.site-scan-delete-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.48);
}

.site-scan-delete-modal__dialog {
    position: relative;
    width: min(440px, calc(100% - 32px));
    margin: 18vh auto 0;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.2);
}

.site-scan-delete-modal__dialog h2 {
    margin: 0 0 8px;
    color: #101828;
}

.site-scan-delete-modal__dialog p {
    margin: 0;
    color: #475467;
}

.site-scan-delete-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

.scan-status-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    background: #eef2f6;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.scan-status-pill--completed {
    background: #ecfdf3;
    color: #027a48;
}

.scan-status-pill--running,
.scan-status-pill--processing,
.scan-status-pill--queued {
    background: #fff4e5;
    color: #b54708;
}

.scan-status-pill--failed,
.scan-status-pill--error {
    background: #fef3f2;
    color: #b42318;
}

.site-scan-report {
    margin-top: 24px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
}

.site-scan-report__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e4e7ec;
    background: #f9fafb;
}

.site-scan-report__header h3 {
    margin: 0;
    font-size: 15px;
}

.site-scan-report__header span {
    color: #667085;
    font-size: 13px;
}

.site-scan-report__body {
    overflow-x: auto;
    background: #f5f7fa;
}
.audit-tabs {
    display: flex;
    gap: 4px;
    padding: 0 20px;
    overflow: auto;
    background: #fff;
    border-bottom: 1px solid #e4e7ec;
}
.audit-tab {
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    padding: 16px 14px 13px;
    color: #667085;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
}
.audit-tab.is-active,
.audit-tab:hover {    
    border-color: #175cd3;
}
.audit-panel {
    display: none;
    padding: 22px;
}
.audit-panel.is-active {
    display: block;
}
.audit-hero-grid,
.audit-grid,
.audit-compare-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}
.audit-hero-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.audit-grid[data-layout="two"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.audit-compare-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.audit-card {
    min-width: 0;
    padding: 20px;
    margin: 0 0 16px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}
.audit-card h4,
.audit-section-title h4 {
    margin: 0 0 12px;
    color: #101828;
}
.audit-card p,
.audit-section-title p {
    color: #667085;
}
.audit-card__value {
    margin: 12px 0;
    font-size: 38px;
    font-weight: 750;
}
.audit-card__heading,
.audit-section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.audit-score-card {
    text-align: center;
}
.audit-score {
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    margin: 14px auto;
    border-radius: 50%;
    background: conic-gradient(#12b76a calc(var(--score) * 1%), #eaecf0 0);
}
.audit-score b {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fff;
    font-size: 25px;
}

/* ========================================
   Issue Categories
======================================== */

.results-card .issue-category {
    margin-top: 30px;
    max-height: 500px;
    overflow-y: auto;
}

/* ========================================
   Issue Card
======================================== */

.issue-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 16px;
    margin-top: 10px;
    border-radius: 6px;
}

.issue-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.issue-title {
    font-weight: 600;
}

.issue-location {
    font-size: 13px;
    margin-bottom: 6px;
    overflow: auto;
}

.issue-html {
    background: #f6f8fa;
    padding: 10px;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.issue-recommendation {
    margin-top: 6px;
}

/* ========================================
   Severity Colors
======================================== */

.severity-high {
    color: red;
}

.severity-medium {
    color: orange;
}

.severity-low {
    color: #666;
}

@media (max-width: 900px) {
    .audit-stat-grid {
        grid-template-columns: 1fr;
    }
    .audit-hero-grid,
    .audit-compare-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .audit-grid[data-layout="two"] {
        grid-template-columns: 1fr;
    }
    .score-grid-primary,
    .lighthouse-grid,
    .perf-metric-list,
    .seokey-form,
    .site-scan-form,
    .site-scan-status {
        grid-template-columns: 1fr;
    }

    .lighthouse-score-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .audit-history-metrics {
        grid-template-columns: 1fr;
    }
    .audit-compare-tabs button {
        flex: 1;
        padding: 10px 6px;
    }
    .audit-stat-tabs {
        flex-direction: column;
    }
    .audit-graph-row {
        grid-template-columns: 105px 1fr 38px;
    }
    .audit-panel {
        padding: 14px;
    }
    .audit-hero-grid,
    .audit-compare-grid,
    .audit-themes,
    .audit-theme-metrics,
    .audit-theme-columns {
        grid-template-columns: 1fr;
    }
    .audit-severity {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .audit-card__heading,
    .audit-section-title {
        flex-direction: column;
    }
    .lighthouse-panel-header,
    .issue-header,
    .robots-card__header,
    .fix-card__header,
    .site-scan-card__header,
    .site-scan-list__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fix-card__actions {
        justify-content: flex-start;
    }

    .robots-meta {
        grid-template-columns: 1fr;
    }

    .lighthouse-score-grid {
        grid-template-columns: 1fr;
    }
}

.audit-theme-chart {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
}
.audit-theme-chart h5 {
    margin: 0 0 14px;
}
.audit-theme-chart + .audit-theme-chart {
    margin-top: 14px;
}
[data-theme-page] > .secondary-btn {
    margin-bottom: 18px;
}
[data-theme-page] > .audit-card {
    margin-top: 0;
}
.audit-structured-items {
    margin-top: 20px;
}

.seo-setting-field,
.ai-seo-editor > label {
    display: grid;
    gap: 6px;
    margin: 16px 0;
}
.seo-setting-field input,
.seo-setting-field textarea,
.ai-seo-editor input,
.ai-seo-editor textarea,
.ai-seo-editor select {
    width: 100%;
    max-width: 760px;
}
.ai-seo-score {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 14px;
    border-radius: 8px;
    background: #f0f9ff;
}
.ai-seo-score progress {
    grid-column: 1/-1;
    width: 100%;
}
.ai-seo-analysis {
    display: grid;
    gap: 5px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.ai-seo-analysis li[data-pass="true"] {
    color: #027a48;
}
.ai-seo-analysis li[data-pass="false"] {
    color: #b54708;
}
.ai-seo-breadcrumbs {
    margin: 12px 0;
    font-size: 14px;
}
.seo-setup {
    max-width: 980px;
}
.seo-setup > h1 {
    margin-top: 28px;
    font-size: 30px;
}
.seo-setup-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}
.seo-setup-progress li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border-radius: 9px;
    background: #f2f4f7;
    color: #667085;
}
.seo-setup-progress b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d0d5dd;
}
.seo-setup-progress li[data-state="current"] {
    background: #eff8ff;
    color: #175cd3;
}
.seo-setup-progress li[data-state="current"] b,
.seo-setup-progress li[data-state="done"] b {
    background: #1570ef;
    color: #fff;
}
.seo-setup-card {
    padding: 28px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}
.seo-setup-card h2 {
    margin-top: 0;
    font-size: 23px;
}
.seo-setup-card form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}
.seo-setup-card label {
    display: grid;
    gap: 7px;
    font-weight: 600;
}
.seo-setup-card input[type="text"],
.seo-setup-card input[type="url"],
.seo-setup-card select {
    width: 100%;
    max-width: 650px;
    min-height: 42px;
}
.seo-setup-card label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
}
.seo-setup-success {
    display: grid;
    gap: 5px;
    margin: 18px 0;
    padding: 15px;
    border: 1px solid #6ce9a6;
    border-radius: 9px;
    background: #ecfdf3;
    color: #027a48;
}
@media (max-width: 780px) {
    .seo-setup-progress {
        grid-template-columns: 1fr;
    }
    .seo-setup-card {
        padding: 18px;
    }
}
.seo-main-panel[data-main-panel="seo"] > .seo-preview {
    order: initial;
}
.ai-seo-editor {
    max-width: 980px;
    margin: 0 auto;
    color: #101828;
}
.ai-seo-editor .seo-main-panel {
    padding: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}
.ai-seo-editor .seo-main-panel > label,
.ai-seo-editor [data-seo-panel] > label {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    background: #fcfcfd;
}
.ai-seo-editor label > strong {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}
.ai-seo-editor input[type="text"],
.ai-seo-editor input[type="url"],
.ai-seo-editor textarea,
.ai-seo-editor select {
    width: 100%;
    max-width: none;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.ai-seo-editor textarea {
    min-height: 104px;
    resize: vertical;
}
.ai-seo-editor input:focus,
.ai-seo-editor textarea:focus,
.ai-seo-editor select:focus {
    border-color: #2e90fa;
    outline: 0;
    box-shadow: 0 0 0 4px #d1e9ff;
}
.ai-seo-editor input::placeholder,
.ai-seo-editor textarea::placeholder {
    color: #98a2b3;
}
.ai-seo-editor input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    border-color: #98a2b3;
    border-radius: 4px;
}
.ai-seo-editor input[type="checkbox"]:checked {
    border-color: #1570ef;
    background: #1570ef;
}
.seo-char-count {
    display: flex;
    justify-content: flex-end;
    margin-top: -2px;
    color: #667085;
    font-size: 12px;
}
.seo-variables {
    padding-top: 2px;
}
.seo-variables button {
    min-height: 30px;
    padding: 5px 10px;
    border-color: #b2ccff;
    background: #eff8ff;
    font-size: 12px;
    font-weight: 600;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.seo-variables button:hover {
    border-color: #2e90fa;
    background: #d1e9ff;
}
.seo-main-panel[data-main-panel="seo"] > .seo-preview {
    order: -1;
    margin-top: 0;
}
.seo-main-panel[data-main-panel="schema"] > label,
.seo-main-panel[data-main-panel="social"] > label {
    background: #fff;
}
.seo-main-panel[data-main-panel="schema"] select {
    max-width: 420px;
}
.seo-social {
    margin: 0;
    padding: 20px;
    border-color: #e4e7ec;
    background: #fcfcfd;
}
.seo-social-card {
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}
.ai-seo-score {
    padding: 18px;
    border: 1px solid #b2ddff;
    background: linear-gradient(135deg, #eff8ff, #fff);
}
@media (max-width: 600px) {
    .ai-seo-editor .seo-main-panel {
        padding: 12px;
    }
    .ai-seo-editor .seo-main-panel > label,
    .ai-seo-editor [data-seo-panel] > label {
        padding: 12px;
    }
    .seo-social {
        padding: 12px;
    }
}
.seo-readability-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid #b2ddff;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff8ff, #fff);
}
.seo-readability-header h3 {
    margin: 0 0 4px;
    font-size: 19px;
}
.seo-readability-header p {
    margin: 0;
    color: #475467;
}
.seo-readability-score {
    display: grid;
    min-width: 86px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    box-shadow: 0 1px 4px #d0d5dd;
}
.seo-readability-score strong {
    color: #175cd3;
    font-size: 28px;
    line-height: 1;
}
.seo-readability-score span {
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
}
.ai-seo-editor details[data-result-group] {
    overflow: hidden;
    border: 1px solid #eaecf0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.ai-seo-editor details[data-result-group] summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ai-seo-editor details[data-result-group] summary b {
    display: grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    border-radius: 99px;
    font-size: 12px;
}
.ai-seo-editor details[data-result-group="problems"] {
    border-left: 4px solid #f04438;
}
.ai-seo-editor details[data-result-group="problems"] summary b {
    background: #fee4e2;
    color: #b42318;
}
.ai-seo-editor details[data-result-group="improvements"] {
    border-left: 4px solid #f79009;
}
.ai-seo-editor details[data-result-group="improvements"] summary b {
    background: #fef0c7;
    color: #b54708;
}
.ai-seo-editor details[data-result-group="good"] {
    border-left: 4px solid #12b76a;
}
.ai-seo-editor details[data-result-group="good"] summary b {
    background: #d1fadf;
    color: #027a48;
}
.seo-main-panel {
    padding: 2px;
}
.seo-main-panel > [data-seo-panel] {
    border: 0;
    padding: 0;
}
.seo-main-tabs {
    position: sticky;
    top: 32px;
    z-index: 5;
}
.seo-main-tabs button {
    transition:
        background 0.15s,
        color 0.15s,
        box-shadow 0.15s;
}
@media (max-width: 600px) {
    .seo-readability-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .seo-readability-score {
        width: 100%;
        box-sizing: border-box;
    }
    .seo-main-tabs {
        position: static;
    }
}
.seo-type-settings {
    margin-top: 18px;
}
.seo-type-settings > h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid #eaecf0;
}
.seo-type-settings > h3 {
    margin-top: 24px;
}
.seo-type-settings > label {
    display: block;
    margin: 12px 0;
}
.seo-type-settings select {
    min-width: 240px;
    margin-left: 8px;
}
.seo-default-image {
    display: grid;
    place-items: center;
    width: 320px;
    max-width: 100%;
    aspect-ratio: 16/9;
    margin: 10px 0;
    border: 1px dashed #98a2b3;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    color: #667085;
}
.seo-default-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
[data-default-social] > small {
    margin-left: 8px;
    color: #667085;
}
.seo-main-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin: 0 0 18px;
    padding: 5px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #f2f4f7;
}
.seo-main-tabs button {
    padding: 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #475467;
    font-weight: 700;
    cursor: pointer;
}
.seo-main-tabs button[aria-pressed="true"] {
    background: #fff;
    color: #175cd3;
    box-shadow: 0 1px 4px #d0d5dd;
}
.seo-main-panel {
    display: grid;
    gap: 4px;
}
.seo-main-panel[hidden] {
    display: none;
}
.seo-main-panel > .ai-seo-score {
    margin-bottom: 14px;
}
.seo-char-count {
    color: #667085;
    text-align: right;
}
.seo-main-panel label > small {
    color: #667085;
}
@media (max-width: 600px) {
    .seo-main-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}
.seo-serp-site {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.seo-serp-site img,
.seo-serp-site i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.seo-serp-site i {
    display: block;
    background: #d1e9ff;
}
.seo-serp-site span {
    display: grid;
}
.seo-serp-site span b {
    color: #202124;
    font-size: 14px;
    font-weight: 500;
}
.seo-serp-site span small {
    color: #4d5156;
    font-size: 12px;
}
.seo-serp > small[data-preview-url] {
    color: #4d5156;
    font-size: 12px;
}
.seo-serp time {
    color: #70757a;
}
.seo-social {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
}
.seo-social > h3 {
    margin-top: 0;
}
.seo-social-card {
    max-width: 520px;
    overflow: hidden;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
}
.seo-social-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1.91/1;
    background: #f2f4f7;
    color: #667085;
}
.seo-social-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.seo-social-card > div:last-child {
    padding: 13px;
}
.seo-social-card strong {
    display: block;
    font-size: 17px;
}
.seo-social-card p {
    margin: 5px 0;
    color: #475467;
}
.seo-social-card small {
    text-transform: uppercase;
    color: #667085;
}
.seo-preview {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #f8fafc;
}
.seo-preview h3 {
    margin-top: 0;
}
.seo-preview-toggle,
.seo-analysis-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 8px;
    background: #eaecf0;
}
.seo-preview-toggle button,
.seo-analysis-tabs button {
    flex: 1;
    padding: 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}
.seo-preview-toggle button[aria-pressed="true"],
.seo-analysis-tabs button[aria-pressed="true"] {
    background: #fff;
    color: #175cd3;
    box-shadow: 0 1px 3px #d0d5dd;
}
.seo-serp {
    overflow-wrap: break-word;
    max-width: 600px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px #d0d5dd;
}
.seo-serp[data-device="mobile"] {
    max-width: 390px;
}
.seo-serp small {
    display: block;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.seo-serp strong {
    display: block;
    margin: 7px 0 4px;
    color: #1a0dab;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
}
.seo-serp p {
    margin: 0;
    color: #4d5156;
    line-height: 1.55;
}
.seo-variables {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.seo-variables button {
    padding: 4px 8px;
    border: 1px solid #b2ccff;
    border-radius: 99px;
    background: #eff8ff;
    color: #175cd3;
    cursor: pointer;
}
.seo-analysis-tabs {
    margin-top: 22px;
}
.ai-seo-editor [data-seo-panel] {
    padding: 14px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
}
.ai-seo-editor [data-seo-panel][hidden] {
    display: none;
}
.ai-seo-editor details {
    margin: 8px 0;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}
.ai-seo-editor summary {
    padding: 11px 13px;
    font-weight: 700;
    cursor: pointer;
}
.ai-seo-editor details ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0 15px 14px 36px;
}
.ai-seo-editor details li {
    line-height: 1.45;
}
.ai-seo-editor details li[data-pass="true"] {
    color: #027a48;
}
.ai-seo-editor details li[data-pass="false"] {
    color: #b42318;
}
.seo-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.seo-insight-grid div {
    display: grid;
    padding: 14px;
    border-radius: 8px;
    background: #f2f4f7;
}
.seo-insight-grid strong {
    font-size: 26px;
}
.seo-insight-grid span {
    color: #667085;
}
.seo-prominent {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.seo-prominent span {
    padding: 6px 9px;
    border-radius: 99px;
    background: #eff8ff;
    color: #175cd3;
}
.seo-prominent b {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    margin-left: 3px;
    border-radius: 99px;
    background: #d1e9ff;
}
@media (max-width: 600px) {
    .seo-analysis-tabs {
        flex-direction: column;
    }
    .seo-insight-grid {
        grid-template-columns: 1fr;
    }
}

/* SEO settings page */
.seo-settings-page {
    max-width: 1180px;
    margin: 24px 20px 60px 0;
    color: #101828;
}
.seo-settings-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 28px 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #101828, #1849a9);
    color: #fff;
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.14);
}
.seo-settings-hero h1 {
    margin: 4px 0 8px;
    color: #fff;
    font-size: 30px;
}
.seo-settings-hero p {
    max-width: 660px;
    margin: 0;
    color: #d1e9ff;
    font-size: 15px;
}
.seo-settings-hero > .dashicons {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 32px;
}
.seo-settings-kicker {
    color: #84caff;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.seo-settings-form {
    display: grid;
    gap: 18px;
}
.seo-settings-card {
    padding: 0;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}
.seo-settings-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid #eaecf0;
    background: #fcfcfd;
}
.seo-settings-card__header h2,
.seo-settings-section-title h2 {
    margin: 0 0 5px;
    color: #101828;
    font-size: 19px;
}
.seo-settings-card__header p,
.seo-settings-section-title p {
    margin: 0;
    color: #667085;
}
.seo-settings-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
}
.seo-settings-general .seo-setting-field {
    margin: 0;
}
.seo-settings-page .seo-setting-field {
    display: grid;
    align-content: start;
    gap: 7px;
}
.seo-settings-page .seo-setting-field strong,
.seo-schema-grid strong {
    color: #344054;
    font-size: 13px;
}
.seo-settings-page input[type="text"],
.seo-settings-page input[type="url"],
.seo-settings-page textarea,
.seo-settings-page select,
.seo-settings-page .seo-setting-field input {
    width: 100%;
    max-width: none;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.seo-settings-page textarea {
    min-height: 92px;
    resize: vertical;
}
.seo-settings-page input:focus,
.seo-settings-page textarea:focus,
.seo-settings-page select:focus {
    border-color: #2e90fa;
    box-shadow: 0 0 0 3px #d1e9ff;
    outline: 0;
}
.seo-variable-help {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 22px;
    border-top: 1px solid #eaecf0;
    background: #f9fafb;
    color: #475467;
}
.seo-variable-help code {
    padding: 4px 8px;
    border-radius: 6px;
    background: #eff8ff;
    color: #175cd3;
}
.seo-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
}
.seo-feature-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e4e7ec;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}
.seo-feature-toggle:hover {
    border-color: #84adff;
    background: #f9fbff;
}
.seo-feature-toggle span {
    display: grid;
    gap: 4px;
}
.seo-feature-toggle small {
    color: #667085;
    line-height: 1.4;
}
.seo-feature-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.seo-feature-toggle i {
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    height: 22px;
    border-radius: 99px;
    background: #d0d5dd;
    transition: 0.2s;
}
.seo-feature-toggle i:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
    transition: 0.2s;
}
.seo-feature-toggle input:checked + i {
    background: #1570ef;
}
.seo-feature-toggle input:checked + i:after {
    transform: translateX(18px);
}
.seo-feature-toggle input:focus + i {
    box-shadow: 0 0 0 3px #d1e9ff;
}
.seo-settings-section-title {
    padding: 18px 2px 2px;
}
.seo-type-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}
.seo-type-heading > .dashicons {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #eff8ff;
    color: #175cd3;
}
.seo-inline-check {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #344054;
    font-weight: 650;
}
.seo-type-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.seo-settings-group {
    min-width: 0;
    padding: 22px;
}
.seo-settings-group + .seo-settings-group {
    border-left: 1px solid #eaecf0;
}
.seo-settings-group h3 {
    margin: 0 0 5px;
    font-size: 16px;
}
.seo-settings-group .seo-setting-field {
    margin: 16px 0 0;
}
.seo-group-description {
    margin: 0 0 15px;
    color: #667085;
}
.seo-settings-group--wide {
    border-top: 1px solid #eaecf0;
    background: #fcfcfd;
}
.seo-default-social {
    margin-bottom: 18px;
}
.seo-default-image {
    width: 100%;
    height: auto;
    margin: 0;
    aspect-ratio: 1.91/1;
    border-color: #d0d5dd;
    border-radius: 10px;
}
.seo-default-image > span {
    font-size: 30px;
    color: #98a2b3;
}
.seo-default-image > small {
    margin-top: 8px;
    color: #667085;
}
.seo-image-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.seo-image-actions small {
    color: #667085;
}
.seo-schema-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 320px));
    gap: 16px;
    margin-top: 16px;
}
.seo-schema-grid label {
    display: grid;
    gap: 7px;
}
.seo-controls-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    padding: 13px 15px;
    border: 1px solid #6ce9a6;
    border-radius: 9px;
    background: #ecfdf3;
    color: #027a48;
}
.seo-controls-status > .dashicons {
    font-size: 22px;
}
.seo-controls-status div {
    display: grid;
    gap: 2px;
}
.seo-controls-status small {
    color: #027a48;
}
.seo-settings-save {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -4px 18px rgba(16, 24, 40, 0.1);
    backdrop-filter: blur(8px);
}
.seo-settings-save span {
    color: #667085;
}
.seo-settings-save .button-primary {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 650;
}
@media (max-width: 900px) {
    .seo-feature-grid {
        grid-template-columns: 1fr;
    }
    .seo-type-columns {
        grid-template-columns: 1fr;
    }
    .seo-settings-group + .seo-settings-group {
        border-top: 1px solid #eaecf0;
        border-left: 0;
    }
}
@media (max-width: 700px) {
    .seo-settings-page {
        margin-right: 10px;
    }
    .seo-settings-hero {
        padding: 22px;
    }
    .seo-settings-hero > .dashicons {
        display: none;
    }
    .seo-settings-field-grid {
        grid-template-columns: 1fr;
    }
    .seo-settings-card__header {
        flex-direction: column;
    }
    .seo-schema-grid {
        grid-template-columns: 1fr;
    }
    .seo-settings-save {
        align-items: stretch;
        flex-direction: column;
    }
    .seo-settings-save .button {
        width: 100%;
    }
}
/* Setup wizard enhancements */
.seo-setup-header {
    margin-top: 26px;
}
.seo-setup-header > span {
    color: #175cd3;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.seo-setup-header h1 {
    margin: 5px 0 7px;
    font-size: 30px;
}
.seo-setup-header p {
    margin: 0;
    color: #667085;
    font-size: 15px;
}
.seo-setup-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaecf0;
}
.seo-setup-step-heading > .dashicons {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #eff8ff;
    color: #175cd3;
    font-size: 23px;
}
.seo-setup-step-heading h2 {
    margin: 0 0 5px;
}
.seo-setup-step-heading p {
    margin: 0;
    color: #667085;
}
.seo-setup-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.seo-setup-fields label:first-child {
    grid-column: 1/-1;
}
.seo-setup-card label strong,
.seo-logo-field > div > strong {
    color: #344054;
    font-size: 13px;
}
.seo-setup-card label small,
.seo-logo-field small {
    color: #667085;
    font-weight: 400;
    line-height: 1.45;
}
.seo-setup-card input[type="text"],
.seo-setup-card input[type="url"],
.seo-setup-card select {
    max-width: none;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.seo-setup-card input:focus,
.seo-setup-card select:focus {
    border-color: #2e90fa;
    box-shadow: 0 0 0 3px #d1e9ff;
    outline: 0;
}
.seo-logo-field {
    display: grid;
    gap: 13px;
    padding: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 11px;
    background: #fcfcfd;
}
.seo-logo-field > div:first-child {
    display: grid;
    gap: 4px;
}
.seo-logo-picker {
    display: flex;
    align-items: center;
    gap: 16px;
}
.seo-logo-preview {
    display: grid;
    place-items: center;
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    overflow: hidden;
    border: 1px dashed #98a2b3;
    border-radius: 12px;
    background: #fff;
    color: #98a2b3;
}
.seo-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.seo-logo-preview > .dashicons {
    font-size: 28px;
}
.seo-logo-picker p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 12px;
}
.seo-setup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding-top: 20px;
    border-top: 1px solid #eaecf0;
}
.seo-setup-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 17px;
    border-radius: 8px;
}
.seo-setup-actions .button-primary {
    margin-left: auto;
}
.seo-setup-back {
    gap: 4px;
    color: #344054;
}
.seo-setup-back .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}
@media (max-width: 650px) {
    .seo-setup-fields {
        grid-template-columns: 1fr;
    }
    .seo-setup-fields label:first-child {
        grid-column: auto;
    }
    .seo-logo-picker {
        align-items: flex-start;
        flex-direction: column;
    }
    .seo-setup-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
    .seo-setup-actions .button {
        width: 100%;
    }
}
.site-scan-message {
    margin: 16px 0;
    padding: 12px 16px;
    border: 1px solid #fecdca;
    border-left: 4px solid #d92d20;
    border-radius: 8px;
    background: #fef3f2;
    color: #912018;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.site-scan-message[hidden] {
    display: none;
}
