:root {
  --bg: #f5f7f4;
  --bg-card: #ffffff;
  --bg-card-alt: #f8faf7;
  --bg-elevated: #eef5ef;
  --border: rgba(18, 24, 27, 0.08);
  --border-light: rgba(18, 24, 27, 0.16);
  --text-primary: #10221a;
  --text-secondary: #42554d;
  --text-muted: #6f8178;
  --accent: #00b67a;
  --accent-hover: #009e69;
  --accent-glow: rgba(0, 182, 122, 0.15);
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --green: #10b981;
  --red: #ef4444;
  --orange: #f97316;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-card:
    0 2px 10px rgba(16, 34, 26, 0.06), 0 18px 40px rgba(16, 34, 26, 0.05);
  --shadow-lg: 0 20px 60px rgba(16, 34, 26, 0.12);
  --transition: 0.2s ease;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(
      circle at top left,
      rgba(0, 182, 122, 0.08),
      transparent 32%
    ),
    linear-gradient(180deg, #f7faf7 0%, #f3f7f4 100%);
}

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

/* ---- LAYOUT ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 244, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: #e8f6ef;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(
    180deg,
    rgba(0, 182, 122, 0.08) 0%,
    rgba(255, 255, 255, 0.45) 75%,
    transparent 100%
  );
  border-bottom: 1px solid var(--border);
  padding: 56px 0 44px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  position: relative;
}

.hero-image {
  width: 100%;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(18, 24, 27, 0.08);
  box-shadow: 0 20px 60px rgba(16, 34, 26, 0.12);
  background: #fff;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ---- CONTROLS BAR ---- */
.controls-bar {
  padding: 24px 0 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 380px;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 11px 16px 11px 42px;
  transition: var(--transition);
  outline: none;
  box-shadow: 0 1px 2px rgba(16, 34, 26, 0.03);
}

.search-input:focus {
  border-color: var(--accent);
  background: var(--bg-card-alt);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.controls-right {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
}

.select-wrap {
  position: relative;
}

.control-select {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 36px 10px 14px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 34, 26, 0.03);
}

.control-select:focus,
.control-select:hover {
  border-color: var(--accent);
  background: var(--bg-card-alt);
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 4px;
  white-space: nowrap;
}

/* ---- FILTER PILLS ---- */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.pill:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---- BROKER GRID ---- */
.broker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

/* ---- BROKER CARD ---- */
.broker-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  display: grid;
  grid-template-columns: 1fr auto;
  position: relative;
  box-shadow: var(--shadow-card);
}

.broker-card:hover {
  border-color: rgba(0, 182, 122, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 182, 122, 0.08),
    var(--shadow-card);
  transform: translateY(-1px);
}

.broker-card-body {
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.broker-media {
  width: 132px;
  height: 96px;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf8f2 0%, #dff4ea 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.broker-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.broker-media-placeholder {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #0a7f57;
  letter-spacing: -0.02em;
}

.broker-info {
  flex: 1;
  min-width: 0;
}

.broker-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.broker-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.broker-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #eefaf5;
  color: #087a53;
  border: 1px solid rgba(0, 182, 122, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.broker-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.broker-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.broker-meta-item svg {
  flex-shrink: 0;
}

.broker-meta-label {
  color: var(--text-muted);
}
.broker-meta-value {
  color: var(--text-secondary);
  font-weight: 500;
}

.broker-card-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 16px;
  min-width: 196px;
  border-left: 1px solid var(--border);
}

.rating-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.rating-score {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
  color: #084e37;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.star svg {
  display: block;
}

.review-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}

.rating-caption {
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  box-shadow: 0 8px 18px rgba(0, 182, 122, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 22px rgba(0, 182, 122, 0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 10px 18px;
}

.btn-ghost:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* ---- REGULATION BADGE ---- */
.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.reg-badge.top {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.reg-badge.mid {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.reg-badge.off {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-badge {
  color: #0a7f57;
  background: #ebfaf3;
  border: 1px solid rgba(0, 182, 122, 0.16);
}

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 48px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.page-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
}

/* ===============================
   BROKER DETAIL PAGE
=============================== */

.detail-hero {
  background: linear-gradient(
    180deg,
    rgba(0, 182, 122, 0.08) 0%,
    transparent 100%
  );
  border-bottom: 1px solid var(--border);
  padding: 40px 0 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb-sep {
  opacity: 0.4;
}

.detail-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
}

.detail-logo-name {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.detail-media {
  width: 148px;
  height: 88px;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf8f2 0%, #dff4ea 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
}

.detail-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media-placeholder {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.detail-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.detail-tagline {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 4px;
}

.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.detail-rating-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  text-align: center;
  min-width: 180px;
  box-shadow: var(--shadow-card);
}

.detail-score {
  font-family: var(--font-body);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
  color: var(--text-primary);
}

.detail-score-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 10px;
}

.detail-stars {
  justify-content: center;
  gap: 3px;
}

.detail-stars .star {
  width: 18px;
  height: 18px;
}

.detail-review-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.detail-review-subcount {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

/* ---- TABS ---- */
.detail-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-top: 8px;
}

.tab-btn {
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
}

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

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- DETAIL LAYOUT ---- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 32px 0 60px;
  align-items: start;
}

.detail-main,
.detail-sidebar,
.detail-left,
.detail-logo-name > div:last-child,
.summary-card,
.sidebar-card,
.review-card {
  min-width: 0;
}

/* ---- SIDEBAR ---- */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: var(--text-muted);
  flex-shrink: 0;
}
.info-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.platforms-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.platform-chip {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.info-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* ---- RATING BREAKDOWN ---- */
.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.rating-row-label {
  width: 24px;
  text-align: right;
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.rating-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 99px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rating-bar-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.rating-bar-fill.danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.rating-row-count {
  width: 28px;
  text-align: right;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ---- PROS & CONS ---- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pros,
.cons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pros h4 {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.cons h4 {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.pro-item,
.con-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.pro-item::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.con-item::before {
  content: "✕";
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- VISIT BTN ---- */
.visit-btn {
  display: flex;
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  margin-bottom: 10px;
}

.visit-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 22px rgba(0, 182, 122, 0.22);
  transform: translateY(-1px);
}

.risk-warning {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.verdict-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f6fcf8 0%, #eef8f2 100%);
  border: 1px solid rgba(0, 182, 122, 0.16);
}

.verdict-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #087a53;
  margin-bottom: 8px;
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.scorecard-item {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
}

.scorecard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.scorecard-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.scorecard-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.scorecard-bar {
  height: 8px;
  border-radius: 99px;
  background: #e8efe9;
  overflow: hidden;
}

.scorecard-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #54d39d);
}

.facts-table-wrap {
  overflow-x: auto;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.facts-table th,
.facts-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.88rem;
  vertical-align: top;
}

.facts-table th {
  width: 18%;
  color: var(--text-muted);
  font-weight: 600;
  background: #fbfcfb;
}

.facts-table td {
  color: var(--text-primary);
}

.facts-table tr:last-child th,
.facts-table tr:last-child td {
  border-bottom: none;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.analysis-card {
  margin-bottom: 0;
}

/* ---- REVIEWS SECTION ---- */
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.reviews-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.reviews-context {
  flex: 1 1 100%;
  margin-top: -8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.review-form-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  background: rgba(10, 132, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  opacity: 1;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.review-form-toggle:hover,
.review-form-toggle:focus-visible {
  background: rgba(10, 132, 255, 0.14);
  border-color: rgba(10, 132, 255, 0.3);
  color: var(--accent-hover);
  transform: translateY(-1px);
}

.review-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.local-review-form {
  background:
    radial-gradient(circle at top right, rgba(10, 132, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7f9fc);
  border: 1px solid rgba(82, 92, 114, 0.12);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(18, 31, 53, 0.08);
}

.local-review-intro {
  margin-bottom: 18px;
}

.local-review-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.local-review-intro h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.local-review-intro p {
  margin: 0;
  max-width: 700px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.local-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.local-review-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.local-review-field span {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.local-review-rating-picker {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(82, 92, 114, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.local-review-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.local-review-star {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 1.85rem;
  line-height: 1;
  color: #c7d0de;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

.local-review-star:hover,
.local-review-star:focus-visible {
  color: #f7b731;
  transform: translateY(-1px);
  outline: none;
}

.local-review-star.is-active {
  color: #f59e0b;
}

.local-review-rating-picker:focus-within {
  border-color: rgba(10, 132, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.08);
}

.local-review-field input,
.local-review-field textarea {
  width: 100%;
  border: 1px solid rgba(82, 92, 114, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-primary);
  font: inherit;
  padding: 13px 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.local-review-field textarea {
  resize: vertical;
  min-height: 150px;
}

.local-review-field input:focus,
.local-review-field textarea:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.08);
}

.local-review-field-wide {
  grid-column: 1 / -1;
}

.local-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(82, 92, 114, 0.1);
}

.local-review-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
}

.local-review-toast {
  position: sticky;
  bottom: 20px;
  margin-left: auto;
  width: fit-content;
  max-width: min(100%, 420px);
  padding: 12px 16px;
  border-radius: 14px;
  background: #0f8a5f;
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.5;
  box-shadow: 0 16px 30px rgba(15, 138, 95, 0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 3;
}

.local-review-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 14px;
  transition: border-color var(--transition);
  position: relative;
  box-shadow: var(--shadow-card);
}

.review-card:hover {
  border-color: var(--border-light);
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 99px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.reviewer-meta {
  flex: 1;
  min-width: 0;
}

.reviewer-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.reviewer-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.review-sep {
  padding: 0 6px;
}

.review-style {
  font-size: 0.72rem;
  font-weight: 700;
  color: #087a53;
  background: #ebf8f1;
  border: 1px solid rgba(0, 182, 122, 0.14);
  border-radius: 99px;
  padding: 5px 10px;
  white-space: normal;
  text-align: center;
}

.review-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
}

.review-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.review-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* ---- SUMMARY CARD ---- */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.summary-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.summary-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.summary-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.checklist-section {
  padding: 12px 0 64px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--text-secondary);
  max-width: 720px;
}

.checklist-heading {
  margin-top: 34px;
}

.comparison-table-wrap {
  overflow-x: auto;
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 182, 122, 0.08),
      transparent 28%
    ),
    linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
  border: 1px solid rgba(18, 24, 27, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
  padding: 8px;
}

.comparison-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 18px 18px;
  border-bottom: 1px solid rgba(18, 24, 27, 0.07);
  font-size: 0.88rem;
  vertical-align: top;
}

.comparison-table th {
  background: rgba(239, 247, 242, 0.88);
  color: #5d7067;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.comparison-table th:first-child {
  border-top-left-radius: 16px;
}

.comparison-table th:last-child {
  border-top-right-radius: 16px;
}

.comparison-table tbody tr:nth-child(even) td {
  background: rgba(251, 253, 251, 0.82);
}

.comparison-table tbody tr:hover td {
  background: rgba(232, 248, 239, 0.72);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  min-width: 240px;
}

.comparison-broker-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.comparison-broker-link:hover {
  color: var(--accent);
}

.comparison-broker-cell {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.comparison-broker-subtitle {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.45;
  max-width: 280px;
}

.comparison-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comparison-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef8f2;
  border: 1px solid rgba(0, 182, 122, 0.12);
  color: #087a53;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-rating-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f6fcf8 0%, #e9f8f1 100%);
  border: 1px solid rgba(0, 182, 122, 0.14);
}

.comparison-rating-value {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b6e4d;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}

.comparison-rating-max {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.comparison-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.comparison-pill-neutral {
  background: #f3f6f4;
  color: #40534b;
  border: 1px solid rgba(18, 24, 27, 0.08);
}

.comparison-pill-accent {
  background: #eaf8f1;
  color: #087a53;
  border: 1px solid rgba(0, 182, 122, 0.14);
}

.comparison-pill-soft {
  background: #fff7e9;
  color: #946200;
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.comparison-platforms {
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.5;
}

.comparison-bestfor {
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 280px;
  display: inline-block;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.checklist-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.checklist-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

.checklist-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
}

.checklist-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  box-shadow: 0 -1px 0 rgba(16, 34, 26, 0.04);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 28px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  align-self: start;
}

.footer-disclaimer strong {
  color: var(--text-secondary);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---- STAR RENDERING ---- */
.star-full svg path:nth-child(1) {
  fill: var(--gold);
  stroke: var(--gold);
}
.star-half svg path:nth-child(1) {
  fill: url(#half);
  stroke: var(--gold);
}
.star-empty svg path:nth-child(1) {
  fill: transparent;
  stroke: var(--text-muted);
}

/* ---- UTILITIES ---- */
.hidden {
  display: none !important;
}
.text-muted {
  color: var(--text-muted);
}
.text-accent {
  color: var(--accent);
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}

/* ---- LOADING SKELETON ---- */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 25%,
    var(--bg-card-alt) 50%,
    var(--bg-elevated) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 1024px) {
  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    order: -1;
  }
  .detail-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .sidebar-card {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
  }
  .site-nav.open {
    display: flex;
  }

  .broker-card {
    grid-template-columns: 1fr;
  }

  .broker-card-body {
    padding: 16px;
    flex-wrap: wrap;
  }

  .broker-card-aside {
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    min-width: unset;
  }

  .rating-block {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .rating-score {
    font-size: 1.35rem;
  }

  .controls-bar {
    gap: 10px;
  }

  .controls-right {
    width: 100%;
    margin-left: 0;
  }

  .search-wrap {
    max-width: 100%;
    min-width: 0;
  }

  .detail-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-logo-name {
    gap: 16px;
  }

  .detail-rating-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    text-align: left;
    align-items: center;
    padding: 20px;
  }

  .detail-score {
    font-size: 2.2rem;
  }
  .detail-stars {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }
  .scorecard-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    order: 0;
    gap: 14px;
  }

  .sidebar-card {
    padding: 20px;
    border-radius: 16px;
  }

  .sidebar-card h3 {
    margin-bottom: 14px;
    font-size: 0.84rem;
  }

  .info-item {
    padding-bottom: 10px;
  }

  .detail-tags > * {
    max-width: 100%;
  }

  .broker-tag,
  .source-badge,
  .platform-chip {
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .facts-table {
    min-width: 100%;
  }

  .facts-table tbody,
  .facts-table tr {
    display: block;
  }

  .facts-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .facts-table tr:last-child {
    border-bottom: none;
  }

  .facts-table th,
  .facts-table td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
  }

  .facts-table th {
    margin-bottom: 4px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .facts-table td {
    margin-bottom: 10px;
    font-size: 0.88rem;
  }

  .facts-table td:last-child {
    margin-bottom: 0;
  }

  .review-controls {
    width: 100%;
  }

  .local-review-grid {
    grid-template-columns: 1fr;
  }

  .local-review-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-controls .select-wrap {
    flex: 1 1 180px;
  }

  .hero-stats {
    gap: 20px;
  }

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

@media (max-width: 480px) {
  .page-hero {
    padding: 32px 0 24px;
  }
  .hero-image {
    border-radius: 18px;
  }
  .broker-card-body {
    gap: 12px;
  }
  .broker-media {
    width: 100px;
    height: 74px;
    border-radius: 14px;
  }
  .broker-name {
    font-size: 0.95rem;
  }
  .broker-meta {
    gap: 10px;
  }
  .broker-meta-item {
    font-size: 0.74rem;
  }
  .filter-pills {
    gap: 6px;
  }
  .pill {
    font-size: 0.75rem;
    padding: 5px 11px;
  }
  .review-controls {
    width: 100%;
  }
  .review-controls .control-select {
    flex: 1;
  }
  .review-header {
    flex-wrap: wrap;
  }

  .detail-hero {
    padding-top: 28px;
  }

  .breadcrumb {
    margin-bottom: 18px;
    font-size: 0.76rem;
  }

  .detail-logo-name {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }

  .detail-media {
    width: 100%;
    max-width: 180px;
    height: 72px;
    border-radius: 16px;
  }

  .detail-name {
    font-size: 1.45rem;
  }

  .detail-tagline {
    font-size: 0.92rem;
  }

  .detail-tags {
    gap: 6px;
    margin-top: 10px;
  }

  .detail-rating-block {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
    min-width: 0;
  }

  .sidebar-card {
    padding: 18px;
    border-radius: 14px;
  }

  .detail-score,
  .detail-stars,
  .detail-review-count,
  .detail-review-subcount {
    text-align: left;
    justify-content: flex-start;
  }

  .summary-note br {
    display: none;
  }

  .summary-note strong:last-of-type {
    display: inline-block;
    margin-top: 8px;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .info-value {
    text-align: left;
    overflow-wrap: anywhere;
  }

  .platforms-list {
    justify-content: flex-start;
  }

  .visit-btn {
    padding: 12px;
    font-size: 0.86rem;
  }

  .risk-warning {
    text-align: left;
    font-size: 0.75rem;
  }

  .reviews-context {
    margin-top: 0;
  }

  .review-form-toggle {
    display: inline-block;
    margin-left: 0;
    margin-top: 6px;
  }

  .review-controls .select-wrap,
  .review-controls .control-select {
    width: 100%;
  }

  .review-controls .control-select {
    white-space: normal;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 14px;
  }

  .page-hero h1,
  .section-heading h2 {
    line-height: 1.05;
  }

  .controls-right {
    gap: 8px;
  }

  .results-count {
    width: 100%;
    order: -1;
    font-size: 0.78rem;
  }

  .controls-right .select-wrap,
  .controls-right .control-select {
    width: 100%;
  }

  .broker-card-body {
    padding: 14px;
    align-items: flex-start;
  }

  .broker-name-row {
    gap: 8px;
    margin-bottom: 6px;
  }

  .broker-desc {
    -webkit-line-clamp: 3;
    margin-bottom: 10px;
  }

  .broker-card-aside {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .rating-block {
    align-items: flex-start;
    gap: 4px;
  }

  .review-count,
  .rating-caption {
    text-align: left;
  }

  .broker-card-aside .btn {
    width: 100%;
  }

  .detail-media {
    width: 108px;
    height: 64px;
    border-radius: 14px;
    font-size: 1.1rem;
  }

  .summary-card,
  .sidebar-card,
  .review-card,
  .checklist-card {
    padding: 18px;
  }

  .checklist-image {
    width: 60px;
    height: 60px;
  }

  .facts-table {
    min-width: 0;
  }

  .comparison-table {
    min-width: 760px;
  }

  .reviews-context {
    margin-top: -4px;
    font-size: 0.8rem;
  }

  .review-style {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .detail-tags {
    align-items: flex-start;
  }

  .detail-tags .broker-tag,
  .detail-tags .source-badge {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .comparison-table-wrap {
    padding: 0;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .comparison-table {
    min-width: 0;
    display: block;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody {
    display: grid;
    gap: 14px;
  }

  .comparison-table tr {
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
    border: 1px solid rgba(18, 24, 27, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }

  .comparison-table tbody tr:nth-child(even) td,
  .comparison-table tbody tr:hover td {
    background: transparent;
  }

  .comparison-table td {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(18, 24, 27, 0.06);
    font-size: 0.82rem;
  }

  .comparison-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.35;
  }

  .comparison-table td:first-child {
    min-width: 0;
    display: block;
    padding: 16px 14px 14px;
    background: linear-gradient(
      180deg,
      rgba(235, 248, 241, 0.95) 0%,
      rgba(255, 255, 255, 0.96) 100%
    );
  }

  .comparison-table td:first-child::before {
    display: block;
    margin-bottom: 8px;
  }

  .comparison-table td:last-child {
    border-bottom: none;
  }

  .comparison-broker-subtitle,
  .comparison-bestfor {
    max-width: none;
  }

  .comparison-rating-cell,
  .comparison-pill {
    justify-self: start;
  }

  .comparison-platforms {
    display: inline-block;
  }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.broker-card {
  animation: fadeInUp 0.35s ease both;
}

.broker-card:nth-child(1) {
  animation-delay: 0.05s;
}
.broker-card:nth-child(2) {
  animation-delay: 0.08s;
}
.broker-card:nth-child(3) {
  animation-delay: 0.11s;
}
.broker-card:nth-child(4) {
  animation-delay: 0.14s;
}
.broker-card:nth-child(5) {
  animation-delay: 0.17s;
}
.broker-card:nth-child(6) {
  animation-delay: 0.2s;
}
.broker-card:nth-child(7) {
  animation-delay: 0.23s;
}
.broker-card:nth-child(8) {
  animation-delay: 0.26s;
}
