/* Zettabyte Design System — light, rounded, minimal */

:root {
  --bg-page: #f5f7fb;
  --bg-card: #ffffff;
  --bg-muted: #f8fafc;
  --bg-pill: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-amber: #e7f3f4;

  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-amber: #2f6f78;
  --text-green: #15803d;
  --text-red: #dc2626;
  --text-blue: #2563eb;

  --border: #e2e8f0;
  --border-hover: #cbd5e1;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-primary); text-decoration: none; }
a:hover { color: var(--text-blue); }

img { max-width: 100%; height: auto; }

/* ─── Layout ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.page-wrap { padding: 24px 0; }

.grid-sidebar {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .grid-sidebar { grid-template-columns: 280px minmax(0, 1fr); }
  .picker-grid { grid-template-columns: 1fr !important; }
  .picker-grid .filter-panel {
    position: static;
    top: auto;
    max-height: none;
  }
  .picker-grid .filter-panel-body {
    overflow: visible;
  }
}

.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ─── Navigation ─── */
.navbar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 8px;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
@media (min-width: 768px) { .navbar { padding: 16px 20px; top: 12px; } }
.navbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}
.navbar-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-dark);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  position: relative;
  overflow: hidden;
  text-indent: 0.14em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
  .navbar-brand-icon { width: 44px; height: 44px; border-radius: 16px; font-size: 13px; }
}
.navbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.navbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-pill);
  transition: all 0.15s;
}
@media (min-width: 768px) {
  .navbar-links { gap: 8px; }
  .navbar-links a { padding: 8px 16px; font-size: 14px; }
}
.navbar-links a:hover,
.navbar-links a.active {
  background: var(--bg-dark);
  color: white;
}

.navbar-search {
  display: flex;
  align-items: center;
  background: var(--bg-pill);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 14px;
  flex: 1;
  min-width: 160px;
  max-width: 360px;
  order: 3;
  transition: border-color 0.15s;
  position: relative;
}
@media (min-width: 768px) { .navbar-search { order: 0; } }
.navbar-search:focus-within {
  border-color: var(--border-hover);
  background: var(--bg-card);
}
.navbar-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  padding: 4px 0;
}
.navbar-search button {
  border: none;
  background: var(--bg-dark);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}
.navbar-search button:hover { opacity: 0.85; }

.navbar-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 12px 40px -12px rgba(15, 23, 42, .25);
  max-height: 360px;
  overflow-y: auto;
  z-index: 100;
}
.navbar-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle, #f1f5f9);
  font-size: 14px;
}
.navbar-search-item:last-child { border-bottom: none; }
.navbar-search-item:hover,
.navbar-search-item.active { background: var(--surface-soft, #f8fafc); }
.navbar-search-item img {
  width: 24px; height: 24px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.navbar-search-logo-fallback {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--bg-pill, #f1f5f9);
  color: var(--text-muted, #64748b);
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.navbar-search-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar-search-meta { font-size: 12px; color: var(--text-muted, #64748b); flex-shrink: 0; }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 16px; }
@media (min-width: 768px) { .card-body { padding: 20px; } }

.card-hover { transition: border-color 0.15s, box-shadow 0.15s; }
.card-hover:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

/* ─── Provider Card (list view — maximum data) ─── */
.provider-card {
  display: grid;
  gap: 16px;
  padding: 16px;
}
@media (min-width: 768px) {
  .provider-card { gap: 20px; padding: 24px; }
}
@media (min-width: 1024px) {
  .provider-card {
    grid-template-columns: 56px 1fr auto auto;
    align-items: start;
  }
}

.provider-rank {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.provider-logo-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.provider-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 4px;
}
.provider-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-pill);
  border-color: var(--border);
  padding: 0;
}

.provider-logo-wrap { position: relative; }
.rank-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.compare-toggle {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.compare-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.compare-toggle-box {
  display: block;
  width: 22px;
  height: 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-hover);
  border-radius: 6px;
  transition: all 0.15s;
}
.compare-toggle input:checked + .compare-toggle-box {
  background: var(--text-blue);
  border-color: var(--text-blue);
}
.compare-toggle input:checked + .compare-toggle-box::after {
  content: "✓";
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: block;
  text-align: center;
  line-height: 20px;
}

.compare-btn-label { cursor: pointer; user-select: none; }
.compare-btn-label .compare-btn-remove { display: none; }
.compare-btn-label:has(.compare-check:checked) .compare-btn-add { display: none; }
.compare-btn-label:has(.compare-check:checked) .compare-btn-remove { display: inline; }
.compare-btn-label:has(.compare-check:checked) {
  background: var(--text-blue);
  border-color: var(--text-blue);
  color: #fff;
}

.compare-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 100;
}
.compare-bar-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}
.compare-bar-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 4px 8px 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
}
.compare-chip button {
  background: none;
  border: none;
  color: white;
  opacity: 0.7;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}
.compare-chip button:hover { opacity: 1; }
.compare-bar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.compare-bar .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: transparent;
}
.compare-bar .btn-outline:hover {
  color: var(--bg-dark);
  background: #fff;
  border-color: #fff;
}
.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.best-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.best-plan-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.best-plan-name {
  font-weight: 600;
  color: var(--text-primary);
}
.best-plan-specs {
  color: var(--text-secondary);
}

.provider-main { min-width: 0; }
.provider-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 2px;
}
@media (min-width: 768px) { .provider-name { font-size: 20px; } }
.provider-name a { color: inherit; }
.provider-name a:hover { color: var(--text-blue); }

.provider-teaser {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .provider-meta { grid-template-columns: repeat(4, 1fr); }
}

.meta-box {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.meta-value {
  font-size: 14px;
  font-weight: 500;
}

.provider-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.provider-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.feature-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}
.feature-check .icon { color: var(--text-green); font-size: 14px; }
.feature-tip { cursor: help; }
.feature-tip .feature-tip-text { border-bottom: 1px dotted currentColor; }
.feature-x .icon { color: var(--text-muted); }

/* ─── Ratings block ─── */
.provider-ratings {
  display: grid;
  gap: 8px;
}

.rating-main {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.rating-big {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.rating-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.rating-sub-item {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.rating-sub-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.rating-sub-value {
  font-size: 16px;
  font-weight: 600;
}

.reviews-count {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 4px;
}

/* ─── Provider actions / price ─── */
.provider-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
@media (min-width: 1024px) {
  .provider-actions {
    flex-direction: column;
    align-items: flex-end;
    min-width: 140px;
  }
}
.price-block .price-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.price-block .price-value {
  font-size: 24px;
  font-weight: 700;
}
.price-block .price-period {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ─── Pills / Badges ─── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-pill);
  color: var(--text-secondary);
  white-space: nowrap;
}
.pill-amber { background: var(--bg-amber); color: var(--text-amber); }
.pill-green { background: #f0fdf4; color: var(--text-green); }
.pill-blue { background: #eff6ff; color: var(--text-blue); }
a.pill { text-decoration: none; transition: opacity .15s; }
a.pill:hover { opacity: .75; }

.data-table td.hh-flags {
  white-space: normal;
  vertical-align: top;
}
.data-table td.hh-flags > .flags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 140px;
  line-height: 1.2;
}
.hh-flags .flag-emoji {
  display: inline-block;
  cursor: help;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

/* source attribution */
.src-tag {
  display: none !important;
  font-size: 10px;
  line-height: 1.2;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 500;
  vertical-align: middle;
  white-space: nowrap;
}
.src-tag-hh { background: #eff6ff; color: #1d4ed8; }
.src-tag-hi { background: #f0fdf4; color: #15803d; }
.src-tag-manual { background: #e7f3f4; color: #2f6f78; }
.src-legend {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: #64748b; margin: 8px 0 16px;
  padding: 10px 14px; background: #f8fafc; border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.src-legend strong { color: #0f172a; font-weight: 600; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--bg-dark);
  color: white;
  border-color: var(--bg-dark);
}
.btn-primary:hover { background: #1e293b; color: white; }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--border-hover); color: var(--text-primary); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; white-space: nowrap; }

.auth-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-full { width: 100%; }

/* ─── Stat cards ─── */
.stat-card { padding: 14px; }
@media (min-width: 768px) { .stat-card { padding: 20px; } }
.stat-label { font-size: 12px; color: var(--text-secondary); }
@media (min-width: 768px) { .stat-label { font-size: 13px; } }
.stat-value { font-size: 22px; font-weight: 700; margin-top: 4px; }
@media (min-width: 768px) { .stat-value { font-size: 28px; } }
.stat-hint { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ─── Hero ─── */
.hero {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .hero { padding: 40px; border-radius: 32px; margin-bottom: 32px; } }
.hero h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
@media (min-width: 768px) { .hero h1 { font-size: 40px; } }
.hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}
@media (min-width: 768px) { .hero p { font-size: 16px; } }

/* ─── Section ─── */
.section { margin-bottom: 24px; }
@media (min-width: 768px) { .section { margin-bottom: 32px; } }
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
}
@media (min-width: 768px) { .section-title { font-size: 22px; } }
.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ─── Filter sidebar ─── */
.filter-panel { padding: 0; overflow: hidden; }
.filter-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: var(--bg-card, #fff);
  position: sticky;
  top: 0;
  z-index: 2;
}
.filter-panel-header .font-semibold { flex: 1; min-width: 0; }
.filter-panel-header .filter-reset { white-space: nowrap; }
.filter-panel-body { padding: 14px 16px; }
.filter-status {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  background: var(--bg-pill, #f1f5f9);
  padding: 2px 8px;
  border-radius: 6px;
}
@media (min-width: 1024px) {
  .filter-panel {
    position: sticky;
    top: 160px; /* clear sticky navbar with lower nav row */
    max-height: calc(100vh - 176px);
    display: flex;
    flex-direction: column;
  }
  .filter-panel-body { overflow-y: auto; flex: 1; }
}

.filter-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.filter-toggle-btn { display: none; cursor: pointer; margin-bottom: 12px; text-align: center; }
.filter-toggle-btn::before {
  content: "▾ ";
  display: inline-block;
  margin-right: 4px;
  transition: transform 0.2s;
}
.filter-toggle-input:checked + .filter-toggle-btn::before { transform: rotate(180deg); }
.filter-toggle-input:checked + .filter-toggle-btn .filter-toggle-label::before {
  content: "Скрыть фильтры";
}
.filter-toggle-input:checked + .filter-toggle-btn .filter-toggle-label { font-size: 0; }
.filter-toggle-input:checked + .filter-toggle-btn .filter-toggle-label::before { font-size: 13px; }

@media (max-width: 1023px) {
  .filter-toggle-btn { display: block; }
  .filter-panel { display: none; }
  .filter-toggle-input:checked ~ .filter-panel { display: block; }
}
.filter-group { margin-bottom: 16px; }
.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
}
.filter-select,
.filter-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  appearance: none;
  outline: none;
  transition: border-color 0.15s;
}
.filter-select:focus,
.filter-input:focus {
  border-color: var(--text-blue);
}

.filter-row {
  display: flex;
  gap: 8px;
}
.filter-row .filter-input { min-width: 0; flex: 1; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 0;
}
.check-item input[type="checkbox"] { flex-shrink: 0; }

/* ─── Breadcrumbs ─── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  list-style: none;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--text-blue); }
.breadcrumbs li::after { content: '/'; margin: 0 6px; color: var(--text-muted); }
.breadcrumbs li:last-child::after { display: none; }

/* ─── Pagination ─── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
  list-style: none;
}
.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
}
@media (min-width: 768px) {
  .pagination a,
  .pagination span { padding: 8px 16px; font-size: 14px; }
}
.pagination a:hover { border-color: var(--border-hover); color: var(--text-primary); }
.pagination .current {
  background: var(--bg-dark);
  color: white;
  border-color: var(--bg-dark);
}
.pagination .page-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.pagination .page-info {
  background: transparent;
  border: none;
  color: var(--text-secondary);
}

/* ─── Table ─── */
.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
}
.data-table th,
.data-table td {
  padding: 10px 12px;
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .data-table th,
  .data-table td { padding: 12px 16px; font-size: 14px; }
}
.data-table thead th {
  background: var(--bg-muted);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
}
@media (min-width: 768px) { .data-table thead th { font-size: 13px; } }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-muted); }

/* ─── Reviews ─── */
.review-card { padding: 16px; }
@media (min-width: 768px) { .review-card { padding: 20px; } }
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.review-author { font-weight: 600; font-size: 15px; }
.review-date { font-size: 13px; color: var(--text-muted); }
.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Active filter pills ─── */
.active-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.active-pills-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}
.active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 13px;
  transition: all 0.15s;
}
.active-pill:hover {
  background: var(--bg-pill);
  color: var(--text-red);
}
.active-pill-x {
  color: var(--text-muted);
  font-weight: 700;
}
.active-pill:hover .active-pill-x { color: var(--text-red); }
.active-pills-clear {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: underline;
}

/* ─── Data freshness ─── */
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.data-freshness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.data-freshness-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* compact freshness pill for cards */
.freshness-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: #f0fdf4;
  color: var(--text-green);
  border: 1px solid #bbf7d0;
}
.freshness-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-green);
}
.freshness-stale {
  background: var(--bg-amber);
  color: var(--text-amber);
  border-color: #b8d7da;
}
.freshness-stale .freshness-dot { background: var(--text-amber); }

/* ─── Compare empty state ─── */
.compare-empty {
  padding: 40px 20px;
}
.compare-empty-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.compare-empty-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.compare-empty-desc {
  max-width: 520px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
}
.compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  flex-wrap: wrap;
}

/* ─── Error pages ─── */
.error-page {
  text-align: center;
  padding: 60px 20px;
}
.error-code {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.error-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.error-desc {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
}
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Stars ─── */
.stars { display: inline-flex; gap: 2px; color: #2f6f78; }
.stars .empty { color: var(--border); }

/* ─── Rating summary + histogram ─── */
.rating-summary {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 640px) {
  .rating-summary { grid-template-columns: 160px 1fr; }
}
.rating-summary-main { text-align: center; }
.rating-histogram { display: grid; gap: 6px; }
.hist-row {
  display: grid;
  grid-template-columns: 16px 1fr 32px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.hist-label { color: var(--text-secondary); text-align: right; }
.hist-track {
  height: 8px;
  background: var(--bg-pill);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.hist-fill {
  display: block;
  height: 100%;
  background: #2f6f78;
  border-radius: var(--radius-full);
}
.hist-count { color: var(--text-muted); font-size: 12px; text-align: right; }

/* ─── Pros/Cons ─── */
.prco-card { border-width: 1px; border-style: solid; }
.prco-pros { border-color: #bbf7d0; background: #f0fdf4; }
.prco-cons { border-color: #fecaca; background: #fef2f2; }
.prco-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 10px;
}
.prco-pros .prco-title { color: var(--text-green); }
.prco-cons .prco-title { color: var(--text-red); }
.prco-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-primary);
  display: grid;
  gap: 6px;
}
.prco-list li::marker { color: var(--text-muted); }

/* ─── Detail page ─── */
.detail-hero {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .detail-hero { padding: 32px; border-radius: 32px; margin-bottom: 24px; }
}
.detail-hero-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .detail-hero-header { gap: 20px; margin-bottom: 20px; } }
.detail-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: white;
  border: 1px solid var(--border);
  padding: 6px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .detail-logo { width: 64px; height: 64px; border-radius: var(--radius-md); padding: 8px; }
}
.detail-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
@media (min-width: 768px) { .detail-name { font-size: 32px; } }
.detail-website {
  font-size: 13px;
  color: var(--text-blue);
  word-break: break-all;
}
@media (min-width: 768px) { .detail-website { font-size: 14px; } }
.detail-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .detail-description { font-size: 15px; margin-bottom: 20px; } }

.detail-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.detail-grid > * {
  min-width: 0;
}

#plans,
#reviews,
#faq,
#similar,
#plans-hh,
#reviews-hh {
  scroll-margin-top: 240px;
}
@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 256px; }
}

/* ─── Contact block ─── */
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  word-break: break-word;
}
@media (min-width: 768px) { .contact-item { padding: 12px; font-size: 14px; } }
.contact-icon { color: var(--text-muted); flex-shrink: 0; }

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 24px 0;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Uptime bar ─── */
.uptime-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
  margin-top: 4px;
}
.uptime-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--text-green);
  transition: width 0.3s;
}
.uptime-warn { background: #3f818b; }
.uptime-bad { background: var(--text-red); }

/* ─── Utilities ─── */
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-semibold { font-weight: 600; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: 12px; }

/* ─── Link cluster (homepage internal links) ─── */
.link-cluster-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}
.link-cluster-desc {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 12px;
}
.link-cluster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 540px) {
  .link-cluster-list { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
.link-cluster-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.link-cluster-list li:last-child { border-bottom: 0; }
.link-cluster-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}
.link-cluster-list a:hover { color: var(--text-blue); }

/* ─── Similar providers (provider detail) ─── */
.similar-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.similar-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.similar-meta { flex: 1; min-width: 0; }
.similar-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.similar-card:hover .similar-name { color: var(--text-blue); }
.similar-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e5e7eb);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

/* ─── FAQ accordion (provider detail) ─── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item[open] {
  border-color: var(--border-strong, #cbd5e1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.faq-question {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  padding: 14px 16px;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted, #64748b);
  line-height: 1;
}
.faq-item[open] .faq-question::after { content: "−"; }
.faq-answer {
  padding: 0 16px 14px;
  color: var(--text-secondary, #475569);
  font-size: 14px;
  line-height: 1.55;
}

/* ─── Plan staleness warning ─── */
.plan-stale {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #2f6f78;
  background: #e7f3f4;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.plan-stale::before {
  content: "⚠";
  font-size: 10px;
}

/* ─── Article cards (blog/KB list) ─── */
.article-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 8px;
}
.article-card-title a {
  color: var(--text-primary);
  text-decoration: none;
}
.article-card-title a:hover { color: var(--text-blue); }
.article-card-teaser {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* ─── Article detail (blog/KB) ─── */
.article-header { margin-bottom: 20px; }
.blog-article-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}
.blog-article-main {
  min-width: 0;
}
.blog-article-sidebar {
  min-width: 0;
  align-self: start;
}
@media (min-width: 1100px) {
  .blog-article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
  .blog-article-sidebar {
    position: static;
  }
}
.article-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--text-primary);
}
@media (min-width: 768px) {
  .article-title { font-size: 32px; }
}

.article-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 72ch;
}
.article-body.article-body-wide,
.card-body.article-body.article-body-wide,
#about-zettabyte .article-body,
.landing-intro .article-body,
#methodology .article-body { max-width: none; }
#about-zettabyte p,
.landing-intro p,
#methodology p,
.article-body-wide p { max-width: none; }
.article-visual {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  overflow: hidden;
}
.article-visual img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}
.article-visual figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.blog-sidebar-card {
  border-color: rgba(59, 130, 246, 0.16);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
@media (min-width: 1100px) {
  .blog-sidebar-card {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow: auto;
  }
}
.blog-sidebar-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-blue);
  margin-bottom: 10px;
}
.blog-sidebar-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}
.blog-sidebar-copy {
  margin: 0 0 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.blog-top-providers-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.blog-top-provider-item {
  display: grid;
  grid-template-columns: 26px 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.blog-top-provider-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  border-color: rgba(59, 130, 246, 0.18);
}
.blog-top-provider-rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}
.blog-top-provider-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.blog-top-provider-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.blog-top-provider-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog-top-provider-meta {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog-sidebar-cta {
  width: 100%;
}
@media (max-width: 1099px) {
  .blog-article-sidebar {
    order: 2;
  }
  .blog-sidebar-card {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
.article-body > *:first-child { margin-top: 0; }
.article-body > *:last-child { margin-bottom: 0; }
.article-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 10px;
  line-height: 1.35;
}
.article-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
}
.article-body p { margin: 0 0 16px; }
.article-body ul,
.article-body ol { margin: 0 0 16px; padding-left: 24px; }
.article-body li { margin-bottom: 6px; }
.article-body li > ul,
.article-body li > ol { margin-top: 6px; margin-bottom: 0; }
.article-body a {
  color: var(--text-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { opacity: 0.8; }
.article-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--text-blue);
  background: var(--bg-subtle, #f8fafc);
  color: var(--text-secondary);
  font-style: italic;
  border-radius: 0 6px 6px 0;
}
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-subtle, #f1f5f9);
  border-radius: 4px;
  color: var(--text-primary);
}
.article-body pre {
  margin: 16px 0;
  padding: 14px 16px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}
.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--border, #e5e7eb);
  margin: 24px 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.article-body th,
.article-body td {
  padding: 8px 12px;
  border: 1px solid var(--border, #e5e7eb);
  text-align: left;
}
.article-body th { background: var(--bg-subtle, #f8fafc); font-weight: 600; }

/* ─── Homepage picker wizard (pure-CSS radio tabs) ─── */
.wizard { padding: 0; }
.wizard-radio { position: absolute; opacity: 0; pointer-events: none; }
.wizard-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.picker-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.picker-tab {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.picker-tab:hover { color: var(--text-primary); background: var(--bg-card); }
.picker-tab-active {
  background: var(--bg-dark);
  color: #fff;
}
.picker-tab-active:hover { background: var(--bg-dark); color: #fff; }
.wizard-tab {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
  min-width: fit-content;
}
.wizard-tab:hover { color: var(--text-primary); background: var(--bg-card); }
.wizard-pane { display: none; padding: 20px; }
.wizard-pane-compact { padding: 16px; }
.wizard-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
#wz-shared:checked ~ .wizard-tabs label[for="wz-shared"],
#wz-vps:checked ~ .wizard-tabs label[for="wz-vps"],
#wz-ded:checked ~ .wizard-tabs label[for="wz-ded"] {
  background: var(--bg-dark);
  color: #fff;
}
#wz-shared:checked ~ .wz-pane-shared,
#wz-vps:checked ~ .wz-pane-vps,
#wz-ded:checked ~ .wz-pane-ded { display: block; }
.wizard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .wizard-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .wizard-grid { grid-template-columns: 1fr 1fr 1fr; } }
.wizard-field { display: flex; flex-direction: column; gap: 6px; }
.wizard-checks { gap: 4px; }
.wizard-checks .check-item { font-size: 14px; }
.wizard-actions .btn { padding: 12px 24px; font-size: 15px; }
.wizard-compact-home {
  overflow: hidden;
}
.wizard-compact-home .wizard-tabs {
  padding: 8px;
}
.wizard-compact-home .picker-filter-grid-primary {
  grid-template-columns: 1fr;
}
.wizard-compact-home .wizard-actions {
  margin-top: 14px;
  padding-top: 14px;
}
@media (max-width: 540px) {
  .wizard-pane { padding: 14px; }
  .wizard-actions .btn { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .wizard-compact-home .picker-filter-grid-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .wizard-compact-home .picker-filter-grid-primary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* ─── Mobile optimizations ─── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }

/* Prevent iOS zoom-on-focus: input font must be ≥16px on mobile */
@media (max-width: 767px) {
  .filter-select,
  .filter-input,
  .navbar-search input,
  input[type="search"],
  input[type="text"],
  input[type="number"],
  input[type="email"],
  select,
  textarea { font-size: 16px; }
}

/* Sticky first column in wide data tables — preserves row label while
   user horizontally scrolls on narrow screens */
@media (max-width: 767px) {
  .data-table { min-width: 480px; }
  .data-table th:first-child,
  .data-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-card);
    z-index: 1;
    box-shadow: 2px 0 4px -2px rgba(15, 23, 42, 0.08);
  }
  .data-table thead th:first-child { background: var(--bg-muted); }
  .data-table tbody tr:hover td:first-child { background: var(--bg-muted); }
}

/* Compare page top cards: inline grid-template-columns crushes on narrow;
   auto-fit keeps cards readable and flows to multiple rows */
@media (max-width: 767px) {
  .compare-top-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  }
  .compare-top-stats .stat-card { padding: 12px; }
}

/* Compare bar: honor iOS home-indicator + tighter chips on narrow */
.compare-bar {
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
@media (max-width: 767px) {
  .compare-bar { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; }
  .compare-bar-inner { gap: 8px; }
  .compare-chip { font-size: 12px; padding: 3px 6px 3px 10px; max-width: 100%; }
  .compare-chip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .compare-bar-actions .btn { padding: 8px 14px; }
}

/* Bigger tap targets on mobile — WCAG 2.5.5 recommends 44×44 */
@media (max-width: 767px) {
  .btn-sm, .btn-xs { min-height: 40px; padding: 8px 14px; }
  .pagination a, .pagination span { min-height: 40px; display: inline-flex;
    align-items: center; padding: 8px 14px; }
  .check-item { min-height: 36px; padding: 6px 0; font-size: 14px; }
  .check-grid { gap: 4px 10px; }
  .filter-label { font-size: 14px; }
  .navbar-links a { padding: 8px 12px; font-size: 13px; }
}

/* Compare-toggle: keep visual 22px box but expand hit area */
.compare-toggle { padding: 8px; margin: -8px; }

/* Navbar on narrow: let search take own row so brand + links don't cram */
@media (max-width: 540px) {
  .navbar { padding: 10px 12px; }
  .navbar-search { flex-basis: 100%; max-width: none; }
  .navbar-links a { font-size: 12px; padding: 6px 10px; }
  .navbar-brand { font-size: 16px; }
}

/* Provider card: prevent best-plan specs from overflowing narrow viewports */
.best-plan { overflow: hidden; min-width: 0; }
.best-plan-specs { min-width: 0; word-break: break-word; }
.provider-card { min-width: 0; }
.provider-main { overflow-wrap: anywhere; }

/* Rating-sub: reduce to 1 col on very narrow so labels don't clip */
@media (max-width: 360px) {
  .rating-sub { grid-template-columns: 1fr; }
  .provider-meta { grid-template-columns: 1fr; }
}

/* Detail hero-header: wrap + align on narrow so long names + site wrap clean */
@media (max-width: 540px) {
  .detail-hero-header { flex-wrap: wrap; }
  .detail-name { font-size: 20px; }
  .detail-hero { padding: 16px; }
  .hero { padding: 16px; }
  .hero h1 { font-size: 22px; }
  .stat-value { font-size: 20px; }
  .error-code { font-size: 72px; }
}

/* Filter panel on mobile: max-height + inner scroll so open panel doesn't
   push page content infinitely down; user taps toggle to close */
@media (max-width: 1023px) {
  .filter-toggle-input:checked ~ .filter-panel {
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .filter-panel-header { position: sticky; top: 0; }
}

/* Sticky navbar on iOS: avoid content hidden under notch */
.navbar { top: max(8px, env(safe-area-inset-top)); }
@media (min-width: 768px) {
  .navbar { top: max(12px, env(safe-area-inset-top)); }
}

/* Make long words (URLs, emails in contact block, descriptions) wrap */
.detail-description, .article-body p, .provider-teaser { overflow-wrap: anywhere; }
.contact-item { overflow-wrap: anywhere; }

/* Focus rings for keyboard users (mobile users with external kbd / a11y) */
:focus-visible { outline: 2px solid var(--text-blue); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .pill:focus-visible { outline-offset: 3px; }

/* ─── 2026 visual refresh overrides ─── */
:root {
  --bg-page: #eef5f5;
  --bg-page-accent: #e2eeef;
  --bg-card: #ffffff;
  --bg-muted: #f2f8f8;
  --bg-pill: #e6f1f2;
  --bg-soft: #e4efef;
  --bg-dark: #2f6f78;
  --bg-dark-soft: #3f818b;
  --bg-amber: #e7f3f4;

  --text-primary: #21404d;
  --text-secondary: #5b6d70;
  --text-muted: #7f9194;
  --text-amber: #2f6f78;
  --text-green: #15803d;
  --text-red: #dc2626;
  --text-blue: #2f6f78;

  --border: #cfe0e1;
  --border-hover: #b5cbcd;

  --shadow-sm: 0 10px 24px -22px rgba(47, 111, 120, 0.16);
  --shadow-card: 0 18px 36px -30px rgba(47, 111, 120, 0.2);
}

body {
  background: var(--bg-page);
}

.container { max-width: 1320px; padding-left: 24px; padding-right: 24px; }
.page-wrap { position: relative; z-index: 1; }
.grid-sidebar { gap: 28px; }
.grid-sidebar > * { min-width: 0; }
.grid-sidebar > aside,
.grid-sidebar > main {
  min-width: 0;
}

.card {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.card-hover:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.navbar {
  background: #f8fcfc;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 12px 16px;
}

.navbar-brand-group { min-width: 0; }

.navbar-brand {
  min-width: 0;
}

.navbar-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.navbar-brand-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  color: #2f6f78;
}

.navbar-brand-kicker {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 430px;
  line-height: 1.4;
}

.navbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navbar-cta { box-shadow: 0 16px 30px -18px rgba(47, 111, 120, 0.36); }

.navbar-lower {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(223, 212, 200, 0.95);
}

.navbar-meta {
  display: none;
}

.navbar-links a {
  border: 1px solid transparent;
  font-weight: 500;
  padding: 7px 13px;
  background: #edf4f5;
  color: #5f7278;
}

.navbar-links a:hover,
.navbar-links a.active {
  background: #2f6f78;
  color: white;
  border-color: #2f6f78;
}

.navbar-search {
  background: #f2f7f7;
  border-color: var(--border);
  padding: 3px 4px 3px 12px;
}

.navbar-search button {
  background: #2f6f78;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.navbar-search button:hover {
  background: #295f67;
  opacity: 1;
}

.navbar-brand-icon {
  background: #2f6f78;
  box-shadow: 0 12px 24px -18px rgba(47, 111, 120, 0.32);
}

.navbar-brand-icon::before,
.navbar-brand-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.navbar-brand-icon::before {
  width: 22px;
  height: 22px;
  top: -8px;
  right: -7px;
}

.navbar-brand-icon::after {
  width: 14px;
  height: 14px;
  bottom: -4px;
  left: -3px;
  background: rgba(255, 255, 255, 0.12);
}

.navbar-brand:hover .navbar-brand-icon {
  background: #295f67;
  box-shadow: 0 16px 28px -20px rgba(47, 111, 120, 0.42);
}

.navbar-brand:hover .navbar-brand-title {
  color: #295f67;
}

.navbar-search:focus-within {
  border-color: #9ec8cd;
  box-shadow: 0 0 0 4px rgba(47, 111, 120, 0.08);
}

.btn-outline:hover {
  border-color: #a7cbcf;
  color: #2f6f78;
  background: #f4fbfb;
}

.quick-choice:hover {
  border-color: #b4d5d8;
  background: #f7fcfc;
}

.hero-side-card {
  background: #fcfefe;
}

.hero {
  background: var(--bg-card);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-home {
  padding: 28px;
}

.hero-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.hero-main,
.hero-side { min-width: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 14px;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 13px;
  align-items: center;
}

.hero-trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
}

.hero-trust-list span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--bg-dark);
  box-shadow: 0 0 0 4px rgba(47, 111, 120, 0.10);
  flex: 0 0 auto;
}

.hero-trust-list span + span::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 1px;
  height: 14px;
  background: var(--border);
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .hero-trust-list {
    gap: 10px 14px;
  }

  .hero-trust-list span + span::after {
    display: none;
  }
}

.hero-side-card {
  height: 100%;
  background: var(--bg-card);
}

.hero-side-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.quick-choice {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: none;
}

.quick-choice:hover {
  border-color: var(--border-hover);
  box-shadow: none;
}

.quick-choice-title {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.quick-choice-desc {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.section-kicker { display: none; }

.section-title-lg {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.section-header-tight {
  align-items: center;
  margin-top: 20px;
}

.results-intro,
.page-hero,
.compare-hero,
.picker-hero {
  margin-bottom: 18px;
  background: var(--bg-card);
}

.results-intro-grid,
.compare-hero-grid,
.picker-hero-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: start;
}

.results-intro-side,
.compare-hero-note,
.picker-hero-note {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
}

.results-count-card {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  min-width: 128px;
  border-radius: 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.results-count-card strong {
  font-size: 28px;
  line-height: 1;
}

.results-count-label {
  color: var(--text-muted);
  font-size: 12px;
}

.results-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-panel {
  border-radius: 18px;
}

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

.filter-panel-header {
  padding: 16px 18px;
  background: var(--bg-card);
}

.filter-panel-body {
  padding: 16px 18px 18px;
}

.filter-summary {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.filter-cluster {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  margin-bottom: 14px;
}

.filter-cluster-soft {
  background: var(--bg-muted);
}

.filter-cluster-title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.filter-group-inline {
  margin-top: 4px;
}

.picker-advanced-filters {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
}

.picker-advanced-filters > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-muted);
}

.picker-advanced-filters > summary::-webkit-details-marker {
  display: none;
}

.picker-advanced-filters > summary::after {
  content: "▾";
  float: right;
  color: var(--text-muted);
}

.picker-advanced-filters[open] > summary::after {
  content: "▴";
}

.picker-advanced-filters .filter-cluster {
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--border);
}

.picker-filters-shell {
  min-width: 0;
}

.picker-filters-panel {
  overflow: hidden;
}

.picker-filters-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.picker-filters-title {
  font-size: 18px;
}

.picker-filters-subtitle {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.picker-filters-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
}

.picker-filters-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.picker-filters-body {
  display: grid;
  gap: 12px;
}

.picker-filter-grid {
  display: grid;
  gap: 10px;
}

.picker-filter-grid-primary {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.picker-filter-grid-flat {
  align-items: start;
}

.picker-filter-cluster {
  margin-bottom: 0;
}

.filter-group-card {
  margin-bottom: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
}

.picker-filter-grid .filter-group[role="group"] {
  background: var(--bg-muted);
}

.picker-filter-grid .filter-label,
.picker-filter-cluster .filter-label {
  margin-bottom: 6px;
  font-size: 12px;
}

.picker-filter-grid .filter-select,
.picker-filter-grid .filter-input,
.picker-filter-cluster .filter-select,
.picker-filter-cluster .filter-input {
  padding: 8px 12px;
  font-size: 13px;
}

.picker-advanced-filters-compact {
  margin-bottom: 0;
}

.picker-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
}

.picker-filter-actions .btn {
  width: auto;
  min-width: 140px;
}

.picker-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.picker-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.picker-sort .filter-select {
  min-width: 220px;
}

@media (min-width: 1024px) {
  .picker-sidebar .filter-panel-header {
    padding: 12px 14px;
  }

  .picker-sidebar .filter-panel-body {
    padding: 12px 14px 14px;
  }

  .picker-sidebar .filter-summary {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .picker-sidebar .filter-cluster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .picker-sidebar .filter-cluster-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .picker-sidebar .filter-group {
    margin-bottom: 0;
  }

  .picker-sidebar .filter-group[role="group"],
  .picker-sidebar .wizard-checks,
  .picker-sidebar .filter-cluster-soft .filter-group {
    grid-column: 1 / -1;
  }

  .picker-sidebar .filter-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .picker-sidebar .filter-select,
  .picker-sidebar .filter-input {
    padding: 8px 12px;
    font-size: 13px;
  }

  .picker-sidebar .filter-actions {
    flex-direction: row;
    margin-top: 12px;
    grid-column: 1 / -1;
  }

  .picker-sidebar .filter-actions .btn {
    width: auto;
    flex: 1;
  }

  .picker-filters-body {
    gap: 10px;
  }

  .picker-filter-grid-primary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .picker-filter-grid-advanced {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.provider-card-shell {
  background: var(--bg-card);
}

.provider-card-shell-top {
  position: relative;
  border-width: 1.5px;
}

.provider-card-shell-top-1 {
  border-color: rgba(47, 111, 120, 0.38);
  box-shadow: 0 18px 40px rgba(47, 111, 120, 0.14);
}

.provider-card-shell-top-2 {
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 16px 34px rgba(148, 163, 184, 0.12);
}

.provider-card-shell-top-3 {
  border-color: rgba(90, 152, 160, 0.4);
  box-shadow: 0 16px 34px rgba(90, 152, 160, 0.12);
}

.provider-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  align-items: start;
}

.provider-logo-wrap {
  width: 64px;
  height: 64px;
  overflow: visible;
}

.provider-logo {
  width: 64px;
  height: 64px;
}

.rank-badge {
  top: -6px;
  left: -6px;
  min-width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}

.rank-badge-top-1 {
  background: #2f6f78;
  color: #ffffff;
}

.rank-badge-top-2 {
  background: #3f818b;
  color: #ffffff;
}

.rank-badge-top-3 {
  background: #5a98a0;
  color: #ffffff;
}

.compare-toggle {
  top: -4px;
  right: -4px;
}

.provider-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.provider-trust-row,
.provider-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.provider-title-row { gap: 12px; }

.provider-mobile-price {
  display: none;
}

.provider-inline-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 78px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.provider-inline-rating-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.provider-inline-rating-meta {
  color: var(--text-secondary);
  font-size: 12px;
  text-align: right;
}

.provider-teaser {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.provider-tags-muted .pill {
  background: rgba(238, 243, 251, 0.9);
}

.picker-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}

.picker-table th,
.picker-table td {
  white-space: normal;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.picker-table td:nth-child(1) { width: 16%; }
.picker-table td:nth-child(2) { width: 7%; white-space: nowrap; }
.picker-table td:nth-child(3) { width: 19%; }
.picker-table td:last-child,
.picker-table th:last-child { white-space: nowrap; }

.picker-price-cell {
  white-space: nowrap;
}

.picker-inline-flags {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.picker-provider-link {
  font-weight: 600;
}

.picker-table th:nth-child(2),
.picker-table td:nth-child(2) {
  text-align: center;
}

.picker-sidebar .filter-cluster-title,
.picker-filter-cluster .filter-cluster-title {
  color: var(--text-blue);
}

.picker-sidebar .filter-group {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.picker-sidebar .filter-group[role="group"] {
  background: var(--bg-muted);
}

.picker-toolbar,
.picker-tabs,
.table-scroll.card {
  min-width: 0;
  max-width: 100%;
}

.picker-sidebar,
.picker-filters-shell,
.picker-main {
  min-width: 0;
}

.plan-location-cell {
  white-space: nowrap;
}

.plan-location-cell .flag-emoji {
  display: inline-block;
  margin-right: 4px;
  font-size: 16px;
}

.plan-detail-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.plan-detail-table th,
.plan-detail-table td {
  white-space: normal;
  vertical-align: top;
  font-size: 11px;
  line-height: 1.4;
  padding: 7px 6px;
  overflow-wrap: anywhere;
}

.plan-detail-table thead th {
  font-size: 10px;
}

.plan-name-cell {
  min-width: 0;
}

.plan-name-subline {
  margin-top: 4px;
  min-height: 18px;
}

.plan-disk-cell,
.plan-processor-cell {
  min-width: 0;
}

.plan-os-cell,
.plan-location-cell,
.plan-price-cell,
.plan-action-cell {
  white-space: nowrap;
}

.price-fx {
  border-bottom: 1px dotted currentColor;
  cursor: help;
}

.review-card-pos {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.review-card-neg {
  background: #fef2f2;
  border-color: #fecaca;
}

.review-form-card { border: 1px solid var(--border); }
.review-form-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.review-form { display: flex; flex-direction: column; gap: 10px; }
.review-form-text {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
  resize: vertical;
}
.review-form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  font-size: 32px;
  line-height: 1;
  user-select: none;
}
.star-rating input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.star-rating label {
  color: #d1d5db;
  cursor: pointer;
  padding: 0 3px;
  transition: color 0.15s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #fbbf24;
}
.star-rating input:focus-visible + label {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}
.review-flash-ok { background: #ecfdf5; border-color: #a7f3d0; }
.review-flash-err { background: #fef2f2; border-color: #fecaca; }
.navbar-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}
.navbar-user-avatar { width: 24px; height: 24px; border-radius: 50%; }
.navbar-logout-form { margin: 0; display: inline; }
.navbar-vk-login { white-space: nowrap; }

.plan-os-cell {
  min-width: 60px;
}

.os-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text-primary);
  margin-right: 4px;
}

.os-badge-windows {
  background: #e8eef8;
  color: #1f4b99;
}

.os-badge-linux {
  background: #eef4ef;
  color: #1f5135;
}

.os-glyph {
  font-size: 14px;
  line-height: 1;
}

.plan-action-cell .btn {
  white-space: nowrap;
  padding: 4px 6px;
  font-size: 11px;
}

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

@media (min-width: 1024px) {
  .plan-detail-table-shared,
  .plan-detail-table-vps,
  .plan-detail-table-dedicated {
    min-width: 100%;
  }

  .plan-detail-table-shared th:nth-child(1),
  .plan-detail-table-shared td:nth-child(1) { width: 28%; }
  .plan-detail-table-shared th:nth-child(2),
  .plan-detail-table-shared td:nth-child(2) { width: 8%; }
  .plan-detail-table-shared th:nth-child(3),
  .plan-detail-table-shared td:nth-child(3) { width: 8%; }
  .plan-detail-table-shared th:nth-child(4),
  .plan-detail-table-shared td:nth-child(4) { width: 18%; }
  .plan-detail-table-shared th:nth-child(5),
  .plan-detail-table-shared td:nth-child(5) { width: 14%; }
  .plan-detail-table-shared th:nth-child(6),
  .plan-detail-table-shared td:nth-child(6) { width: 14%; }
  .plan-detail-table-shared th:nth-child(7),
  .plan-detail-table-shared td:nth-child(7) { width: 10%; }

  .plan-detail-table-vps th:nth-child(1),
  .plan-detail-table-vps td:nth-child(1) { width: 26%; }
  .plan-detail-table-vps th:nth-child(2),
  .plan-detail-table-vps td:nth-child(2) { width: 10%; }
  .plan-detail-table-vps th:nth-child(3),
  .plan-detail-table-vps td:nth-child(3) { width: 14%; }
  .plan-detail-table-vps th:nth-child(4),
  .plan-detail-table-vps td:nth-child(4) { width: 13%; }
  .plan-detail-table-vps th:nth-child(5),
  .plan-detail-table-vps td:nth-child(5) { width: 6%; }
  .plan-detail-table-vps th:nth-child(6),
  .plan-detail-table-vps td:nth-child(6) { width: 11%; }
  .plan-detail-table-vps th:nth-child(7),
  .plan-detail-table-vps td:nth-child(7) { width: 11%; }
  .plan-detail-table-vps th:nth-child(8),
  .plan-detail-table-vps td:nth-child(8) { width: 9%; }

  .plan-detail-table-dedicated th:nth-child(1),
  .plan-detail-table-dedicated td:nth-child(1) { width: 32%; }
  .plan-detail-table-dedicated th:nth-child(2),
  .plan-detail-table-dedicated td:nth-child(2) { width: 10%; }
  .plan-detail-table-dedicated th:nth-child(3),
  .plan-detail-table-dedicated td:nth-child(3) { width: 18%; }
  .plan-detail-table-dedicated th:nth-child(4),
  .plan-detail-table-dedicated td:nth-child(4) { width: 18%; }
  .plan-detail-table-dedicated th:nth-child(5),
  .plan-detail-table-dedicated td:nth-child(5) { width: 12%; }
  .plan-detail-table-dedicated th:nth-child(6),
  .plan-detail-table-dedicated td:nth-child(6) { width: 10%; }
}

.provider-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
}

.provider-ratings {
  display: none;
}

.homepage-top-rated-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.homepage-top-podium .provider-card-shell {
  height: 100%;
}

.homepage-top-followup {
  align-items: stretch;
}

.homepage-ranking-card {
  height: 100%;
}

.homepage-ranking-card-body {
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.homepage-ranking-rank {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.homepage-ranking-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 4px;
  flex-shrink: 0;
}

.homepage-ranking-logo.provider-logo-placeholder {
  padding: 0;
}

.homepage-ranking-copy {
  min-width: 0;
}

.homepage-ranking-copy .font-semibold {
  display: block;
  margin-bottom: 2px;
}

.stat-card-soft {
  background: var(--bg-card);
}

.compare-hero-copy {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  max-width: 760px;
}

.compare-top-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.compare-provider-card {
  background: var(--bg-card);
}

.compare-provider-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.compare-provider-metrics {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.compare-provider-metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

.compare-provider-metrics div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.compare-provider-metrics strong {
  color: var(--text-primary);
  font-size: 14px;
}

.picker-hero-note,
.compare-hero-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.detail-hero {
  background: var(--bg-card);
  border-radius: 24px;
}

.detail-hero-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-founded { margin-top: 6px; }

.detail-summary-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 16px;
}

.detail-summary-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-summary-label {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-feature-strip {
  margin-top: 16px;
}

.detail-summary-item-features .detail-feature-strip {
  margin-top: 4px;
}

.page-hero-compact .card-body {
  padding-top: 20px;
  padding-bottom: 20px;
}

.error-page {
  background: var(--bg-card);
}

.btn-primary {
  background: #2f6f78;
  border-color: #2f6f78;
  color: white;
  box-shadow: 0 16px 30px -18px rgba(47, 111, 120, 0.4);
}

.btn-primary:hover {
  background: #295f67;
  border-color: #295f67;
  color: white;
}

.picker-tabs,
.wizard-tabs {
  background: #edf5f5;
  border-color: #c7dddd;
}

.picker-tab:hover,
.wizard-tab:hover {
  color: #2f6f78;
  background: rgba(248, 252, 252, 0.95);
}

.picker-tab-active {
  background: #2f6f78;
  color: #fff;
  box-shadow: 0 12px 24px -20px rgba(47, 111, 120, 0.45);
}

.picker-tab-active:hover {
  background: #295f67;
  color: #fff;
}

#wz-shared:checked ~ .wizard-tabs label[for="wz-shared"],
#wz-vps:checked ~ .wizard-tabs label[for="wz-vps"],
#wz-ded:checked ~ .wizard-tabs label[for="wz-ded"] {
  background: #2f6f78;
  color: #fff;
  box-shadow: 0 12px 24px -20px rgba(47, 111, 120, 0.45);
}

.pill-blue {
  background: #e8eef8;
  color: var(--text-blue);
}

.section-desc,
.compare-hero-copy,
.quick-choice-desc,
.filter-summary,
.results-count-label,
.provider-teaser,
.provider-inline-rating-meta,
.footer-copy,
.article-card-teaser,
.error-desc,
.compare-empty-desc,
.review-text,
.detail-description,
.picker-hero-note,
.compare-hero-note {
  color: var(--text-secondary);
}

.hero p,
.article-body,
.article-body p,
.article-body li,
.contact-item,
.review-author,
.compare-provider-metrics strong,
.meta-value,
.price-block .price-period,
.stat-label,
.link-cluster-desc {
  color: var(--text-primary);
}

.section-header {
  margin-bottom: 12px;
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer {
  margin-top: 48px;
  padding: 0;
  text-align: left;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 22px 0 12px;
  border-top: 1px solid rgba(219, 228, 240, 0.95);
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.footer-brand-badge {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #2f6f78;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.footer-copy {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
}

@media (min-width: 768px) {
  .hero-home { padding: 34px; }
  .hero-grid,
  .results-intro-grid,
  .compare-hero-grid,
  .picker-hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  }

  .section-title-lg { font-size: 32px; }

  .navbar { padding: 14px 18px; }
  .container { padding-left: 32px; padding-right: 32px; }

  .footer-inner {
    grid-template-columns: minmax(0, 1.5fr) auto;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .provider-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
  }

  .provider-actions {
    grid-column: 2;
  }

  .provider-action-buttons { width: auto; }
  .filter-panel {
    top: 160px !important;
    max-height: calc(100vh - 176px) !important;
  }
}

@media (max-width: 1023px) {
  .filter-toggle-input:checked ~ .filter-panel {
    display: block;
  }
}

@media (max-width: 767px) {
  .navbar-brand-kicker,
  .navbar-meta,
  .provider-ratings {
    display: none;
  }

  .navbar-tools {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }

  .navbar-lower {
    margin-top: 8px;
    padding-top: 8px;
  }

  .navbar-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
  }

  .navbar-links li {
    flex: 0 0 auto;
  }

  .navbar-search { max-width: none; }

  .navbar-cta {
    width: 100%;
  }

  .navbar {
    padding: 10px 12px;
  }

  .navbar-brand-title {
    font-size: 16px;
  }

  .navbar-links a {
    padding: 7px 11px;
    font-size: 12px;
  }

  .provider-inline-rating,
  .provider-mobile-price {
    display: flex;
  }

  .provider-header {
    gap: 10px;
  }

  .provider-card {
    grid-template-columns: 64px 1fr;
    align-items: start;
    padding: 16px 14px;
    gap: 14px;
  }

  .provider-main {
    padding-top: 2px;
  }

  .provider-actions {
    grid-column: 2;
  }

  .provider-action-buttons {
    width: 100%;
  }

  .hero-home {
    padding: 18px;
  }

  .wizard-pane {
    max-height: 58vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wizard-actions {
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
    padding-bottom: 2px;
  }

  .container { padding-left: 16px; padding-right: 16px; }

  .provider-meta {
    margin-bottom: 8px;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-meta .meta-box {
    padding: 8px 10px;
  }

  .provider-features .feature-check:nth-child(n+4) {
    display: none;
  }

  .provider-features {
    margin-bottom: 8px;
  }

  .provider-action-buttons .btn-outline {
    display: none;
  }

  .homepage-ranking-card-body {
    grid-template-columns: auto 40px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .homepage-ranking-logo {
    width: 40px;
    height: 40px;
  }

  .provider-name {
    font-size: 16px;
  }

  .provider-inline-rating-value {
    font-size: 22px;
  }

  .detail-summary-strip {
    grid-template-columns: 1fr;
  }

  .compare-provider-title { font-size: 18px; }
}

@media (max-width: 540px) {
  .section-title-lg { font-size: 24px; }
  .hero-side-title { font-size: 18px; }
  .quick-choice { padding: 12px 14px; }
}
.picker-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.picker-sidebar,
.picker-main {
  min-width: 0;
}

@media (min-width: 1024px) {
  .picker-layout {
    gap: 18px;
  }

  .picker-layout .filter-panel {
    position: static;
    top: auto;
    max-height: none;
  }

  .picker-layout .filter-panel-body {
    overflow: visible;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .picker-filter-grid-primary,
  .picker-filter-grid-advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .picker-filters-meta {
    justify-content: flex-start;
  }

  .picker-filter-actions {
    justify-content: stretch;
  }

  .picker-filter-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .picker-filters-title {
    font-size: 16px;
  }

  .picker-filters-subtitle {
    font-size: 12px;
  }

  .picker-filters-count {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .picker-sort .filter-select {
    min-width: 0;
    width: 100%;
  }
}

/* footer bottom — contact + legal links */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(219, 228, 240, 0.95);
}
.footer-contact { margin: 0; color: var(--text-secondary); font-size: 13px; }
.footer-contact a { color: var(--text-blue); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-legal-links a {
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
}
.footer-legal-links a:hover { color: var(--text-primary); text-decoration: underline; }
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.18), 0 4px 12px -4px rgba(15, 23, 42, 0.08);
  padding: 16px 18px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
}
.cookie-banner__text a { color: var(--text-blue); text-decoration: underline; }
.cookie-banner__btn {
  flex-shrink: 0;
  padding: 10px 22px;
  border: 0;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cookie-banner__btn:hover { background: #1e293b; }
.cookie-banner__btn:focus-visible { outline: 2px solid var(--text-blue); outline-offset: 2px; }
@media (max-width: 720px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 14px; border-radius: 14px; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-banner__text { font-size: 13px; }
  .cookie-banner__btn { width: 100%; padding: 12px 18px; }
}

/* legal pages (privacy, terms) */
.legal-page { max-width: 880px; margin: 24px auto 56px; padding: 0 4px; }
.legal-page__head { margin-bottom: 28px; }
.legal-page__head h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text-primary);
}
@media (min-width: 768px) { .legal-page__head h1 { font-size: 34px; } }
.legal-page__lede {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}
.legal-page__lede a { color: var(--text-blue); }
.legal-page__section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.legal-page__section:first-of-type { border-top: 0; padding-top: 0; }
.legal-page__section h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text-primary);
}
@media (min-width: 768px) { .legal-page__section h2 { font-size: 22px; } }
.legal-page__section p {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.65;
}
.legal-page__section p:last-child { margin-bottom: 0; }
.legal-page__section ul {
  margin: 8px 0 14px;
  padding-left: 22px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.65;
}
.legal-page__section ul li { margin-bottom: 6px; }
.legal-page__section a { color: var(--text-blue); }
.legal-page__section a:hover { text-decoration: underline; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 14.5px;
}
.legal-table th, .legal-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  color: var(--text-primary);
}
.legal-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-primary);
}
@media (max-width: 600px) {
  .legal-table, .legal-table thead, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; }
  .legal-table thead { display: none; }
  .legal-table tr { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .legal-table th, .legal-table td { border: 0; border-bottom: 1px solid var(--border); }
  .legal-table tr td:last-child { border-bottom: 0; }
}
