@font-face {
    font-family: "Gabii";
    src: url("../fonts/gabii-Regular.woff2") format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: "Gabii";
    src: url("../fonts/gabii-Bold.woff2") format("woff2");
    font-weight: 700;
}

@font-face {
    font-family: "Obviously";
    src: url("../fonts/Obviously.woff2") format("woff2");
    font-weight: 700;
}

:root {
    --brand-orange: #f07b02;
    --brand-orange-soft: #e78c2d;
    --brand-orange-deep: #d04a01;
    --brand-lime: #f07b02;
    --brand-dark: #141c2b;
    --brand-panel: #1f2937;
    --brand-purple: #6f1cba;
    --blue: #6f1cba;
    --blue-dark: #141c2b;
    --ink: #f3f6fb;
    --muted: #aeb8c7;
    --line: rgba(243, 246, 251, .12);
    --bg: #141c2b;
    --panel: #1f2937;
    --ok: #18b56d;
    --warning: #f4a21c;
    --critical: #e7475d;
    --cyan: #6f1cba;
    --violet: #6f1cba;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(208, 255, 113, .16), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #edf2f8 100%);
    color: var(--ink);
    font-family: "Gabii", Arial, Helvetica, sans-serif;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 232px;
    background:
        radial-gradient(circle at top left, rgba(208, 255, 113, .16), transparent 34%),
        linear-gradient(180deg, #1f2937 0%, #141c2b 100%);
    color: #fff;
    box-shadow: 8px 0 24px rgba(20, 28, 43, .16);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 72px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(208, 255, 113, .14);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(208, 255, 113, .12);
    font-weight: 800;
    overflow: hidden;
}

.brand-mark img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand strong {
    font-family: "Obviously", "Gabii", sans-serif;
    font-size: 16px;
    line-height: 1;
}

.nav {
    display: grid;
}

.nav a {
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(208, 255, 113, .1);
}

.nav a.active,
.nav a:hover {
    background: var(--brand-lime);
    color: #111826;
}

.main {
    margin-left: 232px;
    padding: 24px;
    max-width: calc(100vw - 232px);
    overflow-x: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
    margin: -24px -24px 24px;
    padding: 18px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
}

h1,
h2 {
    margin: 0;
    font-weight: 500;
    letter-spacing: 0;
}

h1 {
    font-size: 26px;
    font-family: "Obviously", "Gabii", sans-serif;
}

h2 {
    font-size: 18px;
}

.scan-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, .8fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 24px;
    padding: 18px;
    background: var(--brand-dark);
    color: #fff;
    border-left: 5px solid var(--brand-lime);
}

.scan-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

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

input[type="url"],
input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(0, 0, 0, .16);
    padding: 0 12px;
    font-size: 16px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    background: var(--brand-purple);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
        border-radius: 50px;
    min-width: 220px;
}

.button.secondary {
    background: var(--brand-lime);
    color: #111826;
}

.button.danger {
    background: var(--critical);
}

.button.compact {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.strip-copy {
    display: grid;
    gap: 6px;
    line-height: 1.35;
}

.demo-limit {
    margin-top: 5px;
    color: var(--brand-orange-soft);
    font-weight: 700;
}

.form-error {
    margin: 10px 0 0;
    color: #fff8c5;
    font-weight: 700;
}

.summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.status-notice {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f6f9fc;
    border-left: 5px solid var(--critical);
}

.status-notice.ok {
    border-left-color: var(--ok);
}

.status-notice.critical {
    border-left-color: var(--critical);
}

.status-notice span {
    color: var(--muted);
}

.score-card,
.metric-card {
    min-height: 132px;
    padding: 18px;
    color: #fff;
    display: grid;
    align-content: space-between;
    overflow: hidden;
}

.score-card {
    background: var(--brand-purple);
}

.score-card.status-warning {
    background: var(--warning);
}

.score-card.status-critical {
    background: var(--critical);
}

.metric-card:nth-child(2) {
    background: #1f2937;
}

.metric-card:nth-child(3) {
    background: var(--ok);
}

.metric-card:nth-child(4) {
    background: var(--brand-purple);
}

.metric-card:nth-child(5) {
    background: #141c2b;
    border-bottom: 4px solid var(--brand-lime);
}

.score-card span,
.metric-card span,
.score-card small,
.metric-card small {
    color: rgba(255, 255, 255, .86);
}

.score-card strong,
.metric-card strong {
    font-size: 42px;
    line-height: 1;
    font-weight: 500;
    word-break: break-word;
}

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

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    margin-bottom: 24px;
    box-shadow: 0 14px 32px rgba(20, 28, 43, .06);
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.details {
    margin: 0;
    padding: 8px 20px 18px;
}

.details div {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f6;
}

.details div:last-child {
    border-bottom: 0;
}

dt {
    color: var(--muted);
    font-weight: 700;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.pill,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 26px;
    padding: 0 10px;
    font-size: 12px;
    color: #fff;
    background: var(--muted);
    border-radius: 8px;
}

.pill.ok,
.tag.ok {
    background: var(--ok);
}

.pill.warning {
    background: var(--warning);
}

.pill.critical,
.tag.missing {
    background: var(--critical);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 20px 8px;
}

.help {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-left: 7px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(20, 28, 43, .08);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    cursor: help;
    vertical-align: middle;
}

.help::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 9px);
    width: min(280px, 70vw);
    padding: 10px 12px;
    background: #202938;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.help:hover::after,
.help:focus::after {
    opacity: 1;
}

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

.security-grid article {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    min-height: 92px;
    padding: 12px;
    background: #f6f9fc;
    border-top: 4px solid var(--ok);
    color: var(--muted);
}

.security-grid article.warning {
    border-top-color: var(--warning);
}

.security-grid article.critical {
    border-top-color: var(--critical);
}

.security-grid div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.security-grid strong {
    color: var(--ink);
}

.security-grid article > span {
    align-self: end;
    color: var(--muted);
    font-size: 15px;
}

.endpoint-chip {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin: 0 6px 6px 0;
    padding: 0 8px;
    background: #edf3fa;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.mini-table,
.history-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.mini-table th,
.mini-table td,
.history-table th,
.history-table td {
    padding: 13px 12px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mini-table th,
.history-table th {
    color: var(--muted);
    font-size: 13px;
}

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

.perf-grid span {
    display: grid;
    gap: 8px;
    min-height: 82px;
    padding: 14px;
    background: #f6f9fc;
    color: var(--muted);
}

.perf-grid strong {
    color: var(--ink);
    font-size: 24px;
    font-weight: 500;
}

.recommendations {
    padding-bottom: 8px;
}

.recommendation {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 12px 20px;
    padding: 12px;
    background: #b7d6f5
}

.recommendation span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.recommendation p {
    margin: 0;
}

.service-cta {
    margin: 18px 20px 20px;
    padding: 18px 20px;
    background: var(--brand-dark);
    color: #fff;
    border-left: 5px solid var(--brand-lime);
}

.service-cta strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.service-cta p {
    color: rgba(255, 255, 255, .78);
}

.points-gain {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 8px;
    padding: 0 8px;
    background: rgba(208, 255, 113, .28);
    color: #3c5b00;
    font-size: 12px;
    font-weight: 800;
}

.recommendation.critical {
    border-left: 4px solid var(--critical);
}

.recommendation.warning {
    border-left: 4px solid var(--warning);
}

.recommendation.info {
    border-left: 4px solid #3998d6;
}

.recommendation.ok {
    border-left: 4px solid var(--ok);
}

.empty-state {
    padding: 50px 24px;
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
}

.empty-state p {
    color: var(--muted);
}

.history-table a {
    color: var(--blue);
    font-weight: 700;
}

.text-danger {
    border: 0;
    background: transparent;
    color: var(--critical);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.text-danger:hover,
.text-danger:focus {
    text-decoration: underline;
}

.history-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* .ftp-form {
    display: grid;
    grid-template-columns: minmax(150px, 1.1fr) minmax(120px, .9fr) 58px minmax(100px, .72fr) minmax(92px, .68fr) 70px minmax(92px, .75fr) minmax(82px, .7fr) minmax(160px, .9fr);
    gap: 7px;
    padding: 14px 20px 18px;
    align-items: end;
} */
.ftp-form {
    display: grid;
    grid-template-columns: 200px 150px 58px 170px 250px 370px 190px 95px 180px;
    gap: 7px;
    padding: 14px 20px 18px;
    align-items: end;
}

.ftp-note {
    margin: 14px 20px 0;
    padding: 9px 11px;
    background: #fff7e5;
    border-left: 4px solid var(--warning);
    color: #725119;
    font-size: 13px;
    line-height: 1.4;
}

.ftp-actions {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}

.ftp-form label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.ftp-form input[type="url"],
.ftp-form input[type="text"],
.ftp-form input[type="password"],
.ftp-form input[type="number"] {
    min-height: 30px;
    padding: 0 7px;
    font-size: 12px;
}

.ftp-form .checkline {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    font-size: 11px;
}

.ftp-form .checkline input {
    width: 13px;
    height: 13px;
}

.ftp-form .ftp-wp-only {
    grid-column: 1 / -1;
}

.ftp-actions {
    min-height: 30px;
}

.ftp-actions .button {
    min-height: 30px;
    padding: 0 9px;
    font-size: 11px;
}

.ftp-status-card {
    display: grid;
    grid-template-columns: minmax(170px, .35fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 14px 20px 0;
    padding: 14px;
    background: #fff4f5;
    border-left: 6px solid var(--critical);
}

.ftp-status-card.ok {
    background: #effaf5;
    border-left-color: var(--ok);
}

.ftp-status-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ftp-status-card strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    color: var(--critical);
}

.ftp-status-card.ok strong {
    color: var(--ok);
}

.ftp-status-card p {
    margin: 0;
    line-height: 1.45;
}

.ftp-result {
    margin: 0 20px 20px;
    padding: 14px;
    background: #f6f9fc;
    border-left: 4px solid var(--critical);
}

.ftp-result.ok {
    border-left-color: var(--ok);
}

.ftp-result p {
    margin: 6px 0 0;
}

.ftp-result ul {
    columns: 2;
    margin: 12px 0 0;
    padding-left: 18px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ftp-result li,
.ftp-status-card p,
.status-notice span,
.recommendation p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ftp-audit-list {
    padding: 0 20px 20px;
    color: var(--muted);
    line-height: 1.5;
}

.ftp-audit-list h2 {
    margin-bottom: 8px;
    color: var(--ink);
}

.source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    color: #fff;
    background: #7b8798;
    font-size: 12px;
    font-weight: 800;border-radius: 8px;
}

.source-badge.ftp {
    background: var(--violet);
}

.source-badge.public {
    background: #3998d6;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(20, 28, 40, .58);
}

.loading-overlay[hidden] {
    display: none;
}

.loader-box {
    width: min(420px, 100%);
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.spinner {
    display: inline-block;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border: 4px solid #dbe4ef;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.loader-box strong {
    display: block;
    font-size: 18px;
}

.loader-box p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

/* Identidad visual gabiirese */
body {
    background:
        radial-gradient(circle at 64% 8%, rgba(111, 28, 186, .5), transparent 32%),
        radial-gradient(circle at 92% 74%, rgba(240, 123, 2, .12), transparent 28%),
        linear-gradient(135deg, #141c2b 0%, #1f2937 52%, #141c2b 100%);
    color: var(--ink);
}

.sidebar {
    width: 258px;
    background:
        radial-gradient(circle at 20% 0, rgba(111, 28, 186, .4), transparent 30%),
        linear-gradient(180deg, #141c2b 0%, #101722 100%);
    border-right: 1px solid rgba(240, 123, 2, .18);
    box-shadow: 18px 0 55px rgba(0, 0, 0, .18);
}

.brand {
    height: 108px;
    padding: 18px 20px;
    gap: 14px;
    border-bottom-color: rgba(240, 123, 2, .24);
}

.brand-mark {
    width: 54px;
    height: 68px;
    flex: 0 0 54px;
    border-radius: 0;
    background: transparent;
}

.brand-mark img {
    width: 100%;
    height: 100%;
}

.brand-copy {
    display: grid;
    gap: 6px;
}

.brand-copy strong {
    font-family: "Gabii", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.05;
}

.brand-copy small {
    color: var(--brand-orange-soft);
    font-size: 12px;
    font-weight: 700;
}

.nav {
    padding: 14px 12px;
    gap: 6px;
}

.nav a {
    padding: 13px 14px;
    border: 0;
    border-radius: 999px;
    color: rgba(243, 246, 251, .74);
}

.nav a.active,
.nav a:hover {
    background: var(--brand-orange);
    color: #141c2b;
}

.main {
    margin-left: 258px;
    max-width: calc(100vw - 258px);
    padding: 30px;
}

.topbar {
    min-height: 96px;
    margin: -12px 0 28px;
    padding: 20px 24px;
    background: rgba(31, 41, 55, .88);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .16);
    backdrop-filter: blur(12px);
}

.breadcrumb {
    color: var(--brand-orange-soft);
    font-weight: 700;
}

h1 {
    color: #fff;
    font-family: "Gabii", sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1;
}

h2 {
    color: #fff;
    font-weight: 700;
}

.topbar-signature {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    color: #fff;
    font-family: "Gabii", sans-serif;
    font-weight: 700;
}

.topbar-signature img {
    width: 30px;
    height: 38px;
    object-fit: contain;
}

.scan-strip {
    padding: 24px;
    border: 1px solid rgba(240, 123, 2, .32);
    border-left: 0;
    border-radius: 22px;
    background:
        radial-gradient(circle at 80% 20%, rgba(240, 123, 2, .2), transparent 24%),
        linear-gradient(115deg, rgba(111, 28, 186, .92), rgba(31, 41, 55, .96) 68%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}

.scan-form label {
    color: #fff;
}

input[type="url"],
input[type="text"],
input[type="password"],
input[type="number"] {
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(243, 246, 251, .18);
    border-radius: 999px;
    outline: 0;
    background: rgba(20, 28, 43, .82);
    color: #fff;
    font-family: "Gabii", sans-serif;
}

input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(240, 123, 2, .14);
}

input::placeholder {
    color: rgba(243, 246, 251, .42);
}

.button {
    min-height: 50px;
    border-radius: 999px;
    background: var(--brand-orange);
    color: #141c2b;
    box-shadow: 0 10px 24px rgba(208, 74, 1, .2);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
    background: var(--brand-orange-soft);
    box-shadow: 0 14px 30px rgba(208, 74, 1, .28);
}

.button.secondary {
    background: rgba(111, 28, 186, .86);
    color: #fff;
}

.panel,
.empty-state,
.loader-box {
    background: rgba(31, 41, 55, .94);
    border-color: var(--line);
    border-radius: 20px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .16);
}

.panel-title {
    border-bottom-color: var(--line);
}

.summary {
    gap: 14px;
}

.score-card,
.metric-card {
    min-height: 144px;
    border: 1px solid rgba(243, 246, 251, .1);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.score-card,
.metric-card:nth-child(4) {
    background: linear-gradient(145deg, #6f1cba, #421273);
}

.metric-card:nth-child(2),
.metric-card:nth-child(5) {
    background: linear-gradient(145deg, #263244, #141c2b);
}

.metric-card:nth-child(3) {
    background: linear-gradient(145deg, #16885a, #105b40);
}

.score-card.status-warning {
    background: linear-gradient(145deg, #f07b02, #d04a01);
}

.score-card.status-critical {
    background: linear-gradient(145deg, #e7475d, #9d2437);
}

.details div,
.mini-table th,
.mini-table td,
.history-table th,
.history-table td {
    border-color: var(--line);
}

dt,
.mini-table th,
.history-table th {
    color: var(--brand-orange-soft);
}

.security-grid article,
.perf-grid span,
.endpoint-chip,
.recommendation,
.status-notice {
    background: rgba(20, 28, 43, .72);
    color: var(--muted);
}

.security-grid article {
    border-radius: 14px;
    border-top-color: var(--ok);
}

.security-grid strong,
.perf-grid strong,
.endpoint-chip {
    color: var(--ink);
}

.endpoint-chip {
    border: 1px solid rgba(111, 28, 186, .5);
    border-radius: 999px;
}

.pill,
.tag {
    border-radius: 999px;
}

.help {
    background: rgba(240, 123, 2, .14);
    color: var(--brand-orange-soft);
}

.recommendation {
    border-radius: 12px;
}

.recommendation span {
    color: var(--brand-orange-soft);
}

.points-gain {
    background: rgba(240, 123, 2, .16);
    color: var(--brand-orange-soft);
    border-radius: 999px;
}

.service-cta {
    border: 1px solid rgba(240, 123, 2, .36);
    border-left: 5px solid var(--brand-orange);
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 20%, rgba(240, 123, 2, .2), transparent 25%),
        linear-gradient(115deg, rgba(111, 28, 186, .7), rgba(20, 28, 43, .96));
}

.empty-state {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 54px 24px;
    background:
        radial-gradient(circle at 50% 10%, rgba(111, 28, 186, .42), transparent 48%),
        rgba(31, 41, 55, .94);
}

.empty-state::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -100px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(240, 123, 2, .1);
}

.empty-logo {
    display: block;
    width: 62px;
    height: 78px;
}

.empty-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.empty-state h2 {
    max-width: 760px;
    font-family: "Gabii", sans-serif;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.05;
}

.empty-state p:not(.eyebrow) {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.eyebrow {
    margin: 0;
    color: var(--brand-orange) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.history-table a {
    color: var(--brand-orange-soft);
}

.loader-box {
    color: var(--ink);
}

.spinner {
    border-color: rgba(243, 246, 251, .18);
    border-top-color: var(--brand-orange);
}

.report-mode .sidebar,
.report-mode .scan-strip,
.report-mode #historico {
    display: none;
}

.report-mode .main {
    margin-left: 0;
}

@media (max-width: 980px) {
    .sidebar {
        position: static;
        width: auto;
    }

    .nav {
        display: flex;
        gap: 8px;
        padding: 10px 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav a {
        flex: 0 0 auto;
        min-width: 0;
        padding: 11px 16px;
    }

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

    .main {
        margin-left: 0;
        max-width: 100vw;
    }

    .summary,
    .grid.two,
    .scan-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .main {
        padding: 14px;
    }

    .topbar {
        margin: -14px -14px 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    .scan-row {
        flex-direction: column;
    }

    .summary {
        grid-template-columns: 1fr;
    }

    .details div,
    .recommendation {
        grid-template-columns: 1fr;
    }

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

    .security-grid {
        grid-template-columns: 1fr;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .ftp-form {
        grid-template-columns: 1fr;
    }

    .ftp-result ul {
        columns: 1;
    }
}

@media print {
    .no-print,
    .sidebar,
    .scan-strip {
        display: none !important;
    }

    .main {
        margin: 0;
        padding: 0;
    }

    body {
        background: #fff;
    }
}
