:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --ink: #192a3b;
  --muted: #4b6073;
  --line: #d5dfec;
  --accent: #0f7b6c;
  --accent-soft: #dff6f0;
  --highlight: #f59e0b;
  --shadow: 0 16px 34px rgba(18, 34, 56, 0.1);
}

* {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 8% 4%, #dff4ff 0%, transparent 32%),
    radial-gradient(circle at 96% 18%, #e7fce9 0%, transparent 28%),
    linear-gradient(155deg, #edf3ff 0%, #f3f8ff 42%, #eefcf4 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", serif;
  margin: 0;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.45;
  z-index: -1;
}

.orb-one {
  width: 320px;
  height: 320px;
  background: #9ad2ff;
  top: -100px;
  left: -120px;
}

.orb-two {
  width: 360px;
  height: 360px;
  background: #b8efc6;
  right: -140px;
  top: 180px;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(242, 247, 255, 0.84);
  border-bottom: 1px solid rgba(183, 199, 223, 0.45);
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
}

.brand-badge {
  display: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 0.2rem;
  color: #153b52;
  font-family: "Fraunces", serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-wordmark-img {
  display: block;
  width: 360px;
  height: 52px;
  max-width: 44vw;
  object-fit: contain;
}

.brand-wordmark-inline {
  display: block;
  width: 360px;
  height: 52px;
  max-width: 44vw;
}

@media (max-width: 620px) {
  .brand-wordmark {
    height: 29px;
    font-size: 1.14rem;
  }

  .brand-wordmark-img {
    width: 260px;
    height: 38px;
    max-width: 58vw;
  }

  .brand-wordmark-inline {
    width: 260px;
    height: 38px;
    max-width: 58vw;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #2d4454;
  font-weight: 500;
}

.nav-links > a,
.nav-links .menu-link {
  white-space: nowrap;
}

.menu-item {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-icon {
  font-size: 0.72rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #f9fcff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(26, 44, 72, 0.13);
  padding: 0.55rem;
  display: none;
  z-index: 20;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.98rem;
}

.dropdown a:hover {
  background: #e9f8f3;
  color: #145147;
}

.dropdown a.dropdown-all-brokers {
  justify-content: center;
  margin-top: 0.7rem;
  background: #153b52;
  color: #ffffff;
  font-weight: 700;
  border-radius: 8px;
  border-top: 1px solid #d8e3ee;
  padding-top: 0.6rem;
}

.dropdown a.dropdown-all-brokers:hover {
  background: #102d3f;
  color: #ffffff;
}

.drop-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f7c63d 0%, #16985f 100%);
}

.dropdown-broker-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}

.guide-icon {
  min-width: 28px;
  height: 20px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #153b52 0%, #1f6e74 100%);
}

.tools-symbol-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #164764;
  background: linear-gradient(180deg, #edf6ff 0%, #e5f1ff 100%);
  border: 1px solid #c7dbef;
  flex: 0 0 auto;
  line-height: 1;
}

.tools-symbol-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}


.flag-icon {
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.menu-item:hover .dropdown {
  display: block;
}

.menu-item:focus-within .dropdown {
  display: block;
}

.lang-menu .dropdown {
  min-width: 160px;
}

.lang-menu .dropdown a {
  justify-content: flex-start;
}

.language-menu {
  margin-left: auto;
}

.lang-trigger {
  border: 1px solid #d2dfef;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  cursor: pointer;
  color: #1b4d75;
  font-weight: 700;
  padding: 0.4rem 0.66rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(14, 42, 72, 0.08);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lang-trigger:hover {
  background: linear-gradient(180deg, #ffffff 0%, #ebf4ff 100%);
  border-color: #b9d1ea;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(12, 40, 69, 0.14);
}

.language-menu.open .lang-trigger {
  border-color: #91b9e2;
  box-shadow: 0 11px 24px rgba(17, 55, 92, 0.17);
}

.lang-trigger-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-trigger-code {
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

.language-panel {
  position: absolute;
  left: auto;
  right: 0;
  transform: none;
  top: calc(100% + 10px);
  width: min(320px, 88vw);
  max-height: min(62vh, 420px);
  overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid #c9d9ec;
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(10, 33, 59, 0.26);
  padding: 0.68rem;
  z-index: 2600;
  display: none !important;
  flex-direction: column;
  gap: 0.35rem;
}

body.language-panel-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  z-index: 2400;
  pointer-events: none;
}

.language-menu.open .language-panel {
  display: flex !important;
}

.lang-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 12px;
  padding: 0.55rem 0.58rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.58rem;
  color: #17324d;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.lang-option:hover {
  background: transparent;
  transform: translateY(-1px);
  box-shadow: none;
}

.lang-option.active {
  background: transparent;
  border-color: #9ebce1;
  box-shadow: none;
}

.lang-option-flag {
  font-size: 1.24rem;
  line-height: 1;
  margin-top: 0.06rem;
  flex: 0 0 auto;
}

.lang-option-text {
  display: grid;
  gap: 0.08rem;
}

.lang-option-text strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #152f49;
}

.lang-option-text small {
  font-size: 0.82rem;
  color: #6b8096;
  line-height: 1.25;
}

.brokers-menu .dropdown {
  min-width: 420px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.45rem;
  row-gap: 0.15rem;
}

.brokers-menu:hover .dropdown,
.brokers-menu:focus-within .dropdown {
  display: grid;
}

.brokers-menu .dropdown a.dropdown-all-brokers {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  min-width: 190px;
  margin-top: 0.95rem;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

@media (max-width: 620px) {
  .brokers-menu .dropdown {
    min-width: min(92vw, 420px);
  }

  .dropdown {
    max-width: 92vw;
  }

  .language-panel {
    top: calc(100% + 8px);
    width: min(300px, 90vw);
    max-height: min(60vh, 420px);
    padding: 0.58rem;
  }

  .lang-option-text strong {
    font-size: 0.94rem;
  }

  .lang-option-text small {
    font-size: 0.79rem;
  }
}

.menu-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

.menu-item:focus-within .dropdown-icon {
  transform: rotate(180deg);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: #e9f0ff;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.menu-toggle .menu-icon {
  width: 18px;
  height: 18px;
  stroke: #2567ff;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle .menu-icon-close {
  display: none;
}

.mobile-cta-link {
  display: none;
}

body .mobile-cta-link {
  display: none !important;
}

.mobile-drawer-head {
  display: none;
}

.mobile-nav-backdrop {
  display: none;
  border: 0;
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 34, 0.4);
  z-index: 3200;
}

body.mobile-menu-open .mobile-nav-backdrop {
  display: block;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(17, 92, 80, 0.24);
  background: #0b6559;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #97b9b2;
  color: #185046;
}

.btn-ghost:hover {
  background: #ebfaf6;
  box-shadow: none;
}

.btn-small {
  font-size: 0.9rem;
  padding: 0.58rem 1rem;
}

.hero {
  padding: 5.5rem 0 3rem;
}

.eyebrow {
  color: #2f6a62;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2rem, 4.9vw, 4rem);
  margin-top: 0.5rem;
  line-height: 1.05;
  max-width: 14ch;
}

.hero-copy {
  max-width: 58ch;
  margin: 1.1rem 0 0;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
}

.hero-cta .btn,
.hero-cta .btn-ghost {
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease !important;
  transform: none !important;
  box-shadow: none !important;
}

.hero-cta .btn:hover {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  background: #0d6e61;
}

.hero-cta .btn-ghost:hover {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  background: #eef7f4;
}

.hero-cta .btn:focus-visible,
.hero-cta .btn:active,
.hero-cta .btn-ghost:focus-visible,
.hero-cta .btn-ghost:active {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-stats article {
  background: rgba(250, 253, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  color: #17394a;
}

.hero-stats span {
  color: #5f717b;
  font-size: 0.92rem;
}

.section {
  padding: 2.6rem 0;
}

.guide-main > .section:last-child {
  padding-bottom: 0.8rem;
}

.broker-finder {
  background: linear-gradient(140deg, #f5fbff 0%, #f2fff7 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 18px 38px rgba(21, 55, 87, 0.11);
}

.finder-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.9rem 1rem;
}

.finder-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: #2c4150;
}

.finder-form select {
  width: 100%;
  border: 1px solid #bdd0de;
  border-radius: 10px;
  background: #fff;
  color: #1e3242;
  padding: 0.62rem 0.72rem;
  font: inherit;
  box-shadow: inset 0 1px 1px rgba(25, 46, 67, 0.04);
}

.finder-form select:focus-visible {
  outline: 2px solid #86b7ff;
  outline-offset: 1px;
  border-color: #7ca8ec;
}

.finder-form .btn {
  border: 0;
  cursor: pointer;
  justify-self: start;
}

.finder-results {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.finder-result-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #cfdce8;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(25, 55, 86, 0.08);
}

.finder-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.finder-broker-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.finder-broker-logo {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: contain;
  box-shadow: 0 5px 12px rgba(19, 39, 62, 0.2);
}

.finder-broker-fallback {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1b4f8c, #2d77c7);
  box-shadow: 0 5px 12px rgba(19, 39, 62, 0.2);
}

.finder-result-head h3 {
  font-size: 1.08rem;
  margin: 0;
}

.finder-score {
  font-size: 0.78rem;
  font-weight: 700;
  color: #155848;
  background: #e6f8ee;
  border: 1px solid #b7e4cc;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

.finder-reasons {
  margin: 0.58rem 0 0.8rem;
  padding-left: 1.1rem;
  color: #4a6175;
}

.finder-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.finder-actions .visit-btn,
.finder-actions .review-btn {
  margin: 0;
  display: inline-block;
}

.finder-empty {
  color: #50657a;
}

.finder-page-main {
  padding-top: 3.2rem;
}

.finder-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(63, 124, 197, 0.12), transparent 33%),
    radial-gradient(circle at 92% 8%, rgba(44, 170, 113, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.finder-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.section-heading h2 {
  margin-top: 0.4rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.review-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.review-related-links {
  margin-top: 1rem;
}

.review-related-links ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: #445868;
  line-height: 1.9;
}

.review-related-links a {
  color: #0f5f90;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-cluster-links .method-grid {
  margin-top: 1rem;
}

.method-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
}

.method-card h3 {
  font-size: 1.08rem;
}

.method-card p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
}

.score-section .section-heading h2 {
  max-width: 18ch;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.score-card {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.8rem;
}

.score-card h3 {
  font-size: 0.96rem;
  min-height: 44px;
}

.score-card p {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
}

.score-meter {
  height: 8px;
  border-radius: 999px;
  background: #e9eef7;
  border: 1px solid #d1dcee;
  overflow: hidden;
}

.score-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0f7b6c 0%, #2a9d8f 100%);
}

.trust-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.trust-strip article {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 1rem 1.1rem;
}

.trust-strip h3 {
  font-size: 1.25rem;
}

.trust-strip ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  color: #435667;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.team-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
}

.team-card h3 {
  font-size: 1.1rem;
}

.team-card p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.team-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #0f7b6c 0%, #1d5b9d 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 18px rgba(17, 48, 82, 0.18);
}

.ai-assistant {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
}

.ai-fab {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(145deg, #0f7b6c 0%, #1c5c97 100%);
  box-shadow: 0 14px 28px rgba(14, 44, 73, 0.28);
  color: #fff;
}

.ai-fab-icon {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ai-panel {
  width: min(360px, calc(100vw - 30px));
  height: 430px;
  margin-bottom: 10px;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d2deed;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(17, 42, 69, 0.22);
}

.ai-panel.open {
  display: flex;
}

.ai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.72rem 0.8rem;
  background: #f2f8ff;
  border-bottom: 1px solid #dde8f5;
}

.ai-close {
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: #3f5469;
}

.ai-messages {
  flex: 1;
  overflow: auto;
  padding: 0.72rem;
  background: #fcfeff;
}

.ai-msg {
  margin: 0 0 0.5rem;
  padding: 0.52rem 0.62rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ai-msg-bot {
  background: #eef6ff;
  border: 1px solid #d8e8fb;
  color: #27445f;
}

.ai-msg-user {
  background: #e7f7f1;
  border: 1px solid #cae9de;
  color: #1f5349;
}

.ai-input-row {
  display: flex;
  gap: 0.45rem;
  padding: 0.62rem;
  border-top: 1px solid #dde8f5;
  background: #fff;
}

.ai-input {
  flex: 1;
  border: 1px solid #c8d8ea;
  border-radius: 9px;
  padding: 0.56rem 0.62rem;
  font: inherit;
}

.ai-send {
  border: 0;
  border-radius: 9px;
  padding: 0.56rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: #0f7b6c;
}

.ai-inline-link {
  color: #0d5aa2;
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.4rem;
  text-align: center;
}

.broker-rating {
  width: min(240px, 100%);
  margin: 0.55rem auto 0.95rem;
}

.rating-meter {
  width: 100%;
  height: 10px;
  background: #e6edf6;
  border: 1px solid #d3ddea;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(18, 35, 57, 0.08);
}

.rating-fill {
  display: block;
  width: var(--rating);
  height: 100%;
  background: linear-gradient(90deg, #f0c94c 0%, #9bcf53 55%, #4fbf77 100%);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(46, 122, 86, 0.2);
  transition: width 320ms ease;
}

.broker-logo {
  display: block;
  width: 77px;
  height: 77px;
  border-radius: 9px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-shadow: 0 8px 18px rgba(20, 40, 66, 0.22);
  margin: 0 auto 0.9rem;
}

.broker-logo-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ffd400 0%, #22c55e 100%);
  border: 1px solid #98caa9;
  padding: 0;
}

.review-logo {
  width: 194px;
  height: 48px;
  object-fit: contain;
}

.card ul {
  padding-left: 1.1rem;
  color: #4d606a;
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.review-btn {
  display: table;
  margin: 0.8rem auto 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.review-btn:hover {
  color: #0b6559;
}

.visit-btn {
  display: table;
  margin: auto auto 0;
  padding: 0.62rem 1.6rem;
  border-radius: 8px;
  background: #1c3f5a;
  color: #fff;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(19, 43, 66, 0.32);
  background: linear-gradient(135deg, #2c5d84 0%, #234d70 55%, #1a3d5a 100%);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.country-grid a {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  text-align: center;
  font-weight: 500;
}

.country-grid a:hover {
  border-color: #7fb5aa;
  color: #19574d;
}

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

.checklist {
  background: linear-gradient(160deg, #ebfbf5 0%, #f5f9ff 100%);
  border: 1px solid #cfe4dc;
  border-radius: 1rem;
  padding: 1.2rem;
}

.checklist h3 {
  font-size: 1.35rem;
}

.checklist ul {
  line-height: 1.9;
  color: #42525b;
  padding-left: 1rem;
}

.about p {
  max-width: 65ch;
}

.site-footer {
  border-top: 1px solid rgba(166, 187, 215, 0.45);
  margin-top: 2rem;
  padding-top: 2rem;
  background: rgba(245, 250, 255, 0.82);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.disclaimer {
  background: #fff8ec;
  border: 1px solid #f0dfc3;
  border-left: 5px solid var(--highlight);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
}

.copyright {
  text-align: center;
  color: #6b7378;
  font-size: 0.85rem;
  padding: 1.2rem 0 1.6rem;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 3200;
  }

  .nav-wrap.menu-open .menu-toggle span:nth-child(1) {
    transform: none;
  }

  .nav-wrap.menu-open .menu-toggle span:nth-child(2) {
    opacity: 1;
  }

  .nav-wrap.menu-open .menu-toggle span:nth-child(3) {
    transform: none;
  }

  .nav-wrap.menu-open .menu-toggle .menu-icon-open {
    display: none;
  }

  .nav-wrap.menu-open .menu-toggle .menu-icon-close {
    display: block;
  }

  .nav-links {
    display: flex !important;
    width: min(340px, 86vw);
    height: 100dvh;
    position: fixed;
    top: 0;
    right: -360px;
    z-index: 3100;
    flex-direction: column;
    align-items: stretch;
    gap: 0.34rem;
    padding: 5.1rem 0.72rem 1rem;
    margin-top: 0;
    background: linear-gradient(180deg, #f9fcff 0%, #f3f8ff 100%);
    border-left: 1px solid #d4e0ee;
    border-radius: 0;
    white-space: normal;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -18px 0 30px rgba(15, 35, 57, 0.24);
    transition: right 220ms ease;
  }

  .nav-wrap.menu-open .nav-links {
    right: 0;
  }

  .nav-wrap {
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }

  .cards,
  .method-grid,
  .review-meta-grid,
  .country-grid,
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .trust-strip,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .finder-form {
    grid-template-columns: 1fr;
  }

  .finder-support-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap > .btn.btn-small {
    display: none;
  }

  .mobile-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.4rem;
    padding: 0.7rem 0.95rem;
    font-weight: 700;
  }

  .nav-links > a,
  .nav-links .menu-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.56rem 0.62rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #deebf6;
  }

  .menu-item {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .dropdown {
    position: static;
    left: auto;
    right: auto;
    min-width: 0;
    margin-top: 0.35rem;
    box-shadow: none;
    border: 1px solid #dae6f2;
    background: #ffffff;
    border-radius: 10px;
  }

  .menu-item:hover .dropdown,
  .menu-item:focus-within .dropdown {
    display: none;
  }

  .menu-item.submenu-open > .dropdown {
    display: block;
  }

  .brokers-menu.submenu-open > .dropdown {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 0.2rem;
  }

  .language-menu {
    margin-left: 0;
  }

  .language-panel {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    max-height: none;
    transform: none;
    box-shadow: none;
    border-radius: 10px;
    margin-top: 0.35rem;
    border: 1px solid #dae6f2;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(1080px, 94vw);
  }

  .hero {
    padding-top: 4.3rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards,
  .method-grid,
  .review-meta-grid,
  .country-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

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

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

  .site-header {
    position: sticky;
  }

  .nav-wrap {
    padding: 0.68rem 0;
    row-gap: 0.35rem;
  }

  .nav-links {
    gap: 0.34rem;
    font-size: 0.9rem;
    padding-bottom: 1rem;
    width: min(320px, 90vw);
    right: -340px;
  }

  .menu-item {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .dropdown {
    min-width: min(92vw, 360px);
    padding: 0.45rem;
  }

  .dropdown a {
    font-size: 0.92rem;
    padding: 0.44rem 0.5rem;
  }

  .hero h1 {
    max-width: none;
    line-height: 1.1;
  }

  .hero-copy {
    max-width: none;
  }

  .card,
  .guide-hero,
  .guide-panel,
  .method-card {
    padding: 0.9rem;
  }

  .review-logo {
    width: min(194px, 74vw);
  }

  .compare-table {
    min-width: 640px;
  }

  .compare-table tbody th {
    width: 170px;
  }

  .filters-page #brokerFilterTable {
    min-width: 760px;
  }

  .ai-assistant {
    right: 10px;
    bottom: 10px;
  }

  .ai-fab {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
}

.guide-page {
  background: radial-gradient(circle at 10% 0, #dff4ff 0%, transparent 30%),
    radial-gradient(circle at 92% 12%, #e9fbe7 0%, transparent 28%),
    linear-gradient(155deg, #edf3ff 0%, #f3f8ff 45%, #eefcf4 100%);
}

.guide-main {
  padding: 4rem 0 1.2rem;
}

.guide-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
  margin-bottom: 1rem;
}

.guide-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 0.3rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.guide-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.guide-panel h2 {
  font-size: 1.35rem;
}

.guide-panel ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  line-height: 1.75;
  color: #4b5d67;
}

.qa-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.7rem;
}

.qa-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #d1dceb;
}

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

.qa-item h3 {
  margin: 0;
  font-size: 1rem;
  color: #183849;
}

.qa-item p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.guide-back {
  margin-top: 1rem;
}

.reviews-list {
  display: grid;
  gap: 1.1rem;
}

.review-entry {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.review-entry .review-card {
  max-width: 330px;
  margin: 0 auto 1rem;
}

@media (max-width: 920px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.guide-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-hub-grid .guide-panel ul li a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #185a87;
}

.guide-hub-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 620px) {
  .guide-hub-grid {
    grid-template-columns: 1fr;
  }
}

.compare-picker {
  background:
    radial-gradient(circle at 92% 8%, rgba(66, 129, 211, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid #cedeed;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 16px 30px rgba(22, 49, 74, 0.1);
}

.compare-hero .compare-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.compare-hero-stats article {
  background: #f8fbff;
  border: 1px solid #d7e4f0;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.compare-hero-stats strong {
  display: block;
  color: #193b52;
  font-size: 1.2rem;
}

.compare-hero-stats span {
  color: #587184;
  font-size: 0.84rem;
}

.compare-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  align-items: end;
}

.compare-controls label {
  display: grid;
  gap: 0.35rem;
  color: #294355;
  font-size: 0.92rem;
  font-weight: 600;
}

.compare-controls select {
  border: 1px solid #c1d3e2;
  border-radius: 9px;
  background: #fff;
  color: #213748;
  padding: 0.62rem 0.68rem;
  font: inherit;
}

.compare-controls select:focus-visible {
  outline: 2px solid #9fc4fb;
  outline-offset: 1px;
}

.compare-cta-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.compare-table-wrap {
  margin-top: 1rem;
}

.compare-table-card {
  overflow-x: auto;
  border: 1px solid #d0deea;
  border-radius: 12px;
  background: #fff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid #e0e8f1;
  padding: 0.72rem 0.7rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.compare-table thead th {
  background: #f2f8ff;
  color: #17374d;
  font-size: 0.92rem;
}

.compare-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #f2f8ff;
  box-shadow: 2px 0 0 #d9e4ef;
}

.compare-head-broker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.compare-head-broker-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.compare-head-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(17, 39, 61, 0.18);
}

.compare-head-fallback {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1b4f8c, #2d77c7);
  box-shadow: 0 4px 10px rgba(17, 39, 61, 0.18);
}

.compare-table tbody th {
  width: 220px;
  color: #294d63;
  background: #f9fcff;
  position: sticky;
  left: 0;
  z-index: 4;
  box-shadow: 2px 0 0 #d9e4ef;
}

.compare-table a {
  color: #0f6295;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.compare-table-visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  text-decoration: none !important;
  padding: 0.42rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #1c3f5a;
  background: #1c3f5a;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.82rem;
  box-shadow: 0 7px 18px rgba(19, 43, 66, 0.25);
}

.compare-table-visit-btn:hover {
  background: linear-gradient(135deg, #2c5d84 0%, #234d70 55%, #1a3d5a 100%);
}

.compare-table-visit-btn-head {
  padding: 0.35rem 0.68rem;
  font-size: 0.76rem;
}

.compare-win {
  background: #ecfbf1;
  color: #14513c;
  font-weight: 600;
}

.compare-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.compare-highlight-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d0deeb;
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 10px 22px rgba(20, 49, 74, 0.08);
}

.compare-highlight-title {
  margin: 0;
  color: #2a5572;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.compare-highlight-broker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.compare-highlight-broker h3 {
  margin: 0;
  font-size: 1.04rem;
}

@media (max-width: 920px) {
  .compare-controls {
    grid-template-columns: 1fr;
  }

  .compare-highlights {
    grid-template-columns: 1fr;
  }

  .compare-hero .compare-hero-stats {
    grid-template-columns: 1fr;
  }
}

.country-page-stats {
  margin-top: 1rem;
}

.country-page-stats article strong {
  font-size: 1rem;
}

.country-page-stats article span {
  font-size: 0.82rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.filter-grid label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.86rem;
  color: #2c4658;
  font-weight: 600;
}

.filter-grid input,
.filter-grid select {
  border: 1px solid #c7d7e8;
  border-radius: 9px;
  padding: 0.5rem 0.55rem;
  font: inherit;
  background: #fff;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.calc-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.calc-card label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #2c485d;
}

.calc-card input,
.calc-card select {
  border: 1px solid #c9d8e8;
  border-radius: 9px;
  padding: 0.46rem 0.52rem;
  font: inherit;
}

.calc-result {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: #1f4f6b;
  font-weight: 600;
}

.tools-page .guide-hero {
  background:
    radial-gradient(circle at 92% 10%, rgba(86, 142, 227, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid #cfe0ef;
}

.tools-page .calc-grid {
  gap: 1.1rem;
}

.tools-page .calc-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5fbff 72%, #f2f9ff 100%);
  border: 1px solid #cbdbeb;
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(20, 47, 74, 0.11);
  padding: 1rem;
  gap: 0.68rem;
  position: relative;
  overflow: hidden;
}

.tools-page .calc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d6cb0 0%, #1ba66e 100%);
}

.tools-page .calc-card h2 {
  font-size: 1.22rem;
  color: #163a54;
}

.tools-page .calc-card label {
  font-size: 0.88rem;
  color: #244a63;
  gap: 0.3rem;
}

.tools-page .calc-card input,
.tools-page .calc-card select {
  border: 1px solid #bfd3e6;
  border-radius: 10px;
  padding: 0.52rem 0.58rem;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(19, 45, 70, 0.06);
}

.tools-page .calc-card input:focus-visible,
.tools-page .calc-card select:focus-visible {
  outline: 2px solid #9cc3eb;
  border-color: #8bb7e3;
}

.tools-page .calc-card .btn {
  justify-self: start;
  margin-top: 0.2rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.tools-page .calc-result {
  margin-top: 0.35rem;
  padding: 0.52rem 0.62rem;
  border-radius: 9px;
  border: 1px solid #cfe0ef;
  background: #f5fbff;
  font-size: 0.92rem;
  color: #154664;
}

.mini-link-row {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}

.mini-link-row a {
  background: #edf6ff;
  border: 1px solid #c9daeb;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #214e67;
}

@media (max-width: 920px) {
  .filter-grid,
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.filters-page .filter-grid {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid #cfdeec;
  border-radius: 14px;
  padding: 0.85rem;
  box-shadow: 0 14px 28px rgba(18, 43, 66, 0.09);
}

.filters-page .compare-table-card {
  border-radius: 14px;
  border: 1px solid #c9d9e8;
  box-shadow: 0 14px 30px rgba(18, 43, 66, 0.1);
}

.filters-page #brokerFilterTable {
  min-width: 1040px;
}

.filters-page #brokerFilterTable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #edf5ff 0%, #e8f1fc 100%);
  color: #17374d;
  font-size: 0.96rem;
  font-weight: 700;
  padding-top: 0.82rem;
  padding-bottom: 0.82rem;
}

.filters-page #brokerFilterTable td {
  font-size: 0.92rem;
  line-height: 1.45;
}

.filters-page #brokerFilterTable tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.filters-page #brokerFilterTable tbody tr:hover td {
  background: #eef6ff;
}

.filters-page #brokerFilterTable td:first-child strong {
  color: #143a55;
  font-size: 0.96rem;
}

.filters-page #brokerFilterTable td:last-child {
  min-width: 154px;
}

.filter-broker-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 6px 14px rgba(20, 44, 66, 0.2);
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-yes {
  background: #eaf8f1;
  color: #148354;
  border: 1px solid #bfe6d3;
}

.status-no {
  background: #fff0f0;
  color: #b53434;
  border: 1px solid #f0c2c2;
}

@media (max-width: 920px) {
  .filters-page #brokerFilterTable {
    min-width: 900px;
  }

  .filters-page #brokerFilterTable thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    background: linear-gradient(180deg, #edf5ff 0%, #e8f1fc 100%);
    box-shadow: 2px 0 0 #d9e4ef;
  }

  .filters-page #brokerFilterTable tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #ffffff;
    box-shadow: 2px 0 0 #d9e4ef;
  }

  .filters-page #brokerFilterTable tbody tr:nth-child(even) td:first-child {
    background: #fbfdff;
  }

  .filters-page #brokerFilterTable tbody tr:hover td:first-child {
    background: #eef6ff;
  }
}

@media (max-width: 620px) {
  .compare-table {
    min-width: 640px;
  }

  .compare-table tbody th {
    width: 170px;
  }

  .filters-page #brokerFilterTable {
    min-width: 760px;
  }
}

.filter-broker-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

@media (max-width: 1200px) {
  .container {
    width: min(1080px, 94vw);
  }

  .hero h1 {
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  }

  .score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compare-hero .compare-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .brand-wordmark-img,
  .brand-wordmark-inline {
    width: 300px;
    height: 44px;
    max-width: 52vw;
  }

  .nav-links {
    gap: 0.78rem;
    font-size: 0.93rem;
  }

  .hero-stats,
  .cards,
  .method-grid,
  .team-grid,
  .country-grid,
  .review-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid,
  .guide-hub-grid,
  .two-col,
  .trust-strip,
  .footer-wrap,
  .finder-support-grid,
  .compare-highlights {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-wrap {
    flex-wrap: wrap;
    row-gap: 0.36rem;
  }

  .brand-wordmark-img,
  .brand-wordmark-inline {
    width: 250px;
    height: 36px;
    max-width: 62vw;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.62rem;
    font-size: 0.88rem;
    padding: 0.2rem 0 0.12rem;
  }

  .menu-item {
    padding-bottom: 3px;
    margin-bottom: -3px;
  }

  .dropdown {
    min-width: min(92vw, 360px);
    max-width: 92vw;
  }

  .hero {
    padding-top: 4.4rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats,
  .cards,
  .method-grid,
  .team-grid,
  .country-grid,
  .review-meta-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid,
  .calc-grid,
  .compare-controls {
    grid-template-columns: 1fr;
  }

  .compare-table {
    min-width: 620px;
  }

  .compare-table tbody th {
    width: 165px;
  }

  .filters-page #brokerFilterTable {
    min-width: 760px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95vw;
  }

  .brand-wordmark-img,
  .brand-wordmark-inline {
    width: 210px;
    height: 32px;
    max-width: 70vw;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1,
  .guide-hero h1 {
    font-size: clamp(1.52rem, 7.6vw, 2.12rem);
  }

  .section {
    padding: 2rem 0;
  }

  .card,
  .guide-hero,
  .guide-panel,
  .method-card,
  .compare-picker,
  .calc-card {
    padding: 0.82rem;
  }

  .visit-btn {
    width: 100%;
    text-align: center;
  }

  .ai-assistant {
    right: 8px;
    bottom: 8px;
  }

  .ai-fab {
    width: 48px;
    height: 48px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .site-header {
    position: sticky;
  }

  .hero {
    padding-top: 3.3rem;
  }

  .ai-panel {
    height: min(82vh, 360px);
  }
}

/* Final mobile-nav override (must stay last to beat earlier media blocks) */
@media (max-width: 920px) {
  body.mobile-menu-open .site-header {
    z-index: 3400 !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    margin-left: auto;
    position: relative;
    z-index: 3502;
  }

  .nav-wrap.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-wrap.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-wrap.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(340px, 86vw) !important;
    height: 100dvh !important;
    z-index: 3501 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.34rem !important;
    padding: 0.85rem 0.72rem 1rem !important;
    margin: 0 !important;
    white-space: normal !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #ffffff !important;
    border-left: 1px solid #d4e0ee !important;
    border-radius: 0 !important;
    box-shadow: -18px 0 30px rgba(15, 35, 57, 0.24) !important;
    transform: translateX(100%) !important;
    transition: transform 220ms ease !important;
  }

  .nav-wrap.menu-open .nav-links {
    transform: translateX(0) !important;
  }

  body.mobile-menu-open .nav-wrap > .brand {
    visibility: hidden;
  }

  .mobile-drawer-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0.1rem 0.65rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid #e2ebf5;
  }

  .mobile-drawer-brand .brand-wordmark-img,
  .mobile-drawer-brand .brand-wordmark-inline {
    width: 148px !important;
    height: 30px !important;
    max-width: none !important;
  }

  .mobile-drawer-brand .brand-badge {
    display: none !important;
  }

  .mobile-drawer-head .mobile-lang {
    position: relative;
  }

  .mobile-lang-trigger {
    border: 0;
    background: transparent;
    color: #1b4fae;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.3rem;
    cursor: pointer;
  }

  .mobile-lang-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 184px;
    background: #ffffff;
    border: 1px solid #d7e4f2;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(22, 46, 74, 0.16);
    padding: 0.35rem;
    z-index: 8;
  }

  .mobile-lang.open .mobile-lang-panel {
    display: block;
  }

  .mobile-lang-panel button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.46rem 0.45rem;
    border-radius: 8px;
    color: #163652;
    cursor: pointer;
  }

  .mobile-lang-panel button:hover {
    background: #eef5ff;
  }

  .mobile-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #e9f0ff;
    color: #2567ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
  }

  .nav-links > .language-menu.mobile-hide {
    display: none !important;
  }

  .nav-wrap > .btn.btn-small {
    display: none !important;
  }

  .mobile-cta-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    align-self: stretch !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 0.4rem;
    padding: 0.72rem 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-weight: 700;
    background: var(--accent) !important;
    color: #ffffff !important;
    border: 1px solid #0f7b6c !important;
    border-radius: 999px !important;
  }

  body .nav-links .mobile-cta-link {
    display: flex !important;
  }

  .nav-links > a:not(.mobile-cta-link),
  .nav-links .menu-link {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 0.56rem 0.62rem !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid #deebf6 !important;
  }

  body.mobile-menu-open {
    overflow: hidden !important;
  }
}

@media (max-width: 620px) {
  .nav-links {
    width: min(320px, 90vw) !important;
    padding-bottom: 1rem !important;
  }
}
