/* -------------------------------------------------
   SHARED APPLICATION PAGES
------------------------------------------------- */

.app-page {
    min-height: calc(100vh - 74px);
    padding: 4.5rem 0 6rem;
}

.app-page-sm {
    max-width: 880px;
    margin-right: auto;
    margin-left: auto;
}

.app-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.app-page-title {
    margin: 0.55rem 0 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        "Inter",
        sans-serif;
    font-size: clamp(2.3rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.app-page-description {
    max-width: 680px;
    margin: 1rem 0 0;
    color: var(--muted-foreground);
}

.app-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.app-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.app-panel-body {
    padding: 1.5rem;
}

.app-panel-title {
    margin: 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.app-panel-subtitle {
    margin: 0.3rem 0 0;
    color: var(--muted-foreground);
    font-size: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-badge.status-completed,
.status-badge.status-ready,
.status-badge.status-active {
    border-color: rgba(62, 207, 142, 0.28);
    background: var(--success-soft);
    color: var(--success);
}

.status-badge.status-failed,
.status-badge.status-cancelled,
.status-badge.status-revoked {
    border-color: rgba(242, 104, 92, 0.28);
    background: var(--critical-soft);
    color: #ff9188;
}

.status-badge.status-pending,
.status-badge.status-queued,
.status-badge.status-crawling,
.status-badge.status-analyzing,
.status-badge.status-generating-report,
.status-badge.status-generating_report {
    border-color: rgba(240, 173, 78, 0.28);
    background: var(--warning-soft);
    color: #ffc86e;
}

.app-stat-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.app-stat {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(
            145deg,
            var(--surface-2),
            var(--surface)
        );
}

.app-stat-label {
    display: block;
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-stat-value {
    display: block;
    margin-top: 0.5rem;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
}

.app-stat-note {
    display: block;
    margin-top: 0.55rem;
    color: var(--muted-foreground);
    font-size: 1rem;
}

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

.app-table {
    width: 100%;
    border-collapse: collapse;
}

.app-table th,
.app-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.app-table th {
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-table td {
    color: var(--foreground);
    font-size: 1rem;
}

.app-table tbody tr:last-child td {
    border-bottom: 0;
}

.app-table tbody tr:hover {
    background:
        rgba(255, 255, 255, 0.018);
}

.app-table-primary {
    display: block;
    color: var(--foreground);
    font-weight: 700;
}

.app-table-secondary {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    word-break: break-all;
}

.empty-state-custom {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 1rem;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface-2);
    color: var(--coral);
    font-size: 1.15rem;
}

.empty-state-custom h3 {
    margin: 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.empty-state-custom p {
    max-width: 420px;
    margin: 0.6rem auto 0;
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* -------------------------------------------------
   ANALYSIS PROGRESS
------------------------------------------------- */

.analysis-progress-shell {
    max-width: 900px;
    margin: 0 auto;
}

.analysis-progress-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analysis-domain {
    margin: 0.55rem 0 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    word-break: break-word;
}

.analysis-url {
    margin: 0.8rem 0 0;
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
    word-break: break-all;
}

.analysis-activity {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(240px, 0.75fr);
    gap: 1rem;
    min-height: 290px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            135deg,
            rgba(255, 111, 105, 0.05),
            transparent 36%
        ),
        radial-gradient(
            circle at 78% 28%,
            rgba(62, 207, 142, 0.12),
            transparent 24%
        ),
        var(--surface);
}

.analysis-activity::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
    mask-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0.25)
        );
    content: "";
}

.analysis-activity::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            100deg,
            transparent 0%,
            rgba(255, 111, 105, 0.08) 42%,
            rgba(62, 207, 142, 0.08) 52%,
            transparent 64%
        );
    animation: analysis-sheen 4.8s ease-in-out infinite;
    content: "";
}

.analysis-activity-browser,
.analysis-activity-panel {
    position: relative;
    z-index: 2;
}

.analysis-activity-browser {
    display: flex;
    min-height: 290px;
    flex-direction: column;
    margin: 1rem 0 1rem 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            rgba(19, 28, 41, 0.92),
            rgba(13, 20, 32, 0.72)
        );
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.analysis-browser-bar {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(19, 28, 41, 0.88);
}

.analysis-browser-bar span {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--coral);
}

.analysis-browser-bar span:nth-child(2) {
    background: var(--warning);
}

.analysis-browser-bar span:nth-child(3) {
    background: var(--success);
}

.analysis-browser-bar em {
    overflow: hidden;
    flex: 1;
    margin-left: 0.35rem;
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 0.78rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analysis-activity-stage {
    position: relative;
    display: grid;
    flex: 1;
    place-items: center;
    padding: 2rem;
}

.analysis-page-wireframe {
    position: relative;
    display: grid;
    width: min(100%, 390px);
    gap: 0.7rem;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background:
        linear-gradient(
            180deg,
            rgba(24, 35, 51, 0.9),
            rgba(13, 20, 32, 0.88)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.analysis-page-wireframe span {
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            rgba(159, 167, 182, 0.22),
            rgba(159, 167, 182, 0.08),
            rgba(255, 111, 105, 0.32),
            rgba(159, 167, 182, 0.08)
        );
    background-size: 240% 100%;
    animation: analysis-line-flow 2.8s ease-in-out infinite;
}

.analysis-page-wireframe span:first-child {
    width: 52%;
    height: 18px;
}

.analysis-page-wireframe span:nth-child(2) {
    width: 84%;
    animation-delay: 120ms;
}

.analysis-page-wireframe span:nth-child(3) {
    width: 72%;
    animation-delay: 240ms;
}

.analysis-page-wireframe span:nth-child(4) {
    width: 92%;
    animation-delay: 360ms;
}

.analysis-page-wireframe span:nth-child(5) {
    width: 64%;
    animation-delay: 480ms;
}

.analysis-page-wireframe span:nth-child(6) {
    width: 78%;
    animation-delay: 600ms;
}

.analysis-scan-beam {
    position: absolute;
    top: 3.1rem;
    right: 2rem;
    left: 2rem;
    height: 3px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 111, 105, 0.9),
            rgba(62, 207, 142, 0.8),
            transparent
        );
    box-shadow:
        0 0 18px rgba(255, 111, 105, 0.45),
        0 0 32px rgba(62, 207, 142, 0.22);
    animation: analysis-scan-beam 2.4s ease-in-out infinite;
}

.analysis-data-pulse {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 18px rgba(62, 207, 142, 0.85);
    animation: analysis-data-pulse 2.9s ease-in-out infinite;
}

.analysis-data-pulse.pulse-one {
    top: 35%;
    left: 16%;
}

.analysis-data-pulse.pulse-two {
    top: 64%;
    left: 42%;
    animation-delay: 520ms;
}

.analysis-data-pulse.pulse-three {
    top: 44%;
    right: 16%;
    animation-delay: 1040ms;
}

.analysis-radar {
    position: absolute;
    right: 1.4rem;
    bottom: 1.2rem;
    width: 86px;
    height: 86px;
    border-radius: 50%;
}

.analysis-radar-ring,
.analysis-radar-sweep,
.analysis-radar-core {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.analysis-radar-ring {
    border: 1px solid rgba(62, 207, 142, 0.22);
}

.analysis-radar-ring:nth-child(2) {
    inset: 17px;
    border-color: rgba(255, 111, 105, 0.24);
}

.analysis-radar-sweep {
    background:
        conic-gradient(
            from 0deg,
            rgba(62, 207, 142, 0.36),
            transparent 58deg,
            transparent 360deg
        );
    animation: analysis-radar-sweep 2.2s linear infinite;
}

.analysis-radar-core {
    inset: 37px;
    background: var(--coral);
    box-shadow: 0 0 16px rgba(255, 111, 105, 0.72);
}

.analysis-activity-panel {
    align-self: center;
    margin: 1rem 1rem 1rem 0;
    padding: 1.15rem;
    border-left: 1px solid var(--border);
}

.analysis-activity-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--coral);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.analysis-signal-bars {
    display: grid;
    height: 82px;
    grid-template-columns: repeat(8, 1fr);
    align-items: end;
    gap: 0.4rem;
    margin: 1.1rem 0;
}

.analysis-signal-bars span {
    min-height: 18px;
    border-radius: 999px 999px 5px 5px;
    background:
        linear-gradient(
            180deg,
            var(--success),
            var(--coral)
        );
    opacity: 0.78;
    transform-origin: bottom;
    animation: analysis-signal 1.25s ease-in-out infinite;
}

.analysis-signal-bars span:nth-child(2) {
    animation-delay: 110ms;
}

.analysis-signal-bars span:nth-child(3) {
    animation-delay: 220ms;
}

.analysis-signal-bars span:nth-child(4) {
    animation-delay: 330ms;
}

.analysis-signal-bars span:nth-child(5) {
    animation-delay: 440ms;
}

.analysis-signal-bars span:nth-child(6) {
    animation-delay: 550ms;
}

.analysis-signal-bars span:nth-child(7) {
    animation-delay: 660ms;
}

.analysis-signal-bars span:nth-child(8) {
    animation-delay: 770ms;
}

.analysis-module-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.analysis-module-rail span {
    height: 9px;
    border-radius: 999px;
    background: rgba(159, 167, 182, 0.16);
}

.analysis-module-rail span.is-live,
.analysis-module-rail span:nth-child(2) {
    background:
        linear-gradient(
            90deg,
            var(--coral),
            var(--success)
        );
    box-shadow: 0 0 16px rgba(255, 111, 105, 0.24);
    animation: analysis-module-glow 1.8s ease-in-out infinite;
}

.analysis-module-rail span:nth-child(2) {
    animation-delay: 480ms;
}

.analysis-activity-panel p {
    max-width: 280px;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.6;
}

.analysis-progress-card {
    margin-top: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.analysis-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.analysis-progress-label {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.analysis-progress-percent {
    color: var(--foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
    font-weight: 600;
}

.analysis-progress-track {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: var(--border);
}

.analysis-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--coral),
            #ff9a94
        );
    transition: width 300ms ease;
}

.analysis-meta-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.analysis-meta-item {
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-2);
}

.analysis-meta-item span {
    display: block;
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
    text-transform: uppercase;
}

.analysis-meta-item strong {
    display: block;
    margin-top: 0.3rem;
    color: var(--foreground);
    font-size: 1rem;
}

.analysis-step-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.analysis-step {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.analysis-step-main {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.analysis-step-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted-foreground);
}

.analysis-step-title {
    color: var(--muted-foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.analysis-step-note {
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
    text-align: right;
}

.analysis-step.is-complete {
    border-color:
        rgba(62, 207, 142, 0.2);
}

.analysis-step.is-complete
.analysis-step-icon {
    border-color:
        rgba(62, 207, 142, 0.3);
    background: var(--success-soft);
    color: var(--success);
}

.analysis-step.is-complete
.analysis-step-title {
    color: var(--foreground);
}

.analysis-step.is-active {
    border-color:
        rgba(255, 111, 105, 0.4);
    background:
        rgba(255, 111, 105, 0.035);
}

.analysis-step.is-active
.analysis-step-icon {
    border-color:
        rgba(255, 111, 105, 0.4);
    background:
        rgba(255, 111, 105, 0.1);
    color: var(--coral);
}

.analysis-step.is-active
.analysis-step-title {
    color: var(--coral);
}

.analysis-step.is-pending {
    opacity: 0.55;
}

.analysis-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    color: var(--muted-foreground);
    font-size: 1rem;
}

@keyframes analysis-sheen {
    0%,
    100% {
        opacity: 0.35;
        transform: translateX(-42%);
    }

    50% {
        opacity: 1;
        transform: translateX(42%);
    }
}

@keyframes analysis-line-flow {
    0% {
        background-position: 180% 0;
    }

    100% {
        background-position: -60% 0;
    }
}

@keyframes analysis-scan-beam {
    0%,
    100% {
        opacity: 0;
        transform: translateY(0);
    }

    12%,
    88% {
        opacity: 1;
    }

    50% {
        opacity: 1;
        transform: translateY(185px);
    }
}

@keyframes analysis-data-pulse {
    0%,
    100% {
        opacity: 0.24;
        transform: scale(0.8);
    }

    45% {
        opacity: 1;
        transform: scale(1.65);
    }
}

@keyframes analysis-radar-sweep {
    to {
        transform: rotate(360deg);
    }
}

@keyframes analysis-signal {
    0%,
    100% {
        transform: scaleY(0.32);
    }

    50% {
        transform: scaleY(1);
    }
}

@keyframes analysis-module-glow {
    0%,
    100% {
        opacity: 0.48;
    }

    50% {
        opacity: 1;
    }
}

/* -------------------------------------------------
   ANALYSIS RESULT
------------------------------------------------- */

.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.result-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 300px)
        minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.result-sidebar {
    position: sticky;
    top: 96px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.result-score-ring {
    position: relative;
    display: grid;
    width: 170px;
    height: 170px;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background:
        conic-gradient(
            var(--coral)
            calc(var(--score) * 1%),
            var(--border) 0
        );
}

.result-score-ring::before {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--surface);
    content: "";
}

.result-score-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.result-score-value {
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}

.result-score-out-of {
    margin-top: 0.3rem;
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
}

.result-sidebar-title {
    margin: 1.2rem 0 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
}

.result-sidebar-copy {
    margin: 0.6rem 0 0;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-align: center;
}

.result-detail-list {
    display: grid;
    gap: 0;
    margin: 1.3rem 0 0;
}

.result-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}

.result-detail:last-child {
    border-bottom: 0;
}

.result-detail span {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.result-detail strong {
    color: var(--foreground);
    font-size: 1rem;
    text-align: right;
}

.result-sidebar-unlock {
    margin-top: 1rem;
}

.stripe-wordmark {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.result-content {
    display: grid;
    gap: 1rem;
}

.result-summary {
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--coral);
    border-radius: var(--radius);
    background: var(--surface);
}

.result-summary h2 {
    margin: 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.result-summary p {
    margin: 0.7rem 0 0;
    color: var(--muted-foreground);
    font-size: 1rem;
}

.result-module {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.result-module-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.result-module-name {
    margin: 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.result-module-summary {
    margin: 0.3rem 0 0;
    color: var(--muted-foreground);
    font-size: 1rem;
}

.result-module-score {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border: 3px solid var(--coral);
    border-radius: 50%;
    color: var(--foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
    font-weight: 600;
}

.result-module-locked {
    border-color: rgba(255, 111, 105, 0.34);
    background:
        linear-gradient(
            135deg,
            rgba(255, 111, 105, 0.08),
            var(--surface) 48%,
            rgba(99, 91, 255, 0.08)
        );
}

.locked-module-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
}

.locked-module-cage {
    position: relative;
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 111, 105, 0.42);
    border-radius: 8px;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 0,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px,
            transparent 12px
        ),
        var(--surface-2);
    color: var(--coral);
    font-size: 1.35rem;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.locked-module-cage::before,
.locked-module-cage::after {
    position: absolute;
    inset: 13px auto 13px 21px;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
    content: "";
}

.locked-module-cage::after {
    right: 21px;
    left: auto;
}

.locked-module-copy {
    min-width: 0;
}

.locked-module-form {
    display: flex;
    justify-content: flex-end;
}

.result-findings {
    display: grid;
    gap: 0.75rem;
    padding: 1.1rem;
}

.result-finding {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.result-finding-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.result-finding-title {
    margin: 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.result-finding-description {
    margin: 0.55rem 0 0;
    color: var(--muted-foreground);
    font-size: 1rem;
}

.result-finding-block {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-left: 2px solid var(--coral);
    background:
        rgba(255, 111, 105, 0.035);
    color: var(--muted-foreground);
    font-size: 1rem;
}

.severity-badge {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.severity-critical,
.severity-badge.severity-high {
    background: var(--critical-soft);
    color: #ff9188;
}

.severity-badge.severity-medium {
    background: var(--warning-soft);
    color: #ffc86e;
}

.premium-unlock-panel {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
    border: 1px solid
        rgba(255, 111, 105, 0.38);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            145deg,
            rgba(255, 111, 105, 0.09),
            var(--surface) 58%
        );
}

.premium-unlock-panel::after {
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background:
        rgba(255, 111, 105, 0.1);
    filter: blur(35px);
    content: "";
}

.premium-unlock-content {
    position: relative;
    z-index: 2;
}

.result-professional-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.result-professional-copy {
    min-width: 0;
}

.result-professional-copy h2 {
    margin: 0.55rem 0 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.45rem;
    font-weight: 750;
    line-height: 1.2;
}

.result-professional-copy p {
    max-width: 620px;
    margin: 0.55rem 0 0;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.result-professional-cta .btn-coral {
    max-width: 290px;
    flex: 0 0 auto;
    text-align: center;
}

@media (max-width: 767.98px) {
    .result-professional-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
    }

    .result-professional-cta .btn-coral {
        width: 100%;
        max-width: none;
    }
}

/* -------------------------------------------------
   CHECKOUT
------------------------------------------------- */

.checkout-state-shell {
    max-width: 700px;
    margin: 1rem auto 0;
    text-align: center;
}

.checkout-state-icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    margin: 0 auto 1.3rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--coral);
    font-size: 1.45rem;
}

.checkout-state-icon.is-cancelled {
    border-color:
        rgba(240, 173, 78, 0.28);
    background: var(--warning-soft);
    color: #ffc86e;
}

.checkout-spinner {
    width: 74px;
    height: 74px;
    margin: 0 auto 1.3rem;
    border: 7px solid var(--border);
    border-top-color: var(--coral);
    border-radius: 50%;
    animation:
        checkout-spinner
        0.9s linear infinite;
}

@keyframes checkout-spinner {
    to {
        transform: rotate(360deg);
    }
}

.checkout-state-title {
    margin: 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.checkout-state-copy {
    max-width: 520px;
    margin: 1rem auto 0;
    color: var(--muted-foreground);
}

.checkout-order {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    text-align: left;
}

.checkout-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.checkout-order-row:last-child {
    border-bottom: 0;
}

.checkout-order-row span {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.checkout-order-row strong {
    color: var(--foreground);
    font-size: 1rem;
    text-align: right;
}

/* -------------------------------------------------
   USER DASHBOARD
------------------------------------------------- */

.user-shell {
    min-height: 100vh;
    background: var(--background);
}

.user-website-body {
    background: var(--background);
}

.user-website-main {
    min-height: 55vh;
}

.user-website-page {
    padding: 2rem 0 4.5rem;
}

.user-website-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.3rem;
}

.user-website-nav a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted-foreground);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.user-website-nav a:hover,
.user-website-nav a.active {
    border-color: rgba(255, 111, 105, 0.32);
    background: rgba(255, 111, 105, 0.08);
    color: var(--foreground);
}

.user-website-nav i {
    color: var(--coral);
}

.user-website-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.user-website-header h1 {
    margin: 0.45rem 0 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.user-website-header p {
    max-width: 700px;
    margin: 0.75rem 0 0;
    color: var(--muted-foreground);
}

.user-website-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

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

.user-website-actions button {
    cursor: pointer;
}

.simple-dashboard-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(300px, 0.92fr);
    gap: 1rem;
    align-items: start;
}

.simple-dashboard-card {
    min-height: 100%;
}

.simple-dashboard-primary {
    grid-row: span 2;
}

.simple-scan-list {
    display: grid;
    gap: 0.75rem;
}

.simple-scan-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem 1rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
}

.simple-scan-item strong,
.simple-scan-item span {
    display: block;
}

.simple-scan-item strong {
    overflow-wrap: anywhere;
    color: var(--foreground);
    font-size: 1rem;
}

.simple-scan-item span {
    margin-top: 0.2rem;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.simple-scan-summary {
    min-width: 0;
}

.simple-scan-action {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.simple-scan-action .status-badge {
    display: inline-flex;
    margin-top: 0;
}

.dashboard-scan-unlock {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.15rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid rgba(99, 91, 255, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(99, 91, 255, 0.07);
}

.dashboard-scan-unlock span,
.dashboard-scan-unlock-form,
.dashboard-scan-unlock-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0;
    white-space: nowrap;
}

.dashboard-scan-unlock-form {
    margin: 0;
}

.dashboard-scan-unlock span {
    color: var(--foreground);
    font-size: 0.88rem;
    font-weight: 800;
}

.dashboard-scan-unlock-link {
    min-height: 36px;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: #635bff;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 800;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

.dashboard-scan-unlock-link:hover {
    background: #5148e8;
}

.status-badge.status-premium-gold,
.btn-premium-gold {
    border-color: rgba(245, 181, 60, 0.78);
    background:
        linear-gradient(
            135deg,
            #f5b53c,
            #c98814
        );
    color: #ffffff !important;
    box-shadow:
        0 10px 26px rgba(201, 136, 20, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-premium-gold {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(245, 181, 60, 0.78);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

.btn-premium-gold:hover {
    filter: brightness(1.06);
}

.stripe-dashboard-card {
    border-color: rgba(99, 91, 255, 0.32);
    background:
        linear-gradient(
            145deg,
            rgba(99, 91, 255, 0.1),
            var(--surface) 62%
        );
}

.stripe-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.65rem;
    border: 1px solid rgba(99, 91, 255, 0.32);
    border-radius: 999px;
    background: rgba(99, 91, 255, 0.13);
    color: #b9b5ff;
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.stripe-brand-pill i {
    font-size: 1.2rem;
}

.stripe-price {
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.35rem;
}

.stripe-payment-note {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.9rem 0 0;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.stripe-payment-note i {
    color: var(--success);
}

.compact-empty-state {
    padding: 1rem;
}

.change-password-action {
    display: flex;
    justify-content: flex-end;
}

.user-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    width: 260px;
    max-width: calc(100vw - 3rem);
    overflow: hidden;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: #070b12;
    transition: transform 180ms ease;
}

.user-sidebar-header {
    display: flex;
    min-height: 74px;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.user-sidebar-brand {
    display: flex;
    min-width: 0;
    min-height: 73px;
    flex: 1;
    align-items: center;
    padding: 0 1.4rem;
    text-decoration: none;
}

.user-sidebar-close {
    display: none;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin-right: 0.75rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--foreground);
}

.user-sidebar-nav {
    display: grid;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 0.3rem;
    padding: 1.2rem 0.9rem;
}

.user-sidebar-label {
    margin: 1rem 0.65rem 0.4rem;
    color: #505a68;
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-sidebar-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--muted-foreground);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.user-sidebar-link i {
    width: 18px;
    color: #687383;
    text-align: center;
}

.user-sidebar-link:hover {
    background: var(--surface);
    color: var(--foreground);
}

.user-sidebar-link.active {
    border-color:
        rgba(255, 111, 105, 0.18);
    background:
        rgba(255, 111, 105, 0.08);
    color: var(--foreground);
}

.user-sidebar-link.active i {
    color: var(--coral);
}

.user-sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.user-account-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem;
    border-radius: 10px;
    background: var(--surface);
}

.user-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--coral);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.user-account-name {
    display: block;
    color: var(--foreground);
    font-size: 1rem;
    font-weight: 700;
}

.user-account-email {
    display: block;
    max-width: 145px;
    overflow: hidden;
    margin-top: 0.1rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-main {
    min-height: 100vh;
    margin-left: 260px;
}

.user-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border);
    background:
        rgba(8, 13, 22, 0.92);
    backdrop-filter: blur(15px);
}

.user-topbar-left,
.user-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--foreground);
}

.user-topbar-title {
    margin: 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.user-topbar-subtitle {
    margin: 0.1rem 0 0;
    color: var(--muted-foreground);
    font-size: 1rem;
}

.user-content {
    padding: 2rem 1.5rem 4rem;
}

.user-content-inner {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.user-overlay {
    position: fixed;
    inset: 0;
    z-index: 1030;
    display: none;
    background:
        rgba(0, 0, 0, 0.6);
}

.dashboard-welcome {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.dashboard-title {
    margin: 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.dashboard-copy {
    margin: 0.6rem 0 0;
    color: var(--muted-foreground);
}

.dashboard-grid {
    display: grid;
    grid-template-columns:
        repeat(12, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-span-8 {
    grid-column: span 8;
}

.dashboard-span-7 {
    grid-column: span 7;
}

.dashboard-span-6 {
    grid-column: span 6;
}

.dashboard-span-5 {
    grid-column: span 5;
}

.dashboard-span-4 {
    grid-column: span 4;
}

.dashboard-span-12 {
    grid-column: span 12;
}

.dashboard-scan-form {
    display: grid;
    gap: 0.85rem;
}

.dashboard-scan-mode {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.dashboard-scan-mode label {
    display: flex;
    min-height: 60px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    cursor: pointer;
}

.dashboard-scan-mode input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dashboard-scan-mode
input:checked + label {
    border-color:
        rgba(255, 111, 105, 0.5);
    background:
        rgba(255, 111, 105, 0.08);
}

.dashboard-scan-mode-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-3);
    color: var(--coral);
}

.dashboard-scan-mode strong {
    display: block;
    color: var(--foreground);
    font-size: 1rem;
}

.dashboard-scan-mode small {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted-foreground);
    font-size: 1rem;
}

.quota-list {
    display: grid;
    gap: 1rem;
}

.quota-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.quota-item-title {
    color: var(--foreground);
    font-size: 1rem;
    font-weight: 700;
}

.quota-item-value {
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 1rem;
}

.quota-track {
    overflow: hidden;
    height: 6px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: var(--border);
}

.quota-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--coral);
}

.entitlement-card {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.entitlement-card + .entitlement-card {
    margin-top: 0.75rem;
}

.entitlement-domain {
    display: block;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.entitlement-copy {
    margin: 0.35rem 0 0;
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* -------------------------------------------------
   USER WEBSITES
------------------------------------------------- */

.website-index-hero,
.website-show-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            135deg,
            rgba(255, 111, 105, 0.08),
            rgba(62, 207, 142, 0.045) 42%,
            var(--surface) 72%
        );
}

.website-index-hero h2,
.website-show-hero h2 {
    margin: 0.45rem 0 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
}

.website-index-hero p,
.website-show-hero p {
    max-width: 680px;
    margin: 0.65rem 0 0;
    color: var(--muted-foreground);
    word-break: break-word;
}

.website-index-summary,
.website-show-score {
    display: grid;
    min-width: 190px;
    align-content: center;
    gap: 0.2rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    background: rgba(7, 11, 18, 0.42);
}

.website-index-summary span,
.website-show-score span,
.website-index-summary small,
.website-show-score small {
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.website-index-summary strong,
.website-show-score strong {
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.website-card-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(290px, 1fr));
    gap: 1rem;
}

.website-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.website-card:hover {
    border-color: var(--border-light);
}

.website-card-top,
.website-card-footer,
.website-card-progress > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.website-card-icon,
.website-show-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(255, 111, 105, 0.22);
    border-radius: 10px;
    background: rgba(255, 111, 105, 0.08);
    color: var(--coral);
}

.website-card-main h3 {
    margin: 0;
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
}

.website-card-main a {
    color: var(--foreground);
    text-decoration: none;
}

.website-card-main a:hover {
    color: var(--coral);
}

.website-card-main p {
    margin: 0.3rem 0 0;
    color: var(--muted-foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 0.88rem;
    word-break: break-word;
}

.website-card-metrics,
.website-metric-grid,
.website-report-summary {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.website-card-metrics div,
.website-metric,
.website-report-summary div {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-2);
}

.website-card-metrics span,
.website-card-progress span,
.website-card-footer,
.website-metric span,
.website-metric small,
.website-report-summary span {
    color: var(--muted-foreground);
    font-size: 0.88rem;
}

.website-card-metrics strong,
.website-card-progress strong,
.website-metric strong,
.website-report-summary strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--foreground);
    font-size: 1rem;
}

.website-card-progress {
    display: grid;
    gap: 0.45rem;
}

.website-card-footer {
    padding-top: 0.2rem;
}

.website-empty-state .empty-state-icon {
    color: var(--coral);
}

.website-show-identity {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 1rem;
}

.website-show-score {
    text-align: right;
}

.website-show-score strong {
    font-size: 2.7rem;
}

.website-metric-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.website-metric strong {
    font-size: 1.2rem;
}

.website-show-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 360px);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.website-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.website-detail-list div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.website-detail-list div:last-child {
    border-bottom: 0;
}

.website-detail-list dt {
    color: var(--muted-foreground);
    font-size: 0.92rem;
}

.website-detail-list dd {
    margin: 0;
    color: var(--foreground);
    font-size: 0.95rem;
    word-break: break-word;
}

.website-report-card {
    overflow: hidden;
    padding: 1.15rem;
    border: 1px solid rgba(255, 111, 105, 0.3);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            145deg,
            rgba(255, 111, 105, 0.12),
            var(--surface) 62%
        );
}

.website-report-kicker {
    display: inline-flex;
    padding: 0.38rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.website-report-card h2 {
    margin: 1rem 0 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
}

.website-report-card p,
.website-report-card li {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.website-report-card p {
    margin: 0.7rem 0 0;
}

.website-report-card ul {
    display: grid;
    gap: 0.45rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.website-report-card li::before {
    margin-right: 0.5rem;
    color: var(--success);
    content: "\2713";
}

.website-scan-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.website-scan-panel h3 {
    margin: 0.75rem 0 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.website-scan-panel p {
    margin: 0.25rem 0 0;
    color: var(--muted-foreground);
}

.website-scan-panel > strong {
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 2rem;
}

.website-scan-progress {
    margin-top: 1rem;
}

.table-progress {
    display: grid;
    min-width: 120px;
    gap: 0.35rem;
}

.table-progress > span {
    color: var(--foreground);
    font-family:
        "JetBrains Mono",
        monospace;
    font-size: 0.85rem;
}

/* -------------------------------------------------
   PUBLIC CONTENT PAGES
------------------------------------------------- */

.content-hero {
    padding: 5rem 0 3rem;
}

.content-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        280px;
    gap: 2rem;
    align-items: start;
}

.content-prose {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.content-prose h2 {
    margin: 2rem 0 0.8rem;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.content-prose h3 {
    margin: 1.5rem 0 0.6rem;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.content-prose p,
.content-prose li {
    color: var(--muted-foreground);
}

.content-prose a {
    color: var(--coral);
}

.content-aside {
    position: sticky;
    top: 96px;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.content-aside-title {
    margin: 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.content-aside-list {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.content-aside-list a {
    color: var(--muted-foreground);
    font-size: 1rem;
    text-decoration: none;
}

.content-aside-list a:hover {
    color: var(--foreground);
}

.contact-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        340px;
    gap: 1.25rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-detail:last-child {
    border-bottom: 0;
}

.contact-detail-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 9px;
    background:
        rgba(255, 111, 105, 0.08);
    color: var(--coral);
}

.contact-detail strong {
    display: block;
    color: var(--foreground);
    font-size: 1rem;
}

.contact-detail span {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* -------------------------------------------------
   AUTH
------------------------------------------------- */

.auth-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, 520px);
    background: var(--background);
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 2rem;
    border-right: 1px solid var(--border);
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(255, 111, 105, 0.14),
            transparent 26rem
        ),
        #070b12;
}

.auth-visual::after {
    position: absolute;
    right: -160px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background:
        rgba(255, 111, 105, 0.08);
    filter: blur(35px);
    content: "";
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 730px;
    margin: auto 0;
}

.auth-visual-title {
    margin: 1rem 0 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.98;
}

.auth-visual-copy {
    max-width: 520px;
    margin: 1.2rem 0 0;
    color: var(--muted-foreground);
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 410px;
}

.auth-title {
    margin: 0;
    color: var(--foreground);
    font-family:
        "Mona Sans",
        "Inter Tight",
        sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.auth-copy {
    margin: 0.6rem 0 0;
    color: var(--muted-foreground);
    font-size: 1rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.6rem;
}

.auth-link {
    color: var(--coral);
    font-size: 1rem;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--coral-hover);
}

.auth-footer {
    margin-top: 1.3rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-align: center;
}

/* -------------------------------------------------
   RESPONSIVE
------------------------------------------------- */

@media (max-width: 1100px) {
    .app-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-span-8,
    .dashboard-span-7,
    .dashboard-span-6,
    .dashboard-span-5,
    .dashboard-span-4 {
        grid-column: span 12;
    }
}

@media (max-width: 991.98px) {
    body.user-sidebar-open {
        overflow: hidden;
    }

    .result-layout,
    .content-layout,
    .contact-grid,
    .website-show-layout,
    .simple-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .simple-dashboard-primary {
        grid-row: auto;
    }

    .result-sidebar,
    .content-aside {
        position: static;
    }

    .result-layout {
        gap: 1rem;
    }

    .result-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 1rem;
        align-items: center;
    }

    .result-score-ring {
        width: 138px;
        height: 138px;
    }

    .result-score-value {
        font-size: 2rem;
    }

    .result-sidebar-title,
    .result-sidebar-copy {
        text-align: left;
    }

    .result-detail-list,
    .result-sidebar-unlock,
    .result-sidebar > .btn-outline-custom,
    .result-sidebar > .btn-coral {
        grid-column: 1 / -1;
    }

    .locked-module-inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .locked-module-form {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .locked-module-form .btn-coral {
        width: 100%;
        justify-content: center;
    }

    .user-sidebar {
        transform: translateX(-100%);
    }

    .user-sidebar.is-open {
        transform: translateX(0);
    }

    .user-sidebar-close {
        display: grid;
    }

    .user-main {
        margin-left: 0;
    }

    .user-sidebar-toggle {
        display: grid;
    }

    .user-overlay.is-open {
        display: block;
    }

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .app-page {
        padding: 2.25rem 0 3.25rem;
    }

    .app-page-title {
        font-size: clamp(1.75rem, 8vw, 2.55rem);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .app-page-description {
        margin-top: 0.65rem;
        font-size: 0.88rem;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .app-page-header,
    .analysis-progress-header,
    .result-header,
    .website-index-hero,
    .website-show-hero,
    .user-website-header,
    .dashboard-welcome {
        flex-direction: column;
    }

    .user-website-header {
        align-items: flex-start;
    }

    .user-website-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .user-website-actions .button,
    .user-website-actions .btn-coral,
    .user-website-actions .btn-outline-custom {
        flex: 1;
        justify-content: center;
    }

    .simple-scan-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .simple-scan-action {
        align-items: stretch;
        flex-direction: column;
    }

    .simple-scan-action {
        width: 100%;
    }

    .simple-scan-action a {
        width: 100%;
        justify-content: center;
    }

    .dashboard-scan-unlock {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-scan-unlock span,
    .dashboard-scan-unlock-form,
    .dashboard-scan-unlock-link {
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .dashboard-scan-unlock-form,
    .dashboard-scan-unlock-link {
        width: 100%;
    }

    .app-stat-grid,
    .analysis-meta-grid,
    .website-metric-grid,
    .website-card-metrics,
    .website-report-summary {
        grid-template-columns: 1fr;
    }

    .website-index-summary,
    .website-show-score {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .website-show-identity {
        flex-direction: column;
    }

    .website-detail-list div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .website-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .website-card-footer .button {
        width: 100%;
        justify-content: center;
    }

    .analysis-activity {
        grid-template-columns: 1fr;
    }

    .analysis-activity-browser {
        min-height: 250px;
        margin: 0.85rem 0.85rem 0;
    }

    .analysis-activity-panel {
        margin: 0 0.85rem 0.85rem;
        padding: 0 0 1rem;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .analysis-activity-panel p {
        max-width: none;
    }

    .analysis-radar {
        width: 72px;
        height: 72px;
    }

    .analysis-radar-core {
        inset: 31px;
    }

    .analysis-step {
        align-items: flex-start;
        flex-direction: column;
    }

    .analysis-step-note {
        padding-left: 3.1rem;
        text-align: left;
    }

    .result-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .result-actions a,
    .result-actions button {
        width: 100%;
        min-height: 42px;
        padding: 0.68rem 0.85rem;
        font-size: 0.9rem;
    }

    .result-sidebar {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .result-score-ring {
        width: 122px;
        height: 122px;
        margin: 0 auto;
    }

    .result-score-ring::before {
        inset: 7px;
    }

    .result-score-value {
        font-size: 1.8rem;
    }

    .result-score-out-of {
        font-size: 0.72rem;
    }

    .result-sidebar-title,
    .result-sidebar-copy {
        margin-top: 0.4rem;
        text-align: center;
    }

    .result-detail {
        align-items: flex-start;
        gap: 0.4rem;
        padding: 0.58rem 0;
    }

    .result-detail span,
    .result-detail strong {
        font-size: 0.88rem;
        line-height: 1.35;
    }

    .result-summary,
    .result-module-header,
    .result-findings,
    .premium-unlock-panel {
        padding: 0.95rem;
    }

    .result-module-header,
    .result-finding-top {
        gap: 0.75rem;
    }

    .result-module-score {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-width: 2px;
        font-size: 0.88rem;
    }

    .result-module-name,
    .result-finding-title {
        font-size: 0.98rem;
        line-height: 1.25;
    }

    .result-module-summary,
    .result-finding-description,
    .result-finding-block {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .result-finding {
        padding: 0.85rem;
    }

    .severity-badge {
        padding: 0.25rem 0.42rem;
        font-size: 0.68rem;
    }

    .locked-module-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .locked-module-cage {
        margin: 0 auto;
    }

    .locked-module-copy .page-eyebrow {
        justify-content: center;
    }

    .user-content {
        padding: 1.3rem 1rem 3rem;
    }

    .user-topbar {
        padding: 0 1rem;
    }

    .dashboard-scan-mode {
        grid-template-columns: 1fr;
    }

    .app-table th,
    .app-table td {
        padding: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .analysis-activity::after,
    .analysis-page-wireframe span,
    .analysis-scan-beam,
    .analysis-data-pulse,
    .analysis-radar-sweep,
    .analysis-signal-bars span,
    .analysis-module-rail span {
        animation: none !important;
    }

    .analysis-scan-beam {
        opacity: 0.85;
        transform: translateY(96px);
    }
}
