:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #f0f3fa;
    --ink: #111827;
    --muted: #667085;
    --muted-2: #98a2b3;
    --line: #e4e7ec;
    --primary: #5b5ce2;
    --primary-2: #7c5cff;
    --primary-dark: #4647c5;
    --accent: #18b79d;
    --danger: #d92d20;
    --warning: #e89b1d;
    --success: #16875a;
    --dark: #0b1020;
    --dark-2: #141a2f;
    --shadow: 0 18px 55px rgba(15, 23, 42, .10);
    --shadow-soft: 0 8px 30px rgba(15, 23, 42, .07);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    background: rgba(91, 92, 226, .18);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
summary {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

img,
svg {
    max-width: 100%;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid rgba(228, 231, 236, .85);
    backdrop-filter: blur(18px);
}

.site-header--solid {
    background: rgba(255, 255, 255, .96);
}

.site-header__inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.brand__mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), #8d63ff);
    color: #fff;
    box-shadow: 0 8px 20px rgba(91, 92, 226, .28);
    font-size: 17px;
}

.brand__name {
    font-size: 20px;
}

.brand__badge {
    margin-left: 2px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef0ff;
    color: var(--primary-dark);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: #475467;
    font-size: 14px;
    font-weight: 650;
    transition: color .2s ease;
}

.site-nav a:hover {
    color: var(--ink);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 999px;
}

.balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #dce0f8;
    border-radius: 999px;
    background: #f8f8ff;
    color: #515767;
    font-size: 12px;
    white-space: nowrap;
}

.balance-pill strong {
    color: var(--ink);
    font-size: 14px;
}

.balance-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(24, 183, 157, .12);
}

/* Buttons */
.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 750;
    font-size: 14px;
    line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.button--sm {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 13px;
}

.button--lg {
    min-height: 54px;
    padding-inline: 24px;
    border-radius: 14px;
}

.button--full {
    width: 100%;
}

.button--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 10px 24px rgba(91, 92, 226, .22);
}

.button--primary:hover {
    box-shadow: 0 14px 30px rgba(91, 92, 226, .3);
}

.button--secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.button--secondary:hover,
.button--ghost:hover {
    border-color: #cdd2dc;
    background: #f9fafb;
}

.button--ghost {
    border-color: transparent;
    background: transparent;
    color: #475467;
}

.button--danger {
    background: #fff1f0;
    border-color: #fecdca;
    color: #b42318;
}

.button--light {
    background: #fff;
    color: var(--dark);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-row--center {
    justify-content: center;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: #475467;
    font-size: 18px;
}

.text-button {
    border: 0;
    background: none;
    color: var(--muted);
    padding: 0;
}

.text-button--danger {
    color: #b42318;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.hero__glow {
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .28;
}

.hero__glow--one {
    top: -240px;
    left: 18%;
    background: #6d5cff;
}

.hero__glow--two {
    right: -250px;
    bottom: -300px;
    background: #0fbf9f;
}

.hero__grid {
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
    align-items: center;
    gap: 64px;
    padding-block: 88px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #c8c9ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.eyebrow--light {
    color: var(--primary);
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 22px;
    font-size: clamp(46px, 5.5vw, 76px);
    line-height: .98;
    letter-spacing: -.055em;
}

.hero h1 em {
    color: #9d9eff;
    font-style: normal;
}

.hero__lead {
    max-width: 680px;
    margin: 0;
    color: #b9c0d0;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.65;
}

.audit-form {
    max-width: 740px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 34px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
    backdrop-filter: blur(16px);
}

.audit-form__field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 14px;
    border-radius: 13px;
    background: #fff;
}

.audit-form__icon {
    color: var(--primary);
    font-weight: 800;
}

.audit-form input {
    width: 100%;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.audit-form input::placeholder {
    color: #98a2b3;
}

.hero__meta {
    display: flex;
    gap: 28px;
    margin-top: 34px;
    color: #8f99ae;
}

.hero__meta div {
    display: flex;
    flex-direction: column;
}

.hero__meta strong {
    color: #fff;
    font-size: 22px;
    letter-spacing: -.03em;
}

.hero__meta span {
    font-size: 12px;
}

.hero-preview {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    transform: rotate(1.5deg);
}

.hero-preview__topbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #8f99ae;
    font-size: 11px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7a8395;
}

.hero-preview__body {
    padding: 22px;
}

.preview-score {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
}

.preview-score__ring {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff 58%, transparent 59%), conic-gradient(var(--accent) 0 88%, #e7eaf0 88% 100%);
}

.preview-score__ring strong {
    font-size: 27px;
}

.preview-score__ring span {
    color: var(--muted);
    font-size: 10px;
}

.preview-score h3 {
    margin: 8px 0 2px;
    font-size: 20px;
}

.preview-score p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.status-chip--good {
    background: #eafaf4;
    color: #087a50;
}

.status-chip--warn {
    background: #fff6e5;
    color: #a56300;
}

.status-chip--bad {
    background: #fff0ef;
    color: #b42318;
}

.preview-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.preview-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
}

.preview-row div {
    display: flex;
    flex-direction: column;
}

.preview-row strong {
    font-size: 13px;
}

.preview-row small {
    color: #8791a8;
}

.preview-row b {
    color: #aeb6c6;
    font-size: 11px;
}

.preview-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
}

.preview-icon--good {
    background: rgba(24, 183, 157, .14);
    color: #53d7bd;
}

.preview-icon--warn {
    background: rgba(232, 155, 29, .14);
    color: #f7bf5f;
}

.preview-icon--bad {
    background: rgba(217, 45, 32, .15);
    color: #ff8178;
}

.logo-strip {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.logo-strip__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: #71798a;
    font-size: 12px;
}

.logo-strip__inner span {
    color: #98a2b3;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.logo-strip__inner b {
    color: #475467;
    font-weight: 700;
}

/* Sections */
.section {
    padding: 110px 0;
}

.section--soft {
    background: #eef2f8;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-heading--left {
    margin-inline: 0;
    text-align: left;
}

.section-heading h2 {
    margin: 14px 0 14px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    min-height: 250px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.feature-card--wide {
    grid-column: span 2;
}

.feature-card--dark {
    background: var(--dark);
    color: #fff;
    border-color: transparent;
}

.feature-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    border-radius: 12px;
    background: #eef0ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.feature-card--dark .feature-card__icon {
    background: rgba(255, 255, 255, .1);
    color: #b8b9ff;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    letter-spacing: -.025em;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.feature-card--dark p {
    color: #aeb6c8;
}

.mini-bars {
    display: grid;
    gap: 9px;
    margin-top: 24px;
}

.mini-bars i {
    width: var(--w);
    height: 8px;
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #a56dff);
}

.terminal-line {
    margin-top: 25px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #d9dbea;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.terminal-line span {
    color: #62e1c9;
}

.terminal-line i {
    width: 7px;
    height: 13px;
    display: inline-block;
    margin-left: 4px;
    background: #9d9eff;
    vertical-align: -2px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.how-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 84px;
    align-items: start;
}

.steps-list {
    display: grid;
    gap: 12px;
}

.step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 22px;
    border: 1px solid #dde2eb;
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
}

.step-card > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--dark);
    color: #fff;
    font-weight: 800;
}

.step-card h3 {
    margin: 0 0 3px;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.pricing-grid {
    max-width: 860px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 0 auto;
}

.price-card {
    position: relative;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.price-card--featured {
    border-color: rgba(91, 92, 226, .38);
    box-shadow: 0 20px 55px rgba(91, 92, 226, .12);
}

.price-card__label {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.price-card h3 {
    margin: 0;
    font-size: 22px;
}

.price-card__price {
    margin: 6px 0 10px;
    font-size: 42px;
    font-weight: 850;
    letter-spacing: -.05em;
}

.price-card__price small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0;
}

.price-card > p {
    color: var(--muted);
}

.price-card ul,
.checkout-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 24px 0 28px;
    list-style: none;
}

.price-card li,
.checkout-list li {
    position: relative;
    padding-left: 24px;
    color: #475467;
    font-size: 14px;
}

.price-card li::before,
.checkout-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
}

.faq-grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 70px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    padding: 20px 22px;
    border: 1px solid #dde2eb;
    border-radius: 16px;
    background: rgba(255, 255, 255, .75);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    float: right;
    color: var(--primary);
    font-size: 22px;
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.cta-section {
    padding: 0 0 100px;
    background: #eef2f8;
}

.cta-card {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 54px;
    border-radius: 28px;
    background: linear-gradient(135deg, #12182d, #29235a 62%, #234a5c);
    color: #fff;
    box-shadow: 0 24px 70px rgba(12, 17, 35, .25);
}

.cta-card h2 {
    max-width: 640px;
    margin: 12px 0 8px;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.cta-card p {
    margin: 0;
    color: #b7bfd0;
}

/* Footer */
.site-footer {
    padding: 56px 0 28px;
    background: #090d19;
    color: #9ca6ba;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 42px;
    align-items: start;
}

.brand--footer {
    color: #fff;
}

.site-footer p {
    max-width: 420px;
    margin: 14px 0 0;
    font-size: 13px;
}

.site-footer__links {
    display: grid;
    gap: 9px;
    font-size: 13px;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px;
}

/* Auth */
.auth-dialog {
    width: min(460px, calc(100% - 28px));
    padding: 30px;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 30px 90px rgba(2, 6, 23, .35);
}

.auth-dialog::backdrop {
    background: rgba(5, 9, 20, .65);
    backdrop-filter: blur(7px);
}

.auth-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    font-size: 22px;
}

.auth-dialog__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.auth-dialog h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.auth-dialog > p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #f2f4f7;
}

.auth-tab {
    min-height: 40px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
}

.auth-tab.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 7px rgba(15, 23, 42, .08);
}

.auth-form {
    display: none;
    gap: 14px;
    margin-top: 20px;
}

.auth-form.is-active {
    display: grid;
}

.auth-form label,
.admin-form label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.auth-form input,
.admin-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: var(--ink);
    transition: border-color .18s, box-shadow .18s;
}

.auth-form input:focus,
.admin-form input:focus {
    border-color: #9293f0;
    box-shadow: 0 0 0 4px rgba(91, 92, 226, .10);
}

.auth-form small {
    color: var(--muted-2);
    font-weight: 500;
}

/* Toast */
.toast {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 100;
    width: min(420px, calc(100% - 40px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 13px;
    animation: toast-in .28s ease both;
}

.toast--success { border-color: #b7ebd8; }
.toast--warning { border-color: #f7d99b; }
.toast--error { border-color: #f8bbb6; }

.toast__close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px); }
}

/* Shared panels */
.panel {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.panel__header h2 {
    margin: 2px 0 0;
    font-size: 21px;
    letter-spacing: -.025em;
}

.panel__eyebrow {
    color: var(--primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Admin */
.admin-main {
    padding: 58px 0 90px;
}

.admin-titlebar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.admin-titlebar h1 {
    margin: 8px 0 5px;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -.045em;
}

.admin-titlebar p {
    margin: 0;
    color: var(--muted);
}

.admin-user,
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user > span,
.user-cell > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef0ff;
    color: var(--primary);
    font-weight: 850;
}

.admin-user div {
    display: grid;
}

.admin-user small {
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    display: grid;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.stat-card span,
.stat-card small {
    color: var(--muted);
    font-size: 12px;
}

.stat-card strong {
    margin: 8px 0 3px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.04em;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.panel--danger {
    border-color: #fecdca;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.panel--table {
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
}

.panel--table .panel__header {
    padding: 24px 26px 0;
}

.counter-badge {
    min-width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.data-table th {
    background: #fafbfc;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.data-table code {
    max-width: 260px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #475467;
    vertical-align: middle;
}

.role-badge,
.payment-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.role-badge--admin {
    background: #eef0ff;
    color: var(--primary-dark);
}

.role-badge--user {
    background: #f2f4f7;
    color: #475467;
}

.payment-status--approved {
    background: #eafaf4;
    color: #087a50;
}

.payment-status--pending,
.payment-status--processing,
.payment-status--inprocessing,
.payment-status--waitingauthcomplete,
.payment-status--waitingclient {
    background: #fff6e5;
    color: #a56300;
}

.empty-state {
    padding: 46px 26px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.empty-state p {
    margin: 4px 0 0;
    color: var(--muted);
}

/* Purchase */
.purchase-main {
    min-height: calc(100vh - 74px);
    display: grid;
    align-items: center;
    padding: 70px 0;
}

.purchase-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 80px;
    align-items: center;
}

.purchase-copy h1 {
    max-width: 650px;
    margin: 14px 0 18px;
    font-size: clamp(44px, 5vw, 66px);
    line-height: .98;
    letter-spacing: -.055em;
}

.purchase-copy > p {
    max-width: 610px;
    color: var(--muted);
    font-size: 18px;
}

.security-note {
    max-width: 620px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    margin-top: 32px;
    padding: 18px;
    border: 1px solid #dbe1ea;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
}

.security-note > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #eef0ff;
}

.security-note p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.checkout-card {
    padding: 34px;
    border: 1px solid #d8dcf3;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(91, 92, 226, .13);
}

.test-mode-badge {
    width: fit-content;
    margin-bottom: 22px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff6e5;
    color: #9a6400;
    font-size: 11px;
    font-weight: 800;
}

.checkout-card__label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.checkout-card h2 {
    margin: 6px 0 0;
    font-size: 30px;
}

.checkout-price {
    margin: 8px 0;
    font-size: 54px;
    font-weight: 900;
    letter-spacing: -.06em;
}

.checkout-price small {
    font-size: 20px;
    color: var(--muted);
}

.checkout-note,
.checkout-legal {
    color: var(--muted);
    font-size: 12px;
}

.checkout-legal {
    margin: 12px 0 0;
    text-align: center;
}

.page-payment-transition,
.page-payment-result {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 0, #eef0ff, var(--bg) 50%);
}

.payment-transition {
    width: min(520px, calc(100% - 36px));
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.payment-transition h1 {
    margin: 12px 0 8px;
    font-size: 32px;
}

.payment-transition p {
    color: var(--muted);
}

.loader-orbit {
    width: 54px;
    height: 54px;
    position: relative;
    margin: 0 auto 22px;
    border: 4px solid #e9ebff;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.loader-orbit--small {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
}

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

.payment-result {
    width: min(680px, calc(100% - 36px));
    padding: 40px 0;
    text-align: center;
}

.payment-result > .brand {
    margin-bottom: 24px;
}

.payment-result__card {
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.result-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 18px;
    font-size: 28px;
    font-weight: 900;
}

.result-icon--success {
    background: #eafaf4;
    color: var(--success);
}

.result-icon--danger {
    background: #fff0ef;
    color: var(--danger);
}

.payment-result h1 {
    margin: 12px 0 8px;
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.payment-result__card > p {
    color: var(--muted);
}

.result-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 28px 0 12px;
    padding: 18px;
    border-radius: 16px;
    background: #f5f6ff;
    text-align: left;
}

.result-balance span {
    color: var(--muted);
    font-size: 12px;
}

.result-balance strong {
    font-size: 24px;
}

.result-balance small {
    color: var(--muted);
    font-size: 12px;
}

.result-details {
    display: grid;
    grid-template-columns: 1.5fr .7fr .7fr;
    gap: 8px;
    margin-bottom: 26px;
}

.result-details > div {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: left;
    overflow: hidden;
}

.result-details span {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.result-details code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

/* Report */
.report-main {
    padding: 52px 0 90px;
}

.report-hero {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 14px;
}

.report-hero__copy {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    border-radius: 24px;
    background: var(--dark);
    color: #fff;
    overflow: hidden;
}

.report-hero__copy h1 {
    margin: 10px 0 12px;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -.05em;
}

.report-url {
    margin: 0;
    color: #b3bbcd;
    word-break: break-all;
}

.report-redirect {
    margin: 10px 0 0;
    color: #8f99ae;
    font-size: 12px;
}

.score-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.score-ring {
    --score: 0;
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff 60%, transparent 61%), conic-gradient(var(--primary) calc(var(--score) * 1%), #e7e9f2 0);
}

.score-ring div {
    display: flex;
    align-items: baseline;
}

.score-ring strong {
    font-size: 42px;
    letter-spacing: -.06em;
}

.score-ring span {
    color: var(--muted);
    font-size: 12px;
}

.score-card h2 {
    margin: 9px 0 4px;
}

.score-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.report-stats article {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.report-stat-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #eef0ff;
    color: var(--primary);
    font-weight: 900;
}

.report-stat-icon--good {
    background: #eafaf4;
    color: var(--success);
}

.report-stat-icon--warn {
    background: #fff6e5;
    color: #b67300;
}

.report-stat-icon--bad {
    background: #fff0ef;
    color: var(--danger);
}

.report-stats div {
    display: grid;
}

.report-stats strong {
    font-size: 23px;
    line-height: 1;
}

.report-stats small {
    margin-top: 3px;
    color: var(--muted);
}

.report-overview {
    margin-bottom: 14px;
}

.audit-check-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.audit-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fafbfc;
}

.audit-check > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
}

.audit-check div {
    min-width: 0;
    display: grid;
}

.audit-check strong {
    font-size: 12px;
}

.audit-check small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-check--good > span { background: #eafaf4; color: var(--success); }
.audit-check--warning > span { background: #fff6e5; color: #b67300; }
.audit-check--error > span { background: #fff0ef; color: var(--danger); }

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

.report-card--wide {
    grid-column: 1 / -1;
}

.report-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.report-card__title > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eef0ff;
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
}

.report-card__title h2 {
    margin: 0;
    font-size: 19px;
}

.code-value {
    padding: 14px;
    border: 1px solid #e7e9f0;
    border-radius: 12px;
    background: #f8f9fb;
    color: #344054;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.code-value--small {
    font-size: 11px;
}

.metric-line,
.metric-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.metric-line {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.metric-line strong,
.metric-list strong {
    color: var(--ink);
}

.metric-list {
    display: grid;
    gap: 0;
}

.metric-list > div {
    padding: 10px 0;
    border-bottom: 1px solid #eef0f3;
    color: var(--muted);
    font-size: 12px;
}

.metric-list > div:last-child {
    border-bottom: 0;
}

.issue {
    margin: 0;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 650;
}

.issue--error { background: #fff0ef; color: #b42318; }
.issue--warn { background: #fff6e5; color: #9a6400; }
.issue--good { background: #eafaf4; color: #087a50; }

.heading-summary {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.heading-summary div {
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #f5f6fa;
}

.heading-summary span {
    color: var(--muted);
    font-size: 10px;
}

.heading-summary strong {
    font-size: 20px;
}

.heading-list {
    display: grid;
    gap: 7px;
}

.heading-list > div {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid #eceef2;
    border-radius: 11px;
}

.heading-list span {
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
}

.heading-list p {
    margin: 0;
    color: #475467;
    font-size: 12px;
}

.big-metric {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 14px;
}

.big-metric strong {
    font-size: 42px;
    letter-spacing: -.05em;
}

.big-metric span {
    color: var(--muted);
    font-size: 12px;
}

.compact-details {
    margin-top: 14px;
}

.compact-details summary {
    cursor: pointer;
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
}

.compact-details code {
    display: block;
    margin-top: 7px;
    padding: 8px;
    border-radius: 8px;
    background: #f8f9fb;
    color: #667085;
    font-size: 10px;
    word-break: break-all;
}

.tag-list {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.tag-list span {
    padding: 5px 8px;
    border-radius: 8px;
    background: #eef0ff;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 750;
}

.social-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.social-meta-grid h3 {
    margin: 0 0 10px;
}

.meta-row {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eef0f3;
    font-size: 11px;
}

.meta-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-good { color: var(--success) !important; }
.text-bad { color: var(--danger) !important; }
.text-muted { color: var(--muted-2) !important; }

.link-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.link-stats div {
    display: grid;
    padding: 18px 12px;
    border-radius: 13px;
    background: #f5f6fa;
    text-align: center;
}

.link-stats strong {
    font-size: 30px;
    line-height: 1;
}

.link-stats span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.hreflang-list {
    display: grid;
    gap: 7px;
}

.hreflang-list div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eceef2;
    border-radius: 10px;
}

.hreflang-list strong {
    color: var(--primary);
}

.hreflang-list span {
    color: var(--muted);
    font-size: 11px;
    word-break: break-all;
}

.empty-copy {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.report-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 14px;
    padding: 28px;
    border-radius: 20px;
    background: var(--dark);
    color: #fff;
}

.report-cta h2 {
    margin: 0;
}

.report-cta p {
    margin: 4px 0 0;
    color: #9ca6ba;
}

/* Legacy fallback */
.audit-return {
    width: fit-content;
    display: flex;
    margin: 30px auto;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1050px) {
    .site-nav { display: none; }
    .nav-toggle { display: block; }
    .site-nav.is-open {
        position: absolute;
        top: 66px;
        left: 20px;
        right: 20px;
        display: grid;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open a { padding: 10px; }

    .hero__grid { grid-template-columns: 1fr; gap: 50px; }
    .hero-preview { max-width: 720px; transform: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .purchase-layout { grid-template-columns: 1fr 420px; gap: 40px; }
    .report-hero { grid-template-columns: 1fr; }
    .audit-check-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .shell { width: min(100% - 28px, 1180px); }
    .site-header__inner { min-height: 66px; }
    .brand__name { font-size: 18px; }
    .balance-pill span:last-child { display: none; }
    .site-header__actions > .button--ghost { display: none; }

    .hero__grid { min-height: auto; padding-block: 64px; }
    .hero h1 { font-size: clamp(42px, 13vw, 62px); }
    .hero__lead { font-size: 16px; }
    .audit-form { grid-template-columns: 1fr; padding: 7px; }
    .audit-form .button { width: 100%; }
    .hero__meta { gap: 16px; flex-wrap: wrap; }
    .hero__meta div { min-width: 28%; }
    .hero-preview__body { padding: 14px; }
    .preview-score { grid-template-columns: 1fr; }
    .preview-score__ring { width: 82px; height: 82px; }

    .section { padding: 78px 0; }
    .section-heading { margin-bottom: 36px; }
    .section-heading h2 { font-size: 38px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card--wide { grid-column: auto; }
    .how-grid,
    .faq-grid { grid-template-columns: 1fr; gap: 34px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .cta-card { min-height: 0; display: grid; padding: 32px; }
    .cta-card .button { width: 100%; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__bottom { display: grid; }

    .admin-titlebar { align-items: flex-start; flex-direction: column; }
    .admin-titlebar h1 { font-size: 38px; }
    .stats-grid,
    .admin-grid { grid-template-columns: 1fr; }

    .purchase-main { padding: 48px 0; }
    .purchase-layout { grid-template-columns: 1fr; gap: 30px; }
    .purchase-copy h1 { font-size: 46px; }

    .payment-result__card,
    .payment-transition { padding: 28px; }
    .result-details { grid-template-columns: 1fr; }

    .report-main { padding-top: 26px; }
    .report-hero__copy { min-height: 210px; padding: 26px; }
    .report-hero__copy h1 { font-size: 38px; }
    .score-card { grid-template-columns: 1fr; }
    .score-ring { width: 118px; height: 118px; }
    .report-stats { grid-template-columns: repeat(2, 1fr); }
    .audit-check-grid { grid-template-columns: repeat(2, 1fr); }
    .report-grid { grid-template-columns: 1fr; }
    .report-card--wide { grid-column: auto; }
    .heading-summary { grid-template-columns: repeat(3, 1fr); }
    .social-meta-grid { grid-template-columns: 1fr; }
    .meta-row { grid-template-columns: 1fr; gap: 3px; }
    .report-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .site-header__actions .button--secondary { display: none; }
    .hero__meta div { min-width: 45%; }
    .logo-strip__inner { gap: 16px; padding-block: 18px; }
    .feature-card,
    .price-card,
    .panel { padding: 22px; }
    .auth-dialog { padding: 24px; }
    .report-stats { grid-template-columns: 1fr 1fr; }
    .audit-check-grid { grid-template-columns: 1fr; }
    .link-stats { grid-template-columns: 1fr; }
    .heading-list > div { grid-template-columns: 36px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ===== Tariffs + PRO audit additions ===== */
.balance-pill--pro {
    border-color: rgba(124, 92, 255, .34);
    background: rgba(124, 92, 255, .10);
}

.balance-pill--pro .balance-pill__dot {
    background: #9c7cff;
    box-shadow: 0 0 0 5px rgba(156, 124, 255, .12);
}

.button--pro {
    background: linear-gradient(135deg, #7c5cff, #b85cff);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 18px 44px rgba(124, 92, 255, .28);
}

.button--pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(124, 92, 255, .36);
}

.button--ghost-light {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
}

.audit-form__actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.audit-form__actions .button {
    min-height: 56px;
}

.pricing-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card--pro {
    background:
        radial-gradient(circle at 85% 10%, rgba(164, 108, 255, .28), transparent 34%),
        linear-gradient(180deg, #12152d, #0c1022);
}

.price-card--pro .price-card__label,
.status-chip--pro {
    background: rgba(156, 124, 255, .14);
    color: #d7caff;
    border-color: rgba(156, 124, 255, .28);
}

.purchase-main--plans {
    padding-top: 60px;
}

.purchase-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.purchase-heading h1 {
    margin: 14px 0 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: .98;
}

.purchase-heading > p {
    max-width: 700px;
    color: var(--muted);
    font-size: 18px;
}

.purchase-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.plan-checkout-card {
    height: 100%;
}

.plan-checkout-card--pro {
    border-color: rgba(124, 92, 255, .36);
    box-shadow: 0 28px 70px rgba(40, 26, 96, .14);
}

.purchase-security-note {
    margin-top: 24px;
}

.pagespeed-panel,
.quick-wins-panel,
.serp-preview-panel,
.pro-diagnostics-panel {
    margin-top: 22px;
}

.pagespeed-score-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.pagespeed-score-card {
    position: relative;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.pagespeed-score-card--pro {
    border-color: rgba(124, 92, 255, .25);
    background: rgba(124, 92, 255, .07);
}

.pagespeed-score-card span,
.pagespeed-score-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.pagespeed-score-card strong {
    display: inline-block;
    margin-top: 8px;
    font-size: 38px;
    letter-spacing: -.04em;
}

.pagespeed-score-card small {
    display: inline;
    margin-left: 3px;
}

.pagespeed-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.pagespeed-metrics > div {
    padding: 14px;
    border-radius: 14px;
    background: #f7f8fb;
    border: 1px solid var(--line);
}

.pagespeed-metrics span,
.pagespeed-metrics strong {
    display: block;
}

.pagespeed-metrics span {
    color: var(--muted);
    font-size: 12px;
}

.pagespeed-metrics strong {
    margin-top: 5px;
    font-size: 15px;
}

.quick-wins-list {
    display: grid;
    gap: 10px;
}

.quick-win {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.quick-win > span {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 999px;
    background: #8090aa;
}

.quick-win--high > span { background: #e64b54; }
.quick-win--medium > span { background: #e3a126; }
.quick-win--low > span { background: #6b7d96; }
.quick-win strong { display: block; margin-bottom: 4px; }
.quick-win p { margin: 0; color: var(--muted); }

.serp-preview {
    max-width: 760px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.serp-preview__url {
    display: block;
    color: #376345;
    font-size: 13px;
    word-break: break-all;
}

.serp-preview strong {
    display: block;
    margin: 7px 0;
    color: #1a0dab;
    font-size: 21px;
    font-weight: 500;
}

.serp-preview p {
    margin: 0;
    color: #4d5156;
    line-height: 1.5;
}

.pro-diagnostics-panel {
    border-color: rgba(124, 92, 255, .24);
    background:
        radial-gradient(circle at 95% 0%, rgba(124, 92, 255, .10), transparent 26%),
        #fff;
}

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

.pro-diagnostics-grid article {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.pro-diagnostics-grid span,
.pro-diagnostics-grid strong {
    display: block;
}

.pro-diagnostics-grid span {
    color: var(--muted);
    font-size: 12px;
}

.pro-diagnostics-grid strong {
    margin-top: 7px;
    font-size: 26px;
}

.subsection-title {
    margin: 28px 0 12px;
    font-size: 18px;
}

.security-signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.security-signal {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.security-signal > span {
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.security-signal small { color: var(--muted); }
.security-signal.is-good > span { background: rgba(33, 164, 96, .12); color: #178249; }
.security-signal.is-missing > span { background: rgba(227, 161, 38, .14); color: #a86d00; }

.opportunity-list,
.fix-snippet-list {
    display: grid;
    gap: 10px;
}

.opportunity-list article,
.fix-snippet-list article {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.opportunity-list span { color: var(--muted); text-align: right; }
.fix-snippet-list article { display: grid; }
.fix-snippet-list code {
    overflow-x: auto;
    padding: 12px;
    border-radius: 10px;
    background: #0f1327;
    color: #e8ecff;
    white-space: pre-wrap;
}

@media (max-width: 980px) {
    .pricing-grid--three,
    .purchase-plans,
    .pagespeed-score-grid,
    .pagespeed-metrics,
    .pro-diagnostics-grid,
    .security-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .audit-form__actions,
    .audit-form__actions .button,
    .audit-form__actions .button--ghost-light,
    .pricing-grid--three,
    .purchase-plans,
    .pagespeed-score-grid,
    .pagespeed-metrics,
    .pro-diagnostics-grid,
    .security-signal-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .audit-form__actions {
        display: grid;
    }

    .opportunity-list article {
        display: grid;
    }

    .opportunity-list span {
        text-align: left;
    }
}

@media print {
    .site-header,
    .report-cta,
    .button,
    .toast {
        display: none !important;
    }

    body,
    .page-report {
        background: #fff !important;
    }

    .panel,
    .report-card,
    .score-card {
        break-inside: avoid;
        box-shadow: none !important;
    }
}

/* ===== Premium tier ===== */
.balance-pill--premium {
    border-color: rgba(255, 189, 89, .38);
    background: rgba(255, 189, 89, .11);
    text-decoration: none;
}

.balance-pill--premium .balance-pill__dot {
    background: #ffbd59;
    box-shadow: 0 0 0 5px rgba(255, 189, 89, .13);
}

.button--premium {
    background: linear-gradient(135deg, #f2b84b 0%, #ff8f5a 52%, #d66cff 100%);
    color: #14131a;
    border: 1px solid rgba(255,255,255,.3);
    box-shadow: 0 20px 50px rgba(255, 159, 77, .24);
    font-weight: 800;
}

.button--premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 58px rgba(255, 159, 77, .34);
}

.pricing-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.price-card--premium,
.plan-checkout-card--premium {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 183, 77, .38);
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 180, 75, .22), transparent 30%),
        radial-gradient(circle at 10% 95%, rgba(212, 95, 255, .16), transparent 34%),
        linear-gradient(180deg, #17172a, #0d1020);
    box-shadow: 0 30px 80px rgba(115, 70, 28, .18);
}

.price-card--premium::before,
.plan-checkout-card--premium::before {
    content: "PREMIUM";
    position: absolute;
    top: 18px;
    right: -38px;
    width: 150px;
    padding: 6px 0;
    transform: rotate(35deg);
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    background: linear-gradient(90deg, #f5c15d, #ff9762);
    color: #17141d;
}

.price-card--premium .price-card__label,
.status-chip--premium {
    background: rgba(255, 188, 82, .14);
    color: #ffd999;
    border-color: rgba(255, 188, 82, .3);
}

.purchase-plans--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card--premium {
    background:
        radial-gradient(circle at 90% 5%, rgba(255, 184, 77, .22), transparent 35%),
        linear-gradient(145deg, #18182c, #0b1020);
}

.brand__badge--premium {
    background: linear-gradient(135deg, #ffd16f, #ff9563);
    color: #17141d;
}

.panel--premium {
    border-color: rgba(255, 188, 82, .28);
    background: linear-gradient(180deg, rgba(255,188,82,.06), var(--surface));
}

.premium-site-panel {
    margin-top: 22px;
    border-color: rgba(255, 188, 82, .28);
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 188, 82, .10), transparent 28%),
        var(--surface);
}

.premium-site-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.premium-site-card {
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.premium-site-card > span,
.premium-site-card > small { color: var(--muted); }
.premium-site-card > strong { font-size: 22px; }
.premium-site-card code { overflow-wrap: anywhere; }
.premium-site-card.is-good { border-color: rgba(56, 190, 124, .28); }
.premium-site-card.is-warn { border-color: rgba(240, 176, 65, .32); }
.premium-site-card.is-bad { border-color: rgba(239, 82, 94, .34); }

.page-premium {
    background: #0a0d19;
    color: #fff;
}

.premium-main { overflow: hidden; }

.premium-hero {
    position: relative;
    padding: 90px 0 72px;
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 181, 77, .16), transparent 30%),
        radial-gradient(circle at 85% 65%, rgba(182, 92, 255, .16), transparent 34%),
        #0b0e1c;
}

.premium-hero__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.025), transparent 62%);
}

.premium-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 58px;
    align-items: center;
}

.premium-hero h1 {
    margin: 18px 0;
    max-width: 760px;
    font-size: clamp(48px, 7vw, 88px);
    line-height: .94;
    letter-spacing: -.055em;
}

.premium-hero h1 em {
    display: block;
    font-style: normal;
    color: #ffcb75;
}

.premium-hero p {
    max-width: 720px;
    color: rgba(255,255,255,.68);
    font-size: 18px;
}

.premium-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 28px 0 20px;
}

.premium-price strong { font-size: 52px; }
.premium-price span { color: rgba(255,255,255,.55); }

.premium-status-card {
    display: inline-grid;
    gap: 4px;
    margin: 26px 0 20px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 190, 83, .28);
    border-radius: 18px;
    background: rgba(255, 190, 83, .08);
}

.premium-status-card span,
.premium-status-card small { color: rgba(255,255,255,.65); }
.premium-status-card strong { font-size: 30px; }

.premium-feature-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 26px;
    background: rgba(255,255,255,.045);
    box-shadow: 0 40px 90px rgba(0,0,0,.28);
}

.premium-feature-board > div {
    display: grid;
    gap: 5px;
    min-height: 134px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(5,8,18,.6);
}

.premium-feature-board span { color: #ffc86e; font-weight: 800; }
.premium-feature-board strong { font-size: 18px; }
.premium-feature-board small { color: rgba(255,255,255,.5); line-height: 1.45; }

.page-premium .section {
    background: #f6f7fb;
    color: var(--text);
}

.premium-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.premium-benefit-grid article {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.premium-benefit-grid strong { display: block; margin-bottom: 10px; font-size: 20px; }
.premium-benefit-grid p { margin: 0; color: var(--muted); }

.premium-cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #111426, #17152a 55%, #2a1830);
}

.premium-cta-section__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.premium-cta-section h2 { margin: 10px 0 8px; font-size: clamp(34px, 5vw, 58px); }
.premium-cta-section p { margin: 0; color: rgba(255,255,255,.6); }

@media (max-width: 1180px) {
    .pricing-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .purchase-plans--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan-checkout-card--premium { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .premium-hero__grid { grid-template-columns: 1fr; }
    .premium-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .pricing-grid--four,
    .purchase-plans--three,
    .premium-feature-board,
    .premium-benefit-grid,
    .premium-site-grid { grid-template-columns: 1fr; }
    .plan-checkout-card--premium { grid-column: auto; }
    .premium-hero { padding-top: 64px; }
    .premium-cta-section__inner { align-items: flex-start; flex-direction: column; }
}

/* ===== Start tier + audit history ===== */
.balance-pill--start {
    border-color: rgba(33, 176, 164, .34);
    background: rgba(33, 176, 164, .10);
}

.balance-pill--start .balance-pill__dot {
    background: #2fd0be;
    box-shadow: 0 0 0 5px rgba(47, 208, 190, .12);
}

.button--start {
    background: linear-gradient(135deg, #20b7a8, #3c8ee8);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 16px 38px rgba(32, 183, 168, .20);
}

.button--start:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(32, 183, 168, .28);
}

.status-chip--start {
    background: rgba(32, 183, 168, .12);
    color: #14897f;
    border-color: rgba(32, 183, 168, .28);
}

.status-chip--free {
    background: rgba(67, 122, 255, .10);
    color: #3567d6;
    border-color: rgba(67, 122, 255, .22);
}

.audit-form__actions--plans .button small {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-left: 7px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    font-size: 11px;
    font-weight: 900;
}

.plan-comparison {
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.plan-comparison > div {
    display: grid;
    grid-template-columns: minmax(250px, 1.6fr) repeat(4, minmax(90px, .7fr));
    align-items: center;
    min-height: 58px;
    border-top: 1px solid var(--line);
}

.plan-comparison > div:first-child { border-top: 0; }
.plan-comparison > div > * { padding: 14px 18px; }
.plan-comparison > div > span { text-align: center; color: var(--muted); font-weight: 700; }
.plan-comparison__head { background: var(--surface-soft); }
.plan-comparison__head > * { color: var(--text) !important; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

.saved-audit-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    padding: 14px 18px;
    border: 1px solid rgba(40, 174, 117, .25);
    border-radius: 16px;
    background: rgba(40, 174, 117, .07);
}

.saved-audit-notice > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(40, 174, 117, .14);
    color: #198957;
    font-weight: 900;
}

.saved-audit-notice > div { display: grid; gap: 2px; }
.saved-audit-notice small { color: var(--muted); }
.saved-audit-notice > a { margin-left: auto; font-weight: 800; text-decoration: none; }
.saved-audit-notice--warn { border-color: rgba(240,176,65,.3); background: rgba(240,176,65,.08); }
.saved-audit-notice--warn > span { background: rgba(240,176,65,.14); color: #a56c07; }

.locked-feature-hint,
.locked-tier-card p {
    color: var(--muted);
    line-height: 1.65;
}

.locked-tier-card {
    display: grid;
    justify-items: start;
    gap: 14px;
    border-style: dashed;
    background: linear-gradient(135deg, rgba(32,183,168,.05), rgba(60,142,232,.04));
}

.page-history { background: #f6f7fb; color: var(--text); }
.history-main { padding: 58px 0 90px; }
.history-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}
.history-hero h1 { margin: 12px 0; font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -.05em; }
.history-hero p { max-width: 780px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.history-hero__stat { min-width: 150px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-align: right; }
.history-hero__stat strong { display: block; font-size: 38px; }
.history-hero__stat span { color: var(--muted); font-size: 13px; }
.history-limit-badge,
.history-snapshot-badge { padding: 8px 12px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 12px; font-weight: 800; }

.history-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 18px 20px;
}
.history-toolbar > div { display: grid; gap: 3px; }
.history-toolbar span { color: var(--muted); font-size: 13px; }
.history-toolbar a { font-weight: 800; text-decoration: none; }

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

.history-card {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.history-card--start { border-top: 3px solid #20b7a8; }
.history-card--pro { border-top: 3px solid #8a68ff; }
.history-card--premium { border-top: 3px solid #f2b84b; }
.history-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.history-card__top time { color: var(--muted); font-size: 12px; }
.history-card h2 { margin: 0; font-size: 21px; }
.history-card__url { margin: -8px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.history-card__score { display: flex; align-items: baseline; gap: 4px; }
.history-card__score strong { font-size: 44px; line-height: 1; }
.history-card__score span { color: var(--muted); }
.history-card__score--good strong { color: #168a56; }
.history-card__score--warn strong { color: #aa7108; }
.history-card__score--bad strong { color: #c63c49; }
.score-delta { margin-left: 8px; padding: 5px 8px; border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 900; }
.score-delta.is-up { color: #168a56; background: rgba(40,174,117,.10); }
.score-delta.is-down { color: #c63c49; background: rgba(239,82,94,.10); }
.score-delta.is-flat { color: var(--muted); background: var(--surface-soft); }
.history-card__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.history-card__metrics > div { padding: 12px; border-radius: 14px; background: var(--surface-soft); }
.history-card__metrics span { display: block; color: var(--muted); font-size: 11px; }
.history-card__metrics strong { display: block; margin-top: 4px; font-size: 18px; }
.history-card__actions { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.history-card__actions form { margin-left: auto; }
.history-empty { display: grid; justify-items: center; gap: 12px; padding: 58px 24px; text-align: center; }
.history-empty p { max-width: 650px; margin: 0; color: var(--muted); }
.history-empty__icon { font-size: 42px; }

.saved-report-date { color: var(--muted); font-size: 13px; }
.saved-score-compare strong { font-size: inherit; }
.saved-report-main .report-cta form { margin: 0; }

@media (max-width: 900px) {
    .history-grid { grid-template-columns: 1fr; }
    .history-hero { align-items: flex-start; flex-direction: column; }
    .history-hero__stat { text-align: left; }
    .plan-comparison { overflow-x: auto; }
    .plan-comparison > div { min-width: 760px; }
}

@media (max-width: 640px) {
    .history-toolbar { align-items: flex-start; flex-direction: column; }
    .history-card__metrics { grid-template-columns: 1fr; }
    .history-card__actions { align-items: stretch; flex-direction: column; }
    .history-card__actions form { width: 100%; margin-left: 0; }
    .history-card__actions .button { width: 100%; }
    .saved-audit-notice { align-items: flex-start; flex-wrap: wrap; }
    .saved-audit-notice > a { width: 100%; margin-left: 48px; }
}


/* v5 monthly subscriptions */
.subscription-status-card,
.subscription-manage-card,
.setup-warning {
    margin: 24px 0;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.06);
    padding: 20px;
}
.subscription-status-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.subscription-status-card > div {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
}
.subscription-status-card span { display:block; opacity:.68; font-size:.82rem; margin-bottom:5px; }
.subscription-status-card strong { font-size:1.05rem; }
.subscription-manage-card { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.subscription-manage-card h2 { margin: 6px 0 8px; }
.setup-warning { border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.08); }
@media (max-width: 820px) {
    .subscription-status-card { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) {
    .subscription-status-card { grid-template-columns: 1fr; }
}

.button--free {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 10px 24px rgba(91, 92, 226, .22);
}
.button--free:hover { box-shadow: 0 14px 30px rgba(91, 92, 226, .3); }


/* v6 — admin overrides + one-time top-ups */
.admin-form select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: var(--ink);
    transition: border-color .18s, box-shadow .18s;
}
.admin-form select:focus { border-color: #9293f0; box-shadow: 0 0 0 4px rgba(91,92,226,.10); }
.form-hint { color: var(--muted); line-height: 1.5; }
.topup-section { margin-top: 72px; padding-top: 52px; border-top: 1px solid var(--line); }
.section-heading--compact { max-width: 760px; margin-bottom: 28px; }
.section-heading--compact h2 { margin: 12px 0 10px; font-size: clamp(32px,5vw,52px); line-height: 1; }
.section-heading--compact p { color: var(--muted); font-size: 16px; }
.topup-card { background: linear-gradient(180deg,#fff,#f8f9ff); }
.topup-card .price-card__label { background: rgba(91,92,226,.08); color: #5557d9; }

.topup-home-note { margin-top: 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 22px; border:1px solid var(--line); border-radius:18px; background:var(--surface-soft); }
.topup-home-note div { display:grid; gap:4px; }
.topup-home-note span { color:var(--muted); font-size:14px; }
@media (max-width: 720px) { .topup-home-note { align-items:stretch; flex-direction:column; } }

/* PageSpeed cache + retry */
.pagespeed-cache-note {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(88, 101, 242, 0.14);
    border-radius: 14px;
    background: rgba(88, 101, 242, 0.055);
    color: #5f6880;
    font-size: 14px;
    line-height: 1.5;
}

.pagespeed-retry-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #e5e7ef;
    border-radius: 18px;
    background: #f8f9fc;
}

.pagespeed-retry-box strong {
    display: block;
    margin-bottom: 4px;
    color: #151824;
}

.pagespeed-retry-box p {
    margin: 0;
    max-width: 720px;
    color: #737b90;
    line-height: 1.55;
}

.toast--inline {
    position: static;
    width: auto;
    max-width: none;
    margin: 0 0 18px;
    transform: none;
    animation: none;
}

@media (max-width: 720px) {
    .pagespeed-retry-box {
        align-items: stretch;
        flex-direction: column;
    }

    .pagespeed-retry-box form,
    .pagespeed-retry-box .button {
        width: 100%;
    }
}

/* =========================================================
   SiteCheckr v8 — Website Health 360 / Smart Fix
   ========================================================= */
.section--difference {
  position: relative;
  overflow: hidden;
}

.section--difference::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 50%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 114, 255, 0.10), transparent 68%);
  pointer-events: none;
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.difference-card {
  position: relative;
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(14, 19, 35, 0.05);
}

.difference-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f5ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.difference-card h3 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.difference-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted, #667085);
}

.difference-card--accent {
  color: #fff;
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(145deg, #11182a, #182340);
}

.difference-card--accent > span {
  color: #dfe4ff;
  background: rgba(255,255,255,.09);
}

.difference-card--accent p {
  color: rgba(255,255,255,.72);
}

.fix-loop {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 24px;
  background: #fff;
}

.fix-loop > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.fix-loop strong {
  grid-row: 1 / 3;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #11182a;
  color: #fff;
}

.fix-loop span {
  font-weight: 800;
}

.fix-loop small {
  color: var(--muted, #667085);
}

.fix-loop > i {
  font-style: normal;
  color: #98a2b3;
}

.retention-section {
  padding-top: 24px;
}

.retention-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 30px;
  align-items: center;
  padding: 40px;
  border: 1px solid #e6e9f2;
  border-radius: 30px;
  background: linear-gradient(135deg, #f8faff, #fff);
}

.retention-card h2 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.retention-card p {
  margin: 0;
  max-width: 700px;
  color: var(--muted, #667085);
  line-height: 1.7;
}

.retention-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.retention-steps span {
  padding: 12px 16px;
  border-radius: 999px;
  background: #11182a;
  color: #fff;
  font-weight: 800;
}

.retention-steps i {
  font-style: normal;
  color: #98a2b3;
}

.health-map-panel,
.smart-fix-panel,
.next-pages-panel {
  margin-top: 22px;
}

.health-map-intro,
.smart-fix-intro,
.next-pages-intro {
  margin: -4px 0 22px;
  color: var(--muted, #667085);
  line-height: 1.65;
}

.health-pillar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.health-pillar {
  padding: 18px;
  border: 1px solid #e7eaf1;
  border-radius: 18px;
  background: #fbfcff;
}

.health-pillar__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.health-pillar__top span {
  font-weight: 750;
  color: #344054;
}

.health-pillar__top strong {
  font-size: 28px;
  line-height: 1;
}

.health-pillar__bar {
  height: 7px;
  margin: 14px 0 12px;
  border-radius: 999px;
  background: #edf0f5;
  overflow: hidden;
}

.health-pillar__bar i {
  display: block;
  width: var(--pillar-score, 0%);
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.health-pillar.is-good { color: #14935c; }
.health-pillar.is-warn { color: #b7791f; }
.health-pillar.is-bad { color: #d14343; }
.health-pillar.is-unavailable { color: #98a2b3; }

.health-pillar small {
  display: block;
  color: #667085;
  line-height: 1.45;
}

.smart-fix-panel {
  border: 1px solid #dfe4ff;
  background: linear-gradient(180deg, #fbfcff, #fff);
}

.smart-fix-panel__header {
  gap: 16px;
}

.smart-fix-list {
  display: grid;
  gap: 14px;
}

.smart-fix-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid #e7eaf1;
  border-radius: 20px;
  background: #fff;
}

.smart-fix-card__rank {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #11182a;
  color: #fff;
  font-weight: 900;
}

.smart-fix-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.impact-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.impact-chip--critical { background: #fff0f0; color: #b42318; }
.impact-chip--high { background: #fff4ed; color: #c4320a; }
.impact-chip--medium { background: #fffaeb; color: #b54708; }
.impact-chip--low { background: #f2f4f7; color: #475467; }

.smart-fix-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.smart-fix-card p {
  margin: 7px 0 0;
  color: #475467;
  line-height: 1.6;
}

.smart-fix-code {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #101828;
}

.smart-fix-code code {
  color: #e6eaff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-code-button {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.copy-code-button:hover,
.copy-code-button.is-copied {
  background: rgba(255,255,255,.16);
}

.smart-fix-empty {
  padding: 22px;
  border-radius: 18px;
  background: #ecfdf3;
  color: #14532d;
}

.smart-fix-empty p {
  margin: 6px 0 0;
}

.next-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.next-page-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #e7eaf1;
  border-radius: 18px;
  background: #fff;
}

.next-page-card > span {
  margin-bottom: 10px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.next-page-card > strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  font-size: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.next-page-card > small {
  width: 100%;
  margin-bottom: 14px;
  overflow: hidden;
  color: #667085;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-page-card .button {
  margin-top: auto;
}

@media (max-width: 980px) {
  .difference-grid,
  .next-pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .health-pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fix-loop {
    grid-template-columns: 1fr;
  }

  .fix-loop > i {
    display: none;
  }

  .retention-card {
    grid-template-columns: 1fr;
  }

  .retention-steps {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .difference-grid,
  .health-pillar-grid,
  .next-pages-grid {
    grid-template-columns: 1fr;
  }

  .difference-card,
  .retention-card {
    padding: 22px;
  }

  .smart-fix-card {
    grid-template-columns: 1fr;
  }

  .smart-fix-card__rank {
    width: 36px;
    height: 36px;
  }

  .smart-fix-code {
    flex-direction: column;
  }
}

/* =========================================================
   SiteCheckr v9 — Website Mission Control
   ========================================================= */
.page-home-v9 {
    background:
        radial-gradient(circle at 20% 0%, rgba(91,92,226,.07), transparent 28%),
        radial-gradient(circle at 90% 24%, rgba(24,183,157,.06), transparent 24%),
        var(--bg);
}

.hero--mission {
    padding-bottom: 82px;
}

.hero-resume-note {
    margin: 14px 0 0;
    color: rgba(255,255,255,.64);
    font-size: .88rem;
}

.hero__meta--v9 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-preview--mission {
    transform: rotate(1deg);
}

.mission-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.mission-preview-head > div:first-child {
    display: grid;
    gap: 2px;
}

.mission-preview-head small,
.mission-preview-fix > small {
    color: var(--muted-2);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mission-preview-head strong {
    font-size: 3.4rem;
    line-height: 1;
    letter-spacing: -.06em;
}

.mission-preview-head span {
    color: var(--success);
    font-size: .82rem;
    font-weight: 800;
}

.mission-preview-radar {
    position: relative;
    width: 82px;
    aspect-ratio: 1;
    border: 1px solid rgba(91,92,226,.22);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(91,92,226,.12) 0 2px, transparent 3px),
        conic-gradient(from 0deg, rgba(91,92,226,.22), transparent 22%, transparent 100%);
}

.mission-preview-radar::before,
.mission-preview-radar::after,
.mission-preview-radar i {
    content: "";
    position: absolute;
    inset: 20%;
    border: 1px solid rgba(91,92,226,.14);
    border-radius: 50%;
}

.mission-preview-radar::after { inset: 37%; }
.mission-preview-radar i { inset: 49%; background: var(--primary); border: 0; }
.mission-preview-radar b {
    position: absolute;
    right: -6px;
    top: 3px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #eaf9f4;
    color: var(--success);
    font-size: .58rem;
    letter-spacing: .08em;
}

.mission-preview-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.mission-preview-pills span {
    padding: 9px 7px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8f9fd;
    text-align: center;
    font-size: .74rem;
    font-weight: 800;
}

.mission-preview-fix {
    display: grid;
    gap: 8px;
}

.mission-preview-fix > div {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.mission-preview-fix > div > b {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f0f1ff;
    color: var(--primary);
}

.mission-preview-fix span {
    display: grid;
    min-width: 0;
}

.mission-preview-fix strong {
    font-size: .84rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mission-preview-fix em {
    color: var(--muted);
    font-size: .7rem;
    font-style: normal;
}

.mission-preview-template {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #171c32, #272d4d);
    color: white;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 14px;
}

.mission-preview-template span { font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.mission-preview-template strong { font-size: 1.35rem; }
.mission-preview-template small { grid-column: 1 / -1; color: rgba(255,255,255,.62); }

.logo-strip--v9 .logo-strip__inner {
    gap: 24px;
    flex-wrap: wrap;
}

.difference-grid--v9 .difference-card {
    min-height: 255px;
}

.mission-product-section {
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,247,251,.98)),
        var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.mission-loop-v9 {
    display: grid;
    grid-template-columns: repeat(9, auto);
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 42px auto 54px;
}

.mission-loop-v9 > div {
    min-width: 145px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    display: grid;
}

.mission-loop-v9 > div strong {
    color: var(--primary);
    font-size: .72rem;
    letter-spacing: .12em;
}

.mission-loop-v9 > div span {
    margin-top: 4px;
    font-weight: 850;
    font-size: 1.04rem;
}

.mission-loop-v9 > div small { color: var(--muted); font-size: .73rem; }
.mission-loop-v9 > i { color: var(--muted-2); font-style: normal; }

.mission-feature-showcase {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 18px;
}

.mission-feature-showcase > article {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.mission-feature-showcase__large {
    grid-row: span 2;
    background: linear-gradient(145deg, #0b1020, #171f3d) !important;
    color: white;
}

.feature-kicker {
    display: inline-flex;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.mission-feature-showcase__large .feature-kicker { color: #9b9cff; }
.mission-feature-showcase h3 { margin: 10px 0 9px; font-size: 1.35rem; line-height: 1.2; }
.mission-feature-showcase__large h3 { font-size: clamp(1.8rem,3vw,2.5rem); max-width: 620px; }
.mission-feature-showcase p { color: var(--muted); margin: 0; }
.mission-feature-showcase__large p { color: rgba(255,255,255,.7); }

.pattern-demo {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

.pattern-demo > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
}

.pattern-demo span { color: rgba(255,255,255,.78); }
.pattern-demo strong { font-size: 1.05rem; }

.change-demo { display: grid; gap: 10px; margin-top: 22px; }
.change-demo p {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8f9fc;
}
.change-demo p.is-bad { color: var(--danger); }
.change-demo p.is-good { color: var(--success); }
.change-demo b { display: inline-block; min-width: 32px; }

.capability-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 38px;
}

.capability-cloud span {
    padding: 10px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: white;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
    font-size: .88rem;
    font-weight: 750;
}

.method-note {
    margin-top: 30px;
    padding: 20px 22px;
    border-left: 4px solid var(--primary);
    border-radius: 0 16px 16px 0;
    background: #fff;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    color: var(--muted);
}
.method-note strong { color: var(--ink); }

.how-grid--v9 {
    grid-template-columns: repeat(4, minmax(0,1fr));
}

.price-grid--v9 .price-card {
    position: relative;
    overflow: hidden;
}

.price-grid--v9 .price-card ul strong { color: var(--ink); }
.price-grid--v9 .price-card--pro::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(var(--primary), var(--accent));
}

.pricing-value-note {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}
.pricing-value-note > div { display: grid; }
.pricing-value-note span { color: var(--muted); }

.plan-comparison--v9 { margin-top: 28px; }

.purchase-reason-card {
    padding: clamp(32px,5vw,62px);
    border-radius: 32px;
    background: linear-gradient(135deg,#0b1020,#171f3d);
    color: white;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 48px;
    align-items: center;
}
.purchase-reason-card h2 { max-width: 760px; font-size: clamp(2rem,4vw,3.4rem); line-height: 1.05; margin: 12px 0; }
.purchase-reason-card p { color: rgba(255,255,255,.7); max-width: 760px; }
.purchase-reason-metrics { display: grid; gap: 12px; }
.purchase-reason-metrics > div { padding: 16px 18px; border-radius: 15px; background: rgba(255,255,255,.07); display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 12px; }
.purchase-reason-metrics strong { font-size: 1.8rem; }
.purchase-reason-metrics span { color: rgba(255,255,255,.72); }

.cta-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Projects / mission control workspace */
.mission-main,
.project-main,
.site-report-main,
.demo-main,
.legal-main,
.scan-progress-main,
.project-form-main {
    min-height: calc(100vh - 74px);
}

.mission-hero {
    padding: 70px 0 46px;
    background: linear-gradient(145deg,#0b1020,#141b36 65%,#172645);
    color: white;
    overflow: hidden;
}

.mission-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

.mission-hero h1 {
    margin: 12px 0 14px;
    max-width: 800px;
    font-size: clamp(2.4rem,5vw,4.8rem);
    line-height: .98;
    letter-spacing: -.055em;
}
.mission-hero h1 em { color: #a5a6ff; font-style: normal; }
.mission-hero p { max-width: 740px; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.mission-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.mission-orbit {
    width: min(390px,85vw);
    aspect-ratio: 1;
    margin-inline: auto;
    position: relative;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(91,92,226,.22), transparent 48%);
}
.mission-orbit::before,
.mission-orbit::after { content:""; position:absolute; inset:15%; border:1px solid rgba(255,255,255,.10); border-radius:50%; }
.mission-orbit::after { inset:31%; }
.mission-orbit__core { position:absolute; inset:36%; display:grid; place-items:center; align-content:center; border-radius:50%; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.15); backdrop-filter:blur(12px); }
.mission-orbit__core strong { font-size:2.6rem; line-height:1; }
.mission-orbit__core span { color:rgba(255,255,255,.65); font-size:.75rem; }
.mission-orbit__node { position:absolute; padding:8px 11px; border-radius:999px; background:#fff; color:var(--dark); font-weight:850; font-size:.75rem; box-shadow:0 12px 30px rgba(0,0,0,.2); }
.mission-orbit__node--one { top:7%; left:40%; }
.mission-orbit__node--two { right:4%; top:46%; }
.mission-orbit__node--three { bottom:8%; left:34%; }
.mission-orbit__node--four { left:1%; top:44%; }

.mission-kpis {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:-20px;
    position:relative;
    z-index:2;
}
.mission-kpis article { padding:20px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow-soft); display:grid; }
.mission-kpis span { color:var(--muted); font-size:.78rem; font-weight:750; }
.mission-kpis strong { margin:3px 0; font-size:1.5rem; }
.mission-kpis small { color:var(--muted-2); font-size:.72rem; }

.mission-content { padding:42px 0 18px; }
.mission-section-head { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:20px; }
.mission-section-head h2 { margin:4px 0 0; font-size:clamp(1.7rem,3vw,2.5rem); }

.setup-gate,
.empty-mission,
.project-first-scan {
    border:1px solid var(--line);
    border-radius:28px;
    background:#fff;
    box-shadow:var(--shadow-soft);
}
.setup-gate { padding:34px; display:grid; grid-template-columns:70px 1fr; gap:20px; align-items:start; }
.setup-gate__icon { width:70px; height:70px; display:grid; place-items:center; border-radius:20px; background:#eff0ff; color:var(--primary); font-weight:900; }
.setup-gate h2,.empty-mission h2,.project-first-scan h2 { margin:4px 0 8px; }
.setup-gate p,.empty-mission p,.project-first-scan p { color:var(--muted); }

.empty-mission { padding:clamp(36px,7vw,80px); text-align:center; }
.empty-mission__signal { width:50px; height:50px; display:grid; place-items:center; margin:0 auto 18px; border-radius:50%; background:#11182d; color:#fff; font-weight:900; }
.empty-mission h2 { max-width:780px; margin-inline:auto; font-size:clamp(2rem,4vw,3.2rem); line-height:1.05; }
.empty-mission p { max-width:700px; margin:14px auto 24px; }
.empty-mission__features { margin-top:28px; display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.empty-mission__features span { padding:8px 11px; border-radius:999px; background:#f5f6fa; color:var(--muted); font-size:.8rem; }

.project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.project-card { padding:24px; border:1px solid var(--line); border-radius:24px; background:#fff; box-shadow:var(--shadow-soft); }
.project-card.is-unverified { border-style:dashed; }
.project-card__top { display:grid; grid-template-columns:1fr auto; gap:18px; align-items:start; }
.project-card__top h3 { margin:8px 0 2px; font-size:1.45rem; }
.project-card__top a { color:var(--muted); font-size:.84rem; word-break:break-all; }
.project-score { width:78px; aspect-ratio:1; display:grid; place-items:center; align-content:center; border-radius:50%; background:#f6f7fa; border:5px solid #e6e8ef; }
.project-score.is-good { border-color:#b7ead5; }
.project-score.is-warn { border-color:#f4dbad; }
.project-score.is-bad { border-color:#f4c1bc; }
.project-score strong { font-size:1.45rem; line-height:1; }
.project-score span { color:var(--muted); font-size:.65rem; }
.project-card__stats { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:20px 0; }
.project-card__stats > div { padding:11px 9px; background:#f8f9fc; border-radius:12px; display:grid; }
.project-card__stats span { color:var(--muted); font-size:.66rem; }
.project-card__stats strong { font-size:.95rem; }
.project-card__footer { padding-top:16px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:12px; }
.project-card__footer > span { color:var(--muted); font-size:.75rem; }

.mission-value-strip { margin-top:20px; margin-bottom:70px; display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.mission-value-strip > div { padding:18px; border-radius:16px; background:#11182d; color:#fff; display:grid; }
.mission-value-strip span { color:rgba(255,255,255,.62); font-size:.8rem; }

/* New project */
.project-form-main { padding:70px 0; background:linear-gradient(180deg,#f5f7fb,#edf0f8); }
.project-form-grid { display:grid; grid-template-columns:1.05fr .75fr; gap:54px; align-items:center; }
.project-form-copy h1 { margin:10px 0 16px; font-size:clamp(2.6rem,5vw,4.6rem); line-height:1; letter-spacing:-.055em; }
.project-form-copy h1 em { color:var(--primary); font-style:normal; }
.project-form-copy > p { color:var(--muted); max-width:680px; }
.project-form-benefits { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:28px; }
.project-form-benefits > div { padding:17px; border:1px solid var(--line); border-radius:15px; background:#fff; display:grid; }
.project-form-benefits strong { font-size:1.6rem; }
.project-form-benefits span { color:var(--muted); font-size:.78rem; }
.project-form-card { padding:30px; border:1px solid var(--line); border-radius:26px; background:#fff; box-shadow:var(--shadow); }
.project-form-card form { display:grid; gap:17px; }
.project-form-card label { display:grid; gap:7px; font-weight:800; font-size:.84rem; }
.project-form-card label small { color:var(--muted); font-weight:500; }
.project-form-card input { width:100%; padding:14px 15px; border:1px solid var(--line); border-radius:12px; outline:none; }
.project-form-card input:focus { border-color:var(--primary); box-shadow:0 0 0 4px rgba(91,92,226,.09); }
.form-security-note { display:grid; grid-template-columns:26px 1fr; gap:10px; padding:13px; border-radius:12px; background:#f5f7fb; color:var(--muted); }
.form-security-note span { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; background:#e7f7f1; color:var(--success); font-weight:900; }
.form-security-note p { margin:0; font-size:.78rem; }
.form-smallprint { color:var(--muted-2); font-size:.75rem; margin:14px 0 0; }

/* Project detail */
.project-main { padding:38px 0 80px; }
.project-head { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:24px; }
.project-head__identity { display:flex; align-items:center; gap:16px; min-width:0; }
.project-favicon-placeholder { width:62px; height:62px; display:grid; place-items:center; border-radius:18px; background:linear-gradient(135deg,var(--primary),#8d6cff); color:#fff; font-size:1.5rem; font-weight:900; }
.project-head h1 { margin:5px 0 0; line-height:1; font-size:clamp(2rem,4vw,3rem); }
.project-head__identity a { color:var(--muted); font-size:.82rem; word-break:break-all; }
.project-head__actions .button small { display:block; opacity:.65; font-size:.64rem; }

.verification-zone { padding:34px; border:1px solid var(--line); border-radius:28px; background:#fff; box-shadow:var(--shadow-soft); }
.verification-copy { max-width:760px; }
.verification-copy h2 { margin:5px 0 8px; font-size:clamp(1.8rem,3vw,2.7rem); }
.verification-copy p { color:var(--muted); }
.verification-methods { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:26px; }
.verification-method { padding:22px; border:1px solid var(--line); border-radius:18px; background:#f9fafc; }
.verification-method > span { color:var(--primary); font-weight:900; }
.verification-method h3 { margin:7px 0 4px; }
.verification-method p,.verification-method small { color:var(--muted); }
.copy-code { margin:12px 0; padding:11px 12px; border-radius:11px; background:#10172b; color:#dce2ff; display:grid; grid-template-columns:1fr auto; gap:12px; align-items:center; }
.copy-code code { overflow:auto; white-space:nowrap; font-size:.76rem; }
.copy-code button,.public-report-link button { border:0; border-radius:8px; padding:7px 9px; background:rgba(255,255,255,.1); color:inherit; font-size:.7rem; }
.verification-action { margin-top:20px; }

.project-dashboard { display:grid; gap:20px; }
.project-first-scan { padding:32px; display:grid; grid-template-columns:1fr auto; gap:30px; align-items:center; }
.project-first-scan h2 { font-size:clamp(1.8rem,3vw,2.5rem); }
.project-first-scan p { margin:0; max-width:780px; }
.project-health-grid { display:grid; grid-template-columns:1.3fr repeat(4,1fr); gap:12px; }
.project-health-main,.project-health-mini { padding:20px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow-soft); }
.project-health-main { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:4px 18px; }
.project-health-main > span { grid-column:1/-1; color:var(--muted); font-size:.78rem; font-weight:800; }
.health-number { display:flex; align-items:flex-end; gap:2px; }
.health-number strong { font-size:3.2rem; line-height:.9; letter-spacing:-.06em; }
.health-number small { color:var(--muted); }
.project-health-main p { color:var(--muted); font-size:.76rem; margin:0; }
.score-delta { grid-column:1/-1; padding:7px 10px; width:max-content; border-radius:999px; background:#f3f4f7; font-size:.73rem; font-weight:800; }
.score-delta.is-up { background:#e9f7f1; color:var(--success); }
.score-delta.is-down { background:#fff0ee; color:var(--danger); }
.project-health-mini { display:grid; align-content:center; }
.project-health-mini > span { color:var(--muted); font-size:.72rem; }
.project-health-mini strong { font-size:1.65rem; }
.project-health-mini small { color:var(--muted-2); font-size:.65rem; margin-top:5px; }
.health-meter { height:7px; border-radius:999px; background:#edf0f5; overflow:hidden; margin-top:7px; }
.health-meter i { display:block; width:var(--value,0%); height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--primary),var(--accent)); }

.project-two-col,.project-controls,.report-two-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.mission-panel,.report-block { border:1px solid var(--line); border-radius:22px; background:#fff; box-shadow:var(--shadow-soft); }
.mission-panel { padding:24px; }
.mission-panel__head,.report-block__head { display:flex; justify-content:space-between; align-items:start; gap:18px; }
.mission-panel__head h2,.report-block__head h2 { margin:4px 0 0; }
.mission-panel__head > span,.mission-panel__head > a { color:var(--muted); font-size:.78rem; }
.fix-queue-mini { display:grid; gap:8px; margin-top:18px; }
.fix-queue-mini > div { display:grid; grid-template-columns:30px 1fr auto; gap:11px; align-items:center; padding:10px 0; border-top:1px solid var(--line); }
.fix-queue-mini > div > span { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; background:#f0f1ff; color:var(--primary); font-weight:900; font-size:.8rem; }
.fix-queue-mini > div > div { display:grid; }
.fix-queue-mini small { color:var(--muted); font-size:.72rem; }
.fix-queue-mini b { color:var(--muted-2); }

.radar-split { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:18px; }
.radar-split > div { padding:15px; border-radius:14px; background:#f8f9fc; }
.radar-split p { margin:9px 0 0; font-size:.78rem; }
.radar-split p strong { display:inline-block; min-width:28px; }
.radar-label { display:inline-flex; padding:5px 8px; border-radius:999px; font-size:.67rem; font-weight:900; }
.radar-label--bad { color:var(--danger); background:#fff0ee; }
.radar-label--good { color:var(--success); background:#e9f7f1; }
.radar-empty { margin-top:20px; padding:18px; border-radius:14px; background:#f7f8fb; color:var(--muted); }
.radar-empty strong { color:var(--ink); }

.template-radar { padding:26px; border-radius:22px; background:linear-gradient(135deg,#11182c,#242d50); color:#fff; display:grid; grid-template-columns:1fr auto; gap:20px; align-items:center; }
.template-radar h2 { margin:5px 0 7px; max-width:800px; }
.template-radar p { color:rgba(255,255,255,.67); margin:0; }
.template-radar__badge { width:92px; height:92px; display:grid; place-items:center; border-radius:50%; border:7px solid rgba(165,166,255,.55); font-size:1.4rem; font-weight:900; }

.scan-history-table { display:grid; margin-top:18px; }
.scan-history-table > div { display:grid; grid-template-columns:90px 58px 1fr 145px 70px; gap:12px; align-items:center; padding:11px 0; border-top:1px solid var(--line); font-size:.79rem; }
.scan-history-table time,.scan-history-table > div > span { color:var(--muted); }
.scan-history-table a { color:var(--primary); font-weight:800; text-align:right; }
.scan-status { width:max-content; padding:4px 7px; border-radius:999px; background:#f1f3f7; font-size:.65rem; text-transform:uppercase; font-weight:850; }
.scan-status--completed { background:#e9f7f1; color:var(--success) !important; }
.scan-status--running,.scan-status--queued { background:#f0f1ff; color:var(--primary) !important; }

.project-monitor-panel { display:grid; grid-template-columns:1fr auto; gap:20px; align-items:center; }
.project-monitor-panel p { color:var(--muted); }
.project-monitor-panel form { display:grid; gap:10px; min-width:210px; }
.project-monitor-panel label { display:grid; gap:5px; color:var(--muted); font-size:.75rem; }
.project-monitor-panel select { padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.project-danger-zone { margin-top:20px; padding:16px 18px; border:1px solid #f3d4d1; border-radius:16px; background:#fff8f7; display:flex; justify-content:space-between; gap:20px; align-items:center; }
.project-danger-zone > div { display:grid; }
.project-danger-zone span { color:var(--muted); font-size:.76rem; }

/* Scan progress */
.scan-progress-main { padding:70px 20px; display:grid; place-items:start center; background:linear-gradient(180deg,#0b1020,#11182d); color:white; }
.scan-progress-shell { width:min(900px,100%); text-align:center; }
.scan-progress-kicker { display:inline-flex; align-items:center; gap:8px; padding:7px 10px; border-radius:999px; background:rgba(255,255,255,.08); color:rgba(255,255,255,.75); font-size:.76rem; font-weight:800; }
.scan-live-dot { width:8px; height:8px; border-radius:50%; background:#59d6b0; box-shadow:0 0 0 7px rgba(89,214,176,.12); }
.scan-progress-shell h1 { margin:14px 0 10px; font-size:clamp(2.4rem,5vw,4.7rem); line-height:1; letter-spacing:-.055em; }
.scan-progress-shell h1 em { color:#a5a6ff; font-style:normal; }
.scan-progress-shell > p { max-width:760px; margin:0 auto; color:rgba(255,255,255,.65); }
.scan-progress-visual { margin:38px auto 22px; display:grid; place-items:center; position:relative; width:280px; aspect-ratio:1; }
.scan-radar { position:absolute; inset:0; border:1px solid rgba(255,255,255,.10); border-radius:50%; background:conic-gradient(from 20deg,rgba(91,92,226,.33),transparent 22%,transparent 100%); animation:scanSpin 4s linear infinite; }
.scan-radar::before,.scan-radar::after,.scan-radar i { content:""; position:absolute; inset:18%; border:1px solid rgba(255,255,255,.08); border-radius:50%; }
.scan-radar::after { inset:36%; }
.scan-radar i { inset:49%; background:#7c7df7; border:0; }
@keyframes scanSpin { to { transform:rotate(360deg); } }
.scan-progress-number { position:relative; z-index:2; display:flex; align-items:flex-end; justify-content:center; }
.scan-progress-number strong { font-size:4rem; line-height:1; letter-spacing:-.06em; }
.scan-progress-number > span { color:rgba(255,255,255,.5); }
.scan-progress-number small { position:absolute; top:100%; white-space:nowrap; color:rgba(255,255,255,.5); font-size:.72rem; }
.scan-progress-bar { width:min(650px,100%); height:8px; margin:0 auto; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden; }
.scan-progress-bar i { display:block; width:var(--value,0%); height:100%; background:linear-gradient(90deg,#7677f3,#59d6b0); transition:width .35s ease; }
.scan-live-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:30px; text-align:left; }
.scan-live-grid article { padding:14px; border:1px solid rgba(255,255,255,.09); border-radius:13px; background:rgba(255,255,255,.045); display:grid; }
.scan-live-grid span { color:rgba(255,255,255,.42); font-size:.66rem; text-transform:uppercase; letter-spacing:.08em; }
.scan-live-grid strong { font-size:.86rem; }
.scan-live-grid small { color:rgba(255,255,255,.45); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.65rem; }
.scan-live-log { max-width:700px; margin:24px auto 0; text-align:left; }
.scan-live-log > div { display:grid; grid-template-columns:26px 1fr; gap:9px; align-items:start; padding:8px 0; border-top:1px solid rgba(255,255,255,.07); }
.scan-live-log span { color:#59d6b0; }
.scan-live-log p { margin:0; color:rgba(255,255,255,.65); font-size:.77rem; }
.scan-error { margin:18px auto 0; max-width:700px; padding:13px; border-radius:12px; background:rgba(217,45,32,.14); color:#ffbdb7; text-align:left; }
.scan-progress-actions { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-top:24px; }

/* Site scan report */
.site-report-main { background:#eef1f7; padding-bottom:80px; }
.site-report-hero { padding:50px 0; background:linear-gradient(135deg,#0b1020,#151c35 60%,#1d2f50); color:#fff; }
.site-report-hero__grid,.public-report-hero__grid,.demo-hero__grid { display:grid; grid-template-columns:1fr auto; gap:40px; align-items:center; }
.site-report-hero h1,.public-report-hero h1,.demo-hero h1 { margin:10px 0 8px; font-size:clamp(2.3rem,5vw,4.4rem); line-height:1; letter-spacing:-.055em; }
.site-report-hero h1 em,.demo-hero h1 em { color:#a5a6ff; font-style:normal; }
.site-report-hero p,.public-report-hero p,.demo-hero p { color:rgba(255,255,255,.65); }
.site-report-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.site-report-actions form { margin:0; }
.site-report-score { width:170px; aspect-ratio:1; border-radius:50%; border:12px solid rgba(255,255,255,.14); display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:center; align-content:center; }
.site-report-score.is-good { border-color:rgba(89,214,176,.55); }
.site-report-score.is-warn { border-color:rgba(244,180,74,.55); }
.site-report-score.is-bad { border-color:rgba(255,108,98,.5); }
.site-report-score strong { font-size:3.4rem; line-height:.9; }
.site-report-score > span { color:rgba(255,255,255,.5); }
.site-report-score small,.site-report-score b { width:100%; text-align:center; font-size:.66rem; color:rgba(255,255,255,.58); }
.site-report-score b { color:#7ee0bd; margin-top:5px; }
.public-report-link { margin-top:14px; display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; padding:10px 12px; border-radius:11px; background:rgba(255,255,255,.07); max-width:760px; }
.public-report-link span { font-size:.7rem; color:rgba(255,255,255,.5); }
.public-report-link code { overflow:auto; white-space:nowrap; font-size:.7rem; }

.site-report-stack { display:grid; gap:18px; margin-top:22px; }
.report-health-map { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.report-health-map article { padding:18px; border:1px solid var(--line); border-radius:17px; background:#fff; box-shadow:var(--shadow-soft); }
.report-health-map article > span { color:var(--muted); font-size:.72rem; font-weight:800; }
.report-health-map article > strong { display:block; font-size:2rem; }
.report-health-map article > small { display:block; color:var(--muted); font-size:.68rem; margin-top:8px; }
.report-block { padding:26px; }
.report-block__head p { color:var(--muted); max-width:760px; margin:5px 0 0; }
.radar-score-delta { min-width:74px; padding:10px 14px; border-radius:15px; background:#f2f3f6; text-align:center; font-size:1.3rem; font-weight:900; }
.radar-score-delta.is-up { background:#e8f7f1; color:var(--success); }
.radar-score-delta.is-down { background:#fff0ee; color:var(--danger); }
.radar-report-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:22px; }
.radar-report-grid > div { padding:18px; border-radius:16px; background:#f8f9fc; }
.radar-report-grid article { display:grid; grid-template-columns:44px 1fr; gap:10px; align-items:start; padding:10px 0; border-top:1px solid var(--line); }
.radar-report-grid article > strong { font-size:1.15rem; }
.radar-report-grid article > div { display:grid; }
.radar-report-grid small { color:var(--muted); }

.queue-counter { padding:7px 10px; border-radius:999px; background:#f0f1ff; color:var(--primary); font-size:.72rem; font-weight:900; }
.fix-queue-full { display:grid; margin-top:18px; }
.fix-queue-item { display:grid; grid-template-columns:42px 1fr 84px; gap:14px; align-items:start; padding:16px 0; border-top:1px solid var(--line); }
.fix-queue-item__number { width:36px; height:36px; display:grid; place-items:center; border-radius:11px; background:#f0f1ff; color:var(--primary); font-weight:900; }
.fix-queue-item__title { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.fix-queue-item__title h3 { margin:0; font-size:1rem; }
.fix-queue-item__main p { margin:5px 0; color:var(--muted); font-size:.84rem; }
.fix-queue-item__main details { margin-top:8px; }
.fix-queue-item__main summary { color:var(--primary); cursor:pointer; font-size:.75rem; font-weight:800; }
.impact-chip { padding:4px 7px; border-radius:999px; background:#f3f4f7; color:var(--muted); font-size:.63rem; font-weight:850; }
.fix-queue-item__affected { display:grid; text-align:right; }
.fix-queue-item__affected strong { font-size:1.4rem; }
.fix-queue-item__affected span { color:var(--muted); font-size:.64rem; }
.url-example-list { display:grid; gap:4px; margin-top:8px; }
.url-example-list code { padding:7px 8px; border-radius:8px; background:#f6f7fa; color:#4a5368; font-size:.7rem; overflow:auto; }

.template-pattern-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:20px; }
.template-pattern-grid article { padding:18px; border-radius:16px; background:linear-gradient(135deg,#10172b,#202a48); color:#fff; display:grid; grid-template-columns:86px 1fr; gap:16px; align-items:center; }
.template-pattern-ring { width:78px; height:78px; border-radius:50%; border:7px solid rgba(165,166,255,.55); display:grid; place-items:center; }
.template-pattern-grid h3 { margin:0 0 5px; }
.template-pattern-grid p { margin:0; color:rgba(255,255,255,.65); font-size:.78rem; }
.template-pattern-grid small { color:#a5a6ff; }

.report-three-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.compact-report-card { display:grid; align-content:center; min-height:150px; }
.compact-report-card > span,.compact-report-card .panel__eyebrow { color:var(--muted); font-size:.72rem; }
.compact-report-card h2 { margin:4px 0 0; font-size:2.5rem; }
.compact-report-card p,.compact-report-card small { color:var(--muted); margin:0; }

.duplicate-clusters { display:grid; gap:8px; margin-top:18px; }
.duplicate-clusters details { padding:12px; border:1px solid var(--line); border-radius:12px; }
.duplicate-clusters summary { display:flex; justify-content:space-between; gap:12px; cursor:pointer; }
.duplicate-clusters summary span { color:var(--primary); font-weight:850; }
.duplicate-clusters p { color:var(--muted); }
.duplicate-clusters code { display:block; padding:5px 0; color:#5e6679; font-size:.7rem; word-break:break-all; }
.ai-signal-list { display:grid; margin-top:18px; }
.ai-signal-list > div { display:flex; justify-content:space-between; gap:14px; padding:10px 0; border-top:1px solid var(--line); }
.ai-signal-list span { color:var(--muted); }
.broken-link-list { display:grid; margin-top:16px; }
.broken-link-list > div { display:grid; grid-template-columns:54px 1fr 28px 1fr; gap:10px; align-items:center; padding:9px 0; border-top:1px solid var(--line); }
.broken-link-list > div > span { color:var(--danger); font-weight:900; }
.broken-link-list code { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.72rem; }
.broken-link-list b { color:var(--muted-2); text-align:center; }

.inventory-search { min-width:260px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; }
.page-inventory { margin-top:18px; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.page-inventory__head,.page-inventory__row { display:grid; grid-template-columns:70px minmax(0,1fr) 80px 70px 90px 90px; gap:12px; align-items:center; }
.page-inventory__head { padding:10px 12px; background:#f3f5f9; color:var(--muted); font-size:.68rem; font-weight:850; text-transform:uppercase; letter-spacing:.04em; }
.page-inventory__row { padding:11px 12px; border-top:1px solid var(--line); font-size:.76rem; }
.page-inventory__row[hidden] { display:none; }
.page-inventory__row > div { min-width:0; display:grid; }
.page-inventory__row code { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#596176; font-size:.68rem; }
.page-inventory__row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.http-chip { width:max-content; min-width:42px; padding:4px 7px; border-radius:8px; text-align:center; background:#f2f3f6; font-weight:900; }
.http-chip.is-good { background:#e8f7f1; color:var(--success); }
.http-chip.is-warn { background:#fff7e8; color:#ad6f0d; }
.http-chip.is-bad { background:#fff0ee; color:var(--danger); }
.site-context-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:18px; }
.site-context-grid > div { padding:14px; border-radius:12px; background:#f7f8fb; display:grid; }
.site-context-grid span { color:var(--muted); font-size:.7rem; }
.site-context-grid strong { font-size:.9rem; }
.report-next-action { padding:28px; border-radius:23px; background:linear-gradient(135deg,#0d1428,#222b4c); color:#fff; display:grid; grid-template-columns:1fr auto; gap:30px; align-items:center; }
.report-next-action h2 { margin:5px 0; }
.report-next-action p { color:rgba(255,255,255,.64); margin:0; }

/* Shared report / demo */
.public-report-header { padding:14px 0; border-bottom:1px solid var(--line); background:#fff; }
.public-report-header .shell { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.public-report-header .shell > span { color:var(--muted); font-size:.78rem; }
.public-report-hero,.demo-hero { padding:48px 0; background:linear-gradient(135deg,#0b1020,#17213e); color:#fff; }
.public-report-hero small { color:rgba(255,255,255,.5); }
.public-report-stack,.demo-report-stack { padding-bottom:70px; }
.public-report-cta,.demo-conversion-card { padding:28px; border-radius:22px; background:#fff; border:1px solid var(--line); display:grid; grid-template-columns:1fr auto; gap:24px; align-items:center; }
.public-report-cta p,.demo-conversion-card p { color:var(--muted); margin:4px 0 0; }
.demo-main { background:#eef1f7; }
.demo-conversion-card { background:linear-gradient(135deg,#fff,#f1f2ff); }

/* Legal */
.page-legal { background:#f5f7fb; }
.legal-main { padding:56px 0 80px; }
.legal-shell { max-width:880px; padding:36px; border:1px solid var(--line); border-radius:26px; background:#fff; box-shadow:var(--shadow-soft); }
.legal-shell h1 { margin:10px 0 6px; font-size:clamp(2.2rem,5vw,3.8rem); line-height:1; }
.legal-shell h2 { margin-top:30px; font-size:1.25rem; }
.legal-shell p { color:#4f586c; }
.legal-updated { color:var(--muted-2) !important; font-size:.78rem; }
.legal-callout { padding:16px 18px; border-radius:14px; background:#fff8e8; border:1px solid #f2dfb7; }
.contact-cards { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:28px 0; }
.contact-cards article { padding:20px; border:1px solid var(--line); border-radius:16px; background:#f8f9fc; display:grid; }
.contact-cards span { color:var(--muted); font-size:.72rem; }
.contact-cards strong { font-size:1.1rem; }
.contact-cards a { color:var(--primary); margin-top:6px; font-size:.8rem; font-weight:800; }

.text-good { color:var(--success) !important; }
.text-bad { color:var(--danger) !important; }

@media (max-width: 1080px) {
    .hero__meta--v9 { grid-template-columns:repeat(2,1fr); }
    .mission-feature-showcase { grid-template-columns:1fr 1fr; }
    .mission-feature-showcase__large { grid-column:1/-1; grid-row:auto; }
    .mission-loop-v9 { grid-template-columns:repeat(5,1fr); }
    .mission-loop-v9 > i { display:none; }
    .project-health-grid { grid-template-columns:repeat(4,1fr); }
    .project-health-main { grid-column:1/-1; }
    .mission-kpis { grid-template-columns:repeat(2,1fr); }
    .project-form-grid { grid-template-columns:1fr; }
    .site-context-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 820px) {
    .mission-hero__grid,
    .purchase-reason-card,
    .project-two-col,
    .project-controls,
    .report-two-grid,
    .site-report-hero__grid,
    .public-report-hero__grid,
    .demo-hero__grid,
    .report-next-action,
    .public-report-cta,
    .demo-conversion-card { grid-template-columns:1fr; }
    .mission-orbit { width:min(320px,80vw); }
    .project-grid { grid-template-columns:1fr; }
    .mission-value-strip { grid-template-columns:1fr; }
    .project-head { align-items:flex-start; flex-direction:column; }
    .project-head__actions { width:100%; }
    .project-head__actions form,.project-head__actions .button { width:100%; }
    .verification-methods { grid-template-columns:1fr; }
    .project-health-grid { grid-template-columns:repeat(2,1fr); }
    .project-health-main { grid-column:1/-1; }
    .scan-live-grid { grid-template-columns:repeat(2,1fr); }
    .report-health-map { grid-template-columns:repeat(2,1fr); }
    .report-three-grid { grid-template-columns:1fr; }
    .template-pattern-grid { grid-template-columns:1fr; }
    .mission-loop-v9 { grid-template-columns:1fr; }
    .mission-feature-showcase { grid-template-columns:1fr; }
    .mission-feature-showcase__large { grid-column:auto; }
    .how-grid--v9 { grid-template-columns:repeat(2,1fr); }
    .site-report-score { width:140px; }
    .site-report-hero__grid .site-report-score,.public-report-hero__grid .site-report-score,.demo-hero__grid .site-report-score { justify-self:start; }
    .broken-link-list > div { grid-template-columns:52px 1fr; }
    .broken-link-list b { display:none; }
    .page-inventory { overflow:auto; }
    .page-inventory__head,.page-inventory__row { min-width:760px; }
    .project-monitor-panel { grid-template-columns:1fr; }
    .project-monitor-panel form { min-width:0; }
}

@media (max-width: 620px) {
    .shell { width:min(100% - 24px,1180px); }
    .hero__meta--v9,
    .mission-kpis,
    .project-form-benefits,
    .project-card__stats,
    .project-health-grid,
    .scan-live-grid,
    .report-health-map,
    .site-context-grid,
    .contact-cards,
    .how-grid--v9 { grid-template-columns:1fr; }
    .project-health-main { grid-column:auto; }
    .mission-preview-pills { grid-template-columns:repeat(2,1fr); }
    .method-note { grid-template-columns:1fr; }
    .project-card__top { grid-template-columns:1fr; }
    .project-score { width:68px; }
    .project-card__footer { align-items:flex-start; flex-direction:column; }
    .project-card__footer .button { width:100%; }
    .verification-zone,.mission-panel,.report-block,.legal-shell,.project-form-card { padding:20px; }
    .project-first-scan { grid-template-columns:1fr; }
    .project-first-scan form,.project-first-scan .button { width:100%; }
    .radar-split,.radar-report-grid { grid-template-columns:1fr; }
    .template-radar { grid-template-columns:1fr; }
    .template-radar__badge { width:76px; height:76px; }
    .scan-history-table > div { grid-template-columns:80px 48px 1fr; }
    .scan-history-table time { display:none; }
    .scan-history-table a { grid-column:3; }
    .fix-queue-item { grid-template-columns:34px 1fr; }
    .fix-queue-item__affected { grid-column:2; text-align:left; display:flex; gap:5px; align-items:baseline; }
    .fix-queue-item__affected strong { font-size:1rem; }
    .template-pattern-grid article { grid-template-columns:68px 1fr; }
    .template-pattern-ring { width:62px; height:62px; border-width:5px; }
    .inventory-search { min-width:0; width:100%; }
    .report-block__head { flex-direction:column; }
    .public-report-link { grid-template-columns:1fr; }
}

@media print {
    body { background:#fff !important; }
    .no-print,.site-header,.site-footer { display:none !important; }
    .site-report-main,.demo-main { background:#fff !important; }
    .site-report-hero,.public-report-hero,.demo-hero { background:#fff !important; color:#111827 !important; border-bottom:2px solid #111827; }
    .site-report-hero p,.public-report-hero p,.demo-hero p,.site-report-score small,.site-report-score span { color:#667085 !important; }
    .site-report-score { border-color:#d0d5dd !important; }
    .report-block,.report-health-map article { box-shadow:none !important; break-inside:avoid; }
    .site-report-stack { margin-top:16px; }
    a { color:inherit !important; }
}


/* === SiteCheckr v9.1: Fix Sprint / Focus Mode === */
.fix-sprint-block {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(32, 68, 55, 0.14);
  background:
    radial-gradient(circle at 90% 0%, rgba(108, 221, 166, 0.18), transparent 34%),
    linear-gradient(180deg, #fbfffd 0%, #f5fbf7 100%);
}
.fix-sprint-block::after {
  content: "FOCUS";
  position: absolute;
  right: 26px;
  top: 20px;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(18, 61, 45, .035);
  pointer-events: none;
}
.fix-sprint-progress { display:flex; align-items:baseline; gap:7px; min-width:92px; justify-content:flex-end; position:relative; z-index:1; }
.fix-sprint-progress strong { font-size:30px; line-height:1; color:#173d31; }
.fix-sprint-progress span { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:#72857d; }
.fix-sprint-meter { height:8px; background:rgba(24,78,59,.08); border-radius:999px; overflow:hidden; margin:4px 0 22px; }
.fix-sprint-meter i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#1b6a4e,#57bd83); transition:width .3s ease; }
.fix-sprint-list { display:grid; gap:10px; }
.fix-sprint-item { display:grid; grid-template-columns:28px minmax(0,1fr) auto; gap:13px; align-items:center; padding:15px 16px; border:1px solid rgba(20,60,46,.1); border-radius:14px; background:rgba(255,255,255,.82); cursor:pointer; transition:.18s ease; }
.fix-sprint-item:hover { transform:translateY(-1px); border-color:rgba(31,112,82,.25); box-shadow:0 9px 24px rgba(23,61,49,.06); }
.fix-sprint-item input { position:absolute; opacity:0; pointer-events:none; }
.fix-sprint-check { width:26px; height:26px; display:grid; place-items:center; border-radius:8px; border:1px solid rgba(23,61,49,.2); color:transparent; background:#fff; font-weight:800; }
.fix-sprint-item:has(input:checked) { opacity:.72; background:rgba(239,249,243,.9); }
.fix-sprint-item:has(input:checked) .fix-sprint-check { background:#1f7454; border-color:#1f7454; color:#fff; }
.fix-sprint-item:has(input:checked) .fix-sprint-copy strong { text-decoration:line-through; text-decoration-thickness:1px; }
.fix-sprint-copy { min-width:0; display:grid; gap:4px; }
.fix-sprint-copy strong { font-size:15px; color:#1d352d; }
.fix-sprint-copy small { color:#66766f; line-height:1.45; }
.fix-sprint-impact { white-space:nowrap; font-size:12px; font-weight:700; color:#36594c; border:1px solid rgba(29,91,68,.12); background:#f0f8f3; padding:7px 9px; border-radius:999px; }
.fix-sprint-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:18px; padding-top:16px; border-top:1px solid rgba(27,83,62,.1); color:#5d7168; font-size:13px; }
.fix-sprint-block.is-complete { border-color:rgba(35,136,96,.34); box-shadow:0 18px 48px rgba(36,121,88,.08); }
.fix-sprint-block.is-complete .fix-sprint-progress strong::after { content:" ✓"; color:#27825f; }
.demo-fix-sprint .fix-sprint-item { cursor:default; }
.demo-fix-sprint .fix-sprint-item:hover { transform:none; box-shadow:none; }
.difference-card--sprint { background:linear-gradient(145deg,#f2fbf6,#ffffff); border-color:rgba(47,141,101,.22); }
@media (max-width:760px){
  .fix-sprint-item { grid-template-columns:28px minmax(0,1fr); }
  .fix-sprint-impact { grid-column:2; justify-self:start; white-space:normal; }
  .fix-sprint-footer { align-items:flex-start; flex-direction:column; }
  .fix-sprint-block::after { display:none; }
}


.change-radar-upsell { display:flex; align-items:center; justify-content:space-between; gap:28px; background:linear-gradient(135deg,#fff8ed,#fffdf8); border-color:rgba(187,124,38,.22); }
.change-radar-upsell h2 { max-width:760px; margin:5px 0 8px; }
.change-radar-upsell h2 em { color:#a76513; font-style:normal; }
.change-radar-upsell p { margin:0; color:#716659; }
.radar-empty--locked { border-style:dashed; background:#fffaf2; }
.radar-empty--locked .button { margin-top:12px; }
@media (max-width:760px){ .change-radar-upsell { align-items:flex-start; flex-direction:column; } }

.inventory-deep-dive form { margin:0; }
.inventory-deep-dive button,.inventory-deep-dive a { appearance:none; border:0; background:transparent; color:#17694d; font:inherit; font-size:11px; font-weight:800; cursor:pointer; text-decoration:none; padding:7px 8px; border-radius:8px; white-space:nowrap; }
.inventory-deep-dive button:hover,.inventory-deep-dive a:hover { background:#edf8f2; }


/* ===== v9 visual fixes (contrast + header polish) ===== */
.site-header__inner {
    gap: 18px;
}

.site-nav {
    gap: 18px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    white-space: nowrap;
    font-size: 13px;
}

.site-header__actions {
    flex-shrink: 0;
}

.balance-pill {
    padding: 9px 12px;
    font-weight: 700;
}

.balance-pill span:last-child {
    color: #475467;
}

.hero-preview--mission .mission-preview-pills span,
.hero-preview--mission .mission-preview-fix > div {
    color: var(--ink);
}

.hero-preview--mission .mission-preview-pills span {
    background: #ffffff;
    border-color: #d7deea;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.hero-preview--mission .mission-preview-fix > div {
    background: #ffffff;
    border-color: #d7deea;
}

.hero-preview--mission .mission-preview-fix > div > i {
    color: var(--muted);
    font-style: normal;
    font-weight: 900;
}

.hero-preview--mission .mission-preview-fix strong {
    color: var(--ink);
}

.audit-form__actions--plans {
    align-items: stretch;
}

.audit-form__actions--plans .button {
    min-width: 250px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    line-height: 1.1;
}

.audit-form__actions--plans .button small {
    margin-left: 0;
    padding: 0 10px;
    background: rgba(255, 255, 255, .20);
    color: inherit;
}

.button--ghost-light {
    color: #ffffff;
    font-weight: 800;
}

.button--ghost-light:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .18);
}

.button--start,
.button--pro,
.button--primary {
    color: #ffffff;
}

.button--start small,
.button--pro small,
.button--primary small {
    color: rgba(255, 255, 255, .96);
}

.button--premium {
    color: #17141d;
}

.button--premium small {
    background: rgba(255, 255, 255, .36);
    color: #17141d;
}

.price-card__price {
    line-height: 1.05;
}

.price-card--pro,
.price-card--premium,
.feature-card--premium {
    color: #ffffff;
}

.price-card--pro h3,
.price-card--premium h3,
.price-card--pro .price-card__price,
.price-card--premium .price-card__price {
    color: #ffffff;
}

.price-card--pro .price-card__price small,
.price-card--premium .price-card__price small {
    color: rgba(255, 255, 255, .80);
}

.price-card--pro > p,
.price-card--premium > p,
.price-card--pro li,
.price-card--premium li,
.feature-card--premium p {
    color: rgba(255, 255, 255, .82);
}

.price-card--pro li::before,
.price-card--premium li::before {
    color: #8ef0c1;
}

.price-card--pro .button,
.price-card--premium .button {
    box-shadow: none;
}

.price-card--pro .price-card__label,
.price-card--premium .price-card__label {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid currentColor;
}

@media (max-width: 1200px) {
    .site-nav { gap: 14px; }
    .site-nav a { font-size: 12px; }
    .balance-pill { padding: 8px 10px; }
}

@media (max-width: 860px) {
    .audit-form__actions--plans .button {
        width: 100%;
        min-width: 0;
        align-items: center;
        text-align: center;
    }

    .audit-form__actions--plans .button small {
        margin-inline: auto;
    }
}

/* ===== v9.2 hero audit form correction ===== */
.audit-form.audit-form--v9 {
    width: 100%;
    max-width: 760px;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
}

.audit-form--v9 .audit-form__field {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(17, 24, 39, .08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.audit-form--v9 .audit-form__icon {
    flex: 0 0 auto;
    font-size: 20px;
}

.audit-form--v9 input {
    min-width: 0;
    height: 56px;
    font-size: 16px;
}

.audit-form--v9 .audit-form__actions--plans {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
    gap: 10px;
}

.audit-form--v9 .audit-form__actions--plans .button {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 11px 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.audit-form--v9 .button__label {
    display: block;
    width: 100%;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

.audit-form--v9 .audit-form__actions--plans .button small {
    display: inline-flex;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.audit-form--v9 .button--ghost-light {
    flex-direction: row;
    font-size: 16px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .audit-form.audit-form--v9 {
        max-width: 100%;
    }

    .audit-form--v9 .audit-form__actions--plans {
        grid-template-columns: 1fr;
    }

    .audit-form--v9 .button__label,
    .audit-form--v9 .button--ghost-light {
        white-space: normal;
    }
}


/* ===== v9.3 requested homepage-only adjustments ===== */
/* Smaller main hero headline only; other site typography stays unchanged. */
.hero--mission h1 {
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 1.02;
}

/* Keep subscription cards in one horizontal row on desktop. */
.price-grid--v9 {
    width: 100%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

@media (max-width: 1080px) {
    .price-grid--v9 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .price-grid--v9 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero--mission h1 {
        font-size: clamp(34px, 10vw, 46px);
    }
}

/* v0.3.1 - keep the first hero phrase readable on dark hero background */
.hero--mission h1 {
    color: #ffffff;
}
