/* ============================================================
   COMPONENTS – yopmail.ru
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   PROGRESS BAR (scroll)
   ════════════════════════════════════════════════════════════ */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-primary);
  z-index: var(--z-toast);
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(77, 163, 255, 0.5);
}

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: var(--z-header);
  height: 68px;
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  background: rgba(8, 9, 13, 0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-color: var(--border);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  width: 100%;
}

/* ── Logo ────────────────────────────────────────────────── */

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease);
}

.logo:hover { opacity: 0.85; }

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-extrabold);
  color: #08090d;
  box-shadow: var(--glow-accent);
  flex-shrink: 0;
}

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

.logo__tld {
  color: var(--accent);
}

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav__link--active {
  color: var(--text);
}

/* ── Header CTA ──────────────────────────────────────────── */

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* ── Hamburger ───────────────────────────────────────────── */

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease);
}

.menu-btn:hover { background: rgba(255,255,255,0.06); }

.menu-btn__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-2);
  border-radius: var(--r-full);
  transition: transform var(--dur-md) var(--ease-bounce),
              opacity var(--dur) var(--ease),
              width var(--dur-md) var(--ease);
}

.menu-btn--open .menu-btn__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn--open .menu-btn__line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-btn--open .menu-btn__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-md);
  padding: 10px 20px;
  transition: transform var(--dur-fast) var(--ease-bounce),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast) var(--ease);
}

.btn:hover::after { background: rgba(255,255,255,0.05); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: #08090d;
  font-weight: var(--fw-bold);
  box-shadow: 0 4px 20px rgba(77, 163, 255, 0.3);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 28px rgba(77, 163, 255, 0.45);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-light);
  color: var(--text);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(77, 163, 255, 0.4);
}

.btn--outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.btn--gradient {
  background: var(--grad-primary);
  color: #08090d;
  font-weight: var(--fw-bold);
  box-shadow: 0 4px 24px rgba(77, 163, 255, 0.3);
}

.btn--gradient:hover {
  box-shadow: 0 8px 36px rgba(77, 163, 255, 0.45);
  transform: translateY(-2px);
}

.btn--sm {
  font-size: var(--fs-xs);
  padding: 7px 14px;
  border-radius: var(--r-sm);
}

.btn--lg {
  font-size: var(--fs-base);
  padding: 14px 28px;
  border-radius: var(--r-lg);
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-sm);
}

/* ════════════════════════════════════════════════════════════
   BADGES / TAGS
   ════════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 3px 10px;
  border-radius: var(--r-full);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge--blue {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(77, 163, 255, 0.2);
}

.badge--green {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(126, 231, 135, 0.2);
}

.badge--purple {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.badge--warn {
  background: var(--warn-dim);
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge--muted {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════════ */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease),
              transform var(--dur-md) var(--ease-bounce),
              background var(--dur-md) var(--ease);
  overflow: hidden;
}

.card:hover {
  border-color: rgba(77, 163, 255, 0.28);
  box-shadow: var(--glow-accent), var(--shadow);
  transform: translateY(-3px);
  background: var(--card-hover);
}

/* Featured card with animated gradient border */
.card--featured {
  position: relative;
  z-index: 0;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, rgba(77,163,255,0.5), rgba(126,231,135,0.5)) border-box;
  border: 1.5px solid transparent;
}

.card--featured::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--r-lg) + 1.5px);
  background: linear-gradient(135deg,
    rgba(77,163,255,0.5) 0%,
    rgba(126,231,135,0.4) 50%,
    rgba(77,163,255,0.5) 100%);
  background-size: 200% 200%;
  animation: grad-border 5s ease infinite;
  z-index: var(--z-under);
}

@keyframes grad-border {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card--glass {
  background: rgba(24, 29, 40, 0.6);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

/* ── Service card ────────────────────────────────────────── */

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
}

.service-card__logo {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  flex-shrink: 0;
  overflow: hidden;
}

.service-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.service-card__name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: var(--lh-tight);
  margin-bottom: 3px;
}

.service-card__domain {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-family: var(--font-mono);
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: var(--lh-relaxed);
  flex: 1;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  gap: var(--sp-3);
}

.service-card__rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.service-card__score {
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  color: var(--text);
  letter-spacing: -0.02em;
}

.service-card__stars {
  display: flex;
  gap: 2px;
}

.service-card__stars svg {
  width: 14px;
  height: 14px;
  fill: var(--warn);
}

.service-card__stars svg.empty {
  fill: var(--border-2);
}

/* ── Rank card (best list) ───────────────────────────────── */

.rank-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
}

.rank-card__number {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--border-2);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rank-card:hover .rank-card__number {
  color: var(--accent);
}

/* ════════════════════════════════════════════════════════════
   RATING STARS
   ════════════════════════════════════════════════════════════ */

.stars {
  display: flex;
  gap: 3px;
  line-height: 0;
}

.stars__star {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.stars__star svg {
  width: 100%;
  height: 100%;
}

/* ════════════════════════════════════════════════════════════
   BREADCRUMBS
   ════════════════════════════════════════════════════════════ */

.breadcrumbs {
  padding-block: var(--sp-4);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumbs__item::after {
  content: '/';
  color: var(--border-light);
}

.breadcrumbs__item:last-child::after { display: none; }

.breadcrumbs__link {
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.breadcrumbs__link:hover { color: var(--accent); }

.breadcrumbs__current {
  color: var(--text-2);
}

/* ════════════════════════════════════════════════════════════
   COMPARISON TABLE
   ════════════════════════════════════════════════════════════ */

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 600px;
  font-size: var(--fs-sm);
}

.compare-table th {
  background: var(--surface);
  color: var(--muted);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compare-table th:first-child {
  width: 200px;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
}

.compare-table td {
  padding: var(--sp-4) var(--sp-5);
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  transition: background var(--dur) var(--ease);
}

.compare-table td:first-child {
  font-weight: var(--fw-semibold);
  color: var(--text);
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 1;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table tr:hover td:first-child { background: var(--surface); }

.compare-table .check {
  color: var(--green);
  font-size: var(--fs-base);
}

.compare-table .cross {
  color: var(--danger);
  font-size: var(--fs-base);
}

.compare-table .neutral {
  color: var(--muted);
}

/* ── Compare service header row ─────────────────────────── */

.compare-table__service {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.compare-table__service-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.compare-table__winner {
  position: relative;
}

.compare-table__winner::after {
  content: '★ Лучший';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: var(--fw-bold);
  color: var(--warn);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 2px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ════════════════════════════════════════════════════════════ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}

.faq-item:hover,
.faq-item--open {
  border-color: var(--border-light);
}

.faq-item--open {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}

.faq-question:hover { color: var(--accent); }

.faq-item--open .faq-question { color: var(--accent); }

.faq-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-md) var(--ease-bounce),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  color: var(--muted);
}

.faq-item--open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-dim);
  border-color: rgba(77, 163, 255, 0.3);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-lg) var(--ease),
              padding var(--dur-md) var(--ease);
}

.faq-item--open .faq-answer {
  max-height: 600px;
  padding-bottom: var(--sp-5);
}

.faq-answer__inner {
  padding-inline: var(--sp-6);
  padding-top: var(--sp-1);
  font-size: var(--fs-base);
  color: var(--text-2);
  line-height: var(--lh-relaxed);
}

/* ════════════════════════════════════════════════════════════
   TABS
   ════════════════════════════════════════════════════════════ */

.tabs {
  display: flex;
  gap: var(--sp-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-1);
  width: fit-content;
}

.tab-btn {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.tab-btn:hover { color: var(--text-2); }

.tab-btn--active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.tab-panel {
  display: none;
}

.tab-panel--active {
  display: block;
  animation: fade-in var(--dur-md) var(--ease);
}

/* ════════════════════════════════════════════════════════════
   PROS / CONS
   ════════════════════════════════════════════════════════════ */

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.pros-block,
.cons-block {
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pros-block {
  background: var(--green-dim);
  border: 1px solid rgba(126, 231, 135, 0.18);
}

.cons-block {
  background: var(--danger-dim);
  border: 1px solid rgba(248, 113, 113, 0.18);
}

.pros-block__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.cons-block__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--danger);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.pros-cons__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: var(--lh-relaxed);
}

.pros-cons__item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  margin-top: 7px;
  flex-shrink: 0;
}

.pros-block .pros-cons__item::before { background: var(--green); }
.cons-block .pros-cons__item::before { background: var(--danger); }

/* ════════════════════════════════════════════════════════════
   SPEC TABLE (review page)
   ════════════════════════════════════════════════════════════ */

.spec-table {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  font-size: var(--fs-sm);
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}

.spec-table tr:last-child { border-bottom: none; }
.spec-table tr:hover { background: rgba(255,255,255,0.02); }

.spec-table td {
  padding: var(--sp-3) var(--sp-5);
  vertical-align: middle;
}

.spec-table td:first-child {
  width: 45%;
  color: var(--muted);
  font-weight: var(--fw-medium);
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.spec-table td:last-child {
  color: var(--text-2);
  font-weight: var(--fw-semibold);
}

/* ════════════════════════════════════════════════════════════
   TOC (table of contents)
   ════════════════════════════════════════════════════════════ */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  font-size: var(--fs-sm);
}

.toc__title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.toc__link {
  color: var(--muted);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-xs);
  display: block;
  border-left: 2px solid transparent;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              padding var(--dur) var(--ease);
}

.toc__link:hover { color: var(--text-2); padding-left: var(--sp-3); }

.toc__link--active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  padding-left: var(--sp-3);
}

/* ════════════════════════════════════════════════════════════
   VERDICT BLOCK
   ════════════════════════════════════════════════════════════ */

.verdict {
  background: var(--grad-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}

.verdict__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--green-dim);
  border: 1px solid rgba(126, 231, 135, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  flex-shrink: 0;
}

.verdict__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
}

.verdict__text {
  font-size: var(--fs-base);
  color: var(--text-2);
  line-height: var(--lh-relaxed);
}

/* ════════════════════════════════════════════════════════════
   RATING WIDGET
   ════════════════════════════════════════════════════════════ */

.rating-widget {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.rating-widget__score {
  font-size: var(--fs-6xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-widget__max {
  font-size: var(--fs-lg);
  color: var(--muted);
  margin-top: var(--sp-2);
}

.rating-widget__stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--sp-2);
}

.rating-widget__stars svg {
  width: 20px;
  height: 20px;
  fill: var(--warn);
}

.rating-widget__label {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════
   SEARCH BOX
   ════════════════════════════════════════════════════════════ */

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box__icon {
  position: absolute;
  left: var(--sp-4);
  color: var(--muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.search-box__input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 12px var(--sp-5) 12px calc(var(--sp-4) + 18px + var(--sp-3));
  font-size: var(--fs-base);
  color: var(--text);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.search-box__input::placeholder { color: var(--muted-2); }

.search-box__input:focus {
  border-color: rgba(77, 163, 255, 0.5);
  box-shadow: 0 0 0 4px var(--accent-dim);
  outline: none;
}

.search-results {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-modal);
  overflow: hidden;
  display: none;
}

.search-results--visible { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
  font-size: var(--fs-sm);
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255,255,255,0.04); }

/* ════════════════════════════════════════════════════════════
   BACK TO TOP
   ════════════════════════════════════════════════════════════ */

.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: var(--z-sticky);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--dur-md) var(--ease),
              transform var(--dur-md) var(--ease-bounce),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.back-to-top--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--card-hover);
  color: var(--accent);
  border-color: rgba(77, 163, 255, 0.3);
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */

.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-16) var(--sp-8);
  margin-top: var(--sp-20);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-8);
}

.footer__brand p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: var(--lh-relaxed);
  margin-top: var(--sp-3);
  max-width: 280px;
}

.footer__heading {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.footer__link:hover { color: var(--text-2); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--fs-sm);
  color: var(--muted-2);
}

.footer__legal {
  display: flex;
  gap: var(--sp-5);
}

.footer__legal a {
  font-size: var(--fs-sm);
  color: var(--muted-2);
  transition: color var(--dur) var(--ease);
}

.footer__legal a:hover { color: var(--muted); }

/* ════════════════════════════════════════════════════════════
   ANIMATION UTILITIES
   ════════════════════════════════════════════════════════════ */

.animate-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-lg) var(--ease),
              transform var(--dur-lg) var(--ease);
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade {
  opacity: 0;
  transition: opacity var(--dur-lg) var(--ease);
}

.animate-fade.visible { opacity: 1; }

/* Stagger delays */
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }
.delay-6 { transition-delay: 480ms; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(77,163,255,0.15); }
  50%       { box-shadow: 0 0 40px rgba(77,163,255,0.35); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════
   RATING WIDGET EXTENDED (breakdown rows)
   ════════════════════════════════════════════════════════════ */

.rating-widget__breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.rating-row {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted, var(--muted));
}

.rating-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.rating-bar span {
  display: block;
  height: 100%;
  background: var(--grad-primary);
  border-radius: 3px;
}

.star { color: var(--warn); }
.star--empty { opacity: 0.25; }

/* ════════════════════════════════════════════════════════════
   PROS / CONS
   ════════════════════════════════════════════════════════════ */

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin: var(--sp-6) 0;
}

.pros,
.cons {
  padding: var(--sp-5);
  border-radius: var(--r-md);
}

.pros {
  background: rgba(126,231,135,0.06);
  border: 1px solid rgba(126,231,135,0.2);
}

.cons {
  background: rgba(255,100,100,0.06);
  border: 1px solid rgba(255,100,100,0.2);
}

.pros h3 { color: var(--green); margin-bottom: var(--sp-4); }
.cons h3 { color: var(--danger, #ff6464); margin-bottom: var(--sp-4); }

.pros ul,
.cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pros ul li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.cons ul li::before { content: "✗ "; color: var(--danger, #ff6464); font-weight: 700; }

/* ════════════════════════════════════════════════════════════
   VERDICT BLOCK
   ════════════════════════════════════════════════════════════ */

.verdict-block {
  display: flex;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background: linear-gradient(135deg, rgba(77,163,255,0.08), rgba(126,231,135,0.08));
  border: 1px solid rgba(77,163,255,0.2);
  border-radius: var(--r-lg);
  margin: var(--sp-8) 0;
}

.verdict-block__score {
  font-size: var(--fs-5xl, 3rem);
  font-weight: var(--fw-extrabold);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  line-height: 1;
  padding-top: 0.2em;
}

.verdict-block__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
}

/* ════════════════════════════════════════════════════════════
   VERDICT GRID (compare pages)
   ════════════════════════════════════════════════════════════ */

.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin: var(--sp-6) 0;
}

.verdict-card {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.verdict-card--winner {
  border-color: var(--accent);
  background: rgba(77,163,255,0.06);
}

.verdict-card__badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
}

.verdict-card__name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
}

/* ════════════════════════════════════════════════════════════
   VS HERO (compare pages)
   ════════════════════════════════════════════════════════════ */

.vs-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-10) 0;
  text-align: center;
}

.vs-hero__side {
  flex: 1;
  max-width: 220px;
}

.vs-hero__logo {
  width: 72px;
  height: 72px;
  border-radius: var(--r-md);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: var(--fw-extrabold);
  color: #fff;
  margin: 0 auto var(--sp-4);
}

.vs-hero__name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
}

.vs-hero__score {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vs-hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  min-width: 140px;
}

.vs-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-2);
  font-size: var(--fs-lg);
  font-weight: var(--fw-extrabold);
  color: var(--accent);
}

.vs-hero__winner {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--green);
}

.vs-hero__why {
  font-size: var(--fs-xs);
  color: var(--text-muted, var(--muted));
}

/* ════════════════════════════════════════════════════════════
   CODE BLOCK
   ════════════════════════════════════════════════════════════ */

.code-block {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: var(--sp-6) 0;
}

.code-block__header {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-muted, var(--muted));
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-mono, monospace);
}

.code-block pre {
  padding: var(--sp-5);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.65;
}

.code-block code {
  font-family: var(--ff-mono, 'Courier New', monospace);
  color: var(--green);
}

/* ════════════════════════════════════════════════════════════
   WARNING BLOCK
   ════════════════════════════════════════════════════════════ */

.warning-block {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: rgba(255, 130, 0, 0.08);
  border: 1px solid rgba(255, 130, 0, 0.3);
  border-radius: var(--r-md);
  margin: var(--sp-6) 0;
}

.warning-block__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.warning-block__content strong {
  display: block;
  margin-bottom: var(--sp-2);
  color: rgb(255, 160, 50);
}

/* ════════════════════════════════════════════════════════════
   GLOSSARY
   ════════════════════════════════════════════════════════════ */

.glossary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.glossary dt {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  padding: var(--sp-5) 0 var(--sp-2);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-4);
}

.glossary dt:first-of-type {
  border-top: none;
  margin-top: 0;
}

.glossary dd {
  color: var(--text-secondary, var(--muted-2, var(--muted)));
  line-height: 1.75;
  padding-bottom: var(--sp-2);
  margin-left: 0;
}

/* ════════════════════════════════════════════════════════════
   SIDEBAR CTA
   ════════════════════════════════════════════════════════════ */

.sidebar-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  text-align: center;
}

.sidebar-cta__rating {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-2);
}

.sidebar-cta__label {
  font-size: var(--fs-sm);
  color: var(--text-muted, var(--muted));
  margin-bottom: var(--sp-4);
}

/* col-highlight, win-cell for compare tables */
.col-highlight { background: rgba(77,163,255,0.05); }
.win-cell { color: var(--green); font-weight: var(--fw-semibold); }
.win-cell::after { content: " ✓"; opacity: 0.6; }
}
