:root {
    --bg: #0b0d10;
    --surface: #14171c;
    --surface-2: #1c2028;
    --border: #262b34;
    --text: #e6e8ec;
    --text-dim: #8b9099;
    --accent: #4a9eff;
    --accent-hover: #6ab0ff;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #10b981;
    --radius: 8px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-mark { color: var(--accent); font-size: 22px; }

.site-nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
    transition: color 0.15s;
}

.site-nav a:hover { color: var(--text); }

.site-main { flex: 1; padding: 64px 0; }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    color: var(--text-dim);
    font-size: 13px;
}

.disclaimer { max-width: 720px; }

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.lede {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 32px;
}

.scan-form { margin: 32px 0; }

.scan-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.scan-input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 16px;
    border-radius: var(--radius);
    font-family: var(--mono);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

.scan-input:focus { border-color: var(--accent); }

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scan-hint {
    color: var(--text-dim);
    font-size: 13px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.feature-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-dim);
    font-size: 14px;
}

.advanced-gate {
    max-width: 480px;
    margin: 64px auto;
}

.login-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form label {
    font-size: 13px;
    color: var(--text-dim);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-top: 16px;
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

@media (max-width: 700px) {
    .features { grid-template-columns: 1fr; }
    .scan-input-group { flex-direction: column; }
    .hero h1 { font-size: 32px; }
}
/* ---- Findings list ---- */
.findings-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.finding {
    padding: 16px 20px;
    margin: 12px 0;
    border-radius: var(--radius);
    background: var(--surface);
    border-left: 4px solid var(--border);
}

.finding-critical { border-left-color: var(--danger); }
.finding-high     { border-left-color: #ea580c; }
.finding-medium   { border-left-color: var(--warning); }
.finding-info     { border-left-color: var(--text-dim); }

.finding-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.finding-marker {
    font-size: 14px;
}

.finding-severity {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.finding-text {
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.finding-source {
    color: var(--text-dim);
    font-size: 12px;
    font-style: italic;
    font-family: var(--mono);
}

.finding-table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    font-size: 12px;
}

.finding-table th {
    text-align: left;
    padding: 6px 10px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.05em;
}

.finding-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    color: var(--text);
}

.raw-json-details {
    margin-top: 32px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.raw-json-details summary {
    cursor: pointer;
    color: var(--text-dim);
    font-size: 13px;
    padding: 8px 0;
}

.raw-json-details summary:hover { color: var(--text); }

.raw-json-pre {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius);
    overflow: auto;
    max-height: 500px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-dim);
    margin-top: 12px;
}

.verdict h2 { font-size: 22px; margin-bottom: 8px; }
/* ---- Verdict label subtitle ---- */
.verdict-label {
    color: var(--text-dim);
    font-size: 13px;
    font-style: italic;
    margin-top: 4px;
    margin-bottom: 12px;
}

.verdict-counts {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 8px;
    font-family: var(--mono);
}

/* ---- Coverage section ---- */
.coverage-note {
    font-size: 13px;
    margin-bottom: 12px;
}

.coverage-table {
    width: 100%;
    margin: 12px 0 32px 0;
    border-collapse: collapse;
    font-size: 13px;
}

.coverage-table th {
    text-align: left;
    padding: 8px 12px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.05em;
}

.coverage-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.coverage-row.status-checked td:nth-child(2) {
    color: var(--success);
}

.coverage-row.status-unavailable td:nth-child(2) {
    color: var(--text-dim);
}

.coverage-row.status-unavailable td:nth-child(3) {
    color: var(--text-dim);
    font-style: italic;
    font-size: 12px;
}

/* ---- Download raw data ---- */
.raw-download {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.raw-download-hint {
    color: var(--text-dim);
    font-size: 12px;
}
/* ============================================================ */
/* SEED DB BROWSER                                              */
/* ============================================================ */

.seed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.seed-stat-card {
    background: #14161c;
    border: 1px solid #232632;
    border-radius: 8px;
    padding: 16px 18px;
}

.seed-stat-card.seed-stat-dangerous {
    border-color: #5a2a2a;
}

.seed-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #e6e8ee;
    line-height: 1.1;
}

.seed-stat-label {
    font-size: 12px;
    color: #8a90a0;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.seed-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #232632;
    margin: 24px 0 16px;
}

.seed-tab {
    padding: 8px 16px;
    font-size: 14px;
    color: #8a90a0;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.seed-tab:hover {
    color: #e6e8ee;
}

.seed-tab.active {
    color: #e6e8ee;
    border-bottom-color: #5b8cff;
}

.seed-filter {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 16px 0 20px;
}

.seed-filter-select {
    max-width: 160px;
}

.seed-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 8px 0 24px;
}

.seed-table th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #232632;
    color: #8a90a0;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.seed-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #1a1c24;
    color: #cdd2de;
    vertical-align: top;
}

.seed-table tr:hover td {
    background: #14161c;
}

.seed-url {
    color: #8fb0ff;
    text-decoration: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.seed-url:hover {
    text-decoration: underline;
}

.seed-ts {
    color: #6b7180;
    font-size: 12px;
    white-space: nowrap;
}

.seed-fp-count {
    color: #8a90a0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.seed-sites-cell code {
    font-size: 11px;
    color: #9aa0b0;
}

.seed-cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #1e2230;
    color: #a8b0c0;
    font-size: 11px;
}

.seed-reason {
    color: #9aa0b0;
    font-size: 12px;
    max-width: 320px;
}

.seed-empty {
    color: #6b7180;
    font-size: 13px;
    padding: 20px 0;
    font-style: italic;
}

/* --- Badges --- */

.seed-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.seed-badge.badge-live        { background: #14301e; color: #6fdc94; }
.seed-badge.badge-dead        { background: #2a2a2a; color: #9a9a9a; }
.seed-badge.badge-clean       { background: #14301e; color: #6fdc94; }
.seed-badge.badge-dangerous   { background: #3a1c1c; color: #ff8585; }
.seed-badge.badge-possible    { background: #2a2a1a; color: #d4c47a; }
.seed-badge.badge-likely      { background: #3a2a14; color: #f0a860; }
.seed-badge.badge-confirmed   { background: #3a1c1c; color: #ff8585; }
.seed-badge.badge-match       { background: #1e2230; color: #a8b0c0; }
.seed-badge.badge-rotation    { background: #2a1e30; color: #c89ae0; }

/* --- Detail panel --- */

.seed-detail {
    margin-top: 32px;
    padding: 24px;
    background: #101218;
    border: 1px solid #232632;
    border-radius: 8px;
}

.seed-detail h2 {
    margin: 0 0 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 16px;
    color: #e6e8ee;
}

.seed-detail h3 {
    margin: 24px 0 8px;
    font-size: 13px;
    color: #8a90a0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.seed-detail-title {
    color: #a8b0c0;
    font-size: 13px;
    margin: 0 0 16px;
}

.seed-detail-meta,
.seed-detail-times {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #8a90a0;
    margin: 8px 0;
}

.seed-detail-meta strong,
.seed-detail-times strong {
    color: #6b7180;
    font-weight: 500;
}

.seed-detail-reason {
    font-size: 13px;
    color: #a8b0c0;
    margin: 12px 0;
}

.seed-detail-foot {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #1a1c24;
    font-size: 13px;
}

.seed-detail-foot a {
    color: #8fb0ff;
    text-decoration: none;
}

.seed-detail-foot a:hover {
    text-decoration: underline;
}

.seed-tech {
    margin: 0;
}

.seed-tech-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 4px;
    background: #1e2230;
    color: #a8b0c0;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.seed-fp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.seed-fp-table td {
    padding: 6px 10px 6px 0;
    border-bottom: 1px solid #1a1c24;
    vertical-align: top;
}

.seed-fp-key {
    color: #8a90a0;
    font-weight: 500;
    width: 160px;
}

.seed-fp-table code {
    font-size: 11px;
    color: #9aa0b0;
    word-break: break-all;
}

.seed-aliases {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
}

.seed-aliases li {
    padding: 4px 0;
    color: #a8b0c0;
}

.seed-aliases code {
    color: #8fb0ff;
    font-size: 11px;
}
/* ============================================================ */
/* FREE SEARCH DEMO                                             */
/* ============================================================ */

.search-demo {
    padding: 40px 0 64px;
}

.search-demo-header {
    text-align: center;
    margin-bottom: 28px;
}

.search-demo-header h1 {
    font-size: 32px;
    margin: 0 0 10px;
    color: #e6e8ee;
}

.search-demo-header .lede {
    max-width: 620px;
    margin: 0 auto;
}

.search-demo-form {
    max-width: 720px;
    margin: 0 auto 40px;
}

/* --- Mode toggle --- */

.search-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.mode-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8a90a0;
    cursor: pointer;
    user-select: none;
}

.mode-option input[type="radio"] {
    accent-color: #5b8cff;
    cursor: pointer;
}

.mode-option:hover {
    color: #e6e8ee;
}

.mode-option input[type="radio"]:checked + span {
    color: #e6e8ee;
}

/* --- Hint under the form --- */

.search-hint {
    font-size: 12px;
    color: #6b7180;
    margin-top: 10px;
    line-height: 1.5;
}

/* --- Error state --- */

.search-demo-alert {
    max-width: 720px;
    margin: 0 auto 24px;
    text-align: center;
}

/* --- Results summary --- */

.search-results-summary {
    max-width: 860px;
    margin: 0 auto 16px;
    font-size: 13px;
    color: #8a90a0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.search-results-page {
    color: #6b7180;
    font-size: 12px;
}

/* --- Results list --- */

.search-results {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 860px;
}

.search-result {
    padding: 18px 0;
    border-bottom: 1px solid #1a1c24;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result-head {
    margin-bottom: 6px;
}

.search-result-title {
    font-size: 15px;
    font-weight: 500;
    color: #e6e8ee;
    margin: 0;
    line-height: 1.35;
}

.search-result-url-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    flex-wrap: wrap;
}

.search-result-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #8fb0ff;
    background: #14161c;
    padding: 4px 8px;
    border-radius: 4px;
    word-break: break-all;
    flex: 1 1 auto;
    min-width: 0;
}

.search-result-snippet {
    font-size: 13px;
    color: #a8b0c0;
    line-height: 1.55;
    margin: 8px 0 0;
}

/* --- Paginator --- */

.search-paginator {
    max-width: 860px;
    margin: 28px auto 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.search-paginator-status {
    font-size: 13px;
    color: #8a90a0;
}

.btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Empty state --- */

.search-empty {
    max-width: 720px;
    margin: 40px auto;
    text-align: center;
    color: #8a90a0;
}

.search-empty p {
    font-size: 15px;
    margin: 0 0 8px;
    color: #cdd2de;
}

.search-empty-hint {
    font-size: 13px;
    color: #6b7180;
}

/* --- Landing intro cards --- */

.search-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 860px;
    margin: 40px auto;
}

.search-intro-card {
    background: #14161c;
    border: 1px solid #232632;
    border-radius: 8px;
    padding: 20px;
}

.search-intro-card h3 {
    font-size: 13px;
    font-weight: 600;
    color: #e6e8ee;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.search-intro-card p {
    font-size: 13px;
    color: #a8b0c0;
    line-height: 1.55;
    margin: 0;
}

/* --- Paid CTA box --- */

.search-cta {
    max-width: 860px;
    margin: 56px auto 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #1a1d28 0%, #16181f 100%);
    border: 1px solid #2a3040;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.search-cta-text {
    flex: 1 1 320px;
    min-width: 0;
}

.search-cta-text h3 {
    font-size: 17px;
    font-weight: 600;
    color: #e6e8ee;
    margin: 0 0 6px;
}

.search-cta-text p {
    font-size: 13px;
    color: #a8b0c0;
    margin: 0;
    line-height: 1.5;
}

.search-cta .btn {
    flex: 0 0 auto;
}

/* --- Responsive --- */

@media (max-width: 640px) {
    .search-demo-header h1 {
        font-size: 24px;
    }

    .search-results-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-paginator {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-cta {
        padding: 20px;
        text-align: center;
        justify-content: center;
    }

    .search-cta .btn {
        width: 100%;
    }
}
/* ============================================================ */
/* ADVANCED CONSOLE — TABBED SHELL                              */
/* ============================================================ */

.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.console-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.console-title h1 {
    margin: 0;
    font-size: 24px;
    color: #e6e8ee;
}

.console-tier-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: #1e2230;
    color: #a8b0c0;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Tab strip --- */

.console-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid #232632;
    margin: 24px 0 0;
    flex-wrap: wrap;
}

.console-tab {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 18px;
    font-size: 14px;
    font-family: inherit;
    color: #8a90a0;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: -1px;
    transition: color 0.12s ease;
}

.console-tab:hover {
    color: #e6e8ee;
}

.console-tab.active {
    color: #e6e8ee;
    border-bottom-color: #5b8cff;
}

.console-tab-link {
    /* Seed DB tab is an <a>; it navigates, doesn't toggle */
    color: #8fb0ff;
}

.console-tab-link:hover {
    color: #a8c0ff;
}

/* --- Panels --- */

.console-panel {
    display: none;
    padding: 28px 0 8px;
}

.console-panel.active {
    display: block;
}

.console-panel h2 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #e6e8ee;
}

.panel-lede {
    font-size: 13px;
    color: #8a90a0;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 720px;
}

/* --- Coming soon card --- */

.coming-soon-card {
    background: #14161c;
    border: 1px solid #232632;
    border-left: 3px solid #5b8cff;
    border-radius: 8px;
    padding: 20px 24px;
    max-width: 720px;
}

.coming-soon-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e6e8ee;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.coming-soon-card p {
    font-size: 13px;
    color: #a8b0c0;
    line-height: 1.6;
    margin: 0 0 12px;
}

.coming-soon-card p:last-child {
    margin-bottom: 0;
}

.coming-soon-hint {
    font-size: 12px;
    color: #6b7180;
    font-style: italic;
}

/* --- Responsive --- */

@media (max-width: 640px) {
    .console-header {
        align-items: flex-start;
    }

    .console-title h1 {
        font-size: 20px;
    }

    .console-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .console-panel {
        padding: 20px 0 8px;
    }
}
/* ============================================================ */
/* SCRAPE TAB                                                   */
/* ============================================================ */

.panel-hint {
    font-size: 12px;
    color: #6b7180;
    margin-top: 8px;
}

.panel-caveat {
    border-left: 2px solid #5b8cff;
    padding-left: 12px;
    margin-top: -8px;
    margin-bottom: 24px;
    color: #a8b0c0;
}

.scrape-description {
    font-size: 13px;
    color: #cdd2de;
    line-height: 1.6;
    margin: 0 0 16px;
}

.scrape-tags {
    margin: 0 0 16px;
}

.scrape-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 4px;
    background: #1e2230;
    color: #a8b0c0;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.scrape-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 0 0 16px;
}

.scrape-table td {
    padding: 6px 10px 6px 0;
    border-bottom: 1px solid #1a1c24;
    vertical-align: top;
    color: #cdd2de;
}

.scrape-table td strong {
    color: #8a90a0;
    font-weight: 500;
    display: inline-block;
    min-width: 100px;
}

.scrape-table code {
    font-size: 11px;
    color: #9aa0b0;
    word-break: break-all;
}

.scrape-content-meta {
    font-size: 12px;
    color: #6b7180;
    margin: 0 0 8px;
    font-style: italic;
}

.scrape-content {
    margin: 0 0 24px;
    background: #101218;
    border: 1px solid #232632;
    border-radius: 6px;
}

.scrape-content summary {
    padding: 10px 14px;
    cursor: pointer;
    color: #a8b0c0;
    font-size: 12px;
    list-style: none;
    user-select: none;
}

.scrape-content summary::-webkit-details-marker {
    display: none;
}

.scrape-content summary::before {
    content: "▸ ";
    color: #6b7180;
    display: inline-block;
    margin-right: 4px;
    transition: transform 0.12s ease;
}

.scrape-content[open] summary::before {
    content: "▾ ";
}

.scrape-content-pre {
    margin: 0;
    padding: 0 14px 14px;
    font-size: 12px;
    line-height: 1.55;
    color: #cdd2de;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============================================================ */
/* IDENTITY TAB                                                 */
/* ============================================================ */

.identity-caveat {
    font-size: 12px;
    color: #8a90a0;
    background: #14161c;
    border-left: 2px solid #5b8cff;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 0 0 24px;
    line-height: 1.6;
}

.identity-source {
    margin: 0 0 24px;
    padding: 16px 0;
    border-bottom: 1px solid #1a1c24;
}

.identity-source:last-of-type {
    border-bottom: none;
}

.identity-source h3 {
    font-size: 13px;
    color: #e6e8ee;
    margin: 0 0 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.identity-row {
    font-size: 13px;
    color: #cdd2de;
    margin: 6px 0;
    line-height: 1.55;
}

.identity-row code {
    font-size: 12px;
    color: #8fb0ff;
    background: #14161c;
    padding: 2px 6px;
    border-radius: 3px;
}

.identity-empty {
    font-size: 13px;
    color: #6b7180;
    font-style: italic;
    margin: 0;
}

.identity-unavailable {
    font-size: 13px;
    color: #8a6b6b;
    margin: 0;
}

.identity-unavailable code {
    color: #c89a9a;
}

/* ============================================================ */
/* SIGNUP PAGE                                                  */
/* ============================================================ */

.signup-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0 64px;
}

.signup-header {
    text-align: center;
    margin-bottom: 32px;
}

.signup-header h1 {
    font-size: 28px;
    color: #e6e8ee;
    margin: 0 0 10px;
}

.signup-alert {
    margin: 0 0 24px;
}

/* --- Feature grid --- */

.signup-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 0 0 40px;
}

.signup-feature {
    background: #14161c;
    border: 1px solid #232632;
    border-radius: 8px;
    padding: 18px 20px;
}

.signup-feature h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #e6e8ee;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.signup-feature p {
    margin: 0;
    font-size: 13px;
    color: #a8b0c0;
    line-height: 1.55;
}

/* --- Form --- */

.signup-form {
    margin: 0;
}

.form-row {
    margin: 0 0 20px;
}

.form-row label {
    display: block;
    font-size: 13px;
    color: #8a90a0;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-row label .required {
    color: #ff8585;
}

.signup-note {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.signup-terms {
    margin: 20px 0 0;
    font-size: 12px;
    color: #6b7180;
    line-height: 1.55;
}

/* --- Success state --- */

.signup-success {
    background: #101218;
    border: 1px solid #232632;
    border-left: 3px solid #4caf7d;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
}

.signup-success h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #e6e8ee;
}

.signup-success p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #a8b0c0;
    line-height: 1.6;
}

.signup-success-hint {
    font-size: 13px;
    color: #6b7180;
    font-style: italic;
    margin-bottom: 24px !important;
}

.signup-success .btn {
    margin-top: 8px;
}

/* ============================================================ */
/* RESPONSIVE                                                    */
/* ============================================================ */

@media (max-width: 640px) {
    .signup-header h1 {
        font-size: 22px;
    }

    .signup-features {
        grid-template-columns: 1fr;
    }

    .signup-success {
        padding: 24px 20px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
    }
}
/* ============================================================ */
/* WALLET FOOTPRINT                                             */
/* ============================================================ */

.footprint-caveat {
    font-size: 12px;
    color: #8a90a0;
    background: #14161c;
    border-left: 2px solid #5b8cff;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 0 0 20px;
    line-height: 1.6;
}

/* --- Source availability chips --- */

.footprint-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 28px;
}

.footprint-source-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footprint-source-ok {
    background: #14301e;
    color: #6fdc94;
}

.footprint-source-off {
    background: #2a2a2a;
    color: #9a9a9a;
    cursor: help;
}

/* --- Groups --- */

.footprint-group {
    margin: 0 0 32px;
}

.footprint-group-head {
    font-size: 13px;
    font-weight: 600;
    color: #e6e8ee;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #232632;
}

.footprint-group-count {
    color: #6b7180;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

/* --- Entry --- */

.footprint-entry {
    padding: 14px 0;
    border-bottom: 1px solid #1a1c24;
}

.footprint-entry:last-child {
    border-bottom: none;
}

/* Extracted text — italic, primary content */
.footprint-text {
    font-style: italic;
    font-size: 14px;
    color: #cdd2de;
    line-height: 1.6;
    margin: 0 0 6px;
    word-break: break-word;
}

/* Source line — italic, smaller, muted */
.footprint-source-line {
    font-style: italic;
    font-size: 12px;
    color: #6b7180;
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
}

.footprint-ts {
    color: #5a606e;
}

.footprint-link {
    font-style: italic;
    color: #8fb0ff;
    text-decoration: none;
    margin-left: 4px;
}

.footprint-link:hover {
    text-decoration: underline;
}

/* Per-entry caveat — smaller, faded, non-italic */
.footprint-entry-caveat {
    font-size: 11px;
    color: #8a90a0;
    line-height: 1.5;
    margin: 8px 0 0;
    padding-left: 8px;
    border-left: 1px solid #2a2a2a;
}

/* --- Responsive --- */

@media (max-width: 640px) {
    .footprint-text {
        font-size: 13px;
    }

    .footprint-source-line {
        font-size: 11px;
    }

    .footprint-group {
        margin-bottom: 24px;
    }
}
/* Multi-line entries (GitHub/GitLab issues) render title and body
   as separate lines instead of a collapsed paragraph. */
.footprint-text {
    white-space: pre-line;
}