﻿:root {
    --seo-red: #ff3b30;
    --seo-red-deep: #c1121f;
    --seo-amber: #f59e0b;
    --seo-green: #16a34a;
    --seo-blue: #0ea5e9;
    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --panel-border: #e2e8f0;
    --panel-bg: #ffffff;
    --surface: #f8fafc;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

@font-face {
    font-family: VazirmatnLocal;
    src: url("./assets/fonts/Vazir/webfonts/Vazir-Light-FD.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: VazirmatnLocal;
    src: url("./assets/fonts/Vazir/webfonts/Vazir-Medium-FD.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: VazirmatnLocal;
    src: url("./assets/fonts/Vazir/webfonts/Vazir-Bold-FD.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: VazirmatnLocal;
    src: url("./assets/fonts/Vazir/webfonts/Vazir-Black-FD.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 12px 28px rgba(255, 59, 48, 0.22);
    }

    50% {
        box-shadow: 0 20px 40px rgba(255, 59, 48, 0.3);
    }
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes marqueePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.75);
    }

    50% {
        opacity: 0.9;
        transform: scaleX(1);
    }
}

@keyframes spinDash {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -180;
    }
}

@keyframes heroShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes softBob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes greenPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.16);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
    }
}

body {
    font-family: VazirmatnLocal, Vazirmatn, sans-serif !important;
    background: radial-gradient(circle at 10% 10%, rgba(255, 59, 48, 0.08), transparent 35%), radial-gradient(circle at 85% 20%, rgba(248, 113, 113, 0.07), transparent 40%), #fff;
}

.content-shell {
    min-height: 55vh;
    padding: 28px 0 22px;
}

.seo-main-wrap {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
}

.seo-app {
    display: grid;
    gap: 14px;
}

.landing-hero {
    border: 1px solid #fecaca;
    border-radius: 18px;
    background: #fff;
    color: #991b1b;
    padding: 16px;
    display: grid;
    gap: 12px;
}

    .landing-hero h1 {
        margin: 0;
        font-size: clamp(19px, 2.4vw, 28px);
        line-height: 1.6;
        font-weight: 900;
    }

    .landing-hero p {
        margin: 0;
        max-width: 860px;
        font-size: 13px;
        line-height: 1.9;
        color: #7f1d1d;
    }

.landing-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .landing-chips span {
        border: 1px solid #fecaca;
        background: #fff5f5;
        border-radius: 999px;
        padding: 6px 12px;
        font-size: 11px;
        font-weight: 800;
        color: #b91c1c;
    }

.landing-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 12px;
    align-items: start;
    grid-auto-rows: min-content;
}

.landing-feature-main {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
}

.landing-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 13px;
}

    .landing-card h2 {
        margin: 0 0 8px;
        font-size: 16px;
        font-weight: 900;
        color: var(--ink-900);
    }

    .landing-card p {
        margin: 0 0 7px;
        line-height: 1.85;
        color: var(--ink-700);
        font-size: 13px;
    }

.landing-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

    .landing-list div {
        border: 1px solid #fee2e2;
        background: #fffafa;
        border-radius: 12px;
        padding: 8px 10px;
        font-size: 12px;
        color: #334155;
        line-height: 1.8;
        font-weight: 700;
    }

.faq-item {
    border-top: 1px dashed #fecaca;
    padding-top: 8px;
    margin-top: 8px;
}

    .faq-item b {
        color: #7f1d1d;
        display: block;
        margin-bottom: 2px;
        font-size: 12px;
        font-weight: 900;
    }

    .faq-item p {
        margin: 0;
        font-size: 12px;
        line-height: 1.8;
        color: #334155;
    }

.seo-scan-box {
    width: 100%;
    background: linear-gradient(120deg, #ff3b30, #ff5e3a 62%, #ff7852);
    padding: 16px;
    border-radius: 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.scan-decor {
    position: absolute;
    left: -6px;
    top: -10px;
    width: 170px;
    height: 170px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
    animation: floaty 5s ease-in-out infinite;
}

    .scan-decor svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    .scan-decor circle {
        fill: none;
        stroke: rgba(255, 255, 255, 0.95);
        stroke-width: 2;
        stroke-dasharray: 12 8;
        animation: dashFlow 7s linear infinite;
    }

    .scan-decor path {
        fill: rgba(255, 255, 255, 0.85);
        transform-origin: center;
        animation: spinDash 12s linear infinite;
    }

.seo-scan-box::after {
    content: "";
    position: absolute;
    inset: -60% -20% auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.11);
    filter: blur(2px);
    pointer-events: none;
}

.seo-scan-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.seo-scan-head {
    min-width: 170px;
}

    .seo-scan-head h2 {
        margin: 0;
        font-size: 16px;
        font-weight: 900;
    }

    .seo-scan-head p {
        margin: 4px 0 0;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.86);
        font-weight: 700;
    }

#seoScanForm {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 260px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(7px);
}

    #seoScanForm input {
        flex: 1;
        height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        padding: 0 14px;
        outline: none;
        font-size: 12px;
        font-weight: 700;
        direction: ltr;
        text-align: left;
        backdrop-filter: blur(6px);
        transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

        #seoScanForm input:focus {
            border-color: rgba(255, 255, 255, 0.58);
            background: rgba(255, 255, 255, 0.22);
            box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
        }

        #seoScanForm input::placeholder {
            color: rgba(255, 255, 255, 0.66);
        }

    #seoScanForm button {
        height: 44px;
        border: 0;
        border-radius: 12px;
        background: linear-gradient(135deg, #fff 0%, #ffe5e5 100%);
        color: #991b1b;
        font-size: 11px;
        font-weight: 900;
        cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
        min-width: 122px;
        padding: 0 14px;
        letter-spacing: -0.1px;
        box-shadow: 0 8px 22px rgba(127, 29, 29, 0.2);
    }

        #seoScanForm button:hover {
            background: linear-gradient(135deg, #fff8f8 0%, #ffd9d9 100%);
            transform: translateY(-2px);
            box-shadow: 0 12px 26px rgba(127, 29, 29, 0.26);
        }

.result-category {
    display: grid;
    gap: 8px;
}

.category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .category-head h3 {
        margin: 0;
        font-size: 14px;
        color: var(--ink-900);
        font-weight: 900;
    }

    .category-head p {
        margin: 0;
        color: var(--ink-500);
        font-size: 11px;
        font-weight: 700;
    }

.gauge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.gauge-card {
    border: 1px solid #fee2e2;
    border-radius: 12px;
    background: #fff;
    padding: 8px 8px 6px;
    text-align: center;
    min-width: 0;
}

.gauge {
    position: relative;
    width: 118px;
    height: 66px;
    margin: 1px auto 4px;
    overflow: hidden;
}

.gauge-arc {
    position: absolute;
    inset: 0;
    border-radius: 140px 140px 0 0;
    border: 7px solid #e5e7eb;
    border-bottom: 0;
    box-sizing: border-box;
}

.gauge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 140px 140px 0 0;
    border: 7px solid transparent;
    border-top-color: #ef4444;
    border-left-color: #f97316;
    border-right-color: #22c55e;
    border-bottom: 0;
    box-sizing: border-box;
    opacity: 0.9;
    pointer-events: none;
}

.gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 52px;
    background: #7f1d1d;
    border-radius: 9px;
    transform-origin: center bottom;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #fecaca;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0;
}

    .gauge-center b {
        font-size: 12px;
        line-height: 1;
        color: #7f1d1d;
        font-weight: 900;
    }

    .gauge-center small {
        font-size: 8px;
        color: #94a3b8;
        font-weight: 700;
        line-height: 1;
    }

.gauge-card > small {
    display: block;
    font-size: 10px;
    color: #7f1d1d;
    font-weight: 800;
}

.gauge-card.seo .gauge-needle {
    background: #dc2626;
}

.gauge-card.perf .gauge-needle {
    background: #ea580c;
}

.gauge-card.acc .gauge-needle {
    background: #16a34a;
}

.score-url {
    margin-top: 6px;
    border: 1px solid #fee2e2;
    border-radius: 10px;
    background: #fffafa;
    color: #7f1d1d;
    font-size: 11px;
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#seoScanForm button {
    border: 0;
    border-radius: 14px;
}

    #seoScanForm button:disabled {
        opacity: 0.6;
        cursor: wait;
    }

#seoStatus {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    min-height: 16px;
    position: relative;
    z-index: 2;
}

.scan-hints {
    margin: 7px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    position: relative;
    z-index: 2;
}

    .scan-hints li {
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 999px;
        padding: 5px 10px;
        font-size: 10px;
        font-weight: 800;
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        animation: marqueePulse 3s ease-in-out infinite;
    }

        .scan-hints li:nth-child(2) {
            animation-delay: 0.4s;
        }

        .scan-hints li:nth-child(3) {
            animation-delay: 0.8s;
        }

.scan-idle-card {
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: linear-gradient(160deg, #fff, #fff5f5);
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

    .scan-idle-card h3 {
        margin: 0 0 6px;
        font-size: 15px;
        color: #7f1d1d;
        font-weight: 900;
    }

    .scan-idle-card p {
        margin: 0;
        font-size: 12px;
        line-height: 1.8;
        color: #334155;
        font-weight: 700;
    }

    .scan-idle-card svg {
        width: 128px;
        height: 92px;
        display: block;
    }

    .scan-idle-card .trace {
        fill: none;
        stroke: #ef4444;
        stroke-width: 4;
        stroke-linecap: round;
        stroke-dasharray: 12 9;
        animation: dashFlow 4s linear infinite;
    }

.scan-loading {
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.scan-loading-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

    .scan-loading-head h3 {
        margin: 0;
        font-size: 14px;
        color: #7f1d1d;
        font-weight: 900;
    }

    .scan-loading-head p {
        margin: 2px 0 0;
        font-size: 11px;
        color: #64748b;
        font-weight: 700;
    }

.scan-loader-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #991b1b;
    font-size: 11px;
    font-weight: 800;
}

.scan-loader-svg {
    width: 22px;
    height: 22px;
    animation: spinDash 1.4s linear infinite;
}

    .scan-loader-svg circle {
        fill: none;
        stroke: #ef4444;
        stroke-width: 3.5;
        stroke-linecap: round;
        stroke-dasharray: 52;
        stroke-dashoffset: 18;
    }

.scan-loading-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.scan-skeleton {
    border: 1px solid #fee2e2;
    border-radius: 12px;
    height: 76px;
    background: linear-gradient(100deg, #fff5f5 8%, #ffe4e6 18%, #fff5f5 33%) 0 0 / 180% 100%;
    animation: skeletonWave 1.5s linear infinite;
}

@keyframes skeletonWave {
    0% {
        background-position: 180% 0;
    }

    100% {
        background-position: -180% 0;
    }
}

#seoResults {
    display: grid;
    gap: 12px;
}

.panel {
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    background: var(--panel-bg);
    padding: 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.animate-in {
    animation: fadeUp 0.4s ease forwards;
}

.overview-shell {
    background: #fff;
    border-color: #fecaca;
}

.overview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 10px;
}

.chart-card h3,
.panel h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 900;
    color: var(--ink-900);
}

.chart-row {
    margin-bottom: 10px;
}

.chart-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--ink-700);
    font-weight: 700;
}

.chart-track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.chart-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s ease;
}

    .chart-fill.critical {
        background: #dc2626;
    }

    .chart-fill.high {
        background: #fb7185;
    }

    .chart-fill.medium {
        background: #f97316;
    }

.pass-strip {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    font-size: 11px;
    color: var(--ink-500);
    font-weight: 700;
}

    .pass-strip div {
        height: 8px;
        background: #e2e8f0;
        border-radius: 999px;
        overflow: hidden;
    }

    .pass-strip i {
        display: block;
        width: 0;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #fb7185, #ef4444);
        transition: width 0.7s ease;
    }

.overview-kv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

    .overview-kv div {
        border: 1px solid #fee2e2;
        border-radius: 10px;
        background: #fffafa;
        padding: 7px 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 11px;
        font-weight: 700;
        color: #7f1d1d;
    }

    .overview-kv b {
        font-size: 12px;
        color: #b91c1c;
        font-weight: 900;
    }

.severity-spectrum {
    border: 1px solid #fee2e2;
    border-radius: 12px;
    background: #fffafa;
    padding: 9px;
    margin: 8px 0 10px;
}

.spectrum-bar {
    display: flex;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 8px;
}

    .spectrum-bar i {
        display: block;
        height: 100%;
    }

    .spectrum-bar .s1 {
        background: #dc2626;
    }

    .spectrum-bar .s2 {
        background: #f97316;
    }

    .spectrum-bar .s3 {
        background: #f59e0b;
    }

    .spectrum-bar .s4 {
        background: #16a34a;
    }

.spectrum-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: #475569;
    font-weight: 700;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
}

    .dot.d1 {
        background: #dc2626;
    }

    .dot.d2 {
        background: #f97316;
    }

    .dot.d3 {
        background: #f59e0b;
    }

    .dot.d4 {
        background: #16a34a;
    }

.fix-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.fix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
    background: #fff;
}

    .fix-table th,
    .fix-table td {
        border-bottom: 1px solid #f1f5f9;
        padding: 8px 9px;
        text-align: right;
        vertical-align: top;
        font-size: 12px;
        color: #334155;
        line-height: 1.8;
    }

    .fix-table th {
        background: #f8fafc;
        color: #0f172a;
        font-weight: 900;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .fix-table td p {
        margin: 2px 0 0;
        color: #64748b;
        font-size: 11px;
    }

.sev-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 900;
    border: 1px solid transparent;
}

    .sev-badge.sev-critical {
        color: #991b1b;
        background: #fee2e2;
        border-color: #fecaca;
    }

    .sev-badge.sev-high {
        color: #9a3412;
        background: #ffedd5;
        border-color: #fed7aa;
    }

    .sev-badge.sev-medium {
        color: #92400e;
        background: #fef3c7;
        border-color: #fde68a;
    }

    .sev-badge.sev-low {
        color: #166534;
        background: #dcfce7;
        border-color: #bbf7d0;
    }

.fix-table tr.sev-critical td:first-child {
    border-right: 4px solid #dc2626;
}

.fix-table tr.sev-high td:first-child {
    border-right: 4px solid #f97316;
}

.fix-table tr.sev-medium td:first-child {
    border-right: 4px solid #f59e0b;
}

.fix-table tr.sev-low td:first-child {
    border-right: 4px solid #16a34a;
}

.alt-table .img-link-cell a {
    color: #b91c1c;
    text-decoration: none;
    word-break: break-all;
}

    .alt-table .img-link-cell a:hover {
        text-decoration: underline;
    }

.img-preview {
    width: 78px;
    height: 56px;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff5f5;
}

    .img-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.img-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
}

.pass-toggle {
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .pass-toggle:hover {
        background: #ffe4e6;
        transform: translateY(-1px);
    }

.pass-panel {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}

    .pass-panel.open {
        max-height: 680px;
        opacity: 1;
        padding-top: 14px;
        padding-bottom: 14px;
    }

.pass-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.pass-item {
    border: 1px solid #bbf7d0;
    border-right-width: 4px;
    border-right-color: #16a34a;
    border-radius: 12px;
    background: #f0fdf4;
    padding: 9px;
}

.pass-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 12px;
    color: #166534;
}

    .pass-title b {
        font-weight: 900;
    }

.pass-item p {
    margin: 0;
    font-size: 11px;
    color: #14532d;
    line-height: 1.7;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.audit-item {
    border: 1px solid #e5e7eb;
    border-right-width: 5px;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
    background: #fff;
}

    .audit-item.critical {
        border-right-color: #dc2626;
    }

    .audit-item.high {
        border-right-color: #f97316;
    }

    .audit-item.medium {
        border-right-color: #f59e0b;
    }

    .audit-item.ok {
        border-right-color: #16a34a;
    }

.audit-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 13px;
}

.audit-impact {
    margin-right: auto;
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
}

.audit-item p {
    margin: 0 0 4px;
    color: #374151;
    font-size: 12px;
    line-height: 1.65;
}

.audit-fix {
    color: #111827;
    font-weight: 700;
}

.heading-map {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    background: #f8fafc;
    max-height: 340px;
    overflow: auto;
}

.heading-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px;
    border-bottom: 1px solid #edf2f7;
}

    .heading-row span {
        font-size: 10px;
        background: #e2e8f0;
        border-radius: 8px;
        padding: 1px 6px;
        font-weight: 800;
        color: #334155;
        flex-shrink: 0;
    }

    .heading-row b {
        font-size: 12px;
        font-weight: 700;
        color: #334155;
        line-height: 1.65;
    }

.kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 12px;
    background: #fff;
}

    .kv span {
        color: #6b7280;
        font-weight: 700;
    }

    .kv b {
        color: #111827;
        font-weight: 900;
    }

.vitals-chart {
    display: grid;
    gap: 9px;
    margin-bottom: 10px;
}

.vital-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 8px 9px;
    display: grid;
    gap: 6px;
}

.vital-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .vital-top b {
        color: #111827;
        font-size: 12px;
        font-weight: 900;
    }

.vital-state {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 900;
    border: 1px solid transparent;
}

    .vital-state.good {
        color: #166534;
        background: #dcfce7;
        border-color: #86efac;
    }

    .vital-state.mid {
        color: #92400e;
        background: #fef3c7;
        border-color: #fde68a;
    }

    .vital-state.bad {
        color: #991b1b;
        background: #fee2e2;
        border-color: #fecaca;
    }

.vital-value {
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
}

    .vital-value small {
        font-size: 10px;
        color: #64748b;
        font-weight: 800;
        line-height: 1.2;
    }

.vital-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.vital-zone {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #22c55e 0%, #22c55e 38%, #f59e0b 38%, #f59e0b 70%, #ef4444 70%, #ef4444 100%);
    opacity: 0.32;
    pointer-events: none;
}

.vital-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    position: relative;
    z-index: 1;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

    .vital-fill.good {
        background: linear-gradient(90deg, #22c55e, #16a34a);
    }

    .vital-fill.mid {
        background: linear-gradient(90deg, #f59e0b, #d97706);
    }

    .vital-fill.bad {
        background: linear-gradient(90deg, #ef4444, #dc2626);
    }

.vital-foot {
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
}

.tech-panel {
    border: 1px solid #ececef;
    border-radius: 16px;
    background: linear-gradient(165deg, #fff, #fafafa);
}

.tech-wrap.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tech-pill {
    border: 1px solid #ececef;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
}

.tech-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #f1d0d0;
    background: linear-gradient(160deg, #fff, #fff5f5);
    color: #b91c1c;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .tech-pill-icon svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.tech-pill-body b {
    display: block;
    font-size: 12px;
    color: #27272a;
    font-weight: 900;
    line-height: 1.45;
}

.tech-pill-body small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
}

.seo-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 14px;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
}

.seo-ok {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    border-radius: 12px;
    padding: 10px;
    font-size: 12px;
    font-weight: 800;
}

.muted {
    color: #6b7280;
    font-size: 12px;
    margin: 0;
}

/* Keywordchi dashboard-style overrides (tool area only) */
.content-shell {
    background: #f3f3f4;
    border-top: 1px solid #ebebee;
    border-bottom: 1px solid #ebebee;
    padding-top: 52px;
    padding-bottom: 26px;
}

.seo-main-wrap {
    width: min(1360px, calc(100% - 30px));
}

.seo-app {
    gap: 16px;
}

.seo-scan-box {
    background: linear-gradient(130deg, #ef4444 0%, #dc2626 52%, #b91c1c 100%);
    background-size: 160% 160%;
    animation: heroShift 8s ease infinite;
    color: #fff;
    border-radius: 24px;
    border: 1px solid #f87171;
    box-shadow: 0 16px 36px rgba(185, 28, 28, 0.26);
    padding: 16px;
    margin-top: 8px;
}

.scan-decor {
    opacity: 0.22;
    left: auto;
    right: -20px;
    top: -24px;
    width: 150px;
    height: 150px;
    animation: floaty 3.8s ease-in-out infinite;
}

    .scan-decor circle {
        stroke: rgba(255, 255, 255, 0.92);
    }

    .scan-decor path {
        fill: rgba(255, 255, 255, 0.9);
    }

.seo-scan-box::after {
    display: none;
}

.seo-scan-head h2 {
    color: #fff;
    font-size: 18px;
}

.seo-scan-head p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin-top: 5px;
}

#seoScanForm {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 6px;
}

    #seoScanForm input {
        background: #fff;
        border-color: #e5e7eb;
        color: #18181b;
        height: 46px;
        font-size: 13px;
        border-radius: 12px;
        font-weight: 700;
    }

        #seoScanForm input::placeholder {
            color: #a1a1aa;
        }

        #seoScanForm input:focus {
            border-color: #f87171;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.18);
        }

    #seoScanForm button {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: #fff;
        box-shadow: 0 10px 22px rgba(220, 38, 38, 0.24);
        height: 46px;
        border-radius: 12px;
        font-size: 12px;
        min-width: 152px;
        animation: pulseGlow 2.4s ease-in-out infinite;
    }

        #seoScanForm button:hover {
            background: linear-gradient(135deg, #f05252 0%, #dc2626 100%);
            box-shadow: 0 12px 26px rgba(220, 38, 38, 0.3);
        }

        #seoScanForm button:disabled {
            opacity: 0.8;
        }

.scan-hints {
    margin-top: 9px;
}

    .scan-hints li {
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
        font-size: 10px;
    }

#seoStatus {
    color: #fff;
    font-size: 12px;
    margin-top: 8px;
    min-height: 18px;
}

.scan-idle-card,
.scan-loading,
.panel,
.landing-hero,
.landing-card {
    border-radius: 22px;
    border-color: #e8e8eb;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.scan-idle-card {
    background: #fff;
}

    .scan-idle-card h3,
    .scan-loading-head h3 {
        color: #27272a;
    }

    .scan-idle-card p,
    .scan-loading-head p {
        color: #71717a;
    }

    .scan-idle-card .trace {
        stroke: #ef4444;
    }

.scan-loader-wrap {
    border-color: #fecaca;
    background: #fff5f5;
    color: #b91c1c;
}

.gauge-grid {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.gauge-card.seo {
    grid-row: 1 / 3;
    border-color: #fecaca;
    background: linear-gradient(165deg, #fff, #fff2f2);
    animation: softBob 3.2s ease-in-out infinite;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.12);
}

    .gauge-card.seo .gauge {
        width: 156px;
        height: 92px;
        margin-top: 2px;
    }

        .gauge-card.seo .gauge-arc,
        .gauge-card.seo .gauge::after {
            border-width: 9px;
        }

    .gauge-card.seo .gauge-center {
        width: 52px;
        height: 52px;
    }

        .gauge-card.seo .gauge-center b {
            font-size: 16px;
        }

        .gauge-card.seo .gauge-center small {
            font-size: 9px;
        }

    .gauge-card.seo > small {
        font-size: 12px;
        color: #991b1b;
        font-weight: 900;
    }

.scan-skeleton {
    border-color: #f0d3d3;
    background: linear-gradient(100deg, #fff7f7 8%, #ffe8e8 18%, #fff7f7 33%) 0 0 / 180% 100%;
}

.pass-strip i {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.overview-kv div:nth-child(2) {
    border-color: #bbf7d0;
    background: linear-gradient(140deg, #f0fdf4, #dcfce7);
    color: #166534;
    animation: greenPulse 2.4s ease-in-out infinite;
}

    .overview-kv div:nth-child(2) b {
        color: #15803d;
    }

.pass-panel {
    border-color: #bbf7d0;
    background: linear-gradient(170deg, #ffffff, #f0fdf4);
}

.pass-item {
    border-color: #86efac;
    background: linear-gradient(170deg, #f0fdf4, #dcfce7);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.12);
}

.pass-title {
    color: #166534;
}

    .pass-title span {
        display: inline-grid;
        place-items: center;
        min-width: 20px;
        height: 20px;
        padding: 0 4px;
        border-radius: 50%;
        background: #22c55e;
        color: #fff;
        font-size: 11px;
        animation: greenPulse 2.8s ease-in-out infinite;
    }

.pass-item p {
    color: #14532d;
}

.landing-hero {
    background: linear-gradient(150deg, #ffffff, #fff4f4);
    color: #2e2f33;
    border-color: #f4d8d8;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
    align-items: stretch;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    border: 1px solid #f1d0d0;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 900;
    color: #b91c1c;
    background: #fff;
    width: fit-content;
}

.landing-hero h1 {
    color: #2e2f33;
}

.landing-hero p {
    color: #52525b;
}

.landing-hero-visual {
    position: relative;
    min-height: 280px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #f0d8d8;
    background: #fff;
}

.hero-shot {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    animation: slowZoom 14s ease-in-out infinite;
}

@keyframes slowZoom {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.hero-overlay-card {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 244, 0.9));
    backdrop-filter: blur(6px);
    padding: 8px;
    display: grid;
    gap: 6px;
}

.hero-overlay-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

    .hero-overlay-row span {
        border: 1px solid #f3d8d8;
        border-radius: 10px;
        padding: 5px 6px;
        text-align: center;
        font-size: 10px;
        font-weight: 800;
        color: #7f1d1d;
        background: #fff;
    }

.hero-orbit {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 78px;
    height: 78px;
    opacity: 0.92;
    pointer-events: none;
}

    .hero-orbit circle {
        fill: none;
        stroke: #ef4444;
        stroke-width: 2;
        stroke-dasharray: 8 6;
        animation: dashFlow 5.6s linear infinite;
    }

    .hero-orbit path {
        fill: #ef4444;
        transform-origin: center;
        animation: spinDash 5s linear infinite;
    }

.landing-chips span {
    background: #fff;
    border-color: #f1d7d7;
    color: #7f1d1d;
    font-weight: 900;
}

.landing-list div {
    border-color: #ececef;
    background: #fafafb;
    color: #3f3f46;
}

.feature-grid {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    border: 1px solid #ececef;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}

.feature-badge {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 900;
    font-size: 12px;
}

.feature-item b {
    display: block;
    font-size: 12px;
    color: #27272a;
    margin-bottom: 2px;
    font-weight: 900;
}

.feature-item p {
    margin: 0;
    font-size: 11px;
    line-height: 1.7;
    color: #52525b;
}

.feature-media {
    margin-top: 10px;
    border: 1px solid #ececef;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    min-height: 136px;
    background: #fff;
}

    .feature-media img {
        width: 100%;
        height: 100%;
        min-height: 136px;
        object-fit: cover;
        display: block;
        animation: slowZoom 16s ease-in-out infinite;
    }

    .feature-media svg {
        position: absolute;
        bottom: 8px;
        left: 8px;
        width: 74px;
        height: 74px;
        opacity: 0.95;
    }

    .feature-media .pulse-ring {
        fill: none;
        stroke: #22c55e;
        stroke-width: 2;
        stroke-dasharray: 9 6;
        animation: dashFlow 4.4s linear infinite;
    }

    .feature-media .pulse-dot {
        fill: #16a34a;
        animation: softBob 2.2s ease-in-out infinite;
    }

.faq-item {
    border-top-color: #ececef;
}

    .faq-item b {
        color: #27272a;
    }

    .faq-item p {
        color: #52525b;
    }

.landing-tech {
    border: 1px solid #e8e8eb;
    border-radius: 20px;
    background: linear-gradient(160deg, #fff, #fafafa);
    padding: 13px;
    display: grid;
    gap: 4px;
    align-content: start;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.seo-main-wrap .landing-tech .landing-tech-head {
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 2px;
}

.landing-tech-head h2 {
    margin: 0;
    font-size: 16px;
    color: #27272a;
    font-weight: 900;
}

.landing-tech-head p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.65;
    font-weight: 700;
}

.seo-main-wrap .landing-tech .landing-tech-head h2 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.seo-main-wrap .landing-tech .landing-tech-head p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.45 !important;
    font-size: 11px !important;
}

.landing-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 2px;
}

.landing-faq-under-tech {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

.seo-main-wrap .landing-tech .landing-tech-grid {
    margin-top: 0 !important;
}

.tech-card {
    border: 1px solid #ececef;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    align-items: start;
}

.tech-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #f3d8d8;
    background: linear-gradient(165deg, #fff, #fff3f3);
    display: grid;
    place-items: center;
    color: #c02626;
    flex-shrink: 0;
}

    .tech-icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.tech-card b {
    display: block;
    font-size: 12px;
    color: #27272a;
    font-weight: 900;
    margin-bottom: 2px;
}

.tech-card p {
    margin: 0;
    font-size: 11px;
    line-height: 1.75;
    color: #52525b;
}

.landing-studio {
    border: 1px solid #e8e8eb;
    border-radius: 20px;
    background: #fff;
    padding: 13px;
    display: grid;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.landing-studio-head h2 {
    margin: 0;
    font-size: 16px;
    color: #27272a;
    font-weight: 900;
}

.landing-studio-head p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.8;
    font-weight: 700;
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.studio-card {
    border: 1px solid #ececef;
    border-radius: 14px;
    background: linear-gradient(170deg, #fff, #fafafa);
    padding: 12px;
    display: grid;
    gap: 9px;
    position: relative;
    overflow: hidden;
}

    .studio-card svg {
        width: 110px;
        height: 110px;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.18;
        z-index: 0;
        pointer-events: none;
    }

    .studio-card .stroke-flow {
        fill: none;
        stroke: #ef4444;
        stroke-width: 3.4;
        stroke-linecap: round;
        stroke-dasharray: 16 10;
        animation: dashFlow 4.8s linear infinite;
    }

    .studio-card .dot-live {
        fill: #22c55e;
        animation: greenPulse 2.6s ease-in-out infinite;
    }

    .studio-card b {
        font-size: 14px;
        font-weight: 900;
        color: #1f2937;
        position: relative;
        z-index: 1;
    }

    .studio-card p {
        margin: 0;
        font-size: 12px;
        line-height: 1.75;
        color: #52525b;
        position: relative;
        z-index: 1;
    }

.studio-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #991b1b;
    font-size: 11px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

/* Dashboard enrichment */
#seoResults {
    gap: 14px;
}

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.kpi-tile {
    border: 1px solid #e8e8eb;
    border-radius: 14px;
    background: linear-gradient(165deg, #ffffff, #fbfbfd);
    padding: 7px 9px 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 2px;
    align-content: start;
    justify-items: center;
    min-height: 94px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .kpi-tile::after {
        content: "";
        position: absolute;
        left: -24px;
        bottom: -24px;
        width: 78px;
        height: 78px;
        border-radius: 50%;
        background: rgba(148, 163, 184, 0.14);
        pointer-events: none;
    }

    .kpi-tile::before {
        content: "";
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.8), rgba(255,255,255,0.2));
        opacity: 0.6;
        transform: translateX(-100%);
        animation: kpiSweep 2.8s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes kpiSweep {
    0%, 24% {
        transform: translateX(-100%);
        opacity: 0;
    }

    40%, 72% {
        transform: translateX(0%);
        opacity: 0.55;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.kpi-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.kpi-icon {
    position: absolute;
    top: 7px;
    inset-inline-start: 7px;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 13px;
    background: #f4f4f5;
    color: #3f3f46;
}

.kpi-label {
    order: 2;
    font-size: 10px;
    font-weight: 800;
    color: #71717a;
    text-align: center;
    margin-top: 2px;
}

.kpi-value {
    order: 1;
    width: 100%;
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.02;
    color: #18181b;
    letter-spacing: -0.7px;
    margin-top: 0;
}

.kpi-hint {
    order: 3;
    font-size: 9px;
    color: #94a3b8;
    font-weight: 700;
    text-align: center;
}

.kpi-tile.tone-seo {
    border-color: #fecaca;
    background: linear-gradient(165deg, #fff2f2, #ffe9e9);
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.18);
}

    .kpi-tile.tone-seo .kpi-icon {
        background: #fee2e2;
        color: #b91c1c;
    }

    .kpi-tile.tone-seo .kpi-value {
        color: #b91c1c;
        text-shadow: 0 0 16px rgba(239, 68, 68, 0.18);
    }

.kpi-tile.tone-good {
    border-color: #bbf7d0;
    background: linear-gradient(160deg, #ffffff, #ecfdf3);
}

    .kpi-tile.tone-good .kpi-icon {
        background: #dcfce7;
        color: #15803d;
    }

    .kpi-tile.tone-good .kpi-value {
        color: #166534;
    }

.kpi-tile.tone-mid,
.kpi-tile.tone-warn {
    border-color: #fed7aa;
    background: linear-gradient(160deg, #fff, #fff4e8);
}

    .kpi-tile.tone-mid .kpi-icon,
    .kpi-tile.tone-warn .kpi-icon {
        background: #ffedd5;
        color: #c2410c;
    }

    .kpi-tile.tone-mid .kpi-value,
    .kpi-tile.tone-warn .kpi-value {
        color: #c2410c;
    }

.kpi-tile.tone-bad {
    border-color: #fecaca;
    background: linear-gradient(160deg, #fff, #ffeef0);
}

    .kpi-tile.tone-bad .kpi-icon {
        background: #fee2e2;
        color: #b91c1c;
    }

    .kpi-tile.tone-bad .kpi-value {
        color: #b91c1c;
    }

.panel {
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.overview-shell {
    background: linear-gradient(180deg, #fff, #fffbfb);
    border-color: #fde2e2;
}

.category-head {
    background: #fafafa;
    border: 1px solid #ececef;
    border-radius: 12px;
    padding: 8px 10px;
}

    .category-head h3,
    .category-head h2 {
        font-size: 13px;
    }

.score-url {
    border-color: #fee2e2;
    background: #fff;
}

.dashboard-board {
    padding: 12px;
}

.dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dash-url-badge {
    border: 1px solid #f1d0d0;
    border-radius: 999px;
    background: #fff5f5;
    color: #991b1b;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 11px;
    max-width: min(100%, 520px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.15fr repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dash-card {
    border: 1px solid #ececef;
    border-radius: 16px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

    .dash-card h3,
    .dash-card h2 {
        margin: 0 0 8px;
        font-size: 13px;
        font-weight: 900;
        color: #27272a;
    }

.dashboard-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #111827;
    line-height: 1.35;
}

.dash-score-hero {
    grid-row: 1 / 3;
    border-color: #fecaca;
    background: linear-gradient(165deg, #fff, #fff2f2);
}

.score-hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

    .score-hero-head span {
        font-size: 11px;
        color: #71717a;
        font-weight: 800;
    }

    .score-hero-head b {
        color: #b91c1c;
        font-size: 28px;
        font-weight: 900;
        line-height: 1;
    }

.score-gauge-wrap {
    position: relative;
    height: 150px;
    margin-bottom: 8px;
}

    .score-gauge-wrap canvas {
        width: 100% !important;
        height: 100% !important;
        display: block;
    }

.score-gauge-center {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 76px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fff;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0;
}

    .score-gauge-center b {
        color: #b91c1c;
        font-size: 20px;
        line-height: 1;
        font-weight: 900;
    }

    .score-gauge-center small {
        color: #94a3b8;
        font-size: 10px;
        line-height: 1;
        font-weight: 800;
    }

.score-hero-sub {
    display: grid;
    gap: 6px;
}

    .score-hero-sub a {
        border: 1px solid #fee2e2;
        border-radius: 10px;
        background: #fff;
        padding: 6px 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 11px;
        color: #7f1d1d;
        font-weight: 800;
        text-decoration: none;
        transition: all 0.2s ease;
    }

        .score-hero-sub a:hover {
            border-color: #fca5a5;
            background: #fff5f5;
            transform: translateY(-1px);
        }

        .score-hero-sub a b {
            color: #111827;
            font-size: 12px;
            font-weight: 900;
        }

    .score-hero-sub .tone-good {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .score-hero-sub .tone-bad {
        border-color: #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

.score-hero-divider {
    height: 1px;
    background: #f3d7d7;
    margin: 9px 0;
}

.score-hero-issues h4 {
    margin: 0 0 6px;
    font-size: 12px;
    color: #27272a;
    font-weight: 900;
}

.score-hero-issues p {
    margin: 0 0 5px;
    font-size: 11px;
    color: #52525b;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

    .score-hero-issues p i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ef4444;
        flex-shrink: 0;
    }

.chart-tile {
    min-height: 232px;
    display: grid;
    align-content: start;
}

.dash-params-card {
    align-content: start;
}

.dash-params-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dash-param {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: linear-gradient(165deg, #fff, #f8fafc);
    padding: 7px 8px;
    display: grid;
    gap: 2px;
}

.dash-param-link {
    text-decoration: none;
    transition: all 0.2s ease;
}

    .dash-param-link:hover {
        border-color: #fca5a5;
        background: linear-gradient(165deg, #fff, #fff1f2);
        transform: translateY(-1px);
        box-shadow: 0 8px 16px rgba(239, 68, 68, 0.12);
    }

.dash-param span {
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
}

.dash-param b {
    font-size: 12px;
    color: #111827;
    font-weight: 900;
    line-height: 1.4;
}

.canvas-wrap {
    position: relative;
    height: 178px;
    width: 100%;
}

.chart-fallback {
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    font-weight: 700;
}

.dash-details-panel {
    display: grid;
    gap: 8px;
}

.dash-details {
    border: 1px solid #ececef;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

    .dash-details > summary {
        cursor: pointer;
        list-style: none;
        padding: 10px 12px;
        font-size: 12px;
        font-weight: 900;
        color: #27272a;
        background: #fafafa;
        border-bottom: 1px solid #ececef;
    }

        .dash-details > summary::-webkit-details-marker {
            display: none;
        }

    .dash-details .details-body {
        padding: 10px;
        background: #fff;
    }

    .dash-details[open] > summary {
        background: #fff5f5;
        color: #991b1b;
        border-bottom-color: #f1d0d0;
    }

.insight-tabs-panel {
    border: 1px solid #efe5e5;
    border-radius: 18px;
    background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.09), transparent 40%), linear-gradient(145deg, #fff, #fcf7f7 55%, #f8fafc);
    display: grid;
    gap: 12px;
    padding: 14px;
}

.insight-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.insight-dashboard-card {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.insight-card-head {
    padding: 10px 10px 8px;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.16);
    display: grid;
    gap: 2px;
}

    .insight-card-head b,
    .insight-card-head h2 {
        margin: 0;
        font-size: 16px;
        font-weight: 900;
        color: #0f172a;
        line-height: 1.4;
    }

    .insight-card-head span {
        font-size: 10px;
        font-weight: 700;
        color: #334155;
    }

.insight-card-body {
    padding: 10px;
    background: rgba(255, 255, 255, 0.86);
    animation: fadeUp 0.25s ease;
}

.insight-dashboard-card.tone-backlinks {
    border-color: #fdba74;
    background: linear-gradient(165deg, #fff7ed, #ffedd5);
}

.insight-dashboard-card.tone-social {
    border-color: #86efac;
    background: linear-gradient(165deg, #f0fdf4, #dcfce7);
}

.insight-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

    .insight-panel-head b {
        font-size: 13px;
        color: #1f2937;
        font-weight: 900;
    }

    .insight-panel-head span {
        font-size: 11px;
        color: #64748b;
        font-weight: 700;
    }

.insight-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.insight-kpi {
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    background: linear-gradient(170deg, #fff, #f9fafb);
    padding: 9px;
    display: grid;
    gap: 3px;
}

    .insight-kpi span {
        font-size: 10px;
        color: #64748b;
        font-weight: 700;
    }

    .insight-kpi b {
        font-size: 19px;
        color: #111827;
        line-height: 1.1;
        font-weight: 900;
    }

.insight-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.insight-row {
    border: 1px solid #eceef4;
    border-radius: 12px;
    background: linear-gradient(165deg, #fff, #f8fafc);
    padding: 10px;
    display: grid;
    gap: 5px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.insight-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.insight-row b {
    font-size: 12px;
    color: #1f2937;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insight-row .insight-row-share {
    font-size: 10px;
    color: #0f766e;
    background: #ecfeff;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    padding: 2px 7px;
    font-weight: 800;
    flex-shrink: 0;
}

.insight-row span {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}

.insight-row-meter {
    background: #e5e7eb;
    border-radius: 999px;
    height: 5px;
    overflow: hidden;
}

    .insight-row-meter i {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, #ef4444, #fb923c);
        border-radius: 999px;
    }

.signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.signal-chip {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    background: linear-gradient(150deg, #fff, #f8fafc);
    display: grid;
    gap: 3px;
}

    .signal-chip b {
        font-size: 11px;
        color: #1f2937;
        font-weight: 900;
        line-height: 1.35;
    }

    .signal-chip span {
        font-size: 10px;
        color: #64748b;
        font-weight: 700;
    }

    .signal-chip.ok {
        border-color: #bbf7d0;
        background: linear-gradient(155deg, #f0fdf4, #ecfeff);
    }

        .signal-chip.ok b,
        .signal-chip.ok span {
            color: #166534;
        }

    .signal-chip.bad {
        border-color: #fecaca;
        background: linear-gradient(155deg, #fff5f5, #fff1f2);
    }

        .signal-chip.bad b,
        .signal-chip.bad span {
            color: #991b1b;
        }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.profile-chip {
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 9px 10px;
    font-size: 11px;
    font-weight: 900;
    color: #334155;
    background: linear-gradient(165deg, #fff, #f8fafc);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

    .profile-chip i {
        font-size: 10px;
        color: #64748b;
        font-style: normal;
    }

    .profile-chip:hover {
        border-color: #f1d0d0;
        color: #991b1b;
        box-shadow: 0 8px 18px rgba(239, 68, 68, 0.14);
    }

.insight-cta-wrap {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.insight-cta-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
    transition: all 0.28s ease;
    border: 1px solid transparent;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    animation: ctaPulse 2.8s ease-in-out infinite;
}

    .insight-cta-btn::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 -130%;
        width: 70%;
        background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.55), transparent);
        transform: skewX(-18deg);
        animation: ctaSweep 2.2s ease-in-out infinite;
        pointer-events: none;
    }

    .insight-cta-btn.backlink {
        color: #9a3412;
        border-color: #fdba74;
        background: linear-gradient(160deg, #fff7ed, #ffedd5);
    }

        .insight-cta-btn.backlink:hover {
            color: #7c2d12;
            border-color: #fb923c;
            box-shadow: 0 10px 20px rgba(251, 146, 60, 0.24);
        }

    .insight-cta-btn.social {
        color: #166534;
        border-color: #86efac;
        background: linear-gradient(160deg, #f0fdf4, #dcfce7);
    }

        .insight-cta-btn.social:hover {
            color: #14532d;
            border-color: #4ade80;
            box-shadow: 0 10px 20px rgba(34, 197, 94, 0.24);
        }

@keyframes ctaPulse {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes ctaSweep {
    0% {
        left: -130%;
    }

    100% {
        left: 145%;
    }
}

.insight-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

    .insight-overview article {
        border: 1px solid #eceef4;
        border-radius: 12px;
        background: linear-gradient(165deg, #fff, #f8fafc);
        padding: 9px;
        display: grid;
        gap: 4px;
    }

        .insight-overview article span {
            font-size: 10px;
            color: #64748b;
            font-weight: 700;
        }

        .insight-overview article b {
            font-size: 12px;
            color: #111827;
            font-weight: 900;
            line-height: 1.55;
        }

.keyword-spotlight {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.keyword-spot-card {
    border: 1px solid #eceef4;
    border-radius: 12px;
    background: linear-gradient(160deg, #fff, #f8fafc);
    padding: 10px;
    display: grid;
    gap: 6px;
}

    .keyword-spot-card .rank {
        font-size: 10px;
        color: #991b1b;
        background: #fee2e2;
        border: 1px solid #fecaca;
        border-radius: 999px;
        width: fit-content;
        padding: 2px 8px;
        font-weight: 800;
    }

    .keyword-spot-card b,
    .keyword-spot-card h2 {
        margin: 0;
        font-size: 16px;
        color: #1f2937;
        font-weight: 900;
        line-height: 1.45;
    }

    .keyword-spot-card p {
        margin: 0;
        font-size: 10px;
        color: #64748b;
        font-weight: 700;
        display: flex;
        justify-content: space-between;
        gap: 6px;
    }

.keyword-meter {
    background: #e5e7eb;
    border-radius: 999px;
    height: 5px;
    overflow: hidden;
}

    .keyword-meter i {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, #10b981, #22d3ee);
    }

.insight-keyword-table td b,
.insight-keyword-table td .kw-title {
    margin: 0;
    font-size: 15px;
    color: #27272a;
    font-weight: 900;
    line-height: 1.45;
}

.kw-target-link {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 12px;
    font-weight: 700;
    word-break: break-all;
}

    .kw-target-link:hover {
        color: #1d4ed8;
    }

.kw-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #fecaca;
    background: linear-gradient(135deg, #fff1f2, #fff7ed);
    color: #7f1d1d;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.12);
}

.kw-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #fecaca;
    border-top-color: #ef4444;
    border-radius: 999px;
    animation: kwSpin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes kwSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .studio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .landing-tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tech-wrap.tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-score-hero {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .insight-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insight-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insight-list {
        grid-template-columns: 1fr;
    }

    .signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .keyword-spotlight {
        grid-template-columns: 1fr;
    }

    .insight-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .landing-grid {
        grid-template-columns: 1fr;
    }

    .landing-feature-main {
        grid-column: auto;
        grid-row: auto;
    }

    .landing-faq-under-tech {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 980px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .pass-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-overlay-row {
        grid-template-columns: 1fr;
    }

    .studio-grid {
        grid-template-columns: 1fr;
    }

    .landing-tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-wrap.tech-grid {
        grid-template-columns: 1fr;
    }

    .dash-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .insight-kpi-grid,
    .insight-cards-grid,
    .signal-grid,
    .profile-grid,
    .keyword-spotlight,
    .insight-overview {
        grid-template-columns: 1fr;
    }

    .canvas-wrap {
        height: 188px;
    }

    .score-gauge-wrap {
        height: 136px;
    }

    .kpi-value {
        font-size: 24px;
    }

    .dash-params-grid {
        grid-template-columns: 1fr;
    }

    .scan-idle-card {
        grid-template-columns: 1fr;
    }

    .scan-loading-grid {
        grid-template-columns: 1fr;
    }

    .gauge-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .gauge-card.seo {
        grid-row: auto;
    }

    .gauge {
        width: 106px;
    }

    .gauge-card.seo .gauge {
        width: 120px;
        height: 72px;
    }
}
