/* =========================================================
   TRUSTER — components CSS
   ========================================================= */

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Topbar ────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
  display: flex; align-items: center;
}
.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  width: 100%;
}
.topbar__nav { display: flex; gap: 4px; }
.topbar__nav a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: background .12s, color .12s;
  cursor: pointer;
  white-space: nowrap;
}
@media (max-width: 1040px) {
  .topbar__nav a:not([data-active="true"]) { display: none; }
}
.topbar__nav a:hover { background: var(--surface-2); color: var(--text); }
.topbar__nav a[data-active="true"] { background: var(--brand-50); color: var(--brand-700); }
.topbar__actions { display: flex; gap: 8px; align-items: center; }

/* ── Logo ──────────────────────────────────────────── */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.logo__mark {
  width: 32px; height: 32px;
  background: var(--brand-500);
  border-radius: 9px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 4px 10px -4px var(--brand-500);
  position: relative;
}
.logo__wordmark {
  font-weight: 800; font-size: 20px;
  letter-spacing: -.025em; color: var(--text);
}
.logo__wordmark::after {
  content: ".";
  color: var(--brand-500);
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: var(--r-md);
  transition: transform .12s, background .15s, box-shadow .15s, border-color .15s, color .15s;
  white-space: nowrap; user-select: none; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand-500); color: #fff;
  box-shadow: 0 10px 24px -10px var(--brand-500), inset 0 -1px 0 rgba(0,0,0,.08);
}
.btn--primary:hover { background: var(--brand-600); }
.btn--ghost  { background: var(--surface-2); color: var(--text); }
.btn--ghost:hover { background: var(--border); }
.btn--line   { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn--line:hover { border-color: var(--border-strong); }
.btn--sm { padding: 6px 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--xl { padding: 16px 28px; font-size: 16px; border-radius: var(--r-lg); }
.btn--icon { padding: 0; width: 38px; height: 38px; }

/* ── Inputs ────────────────────────────────────────── */
.input, .textarea, .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 15px; color: var(--text);
  outline: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-strong); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand-500); box-shadow: var(--ring);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }

/* ── Stars ─────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; align-items: center; }
.stars--md .star { width: 22px; height: 22px; border-radius: 3px; }
.stars--sm .star { width: 16px; height: 16px; border-radius: 2.5px; }
.stars--lg .star { width: 28px; height: 28px; border-radius: 4px; }
.stars--xl .star { width: 36px; height: 36px; border-radius: 5px; }
.star {
  background: var(--star-off);
  position: relative;
  flex: none;
  display: grid; place-items: center;
}
.star[data-on="true"] { background: var(--brand-500); }
.star svg { width: 70%; height: 70%; color: #fff; }
.stars__num {
  margin-left: 8px;
  font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: 18px; color: var(--text);
  letter-spacing: -.01em;
}
.stars__num small {
  font-weight: 600; color: var(--text-3); font-size: 13px;
}

/* Star rating input */
.starpicker { display: inline-flex; gap: 6px; }
.starpicker .star {
  width: 48px; height: 48px; border-radius: 8px;
  cursor: pointer;
  transition: transform .12s, background .12s;
}
.starpicker .star:hover { transform: translateY(-2px); }

/* ── Trust score gauge ────────────────────────────── */
.gauge-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.gauge-wrap__label {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-3);
  white-space: nowrap;
}
.gauge { position: relative; display: inline-block; }
.gauge svg { display: block; }
.gauge__num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1;
}
.gauge__num b {
  color: var(--text);
  line-height: 1;
}
.gauge__num small {
  margin-top: 4px; font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0;
  white-space: nowrap;
}
.gauge[data-tier="excellent"] .gauge__ring { stroke: var(--trust-excellent); }
.gauge[data-tier="great"]     .gauge__ring { stroke: var(--trust-great); }
.gauge[data-tier="average"]   .gauge__ring { stroke: var(--trust-average); }
.gauge[data-tier="poor"]      .gauge__ring { stroke: var(--trust-poor); }
.gauge[data-tier="bad"]       .gauge__ring { stroke: var(--trust-bad); }
.gauge__track { stroke: var(--surface-2); }

/* ── Trust tier chip ──────────────────────────────── */
.tier-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800;
  padding: 5px 11px; border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: .05em;
}
.tier-chip[data-tier="excellent"] { background: var(--verdict-safe-bg); color: var(--trust-excellent); }
.tier-chip[data-tier="great"]     { background: var(--verdict-safe-bg); color: var(--trust-great); }
.tier-chip[data-tier="average"]   { background: var(--verdict-warn-bg); color: var(--verdict-warn-ink); }
.tier-chip[data-tier="poor"]      { background: var(--verdict-warn-bg); color: var(--trust-poor); }
.tier-chip[data-tier="bad"]       { background: var(--verdict-spam-bg); color: var(--trust-bad); }
.tier-chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}

/* ── Card primitive ───────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}
.card--padlg { padding: calc(28px * var(--dens)); }

/* ── Site row (list result) ───────────────────────── */
.siterow {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.siterow:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.siterow__favicon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-weight: 800; color: var(--text-2);
  font-size: 18px;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.siterow__main { min-width: 0; }
.siterow__domain {
  font-weight: 800; font-size: 16px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -.01em;
}
.siterow__cat {
  font-size: 12px; color: var(--text-3); margin-top: 3px;
  display: flex; gap: 8px; align-items: center;
}
.siterow__cat .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.siterow__stars { text-align: right; }
.siterow__score {
  text-align: right;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 24px;
  letter-spacing: -.02em;
}
.siterow__score small {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3); margin-top: 2px;
}
.siterow__score[data-tier="excellent"] { color: var(--trust-excellent); }
.siterow__score[data-tier="great"]     { color: var(--trust-great); }
.siterow__score[data-tier="average"]   { color: var(--trust-average); }
.siterow__score[data-tier="poor"]      { color: var(--trust-poor); }
.siterow__score[data-tier="bad"]       { color: var(--trust-bad); }

/* ── Hero search ──────────────────────────────────── */
.hero {
  background:
    radial-gradient(80% 80% at 80% 0%, color-mix(in oklch, var(--brand-500) 12%, transparent), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, color-mix(in oklch, var(--brand-500) 8%, transparent), transparent 60%),
    var(--bg);
  padding: 80px 0 70px;
  border-bottom: 1px solid var(--border);
}
.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0 0 14px;
  text-wrap: balance;
  max-width: 18ch;
}
.hero__title em {
  font-style: normal; color: var(--brand-500);
}
.hero__sub {
  font-size: 17px; color: var(--text-2);
  max-width: 56ch; margin: 0 0 32px;
  text-wrap: pretty;
}
.searchbox {
  position: relative;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 22px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px; align-items: center;
  box-shadow: var(--shadow-md);
  transition: box-shadow .15s, border-color .15s;
}
.searchbox:focus-within {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-lg), var(--ring);
}
.searchbox input {
  border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--text); height: 44px;
  width: 100%;
}
.searchbox input::placeholder { color: var(--text-3); }
.searchbox__btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--brand-500); color: #fff;
  font-weight: 700; font-size: 14px;
  transition: background .15s;
}
.searchbox__btn:hover { background: var(--brand-600); }

/* Autocomplete dropdown */
.autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 20;
}
.autocomplete__group {
  padding: 8px 6px;
}
.autocomplete__label {
  padding: 6px 14px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3);
}
.autocomplete__item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--r-md);
  cursor: pointer;
  transition: background .12s;
}
.autocomplete__item:hover,
.autocomplete__item[data-active="true"] {
  background: var(--surface-2);
}
.autocomplete__favicon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: var(--text-2);
}
.autocomplete__name {
  font-weight: 700; font-size: 14px; color: var(--text);
}
.autocomplete__cat {
  font-size: 12px; color: var(--text-3);
}
.autocomplete__score {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.autocomplete__empty {
  padding: 24px; text-align: center; color: var(--text-3);
}
.autocomplete__empty b { color: var(--text); }

/* ── Hero stats strip ─────────────────────────────── */
.hero__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero__stat .n {
  font-family: var(--font-mono);
  font-size: 28px; font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.hero__stat .l {
  font-size: 13px; color: var(--text-3); margin-top: 4px;
}
@media (max-width: 700px) {
  .hero__strip { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ── Section ──────────────────────────────────────── */
.section { padding: 64px 0; }
.section__head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
}
.section__head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800; letter-spacing: -.025em;
}
.section__head p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }

/* ── Category chips ────────────────────────────────── */
.catchips { display: flex; gap: 8px; flex-wrap: wrap; }
.catchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px;
  cursor: pointer; color: var(--text-2);
  transition: all .12s;
}
.catchip:hover { border-color: var(--border-strong); color: var(--text); }
.catchip[data-active="true"] {
  background: var(--brand-500); color: #fff; border-color: var(--brand-500);
}
.catchip__icon {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  color: var(--brand-500);
}
.catchip[data-active="true"] .catchip__icon { color: #fff; }

/* ── Two-col layout (profile) ─────────────────────── */
.cols {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) {
  .cols { grid-template-columns: 1fr; }
}

/* ── Profile hero ─────────────────────────────────── */
.phead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px;
  position: relative; overflow: hidden;
}
.phead::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 100% at 100% 0%,
    color-mix(in oklch, var(--brand-500) 12%, transparent), transparent 60%);
  pointer-events: none;
}
.phead__inner { position: relative; display: grid; grid-template-columns: 80px 1fr auto; gap: 22px; align-items: center; }
.phead__favicon {
  width: 80px; height: 80px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-weight: 800; font-size: 32px;
  color: var(--brand-700); text-transform: uppercase;
  letter-spacing: -.04em;
  box-shadow: var(--shadow-sm);
}
.phead__main h1 {
  margin: 0; font-size: 32px; font-weight: 800;
  letter-spacing: -.03em;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.phead__domain {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--text-2); margin-top: 4px;
}
.phead__chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 800;
  color: var(--brand-700); background: var(--brand-50);
  padding: 4px 10px; border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: .05em;
}
.verified svg { width: 12px; height: 12px; }

.phead__score {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 200px;
}
.phead__score .stars { flex-wrap: nowrap; }
.phead__score .stars__num { white-space: nowrap; }
@media (max-width: 760px) {
  .phead__inner { grid-template-columns: 64px 1fr; }
  .phead__favicon { width: 64px; height: 64px; font-size: 24px; }
  .phead__score { grid-column: 1 / -1; min-width: 0; }
}

/* ── Metrics grid ─────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  transition: border-color .15s, transform .15s;
}
.metric:hover { border-color: var(--border-strong); }
.metric__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .05em;
}
.metric__icon {
  width: 28px; height: 28px;
  background: var(--surface-2);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--brand-700);
}
.metric__value {
  font-family: var(--font-mono);
  font-size: 24px; font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.metric__sub { font-size: 12px; color: var(--text-3); }
.metric__chart { height: 36px; margin-top: 4px; }
.metric[data-status="ok"]   .metric__icon { color: var(--trust-excellent); background: var(--verdict-safe-bg); }
.metric[data-status="warn"] .metric__icon { color: var(--verdict-warn-ink); background: var(--verdict-warn-bg); }
.metric[data-status="bad"]  .metric__icon { color: var(--trust-bad); background: var(--verdict-spam-bg); }
.metric__bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.metric__bar > span { display: block; height: 100%; background: var(--brand-500); transition: width .5s var(--ease-out); }

/* ── Tabs ─────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tabs button {
  padding: 12px 16px; font-size: 14px; font-weight: 700;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.tabs button:hover { color: var(--text-2); }
.tabs button[data-active="true"] {
  color: var(--text); border-color: var(--brand-500);
}
.tabs__count {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--text-2);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

/* ── Toolbar (filter/sort) ────────────────────────── */
.toolbar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.toolbar__group { display: flex; gap: 6px; align-items: center; }
.toolbar__label { font-size: 13px; color: var(--text-3); font-weight: 600; }
.chip-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  transition: all .12s;
}
.chip-toggle:hover { border-color: var(--border-strong); }
.chip-toggle[data-active="true"] {
  background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-500);
}
.toolbar .select { width: auto; padding: 8px 14px; font-size: 14px; }

/* ── Review card ──────────────────────────────────── */
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px; row-gap: 12px;
  position: relative;
}
.review__avatar {
  grid-row: 1 / 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #fff;
  font-size: 16px;
  letter-spacing: -.02em;
}
.review__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}
.review__author {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text);
  flex-wrap: wrap;
}
.review__author small {
  font-weight: 600; color: var(--text-3); font-size: 13px;
}
.review__rev-count {
  font-size: 12px; color: var(--text-3); margin-top: 2px;
}
.review__meta {
  text-align: right; font-size: 12px; color: var(--text-3);
  white-space: nowrap;
}
.review__body {
  grid-column: 2;
}
.review__rating { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.review__date {
  font-size: 12px; color: var(--text-3);
}
.review__title {
  font-weight: 800; font-size: 17px; letter-spacing: -.015em;
  margin: 4px 0 6px; color: var(--text);
}
.review__text {
  font-size: 15px; line-height: 1.55; color: var(--text);
  word-wrap: break-word; overflow-wrap: anywhere;
}
.review__footer {
  grid-column: 2;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-top: 6px;
  padding-top: 14px; border-top: 1px dashed var(--border);
}
.review__exp {
  font-size: 12px; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 4px;
}
.vote {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--surface);
}
.vote button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 12px; font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  transition: background .12s, color .12s;
}
.vote button:hover { background: var(--surface-2); }
.vote button[data-pressed="true"].up { color: var(--brand-700); background: var(--brand-50); }
.vote button[data-pressed="true"].dn { color: var(--verdict-spam); background: var(--verdict-spam-bg); }
.vote__sep { width: 1px; align-self: stretch; background: var(--border); }
.review__action {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--r-sm);
  transition: background .12s, color .12s;
  cursor: pointer;
}
.review__action:hover { background: var(--surface-2); color: var(--text); }
.review__report { margin-left: auto; font-size: 12px; color: var(--text-3); cursor: pointer; }
.review__report:hover { color: var(--text); }
.review__reply {
  grid-column: 2;
  margin-top: 4px;
  background: var(--surface-2);
  border-left: 3px solid var(--brand-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 14px 16px;
}
.review__reply-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--brand-700);
}
.review__reply-head svg { width: 14px; height: 14px; }
.review__reply-body {
  font-size: 14px; line-height: 1.5;
  color: var(--text-2); margin-top: 6px;
}
@media (max-width: 540px) {
  .review { grid-template-columns: 40px 1fr; }
  .review__avatar { width: 40px; height: 40px; font-size: 14px; }
}

/* ── Rating distribution ──────────────────────────── */
.dist { display: flex; flex-direction: column; gap: 6px; }
.dist__row {
  display: grid;
  grid-template-columns: 56px 1fr 50px;
  align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2);
}
.dist__bar {
  height: 8px; border-radius: 999px;
  background: var(--surface-2); overflow: hidden;
}
.dist__bar > span {
  display: block; height: 100%;
  background: var(--brand-500);
  border-radius: 999px;
  transition: width .5s var(--ease-out);
}
.dist__row[data-stars="1"] .dist__bar > span,
.dist__row[data-stars="2"] .dist__bar > span { background: var(--trust-poor); }
.dist__row[data-stars="3"] .dist__bar > span { background: var(--trust-average); }
.dist__pct {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right; font-size: 13px; color: var(--text-3);
}
.dist__label {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text);
}
.dist__label svg { width: 14px; height: 14px; color: var(--brand-500); }

/* ── Sidebar info ────────────────────────────────── */
.side {
  display: flex; flex-direction: column; gap: 16px;
}
.side__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.side__card h3 {
  margin: 0 0 12px;
  font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-2);
}
.kv {
  display: flex; flex-direction: column;
}
.kv__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.kv__row:last-child { border-bottom: 0; }
.kv__row .k { color: var(--text-3); }
.kv__row .v { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.kv__row .v.mono { font-family: var(--font-mono); font-weight: 600; }

/* ── Stepper ───────────────────────────────────────── */
.stepper {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 36px;
}
.step {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-3); font-size: 13px; font-weight: 700;
}
.step__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
  font-family: var(--font-mono);
  transition: all .2s;
}
.step__line {
  flex: 1;
  height: 2px; background: var(--border);
  border-radius: 999px; min-width: 30px;
  position: relative; overflow: hidden;
}
.step__line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--brand-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.step[data-state="done"] .step__num,
.step[data-state="active"] .step__num {
  background: var(--brand-500); color: #fff; border-color: var(--brand-500);
  box-shadow: 0 6px 14px -6px var(--brand-500);
}
.step[data-state="done"]   { color: var(--brand-700); }
.step[data-state="active"] { color: var(--text); }
.step[data-state="done"] + .step__line::after { transform: scaleX(1); }

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  color: var(--text-2);
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer__col h4 {
  margin: 0 0 12px;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text);
}
.footer__col a {
  display: block; padding: 5px 0;
  font-size: 14px; color: var(--text-2);
  cursor: pointer;
  transition: color .12s;
}
.footer__col a:hover { color: var(--brand-700); }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3);
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ── Modal / focus screen for "Write review" ─────── */
.viewmount { min-height: 100vh; }
.write {
  max-width: 720px; margin: 0 auto;
  padding: 40px 24px 80px;
}
.write h1 { font-size: 32px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; }
.write h1 + p { color: var(--text-2); margin: 0 0 28px; font-size: 15px; }
.write__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
}
.write__site {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  padding: 16px;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  margin-bottom: 28px;
}
.write__site .favicon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: var(--brand-700);
  text-transform: uppercase;
}
.write__site b { font-size: 18px; letter-spacing: -.015em; }
.write__site .d { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); margin-top: 2px; }

.write__field { margin-bottom: 22px; }
.write__field label {
  font-size: 13px; font-weight: 700; color: var(--text-2);
  display: block; margin-bottom: 8px;
}
.write__field .hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.write__rating-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.write__rating-row .desc {
  font-size: 14px; font-weight: 700; color: var(--text);
}

.write__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.write__cat {
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: all .12s;
}
.write__cat[data-active="true"] {
  background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-500);
}

.write__nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--border);
}

/* Success state */
.success {
  text-align: center; padding: 24px 0;
}
.success__check {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--brand-50); color: var(--brand-500);
  display: grid; place-items: center;
  animation: pop .4s var(--ease-out);
}
.success__check svg { width: 44px; height: 44px; }
.success h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.success p { margin: 0 0 24px; color: var(--text-2); }
@keyframes pop {
  0% { transform: scale(.5); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.fade-in { animation: slideIn .25s var(--ease-out); }

/* Topbar action chips */
.lang-toggle {
  display: inline-flex; gap: 0;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  padding: 3px;
}
.lang-toggle button, .lang-toggle a {
  padding: 4px 10px;
  font-size: 12px; font-weight: 700;
  color: var(--text-3);
  border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: .04em;
}
.lang-toggle button[data-active="true"], .lang-toggle a[data-active="true"] {
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Pager */
.pager {
  display: flex; gap: 4px; align-items: center;
  font-variant-numeric: tabular-nums;
  margin-top: 24px; justify-content: center;
}
.pager button, .pager span {
  display: inline-grid; place-items: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; color: var(--text-2);
  border: 1px solid transparent;
}
.pager button:hover { background: var(--surface-2); color: var(--text); }
.pager .current { background: var(--brand-500); color: #fff; }
.pager .nav { border-color: var(--border); }
.pager .nav:disabled { opacity: .45; pointer-events: none; }

/* Hide things by sr only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Alerts (server-rendered flashes/errors) ──────── */
.alert {
  padding: 12px 16px; border-radius: var(--r-md);
  margin-bottom: 18px; font-size: 14px; font-weight: 600;
}
.alert-success { background: var(--verdict-safe-bg); color: var(--brand-700); }
.alert-error   { background: var(--verdict-spam-bg); color: var(--verdict-spam); }
.err { display: block; color: var(--verdict-spam); font-size: 12px; margin-top: 6px; }

/* ── Breadcrumb ───────────────────────────────────── */
.crumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--text-3); margin-bottom: 18px;
  flex-wrap: wrap;
}
.crumbs a { cursor: pointer; }
.crumbs a:hover { color: var(--text-2); }
.crumbs .here { color: var(--text-2); font-weight: 600; }

/* ── FAQ list ─────────────────────────────────────── */
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.faq-item p { margin: 0; color: var(--text-2); line-height: 1.6; }

/* ── Real favicons (cached proxy) overlaying the letter box ─────────── */
.siterow__favicon, .phead__favicon, .autocomplete__favicon, .write__site .favicon { position: relative; overflow: hidden; }
.fav-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--surface);
  border-radius: inherit;
}
.phead__favicon .fav-img, .write__site .favicon .fav-img { padding: 14px; }
.siterow__favicon .fav-img { padding: 8px; }
