/* ==========================================================================
   FXDataSearch — "Trading desk" theme
   Dark header zone over light pages, card grids, bid/ask colour language.
   All class names match the existing HTML and app.js — only the look changed.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f3f5f9; --bg-soft: #e9edf4; --card: #ffffff; --raised: #f6f8fb;
  --border: #dde3ec; --border-strong: #c2ccda;
  --ink: #0b1a2d; --text: #2a394d; --text-soft: #536378; --text-mute: #627286;
  --primary: #077a57; --primary-dark: #05624a; --primary-darker: #044d3a; --primary-hover: #05624a;
  --primary-soft: rgba(7, 122, 87, 0.10); --on-primary: #ffffff;
  --green: #077a57; --green-soft: rgba(7, 122, 87, 0.10);
  --red: #cf2c40; --red-soft: rgba(207, 44, 64, 0.09);
  --gold: #f0a000; --gold-ink: #855600; --gold-soft: rgba(240, 160, 0, 0.15);
  --orange: #b9520a; --orange-soft: rgba(185, 82, 10, 0.10);
  --blue: #1b5cc0; --blue-soft: rgba(27, 92, 192, 0.09);
  --violet: #6a3fd0; --violet-soft: rgba(106, 63, 208, 0.10);
  --tint: rgba(11, 26, 45, 0.04);
  --shadow: 0 1px 2px rgba(11, 26, 45, 0.05), 0 10px 26px -14px rgba(11, 26, 45, 0.16);
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --display: "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "DM Mono", "SF Mono", Menlo, Consolas, monospace;
  --ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --wf-top-height: 60px;
  --radius: 16px; --radius-sm: 8px;
  --grid-line: rgba(255, 255, 255, 0.035);
  --navy: #091729;
}
/* Dark zones: header, navigation, price tape, heroes, footer. Components inside pick up these values. */
.wf-top, .wf-nav, .fx-tape, .wf-hero, .wf-page-hero, .wl-hero, .wf-foot, .cookie-banner, #pd-toast, .news-featured-hero, .mediation-bar {
  color-scheme: dark;
  --bg: #091729; --bg-soft: #0c1d33; --card: #11253f; --raised: #16304f;
  --border: #1f3654; --border-strong: #30496b;
  --ink: #f2f6fb; --text: #cdd7e4; --text-soft: #9fb0c5; --text-mute: #8094ad;
  --primary: #34e0a8; --primary-dark: #26c391; --primary-darker: #1a9870; --primary-hover: #6aeec2;
  --primary-soft: rgba(52, 224, 168, 0.13); --on-primary: #04170f;
  --green: #34e0a8; --green-soft: rgba(52, 224, 168, 0.13);
  --red: #ff6373; --red-soft: rgba(255, 99, 115, 0.14);
  --gold: #ffb547; --gold-ink: #ffb547; --gold-soft: rgba(255, 181, 71, 0.14);
  --orange: #ff9a4d; --orange-soft: rgba(255, 154, 77, 0.14);
  --blue: #7ab8ff; --blue-soft: rgba(122, 184, 255, 0.14);
  --violet: #b99bff; --violet-soft: rgba(185, 155, 255, 0.14);
  --tint: var(--tint);
  --shadow: none;
  color: var(--text);
}

html[lang="ar"] {
  --sans: var(--ar);
  --display: var(--ar);
  --mono: "DM Mono", "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, monospace;
}
/* Arabic is a joined script: tracking and forced caps break it */
html[lang="ar"] body * { letter-spacing: 0 !important; }

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { height: auto; overflow: visible; }
html { background: var(--bg); scroll-padding-top: 120px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14.5px;
  text-rendering: optimizeLegibility;
  min-width: 0;
}
::selection { background: var(--primary); color: var(--on-primary); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
img, video, iframe { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.wf-top {
  background: rgba(9, 23, 41, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding: 11px 0;
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--border);
}
.wf-top .wrap {
  max-width: none;
  padding: 0 22px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.wf-logo {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink); text-decoration: none;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-weight: 700; font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1;
  /* Brand wordmark always reads FOREX BROKER + CHECKER, even on RTL pages */
  direction: ltr;
  unicode-bidi: isolate;
}
/* Candlestick mark: one bear candle, one bull candle */
.wf-logo::before {
  content: "";
  width: 22px; height: 26px;
  flex-shrink: 0;
  margin-right: 3px;
  background:
    linear-gradient(var(--red), var(--red)) 4px 2px / 2px 20px no-repeat,
    linear-gradient(var(--red), var(--red)) 1px 6px / 8px 11px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 16px 4px / 2px 22px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 13px 8px / 8px 13px no-repeat;
}
.wf-logo .a { color: var(--ink); }
.wf-logo .b { color: var(--primary); }
.wf-logo:hover { color: var(--ink); }

.wf-tag {
  color: var(--text-mute);
  font-size: 12.5px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--border-strong);
}
@media (max-width: 900px) { .wf-tag { display: none; } }

.wf-top-right { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.wf-lang-label {
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
}
@media (max-width: 720px) { .wf-lang-label { display: none; } }
.wf-lang {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}
.wf-lang button {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none;
  color: var(--text-soft);
  padding: 5px 10px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.wf-lang button:hover:not(.active) { color: var(--ink); background: var(--raised); }
.wf-lang button.active { background: var(--raised); color: var(--primary); box-shadow: inset 0 0 0 1px var(--border-strong); }
.lang-flag {
  width: 17px; height: 12px;
  display: inline-block;
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.wf-dl-btn {
  color: var(--ink);
  padding: 6px 13px;
  border-radius: 8px;
  font-weight: 600; font-size: 12.5px;
  border: 1px solid var(--border-strong);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.wf-dl-btn:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 520px) {
  .wf-dl-btn { display: none; }
  .wf-logo { font-size: 16px; }
  .wf-lang button { padding: 5px 7px; }
}

/* ==========================================================================
   NAVIGATION — side rail on desktop, scrolling strip on small screens
   ========================================================================== */
.wf-nav {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  position: sticky; top: var(--wf-top-height, 58px); z-index: 50;
  scrollbar-width: none;
}
.wf-nav::-webkit-scrollbar { display: none; }
.wf-nav .wrap {
  display: flex; gap: 2px; align-items: center;
  flex-wrap: nowrap;
  max-width: none;
  padding: 0 14px;
}
.wf-nav a {
  display: inline-block;
  padding: 12px 13px;
  color: var(--text-soft);
  font-weight: 500; font-size: 13.5px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, background 0.15s;
}
.wf-nav a:hover { color: var(--ink); }
.wf-nav a.active { color: var(--ink); border-bottom-color: var(--primary); }

/* Scam-broker warning link: always red, never mistaken for a normal item */
.wf-nav a.wf-nav-warning {
  position: relative;
  margin-inline-start: 10px;
  padding: 7px 13px;
  padding-inline-start: 34px;
  color: #ffd9dd;
  background: var(--red-soft);
  border: 1px solid rgba(255, 92, 108, 0.45);
  border-radius: 8px;
  font-weight: 600;
  font-size: 12.5px;
}
.wf-nav a.wf-nav-warning::before {
  content: "!";
  position: absolute;
  inset-inline-start: 10px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  line-height: 17px; text-align: center;
  font-family: var(--mono);
  font-size: 12px; font-weight: 700;
  color: #1c0508;
  background: var(--red);
  border-radius: 50%;
}
.wf-nav a.wf-nav-warning:hover { color: #fff; border-color: var(--red); background: rgba(255, 92, 108, 0.2); }
.wf-nav a.wf-nav-warning.active { color: #fff; background: rgba(255, 92, 108, 0.24); border-color: var(--red); }



/* ==========================================================================
   HOME HERO
   ========================================================================== */
.wf-hero {
  position: relative;
  background:
    
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 44px 100%,
    radial-gradient(900px 380px at 12% -10%, rgba(47, 214, 160, 0.10), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 34px;
  overflow: hidden;
}
/* Candlestick run along the bottom edge — decoration, not data */
.wf-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  pointer-events: none;
  opacity: 0.22;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='120' viewBox='0 0 360 120'%3E%3Cg stroke-width='2'%3E%3Cg stroke='%232fd6a0' fill='%232fd6a0'%3E%3Cpath d='M15 70v40M75 52v44M105 40v40M165 58v38M225 34v44M255 20v40M315 30v42'/%3E%3Crect x='9' y='80' width='12' height='22'/%3E%3Crect x='69' y='62' width='12' height='26'/%3E%3Crect x='99' y='48' width='12' height='24'/%3E%3Crect x='159' y='66' width='12' height='20'/%3E%3Crect x='219' y='44' width='12' height='26'/%3E%3Crect x='249' y='28' width='12' height='24'/%3E%3Crect x='309' y='38' width='12' height='24'/%3E%3C/g%3E%3Cg stroke='%23ff5c6c' fill='%23ff5c6c'%3E%3Cpath d='M45 64v40M135 44v46M195 50v40M285 22v40M345 36v44'/%3E%3Crect x='39' y='72' width='12' height='22'/%3E%3Crect x='129' y='52' width='12' height='28'/%3E%3Crect x='189' y='58' width='12' height='20'/%3E%3Crect x='279' y='30' width='12' height='22'/%3E%3Crect x='339' y='44' width='12' height='26'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.wf-hero > .wrap { position: relative; z-index: 1; }
.wf-hero-row { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.wf-hero-left { flex: 1 1 420px; min-width: 280px; }
.wf-hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  max-width: 14ch;
  text-wrap: balance;
}
html[lang="ar"] .wf-hero h1 { line-height: 1.3; max-width: 18ch; }
.wf-hero h1 .accent { color: inherit; }
.wf-hero .sub {
  color: var(--text-soft); font-size: 16px; line-height: 1.6;
  margin-bottom: 26px; max-width: 58ch;
}
.wf-hero-video {
  flex: 1 1 420px; min-width: 280px; max-width: 560px;
  border-radius: 14px; overflow: hidden;
  background: #000;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 6px var(--tint);
}
.wf-hero-video-el { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 860px) {
  .wf-hero { padding: 36px 0 26px; }
  .wf-hero-row { flex-direction: column; align-items: stretch; gap: 22px; }
  .wf-hero-video { display: none; }
}

/* Search */
.wf-search {
  display: flex; gap: 0;
  max-width: 600px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--card);
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wf-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.wf-search input {
  flex: 1; min-width: 0; border: none; outline: none;
  padding: 15px 18px;
  font-family: inherit; font-size: 15px;
  background: transparent;
  color: var(--ink);
}
.wf-search input::placeholder { color: var(--text-mute); }
.wf-search button {
  background: var(--primary); color: var(--on-primary);
  border: none; padding: 0 24px;
  margin: 5px;
  font-family: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.wf-search button:hover { background: var(--primary-hover); }

.wf-search-results {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.75);
  max-height: 400px; overflow-y: auto;
  z-index: 80;
  display: none;
}
.wf-search-results.open { display: block; }
.search-header {
  padding: 10px 16px;
  font-size: 12px; font-weight: 600;
  color: var(--text-mute);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  border-radius: 12px 12px 0 0;
}
.search-empty { padding: 20px; color: var(--text-mute); font-size: 14px; text-align: center; }
.search-empty b { color: var(--ink); }
.search-result {
  display: grid; grid-template-columns: 36px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.active { background: var(--tint); color: var(--text); }
.search-result.featured { background: linear-gradient(90deg, var(--primary-soft), transparent 80%); }
html[dir="rtl"] .search-result.featured { background: linear-gradient(270deg, var(--primary-soft), transparent 80%); }
.search-result.featured .sr-name { color: var(--primary); }
.search-result .sr-icon {
  width: 34px; height: 34px;
  background: var(--bg); color: var(--ink);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.search-result .sr-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  display: block;
}
.search-result .sr-body { min-width: 0; }
.search-result .sr-name { font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.25; }
.search-result .sr-meta { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.search-result .sr-tag {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.sr-tag.tier1 { background: var(--green-soft); color: var(--green); }
.sr-tag.offshore { background: var(--gold-soft); color: var(--gold-ink); }
.sr-tag.pick { background: var(--primary); color: var(--on-primary); }
@media (max-width: 520px) { .search-result .sr-tag { display: none; } .search-result { grid-template-columns: 36px 1fr; } }

/* Hero readout */
.wf-stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.wf-stats-strip .stat {
  padding: 18px 22px;
  border-inline-start: 1px solid var(--border);
}
.wf-stats-strip .stat:first-child { border-inline-start: none; }
.wf-stats-strip .stat .num {
  font-family: var(--mono);
  font-size: 30px; font-weight: 500;
  color: var(--ink); line-height: 1;
  letter-spacing: -0.02em;
}
.wf-stats-strip .stat .lab { font-size: 12.5px; color: var(--text-mute); margin-top: 8px; }
@media (max-width: 720px) {
  .wf-stats-strip { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .wf-stats-strip .stat { padding: 14px 16px; border-top: 1px solid var(--border); }
  .wf-stats-strip .stat:nth-child(-n+2) { border-top: none; }
  .wf-stats-strip .stat:nth-child(odd) { border-inline-start: none; }
  .wf-stats-strip .stat .num { font-size: 24px; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.wf-section { padding: 34px 0 6px; }
.wf-section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.wf-section-head h2,
.wf-section > h2 {
  font-family: var(--display);
  font-size: 24px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.wf-section > h2 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.wf-section-head > span { color: var(--text-mute) !important; text-align: end; }
.wf-section-head .more {
  font-size: 13px; font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
}
.wf-section-head .more:hover { color: var(--primary); }

.tab-view { display: block; }
.tab-view[hidden] { display: none; }

/* Inner-page hero */
.wf-page-hero {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 44px 100%,
    radial-gradient(700px 260px at 0% 0%, rgba(47, 214, 160, 0.09), transparent 70%),
    var(--bg-soft);
  color: var(--ink);
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--border);
}
html[dir="rtl"] .wf-page-hero {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 44px 100%,
    radial-gradient(700px 260px at 100% 0%, rgba(47, 214, 160, 0.09), transparent 70%),
    var(--bg-soft);
}
.wf-page-hero .crumbs, .wl-hero .crumbs {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.wf-page-hero .crumbs a { color: var(--text-soft); }
.wf-page-hero .crumbs a:hover { color: var(--primary); }
.wf-page-hero .crumbs strong { color: var(--ink); font-weight: 500; }
.wf-page-hero h1, .wl-hero h1 {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
}
html[lang="ar"] .wf-page-hero h1, html[lang="ar"] .wl-hero h1 { line-height: 1.35; }
.wf-page-hero .sub, .wl-hero .sub { font-size: 15.5px; color: var(--text-soft); max-width: 70ch; line-height: 1.6; }

/* ==========================================================================
   TAGS & CHIPS
   ========================================================================== */
.tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--text-soft);
  border: 1px solid var(--border);
  line-height: 1.4;
  white-space: nowrap;
}
.tag.tag-pick { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 700; }
.tag.tag-tier1 { background: var(--green-soft); color: var(--green); border-color: rgba(47, 214, 160, 0.35); font-weight: 600; }
.tag.tag-tier1::before { content: "✓ "; }
.tag.tag-offshore { background: var(--gold-soft); color: var(--gold-ink); border-color: rgba(255, 181, 71, 0.4); font-weight: 600; }
.tag.tag-cat { background: var(--blue-soft); color: var(--blue); border-color: rgba(108, 178, 255, 0.28); }
.tag.tag-reg {
  font-family: var(--mono); font-size: 11px;
  background: var(--green-soft); color: var(--green); border-color: rgba(47, 214, 160, 0.25);
  border-radius: 5px;
}

.wf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.wf-filters .chip {
  font-size: 13px; font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text-soft);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
}
.wf-filters .chip.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 600; }
.wf-filters .chip:hover:not(.active) { color: var(--ink); border-color: var(--border-strong); }

/* ==========================================================================
   RANKING LIST
   ========================================================================== */
.wf-rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-row {
  display: grid;
  grid-template-columns: 46px minmax(170px, 230px) 1fr auto auto;
  gap: 8px 16px; align-items: center;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}
.rank-row:not(.featured):hover { border-color: var(--border-strong); background: var(--raised); }
.rank-row.is-hidden, .art-card.is-hidden { display: none; }

.rank-num { text-align: center; }
.rank-num img {
  width: 42px; height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  display: block;
  margin: 0 auto;
}
.rank-num.logo-fallback::after { content: "—"; color: var(--text-mute); font-size: 18px; }
.rank-broker { min-width: 0; }
.rank-name { font-size: 16.5px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; }
.rank-name a { color: var(--ink); }
.rank-name a:hover { color: var(--primary); }
.rank-meta { unicode-bidi: plaintext; font-size: 12.5px; color: var(--text-mute); line-height: 1.4; margin-top: 2px; }
.rank-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rank-score-text {
  text-align: end;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.35;
  max-width: 150px;
}
.rank-visit-mini {
  font-size: 12.5px; font-weight: 600;
  color: var(--text);
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.rank-visit-mini:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.rank-visit-mini::after { content: "↗"; font-size: 11px; opacity: 0.75; }
html[dir="rtl"] .rank-visit-mini::after { content: "↖"; }

/* --- Featured row: editor's pick --- */
.rank-row.featured {
  position: relative;
  grid-template-columns: 62px minmax(190px, 250px) 1fr auto auto;
  padding: 30px 24px 24px;
  margin: 12px 0 10px;
  background:
    linear-gradient(110deg, rgba(47, 214, 160, 0.16) 0%, rgba(47, 214, 160, 0.03) 46%, rgba(19, 27, 39, 0) 70%),
    var(--card);
  border: 1px solid rgba(47, 214, 160, 0.55);
  box-shadow: 0 0 0 1px rgba(47, 214, 160, 0.10), 0 22px 46px -26px rgba(47, 214, 160, 0.55);
  animation: featuredGlow 4s ease-in-out infinite;
}
html[dir="rtl"] .rank-row.featured {
  background:
    linear-gradient(250deg, rgba(47, 214, 160, 0.16) 0%, rgba(47, 214, 160, 0.03) 46%, rgba(19, 27, 39, 0) 70%),
    var(--card);
}
@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(47, 214, 160, 0.10), 0 22px 46px -26px rgba(47, 214, 160, 0.45); }
  50% { box-shadow: 0 0 0 4px rgba(47, 214, 160, 0.10), 0 26px 54px -22px rgba(47, 214, 160, 0.75); }
}
.rank-row.featured::before {
  content: "★ OUR #1 CHOICE";
  position: absolute;
  top: -12px; inset-inline-start: 20px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: "DM Mono", monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 6px;
  z-index: 2;
  direction: ltr; unicode-bidi: isolate;
}
.rank-row.featured .rank-num img { width: 58px; height: 58px; padding: 0; border-radius: 13px; background: transparent; }
.rank-row.featured .rank-name { font-family: var(--display); font-size: 26px; font-weight: 700; }
.rank-row.featured .rank-name a { color: var(--ink); }
.rank-row.featured .rank-meta { font-size: 13px; color: var(--text-soft); }
.rank-row.featured .trending-badge {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  padding: 2px 9px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  border: 1px solid rgba(240, 160, 0, 0.45);
  border-radius: 999px;
  margin-bottom: 7px;
  white-space: nowrap;
}
.rank-score { text-align: center; min-width: 96px; }
.rank-score .score-num {
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 46px; font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
  direction: ltr; unicode-bidi: isolate;
}
.rank-row.featured .rank-stars, .rank-stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 16px;
  line-height: 1;
  margin: 8px 0 5px;
  white-space: nowrap;
  direction: ltr; unicode-bidi: isolate;
}
.rank-score .score-out { font-size: 11.5px; color: var(--text-mute); line-height: 1.3; max-width: 120px; margin: 0 auto; }
.rank-cta {
  background: var(--primary); color: var(--on-primary);
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700; font-size: 14.5px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.rank-cta:hover { background: var(--primary-hover); color: var(--on-primary); transform: translateY(-1px); }




/* ==========================================================================
   HOT BROKERS GRID
   ========================================================================== */
.wf-hot { padding: 0; }
.wf-hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.hot-broker {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px; font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.hot-broker:hover { background: var(--raised); border-color: var(--border-strong); color: var(--ink); transform: translateY(-2px); }
.hot-icon {
  width: 48px; height: 48px;
  background: #fff;
  color: #111;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-weight: 700; font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
}
.hot-icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; display: block; }
.hot-icon.hot-icon-fallback { background: var(--raised); color: var(--text-mute); }
.hot-icon.hot-icon-fallback::after { content: "—"; }
.hot-broker.featured {
  background: linear-gradient(160deg, rgba(47, 214, 160, 0.18), var(--card) 70%);
  border-color: rgba(47, 214, 160, 0.6);
}
.hot-broker.featured::before {
  content: "#1";
  position: absolute;
  top: -8px; inset-inline-end: -6px;
  background: var(--primary); color: var(--on-primary);
  font-family: "DM Mono", monospace;
  font-size: 10.5px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  z-index: 2;
}
.hot-broker.featured .hot-icon img { padding: 0; }
.hot-broker.featured span { font-weight: 700; color: var(--primary); }

/* ==========================================================================
   CARDS & WIDGETS
   ========================================================================== */
.wf-widget-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 1360px) { .wf-widget-grid { grid-template-columns: 1fr 1fr; } .wf-widget-grid > .wf-widget:first-child { grid-column: 1 / -1; } }
@media (max-width: 720px) { .wf-widget-grid { grid-template-columns: 1fr; } }
.wf-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.wf-widget h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.wf-widget p { font-size: 14px; line-height: 1.65; color: var(--text-soft); margin-bottom: 12px; }
.wf-widget p:last-child { margin-bottom: 0; }
.wf-widget p strong { color: var(--ink); font-weight: 600; }
.wf-widget ol { color: var(--text) !important; font-size: 14px !important; }

/* Score bars */
.bd-list { display: flex; flex-direction: column; gap: 12px; }
.bd-row { display: grid; grid-template-columns: 96px 1fr 34px; gap: 12px; align-items: center; font-size: 13px; }
.bd-row .lab { color: var(--text-soft); }
.bd-row .bar { height: 6px; background: var(--tint); border-radius: 3px; overflow: hidden; display: block; }
.bd-row .fill { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.bd-row .num { font-family: var(--mono); font-weight: 600; color: var(--ink); text-align: end; font-size: 13px; }

.stat-list { display: flex; flex-direction: column; }
.stat-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.stat-item:first-child { padding-top: 0; }
.stat-item:last-child { border-bottom: none; padding-bottom: 0; }
.stat-item .k { color: var(--text-soft); }
.stat-item .v { color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 14px; text-align: end; }
.stat-item .v.warn { color: var(--orange); }
.stat-item .v.danger { color: var(--red); }
.stat-item .v.ok { color: var(--primary); }

/* Markets covered */
.asset-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 860px) { .asset-strip { grid-template-columns: repeat(3, 1fr); } }
.asset-strip .a-cell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 8px 14px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.asset-strip .a-cell:hover { border-color: var(--border-strong); background: var(--raised); }
.asset-strip .a-cell .ic { font-size: 22px; display: block; margin-bottom: 8px; }
.asset-strip .a-cell .name { font-size: 13px; font-weight: 600; color: var(--ink); }

/* TradingView frames */
.tradingview-widget-wrap,
.wf-section > div[style*="var(--card)"] {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}
.tradingview-widget-copyright a { color: var(--text-mute); }
.wf-sentiment-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.wf-sentiment-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.wf-sentiment-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.wf-sentiment-head strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.wf-sentiment-head span { font-size: 12.5px; color: var(--text-mute); }
.wf-sentiment-body { flex: 1; background: var(--card); }
.wf-sentiment-foot { padding: 8px 12px; border-top: 1px solid var(--border); font-size: 11.5px; text-align: center; }
.wf-sentiment-foot a { color: var(--text-mute); }

/* Feed */
.wf-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .wf-feed { grid-template-columns: 1fr; } }
.feed-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 14px;
}
.feed-item .feed-cat {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 1px;
}
.feed-cat.cat-faq { background: var(--blue-soft); color: var(--blue); }
.feed-cat.cat-pros { background: var(--green-soft); color: var(--green); }
.feed-cat.cat-cons { background: var(--orange-soft); color: var(--orange); }
.feed-cat.cat-risk { background: var(--red-soft); color: var(--red); }
.feed-item .feed-body { flex: 1; min-width: 0; }
.feed-item .feed-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 5px; line-height: 1.35; }
.feed-item .feed-snippet { font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }
.feed-item .feed-date { font-size: 11.5px; color: var(--text-mute); margin-top: 5px; font-family: var(--mono); }

/* FAQ (home) + broker FAQ share one look */
.wf-faq details, .brk-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.wf-faq details[open], .brk-faq-item[open] { border-color: rgba(47, 214, 160, 0.5); }
.wf-faq summary, .brk-faq-item summary {
  padding: 16px 20px;
  font-weight: 600; font-size: 15px;
  color: var(--ink);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  user-select: none;
}
.wf-faq summary:hover, .brk-faq-item summary:hover { background: var(--tint); }
.wf-faq summary::-webkit-details-marker, .brk-faq-item summary::-webkit-details-marker { display: none; }
.wf-faq summary::after, .brk-faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--primary); font-weight: 500; font-size: 20px; line-height: 1;
  flex-shrink: 0;
}
.wf-faq details[open] summary::after, .brk-faq-item[open] summary::after { content: "−"; }
.wf-faq .a, .brk-faq-answer {
  padding: 0 20px 18px;
  color: var(--text-soft);
  font-size: 14.5px; line-height: 1.65;
  max-width: 78ch;
}
.brk-faq-list { display: flex; flex-direction: column; max-width: 820px; }
.brk-faq-list .brk-faq-item { margin-bottom: 8px; }

/* Important notices */
.mediation {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.mediation-bar {
  background: var(--raised);
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
}
.mediation-bar .m-stat { padding: 18px 22px; border-inline-start: 1px solid var(--border); }
.mediation-bar .m-stat:first-child { border-inline-start: none; }
.mediation-bar .m-stat .lab { font-size: 12.5px; color: var(--text-mute); margin-bottom: 6px; }
.mediation-bar .m-stat .num { font-family: var(--mono); font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.mediation-bar .m-stat:first-child .num { color: var(--red); }
.mediation-content { display: grid; grid-template-columns: 1fr 1fr; }
.mediation-content > div { padding: 22px; border-inline-end: 1px solid var(--border); }
.mediation-content > div:last-child { border-inline-end: none; }
.mediation-content h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.mediation-content .legal-disc h4 { color: var(--gold-ink); }
.mediation-content .legal-risk h4 { color: var(--red); }
.mediation-content p { font-size: 13.5px; line-height: 1.65; color: var(--text-soft); }
.mediation-content p strong { color: var(--ink); }
.legal-disc p[data-i18n="disc_p"] .ld-item { display: block; margin-top: 10px; }
.legal-disc p[data-i18n="disc_p"] .ld-item:first-child { margin-top: 0; }
.legal-disc p[data-i18n="disc_p"] .ld-label { font-weight: 600; color: var(--ink); }
@media (max-width: 860px) {
  .mediation-bar { grid-template-columns: 1fr; }
  .mediation-bar .m-stat { border-inline-start: none; border-top: 1px solid var(--border); padding: 14px 18px; }
  .mediation-bar .m-stat:first-child { border-top: none; }
  .mediation-content { grid-template-columns: 1fr; }
  .mediation-content > div { border-inline-end: none; border-bottom: 1px solid var(--border); padding: 18px; }
  .mediation-content > div:last-child { border-bottom: none; }
}

/* ==========================================================================
   EXPOSURE / REGULATORS / ARTICLES / TOOLS
   ========================================================================== */
.warn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .warn-grid { grid-template-columns: 1fr; } }
.warn-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 3px solid var(--orange);
}
.warn-card.danger { border-top-color: var(--red); }
.warn-card.info { border-top-color: var(--blue); }
.warn-card .badge {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.warn-card .badge.warn { background: var(--orange-soft); color: var(--orange); }
.warn-card .badge.danger { background: var(--red-soft); color: var(--red); }
.warn-card .badge.info { background: var(--blue-soft); color: var(--blue); }
.warn-card h3 { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.25; }
.warn-card p { font-size: 14px; line-height: 1.65; color: var(--text-soft); }
.warn-card p strong { color: var(--ink); font-weight: 600; }

.reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1360px) { .reg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reg-grid { grid-template-columns: 1fr; } }
.reg-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  border-inline-start: 3px solid var(--green);
}
.reg-card.offshore { border-inline-start-color: var(--gold); }
.reg-card .reg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.reg-card .reg-name { font-family: var(--mono); font-size: 17px; font-weight: 600; color: var(--ink); }
.reg-card .reg-tier { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.reg-card .reg-tier.tier1 { background: var(--green-soft); color: var(--green); }
.reg-card .reg-tier.offshore { background: var(--gold-soft); color: var(--gold-ink); }
.reg-card .reg-country { font-size: 12.5px; color: var(--text-mute); margin-bottom: 8px; }
.reg-card p { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; }

.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1360px) { .art-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .art-grid { grid-template-columns: 1fr; } }
.art-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s;
}
details.art-card:hover { border-color: var(--border-strong); }
.art-card[open] { border-color: rgba(47, 214, 160, 0.5); }
details.art-card > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
details.art-card > summary::-webkit-details-marker { display: none; }
.art-card .art-cat {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}
.art-card h3 { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.art-card p { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; }
.art-card .art-readmore { font-size: 13.5px; color: var(--primary); font-weight: 600; margin-top: 2px; display: inline-block; }
.art-card[open] .art-readmore { display: none; }
.art-card .art-body { margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.art-card .art-body p { font-size: 14.5px; color: var(--text); line-height: 1.7; margin-bottom: 10px; }
.art-card .art-body p:last-child { margin-bottom: 0; }

.tool-grid, #view-tools .tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1360px) { .tool-grid, #view-tools .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .tool-grid, #view-tools .tool-grid { grid-template-columns: 1fr; } }
.tool-card, .tool-card-active {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column;
  transition: border-color 0.15s;
}
.tool-card { text-align: center; align-items: center; }
.tool-card:hover, .tool-card-active:hover { border-color: var(--border-strong); }
.tool-card .tool-icon, .tool-card-active .tool-icon {
  width: 40px; height: 40px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
}
.tool-card h3, .tool-card-active h3 { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.tool-card p, .tool-card-active .tool-desc { font-size: 13px; color: var(--text-mute); line-height: 1.5; margin-bottom: 16px; }
.tool-card .tool-tag { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--raised); color: var(--text-mute); }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.tool-row label { font-size: 12.5px; color: var(--text-soft); }
.tool-row input, .tool-row select,
.rv-input, .rv-select, .rv-textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--mono); font-size: 13px;
  color: var(--ink); background: var(--bg-soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tool-row input:focus, .tool-row select:focus,
.rv-input:focus, .rv-select:focus, .rv-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.tool-calc-btn, .rv-submit-btn {
  background: var(--primary); color: var(--on-primary);
  border: none; padding: 10px 18px;
  border-radius: 8px;
  font-family: inherit; font-weight: 700; font-size: 13.5px;
  cursor: pointer; margin-top: 8px;
  align-self: flex-start;
  transition: background 0.15s;
}
.tool-calc-btn:hover, .rv-submit-btn:hover { background: var(--primary-hover); }
.tool-result {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--primary);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  word-break: break-word;
}
.tool-result:empty { display: none; }
.tool-result.ok { border-inline-start-color: var(--green); color: var(--green); font-weight: 600; }
.tool-result.error { border-inline-start-color: var(--red); color: var(--red); }
.tool-result .pp-row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dotted var(--border-strong); font-size: 12.5px; }
.tool-result .pp-row:last-child { border-bottom: none; }
.tool-result .pp-row .k { color: var(--text-mute); font-weight: 500; }
.tool-result .pp-row .v { color: var(--ink); font-weight: 600; }
.tool-result .pp-row.pivot .v { color: var(--gold-ink); }
.tool-result .pp-row.r .v { color: var(--green); }
.tool-result .pp-row.s .v { color: var(--red); }
.tool-result .hl { color: var(--primary); font-weight: 700; }

/* Market hours */
.market-hours {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}
.mh-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.mh-header h3 { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); }
.mh-clock { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--primary); direction: ltr; }
.mh-sessions { display: grid; gap: 10px; direction: ltr; }
.mh-row { display: grid; grid-template-columns: 100px 1fr 76px; gap: 14px; align-items: center; font-size: 13px; }
.mh-row .name { font-weight: 600; color: var(--text); font-size: 13px; }
.mh-row .bar { position: relative; height: 24px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.mh-row .bar-fill { position: absolute; top: 0; bottom: 0; background: rgba(47, 214, 160, 0.28); border-inline: 2px solid var(--primary); }
.mh-row .bar-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.mh-row .status { text-align: right; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.mh-row .status.open { color: var(--green); }
.mh-row .status.closed { color: var(--text-mute); }
.mh-row .status.open::before { content: "● "; }
.mh-axis { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--text-mute); display: grid; grid-template-columns: 100px 1fr 76px; gap: 14px; direction: ltr; }
.mh-axis .ticks { display: flex; justify-content: space-between; }
@media (max-width: 560px) {
  .mh-row, .mh-axis { grid-template-columns: 70px 1fr 62px; gap: 8px; }
  .market-hours { padding: 18px 14px; }
}

.coming-soon {
  background: var(--card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 64px 22px;
  text-align: center;
}
.coming-soon h3 { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.coming-soon p { font-size: 15px; color: var(--text-soft); max-width: 54ch; margin: 0 auto; line-height: 1.6; }
.coming-soon .cs-icon { font-size: 42px; margin-bottom: 14px; }

/* ==========================================================================
   REVIEWS FORM
   ========================================================================== */
.review-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 700px;
}
.review-form-wrap form { display: flex; flex-direction: column; gap: 12px; }
.rv-label { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 6px; display: block; }
.rv-input, .rv-select, .rv-textarea { font-family: inherit; font-size: 14.5px; padding: 11px 13px; }
.rv-textarea { resize: vertical; min-height: 110px; }
.rv-stars-input { display: inline-flex; gap: 5px; font-size: 26px; color: var(--border-strong); user-select: none; cursor: pointer; padding: 2px 0; direction: ltr; align-self: flex-start; }
.rv-stars-input span { transition: color 0.12s; }
.rv-stars-input:hover span:not(:hover):not(:hover ~ span) { color: var(--gold); }
.rv-stars-input span:hover ~ span { color: var(--border-strong); }
.rv-stars-input span:hover, .rv-stars-input span.active { color: var(--gold); }
.rv-submit-btn { align-self: flex-start; padding: 13px 26px; font-size: 14.5px; }
.rv-help { font-size: 12.5px; color: var(--text-mute); line-height: 1.6; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; }
.rv-error { display: none; font-size: 13px; color: var(--red); margin-top: -6px; font-weight: 500; }
.rv-error.show { display: block; }
.rv-input.invalid, .rv-select.invalid, .rv-textarea.invalid { border-color: var(--red) !important; background: var(--red-soft); }
.rv-stars-input.invalid { box-shadow: 0 0 0 2px var(--red); border-radius: 6px; padding: 2px 6px; }

/* ==========================================================================
   NEWS
   ========================================================================== */
.news-featured {
  display: grid; grid-template-columns: 1fr 1.15fr;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  margin: 0 0 26px; background: var(--card);
}
.news-featured-hero {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 100%,
    linear-gradient(150deg, rgba(47, 214, 160, 0.20), rgba(47, 214, 160, 0.02) 70%),
    var(--raised);
  padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 240px;
  border-inline-end: 1px solid var(--border);
}
.news-featured-tag {
  display: inline-block; align-self: flex-start; padding: 5px 12px; background: var(--primary); color: var(--on-primary);
  font-size: 12px; font-weight: 700; border-radius: 999px;
}
.news-featured-hero h2 { font-family: var(--display); font-size: 30px; line-height: 1.15; margin: 0 0 12px; color: var(--ink); font-weight: 700; }
.news-featured-hero p { color: var(--text-soft) !important; font-size: 14.5px !important; line-height: 1.6 !important; }
.news-featured-hero .nf-meta { font-size: 13px; color: var(--text-mute); }
.news-featured-body { padding: 30px; font-size: 14.5px; line-height: 1.7; color: var(--text); }
.news-featured-body p { margin: 0 0 12px; }
.news-featured-body strong { color: var(--ink); }
.news-featured-body details { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 14px; }
.news-featured-body details summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 14px; list-style: none; }
.news-featured-body details summary::-webkit-details-marker { display: none; }
.news-featured-body details[open] summary { margin-bottom: 10px; }
.news-featured-body details ul { padding-inline-start: 20px; margin: 8px 0; }
.news-featured-body details li { margin: 6px 0; font-size: 14px; }
@media (max-width: 1360px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-hero { border-inline-end: none; border-bottom: 1px solid var(--border); min-height: 0; }
}

.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px;
  transition: border-color 0.2s;
}
.news-item:hover { border-color: var(--border-strong); }
.news-item[open] { border-color: rgba(47, 214, 160, 0.5); }
.news-item > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.news-item > summary::-webkit-details-marker { display: none; }
.news-item > summary > .ni-main { flex: 1 1 0; min-width: 220px; }
.news-item .ni-cat {
  display: inline-block; padding: 3px 10px; background: var(--blue-soft); color: var(--blue);
  border-radius: 999px; font-size: 11.5px; font-weight: 700; margin-bottom: 10px;
}
.news-item .ni-cat.cat-review { background: var(--orange-soft); color: var(--orange); }
.news-item .ni-cat.cat-industry { background: var(--blue-soft); color: var(--blue); }
.news-item .ni-cat.cat-regulation { background: var(--green-soft); color: var(--green); }
.news-item .ni-cat.cat-education { background: var(--violet-soft); color: var(--violet); }
.news-item h3 { font-family: var(--display); font-size: 21px; line-height: 1.25; margin: 0 0 8px; color: var(--ink); font-weight: 600; }
.news-item p.ni-snip { margin: 0 0 8px; font-size: 14.5px; line-height: 1.6; color: var(--text-soft); max-width: 80ch; }
.news-item .ni-readmore { font-size: 13.5px; color: var(--primary); font-weight: 600; display: inline-block; }
.news-item[open] .ni-readmore { display: none; }
.news-item .ni-body { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border-strong); font-size: 15px; line-height: 1.75; color: var(--text); max-width: 80ch; }
.news-item .ni-body p { margin: 0 0 12px; }
.news-item .ni-body strong { color: var(--ink); }

/* ==========================================================================
   WATCHLIST (scam brokers)
   ========================================================================== */
.wl-hero {
  background:
    repeating-linear-gradient(135deg, rgba(255, 92, 108, 0.055) 0 14px, transparent 14px 28px),
    radial-gradient(800px 300px at 0% 0%, rgba(255, 92, 108, 0.20), transparent 70%),
    var(--bg-soft);
  color: var(--ink);
  padding: 40px 0 30px;
  border-bottom: 1px solid rgba(255, 92, 108, 0.4);
}
.wl-hero h1 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wl-hero h1 .wl-warn-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--red); color: #1c0508;
  border-radius: 10px; font-family: "DM Mono", monospace; font-size: 24px; font-weight: 700;
  flex-shrink: 0;
}
.wl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 0; }
@media (max-width: 860px) { .wl-stats { grid-template-columns: repeat(2, 1fr); } }
.wl-stat { background: rgba(9, 23, 41, 0.6); border: 1px solid rgba(255, 92, 108, 0.28); border-radius: var(--radius); padding: 14px 16px; }
.wl-stat .v { font-size: 28px; font-weight: 500; color: var(--ink); font-family: var(--mono); line-height: 1; }
.wl-stat .l { font-size: 12.5px; color: var(--text-soft); margin-top: 8px; }

.wf-watchlist { margin-top: 0; }
.wf-watchlist-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 14px; }
.wf-watchlist-head .wf-wl-badge { background: var(--red); color: #1c0508; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.wf-watchlist-head h2 { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); margin: 0; }
.wf-watchlist-head .wf-wl-meta { margin-inline-start: auto; font-size: 12.5px; color: var(--text-mute); }
.wf-watchlist-intro { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 14px; }
.wf-watchlist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1360px) { .wf-watchlist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wf-watchlist-grid { grid-template-columns: 1fr; } }
.wf-wl-card {
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--red);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.wf-wl-card .wf-wl-row1 { display: flex; align-items: baseline; gap: 10px; }
.wf-wl-card .wf-wl-name { font-weight: 600; font-size: 16px; color: var(--ink); flex: 1; min-width: 0; line-height: 1.3; }
.wf-wl-card .wf-wl-year { font-family: var(--mono); font-size: 12px; color: var(--text-soft); background: var(--raised); padding: 2px 8px; border-radius: 5px; flex-shrink: 0; }
.wf-wl-card .wf-wl-flag { font-size: 12.5px; font-weight: 700; color: var(--red); }
.wf-wl-card .wf-wl-reason { font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }
.wf-wl-card .wf-wl-source { font-size: 12.5px; color: var(--primary); font-weight: 600; margin-top: auto; }
.wf-wl-card .wf-wl-source:hover { text-decoration: underline; }
.wf-watchlist-disclaimer { margin-top: 18px; padding: 16px 18px; border: 1px dashed var(--border-strong); border-radius: var(--radius); font-size: 13px; color: var(--text-mute); line-height: 1.6; }
.wf-watchlist-disclaimer strong { color: var(--text); }
.wl-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.wl-panel h2 { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.wl-panel p { font-size: 14px; color: var(--text-soft); line-height: 1.6; }
.wl-verify { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
@media (max-width: 860px) { .wl-verify { grid-template-columns: 1fr; } }
.wl-verify a { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); transition: border-color 0.15s; }
.wl-verify a:hover { border-color: var(--primary); }
.wl-verify a .reg { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.wl-verify a .desc { font-size: 12.5px; color: var(--text-soft); }

/* ==========================================================================
   BROKER DETAIL PAGE
   ========================================================================== */
.broker-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 8px 0 0; }
.broker-hero-logo img {
  width: 92px; height: 92px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
  border-radius: 20px;
  display: block;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.8);
}
.broker-hero-info h1 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 8px; unicode-bidi: plaintext; }
.broker-hero-info .sub { margin-bottom: 16px; max-width: 58ch; }
.broker-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.broker-meta-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--tint);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.broker-meta-tier1 { background: var(--green-soft); color: var(--green); border-color: rgba(47, 214, 160, 0.4); }
.broker-meta-offshore { background: var(--gold-soft); color: var(--gold-ink); border-color: rgba(255, 181, 71, 0.4); }
.broker-meta-mixed { background: var(--blue-soft); color: var(--blue); border-color: rgba(108, 178, 255, 0.35); }

.broker-hero-score {
  text-align: center;
  background: rgba(9, 23, 41, 0.6);
  border: 1px solid rgba(47, 214, 160, 0.5);
  border-radius: 16px;
  padding: 22px 26px;
  min-width: 220px;
}
.broker-score-num { font-family: "Plus Jakarta Sans", Arial, sans-serif; font-size: 66px; font-weight: 700; color: var(--primary); line-height: 1; letter-spacing: -0.04em; direction: ltr; unicode-bidi: isolate; }
.broker-score-num span { color: var(--text-mute); }
.broker-hero-stars { color: var(--gold); letter-spacing: 5px; font-size: 20px; line-height: 1; margin: 12px 0 8px; direction: ltr; unicode-bidi: isolate; }
.broker-score-lab { font-size: 12.5px; color: var(--text-soft); margin: 0 0 16px; }
.broker-hero-visit-only { text-align: center; align-self: center; }
.broker-visit-btn, .broker-visit-btn-lg {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.broker-visit-btn-lg { padding: 16px 34px; font-size: 16px; }
.broker-visit-btn:hover, .broker-visit-btn-lg:hover { color: var(--on-primary); background: var(--primary-hover); transform: translateY(-1px); }
@media (max-width: 860px) {
  .broker-hero { grid-template-columns: auto 1fr; gap: 18px; }
  .broker-hero-score, .broker-hero-visit-only { grid-column: 1 / -1; }
  .broker-hero-visit-only { text-align: start; }
  .broker-hero-logo img { width: 68px; height: 68px; border-radius: 16px; padding: 8px; }
}

.broker-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bf-item { padding: 16px 18px; box-shadow: 1px 0 0 var(--border), -1px 0 0 var(--border), 0 1px 0 var(--border); }
.bf-item.bf-wide { grid-column: 1 / -1; }
.bf-lab { font-size: 12.5px; color: var(--text-mute); margin-bottom: 5px; }
.bf-val { unicode-bidi: plaintext; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }

.broker-overview-text, .broker-fit-text { font-size: 16px; line-height: 1.75; color: var(--text); max-width: 76ch; }
.broker-fit-text { margin-bottom: 22px; }

.broker-bd-list { max-width: 760px; gap: 14px; }
.broker-bd-list .bd-row { grid-template-columns: 150px 1fr 44px; gap: 14px; font-size: 14.5px; }
.broker-bd-list .lab { color: var(--text); }
.broker-bd-list .bar { height: 8px; border-radius: 4px; }
.broker-bd-list .fill { border-radius: 4px; }
.broker-bd-list .num { font-size: 14.5px; color: var(--primary); }
@media (max-width: 560px) { .broker-bd-list .bd-row { grid-template-columns: 96px 1fr 36px; gap: 10px; font-size: 13px; } }
.broker-score-disclaimer { font-size: 13px; color: var(--text-mute); margin-top: 16px; max-width: 76ch; }

.broker-procons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .broker-procons-grid { grid-template-columns: 1fr; } }
.broker-procons-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.broker-procons-pros { border-top: 3px solid var(--green); }
.broker-procons-cons { border-top: 3px solid var(--red); }
.broker-procons-card h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.broker-procons-pros h3 { color: var(--green); }
.broker-procons-cons h3 { color: var(--red); }
.broker-procons-card ul { list-style: none; padding: 0; margin: 0; }
.broker-procons-card li {
  position: relative;
  padding: 9px 0;
  padding-inline-start: 26px;
  font-size: 14.5px; line-height: 1.5;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.broker-procons-card li:last-child { border-bottom: none; }
.broker-procons-card li::before { position: absolute; inset-inline-start: 0; top: 9px; font-family: var(--mono); font-weight: 700; }
.broker-procons-pros li::before { content: "+"; color: var(--green); }
.broker-procons-cons li::before { content: "−"; color: var(--red); }

.broker-cta-block {
  background:
    linear-gradient(120deg, rgba(47, 214, 160, 0.14), transparent 60%),
    var(--card);
  border: 1px solid var(--border);
  padding: 30px 26px;
  border-radius: var(--radius);
  text-align: center;
}
.broker-risk { font-size: 12.5px; color: var(--text-mute); max-width: 640px; margin: 16px auto 0; line-height: 1.6; }

.brk-section-h { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
main > .wf-section { max-width: 1180px; margin: 0 auto; padding-inline: 28px; }
@media (max-width: 720px) { main > .wf-section { padding-inline: 16px; } }
.brk-faq-section-h { text-align: start; }
.brk-videos-intro { font-size: 14.5px; color: var(--text-soft); margin: 0 0 18px; max-width: 70ch; }
.brk-videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; max-width: 980px; }
.brk-video-card { background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-strong); }
.brk-video-card iframe { width: 100%; display: block; border: 0; }
.brk-video-wide { grid-column: span 2; }
@media (max-width: 600px) { .brk-video-wide { grid-column: span 1; } }

.brk-reviews-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.brk-reviews-score { font-family: var(--mono); font-size: 44px; font-weight: 600; color: var(--primary); line-height: 1; }
.brk-reviews-score-suffix { font-size: 18px; color: var(--text-mute); margin-inline-start: 2px; }
.brk-reviews-stars, .brk-review-stars { color: var(--gold); letter-spacing: 3px; direction: ltr; }
.brk-reviews-stars { font-size: 20px; }
.brk-reviews-meta { font-size: 12.5px; color: var(--text-mute); }
.brk-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.brk-review-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.brk-review-stars { font-size: 14px; margin-bottom: 8px; }
.brk-review-text { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 10px; }
.brk-review-author { font-size: 12.5px; color: var(--text-soft); font-weight: 600; }
.brk-reviews-disclaimer { font-size: 12px; color: var(--text-mute); margin-top: 12px; text-align: center; line-height: 1.5; }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-doc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px !important;
  max-width: 860px;
  margin: 34px 0 0;
}
@media (max-width: 720px) { .legal-doc { padding: 24px 20px !important; } }
.legal-doc .meta, .legal-doc .legal-meta {
  font-family: var(--mono);
  font-size: 12.5px; color: var(--text-mute);
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.legal-doc .lead, .legal-doc .legal-lead { font-size: 17px; color: var(--text); line-height: 1.7; margin-bottom: 20px; }
.legal-doc h2 {
  font-family: var(--display);
  font-size: 22px; font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  border-bottom: none;
}
.legal-doc h2:first-of-type { padding-top: 0; border-top: none; }
.legal-doc h2 .num { font-family: var(--mono); font-size: 13px; color: var(--primary); font-weight: 600; margin-inline-end: 8px; }
.legal-doc h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 18px 0 8px; }
.legal-doc p, .legal-doc li { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 12px; }
.legal-doc ul, .legal-doc ol { padding-inline-start: 24px; margin-bottom: 12px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-doc a { text-decoration: underline; text-underline-offset: 3px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal-doc th, .legal-doc td { border: 1px solid var(--border); padding: 9px 12px; text-align: start; vertical-align: top; }
.legal-doc th { background: var(--raised); color: var(--ink); font-weight: 600; }
.legal-doc .note {
  background: var(--blue-soft); color: var(--blue);
  border-inline-start: 3px solid var(--blue);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin: 14px 0;
}
body.legal-en-only .wf-lang,
body.legal-en-only .wf-lang-label,
body.legal-en-only .lang-btn,
body.legal-en-only [data-lang] { display: none !important; }
.legal-binding-banner {
  background: var(--gold-soft);
  border-bottom: 1px solid rgba(255, 181, 71, 0.35);
  padding: 10px 28px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.legal-binding-banner strong { color: var(--gold-ink); }

/* ==========================================================================
   404
   ========================================================================== */
.err-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 20px; text-align: center; }
.err-code { font-family: "DM Mono", monospace; font-size: clamp(96px, 16vw, 168px); font-weight: 600; line-height: 1; letter-spacing: -0.06em; color: var(--red); margin-bottom: 10px; direction: ltr; }
.err-title { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.err-desc { font-size: 15.5px; color: var(--text-soft); line-height: 1.6; max-width: 520px; margin: 0 auto 28px; }
.err-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.err-btn { display: inline-block; padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 14.5px; transition: background 0.15s, border-color 0.15s; }
.err-btn-primary { background: var(--primary); color: var(--on-primary) !important; }
.err-btn-primary:hover { background: var(--primary-hover); }
.err-btn-secondary { background: var(--card); color: var(--ink) !important; border: 1px solid var(--border-strong); }
.err-btn-secondary:hover { border-color: var(--primary); }
.err-quick-links { width: 100%; max-width: 720px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 28px; }
.err-quick-links h3 { font-size: 13px; font-weight: 600; color: var(--text-mute); margin-bottom: 14px; }
.err-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.err-link-grid a { display: block; padding: 11px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text); transition: border-color 0.15s, color 0.15s; }
.err-link-grid a:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   FOOTER, FAB, TOAST, COOKIE BANNER
   ========================================================================== */
.wf-foot {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  padding: 44px 0 26px;
  margin-top: 56px;
}
.wf-foot .wrap { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 36px; }
@media (max-width: 860px) { .wf-foot .wrap { grid-template-columns: 1fr; gap: 24px; } }
.wf-foot h5 { color: var(--ink); font-family: var(--display); font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.wf-foot p { font-size: 13.5px; color: var(--text-soft); line-height: 1.7; }
.wf-foot a { font-size: 13.5px; color: var(--text); }
.wf-foot a:hover { color: var(--primary); }
.ft-legal-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ft-legal-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.wf-foot .copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
}
.wf-foot .copyright b { color: var(--primary); font-weight: 600; }

.top-pick-fab {
  position: fixed;
  bottom: 22px; inset-inline-end: 22px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 11px 18px;
  padding-inline-start: 11px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 16px 36px -10px rgba(47, 214, 160, 0.6), 0 0 0 1px rgba(5, 23, 15, 0.4);
  z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
  animation: fabPulse 3.2s ease-in-out infinite;
  transition: transform 0.2s, background 0.15s;
}
.top-pick-fab:hover { color: var(--on-primary); background: var(--primary-hover); transform: translateY(-2px); }
.top-pick-fab .fab-star {
  background: var(--on-primary); color: var(--gold);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.top-pick-fab .fab-arrow { font-size: 15px; }
html[dir="rtl"] .top-pick-fab .fab-arrow { transform: scaleX(-1); }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 16px 36px -10px rgba(47, 214, 160, 0.6), 0 0 0 0 rgba(47, 214, 160, 0.45); }
  50% { box-shadow: 0 18px 40px -10px rgba(47, 214, 160, 0.7), 0 0 0 12px rgba(47, 214, 160, 0); }
}
@media (max-width: 720px) {
  .top-pick-fab { padding: 9px 14px; padding-inline-start: 9px; font-size: 13px; bottom: 14px; inset-inline-end: 14px; }
  body { padding-bottom: 84px; }
}

#pd-toast {
  position: fixed;
  top: 76px; inset-inline-end: 20px;
  background: var(--raised); color: var(--ink);
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px; line-height: 1.45;
  z-index: 300;
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  max-width: 340px;
  border: 1px solid var(--border-strong);
  border-inline-start: 3px solid var(--primary);
}
#pd-toast.show { opacity: 1; transform: translateY(0); }

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--raised); color: var(--ink);
  border-top: 1px solid var(--border-strong);
  padding: 16px 22px;
  z-index: 250;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.5);
  display: none;
}
.cookie-banner.show { display: block; animation: cbSlide 0.3s ease-out; }
@keyframes cbSlide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; min-width: 240px; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.cookie-banner-text strong { color: var(--ink); font-weight: 600; }
.cookie-banner-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 9px 16px; border-radius: 8px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cookie-btn:hover { color: var(--ink); border-color: var(--text-soft); }
.cookie-btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.cookie-btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
@media (max-width: 600px) {
  .cookie-banner { padding: 14px 16px; }
  .cookie-banner-buttons { width: 100%; }
  .cookie-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Longer labels: let them wrap instead of pushing the page sideways */
.tag.tag-cat { white-space: normal; border-radius: 12px; }
.broker-visit-btn-lg, .broker-visit-btn { white-space: normal; text-align: center; }
.wf-hero-left, .wf-hero-row > * { min-width: 0; max-width: 100%; }
@media (max-width: 860px) { .wf-hero-left { flex: 0 1 auto; } }


/* ==========================================================================
   VERSION 2 LAYOUT — dark header zone, light pages, card grids
   ========================================================================== */
body { font-size: 15px; }
.wrap { max-width: 1240px; }

/* ---- Header: one dark bar, pill navigation beneath it ---- */
.wf-top { border-bottom: none; padding: 13px 0; }
.wf-top .wrap { max-width: 1240px; padding: 0 28px; }
.wf-logo { font-weight: 800; font-size: 20px; letter-spacing: 0; gap: 0; }
.wf-logo::before { margin-right: 10px; }
.wf-logo .b { color: var(--primary); }
.wf-nav { background: var(--bg); border-bottom: 1px solid var(--border); }
.wf-nav .wrap { max-width: 1240px; padding: 0 22px; gap: 4px; }
.wf-nav a {
  padding: 7px 14px; margin: 8px 0;
  border-bottom: none; border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.wf-nav a:hover { background: var(--tint); }
.wf-nav a.active { background: var(--primary); color: var(--on-primary); border-bottom-color: transparent; }
.wf-nav a.wf-nav-warning { margin-inline-start: auto; border-radius: 999px; padding: 7px 14px; padding-inline-start: 34px; }
@media (max-width: 1100px) { .wf-nav a.wf-nav-warning { margin-inline-start: 10px; } }

/* ---- Live price tape ---- */
.fx-tape { background: var(--bg); border-bottom: 1px solid var(--border); min-height: 46px; overflow: hidden; }
.fx-tape .tradingview-widget-container { max-width: 1240px; margin: 0 auto; }

/* ---- Home hero ---- */
.wf-hero {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 100%,
    radial-gradient(1000px 460px at 85% 0%, rgba(52, 224, 168, 0.16), transparent 65%),
    linear-gradient(180deg, #091729 0%, #0d2440 100%);
  border-bottom: none;
  padding: 64px 0 0;
  overflow: visible;
}
.wf-hero::after { bottom: 44px; opacity: 0.18; }
.wf-hero h1 { font-weight: 800; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.025em; max-width: 17ch; }
.wf-hero h1 .accent { color: var(--primary); }
.wf-hero .sub { font-size: 16.5px; max-width: 56ch; }
.wf-search { border-radius: 999px; padding-inline-start: 8px; max-width: 560px; background: #fff; border-color: transparent; }
.wf-search input { color: #0b1a2d; }
.wf-search input::placeholder { color: #627286; }
.wf-search button { border-radius: 999px; padding: 0 26px; }
.wf-hero-video { border-radius: 20px; border-color: var(--border-strong); }
/* Stat cards sit across the hero's bottom edge */
.wf-stats-strip {
  position: relative; z-index: 2;
  margin: 52px 0 -46px;
  border: none; background: transparent; overflow: visible;
  gap: 14px;
  color-scheme: light;
  --card: #ffffff; --border: #dde3ec; --ink: #0b1a2d; --text-mute: #627286; --primary: #077a57;
}
.wf-stats-strip .stat {
  background: var(--card);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 18px 40px -22px rgba(11, 26, 45, 0.45);
}
.wf-stats-strip .stat .num { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--ink); letter-spacing: -0.03em; }
.wf-stats-strip .stat .num::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--primary); margin-top: 10px; }
.wf-stats-strip .stat .lab { font-size: 13.5px; margin-top: 8px; }
@media (max-width: 720px) {
  .wf-hero { padding-top: 36px; }
  .wf-stats-strip { margin: 30px 0 -40px; gap: 10px; }
  .wf-stats-strip .stat { padding: 14px 16px; }
  .wf-stats-strip .stat .num { font-size: 26px; }
}

/* ---- Home: new section order ---- */
#view-home > .wrap { display: flex; flex-direction: column; padding-top: 70px; }
#view-home > .wrap > section:nth-of-type(1) { order: 1; }  /* ranking */
#view-home > .wrap > section:nth-of-type(2) { order: 2; }  /* markets covered */
#view-home > .wrap > section:nth-of-type(5) { order: 3; }  /* latest */
#view-home > .wrap > section:nth-of-type(3) { order: 4; }  /* live market */
#view-home > .wrap > section:nth-of-type(4) { order: 5; }  /* sentiment */
#view-home > .wrap > section:nth-of-type(6) { order: 6; }  /* FAQ */
#view-home > .wrap > section:nth-of-type(7) { order: 7; }  /* notices */

/* ---- Section headings ---- */
.wf-section { padding: 44px 0 4px; }
.wf-section-head { border-bottom: none; padding-bottom: 0; margin-bottom: 22px; align-items: center; }
.wf-section-head h2, .wf-section > h2, .brk-section-h {
  font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.15;
}
.wf-section > h2 { border-bottom: none; padding-bottom: 0; margin-bottom: 20px; }
.wf-section-head .more {
  color: var(--ink); background: var(--card); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px;
}
.wf-section-head .more:hover { border-color: var(--primary); color: var(--primary); }

/* ---- Inner page hero ---- */
.wf-page-hero, html[dir="rtl"] .wf-page-hero {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 100%,
    radial-gradient(800px 320px at 90% 0%, rgba(52, 224, 168, 0.14), transparent 65%),
    linear-gradient(180deg, #091729 0%, #0d2440 100%);
  border-bottom: none; padding: 52px 0 46px;
}
.wf-page-hero h1, .wl-hero h1 { font-weight: 800; letter-spacing: -0.025em; }
.wl-hero {
  background:
    repeating-linear-gradient(135deg, rgba(255, 99, 115, 0.06) 0 14px, transparent 14px 28px),
    radial-gradient(900px 340px at 10% 0%, rgba(255, 99, 115, 0.26), transparent 70%),
    linear-gradient(180deg, #091729 0%, #1a1d33 100%);
  border-bottom: none; padding: 52px 0 40px;
}

/* ---- Cards get a soft lift ---- */
.rank-row, .wf-widget, .hot-broker, .feed-item, .wf-faq details, .brk-faq-item, .mediation, .warn-card, .reg-card, .art-card,
.tool-card, .tool-card-active, .market-hours, .review-form-wrap, .news-featured, .news-item, .wf-wl-card, .broker-procons-card,
.wf-sentiment-card, .tradingview-widget-wrap, .legal-doc, .coming-soon, .asset-strip .a-cell, .broker-facts-grid { box-shadow: var(--shadow); }
.rank-num img, .hot-icon, .broker-hero-logo img, .search-result .sr-icon { border: 1px solid #dde3ec; }
.hot-icon { border-radius: 14px; }

/* ---- Brokers as a card grid ---- */
.wf-rank-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rank-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "logo name name" "tags tags tags" "note note cta";
  gap: 14px 12px; align-items: center;
  padding: 20px;
  border-radius: var(--radius);
}
.rank-row:not(.featured):hover { background: var(--card); border-color: var(--primary); transform: translateY(-2px); }
.rank-row { transition: border-color 0.15s, transform 0.15s; }
.rank-num { grid-area: logo; }
.rank-num img { width: 46px; height: 46px; border-radius: 12px; }
.rank-broker { grid-area: name; }
.rank-name { font-size: 17.5px; font-weight: 700; }
.rank-tags { grid-area: tags; align-self: start; }
.rank-score-text {
  grid-area: note; text-align: start; max-width: none;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
  padding-top: 14px; border-top: 1px solid var(--border); align-self: stretch;
}
.rank-visit-mini { grid-area: cta; justify-self: end; margin-top: 14px; border-radius: 999px; }
.rank-row:not(.featured) .rank-score-text { grid-column: 1 / 3; }
.rank-row:not(.featured)::after { content: ""; grid-area: 3 / 1 / 4 / -1; border-top: 1px solid var(--border); align-self: start; pointer-events: none; }
.rank-row:not(.featured) .rank-score-text { border-top: none; }

.rank-row.featured {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-rows: auto auto;
  grid-template-areas: "logo name score cta" "tags tags tags tags";
  gap: 18px 24px;
  padding: 38px 30px 28px;
  margin: 12px 0 6px;
  border: 2px solid var(--primary);
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(7, 122, 87, 0.12), transparent 70%),
    var(--card);
  box-shadow: 0 24px 50px -28px rgba(7, 122, 87, 0.55);
  animation: none;
}
html[dir="rtl"] .rank-row.featured { background: radial-gradient(700px 260px at 100% 0%, rgba(7, 122, 87, 0.12), transparent 70%), var(--card); }
.rank-row.featured::before { top: -14px; inset-inline-start: 26px; border-radius: 999px; padding: 5px 14px; font-size: 11.5px; }
.rank-row.featured .rank-num img { width: 72px; height: 72px; border-radius: 18px; border: none; }
.rank-row.featured .rank-name { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.rank-score { grid-area: score; }
.rank-score .score-num { font-family: var(--display); font-weight: 800; font-size: 52px; }
.rank-cta { grid-area: cta; border-radius: 999px; padding: 15px 28px; }
@media (max-width: 1100px) { .wf-rank-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .wf-rank-list { grid-template-columns: 1fr; }
  .rank-row.featured {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "logo name" "tags tags" "score score" "cta cta";
    padding: 30px 18px 20px; gap: 14px;
  }
  .rank-row.featured .rank-name { font-size: 23px; }
  .rank-row.featured .rank-num img { width: 52px; height: 52px; }
  .rank-score { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; text-align: start; }
  .rank-score .score-num { font-size: 38px; }
  .rank-score .score-out { margin: 0; max-width: none; }
  .rank-row.featured .rank-stars { margin: 0; }
  .rank-cta { text-align: center; white-space: normal; }
}

/* ---- Markets covered: pill row ---- */
.asset-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.asset-strip .a-cell {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
}
.asset-strip .a-cell .ic { font-size: 20px; margin: 0; }
.asset-strip .a-cell .name { font-size: 15px; }
.asset-strip .a-cell:hover { background: var(--card); border-color: var(--primary); }

/* ---- 200INVEST close-up ---- */
.wf-widget { padding: 26px; border-radius: var(--radius); }
.wf-widget h3 { font-size: 17px; font-weight: 800; }
@media (min-width: 1361px) { .wf-widget-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; } }
.bd-row .bar { height: 8px; border-radius: 4px; background: var(--bg-soft); }
.bd-row .fill { border-radius: 4px; }
.bd-row .num { color: var(--primary); }

/* ---- Feed, FAQ ---- */
.feed-item { padding: 20px 22px; border-radius: var(--radius); }
.feed-item .feed-title { font-size: 16px; font-weight: 700; }
@media (min-width: 1000px) {
  .wf-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: start; }
  .wf-faq details { margin-bottom: 0; }
}
.wf-faq summary, .brk-faq-item summary { font-weight: 700; }
.wf-faq details[open], .brk-faq-item[open], .art-card[open], .news-item[open] { border-color: var(--primary); }

/* ---- Notices: dark statistic bar on a light card ---- */
.mediation-bar { background: linear-gradient(180deg, #091729, #0d2440); border-bottom: none; }
.mediation-bar .m-stat .num { font-family: var(--display); font-weight: 800; font-size: 22px; }

/* ---- Chips, tags ---- */
.wf-filters .chip { padding: 9px 18px; font-size: 14px; font-weight: 600; }
.tag { background: var(--raised); }
.tag.tag-reg { border-radius: 6px; }

/* ---- Broker page: content left, sticky fact sheet right ---- */
.broker-hero-info h1 { font-size: clamp(34px, 4.4vw, 56px); }
.broker-hero-score { border-radius: 22px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.06); }
.broker-score-num { font-family: var(--display); font-weight: 800; }
@media (min-width: 1040px) {
  .tab-view[id^="view-broker-"] > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: 40px;
    align-items: start;
  }
  .tab-view[id^="view-broker-"] > .wrap > section { grid-column: 1; }
  .tab-view[id^="view-broker-"] > .wrap > section:first-of-type {
    grid-column: 2; grid-row: 1 / span 8;
    position: sticky; top: 132px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; margin-top: 44px;
    box-shadow: var(--shadow);
  }
  .tab-view[id^="view-broker-"] > .wrap > section:first-of-type > h2 { font-size: 20px; margin-bottom: 14px; }
  .tab-view[id^="view-broker-"] .broker-facts-grid { grid-template-columns: 1fr; border: none; box-shadow: none; border-radius: 0; background: transparent; }
  .tab-view[id^="view-broker-"] .bf-item { padding: 11px 0; box-shadow: none; border-bottom: 1px dashed var(--border); }
  .tab-view[id^="view-broker-"] .bf-item:last-child { border-bottom: none; }
}
.bf-lab { font-size: 12.5px; }
.broker-procons-card { border-radius: var(--radius); }
.broker-cta-block { background: linear-gradient(120deg, rgba(7, 122, 87, 0.10), transparent 60%), var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.brk-faq-list { max-width: none; }
@media (min-width: 1000px) { .brk-faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: start; } .brk-faq-list .brk-faq-item { margin-bottom: 0; } }
main > .wf-section { max-width: 1240px; }

/* ---- News ---- */
.news-featured { border-radius: 22px; }
.news-featured-hero { background: radial-gradient(600px 300px at 0% 0%, rgba(52, 224, 168, 0.22), transparent 70%), linear-gradient(160deg, #091729, #0d2440); }
.news-featured-hero h2 { font-weight: 800; letter-spacing: -0.02em; }
.news-item h3, .art-card h3, .warn-card h3, .tool-card-active h3, .mh-header h3, .coming-soon h3, .broker-procons-card h3, .wf-foot h5 { font-weight: 800; letter-spacing: -0.01em; }
@media (min-width: 1000px) { .news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; } }

/* ---- Blacklist ---- */
.wl-stat { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 99, 115, 0.35); }
.wl-stat .v { font-family: var(--display); font-weight: 800; }
.wf-wl-card { border-inline-start-width: 4px; }

/* ---- Forms & tools ---- */
.tool-row input, .tool-row select, .rv-input, .rv-select, .rv-textarea { background: var(--raised); }
.tool-calc-btn, .rv-submit-btn, .err-btn, .cookie-btn, .broker-visit-btn, .broker-visit-btn-lg { border-radius: 999px; }
.tool-result { background: var(--raised); }
.mh-row .bar-fill { background: rgba(7, 122, 87, 0.22); }
.mh-row .bar-now { background: var(--red); }
.mh-clock { font-weight: 500; }

/* ---- Footer ---- */
.wf-foot { background: linear-gradient(180deg, #091729, #071221); border-top: none; margin-top: 72px; padding: 56px 0 30px; }
.top-pick-fab { box-shadow: 0 16px 36px -10px rgba(7, 122, 87, 0.55); }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 16px 36px -10px rgba(7, 122, 87, 0.55), 0 0 0 0 rgba(7, 122, 87, 0.4); }
  50% { box-shadow: 0 18px 40px -10px rgba(7, 122, 87, 0.65), 0 0 0 12px rgba(7, 122, 87, 0); }
}
.top-pick-fab .fab-star { background: #fff; color: var(--gold); }
.legal-binding-banner { text-align: center; }
.err-code { font-family: var(--display); font-weight: 800; }
.wf-section .wf-search { border-color: var(--border-strong); max-width: 640px; }
.wf-hero .wf-search { border-color: transparent; }


/* ==========================================================================
   VERSION 3 — language menu, no app button, no hero video, no floating button
   ========================================================================== */
.wf-langmenu { position: relative; }
.wf-langmenu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--ink); font-size: 14px; font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.wf-langmenu > summary::-webkit-details-marker { display: none; }
.wf-langmenu > summary:hover, .wf-langmenu[open] > summary { border-color: var(--primary); background: var(--tint); }
.wf-globe { color: var(--primary); flex-shrink: 0; }
.wf-caret { transition: transform 0.15s; opacity: 0.7; }
.wf-langmenu[open] .wf-caret { transform: rotate(180deg); }
html[lang="en"] .wf-lang-current::after { content: "English"; }
html[lang="es"] .wf-lang-current::after { content: "Español"; }
html[lang="ar"] .wf-lang-current::after { content: "العربية"; font-family: var(--ar); }
.wf-langmenu .wf-lang {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 190px; padding: 6px;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.6);
}
.wf-langmenu .wf-lang button {
  display: flex !important; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; padding: 10px 12px;
  border-radius: 9px; box-shadow: none;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: var(--text);
  text-align: start;
}
.wf-langmenu .wf-lang button[lang="ar"] .wf-lang-name { font-family: var(--ar); }
.wf-langmenu .wf-lang button:hover:not(.active) { background: var(--tint); color: var(--ink); }
.wf-langmenu .wf-lang button.active { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.wf-langmenu .wf-lang button.active .wf-lang-code::before { content: "✓ "; }
.wf-lang-code { font-family: var(--mono); font-size: 11.5px; font-weight: 500; opacity: 0.75; direction: ltr; }
body.legal-en-only .wf-langmenu { display: none !important; }
@media (max-width: 520px) { .wf-langmenu > summary { padding: 7px 11px; font-size: 13.5px; } }

/* Hero without the video: one centred column */
.wf-hero-row { display: block; }
.wf-hero-left { max-width: 860px; margin: 0 auto; text-align: center; }
.wf-hero h1 { max-width: 20ch; margin-inline: auto; font-size: clamp(34px, 5vw, 62px); }
.wf-hero .sub { max-width: 62ch; margin-inline: auto; }
.wf-hero .wf-search { margin: 0 auto; max-width: 620px; text-align: start; }
.wf-hero .wf-search input { padding-block: 18px; font-size: 16px; }
@media (max-width: 720px) { .wf-hero-left { text-align: start; } .wf-hero h1, .wf-hero .sub { margin-inline: 0; } }

/* No floating button any more, so no reserved space on phones */
@media (max-width: 720px) { body { padding-bottom: 0; } }
