* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0b1020;
    color: #eaf1ff;
}

.page {
    min-height: 100vh;
}

.container {
    width: min(100% - 32px, 1000px);
    margin: 0 auto;
}

.hero {
    padding: 72px 0 40px;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8fb7ff;
}

h1 {
    margin: 0 0 16px;
    font-size: 44px;
    line-height: 1.1;
}

.subtitle {
    margin: 0 0 28px;
    max-width: 700px;
    font-size: 18px;
    line-height: 1.6;
    color: #bdd0f7;
}

.scan-form {
    background: #121933;
    border: 1px solid #253055;
    border-radius: 16px;
    padding: 20px;
}

.label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.input {
    flex: 1 1 50px;
    min-height: 52px;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #32406f;
    border-radius: 12px;
    background: #0d1430;
    color: #ffffff;
    font-size: 16px;
    line-height: 52px;
    appearance: none;
    -webkit-appearance: none;
}

.input:focus {
    outline: none;
    border-color: #6ea8ff;
}

.button {
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: #4c8dff;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.button:hover {
    opacity: 0.95;
}

.hint {
    margin: 12px 0 0;
    font-size: 14px;
    color: #9db0d8;
}

.message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #17203f;
    border: 1px solid #2c3c69;
    color: #d9e5ff;
}

.results {
    padding: 16px 0 72px;
}

.summary-card,
.card {
    background: #121933;
    border: 1px solid #253055;
    border-radius: 16px;
    padding: 20px;
}

.summary-card {
    margin-bottom: 20px;
}

.summary-label {
    margin: 0 0 8px;
    color: #9db0d8;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-score {
    font-size: 52px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
}

.summary-risk {
    margin: 0;
    color: #bdd0f7;
}

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

.card h2 {
    margin-top: 0;
    font-size: 20px;
}

.list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.7;
    color: #d9e5ff;
}

@media (max-width: 768px) {
    .hero {
        padding: 48px 0 28px;
    }

    h1 {
        font-size: 34px;
    }

    .subtitle {
        font-size: 16px;
    }

    .scan-form {
        padding: 16px;
    }

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

    .input,
.button {
    width: 100%;
}

.input {
    min-height: 48px;
    height: 48px;
    padding: 0 14px;
    font-size: 16px;
    line-height: 48px;
}

.button {
    min-height: 48px;
    height: 48px;
    padding: 0 16px;
}

    .summary-score {
        font-size: 42px;
    }

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

.summary-risk.risk-low {
    color: #66d18f;
}

.summary-risk.risk-medium {
    color: #ffd166;
}

.summary-risk.risk-high {
    color: #ff6b6b;
}

.button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.summary-domain {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: bold;
    color: #8fb7ff;
    word-break: break-all;
}

.brand-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #8fb7ff 0%, #4c8dff 100%);
    box-shadow: 0 0 14px rgba(76, 141, 255, 0.45);
}

.recent {
    margin-top: 28px;
    padding: 20px;
    background: #121933;
    border: 1px solid #253055;
    border-radius: 16px;
}

.recent h2 {
    margin-top: 0;
    font-size: 20px;
}

.summary-text-card {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20,30,60,0.9), rgba(10,18,38,0.9));
    border: 1px solid rgba(120,150,255,0.12);
}

.summary-text-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #9fb4ff;
}

.summary-text {
    margin: 0;
    line-height: 1.7;
    color: #dbe6ff;
    font-size: 15px;
}

.risk-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.risk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.risk-badge.badge-low {
    background: rgba(102, 209, 143, 0.12);
    color: #66d18f;
    border-color: rgba(102, 209, 143, 0.3);
}

.risk-badge.badge-medium {
    background: rgba(255, 209, 102, 0.12);
    color: #ffd166;
    border-color: rgba(255, 209, 102, 0.3);
}

.risk-badge.badge-high {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

.mini-badge.mini-pass {
    background: rgba(102, 209, 143, 0.12);
    color: #66d18f;
    border-color: rgba(102, 209, 143, 0.3);
}

.mini-badge.mini-issue {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}
.business-text-card {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 34, 54, 0.95), rgba(10, 18, 38, 0.95));
    border: 1px solid rgba(102, 209, 143, 0.14);
}

.business-text-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #9fe3bb;
}

.business-text {
    margin: 0;
    line-height: 1.7;
    color: #e3fff0;
    font-size: 15px;
}

.recent-empty {
    color: #9db0d8;
    font-size: 14px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #253055;
    border-radius: 12px;
    background: rgba(13, 20, 48, 0.65);
}

.recent-domain {
    font-weight: 700;
    color: #eaf1ff;
    word-break: break-word;
}

.recent-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(143, 183, 255, 0.12);
    border: 1px solid rgba(143, 183, 255, 0.25);
    color: #8fb7ff;
    font-size: 13px;
    font-weight: 700;
}

.recent-risk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
}

.recent-risk-low {
    background: rgba(102, 209, 143, 0.12);
    color: #66d18f;
    border-color: rgba(102, 209, 143, 0.3);
}

.recent-risk-medium {
    background: rgba(255, 209, 102, 0.12);
    color: #ffd166;
    border-color: rgba(255, 209, 102, 0.3);
}

.recent-risk-high {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.recent-date {
    color: #9db0d8;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .recent-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .recent-domain {
        font-size: 15px;
    }

    .recent-score,
    .recent-risk {
        justify-content: flex-start;
        width: fit-content;
    }

    .recent-date {
        white-space: normal;
        font-size: 12px;
    }
}

.summary-actions {
    margin-top: 18px;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(143, 183, 255, 0.28);
    background: rgba(143, 183, 255, 0.08);
    color: #bcd3ff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.secondary-button:hover {
    background: rgba(143, 183, 255, 0.14);
    border-color: rgba(143, 183, 255, 0.4);
}

/* =========================
   Report page
========================= */

.report-page {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #111827;
    background: #ffffff;
    line-height: 1.6;
}

.report-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.report-wrap h1,
.report-wrap h2,
.report-wrap h3 {
    margin-top: 0;
}

.report-topbar {
    margin-bottom: 28px;
}

.report-eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f46e5;
    font-weight: 700;
}

.report-subtitle {
    margin: 10px 0 0;
    color: #4b5563;
}

.report-summary-box {
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    padding: 20px;
    background: #f8fbff;
    margin-bottom: 20px;
}

.report-score {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin: 10px 0;
}

.report-risk {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
}

.report-risk.low {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.report-risk.medium {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.report-risk.high {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

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

.report-card {
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    padding: 18px;
    background: #ffffff;
}

.report-card ul {
    margin: 0;
    padding-left: 18px;
}

.report-section {
    margin-top: 24px;
}

.report-muted {
    color: #6b7280;
}

.report-print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.report-print-button:hover {
    background: #e0e7ff;
}

@media print {
    .print-hide {
        display: none !important;
    }

    .report-page {
        background: #ffffff;
    }

    .report-wrap {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .report-grid {
        grid-template-columns: 1fr;
    }

    .report-score {
        font-size: 38px;
    }
}