:root {
    --bg: #09111f;
    --panel: #0d1626;
    --panel-soft: #111d30;
    --ink: #edf3fb;
    --muted: #9fb0c6;
    --faint: #6f8199;
    --line: rgba(154, 174, 202, 0.24);
    --blue: #38bdf8;
    --blue-strong: #0ea5e9;
	--purple: #6366f1;
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
    --shadow: 0 18px 45px rgba(3, 7, 18, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: var(--ink);
}

a {
    color: inherit;
}

.page {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    margin-bottom: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
	background: radial-gradient(circle at 30% 30%, #38bdf8, #0ea5e9 40%, #1d4ed8);
    color: #0b1120;
    font-weight: 700;
    font-size: 18px;
}

.brand-name,
.brand-tagline {
    display: block;
}

.brand-name {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-tagline {
    margin-top: 1px;
    color: var(--muted);
    font-size: 11px;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav a,
.btn,
.btn-primary,
.btn-outline,
.btn-ghost {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    gap: 6px;
}

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

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
}

.site-nav .nav-cta,
.btn-primary {
    color: #0b1120;
    background: linear-gradient(135deg, var(--blue), var(--blue-strong), var(--purple));
    border: none;
    border-radius: 999px;
	box-shadow: 0 10px 25px rgba(37,99,235,0.55), 0 0 0 1px rgba(15,23,42,0.9);
}

.btn-primary:disabled {
    opacity: 0.72;
    cursor: wait;
}

.btn-outline,
.btn-ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
}

.hero {
    display: block;
    padding: 0 0 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.eyebrow {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-title,
.page-title {
    max-width: 680px;
    margin: 8px 0 10px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
}

.hero-subtitle,
.lead,
.subtitle {
    max-width: 560px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.hero-proof {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.proof-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.proof-item strong {
    color: var(--ink);
}

.tool-panel,
.card,
.plan,
.dashboard-panel,
.auth-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 55%),
                radial-gradient(circle at bottom right, rgba(59,130,246,0.18), transparent 60%),
                #020617;
    box-shadow: 0 18px 45px rgba(15,23,42,0.9), 0 0 0 1px rgba(15,23,42,0.9);
}

.tool-panel {
    padding: 20px 18px 18px;
}

.tool-label {
    margin-bottom: 10px;
    color: var(--faint);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.input-prefix {
    position: absolute;
    top: 50%;
    left: 11px;
    transform: translateY(-50%);
    color: var(--faint);
    font-size: 12px;
    line-height: 1;
}

.url-input,
.form-control {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    border: 1px solid rgba(148,163,184,0.6);
    border-radius: 999px;
    outline: none;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    box-shadow: none;
}

.url-input {
    padding-left: 40px;
}

.url-input::placeholder,
.form-control::placeholder {
    color: #6b7280;
    opacity: 1;
}

.url-input:focus,
.form-control:focus {
    border-color: #38bdf8;
    background: #020617;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.5);
}

.url-input:-webkit-autofill,
.form-control:-webkit-autofill,
.url-input:-webkit-autofill:hover,
.form-control:-webkit-autofill:hover,
.url-input:-webkit-autofill:focus,
.form-control:-webkit-autofill:focus {
    border-color: rgba(148,163,184,0.6);
    -webkit-text-fill-color: #e5e7eb;
    caret-color: #e5e7eb;
    box-shadow: 0 0 0 1000px rgba(15,23,42,0.95) inset;
    transition: background-color 9999s ease-out;
}

.url-input:autofill,
.form-control:autofill {
    background: rgba(15,23,42,0.95);
    color: #e5e7eb;
}

#check_btn {
    min-height: 42px;
    padding: 11px 18px;
    font-size: 14px;
}

.tool-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.credit-pill {
    padding: 5px 8px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 8px;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.08);
}

.tool-alert {
    display: none;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(239, 68, 68, 0.38);
    border-radius: 8px;
    background: rgba(127, 29, 29, 0.36);
    color: #fee2e2;
}

.tool-alert.is-upgrade {
    border-color: rgba(56, 189, 248, 0.42);
    background: rgba(8, 47, 73, 0.5);
    color: #dff6ff;
}

.tool-alert.is-cooldown {
    border-color: rgba(234, 179, 8, 0.42);
    background: rgba(113, 63, 18, 0.38);
    color: #fef3c7;
}

.tool-alert.is-visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tool-alert-title {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-weight: 800;
}

.is-hidden {
    display: none !important;
}

.results {
    display: none;
    margin-top: 22px;
}

.results-header,
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.results-title {
    font-weight: 800;
}

.results-meta {
    color: var(--muted);
    font-size: 13px;
}

.timeline {
    position: relative;
    margin-top: 14px;
    padding-left: 22px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(56, 189, 248, 0.65), rgba(148, 163, 184, 0.2));
}

.hop {
    position: relative;
    padding: 8px 0 10px 10px;
}

.hop-dot {
    position: absolute;
    left: -20px;
    top: 13px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid #020617;
}

.hop-dot.status-2xx {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
}

.hop-dot.status-3xx {
    background: var(--yellow);
    box-shadow: 0 0 0 3px rgba(234,179,8,0.25);
}

.hop-dot.status-loop {
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.3);
}

.hop-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.hop-url,
.hop-arrow,
.final-url-value {
    overflow-wrap: anywhere;
}

.hop-url {
    color: var(--ink);
    font-size: 13px;
}

.hop-status {
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
}

.hop-arrow,
.hint,
.final-url-label {
    color: var(--muted);
    font-size: 13px;
}

.hint {
    margin-top: 12px;
}

.final-url-box {
    display: none;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.final-url-box.is-report-visible {
    display: block;
}

.final-url-value {
    margin-top: 4px;
    color: var(--blue);
    font-size: 13px;
}

.share-box {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 8px;
    background: rgba(8, 47, 73, 0.28);
}

.share-link,
.report-url {
    display: block;
    margin-top: 4px;
    color: var(--blue);
    font-size: 13px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.report-meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.brand-form,
.client-report-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.brand-form label,
.client-report-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.client-report-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
    align-items: end;
}

.revoke-report-form {
    margin-top: 12px;
}

.share-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(56, 189, 248, 0.26);
    border-radius: 8px;
    background: rgba(8, 47, 73, 0.22);
}

.share-box span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 12px;
}

.client-report-actions {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(154, 174, 202, 0.14);
}

.report-issued-panel {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 8px;
    background: rgba(20, 83, 45, 0.16);
}

.report-issued-panel strong {
    color: #bbf7d0;
    font-size: 13px;
}

.report-issued-panel span {
    color: var(--muted);
    font-size: 12px;
}

.client-report-page {
    background: #09111f;
}

.client-report-shell {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
}

.client-report-hero,
.client-report-card,
.client-report-metric {
    border: 1px solid rgba(154, 174, 202, 0.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.88);
}

.client-report-hero {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: 24px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.client-report-hero h1,
.client-report-card h1,
.client-report-card h2 {
    margin: 0 0 10px;
    color: var(--ink);
    letter-spacing: 0;
}

.client-report-hero h1 {
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1;
}

.client-report-hero p,
.client-report-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.client-report-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-report-brand img,
.client-report-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.client-report-brand img {
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
}

.client-report-mark {
    display: grid;
    place-items: center;
    background: var(--client-accent, var(--blue));
    color: #07111f;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.client-report-brand strong,
.client-report-brand span {
    display: block;
}

.client-report-brand strong {
    color: var(--ink);
    font-size: 16px;
}

.client-report-brand span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.client-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.client-report-meta span {
    padding: 7px 9px;
    border: 1px solid rgba(154, 174, 202, 0.18);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
}

.client-report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.client-report-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
}

.client-report-card {
    margin-top: 16px;
    padding: 22px;
}

.client-report-metric {
    padding: 18px;
    border-top: 3px solid var(--client-accent, var(--blue));
}

.client-report-metric span,
.client-report-metric strong {
    display: block;
}

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

.client-report-metric strong {
    margin-top: 5px;
    color: var(--ink);
    font-size: 28px;
}

.client-report-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(154, 174, 202, 0.16);
}

.client-report-mini span {
    color: var(--muted);
    font-size: 12px;
}

.client-report-mini strong {
    color: var(--ink);
}

.client-report-issues {
    display: grid;
    gap: 10px;
}

.client-report-issues article {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(154, 174, 202, 0.16);
    border-left: 3px solid var(--client-accent, var(--blue));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.client-report-issues strong,
.client-report-issues span,
.client-report-issues em {
    display: block;
}

.client-report-issues strong {
    color: var(--ink);
    font-size: 14px;
}

.client-report-issues span,
.client-report-issues em {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.client-report-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 18px 4px;
    color: var(--muted);
    font-size: 12px;
}

.polling-status {
    display: none;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.section-band {
    margin-top: 34px;
    padding: 46px 0;
    border-top: 1px solid rgba(154, 174, 202, 0.14);
}

.section-header {
    max-width: 740px;
    margin-bottom: 24px;
}

.section-header.with-actions {
    display: flex;
    max-width: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.section-actions,
.panel-actions,
.pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-form {
    margin: 0;
}

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

.panel-note,
.plan-note,
.section-link {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.plan-note {
    margin-top: 12px;
}

.plan > .btn-primary,
.plan > .btn-outline {
    margin-top: 18px;
}

.section-link {
    margin-top: 12px;
}

.section-link a,
.panel-note a {
    color: var(--blue);
    text-decoration: none;
}

.pagination {
    justify-content: center;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

.section-header h2,
.dashboard-section-title {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.feature-grid,
.use-case-grid,
.dashboard-grid,
.plans,
.legal-grid {
    display: grid;
    gap: 16px;
}

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

.use-case-grid,
.dashboard-grid,
.plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature-card,
.use-case,
.dashboard-panel,
.plan {
    padding: 20px;
}

.empty-state,
.recent-item,
.token-box {
    border: 1px solid rgba(154, 174, 202, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.empty-state {
    padding: 18px;
    color: var(--muted);
}

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

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

.job-item {
    padding: 16px;
    border: 1px solid rgba(154, 174, 202, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.job-target-card {
    display: grid;
    gap: 12px;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 8px;
    background: rgba(8, 47, 73, 0.18);
}

.job-target-header {
    display: grid;
    gap: 4px;
}

.job-target-header span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.job-target-header strong {
    color: var(--ink);
    font-size: 18px;
}

.job-target-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.job-target-meta div,
.job-summary-grid span {
    min-width: 0;
}

.job-target-meta dt,
.job-summary-grid strong {
    display: block;
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.job-target-meta dd {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.job-target-meta a,
.job-summary-grid a {
    color: var(--blue);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.job-main,
.job-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.job-main strong,
.job-main span {
    display: block;
}

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

.job-main span,
.job-meta,
.job-note,
.job-error {
    color: var(--muted);
    font-size: 12px;
}

.job-status {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
}

.job-status.is-done {
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
    background: rgba(20, 83, 45, 0.22);
}

.job-status.is-failed {
    border-color: rgba(239, 68, 68, 0.38);
    color: #fecaca;
    background: rgba(127, 29, 29, 0.26);
}

.job-summary-grid {
    display: grid;
    grid-template-columns: minmax(120px, 0.7fr) minmax(150px, 1.1fr) minmax(140px, 0.9fr);
    gap: 10px;
    margin: 12px 0;
    color: var(--muted);
    font-size: 12px;
}

.report-issued-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-right: 6px;
    padding: 3px 7px;
    border: 1px solid rgba(34, 197, 94, 0.34);
    border-radius: 999px;
    background: rgba(20, 83, 45, 0.2);
    color: #bbf7d0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.report-action-hint {
    display: inline-block;
    margin-right: 6px;
    color: var(--muted);
}

.job-progress {
    overflow: hidden;
    height: 8px;
    margin: 12px 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.job-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--blue), var(--green));
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}

.status-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.status-cell {
    padding: 10px;
    border: 1px solid rgba(154, 174, 202, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.status-cell-warning {
    border-color: rgba(251, 191, 36, 0.26);
    background: rgba(120, 83, 19, 0.14);
}

.status-cell strong,
.status-cell span {
    display: block;
}

.status-cell strong {
    color: var(--ink);
    font-size: 18px;
}

.status-cell span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.panel-subtitle {
    margin: 20px 0 8px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.3;
}

.failed-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 8px;
    background: rgba(127, 29, 29, 0.18);
}

.failed-list strong,
.failed-list span,
.failed-list em {
    display: block;
}

.failed-list strong {
    color: #fee2e2;
    font-size: 13px;
}

.failed-list span {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 12px;
}

.failed-list em {
    margin-top: 2px;
    color: #fecaca;
    font-size: 12px;
    font-style: normal;
}

.job-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.job-actions a,
.empty-state a {
    color: var(--blue);
    text-decoration: none;
}

.job-error {
    margin-top: 10px;
    color: #fecaca;
}

.job-note {
    margin-top: 10px;
}

.legal-content {
    max-width: 920px;
}

.legal-card {
    border: 1px solid rgba(154, 174, 202, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    padding: 24px;
}

.legal-card h2,
.legal-card h3 {
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: 0;
}

.legal-card h2 {
    margin: 28px 0 10px;
    font-size: 22px;
}

.legal-card h2:first-child,
.legal-card h3:first-child {
    margin-top: 0;
}

.legal-card h3 {
    margin: 22px 0 8px;
    font-size: 17px;
}

.legal-card p,
.legal-list {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.legal-card p {
    margin: 0 0 14px;
}

.legal-card a {
    color: var(--blue);
    text-decoration: none;
}

.legal-list {
    margin: 0 0 18px;
    padding-left: 20px;
}

.legal-list li + li {
    margin-top: 8px;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 14px 0 20px;
}

.legal-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    color: var(--muted);
    font-size: 13px;
}

.legal-table th,
.legal-table td {
    border: 1px solid rgba(154, 174, 202, 0.18);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.045);
}

.recent-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    color: var(--muted);
}

.recent-item strong,
.recent-item span {
    display: block;
    overflow-wrap: anywhere;
}

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

.recent-item span,
.recent-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.token-box {
    margin-top: 12px;
    padding: 12px;
    color: #bae6fd;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.code-block {
    overflow-x: auto;
    margin: 14px 0 0;
    padding: 13px;
    border: 1px solid rgba(154, 174, 202, 0.18);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.78);
    color: #c7d2fe;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.code-block code {
    font: inherit;
}

.api-doc-grid,
.playground-layout {
    display: grid;
    gap: 16px;
}

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

.playground-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    margin-top: 18px;
}

.endpoint-card {
    padding: 18px;
    border: 1px solid rgba(154, 174, 202, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.endpoint-card h2,
.endpoint-card h3 {
    margin: 0 0 8px;
    color: var(--ink);
}

.endpoint-card h2 {
    font-size: 20px;
}

.endpoint-card h3 {
    font-size: 16px;
}

.endpoint-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.endpoint-card p + .panel-note {
    margin-top: 12px;
}

.endpoint-card p code,
.dashboard-panel p code {
    padding: 1px 5px;
    border: 1px solid rgba(154, 174, 202, 0.18);
    border-radius: 6px;
    background: rgba(2, 6, 23, 0.58);
    color: #bae6fd;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
}

.endpoint-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.endpoint-line code {
    color: #bae6fd;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
    font-size: 12px;
    font-weight: 800;
}

.api-request-preview {
    margin-top: 20px;
}

.playground-status {
    margin-top: 14px;
    color: #bbf7d0;
    font-size: 13px;
    font-weight: 700;
}

.playground-status.is-error {
    color: #fecaca;
}

.playground-output {
    min-height: 260px;
}

.feature-card,
.use-case {
    border: 1px solid rgba(154, 174, 202, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.feature-card h3,
.use-case h3,
.dashboard-panel h2,
.plan h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.feature-card p,
.use-case p,
.dashboard-panel p,
.plan p,
.desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.metric {
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.metric strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 24px;
}

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

.premium-bar-wrapper {
    position: fixed;
    right: 0;
    bottom: 16px;
    left: 0;
    z-index: 20;
    pointer-events: none;
}

.premium-bar {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 17, 31, 0.96);
    box-shadow: var(--shadow);
    pointer-events: auto;
}

.premium-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
}

.premium-inner strong {
    color: var(--ink);
}

.rate-limit-notice {
    display: none;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(56, 189, 248, 0.42);
    border-radius: 8px;
    background: rgba(8, 47, 73, 0.95);
    color: #dff6ff;
    font-size: 13px;
    pointer-events: auto;
}

.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 16px;
    left: 0;
    z-index: 40;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cookie-consent.is-hiding {
    opacity: 0;
    transform: translateY(8px);
}

.cookie-consent-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 8px;
    background: rgba(9, 17, 31, 0.96);
    box-shadow: var(--shadow);
    color: var(--muted);
    pointer-events: auto;
    backdrop-filter: blur(12px);
}

.cookie-consent-copy {
    min-width: 0;
}

.cookie-consent-copy span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.cookie-consent-copy strong {
    color: var(--ink);
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.cookie-consent-link,
.cookie-consent-accept {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.cookie-consent-link {
    border: 1px solid rgba(154, 174, 202, 0.22);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.cookie-consent-accept {
    border: 0;
    color: #082f49;
    background: #7dd3fc;
    cursor: pointer;
}

.rate-limit-notice.is-cooldown {
    border-color: rgba(234, 179, 8, 0.42);
    background: rgba(113, 63, 18, 0.95);
    color: #fef3c7;
}

.rate-limit-notice.is-error {
    border-color: rgba(239, 68, 68, 0.38);
    background: rgba(127, 29, 29, 0.9);
    color: #fee2e2;
}

.rate-limit-notice.is-visible {
    display: block;
}

.auth-wrap {
    max-width: 430px;
    margin: 24px auto 0;
}

.auth-card {
    padding: 24px;
}

.auth-card h1,
.dashboard-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
}

.form-group {
    margin-top: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 72px;
}

.password-toggle {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 50%;
    right: 6px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(148,163,184,0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--ink);
    border-color: rgba(56, 189, 248, 0.5);
    outline: none;
}

.form-help {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.form-error,
.form-success {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
}

.form-error {
    border: 1px solid rgba(239, 68, 68, 0.38);
    background: rgba(127, 29, 29, 0.36);
    color: #fee2e2;
}

.form-success {
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(20, 83, 45, 0.32);
    color: #bbf7d0;
}

.switch {
    margin-top: 18px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.switch a {
    color: var(--blue);
    text-decoration: none;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 22px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(56, 189, 248, 0.36);
    border-radius: 8px;
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.08);
    font-size: 13px;
    font-weight: 800;
    text-transform: capitalize;
}

.account-status {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.status-note {
    color: var(--muted);
    font-size: 12px;
    text-transform: capitalize;
}

.task-list,
.features {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.task-list li,
.features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.task-list li::before,
.features li::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--blue);
}

.features li.is-muted::before {
    background: var(--faint);
}

.features li.is-muted {
    color: var(--faint);
}

.sitemap-list a,
.sitemap-list span span {
    display: block;
}

.sitemap-list a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 800;
}

.sitemap-list span span {
    margin-top: 3px;
    font-size: 12px;
}

.price {
    margin: 12px 0;
    font-size: 34px;
    font-weight: 800;
}

.plan.is-featured {
    border-color: rgba(56, 189, 248, 0.65);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid rgba(154, 174, 202, 0.14);
    color: var(--faint);
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

@media (max-width: 820px) {
    .site-header,
    .hero,
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero-proof,
    .premium-bar-wrapper {
        display: none;
    }

    .input-row,
    .feature-grid,
    .use-case-grid,
    .api-doc-grid,
    .playground-layout,
    .client-report-form,
    .client-report-hero,
    .client-report-grid,
    .client-report-grid-compact,
    .job-target-meta,
    .job-summary-grid,
    .status-grid,
    .dashboard-grid,
    .legal-grid,
    .plans,
    .metric-strip {
        grid-template-columns: 1fr;
    }

    .input-row {
        align-items: stretch;
        flex-direction: column;
    }

    #check_btn {
        width: 100%;
    }

    .tool-alert.is-visible,
    .share-box,
    .client-report-footer,
    .job-target-meta,
    .job-summary-grid,
    .job-main,
    .job-meta,
    .section-header.with-actions,
    .premium-inner,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .job-actions {
        justify-content: flex-start;
    }

    .cookie-consent {
        bottom: 12px;
    }

    .cookie-consent-bar {
        align-items: stretch;
        flex-direction: column;
        width: min(960px, calc(100% - 24px));
        gap: 11px;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        width: 100%;
    }

    .client-report-shell {
        padding: 24px 0;
    }
}
