/* =============================================================================
 * websurely.com — "magicui" theme
 *
 * Plain-CSS take on the MagicUI look: dark-first, grid + glow backgrounds,
 * shimmer buttons, border-beam cards, gradient text, marquee, tickers.
 *
 * Sections
 *   1. Tokens (dark default, light via html[data-mode="light"])
 *   2. Base & typography
 *   3. Layout shell (header, nav, footer, containers)
 *   4. Magic effects (grid, glow, gradient text, shimmer, beam, marquee)
 *   5. Components (buttons, forms, cards, badges, chips, tables, alerts,
 *      accordion, modal, popover, pagination, tabs, stars)
 *   6. Page parts (hero, scan box, stats, report page, risk bar, score ring)
 *   7. Utilities & responsive
 * ========================================================================== */

/* 1. Tokens ----------------------------------------------------------------- */
:root {
    --bg: #07070b;
    --bg-2: #0c0c13;
    --surface: #111119;
    --surface-2: #16161f;
    --surface-3: #1d1d28;
    --border: #23232f;
    --border-strong: #33334a;
    --text: #ededf2;
    --text-2: #b4b4c3;
    --muted: #7d7d92;
    --accent: #8b5cf6;
    --accent-2: #22d3ee;
    --accent-3: #f472b6;
    --accent-soft: rgba(139, 92, 246, .14);
    --ring: rgba(139, 92, 246, .45);

    --low: #22c55e;
    --uncertain: #eab308;
    --suspicious: #f97316;
    --high: #ef4444;
    --verified: #3b82f6;
    --unknown: #6b7280;

    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 22px;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -24px rgba(0,0,0,.8);
    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --container: 1180px;
    color-scheme: dark;
}

html[data-mode="light"] {
    --bg: #fafafc;
    --bg-2: #f3f3f8;
    --surface: #ffffff;
    --surface-2: #f6f6fa;
    --surface-3: #ececf3;
    --border: #e4e4ee;
    --border-strong: #cfcfde;
    --text: #12121a;
    --text-2: #3d3d4d;
    --muted: #6b6b80;
    --accent-soft: rgba(139, 92, 246, .10);
    --shadow: 0 1px 2px rgba(16,16,32,.04), 0 12px 32px -18px rgba(16,16,32,.25);
    color-scheme: light;
}

/* 2. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-3); padding: .12em .4em; border-radius: 6px; }
pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; overflow: auto; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* 3. Layout shell ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }
.container--mid { max-width: 960px; }
.layout__main { flex: 1; width: 100%; }
.section { padding: 64px 0; }
.section--tight { padding: 36px 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section__title { margin: 0; }
.section__lead { color: var(--text-2); margin: .25rem 0 0; max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1.25rem; height: 64px; }
.nav__brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.12rem; color: var(--text); letter-spacing: -.03em; }
.nav__brand:hover { text-decoration: none; }
.nav__brand b { color: var(--accent); font-weight: 800; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.nav__list { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav__link { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 999px; color: var(--text-2); font-size: .92rem; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav__form { margin: 0; }
.nav__toggle { display: none; margin-left: auto; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.mode-toggle { width: 36px; height: 36px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); cursor: pointer; }
.mode-toggle:hover { color: var(--text); }
.mode-toggle .icon-sun { display: none; }
html[data-mode="light"] .mode-toggle .icon-sun { display: block; }
html[data-mode="light"] .mode-toggle .icon-moon { display: none; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 48px 0 28px; margin-top: 64px; color: var(--text-2); font-size: .92rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.site-footer__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .75rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
.site-footer__disclaimer { max-width: 70ch; color: var(--muted); font-size: .84rem; }

/* 4. Magic effects ---------------------------------------------------------- */
.bg-grid {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    animation: grid-pan 30s linear infinite;
}
@keyframes grid-pan { to { background-position: 44px 44px; } }
.bg-dots {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.glow {
    position: absolute; pointer-events: none; z-index: 0; filter: blur(80px); opacity: .55; border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
    width: 620px; height: 420px; left: 50%; top: -180px; transform: translateX(-50%);
    animation: glow-pulse 8s ease-in-out infinite;
}
.glow--cyan { background: radial-gradient(circle, var(--accent-2) 0%, transparent 65%); width: 380px; height: 300px; left: 15%; top: 40px; opacity: .25; animation-delay: -3s; }
.glow--pink { background: radial-gradient(circle, var(--accent-3) 0%, transparent 65%); width: 360px; height: 300px; left: 85%; top: 60px; opacity: .2; animation-delay: -5s; }
@keyframes glow-pulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.12); } }
html[data-mode="light"] .glow { opacity: .22; }

.text-gradient {
    background: linear-gradient(90deg, #fff 0%, #c4b5fd 30%, var(--accent-2) 55%, #f0abfc 75%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: gradient-shift 8s linear infinite;
}
html[data-mode="light"] .text-gradient { background-image: linear-gradient(90deg, #4c1d95, var(--accent), #0891b2, #be185d, #4c1d95); background-size: 200% auto; }
@keyframes gradient-shift { to { background-position: 200% center; } }

.shiny-text {
    color: color-mix(in srgb, var(--text) 60%, transparent);
    background: linear-gradient(110deg, transparent 35%, var(--text) 50%, transparent 65%) 0 0 / 250% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text;
    animation: shiny 3.2s linear infinite;
}
@keyframes shiny { from { background-position: 150% 0; } to { background-position: -150% 0; } }

.badge-pill {
    display: inline-flex; align-items: center; gap: .5rem; padding: .32rem .8rem .32rem .4rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); font-size: .82rem; color: var(--text-2);
}
.badge-pill__dot { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .08rem .55rem; font-weight: 600; font-size: .75rem; }

/* Border beam: a light that runs around the card edge. */
.beam { position: relative; isolation: isolate; }
.beam::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
    background: conic-gradient(from var(--beam-angle, 0deg), transparent 0 70%, var(--accent-2) 80%, var(--accent) 88%, var(--accent-3) 94%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: beam-spin 6s linear infinite;
}
@property --beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes beam-spin { to { --beam-angle: 360deg; } }

.marquee { display: flex; overflow: hidden; gap: 1rem; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex: none; gap: 1rem; min-width: 100%; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 1rem)); } }

.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* 5. Components ------------------------------------------------------------- */
.btn {
    --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-border: var(--border);
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 42px; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--btn-border);
    background: var(--btn-bg); color: var(--btn-fg); font: 600 .92rem/1.2 var(--font); cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: not-allowed; transform: none; }
.btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; --btn-border: transparent; box-shadow: 0 8px 24px -10px var(--accent); }
.btn--primary:hover { --btn-bg: #7c4ff0; }
.btn--ghost { --btn-bg: transparent; }
.btn--danger { --btn-bg: color-mix(in srgb, var(--high) 16%, transparent); --btn-fg: #fca5a5; --btn-border: color-mix(in srgb, var(--high) 35%, transparent); }
html[data-mode="light"] .btn--danger { --btn-fg: #b91c1c; }
.btn--sm { min-height: 32px; padding: .3rem .75rem; font-size: .82rem; }
.btn--lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1rem; }
.btn--link { --btn-bg: none; --btn-border: transparent; padding: 0; min-height: 0; color: var(--accent); }
.btn--block { width: 100%; }

/* Shimmer button: the MagicUI signature CTA. */
.btn--shimmer {
    position: relative; overflow: hidden; color: #fff; border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, #8b5cf6, #6d28d9); box-shadow: 0 0 0 1px rgba(139,92,246,.4), 0 10px 30px -10px rgba(139,92,246,.9);
}
.btn--shimmer::after {
    content: ''; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    animation: shimmer 2.8s ease-in-out infinite;
}
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field__label { font-size: .86rem; font-weight: 600; color: var(--text-2); }
.field__hint { font-size: .8rem; color: var(--muted); }
.field__error { font-size: .82rem; color: var(--high); }
.field__input, .input, select.field__input, textarea.field__input {
    width: 100%; min-height: 44px; padding: .6rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--bg-2); color: var(--text); font: 400 .95rem/1.4 var(--font); transition: border-color .15s, box-shadow .15s;
}
textarea.field__input { min-height: 120px; resize: vertical; }
.field__input:focus, .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.field__input::placeholder { color: var(--muted); }
.field--row { grid-template-columns: 1fr 1fr; gap: 1rem; display: grid; }
.field__count { justify-self: end; font-size: .78rem; color: var(--muted); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; color: var(--text-2); }
.check input { margin-top: .3rem; accent-color: var(--accent); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.actions__form { margin: 0; }
.links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; margin-top: 1.25rem; }
.captcha { min-height: 65px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); position: relative; }
.card--flush { padding: 0; overflow: hidden; }
.card--glass { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.card--auth { width: 100%; max-width: 440px; }
.card__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .9rem; display: flex; align-items: center; gap: .5rem; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card__head h2, .card__head h3 { margin: 0; font-size: 1.02rem; }
.card__body { padding: 1.25rem; }
.card__brand { display: inline-flex; gap: .5rem; align-items: center; font-weight: 800; color: var(--text); margin-bottom: 1.25rem; font-size: 1.1rem; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

/* Risk badges */
.badge {
    --c: var(--unknown);
    display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .62rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
    color: color-mix(in srgb, var(--c) 85%, var(--text)); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); white-space: nowrap;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.badge--plain::before { display: none; }
.badge--low { --c: var(--low); }
.badge--uncertain { --c: var(--uncertain); }
.badge--suspicious { --c: var(--suspicious); }
.badge--high { --c: var(--high); }
.badge--verified { --c: var(--verified); }
.badge--unknown { --c: var(--unknown); }
.badge--accent { --c: var(--accent); }
.badge--beta { --c: var(--accent-2); font-size: .66rem; padding: .1rem .45rem; letter-spacing: .06em; }
.badge--beta::before { display: none; }
.score-pill { display: inline-flex; align-items: center; gap: .45rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.score-pill__num { min-width: 2ch; text-align: right; }

.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .7rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th a { color: inherit; }
.table th a[aria-sort]::after { content: ' ↓'; }
.table th a[aria-sort="ascending"]::after { content: ' ↑'; }
.domain-cell { display: flex; align-items: center; gap: .6rem; min-width: 0; font-weight: 600; color: var(--text); }
.domain-cell img { width: 18px; height: 18px; border-radius: 4px; flex: none; background: var(--surface-3); }
.domain-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.empty { padding: 2rem; text-align: center; color: var(--muted); }

/* Alerts */
.alerts { display: grid; gap: .6rem; margin: 1rem 0; }
.alert { --c: var(--accent); padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 10%, var(--surface)); color: var(--text); font-size: .92rem; }
.alert--success { --c: var(--low); }
.alert--warning { --c: var(--uncertain); }
.alert--danger { --c: var(--high); }
.alert--info { --c: var(--verified); }
.layout--default .alerts, .layout--app .alerts { max-width: var(--container); margin: 1rem auto 0; padding: 0 20px; }

/* Accordion */
.accordion { display: grid; gap: .6rem; }
.accordion details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.accordion summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding: 0 1.2rem 1.1rem; color: var(--text-2); }

/* Modal (native <dialog>) */
dialog.modal { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 0; width: min(560px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
dialog.modal::backdrop { background: rgba(5,5,10,.65); backdrop-filter: blur(4px); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.modal__head h2 { margin: 0; font-size: 1.05rem; }
.modal__body { padding: 1.25rem; }
.modal__close { background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }

/* Popover (native popover attribute) */
[popover].popover { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: .9rem 1rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); font-size: .85rem; max-width: 300px; margin: 0; inset: auto; }
.popover dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: 0; }
.popover dt { color: var(--muted); }
.popover dd { margin: 0; text-align: right; }

/* Pagination */
.pagination { display: flex; gap: .35rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 .7rem; border-radius: 10px; border: 1px solid var(--border); color: var(--text-2); background: var(--surface); font-size: .88rem; }
.pagination a:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); }
.pagination [aria-current="page"] { background: var(--accent); color: #fff; border-color: transparent; }

/* Tabs */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .6rem .9rem; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; font-size: .92rem; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-color: var(--accent); }

/* Stars */
.stars { display: inline-flex; gap: 2px; color: #facc15; font-size: 1rem; letter-spacing: 1px; }
.stars .off { color: var(--surface-3); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.9rem; color: var(--surface-3); cursor: pointer; transition: color .1s, transform .1s; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #facc15; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }

/* 6. Page parts ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 56px; text-align: center; }
.hero > .container { position: relative; z-index: 1; }
.hero__title { margin: 1rem auto .8rem; max-width: 15ch; }
.hero__lead { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 62ch; margin: 0 auto 2rem; }
.hero__note { margin-top: .9rem; font-size: .86rem; color: var(--muted); }

.scanbox { max-width: 720px; margin: 0 auto; }
.scanbox__form { display: flex; gap: .5rem; padding: .45rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 20px 60px -25px rgba(139, 92, 246, .55); }
.scanbox__form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring), 0 20px 60px -25px rgba(139, 92, 246, .7); }
.scanbox__icon { display: grid; place-items: center; padding-left: .8rem; color: var(--muted); }
.scanbox__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 500 1.05rem var(--font); padding: .6rem .4rem; }
.scanbox__input:focus { outline: none; }
.scanbox__captcha { display: flex; justify-content: center; margin-top: .9rem; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.6rem; }
.stat { padding: 1.1rem 1.2rem; text-align: left; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); border-radius: var(--radius); }
.stat__value { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: .82rem; }
.stat--danger .stat__value { color: var(--high); }

.scan-card { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); min-width: 250px; }
.scan-card__domain { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18ch; }

.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 2.6rem; background: radial-gradient(circle at 20% 0%, rgba(139,92,246,.35), transparent 50%), radial-gradient(circle at 90% 100%, rgba(34,211,238,.22), transparent 55%), var(--surface); border: 1px solid var(--border); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta h2 { margin-bottom: .4rem; }

.post-card { display: flex; flex-direction: column; gap: .5rem; height: 100%; color: var(--text); }
.post-card:hover { text-decoration: none; border-color: var(--border-strong); }
.post-card__meta { font-size: .8rem; color: var(--muted); }
.post-card__title { font-size: 1.08rem; font-weight: 700; margin: 0; }
.post-card__excerpt { color: var(--text-2); font-size: .92rem; margin: 0; }

.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.75; }
.prose h2, .prose h3 { color: var(--text); margin-top: 2rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose blockquote { margin: 1.2rem 0; padding: .6rem 1.2rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose img { border-radius: var(--radius-sm); }
.prose strong { color: var(--text); }

/* Report page */
.report-head { position: relative; overflow: hidden; padding: 48px 0 28px; border-bottom: 1px solid var(--border); }
.report-head > .container { position: relative; z-index: 1; }
.report-head__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.report-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .2rem; word-break: break-word; }
.report-head h2 { font-size: 1.05rem; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.favicon-lg { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); padding: 6px; }

.riskbar { position: relative; margin: 1.4rem 0 .4rem; }
.riskbar__track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--low) 0%, var(--low) 24%, var(--uncertain) 36%, var(--uncertain) 46%, var(--suspicious) 56%, var(--suspicious) 66%, var(--high) 76%, var(--high) 100%); opacity: .9; }
.riskbar__marker { position: absolute; top: -7px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 70%, transparent), 0 4px 14px rgba(0,0,0,.5); transition: left 1.2s cubic-bezier(.2,.8,.2,1); }
.riskbar__labels { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: .55rem; }

.summary-card { display: grid; grid-template-columns: 210px 1fr; gap: 1.8rem; align-items: center; }
.score-ring { --p: 0; --c: var(--unknown); position: relative; width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); }
.score-ring::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface); }
.score-ring__inner { position: relative; text-align: center; }
.score-ring__num { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.score-ring__of { color: var(--muted); font-size: .85rem; }
.score-ring--low { --c: var(--low); } .score-ring--uncertain { --c: var(--uncertain); } .score-ring--suspicious { --c: var(--suspicious); } .score-ring--high { --c: var(--high); }
.verdict { font-size: 1.25rem; font-weight: 700; margin: .5rem 0 .3rem; }
.recommendation { color: var(--text-2); margin: 0 0 1rem; }
.recommendation--high { color: #fca5a5; }
html[data-mode="light"] .recommendation--high { color: #b91c1c; }

.signal-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.signal-tile { padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.signal-tile__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.signal-tile__value { font-weight: 700; margin-top: .2rem; display: flex; align-items: center; gap: .4rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--unknown)); flex: none; }
.dot--low { --c: var(--low); } .dot--uncertain { --c: var(--uncertain); } .dot--suspicious { --c: var(--suspicious); } .dot--high { --c: var(--high); } .dot--verified { --c: var(--verified); } .dot--unknown { --c: var(--unknown); }

.datalist { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 0; margin: 0; font-size: .92rem; }
.datalist__key, .datalist dt { color: var(--muted); padding: .55rem 0; border-bottom: 1px solid var(--border); }
.datalist__value, .datalist dd { margin: 0; padding: .55rem 0 .55rem 1rem; border-bottom: 1px solid var(--border); text-align: right; word-break: break-word; }
.datalist > :nth-last-child(-n+2) { border-bottom: 0; }

.explain { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.explain:last-child { border-bottom: 0; }
.explain__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.explain h3 { margin: 0 0 .3rem; font-size: 1rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.explain p { margin: 0; color: var(--text-2); font-size: .94rem; }

.reviewed-note { display: flex; gap: .6rem; align-items: center; padding: .6rem .9rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--verified) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--verified) 35%, transparent); font-size: .88rem; margin-top: 1rem; }

.verified-card { border-color: color-mix(in srgb, var(--verified) 40%, var(--border)); background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--verified) 16%, transparent), transparent 50%), var(--surface); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checklist li { display: flex; gap: .55rem; align-items: center; }
.checklist .ok { color: var(--low); }

.pending-state { text-align: center; padding: 64px 20px; }
.pulse-ring { width: 84px; height: 84px; margin: 0 auto 1.5rem; border-radius: 50%; position: relative; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pulse-ring::before, .pulse-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 2s ease-out infinite; }
.pulse-ring::after { animation-delay: 1s; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.8); opacity: 0; } }
.progress-steps { display: grid; gap: .45rem; max-width: 320px; margin: 1.5rem auto 0; text-align: left; font-size: .9rem; color: var(--muted); }
.progress-steps li { list-style: none; display: flex; gap: .5rem; align-items: center; }
.progress-steps li.is-done { color: var(--low); }
.progress-steps li.is-active { color: var(--text); }

.review { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-bottom: .35rem; }
.review__author { font-weight: 600; }
.review__body { color: var(--text-2); margin: 0; white-space: pre-line; }
.review__response { margin: .8rem 0 0 1rem; padding: .7rem 1rem; border-left: 2px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: .92rem; }

.raw { max-height: 420px; overflow: auto; white-space: pre-wrap; font-size: .78rem; }
.disclaimer { font-size: .84rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 1rem; margin-top: 2rem; }

.auth-wrap { min-height: calc(100vh - 0px); display: grid; place-items: center; padding: 40px 16px; position: relative; overflow: hidden; }
.auth-wrap > :not(.bg-grid):not(.glow) { position: relative; z-index: 1; }   /* the decor stays absolute, never takes layout space */

.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: .9rem; }
.step::before { content: counter(step); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.step h3 { margin: .3rem 0 .2rem; font-size: 1rem; }
.step p { color: var(--text-2); margin: 0; font-size: .93rem; }

.kbd-hint { font-family: var(--mono); font-size: .75rem; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: .05rem .4rem; color: var(--muted); }
.code-block { position: relative; }
.code-block .copy-btn { position: absolute; top: .5rem; right: .5rem; }

/* 7. Utilities & responsive ------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.flex--between { justify-content: space-between; }
.stack { display: grid; gap: 1.25rem; }
.nowrap { white-space: nowrap; }
.break { word-break: break-word; }
.hide-sm { }
[hidden] { display: none !important; }

@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--sidebar { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav__toggle { display: inline-grid; place-items: center; }
    .nav__list { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: .75rem 20px 1.25rem; background: var(--bg); border-bottom: 1px solid var(--border); gap: .25rem; }
    .nav__list.is-open { display: flex; }
    .nav__link { justify-content: flex-start; padding: .7rem .9rem; border-radius: 10px; width: 100%; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .summary-card { grid-template-columns: 1fr; text-align: center; }
    .signal-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
    .cta { grid-template-columns: 1fr; padding: 1.8rem; }
    .field--row { grid-template-columns: 1fr; }
    .hide-sm { display: none; }
}
@media (max-width: 560px) {
    .section { padding: 44px 0; }
    .hero { padding: 56px 0 40px; }
    .scanbox__form { border-radius: 18px; flex-wrap: wrap; }
    .scanbox__icon { display: none; }
    .scanbox__input { width: 100%; padding: .7rem .9rem; }
    .scanbox__form .btn { width: 100%; }
    .grid--4 { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .table th, .table td { padding: .6rem .7rem; }
    .datalist { grid-template-columns: 1fr; }
    .datalist__value, .datalist dd { text-align: left; padding: 0 0 .6rem; }
    .datalist__key, .datalist dt { border-bottom: 0; padding-bottom: .1rem; }
    /* iOS zooms into inputs under 16px */
    .field__input, .input, select, textarea { font-size: 16px; }
    .auth-wrap { place-items: start center; padding: 6vh 12px 32px; }
    .card--auth { padding: 1.2rem; }
    .glow { width: 360px; height: 300px; }
}

/* Cookie consent banner ----------------------------------------------------- */
.consent {
    position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 760px;
    display: flex; gap: 1rem; align-items: center; justify-content: space-between;
    padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--border-strong);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); font-size: .88rem;
}
.consent p { margin: .25rem 0 0; color: var(--text-2); }
.consent__actions { display: flex; gap: .5rem; flex: none; }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; } .consent__actions .btn { flex: 1; } }

/* =============================================================================
 * 8. Layout refresh (2026-10): mega nav, footer, home sections, list rows,
 *    feature grid, browse hubs. Builds on the tokens above; light mode via
 *    the same variables.
 * ========================================================================== */

/* Footer */
.site-footer { padding-top: 0; }
.footer-recent { display: flex; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--border); margin-bottom: 2.4rem; }
.footer-recent__label { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); }
.site-footer .footer-recent__list { display: flex; flex-wrap: wrap; gap: .35rem .5rem; list-style: none; margin: 0; padding: 0; }
.footer-recent__list a { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; color: var(--text-2); }
.footer-recent__list a:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.footer-recent__list .dot { width: 7px; height: 7px; }
.site-footer__grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 2rem 2.2rem; }
.site-footer__brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.site-footer__brand .site-footer__disclaimer { margin: 0; }

/* Shared section bits */
.section--alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 55%, transparent) 18%, color-mix(in srgb, var(--surface) 55%, transparent) 82%, transparent); }
.section__head--center { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: center; text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }
.eyebrow--danger { color: #fca5a5; }
html[data-mode="light"] .eyebrow--danger { color: #b91c1c; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--high); animation: live-red 1.8s ease-out infinite; }
.live-dot--ok { background: var(--low); animation-name: live-green; }
@keyframes live-red { from { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } to { box-shadow: 0 0 0 8px rgba(239,68,68,0); } }
@keyframes live-green { from { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } to { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.link-arrow svg { transition: transform .15s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(3px); }
.chip--sm { padding: .08rem .5rem; font-size: .72rem; border-radius: 6px; }

/* Hero v2 */
.hero--v2 { padding: 92px 0 64px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; list-style: none; margin: 1.6rem auto 0; padding: 0; max-width: 820px; color: var(--text-2); font-size: .88rem; }
.trust-row li { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row svg { color: var(--accent); }

/* Two-up list panels */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel-card__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1.2rem 1.3rem .9rem; border-bottom: 1px solid var(--border); }
.panel-card__title { font-size: 1.2rem; margin: .2rem 0 0; }
.dlist { list-style: none; margin: 0; padding: .35rem; }
.dlist__row { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border-radius: 12px; color: var(--text); min-width: 0; }
.dlist__row:hover { background: var(--surface-2); text-decoration: none; }
.dlist__row > span[aria-hidden]:first-child { border-radius: 8px !important; }
.dlist__main { flex: 1; min-width: 0; display: grid; }
.dlist__main b { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlist__main small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlist .badge { flex: none; }

/* How it works */
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: none; position: relative; }
.howto__step { position: relative; padding: 1.6rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.howto__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 800; color: #fff; margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px -10px var(--accent); }
.howto__step h3 { margin: 0 0 .4rem; }
.howto__step p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--surface); padding: 1.6rem 1.5rem; transition: background .15s; }
.feature:hover { background: var(--surface-2); }
.feature h3 { margin: .9rem 0 .35rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-2); font-size: .93rem; }
.feature__icon { --c: var(--accent); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }
.feature__icon--red { --c: var(--high); } .feature__icon--pink { --c: var(--accent-3); } .feature__icon--cyan { --c: var(--accent-2); } .feature__icon--amber { --c: var(--uncertain); } .feature__icon--green { --c: var(--low); }

/* Browse hubs */
.browse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.browse__col { display: grid; gap: .9rem; align-content: start; padding: 1.3rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.browse__col h3 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1rem; }
.browse__col h3 svg { color: var(--accent); }
.hub-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.hub-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: .85rem; font-weight: 500; }
.hub-chip em { font-style: normal; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.hub-chip:hover { border-color: var(--accent); text-decoration: none; }
.hub-chip--warn:hover { border-color: var(--suspicious); }
.az { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 1.6rem; }
.az a { min-width: 38px; height: 38px; padding: 0 .55rem; display: inline-grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: .88rem; }
.az a:hover, .az a[aria-current="page"] { border-color: var(--accent); color: var(--text); text-decoration: none; }
.az a[aria-current="page"] { background: var(--accent); color: #fff; }

/* Extension CTA mock */
.cta__mock { display: grid; place-items: center; }
.mock-browser { width: 100%; max-width: 360px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--bg-2); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.mock-browser__bar { display: flex; align-items: center; gap: 6px; padding: .55rem .7rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mock-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.mock-browser__bar span { margin-left: .5rem; flex: 1; padding: .2rem .6rem; border-radius: 7px; background: var(--bg); color: var(--muted); font-size: .76rem; font-family: var(--mono); }
.mock-browser__popup { display: flex; align-items: center; gap: .8rem; margin: 1.1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--high) 45%, var(--border)); box-shadow: 0 0 40px -12px var(--high); }
.mock-browser__popup div { flex: 1; min-width: 0; display: grid; }
.mock-browser__popup b { color: #fca5a5; }
html[data-mode="light"] .mock-browser__popup b { color: #b91c1c; }
.mock-browser__popup small { color: var(--muted); font-size: .76rem; }

/* Guides */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.post-card--v2 { padding: 1.4rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.post-card--v2:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.post-card--v2 .post-card__meta { display: flex; align-items: center; gap: .5rem; }
.post-card--v2 .post-card__excerpt { flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-weight: 600; font-size: .88rem; margin-top: .4rem; }

/* FAQ split */
.faq-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 2.5rem; align-items: start; }
.faq-split h2 { margin-top: .4rem; }
.contact-card { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

@media (max-width: 1024px) {
    .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer__brand { grid-column: 1 / -1; }
    .features, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .browse { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .split, .howto, .faq-split { grid-template-columns: 1fr; }
    .faq-split { gap: 1.2rem; }
    .cta__mock { display: none; }
}
@media (max-width: 560px) {
    .hero--v2 { padding: 56px 0 40px; }
    .trust-row { gap: .4rem 1rem; font-size: .82rem; }
    .features, .post-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-recent { flex-direction: column; gap: .6rem; }
    .panel-card__head { padding: 1rem 1rem .8rem; align-items: flex-start; flex-direction: column; gap: .4rem; }
    .dlist__row { padding: .55rem .6rem; gap: .65rem; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
}
/* .container combined with .section/.section--tight keeps the side gutter */
.container.section, .container.section--tight { padding-inline: 20px; }

/* Report: key facts grid + collapsed technical details */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.facts > div { background: var(--surface); padding: .8rem 1rem; min-width: 0; }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.facts__wide { grid-column: 1 / -1; }
.facts__wide dd { font-weight: 500; color: var(--text-2); }
.tech-details { padding: 0; }
.tech-details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .55rem; padding: 1.1rem 1.4rem; font-weight: 700; }
.tech-details > summary::-webkit-details-marker { display: none; }
.tech-details > summary::after { content: '+'; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 1.2rem; transition: transform .2s; }
.tech-details[open] > summary::after { transform: rotate(45deg); }
.tech-details__body { padding: 0 1.4rem 1.4rem; }
@media (max-width: 560px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Navigation v3: slim desktop bar + compact dropdown + mobile drawer */
.nav { gap: 1rem; }
.nav__links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0 0 0 1.2rem; padding: 0; }
.nav__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav__report { gap: .35rem; }
.nav__report svg { color: var(--high); }
.nav__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nav__avatar:hover { text-decoration: none; filter: brightness(1.1); }
.nav__menu { position: relative; }
.nav__menu > summary { list-style: none; }
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__menu > summary svg { opacity: .6; transition: transform .2s; }
.nav__menu[open] > summary { color: var(--text); background: var(--surface-2); }
.nav__menu[open] > summary svg { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; z-index: 60; display: grid; padding: 6px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
    animation: dd-in .14s ease;
}
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
.dropdown-menu__item { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 9px; color: var(--text-2); font-size: .9rem; font-weight: 500; }
.dropdown-menu__item svg { color: var(--muted); }
.dropdown-menu__item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.dropdown-menu__item:hover svg { color: var(--accent); }
.nav__toggle { display: none; margin-left: 0; }

/* Drawer (mobile) */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(5,5,10,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); display: flex; flex-direction: column;
    background: var(--bg); border-left: 1px solid var(--border); box-shadow: -30px 0 80px -20px rgba(0,0,0,.7);
    transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.drawer__close { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); cursor: pointer; }
.drawer__body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .6rem; }
.drawer__check { display: flex; align-items: center; gap: .4rem; padding: .35rem .35rem .35rem .8rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); }
.drawer__check:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.drawer__check input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 500 16px var(--font); padding: .45rem .2rem; outline: none; }
.drawer__label { margin-top: .8rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.drawer__tile { display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .6rem .7rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .9rem; line-height: 1.25; }
.drawer__tile:hover, .drawer__tile:active { border-color: var(--accent); text-decoration: none; }
.drawer__tile-icon { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.drawer__links { list-style: none; margin: 0; padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.drawer__links li + li { border-top: 1px solid var(--border); }
.drawer__links a { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; font-size: .95rem; color: var(--text); font-weight: 500; }
.drawer__links a svg:first-child { color: var(--accent); }
.drawer__links a svg:last-child { margin-left: auto; color: var(--muted); }
.drawer__links a:hover { background: var(--surface-2); text-decoration: none; }
.drawer__foot { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg-2); }
.drawer__foot form { margin: 0; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

@media (max-width: 1080px) { .nav__report { display: none; } }
@media (max-width: 900px) {
    .nav__links, .nav__signin { display: none; }
    .nav__toggle { display: inline-grid; place-items: center; }
}
@media (min-width: 901px) { .drawer { display: none; } }

/* Report sidebar: trust-badge offer for site owners */
.badge-cta img { display: block; max-width: 100%; height: auto; margin-top: .4rem; }
.badge-cta .card__title svg { color: var(--accent); }

/* Error pages (views/errors/error.php) */
.errpage { position: relative; overflow: hidden; padding: 72px 0 80px; min-height: 70vh; display: grid; align-items: center; }
.errpage > :not(.bg-grid):not(.glow) { position: relative; z-index: 1; }
.errpage__inner { display: grid; justify-items: center; text-align: center; max-width: 720px; }
.errpage__emoji { font-size: 4.5rem; line-height: 1; margin-bottom: 1rem; filter: drop-shadow(0 12px 30px rgba(139, 92, 246, .35)); animation: err-bob 3.2s ease-in-out infinite; }
@keyframes err-bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.errpage__code { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.errpage__title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: .4rem 0 .6rem; }
.errpage__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 54ch; margin: 0 0 .6rem; }
.errpage__detail { font-size: .9rem; color: var(--muted); margin: 0 0 .4rem; }
.errpage__actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin: 1.2rem 0 1.6rem; }
.errpage__check { display: flex; align-items: center; gap: .4rem; width: min(520px, 100%); padding: .35rem .35rem .35rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); }
.errpage__check:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.errpage__check input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 500 1rem var(--font); padding: .45rem .2rem; outline: none; }
.errpage__links { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: center; font-size: .92rem; }
.errpage__links a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 500; }

/* 404: mock report card */
.errcard { display: flex; align-items: center; gap: 1.2rem; text-align: left; padding: 1.1rem 1.4rem 1.1rem 1.1rem; margin-bottom: 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid color-mix(in srgb, var(--high) 40%, var(--border)); box-shadow: 0 30px 70px -30px rgba(239, 68, 68, .45); transform: rotate(-2deg); animation: err-wobble 4s ease-in-out infinite; }
@keyframes err-wobble { 50% { transform: rotate(1.5deg) translateY(-4px); } }
.errcard__ring { flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--high) 100%, var(--surface-3) 0); }
.errcard__ring span { font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--high); letter-spacing: -.04em; }
.errcard__ring small { font-size: .7rem; color: var(--muted); }
.errcard__body { display: grid; gap: .3rem; justify-items: start; }
.errcard__body b { font-size: 1.05rem; }
.errcard__body small { color: var(--muted); font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .errpage__emoji, .errcard { animation: none; } }
@media (max-width: 560px) {
    .errpage { padding: 44px 0 56px; }
    .errcard { gap: .8rem; padding: .9rem; }
    .errcard__ring { width: 74px; height: 74px; }
    .errcard__ring span { font-size: 1.3rem; }
}
