/* ==========================================================================
   Reviorum — components.css
   Reusable BEM components shared by every template.
   Block = .rv-name, element = .rv-name__part, modifier = .rv-name--variant,
   state = .is-* (set by JS) . Each block maps 1:1 to a PHP template part.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Button
   -------------------------------------------------------------------------- */
.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rv-s-2);
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--rv-r-md);
  background: none;
  font: 600 0.9375rem/1 var(--rv-font);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.rv-btn svg { flex: none; }
.rv-body .rv-btn--primary { background: var(--rv-accent); color: #fff; }
.rv-body .rv-btn--primary:hover { background: var(--rv-accent-hover); color: #fff; }
.rv-body .rv-btn--secondary { background: var(--rv-surface); color: var(--rv-ink); border-color: var(--rv-line); }
.rv-body .rv-btn--secondary:hover { border-color: var(--rv-line-strong); color: var(--rv-ink); }
.rv-body .rv-btn--dark { background: var(--rv-ink); color: #fff; }
.rv-body .rv-btn--dark:hover { background: #262c3d; color: #fff; }
.rv-body .rv-btn--sun { background: var(--rv-sun); color: var(--rv-night); }
.rv-body .rv-btn--sun:hover { background: #e9a524; color: var(--rv-night); }
.rv-body .rv-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.24); }
.rv-body .rv-btn--ghost-light:hover { border-color: #fff; color: #fff; }
.rv-btn--sm { min-height: 36px; padding: 0 14px; font-size: var(--rv-fs-md); }
.rv-btn--lg { min-height: 48px; padding: 0 26px; }
.rv-btn--block { width: 100%; }
.rv-btn[disabled],
.rv-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.rv-header {
  position: sticky;
  top: var(--rv-top-offset);
  z-index: 100;
  background: var(--rv-surface);
  border-bottom: 1px solid var(--rv-line);
}
.rv-header__inner {
  display: flex;
  align-items: center;
  gap: var(--rv-s-6);
  min-height: var(--rv-header-h);
}
.rv-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.rv-body .rv-brand,
.rv-body .rv-brand:hover { color: var(--rv-ink); }
.rv-brand__mark { width: 32px; height: 32px; flex: none; }
.rv-brand__name { font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.03em; }

.rv-header__panel {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--rv-s-6);
  min-width: 0;
}
.rv-nav__list {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.rv-body .rv-nav__link { color: var(--rv-ink-2); }
.rv-body .rv-nav__link:hover { background: #f3f4f8; color: var(--rv-ink); }
.rv-body .rv-nav__link[aria-current="page"],
.rv-body .rv-nav__link.is-active { background: var(--rv-accent-soft); color: var(--rv-accent); }

.rv-header__search { margin-left: auto; width: 300px; flex: none; }
.rv-header__actions { display: flex; align-items: center; gap: var(--rv-s-2); flex: none; }
.rv-body .rv-header__login { color: var(--rv-ink-2); font-weight: 500; padding: 0 12px; }

.rv-header__toggle,
.rv-header__search-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-r-md);
  background: var(--rv-surface);
  color: var(--rv-ink);
  cursor: pointer;
  flex: none;
}
.rv-header__toggle .rv-icon-close { display: none; }
.rv-header.is-open .rv-header__toggle .rv-icon-open { display: none; }
.rv-header.is-open .rv-header__toggle .rv-icon-close { display: block; }

/* --------------------------------------------------------------------------
   Search field (header, hero, inline)
   -------------------------------------------------------------------------- */
.rv-search { position: relative; }
.rv-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-r-md);
  background: #f6f7fa;
}
.rv-search__field:focus-within { border-color: var(--rv-accent); background: var(--rv-surface); }
.rv-search__icon { flex: none; color: var(--rv-muted); }
.rv-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: var(--rv-fs-md);
}
.rv-search__input::-webkit-search-cancel-button { cursor: pointer; }
.rv-search__kbd {
  padding: 2px 5px;
  border: 1px solid #dadde5;
  border-radius: 5px;
  background: var(--rv-surface);
  color: var(--rv-muted);
  font: 500 11px/1.2 var(--rv-font);
}

/* Hero variant */
.rv-search--hero .rv-search__row {
  display: flex;
  gap: var(--rv-s-2);
  padding: var(--rv-s-2);
  border-radius: 16px;
  background: var(--rv-surface);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
}
.rv-search--hero .rv-search__field {
  flex: 1;
  height: 48px;
  border: 0;
  background: transparent;
}
.rv-search--hero .rv-search__input { font-size: var(--rv-fs-base); color: var(--rv-ink); }
.rv-search__type {
  display: flex;
  align-items: center;
  padding-left: var(--rv-s-3);
  border-left: 1px solid var(--rv-line);
}
.rv-search__type select {
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--rv-ink-2);
  font-size: var(--rv-fs-md);
  font-weight: 500;
}

/* Suggestions (search.js) */
.rv-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 120;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--rv-surface);
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-r-lg);
  box-shadow: var(--rv-shadow-pop);
  color: var(--rv-ink);
}
.rv-suggest[hidden] { display: none; }
.rv-suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  font-size: var(--rv-fs-md);
}
.rv-suggest__item[aria-selected="true"],
.rv-suggest__item:hover { background: var(--rv-accent-soft); }
.rv-suggest__type { margin-left: auto; color: var(--rv-muted); font-size: var(--rv-fs-xs); }
.rv-suggest__empty { padding: 10px; color: var(--rv-muted); font-size: var(--rv-fs-md); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.rv-footer {
  margin-top: auto;
  background: var(--rv-surface);
  border-top: 1px solid var(--rv-line);
}
.rv-footer__inner { padding-block: 3.5rem 2rem; display: flex; flex-direction: column; gap: var(--rv-s-10); }
.rv-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: var(--rv-s-10);
}
.rv-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.rv-footer__about { max-width: 300px; color: var(--rv-muted); font-size: var(--rv-fs-md); line-height: 1.6; }
.rv-footer__lang {
  display: inline-flex;
  align-items: center;
  gap: var(--rv-s-2);
  align-self: flex-start;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--rv-line);
  border-radius: 9px;
  color: var(--rv-ink-2);
  font-size: var(--rv-fs-sm);
}
.rv-footer__lang select { border: 0; background: transparent; font-weight: 500; font-size: var(--rv-fs-sm); }
.rv-footer__title { margin-bottom: var(--rv-s-3); font-size: var(--rv-fs-sm); font-weight: 700; letter-spacing: 0.02em; }
.rv-footer__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rv-body .rv-footer__link { color: var(--rv-muted); font-size: var(--rv-fs-md); }
.rv-body .rv-footer__link:hover { color: var(--rv-accent); }
.rv-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--rv-s-4);
  padding-top: var(--rv-s-6);
  border-top: 1px solid var(--rv-line);
  color: var(--rv-muted);
  font-size: var(--rv-fs-sm);
}
.rv-footer__legal { display: flex; flex-wrap: wrap; gap: var(--rv-s-5); margin: 0; padding: 0; list-style: none; }
.rv-body .rv-footer__legal a { color: var(--rv-muted); }

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.rv-breadcrumbs { padding-block: var(--rv-s-4); font-size: var(--rv-fs-sm); }
.rv-breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rv-breadcrumbs__item { display: inline-flex; align-items: center; gap: 6px; color: var(--rv-muted); }
.rv-breadcrumbs__item + .rv-breadcrumbs__item::before { content: "/"; color: var(--rv-faint); }
.rv-body .rv-breadcrumbs__item a { color: var(--rv-muted); }
.rv-body .rv-breadcrumbs__item a:hover { color: var(--rv-accent); }
.rv-breadcrumbs__item [aria-current="page"] { color: var(--rv-ink); font-weight: 500; }
.rv-breadcrumbs--light .rv-breadcrumbs__item,
.rv-body .rv-breadcrumbs--light .rv-breadcrumbs__item a { color: var(--rv-night-text); }
.rv-breadcrumbs--light .rv-breadcrumbs__item [aria-current="page"] { color: #fff; }

/* --------------------------------------------------------------------------
   Rating: score badge, stars, distribution
   -------------------------------------------------------------------------- */
.rv-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 6px;
  border-radius: var(--rv-r-sm);
  color: #fff;
  font-size: var(--rv-fs-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.rv-score--pos { background: var(--rv-pos); }
.rv-score--warn { background: var(--rv-warn); }
.rv-score--neg { background: var(--rv-neg); }
.rv-score--none { background: #e4e7ee; color: var(--rv-muted); }
.rv-score--sm { min-width: 32px; height: 22px; font-size: var(--rv-fs-xs); }
.rv-score--lg { min-width: 48px; height: 34px; font-size: 1.0625rem; border-radius: 9px; }
.rv-score--xl { min-width: 72px; height: 56px; font-size: 1.75rem; border-radius: var(--rv-r-lg); }

/* Stars: one element, filled with a gradient through a 5-star mask.
   PHP rounds the rating to the nearest 0.5 and prints rv-stars--r{0..50}. */
.rv-stars {
  --rv-stars-size: 15px;
  --rv-stars-color: var(--rv-pos);
  --rv-stars-fill: 0%;
  display: inline-block;
  flex: none;
  width: calc(var(--rv-stars-size) * 5.5);
  height: var(--rv-stars-size);
  background: linear-gradient(90deg, var(--rv-stars-color) var(--rv-stars-fill), #d8dce4 var(--rv-stars-fill));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 16'%3E%3Cg%3E%3Cpath id='s' d='M8 .8l2.1 4.4 4.8.6-3.5 3.3.9 4.8L8 11.6l-4.3 2.3.9-4.8L1.1 5.8l4.8-.6z'/%3E%3Cuse href='%23s' x='18'/%3E%3Cuse href='%23s' x='36'/%3E%3Cuse href='%23s' x='54'/%3E%3Cuse href='%23s' x='72'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 16'%3E%3Cg%3E%3Cpath id='s' d='M8 .8l2.1 4.4 4.8.6-3.5 3.3.9 4.8L8 11.6l-4.3 2.3.9-4.8L1.1 5.8l4.8-.6z'/%3E%3Cuse href='%23s' x='18'/%3E%3Cuse href='%23s' x='36'/%3E%3Cuse href='%23s' x='54'/%3E%3Cuse href='%23s' x='72'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.rv-stars--sm { --rv-stars-size: 13px; }
.rv-stars--lg { --rv-stars-size: 20px; }
.rv-stars--warn { --rv-stars-color: var(--rv-warn); }
.rv-stars--neg { --rv-stars-color: var(--rv-neg); }
.rv-stars--r0  { --rv-stars-fill: 0%; }
.rv-stars--r5  { --rv-stars-fill: 9.09%; }
.rv-stars--r10 { --rv-stars-fill: 18.18%; }
.rv-stars--r15 { --rv-stars-fill: 29.55%; }
.rv-stars--r20 { --rv-stars-fill: 38.64%; }
.rv-stars--r25 { --rv-stars-fill: 50%; }
.rv-stars--r30 { --rv-stars-fill: 59.09%; }
.rv-stars--r35 { --rv-stars-fill: 70.45%; }
.rv-stars--r40 { --rv-stars-fill: 79.55%; }
.rv-stars--r45 { --rv-stars-fill: 90.91%; }
.rv-stars--r50 { --rv-stars-fill: 100%; }

.rv-rating { display: inline-flex; align-items: center; gap: var(--rv-s-2); flex-wrap: wrap; }

/* Distribution: native <progress>, no inline widths needed */
.rv-dist { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.rv-dist__row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  font-size: var(--rv-fs-xs);
  color: var(--rv-muted);
}
.rv-dist__value { text-align: right; font-variant-numeric: tabular-nums; }
.rv-dist__bar {
  --rv-dist-color: var(--rv-pos);
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  background: #eef0f4;
  color: var(--rv-dist-color);
  overflow: hidden;
}
.rv-dist__bar::-webkit-progress-bar { background: #eef0f4; border-radius: 4px; }
.rv-dist__bar::-webkit-progress-value { background: var(--rv-dist-color); border-radius: 4px; }
.rv-dist__bar::-moz-progress-bar { background: var(--rv-dist-color); border-radius: 4px; }
.rv-dist__bar--4 { --rv-dist-color: #4ca36a; }
.rv-dist__bar--3 { --rv-dist-color: var(--rv-warn); }
.rv-dist__bar--2 { --rv-dist-color: #d97706; }
.rv-dist__bar--1 { --rv-dist-color: var(--rv-neg); }

/* --------------------------------------------------------------------------
   Logo monogram (fallback when a brand has no uploaded logo)
   In WordPress: <img class="rv-logo" …> when a logo exists, otherwise this span
   with a colour class derived from the post ID.
   -------------------------------------------------------------------------- */
.rv-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--rv-ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  object-fit: cover;
}
/* Logo image: white tile so transparent icons and wordmarks read on any background. */
.rv-logo.rv-logo--image {
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rv-line);
}
.rv-logo--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rv-logo--xs { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
.rv-logo--sm { width: 28px; height: 28px; border-radius: 7px; font-size: 11px; }
.rv-logo--md { width: 40px; height: 40px; border-radius: 10px; font-size: var(--rv-fs-md); }
.rv-logo--lg { width: 52px; height: 52px; border-radius: 12px; font-size: 1.0625rem; }
.rv-logo--xl { width: 88px; height: 88px; border-radius: 20px; font-size: 1.75rem; }
.rv-logo--navy   { background: #1e3a8a; }
.rv-logo--indigo { background: #3730a3; }
.rv-logo--violet { background: #6d28d9; }
.rv-logo--purple { background: #7c3aed; }
.rv-logo--teal   { background: #0f766e; }
.rv-logo--cyan   { background: #0e7490; }
.rv-logo--sky    { background: #0369a1; }
.rv-logo--green  { background: #166534; }
.rv-logo--rose   { background: #9d174d; }
.rv-logo--pink   { background: #be185d; }
.rv-logo--wine   { background: #831843; }
.rv-logo--brown  { background: #7c2d12; }
.rv-logo--orange { background: #c2410c; }
.rv-logo--amber  { background: #b45309; }
.rv-logo--slate  { background: #334155; }
.rv-logo--black  { background: #1f2937; }

/* Person avatar (initials) */
.rv-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: var(--rv-fs-sm);
  font-weight: 700;
}
.rv-avatar--sm { width: 32px; height: 32px; }
.rv-avatar--lg { width: 48px; height: 48px; font-size: var(--rv-fs-base); }
.rv-avatar--rose  { background: #fce7f3; color: #9d174d; }
.rv-avatar--green { background: #dcfce7; color: #166534; }
.rv-avatar--sun   { background: #fde68a; color: #78350f; }
.rv-avatar--violet{ background: #ede9fe; color: #5b21b6; }
.rv-avatar--teal  { background: #ccfbf1; color: #115e59; }

/* --------------------------------------------------------------------------
   Small labels
   -------------------------------------------------------------------------- */
.rv-verified { display: inline-flex; color: var(--rv-accent); flex: none; }
.rv-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f1f3f7;
  color: var(--rv-ink-2);
  font-size: var(--rv-fs-xs);
  font-weight: 500;
  white-space: nowrap;
}
.rv-sponsored {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border: 1px solid var(--rv-line);
  border-radius: 5px;
  background: var(--rv-surface);
  color: var(--rv-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: var(--rv-fs-sm);
  font-weight: 600;
  line-height: 1.35;
}
.rv-badge--glow { background: rgba(165, 180, 252, 0.14); color: #c7cbff; }
.rv-badge--soft { background: var(--rv-accent-soft); color: var(--rv-accent); }
.rv-badge--age { background: var(--rv-neg-soft); color: var(--rv-neg); }

.rv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-r-pill);
  background: var(--rv-surface);
  font-size: var(--rv-fs-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.rv-body .rv-chip { color: var(--rv-ink-2); }
.rv-body a.rv-chip:hover,
.rv-body button.rv-chip:hover { border-color: var(--rv-accent); color: var(--rv-accent); }
.rv-body .rv-chip--dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #e4e6f5; }
.rv-body .rv-chip--dark:hover { border-color: var(--rv-accent-tint); color: #fff; }
.rv-body .rv-chip[aria-pressed="true"],
.rv-body a.rv-chip[aria-current="page"],
.rv-body .rv-chip.is-active { background: var(--rv-ink); border-color: var(--rv-ink); color: #fff; }

.rv-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rv-s-2); margin: 0; padding: 0; list-style: none; }
.rv-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; }
.rv-chips--scroll::-webkit-scrollbar { display: none; }

/* --------------------------------------------------------------------------
   Card (base) + link card
   -------------------------------------------------------------------------- */
.rv-card {
  background: var(--rv-surface);
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-r-lg);
  color: var(--rv-ink);
}
.rv-card--pad { padding: var(--rv-s-5); }
.rv-card--flush { overflow: hidden; }
.rv-body a.rv-card,
.rv-card--link { color: var(--rv-ink); transition: box-shadow 0.15s, border-color 0.15s; }
.rv-body a.rv-card:hover,
.rv-card--link:hover,
.rv-card--link:focus-within { border-color: var(--rv-line-strong); box-shadow: var(--rv-shadow-card); color: var(--rv-ink); }

/* Stretched link: the whole card is clickable but only the title is a link
   (keeps one link per card for screen readers and SEO). */
.rv-card--link { position: relative; }
.rv-body .rv-card__link { color: inherit; }
.rv-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rv-card__link:focus-visible { box-shadow: none; }
.rv-card--link:has(.rv-card__link:focus-visible) { box-shadow: var(--rv-focus); }

/* --------------------------------------------------------------------------
   Category card
   -------------------------------------------------------------------------- */
.rv-cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-color: transparent;
  background: var(--rv-cat-tint, #f1f3f7);
}
.rv-cat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 11px;
  background: var(--rv-cat-strong, var(--rv-ink));
  color: #fff;
}
.rv-cat-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv-cat-card__name { font-weight: 600; font-size: 0.9375rem; }
.rv-hue--hosting { --rv-cat-tint: var(--rv-hue-hosting); --rv-cat-strong: var(--rv-hue-hosting-strong); }
.rv-hue--ai      { --rv-cat-tint: var(--rv-hue-ai);      --rv-cat-strong: var(--rv-hue-ai-strong); }
.rv-hue--casino  { --rv-cat-tint: var(--rv-hue-casino);  --rv-cat-strong: var(--rv-hue-casino-strong); }
.rv-hue--apps    { --rv-cat-tint: var(--rv-hue-apps);    --rv-cat-strong: var(--rv-hue-apps-strong); }
.rv-hue--vpn     { --rv-cat-tint: var(--rv-hue-vpn);     --rv-cat-strong: var(--rv-hue-vpn-strong); }
.rv-hue--shop    { --rv-cat-tint: var(--rv-hue-shop);    --rv-cat-strong: var(--rv-hue-shop-strong); }
.rv-hue--finance { --rv-cat-tint: var(--rv-hue-finance); --rv-cat-strong: var(--rv-hue-finance-strong); }
.rv-hue--travel  { --rv-cat-tint: var(--rv-hue-travel);  --rv-cat-strong: var(--rv-hue-travel-strong); }

/* --------------------------------------------------------------------------
   Entity card (website / app / company / casino in grids)
   -------------------------------------------------------------------------- */
.rv-entity-card { display: flex; gap: var(--rv-s-4); padding: var(--rv-s-5); }
.rv-entity-card__body { display: flex; flex-direction: column; gap: var(--rv-s-2); min-width: 0; flex: 1; }
.rv-entity-card__title { display: flex; align-items: center; gap: 6px; font-size: var(--rv-fs-base); font-weight: 700; }
.rv-entity-card__domain { margin-top: -6px; }
.rv-entity-card__desc { color: var(--rv-ink-2); font-size: var(--rv-fs-md); line-height: 1.5; }
.rv-entity-card--sponsored { background: linear-gradient(90deg, #f5f8ff, #fff); border-color: #d6def2; }

/* --------------------------------------------------------------------------
   Ranked list (top rated, category ranking)
   -------------------------------------------------------------------------- */
.rv-rank-list { margin: 0; padding: 0; list-style: none; }
.rv-rank-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--rv-s-4);
  padding: var(--rv-s-4) var(--rv-s-5);
  border-bottom: 1px solid var(--rv-line);
}
.rv-rank-item:hover { background: #fafbfd; }
.rv-rank-item__pos { width: 28px; flex: none; color: var(--rv-faint); font-size: var(--rv-fs-lg); font-weight: 700; text-align: center; }
.rv-rank-item__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rv-rank-item__name { font-size: 0.9375rem; font-weight: 600; }
.rv-body .rv-rank-item__name a { color: var(--rv-ink); }
.rv-rank-item__name a::after { content: ""; position: absolute; inset: 0; }
.rv-rank-item__count { width: 96px; text-align: right; }
.rv-rank-list__foot { padding: 14px var(--rv-s-5); background: #fafbfc; }

/* --------------------------------------------------------------------------
   Review card
   -------------------------------------------------------------------------- */
.rv-review { display: flex; flex-direction: column; gap: var(--rv-s-3); padding: var(--rv-s-5); }
.rv-review__head { display: flex; align-items: center; gap: 10px; }
.rv-review__author { flex: 1; min-width: 0; }
.rv-review__name { font-size: var(--rv-fs-md); font-weight: 600; }
.rv-review__title { font-size: 0.9375rem; font-weight: 600; }
.rv-review__text { flex: 1; color: var(--rv-ink-2); font-size: var(--rv-fs-md); line-height: 1.55; }
.rv-review__verified { display: inline-flex; align-items: center; gap: 6px; color: var(--rv-pos); font-size: var(--rv-fs-xs); font-weight: 600; }
.rv-review__target {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: var(--rv-s-3);
  border-top: 1px solid var(--rv-line);
  font-size: var(--rv-fs-sm);
}
.rv-body .rv-review__target { color: var(--rv-ink); }
.rv-review__target strong { font-weight: 600; }
.rv-review__actions { display: flex; flex-wrap: wrap; gap: var(--rv-s-2); }
.rv-review__reply {
  padding: var(--rv-s-4);
  border-left: 3px solid var(--rv-accent);
  border-radius: 0 var(--rv-r-md) var(--rv-r-md) 0;
  background: var(--rv-surface-2);
  font-size: var(--rv-fs-md);
  color: var(--rv-ink-2);
}

/* --------------------------------------------------------------------------
   Comparison card
   -------------------------------------------------------------------------- */
.rv-compare-card { display: flex; flex-direction: column; gap: var(--rv-s-4); padding: var(--rv-s-5); }
.rv-compare-card__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--rv-s-3);
}
.rv-compare-card__side { display: flex; flex-direction: column; align-items: center; gap: var(--rv-s-2); text-align: center; font-size: var(--rv-fs-md); font-weight: 600; }
.rv-compare-card__vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rv-line);
  border-radius: 50%;
  background: var(--rv-bg);
  color: var(--rv-muted);
  font-size: var(--rv-fs-xs);
  font-weight: 700;
}
.rv-compare-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--rv-s-2);
  padding-top: 14px;
  border-top: 1px solid var(--rv-line);
}
.rv-body .rv-compare-card__cta { color: var(--rv-accent); font-size: var(--rv-fs-md); font-weight: 600; }

/* --------------------------------------------------------------------------
   Alternatives card
   -------------------------------------------------------------------------- */
.rv-alt-card { display: flex; flex-direction: column; gap: 14px; padding: var(--rv-s-5); }
.rv-alt-card__head { display: flex; align-items: center; gap: var(--rv-s-3); }
.rv-alt-card__head > div { flex: 1; min-width: 0; }
.rv-alt-card__list { margin: 0; padding: 0; list-style: none; }
.rv-alt-card__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--rv-s-2) 0;
  border-top: 1px solid #f0f2f5;
  font-size: var(--rv-fs-md);
  font-weight: 500;
}
.rv-body .rv-alt-card__item { color: var(--rv-ink); }
.rv-alt-card__item span:nth-child(2) { flex: 1; }

/* --------------------------------------------------------------------------
   Tabs (main.js: [data-rv-tabs])
   Without JS every panel is visible, each with its own heading.
   -------------------------------------------------------------------------- */
.rv-tabs__list { display: flex; flex-wrap: wrap; gap: var(--rv-s-2); }
.rv-tabs__tab {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-r-pill);
  background: var(--rv-surface);
  color: var(--rv-ink-2);
  font-size: var(--rv-fs-md);
  font-weight: 500;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
}
.rv-tabs__tab:hover { border-color: var(--rv-line-strong); }
.rv-tabs__tab[aria-selected="true"] { background: var(--rv-ink); border-color: var(--rv-ink); color: #fff; }
.rv-no-js .rv-tabs__list { display: none; }
/* Inactive panels carry [hidden] in the HTML (no flash before JS runs);
   without JS they are all shown, each under its own heading. */
.rv-no-js .rv-tabs__panel[hidden] { display: block; }
.rv-js .rv-tabs__panel[hidden] { display: none; }
.rv-tabs__panel-title { margin-bottom: var(--rv-s-3); font-size: var(--rv-fs-base); font-weight: 700; }
.rv-js .rv-tabs__panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-no-js .rv-tabs__panel + .rv-tabs__panel { margin-top: var(--rv-s-6); }

/* Segmented control variant */
.rv-tabs--segmented .rv-tabs__list {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--rv-line);
  border-radius: 12px;
  background: var(--rv-surface);
}
.rv-tabs--segmented .rv-tabs__tab { min-height: 36px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; }
.rv-tabs--segmented .rv-tabs__tab[aria-selected="true"] { background: var(--rv-night); color: #fff; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.rv-field { display: flex; flex-direction: column; gap: 6px; }
.rv-field__label { font-size: var(--rv-fs-md); font-weight: 600; }
.rv-field__hint { color: var(--rv-muted); font-size: var(--rv-fs-sm); font-weight: 400; }
.rv-field__error { color: var(--rv-neg); font-size: var(--rv-fs-sm); font-weight: 500; }
.rv-field__error:empty { display: none; }
.rv-input,
.rv-select,
.rv-textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid #d5d9e3;
  border-radius: 12px;
  background: var(--rv-surface);
  font-size: 0.9375rem;
  color: var(--rv-ink);
  transition: border-color 0.15s;
}
.rv-textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.rv-input:hover,
.rv-select:hover,
.rv-textarea:hover { border-color: #b9bfcc; }
.rv-input:focus,
.rv-select:focus,
.rv-textarea:focus { outline: none; border-color: var(--rv-accent); box-shadow: 0 0 0 3px var(--rv-accent-soft); }
.rv-input[aria-invalid="true"],
.rv-textarea[aria-invalid="true"] { border-color: var(--rv-neg); background: #fff7f7; }
.rv-check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--rv-fs-md); color: var(--rv-ink-2); cursor: pointer; }
.rv-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--rv-accent); }
.rv-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.rv-fieldset__legend { padding: 0; margin-bottom: 6px; font-size: var(--rv-fs-md); font-weight: 600; }

/* Star rating input — real radio buttons in natural 1→5 order, works without JS
   (arrow keys move in the visual direction). Stars up to the checked one are filled via :has(). */
.rv-rate {
  --rv-rate-on: var(--rv-pos);
  display: inline-flex;
  gap: 6px;
}
.rv-rate[data-tone="warn"] { --rv-rate-on: var(--rv-warn); }
.rv-rate[data-tone="neg"] { --rv-rate-on: var(--rv-neg); }
.rv-rate__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rate__label {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--rv-r-md);
  background: #eef0f4;
  color: #c3c8d4;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}
.rv-rate__label svg { width: 26px; height: 26px; }
.rv-rate:has(.rv-rate__input:checked) .rv-rate__label,
.rv-rate:hover .rv-rate__label { background: var(--rv-rate-on); color: #fff; }
.rv-rate__input:checked + .rv-rate__label ~ .rv-rate__label,
.rv-rate:hover .rv-rate__label:hover ~ .rv-rate__label { background: #eef0f4; color: #c3c8d4; }
.rv-rate__input:focus-visible + .rv-rate__label { box-shadow: var(--rv-focus); }

/* --------------------------------------------------------------------------
   Accordion (native <details>)
   -------------------------------------------------------------------------- */
.rv-accordion__item { border-bottom: 1px solid var(--rv-line); }
.rv-accordion__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--rv-s-4);
  padding: var(--rv-s-4) 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.rv-accordion__summary::-webkit-details-marker { display: none; }
.rv-accordion__summary::after { content: "+"; color: var(--rv-muted); font-size: 1.25rem; font-weight: 400; line-height: 1; }
.rv-accordion__item[open] > .rv-accordion__summary::after { content: "–"; }
.rv-accordion__content { padding-bottom: var(--rv-s-4); color: var(--rv-ink-2); font-size: 0.9375rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Table (comparisons, specs)
   -------------------------------------------------------------------------- */
.rv-table-wrap { overflow-x: auto; border: 1px solid var(--rv-line); border-radius: var(--rv-r-lg); background: var(--rv-surface); }
.rv-table { width: 100%; border-collapse: collapse; font-size: var(--rv-fs-md); }
.rv-table caption { padding: var(--rv-s-4) var(--rv-s-5); text-align: left; font-weight: 700; }
.rv-table th,
.rv-table td { padding: 14px var(--rv-s-5); border-top: 1px solid var(--rv-line); text-align: left; vertical-align: middle; }
.rv-table thead th { border-top: 0; background: var(--rv-surface-2); color: var(--rv-muted); font-size: var(--rv-fs-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.rv-table tbody th { font-weight: 500; color: var(--rv-ink-2); }
.rv-table__group th { background: var(--rv-surface-2); color: var(--rv-muted); font-size: var(--rv-fs-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.rv-table__better { color: var(--rv-pos); font-weight: 600; }

/* --------------------------------------------------------------------------
   Pagination (server-side; WordPress paginate_links() markup-compatible)
   -------------------------------------------------------------------------- */
.rv-pagination { display: flex; justify-content: center; margin-top: var(--rv-s-8); }
.rv-pagination__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rv-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-r-md);
  background: var(--rv-surface);
  font-weight: 600;
  font-size: var(--rv-fs-md);
}
.rv-body .rv-pagination__link { color: var(--rv-ink-2); }
.rv-body a.rv-pagination__link:hover { border-color: var(--rv-accent); color: var(--rv-accent); }
.rv-body .rv-pagination__link[aria-current="page"] { background: var(--rv-ink); border-color: var(--rv-ink); color: #fff; }
.rv-pagination__gap { border-color: transparent; background: none; }

/* --------------------------------------------------------------------------
   Notice
   -------------------------------------------------------------------------- */
.rv-notice {
  display: flex;
  gap: var(--rv-s-3);
  padding: 14px var(--rv-s-4);
  border-radius: var(--rv-r-md);
  background: var(--rv-surface-2);
  border: 1px dashed #cbd0db;
  color: var(--rv-ink-2);
  font-size: var(--rv-fs-md);
  line-height: 1.5;
}
.rv-notice--warn { background: var(--rv-warm); border: 0; }
.rv-notice--danger { background: var(--rv-neg-soft); border: 0; color: #7f1d1d; }
.rv-notice--info { background: var(--rv-accent-soft); border: 0; }

/* --------------------------------------------------------------------------
   Modal (native <dialog>, main.js: [data-rv-modal-open])
   -------------------------------------------------------------------------- */
.rv-modal {
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--rv-r-xl);
  background: var(--rv-surface);
  color: var(--rv-ink);
  box-shadow: var(--rv-shadow-pop);
}
.rv-modal::backdrop { background: rgba(14, 19, 32, 0.55); }
.rv-modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--rv-s-4); padding: var(--rv-s-5) var(--rv-s-6) 0; }
.rv-modal__title { font-size: 1.25rem; font-weight: 700; }
.rv-modal__body { padding: var(--rv-s-5) var(--rv-s-6); display: flex; flex-direction: column; gap: var(--rv-s-4); }
.rv-modal__foot { display: flex; justify-content: flex-end; gap: var(--rv-s-2); padding: 0 var(--rv-s-6) var(--rv-s-6); }
.rv-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: var(--rv-r-md);
  background: transparent;
  color: var(--rv-ink-2);
  cursor: pointer;
}
.rv-icon-btn:hover { background: #f1f3f7; color: var(--rv-ink); }

/* --------------------------------------------------------------------------
   Filter panel (filters.js). Sidebar on desktop, off-canvas drawer on mobile.
   -------------------------------------------------------------------------- */
.rv-filters { display: flex; flex-direction: column; gap: var(--rv-s-5); }
.rv-filters__head { display: none; }
.rv-filters__group { display: flex; flex-direction: column; gap: 10px; padding-bottom: var(--rv-s-5); border-bottom: 1px solid var(--rv-line); }
.rv-filters__group:last-of-type { border-bottom: 0; }
.rv-filters__title { font-size: var(--rv-fs-md); font-weight: 700; }
.rv-filters__foot { display: none; }
.rv-filters-toggle { display: none; }
.rv-filters-overlay { display: none; }

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.rv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--rv-s-8) var(--rv-s-5);
  text-align: center;
}
.rv-empty[hidden] { display: none; }
.rv-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--rv-warm);
  color: #c2410c;
}
.rv-empty__title { font-weight: 700; }

/* --------------------------------------------------------------------------
   Page hero (night band used by several templates)
   -------------------------------------------------------------------------- */
.rv-hero { position: relative; overflow: hidden; background: var(--rv-night); color: #fff; }
.rv-hero__eyebrow { color: var(--rv-sun); font-size: var(--rv-fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.rv-hero__title { font-size: var(--rv-fs-h1); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.rv-hero__lead { max-width: 560px; color: #b8bcd9; font-size: var(--rv-fs-lg); line-height: 1.55; }
.rv-hero__art { position: absolute; pointer-events: none; }

/* Toast / live status (aria-live) */
.rv-toast {
  position: fixed;
  left: 50%;
  bottom: var(--rv-s-6);
  z-index: 300;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: var(--rv-r-md);
  background: var(--rv-ink);
  color: #fff;
  font-size: var(--rv-fs-md);
  font-weight: 500;
  box-shadow: var(--rv-shadow-pop);
}
.rv-toast[hidden] { display: none; }

/* Anchor visually-hidden text inside interactive pills so it can't widen
   horizontal scrollers (position:absolute resolves to the nearest positioned box). */
.rv-btn,
.rv-chip,
.rv-tabs__tab,
.rv-score { position: relative; }
