/* nokyc.host — technical directory for privacy-focused hosting */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Surfaces (darkest to lightest) */
    --base-bg: #0b0f14;
    --footer-bg: #090c10;
    --surface: #131a23;
    --row-alt: #151d27;
    --row-hover: #162322;
    --row-hover-strong: #182826;
    --surface-2: #1a2330;
    --sponsored-bg: #1b1c17;
    --border: #26313f;
    --border-strong: #313e4f;

    /* Text (all >= 4.5:1 on every surface) */
    --text-primary: #e6e9ee;
    --text-body: #c6cdd6;
    --text-muted: #98a2b3;
    --text-faint: #828da0;

    /* Mint = "you can act here" (buttons, links, active states) */
    --accent: #3fd0a8;
    --accent-hover: #5fe0bb;
    --accent-bright: #c8fbec;
    --accent-dim: rgba(63, 208, 168, 0.12);
    --on-accent: #04140f;
    --link: #6fdcbd;
    --link-underline: rgba(111, 220, 189, 0.4);

    /* Status (data, not actions) */
    --positive: #5cc98a;
    --warn: #f5a524;
    --danger: #f06a6a;
    --success-text: #a7f0da;
    --danger-text: #f8b4b4;

    /* Neutral bar fill for single-series charts (>= 3:1 on surfaces) */
    --bar-neutral: #6f7f96;
    --star-empty: #2a3441;
    --star-empty-edge: #3a4656;

    --kyc-0: #4fc98e;
    --kyc-1: #93c966;
    --kyc-2: #d9bb4a;
    --kyc-3: #e38a45;
    --kyc-4: #e46f6f;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
    --radius: 6px;
    color-scheme: dark;
}

html {
    -webkit-text-size-adjust: 100%;
}

/* The hidden attribute always wins over component display rules */
[hidden] {
    display: none !important;
}

body {
    font-family: var(--font-sans);
    background: var(--base-bg);
    color: var(--text-primary);
    line-height: 1.55;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 40px 0 64px;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
}

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.muted {
    color: var(--text-muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Links inside running text are underlined, so they don't rely on colour alone */
.prose-block p a,
.prose p a,
.guide-list li a,
.callout p a,
.faq p a,
.subtitle a,
.table-note a,
.note a,
.list-summary a,
.meta-date a,
.methodology-section p a {
    text-decoration: underline;
    text-decoration-color: var(--link-underline);
    text-underline-offset: 3px;
}

.prose-block p a:hover,
.prose p a:hover,
.guide-list li a:hover,
.callout p a:hover,
.faq p a:hover,
.subtitle a:hover,
.table-note a:hover,
.note a:hover,
.list-summary a:hover,
.meta-date a:hover,
.methodology-section p a:hover {
    text-decoration-color: currentColor;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

h1 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

h3 {
    font-size: 15px;
    font-weight: 600;
}

p + p {
    margin-top: 12px;
}

/* ---------- Header / navigation ---------- */
.site-header {
    /* Frosted: the ambient background glows softly through while scrolling */
    background: color-mix(in srgb, var(--base-bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo:hover {
    text-decoration: none;
}

.logo-mark {
    display: block;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.site-footer .logo,
.site-footer .logo:hover {
    color: var(--text-primary);
}

.site-footer .logo-mark {
    width: 24px;
    height: 24px;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.15s, background-color 0.15s;
}

.site-nav a:hover {
    color: var(--text-primary);
    background: var(--surface);
    text-decoration: none;
}

.site-nav a[aria-current="page"] {
    color: var(--text-primary);
    background: var(--surface-2);
}

.site-nav .cta {
    margin-left: 8px;
    color: var(--accent);
    border: 1px solid rgba(63, 208, 168, 0.45);
}

.site-nav .cta:hover,
.site-nav .cta[aria-current="page"] {
    background: var(--accent-dim);
    color: var(--accent);
}

/* Mobile-only pieces (enabled inside the media queries below) */
.nav-extra,
.nav-backdrop,
.mobile-sort,
.juris-name {
    display: none;
}

/* CSS-only mobile toggle (works without JavaScript) */
.nav-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    background: var(--text-primary);
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle span {
    top: 50%;
    margin-top: -1px;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    left: 0;
    margin-left: 0;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.nav-toggle-input:focus-visible + .nav-toggle {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-toggle-input:checked + .nav-toggle span {
    background: transparent;
}

.nav-toggle-input:checked + .nav-toggle span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle-input:checked + .nav-toggle span::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 32px;
    border-top: 1px solid var(--border);
    background: var(--footer-bg);
    padding: 44px 0 28px;
    color: var(--text-faint);
    font-size: 13.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
}

.footer-brand p {
    margin-top: 12px;
    max-width: 34ch;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

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

.site-footer a:hover {
    color: var(--text-primary);
}

.footer-count {
    margin-left: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p + p {
    margin-top: 0;
}

/* ---------- Page header ---------- */
.page-header {
    margin-bottom: 28px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 10px;
    max-width: 68ch;
}

.notice-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--warn);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.notice-banner::before {
    content: "!";
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(245, 165, 36, 0.15);
    color: var(--warn);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
}

.empty-state {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

/* ---------- Badges & pills ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid transparent;
}

.badge-ad {
    background: rgba(245, 165, 36, 0.12);
    border-color: rgba(245, 165, 36, 0.35);
    color: var(--warn);
}

.badge-crypto,
.badge-crypto-soft,
.badge-soft {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.badge-row:empty {
    display: none;
}

.kyc-pill {
    --kyc: var(--text-muted);
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--kyc);
    background: color-mix(in srgb, var(--kyc) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--kyc) 40%, transparent);
}

.kyc-0 { --kyc: var(--kyc-0); }
.kyc-1 { --kyc: var(--kyc-1); }
.kyc-2 { --kyc: var(--kyc-2); }
.kyc-3 { --kyc: var(--kyc-3); }
.kyc-4 { --kyc: var(--kyc-4); }

/* ---------- Star ratings ---------- */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    vertical-align: middle;
}

/* SVG stars: an empty layer underneath, a filled layer on top clipped to
   the exact rating width (set inline by utils/star-rating.js). */
.stars {
    --stars-h: 1.05em;
    --stars-w: calc(var(--stars-h) * 5);
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: var(--stars-w);
    height: var(--stars-h);
    line-height: 0;
}

.stars svg {
    display: block;
    width: var(--stars-w);
    height: var(--stars-h);
}

.stars-empty,
.stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.stars-empty svg {
    fill: var(--star-empty);
    stroke: var(--star-empty-edge);
    stroke-width: 0.9;
}

.stars-fill {
    overflow: hidden;
}

.stars-fill svg {
    fill: var(--star-fill);
    stroke: var(--star-edge);
    stroke-width: 0.9;
    filter: drop-shadow(0 0 3px var(--star-glow));
}

/* Gold tiers by rating (never green/red, which belong to the KYC scale) */
.star-rating.tier-high {
    --star-fill: #fbcb4a;
    --star-edge: #ffe08a;
    --star-glow: rgba(251, 203, 74, 0.35);
}

.star-rating.tier-mid {
    --star-fill: #d9a33c;
    --star-edge: #e8bb62;
    --star-glow: rgba(217, 163, 60, 0.18);
}

.star-rating.tier-low {
    --star-fill: #8f7446;
    --star-edge: #a58a5a;
    --star-glow: transparent;
}

.rating-value {
    margin-left: 0.45rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.88em;
    font-variant-numeric: tabular-nums;
}

.rating-scale {
    color: var(--text-muted);
    font-size: 0.82em;
}

.score-unrated {
    color: var(--text-muted);
}

/* ---------- Provider logos ---------- */
.provider-logo {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: var(--base-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.provider-logo-large {
    width: 64px;
    height: 64px;
    border-radius: 10px;
}

/* Real logos (not the full-bleed demo tiles): full size, no frame, so the
   border never cuts into the logo. The rounded corners still clip it. */
.provider-logo-inset {
    border-color: transparent;
    background: transparent;
}

.logo-placeholder {
    --ph-hue: 200;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: hsl(var(--ph-hue) 35% 72%);
    background: linear-gradient(135deg, hsl(var(--ph-hue) 22% 18%), hsl(var(--ph-hue) 18% 12%));
    border-color: hsl(var(--ph-hue) 20% 26%);
    user-select: none;
}

.logo-placeholder.provider-logo-large {
    font-size: 22px;
}

/* ---------- Tables ---------- */
.table-wrapper {
    /* Positioning context so absolutely-positioned descendants (e.g. screen-reader
       labels) are clipped by the scroll container instead of widening the page */
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

th {
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.col-num {
    text-align: right;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    color: var(--text-primary);
}

th.sortable::after {
    content: "↕";
    margin-left: 6px;
    opacity: 0.35;
    font-size: 11px;
}

th[aria-sort="ascending"]::after {
    content: "↑";
    opacity: 1;
    color: var(--accent);
}

th[aria-sort="descending"]::after {
    content: "↓";
    opacity: 1;
    color: var(--accent);
}


/* Provider ranking table */
.providers-table {
    min-width: 1054px;
    table-layout: fixed;
}

.providers-table col.c-rank { width: 56px; }
.providers-table col.c-provider { width: auto; }

/* Position column */
.providers-table .rank-cell {
    padding-left: 16px;
    padding-right: 4px;
    text-align: left;
}

.rank {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-faint);
}

.rank-1 { color: #f5c451; }
.rank-2 { color: #c9d3de; }
.rank-3 { color: #e0a370; }

.rank-ad {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--warn);
    opacity: 0.8;
}
.providers-table col.c-visit { width: 96px; }
.providers-table col.c-kyc { width: 158px; }
.providers-table col.c-rating { width: 150px; }
.providers-table col.c-jurisdiction { width: 124px; }
.providers-table col.c-price { width: 118px; }
.providers-table col.c-crypto { width: 112px; }

.providers-table th {
    padding-top: 11px;
    padding-bottom: 11px;
}

.providers-table td {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.35;
}

/* Solid row colors (not rgba) so the sticky first column on mobile stays opaque */
.providers-table td {
    background: var(--surface);
}

.providers-table tbody tr:nth-child(even) td {
    background: var(--row-alt);
}

.providers-table tbody tr:hover td {
    background: var(--row-hover);
}

.provider-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.providers-table .provider-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.provider-name-text {
    min-width: 0;
}

.provider-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.provider-name-cell a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-name-cell a:hover {
    color: var(--link);
}

.provider-sub {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kyc-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kyc-cell-label {
    font-size: 13px;
    color: var(--text-muted);
}

.providers-table td .star-rating {
    font-size: 15px;
}

.price {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.price-unit {
    margin-left: 1px;
    font-size: 12px;
    color: var(--text-faint);
}

/* Whole-row links (class added by js/row-links.js, so only when JS runs) */
.providers-table tbody tr.row-link {
    cursor: pointer;
}

.providers-table tbody tr.row-link:hover td {
    background: var(--row-hover-strong);
}

.providers-table tbody tr.row-link:hover .provider-name-cell a {
    color: var(--link);
}

.providers-table tr.sponsored td {
    background: var(--sponsored-bg);
}

.providers-table tr.sponsored td:first-child {
    box-shadow: inset 3px 0 0 var(--warn);
}

/* Visit buttons (outbound via /go/) */
.visit-cell {
    padding-left: 4px;
    padding-right: 8px;
}

.button.button-visit {
    padding: 5px 10px 5px 12px;
    font-size: 12.5px;
    gap: 5px;
    border-color: rgba(63, 208, 168, 0.4);
    background: var(--accent-dim);
    color: var(--accent);
    white-space: nowrap;
}

.button.button-visit:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.button-visit .icon,
.button-block .icon {
    width: 13px;
    height: 13px;
}

/* Country flags (jurisdiction) */
.flag-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}

.flag {
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    /* Hairline edge + soft shadow keeps white/pale flags visible on the dark UI */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 1px 3px rgba(0, 0, 0, 0.45);
    background: var(--surface-2);
}

.juris-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.juris-cell .flag {
    width: 28px;
    height: 21px;
}

.juris-cell .provider-sub {
    margin-top: 0;
}

.provider-sub .flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
}

.provider-sub .flag-wrap {
    gap: 6px;
}

/* Status (icon + label) */
.icon {
    display: block;
    flex-shrink: 0;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px 3px 6px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* Neutral pills: status is data, not an action, so it stays out of the
   mint accent. Only the icon is coloured. */
.status-yes,
.status-no,
.status-unknown {
    color: var(--text-primary);
    background: var(--surface-2);
    border-color: var(--border);
}

.status-yes .icon { color: var(--positive); }
.status-no .icon { color: var(--danger); }

.status-unknown {
    color: var(--text-muted);
}

.status-unknown .icon { color: var(--text-faint); }

.table-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.table-controls input,
.table-controls select {
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    font: inherit;
    font-size: 14px;
}

.table-controls input {
    flex: 1;
    min-width: 0;
}

.table-controls select {
    min-width: 220px;
}

.table-controls input:focus,
.table-controls select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ---- "Show all" for long tables (js/table-more.js) ---- */
.providers-table tbody tr.is-collapsed {
    display: none;
}

.table-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.table-more-btn {
    min-width: 240px;
}

.table-more-count {
    font-family: var(--font-mono);
}

/* ---- Table filter bar (home) ---- */
.table-filters {
    margin-bottom: 16px;
}

.table-filters .table-controls {
    margin-bottom: 0;
}

.filter-panel {
    flex-shrink: 0;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.15s, border-color 0.15s;
}

.filter-toggle::-webkit-details-marker {
    display: none;
}

.filter-toggle:hover,
.filter-panel[open] .filter-toggle {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* Panel body sits below the controls row; shown when the toggle is open */
.filter-body {
    display: none;
    flex-wrap: wrap;
    gap: 16px 36px;
    margin-top: 10px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.table-filters:has(.filter-panel[open]) .filter-body,
.table-filters.is-open .filter-body {
    display: flex;
}

.filter-group {
    border: 0;
    min-width: 0;
}

.filter-group-wide {
    flex-basis: 100%;
}

.filter-group legend {
    margin-bottom: 8px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip-opt {
    position: relative;
    cursor: pointer;
}

.chip-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-opt span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--base-bg);
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.12s, border-color 0.12s, background-color 0.12s;
}

.chip-opt:hover span {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.chip-opt input:checked + span {
    color: var(--accent);
    border-color: rgba(63, 208, 168, 0.5);
    background: var(--accent-dim);
}

.chip-opt input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.chip-opt .flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
}

.filter-actions {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* With JavaScript, filters apply instantly, so the Apply button is redundant */
.js .filter-apply {
    display: none;
}

.filter-clear {
    font-size: 13px;
}

.filter-status {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.filter-status strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.filter-status .filter-clear {
    margin-left: 10px;
}

.table-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

.table-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-faint);
}

/* ---------- Forms ---------- */
.form-container {
    max-width: 620px;
    margin: 0 auto;
}

.card-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group > label,
.form-group .label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input:not([type="checkbox"]),
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    background: var(--base-bg);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    border-radius: var(--radius);
    font: inherit;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input:disabled {
    color: var(--text-muted);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cf-turnstile {
    margin-bottom: 20px;
}

.button,
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.button:hover,
.submit-btn:hover {
    text-decoration: none;
    border-color: var(--text-faint);
}

.button-primary,
.submit-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.button-primary:hover,
.submit-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.button-danger {
    color: var(--danger);
}

.error-message,
.success-message {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
}

.error-message {
    background: rgba(240, 106, 106, 0.1);
    border: 1px solid rgba(240, 106, 106, 0.35);
    color: var(--danger-text);
}

.success-message {
    background: rgba(63, 208, 168, 0.08);
    border: 1px solid rgba(63, 208, 168, 0.35);
    color: var(--success-text);
}

.success-message a {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
}

/* ---------- Methodology ---------- */
.prose-page {
    max-width: 860px;
}

.methodology-section {
    margin-bottom: 48px;
}

.methodology-section > h2,
.provider-section > h2 {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.methodology-section > p {
    color: var(--text-muted);
    max-width: 72ch;
}

.kyc-scale,
.score-breakdown {
    display: grid;
    gap: 8px;
    margin: 20px 0;
}

.kyc-level,
.score-component {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.level-badge.kyc-pill {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.level-content h3,
.component-details h3 {
    margin-bottom: 4px;
}

.level-content p,
.component-details p {
    color: var(--text-muted);
    font-size: 14px;
}

.weight {
    flex-shrink: 0;
    min-width: 56px;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

code {
    background: var(--surface-2);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent);
}

.formula {
    margin: 16px 0;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 13px;
    overflow-x: auto;
}

.note {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 72ch;
}

.bullet-list {
    margin: 12px 0 16px 20px;
    color: var(--text-muted);
}

.bullet-list li + li {
    margin-top: 4px;
}

/* ---------- Shared page sections ---------- */
.breadcrumb {
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 20px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    list-style: none;
}

.breadcrumb li + li::before {
    content: "/";
    margin: 0 8px;
    color: var(--border-strong);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb [aria-current] {
    color: var(--text-primary);
}

.page-section {
    margin-top: 56px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 18px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head .section-title {
    margin-bottom: 0;
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.toc a {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-muted);
}

.toc a:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    text-decoration: none;
}

/* Long-form text */
.prose-block {
    max-width: 760px;
}

.prose-block section + section {
    margin-top: 36px;
}

.prose-block h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.prose-block h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.prose-block p,
.prose p {
    color: var(--text-body);
    font-size: 15.5px;
    line-height: 1.75;
}

.prose-block p + p,
.prose p + p {
    margin-top: 14px;
}

.prose-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.prose-block:has(.prose-columns) {
    max-width: none;
}

.prose-columns p {
    font-size: 14.5px;
    line-height: 1.7;
}

.steps {
    counter-reset: step;
    list-style: none;
    display: grid;
    gap: 14px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 14px 16px 14px 56px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-body);
    line-height: 1.65;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 14px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}

.steps strong {
    color: var(--text-primary);
}

/* List page: content + related sidebar */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    margin-top: 56px;
    align-items: start;
}

.related-lists {
    position: sticky;
    top: 84px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
}

.related-lists h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.related-lists ul {
    list-style: none;
}

.related-lists a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.related-lists li:last-child a {
    border-bottom: none;
}

/* FAQ (works without JS) */
.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.faq details + details {
    margin-top: 8px;
}

.faq summary {
    cursor: pointer;
    padding: 14px 44px 14px 16px;
    font-weight: 600;
    list-style: none;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--accent);
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq details p {
    padding: 0 16px 16px;
    font-size: 15px;
}

/* Cards linking to lists */
.list-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.list-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    transition: border-color 0.15s, transform 0.15s;
}

.list-card:hover {
    border-color: rgba(63, 208, 168, 0.45);
    text-decoration: none;
    transform: translateY(-1px);
}

.list-card-title {
    font-weight: 600;
    font-size: 15px;
}

.list-card-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
}

.list-card-count {
    color: var(--accent);
    font-size: 12px;
    margin-top: 4px;
}

.link-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.link-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.chip,
.chip-link {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-primary);
    font-size: 12.5px;
    white-space: nowrap;
}

.chip-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

.chip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ---------- Provider page ---------- */
.provider-header {
    margin-bottom: 32px;
}

.provider-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.provider-heading h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.provider-tagline {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 16px;
    max-width: 62ch;
}

.provider-heading-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin-top: 12px;
    font-size: 14px;
}

.provider-domain {
    font-size: 13px;
    color: var(--text-muted);
}

.provider-heading-meta .star-rating {
    font-size: 16px;
}

.provider-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.provider-main {
    min-width: 0;
}

.provider-aside {
    position: sticky;
    top: 84px;
    display: grid;
    /* minmax(0, …) lets cards shrink to the column; otherwise the embed
       textarea's built-in width pushed the aside wider than its 320px track */
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.aside-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
}

.aside-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
    margin-bottom: 12px;
}

.facts {
    display: grid;
    margin-bottom: 16px;
}

.facts > div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}

.facts > div:last-child {
    border-bottom: none;
}

.facts dt {
    color: var(--text-muted);
}

.facts dd {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.button-block {
    display: flex;
    width: 100%;
}

.aside-url {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: var(--text-faint);
    overflow-wrap: anywhere;
}

.aside-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.badge-preview {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin-bottom: 10px;
}

.badge-code {
    width: 100%;
    padding: 8px 10px;
    background: var(--base-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 11.5px;
    resize: none;
}

.provider-section {
    margin-bottom: 44px;
}

.provider-section > h2 {
    font-size: 19px;
}

/* Answer-first block: direct answer to "Does X require KYC?" */
.answer-box {
    --tone: var(--text-faint);
    margin-bottom: 36px;
    padding: 18px 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 9%, var(--surface)), var(--surface) 60%);
    border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--border));
    border-left: 4px solid var(--tone);
    border-radius: 10px;
}

.answer-good { --tone: var(--kyc-0); }
.answer-warn { --tone: var(--kyc-2); }
.answer-caution { --tone: var(--kyc-3); }
.answer-bad { --tone: var(--kyc-4); }

.answer-question {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.answer-text {
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--text-primary);
}

.answer-verdict {
    color: var(--tone);
    font-size: 18px;
}

.answer-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
}

.provider-section[id] {
    scroll-margin-top: 80px;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pros,
.cons {
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.pros { border-top: 3px solid var(--positive); }
.cons { border-top: 3px solid var(--kyc-4); }

.pros h3,
.cons h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.pros h3 { color: var(--positive); }
.cons h3 { color: var(--kyc-4); }

.pros ul,
.cons ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.pros li,
.cons li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14.5px;
    line-height: 1.5;
}

.pros li .icon { color: var(--positive); margin-top: 2px; }
.cons li .icon { color: var(--kyc-4); margin-top: 2px; }

.metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.metric-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.metric-value small {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

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

.timeline {
    list-style: none;
    border-left: 2px solid var(--border);
    margin-left: 6px;
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 6px 0 10px 18px;
    font-size: 14px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--base-bg);
    border: 2px solid var(--accent);
}

.timeline time {
    color: var(--text-faint);
    font-size: 12.5px;
    padding-top: 1px;
}

/* Provider cards (similar providers) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.provider-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s, transform 0.15s;
}

.provider-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.provider-card.is-ad {
    border-color: rgba(245, 165, 36, 0.4);
    background: var(--sponsored-bg);
}

.provider-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.provider-card-name {
    min-width: 0;
}

.provider-card-name a {
    color: var(--text-primary);
    font-weight: 600;
}

.provider-card-name .badge {
    position: relative;
    z-index: 1;
    margin-left: 6px;
}

/* Whole card is clickable via the name link */
.stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
}

.provider-card-facts {
    display: grid;
    gap: 6px;
    font-size: 13px;
}

.provider-card-facts > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.provider-card-facts dt {
    color: var(--text-muted);
}

.provider-card-facts dd {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Top 3 podium (home + list pages) ----------
   Three cards standing on steps: #1 in the middle on the tallest step,
   #2 left, #3 right. DOM order stays 1, 2, 3; grid areas do the layout.
   Metal colours match .rank-1/2/3; --edge is each tier's border strength. */
.podium {
    margin-bottom: 24px;
}

.podium-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.podium-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.podium-how {
    font-size: 13px;
    white-space: nowrap;
}

.podium-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1.18fr 1fr;
    grid-template-areas: "second first third";
    align-items: end;
    gap: 12px;
}

.podium-1 { grid-area: first;  --metal: 245, 196, 81;  --edge: 0.38; }
.podium-2 { grid-area: second; --metal: 201, 211, 222; --edge: 0.22; }
.podium-3 { grid-area: third;  --metal: 224, 163, 112; --edge: 0.26; }

.podium-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.2s ease;
}

.podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid rgba(var(--metal), var(--edge));
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    transition: border-color 0.2s ease;
}

/* #1: a little roomier, with a faint gold light from above */
.podium-1 .podium-card {
    gap: 10px;
    padding: 16px 18px;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(var(--metal), 0.09), transparent 70%),
        var(--surface);
}

.podium-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.podium .provider-logo {
    width: 38px;
    height: 38px;
    border-radius: 9px;
}

.podium-1 .provider-logo {
    width: 48px;
    height: 48px;
    border-radius: 11px;
}

.podium .provider-logo.logo-placeholder { font-size: 14px; }
.podium-1 .provider-logo.logo-placeholder { font-size: 16px; }

.podium-name {
    min-width: 0;
}

/* One line, so #2 and #3 cards are always the same height */
.podium-name a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.25;
    color: var(--text-primary);
}

.podium-1 .podium-name a {
    font-size: 18.5px;
    letter-spacing: -0.01em;
}

.podium-tagline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

/* Facts on the left, Visit on the right; wraps when the card is narrow */
.podium-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 12px;
    margin-top: auto;
}

.podium-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.podium-facts > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.podium-facts dt {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.podium-facts dd {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
    color: var(--text-primary);
}

/* Above the card-wide review link */
.podium-bottom .button-visit {
    position: relative;
    z-index: 1;
    margin-left: auto;
}

/* The step: a rank numeral on a metal-tinted block, fused to the card */
.podium-step {
    display: grid;
    place-items: center;
    height: 34px;
    background: linear-gradient(180deg, rgba(var(--metal), 0.16), rgba(var(--metal), 0.03));
    border: 1px solid rgba(var(--metal), var(--edge));
    border-top-color: rgba(var(--metal), 0.6);
    border-radius: 0 0 12px 12px;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: rgb(var(--metal));
    transition: border-color 0.2s ease;
}

.podium-1 .podium-step {
    height: 48px;
    font-size: 26px;
    text-shadow: 0 0 16px rgba(var(--metal), 0.35);
}

.podium-3 .podium-step {
    height: 22px;
    font-size: 14px;
}

/* Small rank label inside the card: only shown on phones (no steps there) */
.podium-rank {
    display: none;
}

.podium-item:hover {
    transform: translateY(-2px);
}

.podium-item:hover .podium-card,
.podium-item:hover .podium-step {
    border-color: rgba(var(--metal), 0.55);
}

.podium-item:hover .podium-step {
    border-top-color: rgba(var(--metal), 0.75);
}

.podium-item:hover .podium-name a {
    color: var(--link);
    text-decoration: none;
}

/* Keyboard focus outlines the whole card instead of just the name */
@supports selector(:has(*)) {
    .podium-card .stretched-link:focus-visible {
        outline: none;
    }

    .podium-card:has(.stretched-link:focus-visible) {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
    }
}

/* Tablets: tighter cards; #2/#3 put the logo above the name so it fits */
@media (max-width: 900px) {
    .podium-list {
        gap: 10px;
    }

    .podium-card {
        padding: 12px 14px;
    }

    .podium-1 .podium-card {
        padding: 14px 16px;
    }

    .podium-2 .podium-card-head,
    .podium-3 .podium-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .podium-2 .provider-logo,
    .podium-3 .provider-logo {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .podium-2 .provider-logo.logo-placeholder,
    .podium-3 .provider-logo.logo-placeholder {
        font-size: 13px;
    }

    .podium-2 .podium-name,
    .podium-3 .podium-name {
        width: 100%;
    }

    .podium-2 .podium-name a,
    .podium-3 .podium-name a {
        font-size: 15px;
    }
}

/* Phones: #1 full width, #2 and #3 side by side, no steps */
@media (max-width: 640px) {
    .podium-list {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "first first"
            "second third";
        align-items: stretch;
    }

    .podium-step {
        display: none;
    }

    .podium-card {
        height: 100%;
        gap: 9px;
        border-bottom: 1px solid rgba(var(--metal), var(--edge));
        border-radius: 12px;
    }

    .podium-1 .podium-card {
        gap: 10px;
    }

    .podium-rank {
        display: block;
        position: absolute;
        top: 12px;
        right: 14px;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        color: rgb(var(--metal));
    }

    .podium-1 .podium-name {
        padding-right: 28px;
    }

    .podium-1 .provider-logo {
        width: 44px;
        height: 44px;
    }

    .podium-1 .podium-name a {
        font-size: 17px;
    }

    /* #2/#3: compact (logo above name from the 900px rules), facts stacked,
       the whole card is the link */
    .podium-2 .provider-sub,
    .podium-3 .provider-sub,
    .podium-2 .podium-facts dt,
    .podium-3 .podium-facts dt,
    .podium-2 .button-visit,
    .podium-3 .button-visit {
        display: none;
    }

    .podium-2 .podium-rating,
    .podium-3 .podium-rating {
        font-size: 13px;
    }

    .podium-2 .podium-facts,
    .podium-3 .podium-facts {
        flex-direction: column;
        gap: 6px;
    }

    .podium-item:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .podium-item {
        transition: none;
    }

    .podium-item:hover {
        transform: none;
    }
}

/* Compare page */
.compare-heads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.compare-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.compare-head-text {
    flex: 1;
    min-width: 0;
}

.compare-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.summary-card {
    margin-bottom: 20px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
}

.summary-card h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 10px;
}

.summary-card ul {
    margin-left: 18px;
    display: grid;
    gap: 6px;
    color: var(--text-body);
    line-height: 1.6;
}

.compare-table {
    table-layout: fixed;
    min-width: 560px;
}

.compare-table col.c-label {
    width: 190px;
}

.compare-table tbody th {
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    white-space: normal;
}

.compare-table td {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.compare-table td.is-better {
    color: var(--kyc-0);
    font-weight: 600;
    background: rgba(63, 208, 168, 0.06);
}

.compare-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.kyc-card {
    --kyc: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--kyc);
    border-radius: var(--radius);
}

.kyc-border-0 { --kyc: var(--kyc-0); }
.kyc-border-1 { --kyc: var(--kyc-1); }
.kyc-border-2 { --kyc: var(--kyc-2); }
.kyc-border-3 { --kyc: var(--kyc-3); }
.kyc-border-4 { --kyc: var(--kyc-4); }

.kyc-card-level {
    font-size: 22px;
    font-weight: 700;
    color: var(--kyc);
    white-space: nowrap;
}

.kyc-card-label {
    font-weight: 600;
}

.source-excerpt {
    margin: 12px 0 0;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.source-excerpt p {
    font-style: italic;
}

.source-excerpt cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-size: 13px;
    word-break: break-all;
}

/* Level 1 ("no mention"): a statement, not a quote */
.source-excerpt-plain p {
    font-style: normal;
}

.source-excerpt cite:first-child {
    margin-top: 0;
}

.plans-table td,
.plans-table th {
    white-space: nowrap;
}

.meta-date {
    margin-top: 14px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 12px;
}

/* ---------- Outbound redirect page ---------- */
.redirect-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px 16px;
}

.redirect-card {
    width: 100%;
    max-width: 520px;
    padding: 32px 28px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
}

.redirect-logo {
    justify-content: center;
    margin-bottom: 28px;
}

/* Gradient arc with a glowing head orbiting a static logo mark */
.spinner {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
}

.spinner-track,
.spinner-arc,
.spinner-arc::before {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

/* Ring shape: keep only the outer 3px of the circle */
.spinner-track,
.spinner-arc::before {
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}

.spinner-track {
    background: var(--border);
}

/* The wrapper rotates and carries the glow; the gradient ring is on
   ::before so the mask doesn't clip the head dot or the glow. */
.spinner-arc {
    animation: spin 0.6s linear infinite;
    filter: drop-shadow(0 0 5px rgba(63, 208, 168, 0.6));
}

.spinner-arc::before {
    content: "";
    background: conic-gradient(from 0deg, transparent 0deg, rgba(63, 208, 168, 0.05) 90deg, rgba(63, 208, 168, 0.55) 240deg, var(--accent) 355deg, transparent 360deg);
}

/* Bright dot at the head of the arc (top center, where the gradient peaks) */
.spinner-arc::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 10px 3px rgba(63, 208, 168, 0.75);
}

.spinner-core {
    position: absolute;
    inset: 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--base-bg) 70%);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow: hidden;
    animation: core-pulse 1.6s ease-in-out infinite;
}

/* Provider logo inside the spinner, clipped to the circle */
.spinner-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

/* Fallback when the provider has no logo: same generated initials as elsewhere */
.spinner-core-initials {
    --ph-hue: 200;
    color: hsl(var(--ph-hue) 35% 75%);
    background: linear-gradient(135deg, hsl(var(--ph-hue) 22% 18%), hsl(var(--ph-hue) 18% 11%));
    border-color: hsl(var(--ph-hue) 20% 26%);
    font-size: 16px;
}

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

@keyframes core-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(63, 208, 168, 0); }
    50% { box-shadow: 0 0 18px 2px rgba(63, 208, 168, 0.22); }
}

/* The spinner is an essential progress cue, so it keeps spinning with
   reduced motion; only the decorative pulse is dropped. */
@media (prefers-reduced-motion: reduce) {
    .spinner-core {
        animation: none;
    }
}

.redirect-card h1 {
    font-size: 22px;
}

.redirect-host {
    margin-top: 6px;
    color: var(--accent);
    font-size: 14px;
}

.redirect-lead {
    margin-top: 12px;
    color: var(--text-muted);
}

.redirect-facts {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    text-align: left;
}

.redirect-facts li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--base-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.redirect-tips {
    margin-top: 20px;
    padding: 14px 16px;
    text-align: left;
    background: var(--base-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.redirect-tips h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.redirect-tips ul {
    margin-left: 18px;
    display: grid;
    gap: 6px;
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.55;
}

.redirect-tips strong {
    color: var(--text-primary);
}

.redirect-disclosure {
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--text-faint);
    line-height: 1.55;
}

.redirect-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* ---------- Guides ---------- */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: border-color 0.15s, transform 0.15s;
}

.guide-card:hover {
    border-color: rgba(63, 208, 168, 0.45);
    transform: translateY(-2px);
    text-decoration: none;
}

.guide-card-meta {
    font-size: 11.5px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.guide-card-title {
    font-size: 17px;
    font-weight: 650;
    line-height: 1.3;
}

.guide-card-desc {
    flex: 1;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-card-cta {
    font-size: 13px;
    color: var(--link);
}

.guide-header {
    max-width: 820px;
}

.guide-intro {
    font-size: 17.5px;
    line-height: 1.65;
    max-width: 72ch;
}

.guide-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.guide-toc {
    position: sticky;
    top: 84px;
    font-size: 13.5px;
}

.guide-toc summary {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
    cursor: pointer;
    margin-bottom: 10px;
    list-style: none;
}

.guide-toc summary::-webkit-details-marker {
    display: none;
}

.guide-toc ol {
    list-style: none;
    border-left: 2px solid var(--border);
    display: grid;
    gap: 2px;
}

.guide-toc a {
    display: block;
    padding: 5px 0 5px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--text-muted);
    line-height: 1.4;
}

.guide-toc a:hover {
    color: var(--text-primary);
    border-left-color: var(--accent);
    text-decoration: none;
}

.guide-article {
    max-width: 740px;
}

.guide-section {
    scroll-margin-top: 80px;
}

.guide-article h2 {
    font-size: 23px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.guide-article h3 {
    font-size: 17px;
    margin: 24px 0 8px;
}

.guide-article p,
.guide-list li {
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--text-body);
}

.guide-article p + p {
    margin-top: 16px;
}

.guide-article strong {
    color: var(--text-primary);
}

.guide-list {
    margin: 16px 0 16px 22px;
    display: grid;
    gap: 8px;
}

.guide-list li::marker {
    color: var(--accent);
}

.guide-article > * + * ,
.guide-section > * + * {
    margin-top: 16px;
}

.callout {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.callout strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 4px;
}

.callout p {
    font-size: 15px;
    margin: 0;
}

.callout-tip {
    border-left: 3px solid var(--accent);
}

.callout-tip strong {
    color: var(--accent);
}

.callout-warn {
    border-left: 3px solid var(--warn);
}

.callout-warn strong {
    color: var(--warn);
}

.guide-picks {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    overflow: hidden;
}

.guide-picks-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--surface-2);
    font-size: 12.5px;
    color: var(--text-muted);
}

.guide-picks-list {
    list-style: none;
}

.guide-picks-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.guide-pick-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.guide-pick-text a {
    color: var(--text-primary);
    font-weight: 600;
}

.guide-picks .star-rating {
    font-size: 13px;
}

.guide-meta {
    margin-top: 40px !important;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px !important;
    color: var(--text-faint) !important;
}

.related-guides-heading {
    margin-top: 18px;
}

.aside-links {
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 13.5px;
}

/* ---------- Statistics page ---------- */
.stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.stat-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat-tile-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.stat-tile-label {
    font-weight: 600;
    font-size: 14px;
}

.stat-tile-detail {
    font-size: 12.5px;
    color: var(--text-faint);
}

.findings-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.findings-list li {
    position: relative;
    padding: 12px 16px 12px 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-body);
    line-height: 1.55;
}

.findings-list li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--positive);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 0 28px;
}

.chart-card {
    min-width: 0;
}

/* Horizontal bar charts rendered as tables (the table is the accessible
   data view; values are direct-labelled so colour is never the only cue) */
.bar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.bar-table th,
.bar-table td {
    padding: 0;
    border: 0;
    background: none;
    vertical-align: middle;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.bar-table th {
    width: 44%;
    padding-right: 12px;
    font-size: 13.5px;
    color: var(--text-primary);
}

.bar-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.bar-cell {
    width: 40%;
}

.bar {
    display: block;
    min-width: 2px;
    height: 14px;
    border-radius: 0 4px 4px 0;
    background: var(--bar-neutral);
}

.kyc-bar {
    background: var(--kyc);
}

.bar-value {
    width: 16%;
    padding-left: 10px !important;
    font-size: 13px;
    white-space: nowrap;
    text-align: right;
}

.stat-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.stat-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    font-size: 14px;
}

.stat-list dt {
    color: var(--text-muted);
}

.stat-list dd {
    flex-shrink: 0;
    white-space: nowrap;
    text-align: right;
}

.cite-box {
    margin-top: 20px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-strong);
    border-radius: 8px;
}

.cite-box-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
}

.cite-box p {
    font-size: 13px !important;
    overflow-wrap: anywhere;
}

.list-summary {
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.list-summary strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ---------- Glossary ---------- */
.glossary-group {
    margin-bottom: 40px;
    scroll-margin-top: 80px;
}

.glossary-group > h2 {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

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

.glossary-term {
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    scroll-margin-top: 80px;
}

.glossary-term:target {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.glossary-term dt {
    font-weight: 650;
    font-size: 15.5px;
    margin-bottom: 4px;
}

.glossary-term dd {
    color: var(--text-body);
    line-height: 1.65;
}

.glossary-term dd a {
    text-decoration: underline;
    text-decoration-color: var(--link-underline);
    text-underline-offset: 3px;
}

.term-anchor {
    margin-left: 6px;
    color: var(--text-faint);
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.12s;
}

.glossary-term:hover .term-anchor,
.term-anchor:focus-visible {
    opacity: 1;
}

/* ---------- Score breakdown (provider page) ---------- */
.breakdown-table th[scope="row"] {
    background: none;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.breakdown-table th[scope="row"] a {
    color: var(--text-primary);
}

.breakdown-table tr.is-excluded td,
.breakdown-table tr.is-excluded th a {
    color: var(--text-faint);
}

.breakdown-table tfoot th,
.breakdown-table tfoot td {
    border-top: 1px solid var(--border-strong);
    border-bottom: 0;
    background: var(--surface-2);
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    font-size: 14px;
}

.cite-sep {
    margin: 0 6px;
    color: var(--text-faint);
}

/* ---------- Error pages ---------- */
.error-page {
    text-align: center;
    padding-top: 48px;
}

.error-page .subtitle {
    margin: 10px auto 28px;
}

.error-code {
    font-size: 64px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .guide-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .guide-toc {
        position: static;
        padding: 14px 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
    }

    .guide-toc summary {
        margin-bottom: 0;
    }

    .guide-toc details[open] summary {
        margin-bottom: 10px;
    }

    .provider-layout,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .provider-aside,
    .related-lists {
        position: static;
    }

    .provider-aside {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 900px) {
    /* Keep position + provider name visible while the table scrolls sideways */
    .providers-table th:nth-child(-n+2),
    .providers-table td:nth-child(-n+2) {
        position: sticky;
        z-index: 1;
    }

    .providers-table th:nth-child(1),
    .providers-table td:nth-child(1) {
        left: 0;
    }

    .providers-table th:nth-child(2),
    .providers-table td:nth-child(2) {
        /* 1px overlap with the rank column hides the sub-pixel seam between pinned cells */
        left: 55px;
        box-shadow: 1px 0 0 var(--border);
    }

    .providers-table col.c-rank {
        width: 56px;
    }

    .providers-table th:nth-child(-n+2) {
        background: var(--surface-2);
    }

    /* Column widths sum to the table min-width (1054px) so sticky offsets line up */
    .providers-table col.c-provider {
        width: 240px;
    }

    .providers-table tr.sponsored td:first-child {
        box-shadow: inset 3px 0 0 var(--warn), 1px 0 0 var(--border);
    }

    /* ---- Mobile menu: overlay panel under the sticky header ---- */
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 2;
        max-height: calc(100vh - 61px);
        overflow-y: auto;
        padding: 10px 16px 20px;
        background: var(--base-bg);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    }

    .nav-toggle-input:checked ~ .site-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .site-nav ul a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 14px;
        border-radius: 8px;
        color: var(--text-primary);
        font-size: 16px;
    }

    .site-nav ul a::after {
        content: "›";
        color: var(--text-faint);
        font-size: 20px;
        line-height: 1;
    }

    .site-nav ul a[aria-current="page"] {
        background: var(--surface-2);
        color: var(--accent);
        box-shadow: inset 3px 0 0 var(--accent);
    }

    .site-nav .nav-cta {
        margin-top: 12px;
    }

    .site-nav ul .cta {
        justify-content: center;
        margin: 0;
        padding: 14px;
        border-color: rgba(63, 208, 168, 0.5);
        background: var(--accent-dim);
        color: var(--accent);
        font-weight: 600;
    }

    .site-nav ul .cta::after {
        content: none;
    }

    .nav-extra {
        display: flex;
        gap: 22px;
        margin-top: 16px;
        padding: 16px 14px 0;
        border-top: 1px solid var(--border);
        font-size: 14px;
    }

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

    .nav-extra a[aria-current="page"] {
        color: var(--accent);
    }

    /* Dimmed backdrop; tapping it closes the menu (it's a label for the toggle) */
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 61px 0 0 0;
        z-index: 1;
        background: rgba(4, 7, 10, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.18s ease, visibility 0.18s;
    }

    .nav-toggle-input:checked ~ .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    body:has(.nav-toggle-input:checked) {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    /* ---- Provider table becomes a list of cards ---- */
    .table-wrapper {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .providers-table,
    .providers-table tbody {
        display: block;
        min-width: 0;
    }

    .providers-table colgroup,
    .providers-table thead {
        display: none;
    }

    .providers-table tbody {
        display: grid;
        gap: 10px;
    }

    .providers-table tbody tr {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) auto auto;
        grid-template-areas:
            "rank prov prov visit"
            ".    kyc  rating rating"
            ".    juris price crypto";
        align-items: center;
        gap: 12px 10px;
        padding: 14px 14px 14px 10px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    .providers-table tbody tr td,
    .providers-table tbody tr:nth-child(even) td,
    .providers-table tbody tr.row-link:hover td,
    .providers-table tr.sponsored td {
        display: block;
        position: static;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    /* Undo the pinned-column rules from the 900px breakpoint (same specificity,
       later in the file, so these win) */
    .providers-table td:nth-child(-n+2),
    .providers-table td:nth-child(1),
    .providers-table td:nth-child(2),
    .providers-table tr.sponsored td:first-child {
        position: static;
        left: auto;
        box-shadow: none;
    }

    .providers-table tbody tr.row-link:hover {
        border-color: var(--border-strong);
    }

    .providers-table tbody tr.sponsored {
        background: var(--sponsored-bg);
        border-color: rgba(245, 165, 36, 0.4);
    }

    .providers-table .rank-cell { grid-area: rank; padding: 0; }
    .providers-table .cell-provider { grid-area: prov; }
    .providers-table .visit-cell { grid-area: visit; }
    .providers-table .cell-kyc { grid-area: kyc; }
    .providers-table .cell-rating { grid-area: rating; justify-self: end; }
    .providers-table .cell-juris { grid-area: juris; min-width: 0; }
    .providers-table .cell-price { grid-area: price; text-align: left; }
    .providers-table .cell-crypto { grid-area: crypto; justify-self: end; }

    .providers-table .rank {
        font-size: 14px;
    }

    .providers-table .provider-name-cell a {
        font-size: 16px;
    }

    .juris-name {
        display: inline;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        color: var(--text-muted);
    }

    .juris-cell {
        gap: 8px;
        min-width: 0;
    }

    .juris-cell .flag {
        width: 22px;
        height: 16px;
    }

    .mobile-sort {
        display: block;
    }

    .guide-picks-list li {
        flex-wrap: wrap;
    }

    .guide-picks .star-rating {
        order: 5;
        width: 100%;
        padding-left: 36px;
    }

    .guide-article p,
    .guide-list li {
        font-size: 15.5px;
    }

    .pros-cons,
    .compare-heads {
        grid-template-columns: 1fr;
    }

    .timeline li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .provider-heading {
        gap: 14px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    body {
        font-size: 14px;
    }

    main {
        padding: 28px 0 48px;
    }

    .table-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .table-controls #search,
    .table-controls .filter-panel {
        grid-column: 1 / -1;
    }

    .table-controls select {
        width: 100%;
        font-size: 13.5px;
    }

    .table-controls select {
        min-width: 0;
    }

    .filter-toggle {
        width: 100%;
        justify-content: center;
    }

    .filter-body {
        flex-direction: column;
    }

    th,
    td {
        padding: 10px 12px;
    }

    .provider-logo-large {
        width: 52px;
        height: 52px;
    }

    .kyc-level,
    .score-component {
        gap: 14px;
    }


    .card-form {
        padding: 18px;
    }

}

/* ---------- Host Finder (chat widget + /finder page) ---------- */
/* Launcher: dark glass pill with a mint gradient edge. One soft sheen after
   load, a tiny live dot, and a richer hover; no constant motion. */
.finder-launcher {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 18px 7px 7px;
    border-radius: 999px;
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, rgba(28, 38, 51, 0.96), rgba(17, 24, 33, 0.96)) padding-box,
        linear-gradient(135deg, rgba(95, 224, 187, 0.9), rgba(63, 208, 168, 0.12) 45%, rgba(111, 220, 189, 0.55)) border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 26px rgba(63, 208, 168, 0.12);
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.7s ease;
    animation: finder-launch-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}

/* Sheen: sweeps across once after load, and again on hover */
.finder-launcher::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(200, 251, 236, 0.14) 48%, transparent 66%);
    transform: translateX(-120%);
    animation: finder-sheen 1.3s ease-out 1.6s 1 both;
    pointer-events: none;
}

.finder-launcher:hover {
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.58), 0 0 32px rgba(63, 208, 168, 0.22);
}

.finder-launcher:hover::after {
    animation: finder-sheen-hover 1.6s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

.finder-launcher:active {
    transform: translateY(-1px) scale(0.99);
    transition-duration: 0.2s;
}

.finder-launcher:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.finder-launcher-icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%),
        linear-gradient(145deg, var(--accent-hover), var(--accent));
    color: var(--on-accent);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 4px 12px rgba(63, 208, 168, 0.3);
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.finder-launcher-icon .icon {
    width: 19px;
    height: 19px;
}

.finder-launcher:hover .finder-launcher-icon {
    transform: rotate(-6deg) scale(1.03);
}

/* "Online" dot on the icon; pulses a few times after load, then rests */
.finder-launcher-dot {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--positive);
    box-shadow: 0 0 0 2px #151d27;
    animation: finder-dot-pulse 2.4s ease-out 1.4s 4;
}

.finder-launcher-text {
    display: grid;
    gap: 1px;
    line-height: 1.2;
    text-align: left;
}

.finder-launcher-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.finder-launcher-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    transition: color 0.6s ease;
}

.finder-launcher:hover .finder-launcher-sub {
    color: var(--accent-bright);
}

.finder-launcher-arrow {
    width: 0;
    margin-left: -6px;
    opacity: 0;
    color: var(--accent);
    font-weight: 700;
    transform: translateX(-6px);
    transition: width 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), margin 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.5s ease 0.1s, transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.finder-launcher:hover .finder-launcher-arrow,
.finder-launcher:focus-visible .finder-launcher-arrow {
    width: 14px;
    margin-left: 0;
    opacity: 1;
    transform: none;
}

@keyframes finder-launch-in {
    from { opacity: 0; transform: translateY(18px) scale(0.92); }
    to { opacity: 1; transform: none; }
}

@keyframes finder-sheen {
    to { transform: translateX(120%); }
}

@keyframes finder-sheen-hover {
    from { transform: translateX(-120%); }
    to { transform: translateX(120%); }
}

@keyframes finder-dot-pulse {
    0% { box-shadow: 0 0 0 2px #151d27, 0 0 0 2px rgba(92, 201, 138, 0.55); }
    70%, 100% { box-shadow: 0 0 0 2px #151d27, 0 0 0 9px rgba(92, 201, 138, 0); }
}

/* One-time teaser bubble above the launcher */
.finder-teaser {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(max(20px, env(safe-area-inset-bottom)) + 70px);
    z-index: 60;
    display: flex;
    align-items: flex-start;
    gap: 2px;
    max-width: 300px;
    padding: 12px 8px 12px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 16px 16px 4px 16px;
    background: color-mix(in srgb, var(--surface-2) 96%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    transform-origin: bottom right;
    animation: finder-teaser-in 0.45s cubic-bezier(0.18, 0.9, 0.28, 1.15) both;
}

.finder-teaser[hidden] {
    display: none;
}

.finder-teaser.is-leaving {
    animation: finder-teaser-out 0.2s ease-in forwards;
}

.finder-teaser-body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}

.finder-teaser-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid rgba(63, 208, 168, 0.4);
    color: var(--accent);
}

.finder-teaser-avatar .icon {
    width: 15px;
    height: 15px;
}

.finder-teaser-text {
    display: grid;
    gap: 2px;
}

.finder-teaser-text strong {
    color: var(--text-primary);
    font-size: 13.5px;
}

.finder-teaser-body:hover .finder-teaser-text strong {
    color: var(--accent-bright);
}

/* Typing dots first, then the message */
.finder-teaser-dots {
    display: none;
    gap: 4px;
    align-self: center;
    padding: 4px 2px;
}

.finder-teaser-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: fm-dot 1.1s infinite ease-in-out;
}

.finder-teaser-dots span:nth-child(2) { animation-delay: 0.16s; }
.finder-teaser-dots span:nth-child(3) { animation-delay: 0.32s; }
.finder-teaser.is-typing .finder-teaser-dots { display: flex; }
.finder-teaser.is-typing .finder-teaser-text { display: none; }
.finder-teaser:not(.is-typing) .finder-teaser-text { animation: fm-fade 0.3s ease-out both; }

.finder-teaser-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: -4px 0 0 4px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--text-faint);
    cursor: pointer;
}

.finder-teaser-close:hover {
    color: var(--text-primary);
    background: var(--surface);
}

.finder-teaser-close .icon {
    width: 14px;
    height: 14px;
}

@keyframes finder-teaser-in {
    from { opacity: 0; transform: translateY(10px) scale(0.92); }
    to { opacity: 1; transform: none; }
}

@keyframes finder-teaser-out {
    to { opacity: 0; transform: translateY(6px) scale(0.96); }
}

.finder-open .finder-launcher,
.finder-open .finder-teaser,
body:has(.nav-toggle-input:checked) .finder-launcher,
body:has(.nav-toggle-input:checked) .finder-teaser {
    display: none;
}

.finder-panel {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 61;
    display: flex;
    flex-direction: column;
    width: 404px;
    height: min(660px, calc(100vh - 40px));
    height: min(660px, calc(100dvh - 40px));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    overflow: hidden;
    transform-origin: calc(100% - 40px) calc(100% - 24px);
    animation: finder-open 0.38s cubic-bezier(0.18, 0.9, 0.28, 1.12);
}

.finder-panel[hidden] {
    display: none;
}

.finder-panel.is-closing {
    animation: finder-close 0.16s ease-in forwards;
}

@keyframes finder-open {
    from { opacity: 0; transform: translateY(18px) scale(0.9); }
    to { opacity: 1; transform: none; }
}

@keyframes finder-close {
    to { opacity: 0; transform: translateY(12px) scale(0.94); }
}

.finder-panel-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 60%, var(--surface)));
    border-bottom: 1px solid var(--border);
}

.finder-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid rgba(63, 208, 168, 0.45);
    color: var(--accent);
    flex: 0 0 auto;
}

.finder-avatar::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
}

.finder-panel.is-working .finder-avatar::after {
    opacity: 1;
    animation: finder-spin 0.9s linear infinite;
}

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

.finder-avatar .icon {
    width: 19px;
    height: 19px;
}

.finder-head-text {
    min-width: 0;
}

.finder-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.3;
}

.finder-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finder-status-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--positive);
    box-shadow: 0 0 0 0 rgba(92, 201, 138, 0.5);
    animation: finder-live 2s ease-out infinite;
}

@keyframes finder-live {
    0% { box-shadow: 0 0 0 0 rgba(92, 201, 138, 0.5); }
    80%, 100% { box-shadow: 0 0 0 6px rgba(92, 201, 138, 0); }
}

.finder-close {
    margin-left: auto;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.finder-close:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: var(--surface);
}

.finder-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: transparent;
}

.finder-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    box-shadow: 0 0 10px rgba(63, 208, 168, 0.6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.finder-log {
    position: relative;
    scroll-behavior: smooth;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px 20px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 16px);
}

.finder-log > * {
    flex: 0 0 auto;
}

.fm {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    max-width: 86%;
    animation: fm-in-left 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    transform-origin: bottom left;
}

.fm-user {
    align-self: flex-end;
    flex-direction: row-reverse;
    transform-origin: bottom right;
    animation-name: fm-in-right;
}

@keyframes fm-in-left {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes fm-in-right {
    from { opacity: 0; transform: translate(10px, 6px) scale(0.94); }
    to { opacity: 1; transform: none; }
}

.fm-bubble {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 16px;
    overflow-wrap: anywhere;
}

.fm-bot .fm-bubble {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 5px;
}

.fm-user .fm-bubble {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    border-bottom-right-radius: 5px;
}

.fm-word {
    animation: fm-word 0.28s ease-out both;
}

@keyframes fm-word {
    from { opacity: 0; filter: blur(3px); }
    to { opacity: 1; filter: none; }
}

.fm-caret {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
    animation: fm-caret 0.8s ease-in-out infinite;
}

@keyframes fm-caret {
    50% { opacity: 0.25; transform: scale(0.7); }
}

.fm-change {
    border: 0;
    background: none;
    color: var(--text-faint);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}

.fm-user:hover .fm-change,
.fm-change:focus-visible {
    opacity: 1;
}

.fm-change:hover {
    color: var(--link);
    text-decoration: underline;
}

.fm-typing .fm-bubble {
    display: flex;
    gap: 5px;
    padding: 14px 16px;
}

.fm-typing.is-leaving {
    animation: fm-out 0.12s ease-in forwards;
}

@keyframes fm-out {
    to { opacity: 0; transform: scale(0.94); }
}

.fm-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: fm-dot 1.1s infinite ease-in-out;
}

.fm-dot:nth-child(2) { animation-delay: 0.16s; }
.fm-dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes fm-dot {
    0%, 60%, 100% { opacity: 0.3; transform: none; }
    30% { opacity: 1; transform: translateY(-4px); background: var(--accent); }
}

/* Thinking block: real filtering steps */
.fm-think-row {
    max-width: 100%;
    width: 100%;
}

.fm-think {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--base-bg) 70%, transparent);
    font-family: var(--font-mono);
    font-size: 12px;
    transition: border-color 0.3s;
}

.fm-think.is-done {
    border-color: rgba(63, 208, 168, 0.3);
}

.fm-think-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.fm-think-title .icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    animation: fm-pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.4);
}

.fm-spinner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    border-top-color: var(--accent);
    animation: finder-spin 0.7s linear infinite;
}

.fm-think-steps {
    list-style: none;
    display: grid;
    gap: 5px;
    margin-top: 9px;
    padding-left: 2px;
}

.fm-think-steps li {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    animation: fm-in-left 0.25s ease-out both;
}

.fm-think-mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--text-faint);
    justify-self: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.fm-think-steps li.is-active .fm-think-mark {
    border-color: var(--accent);
    animation: fm-caret 0.8s ease-in-out infinite;
}

.fm-think-steps li.is-done .fm-think-mark {
    background: var(--accent);
    border-color: var(--accent);
}

.fm-think-steps li.is-done {
    color: var(--text-body);
}

.fm-think-count {
    color: var(--accent);
}

@keyframes fm-pop {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* Reply chips (the "composer" area) */
.finder-replies {
    flex: 0 0 auto;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 50%, var(--surface)));
}

.finder-replies:empty {
    display: none;
}

.fm-hint {
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    animation: fm-fade 0.3s ease-out both;
}

.fm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fm-reply {
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid rgba(63, 208, 168, 0.45);
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    color: var(--accent-bright);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.15s;
    animation: fm-chip-in 0.36s cubic-bezier(0.2, 0.8, 0.2, 1.1) both;
    animation-delay: calc(var(--i, 0) * 55ms);
}

.fm-reply:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent-bright);
    text-decoration: none;
    transform: translateY(-1px);
}

.fm-reply:active {
    transform: scale(0.96);
}

.fm-reply.is-picked {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
    animation: fm-picked 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fm-reply.is-leaving {
    animation: fm-chip-out 0.14s ease-in forwards;
}

@keyframes fm-chip-in {
    from { opacity: 0; transform: translateY(10px) scale(0.94); }
    to { opacity: 1; transform: none; }
}

@keyframes fm-chip-out {
    to { opacity: 0; transform: scale(0.9); }
}

@keyframes fm-picked {
    40% { transform: scale(1.05); }
    100% { transform: translateY(-14px) scale(0.96); opacity: 0; }
}

@keyframes fm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fm-reply-ghost {
    border-color: var(--border-strong);
    background: transparent;
    color: var(--text-muted);
}

.fm-reply-ghost:hover {
    background: var(--surface-2);
    border-color: var(--text-faint);
    color: var(--text-primary);
}

/* Result card */
.fm-card {
    position: relative;
    padding: 16px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(63, 208, 168, 0.1), transparent 60%),
        var(--base-bg);
    border: 1px solid rgba(63, 208, 168, 0.45);
    border-radius: 16px;
    box-shadow: 0 0 0 4px var(--accent-dim), 0 12px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: fm-card-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.05) both;
}

.fm-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(200, 251, 236, 0.09) 50%, transparent 65%);
    transform: translateX(-100%);
    animation: fm-shine 1.1s ease-out 0.35s forwards;
    pointer-events: none;
}

@keyframes fm-card-in {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes fm-shine {
    to { transform: translateX(100%); }
}

.fm-card-label,
.fm-also-label,
.finder-card-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.finder-card-label {
    margin-bottom: 10px;
}

.fm-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fm-card-head .provider-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.fm-card-titles {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.fm-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.fm-card-ad {
    position: absolute;
    top: 14px;
    right: 14px;
}

.fm-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
}

.fm-stat {
    display: grid;
    gap: 3px;
    padding: 8px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.fm-stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.fm-stat-value {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.fm-star {
    color: var(--warn);
}

.fm-card-rating,
.finder-rating {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--warn);
}

.fm-reasons,
.finder-reasons {
    list-style: none;
    display: grid;
    gap: 7px;
    margin: 14px 0 16px;
    font-size: 13px;
}

.fm-reasons li,
.finder-reasons li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-body);
}

.fm-reasons li {
    animation: fm-in-left 0.3s ease-out both;
    animation-delay: calc(250ms + var(--i, 0) * 70ms);
}

.fm-reasons .icon,
.finder-reasons .icon {
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
}

.fm-reasons .is-ok .icon,
.finder-reasons .is-ok .icon {
    color: var(--positive);
}

.fm-reasons .is-miss,
.finder-reasons .is-miss {
    color: var(--text-muted);
}

.fm-reasons .is-miss .icon,
.finder-reasons .is-miss .icon {
    color: var(--warn);
}

.fm-card-actions,
.finder-actions {
    display: flex;
    gap: 8px;
}

.fm-card-actions .button {
    flex: 1;
    padding: 9px 12px;
    border-radius: 10px;
}

.fm-card-actions .icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
}

.fm-also {
    display: grid;
    gap: 6px;
    margin-top: 4px;
    animation: fm-in-left 0.35s ease-out 0.5s both;
}

.fm-also-label {
    color: var(--text-muted);
    margin-bottom: 2px;
}

.fm-also-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

.fm-also-row:hover {
    border-color: var(--border-strong);
    background: var(--row-hover);
    text-decoration: none;
    transform: translateX(2px);
}

.fm-also-row .provider-logo {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.fm-also-name {
    font-weight: 600;
    margin-right: auto;
}

.fm-also-price {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

/* Restored history renders without motion */
.no-anim,
.no-anim *,
.no-anim::after {
    animation: none !important;
}

/* /finder page (no-JS fallback and "see all matches") */
.finder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-bottom: 64px;
}

.finder-form {
    display: grid;
    gap: 22px;
    justify-items: start;
}

.finder-q {
    border: 0;
    width: 100%;
}

.finder-q legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.finder-q-num {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.finder-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.finder-choice {
    position: relative;
    cursor: pointer;
}

.finder-choice input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.finder-choice span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--text-body);
    font-size: 14px;
}

.finder-choice:hover span {
    border-color: var(--text-faint);
}

.finder-choice input:checked + span {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent-bright);
}

.finder-choice input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.finder-results h2 {
    margin-bottom: 12px;
}

.finder-relaxed {
    color: var(--warn);
    font-size: 14px;
    margin-bottom: 14px;
}

.finder-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.finder-card {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.finder-card.is-top {
    border-color: rgba(63, 208, 168, 0.45);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.finder-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.finder-actions .button {
    padding: 8px 14px;
}

@media (max-width: 900px) {
    .finder-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    /* Icon-only on phones; the label stays for screen readers */
    .finder-launcher {
        padding: 6px;
        gap: 0;
    }

    .finder-launcher-icon {
        width: 46px;
        height: 46px;
    }

    .finder-launcher-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .finder-launcher-arrow {
        display: none;
    }

    .finder-teaser {
        max-width: calc(100vw - 40px - env(safe-area-inset-left));
        bottom: calc(max(20px, env(safe-area-inset-bottom)) + 70px);
    }

    .finder-panel {
        inset: auto 0 0 0;
        width: 100%;
        height: 92vh;
        height: 92dvh;
        border-radius: 20px 20px 0 0;
        border-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom);
        transform-origin: bottom center;
        animation-name: finder-sheet-in;
    }

    .finder-panel.is-closing {
        animation-name: finder-sheet-out;
    }

    .finder-open,
    .finder-open body {
        overflow: hidden;
    }

    .fm {
        max-width: 92%;
    }

    .fm-change {
        opacity: 1;
    }
}

@keyframes finder-sheet-in {
    from { transform: translateY(100%); }
    to { transform: none; }
}

@keyframes finder-sheet-out {
    to { transform: translateY(100%); }
}

/* Reduced motion: same pacing, but fades instead of movement */
@keyframes fm-fade-out {
    to { opacity: 0; }
}

@keyframes fm-dot-calm {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; background: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
    .finder-launcher,
    .finder-panel,
    .fm,
    .fm-card,
    .fm-also,
    .fm-reply,
    .fm-reasons li,
    .fm-think-steps li,
    .fm-think-title .icon {
        animation-name: fm-fade !important;
    }

    .finder-panel.is-closing,
    .fm-typing.is-leaving,
    .fm-reply.is-picked,
    .fm-reply.is-leaving {
        animation-name: fm-fade-out !important;
    }

    .fm-dot {
        animation-name: fm-dot-calm !important;
    }

    .finder-launcher::after,
    .finder-launcher-dot,
    .fm-card::after,
    .fm-word {
        animation: none !important;
    }

    .finder-teaser {
        animation-name: fm-fade !important;
    }

    .finder-launcher-icon,
    .finder-launcher-arrow {
        transition: opacity 0.2s !important;
    }

    .finder-launcher:hover .finder-launcher-icon {
        transform: none;
    }

    .finder-log {
        scroll-behavior: auto;
    }

    .finder-launcher,
    .fm-reply,
    .fm-also-row,
    .finder-progress-fill {
        transition-property: background-color, border-color, color, opacity !important;
    }
}

/* ---------- Ambient background (public pages) ----------
   Shader-like depth in pure CSS: a few huge, very faint glows that drift
   slowly (90s), fine film grain and a soft vignette, all behind the content.
   Static on phones and for reduced motion; never used in the admin. */
body:not(.adm-body)::before {
    content: "";
    position: fixed;
    inset: -25vmax; /* oversized so drifting never reveals an edge */
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(40vmax 30vmax at 30% 26%, rgba(63, 208, 168, 0.14), transparent 70%),
        radial-gradient(36vmax 28vmax at 76% 30%, rgba(91, 141, 239, 0.1), transparent 70%),
        radial-gradient(46vmax 32vmax at 58% 78%, rgba(63, 208, 168, 0.07), transparent 70%),
        radial-gradient(32vmax 24vmax at 24% 72%, rgba(140, 110, 230, 0.05), transparent 70%);
    animation: ambient-drift 90s ease-in-out infinite alternate;
    will-change: transform;
}

/* Soft vignette */
body:not(.adm-body)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 35%, transparent 50%, rgba(0, 0, 0, 0.38) 100%);
}

/* Film grain: barely there, just enough to stop gradients looking flat */
html:has(body:not(.adm-body))::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px;
    opacity: 0.07;
}

@keyframes ambient-drift {
    0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    50% { transform: translate3d(3vmax, -2vmax, 0) rotate(6deg) scale(1.06); }
    100% { transform: translate3d(-2.5vmax, 2.5vmax, 0) rotate(-5deg) scale(1.02); }
}

@media (max-width: 640px), (prefers-reduced-motion: reduce) {
    body:not(.adm-body)::before {
        animation: none;
        will-change: auto;
    }
}

/* Payment tags (Crypto / Monero / Fiat) with the exact methods on hover */
.pay-tags .chip[title] {
    cursor: help;
}
