/*
Theme Name: FindForexBroker Pro
Theme URI: https://findforexbroker.com
Author: Core Affiliate Team
Author URI: https://findforexbroker.com
Description: Ultimate WordPress Theme for Forex & CFD Broker Reviews, Live Search, Full Customizer integration (Global, Header, Post Types, General, Footer) and Responsive UI.
Version: 3.7.1
Text Domain: findforexbroker
License: GNU General Public License v2 or later
*/

:root {
  box-sizing: border-box;
  --pg: #f4f7fc;
  --card: #ffffff;
  --card-sub: #f8fafc;
  --ink: #0b1528;
  --ink-soft: #334155;
  --mute: #64748b;
  --line: #e2e8f0;
  --line-light: #edf2f7;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-dark: #0f1d38;
  --cyan: #06b6d4;
  --cyan-glow: #22d3ee;
  --ok: #10b981;
  --ok-soft: #ecfdf5;
  --gold: #f59e0b;
  --gold-soft: #fffbeb;
  --chip: #eff6ff;
  --danger: #ef4444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px -2px rgba(11,21,40,0.08);
  --shadow-lg: 0 20px 35px -8px rgba(11,21,40,0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --pg: #070e1b;
    --card: #0f1c33;
    --card-sub: #14233e;
    --ink: #f1f5f9;
    --ink-soft: #cbd5e1;
    --mute: #8da2c0;
    --line: #1e3152;
    --line-light: #182844;
    --chip: #192e54;
    --ok-soft: #064e3b33;
    --gold-soft: #78350f33;
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 24px 50px rgba(0,0,0,0.6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --pg: #070e1b;
  --card: #0f1c33;
  --card-sub: #14233e;
  --ink: #f1f5f9;
  --ink-soft: #cbd5e1;
  --mute: #8da2c0;
  --line: #1e3152;
  --line-light: #182844;
  --chip: #192e54;
  --ok-soft: #064e3b33;
  --gold-soft: #78350f33;
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 50px rgba(0,0,0,0.6);
}

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

html, body {
  width: 100%;
  max-width: 100%;
  position: relative;
  scroll-behavior: smooth;
  font-family: var(--ffb-font-body, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif);
  color: var(--ink);
  background: var(--pg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: hidden; }
body { overflow-x: clip; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ffb-font-heading, inherit); }

.container {
  width: 100%;
  max-width: var(--ffb-container, 1240px);
  margin: 0 auto;
  padding: 0 var(--ffb-pad, 20px);
}

.section-pad {
  padding: var(--ffb-section-pad, 80px) 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 0 10px;
}
.sec-head h2 {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
  color: var(--ink);
}
.sec-head p {
  color: var(--mute);
  font-size: 16px;
  margin: 0;
}

/* 1. Header & Live Search Bar */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 74px;
  background: rgba(11, 20, 36, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  width: 100%;
}

.hdr-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.header-left-col {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 18px;
  line-height: 1.1;
}

.brand img.custom-logo, .brand img {
  max-height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.brand span.sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .15em;
  display: block;
}

.mark {
  width: 32px;
  height: 32px;
  position: relative;
  display: inline-block;
  flex: none;
}
.mark:before, .mark:after {
  content: "";
  position: absolute;
  left: 0;
  width: 30px;
  height: 13px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}
.mark:before { top: 1px; background: #ff4b4b; }
.mark:after { top: 17px; background: #23bd85; }

/* Live Broker Search in Header */
.header-search-wrap {
  flex: 1;
  max-width: 280px;
  position: relative;
}
.header-search-wrap form {
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
}
.header-search-wrap input[type="search"] {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 99px;
  padding: 8px 14px 8px 36px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all .2s;
  font-family: inherit;
}
.header-search-wrap input[type="search"]::placeholder {
  color: #94a3b8;
}
.header-search-wrap input[type="search"]:focus {
  background: rgba(255,255,255,0.14);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(6,182,212,0.3);
}
.header-search-wrap .search-icon-svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #94a3b8;
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { display: inline-block; }
.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.btn-nav {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
  transition: transform .15s, opacity .15s;
  white-space: nowrap;
}
.btn-nav:hover { transform: translateY(-1px); opacity: 0.95; }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 26px; height: 26px; }

/* Mobile Slide-in Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background: #0b1424;
  border-bottom: 2px solid var(--blue);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  box-sizing: border-box;
}
.mobile-nav-drawer.active { display: flex; }
.mobile-nav-drawer a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav-drawer a:last-child { border-bottom: none; }

/* 2. Hero Section */
.hero {
  background: radial-gradient(circle at 80% 20%, #1e3a6a 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, #11284d 0%, transparent 35%),
              linear-gradient(135deg, #070e1b 0%, #0d1a31 50%, #122444 100%);
  color: #fff;
  padding: 60px 0 85px;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--pg), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.hero-left .eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.3);
  padding: 6px 14px;
  border-radius: 99px;
  color: var(--cyan-glow);
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-left .dot {
  width: 7px;
  height: 7px;
  background: #22d3ee;
  border-radius: 50%;
  box-shadow: 0 0 10px #22d3ee;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.85); } }

.hero-left h1 {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: #fff;
}
.hero-left h1 span {
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-left .lead {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 540px;
}
.proof-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  color: #e2e8f0;
}
.proof-item svg { flex: none; color: var(--ok); }

/* Interactive Finder Card */
.finder {
  background: var(--card);
  color: var(--ink);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  min-height: 380px;
  width: 100%;
}
.bar { display: flex; gap: 6px; margin-bottom: 16px; }
.bar i { flex: 1; height: 6px; border-radius: 9px; background: var(--line); transition: background .3s; }
.bar i.on { background: var(--blue); }
.finder .step-label { font-size: 11px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.finder h3 { font-size: 19px; font-weight: 800; margin: 6px 0 16px; letter-spacing: -0.02em; color: var(--ink); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts.one { grid-template-columns: 1fr; }
.opt {
  background: var(--card-sub);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
}
.opt small { display: block; color: var(--mute); font-weight: 500; font-size: 11.5px; margin-top: 3px; }
.opt:hover, .opt:focus-visible { border-color: var(--blue); background: var(--chip); outline: none; }
.back { background: none; border: 0; color: var(--mute); font: inherit; font-size: 13px; cursor: pointer; padding: 12px 0 0; font-weight: 600; }
.an { margin: 12px 0; padding: 0; list-style: none; }
.an li { padding: 9px 0; color: var(--mute); display: flex; gap: 10px; font-size: 14px; font-weight: 600; }
.an li.d { color: var(--ink); }
.an li.d::before { content: "✓"; color: var(--ok); font-weight: 900; }
.an li:not(.d)::before { content: "○"; color: var(--mute); }

.top-res { display: flex; gap: 16px; align-items: center; }
.ring { flex: none; width: 84px; height: 84px; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .t { stroke: var(--line); }
.ring .v { stroke: var(--ok); stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 19px; font-weight: 800; color: var(--ink); }
.badge { display: inline-block; background: var(--ok); color: #fff; border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.top-res h4 { margin: 4px 0 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; padding: 0; list-style: none; }
.tags li { background: var(--chip); color: var(--blue); border-radius: 99px; padding: 5px 12px; font-size: 12px; font-weight: 700; }
.cta-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-hover));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 13px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(37,99,235,0.35);
  transition: transform .15s;
}
.cta-btn:hover { transform: translateY(-1px); }
.wa-btn {
  display: block;
  text-align: center;
  margin-top: 8px;
  border: 2px solid var(--ok);
  color: var(--ok);
  font-weight: 800;
  text-decoration: none;
  padding: 11px;
  border-radius: 12px;
  font-size: 13.5px;
  transition: all .15s;
}
.wa-btn:hover { background: var(--ok); color: #fff; }
.alt-box { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink); }
.alt-box .meter { flex: 1; height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; }
.alt-box .meter i { display: block; height: 100%; background: var(--blue); }
.alt-box a { color: var(--blue); text-decoration: none; font-weight: 800; }
.note-box { font-size: 12px; color: var(--mute); line-height: 1.5; background: var(--card-sub); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-top: 12px; }

/* 3. Featured Brokers */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}
.broker-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}
.broker-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.broker-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: .04em;
}
.ribbon-green { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok); }
.ribbon-gold { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold); }
.ribbon-blue { background: var(--chip); color: var(--blue); border: 1px solid var(--blue); }

.b-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.b-logo {
  width: 52px;
  height: 52px;
  background: #0f1c33;
  color: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  flex: none;
}
.b-info h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.b-info .score-wrap { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--mute); margin-top: 3px; }
.b-info .score-star { color: var(--gold); }
.b-info .score-val { color: var(--ink); font-weight: 800; }

.b-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--card-sub);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
}
.spec-col { text-align: center; }
.spec-col .s-lbl { font-size: 11px; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 2px; }
.spec-col .s-val { font-size: 14px; font-weight: 800; color: var(--ink); }

.b-highlights { list-style: none; margin-bottom: 20px; flex: 1; padding: 0; }
.b-highlights li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.b-highlights li svg { color: var(--ok); flex: none; }

.b-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  padding: 11px 14px;
  border-radius: 10px;
  transition: background .15s;
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 14px;
  border-radius: 10px;
  transition: all .15s;
}
.btn-secondary:hover { background: var(--card-sub); border-color: var(--mute); }

/* 4. Table - Responsive wrapper prevent body overflow */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
  width: 100%;
}
table.comp-tbl { width: 100%; border-collapse: collapse; text-align: left; min-width: 760px; }
table.comp-tbl th {
  background: var(--card-sub);
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mute);
  border-bottom: 1px solid var(--line);
}
table.comp-tbl td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-light);
  font-size: 14px;
  vertical-align: middle;
  color: var(--ink);
}
table.comp-tbl tr:last-child td { border-bottom: none; }
table.comp-tbl tr:hover td { background: var(--chip); }
.tbl-broker { display: flex; align-items: center; gap: 12px; }
.tbl-logo { width: 38px; height: 38px; background: #0f1c33; color: #fff; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.tbl-badge-reg { display: inline-flex; align-items: center; gap: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; background: var(--card-sub); border: 1px solid var(--line); padding: 3px 7px; border-radius: 6px; }

/* 5. Countries */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  width: 100%;
}
.geo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.geo-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-md); }
.geo-flag { font-size: 32px; line-height: 1; flex: none; }
.geo-info h4 { font-size: 16px; font-weight: 800; margin-bottom: 3px; color: var(--ink); }
.geo-info p { font-size: 12px; color: var(--mute); margin: 0; }

/* 6. Cashback */
.cashback-box {
  background: linear-gradient(135deg, #09152b 0%, #11264c 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  width: 100%;
}
.cashback-box h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; color: #fff; }
.cashback-box p { color: #cbd5e1; font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.rebate-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.tier-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px;
}
.tier-item .t-broker { font-size: 12.5px; font-weight: 700; color: var(--cyan); text-transform: uppercase; }
.tier-item .t-rate { font-size: 20px; font-weight: 800; color: #fff; margin: 4px 0; }
.tier-item .t-desc { font-size: 11px; color: #94a3b8; }

/* 7. Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform .2s, border-color .2s;
  width: 100%;
}
.tool-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--chip);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.tool-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.tool-card p { font-size: 13px; color: var(--mute); line-height: 1.5; margin-bottom: 16px; }
.tool-card a { font-size: 13px; font-weight: 800; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

.calc-demo {
  background: var(--card-sub);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-top: 28px;
  width: 100%;
}
.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) 120px 140px;
  gap: 14px;
  align-items: end;
  width: 100%;
}
.calc-form .f-group label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.calc-form .f-group select, .calc-form .f-group input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.calc-res-box {
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.calc-res-box small { display: block; font-size: 10px; text-transform: uppercase; font-weight: 700; opacity: 0.85; }
.calc-res-box b { font-size: 18px; font-family: 'JetBrains Mono', monospace; }

/* 8. Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}
.rev-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.rev-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rev-date { font-size: 12px; color: var(--mute); font-weight: 600; }
.rev-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.rev-card p { font-size: 13.5px; color: var(--mute); line-height: 1.55; margin-bottom: 18px; flex: 1; }
.rev-card a.read-more { font-size: 13px; font-weight: 800; color: var(--blue); text-decoration: none; }

/* 9. Guides */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
}
.edu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.edu-thumb { height: 130px; background: linear-gradient(135deg, #10213b, #1d355e); position: relative; padding: 18px; display: flex; align-items: flex-end; }
.edu-thumb span { background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.edu-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.edu-body h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.edu-body p { font-size: 13px; color: var(--mute); line-height: 1.5; margin-bottom: 14px; flex: 1; }
.edu-body a { font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; }

/* 10. Safety Check */
.safety-sec {
  background: var(--card-sub);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  width: 100%;
}
.ck-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); width: 100%; }
.prog-bar { height: 8px; background: var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 18px; }
.prog-bar i { display: block; height: 100%; width: 0%; background: var(--ok); transition: width .3s ease; }
.ck-list label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  color: var(--ink);
}
.ck-list label:last-child { border-bottom: none; }
.ck-list input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ok); flex: none; cursor: pointer; }
#ck-count { font-size: 13px; font-weight: 700; color: var(--mute); margin-top: 14px; }

/* Footer */
footer.site-footer {
  background: #091222;
  color: #94a3b8;
  padding: 60px 0 30px;
  font-size: 13px;
  border-top: 1px solid #1a2a44;
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
  width: 100%;
}
.footer-col h5, .footer-widget-item h5 { color: #fff; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col ul, .footer-widget-item ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li, .footer-widget-item ul li { margin-bottom: 10px; }
.footer-col ul a, .footer-widget-item ul a { color: #94a3b8; text-decoration: none; transition: color .2s; }
.footer-col ul a:hover, .footer-widget-item ul a:hover { color: #fff; }
.footer-disc {
  border-top: 1px solid #1a2a44;
  padding-top: 24px;
  font-size: 11.5px;
  line-height: 1.65;
  color: #64748b;
}

#sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--card);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
  transform: translateY(115%);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid var(--line);
}
#sticky-cta.show { transform: translateY(0); }

.wp-content-page { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }
.wp-content-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 24px; }
.wp-content-page p { margin-bottom: 16px; font-size: 16px; color: var(--ink-soft); line-height: 1.7; }

/* RESPONSIVE MEDIA QUERIES (FIXING MOBILE HORIZONTAL SCROLL) */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cashback-box { grid-template-columns: 1fr; gap: 28px; }
  .safety-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .header-search-wrap { max-width: 200px; }
}

@media (max-width: 768px) {
  .section-pad { padding: var(--ffb-section-pad-m, 50px) 0; }
  .calc-form { grid-template-columns: 1fr; gap: 12px; }
  .rebate-tiers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .header-search-wrap { display: none; }
  .opts { grid-template-columns: 1fr; }
  .btn-nav { font-size: 12px; padding: 7px 12px; }
  .brand { font-size: 16px; }
}

@media (min-width: 993px) {
  #sticky-cta { display: none !important; }
}

/* ==========================================================
   MENU DROPDOWNS (click on arrow to open sub-menu)
   Desktop + Mobile drawer
   ========================================================== */
.nav-links li.menu-item-has-children { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.nav-links .sub-menu-toggle,
.mobile-nav-drawer .sub-menu-toggle {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.sub-menu-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.sub-menu-toggle:hover { color: #fff; }
li.submenu-open > .sub-menu-toggle svg { transform: rotate(180deg); }

/* Hide sub-menus by default */
.nav-links .sub-menu,
.mobile-nav-drawer .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Desktop dropdown panel */
.nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  background: #0b1424;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--blue);
  border-radius: 0 0 12px 12px;
  padding: 8px 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  z-index: 1100;
}
.nav-links li.submenu-open > .sub-menu { display: block; }
.nav-links .sub-menu li { display: block; width: 100%; }
.nav-links .sub-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  white-space: nowrap;
  font-size: 13px;
}
.nav-links .sub-menu a:hover { background: rgba(255,255,255,0.06); }
.nav-links .sub-menu img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* Mobile drawer accordion */
.mobile-nav-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav-drawer li { position: relative; }
.mobile-nav-drawer li.menu-item-has-children > a { display: block; padding-right: 44px; }
.mobile-nav-drawer li.menu-item-has-children > .sub-menu-toggle {
  position: absolute;
  top: 4px;
  right: 0;
  padding: 10px;
}
.mobile-nav-drawer li.submenu-open > .sub-menu {
  display: block;
  padding-left: 14px;
  border-left: 2px solid var(--blue);
  margin: 4px 0 8px;
}
.mobile-nav-drawer .sub-menu a { font-size: 14px; font-weight: 600; }
.mobile-nav-drawer { max-height: calc(100vh - 74px); overflow-y: auto; }

/* Keep desktop dropdowns inside the screen (last items open towards left) */
.nav-links .sub-menu { max-width: calc(100vw - 24px); }
.nav-links > li.menu-item-has-children:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }

/* ==========================================================
   v3.6 — Customizer-driven layout components
   ========================================================== */

/* Content + sidebar layout */
.ffb-layout { display: block; }
.ffb-layout--has-sidebar { display: grid; gap: var(--ffb-gap, 40px); grid-template-columns: minmax(0, 1fr) var(--ffb-sidebar, 320px); align-items: start; }
.ffb-layout--sidebar-left { grid-template-columns: var(--ffb-sidebar, 320px) minmax(0, 1fr); }
.ffb-layout--sidebar-left .ffb-sidebar { order: -1; }
.ffb-layout--stretch { max-width: 100%; }
.ffb-main { min-width: 0; }
.ffb-sidebar { position: sticky; top: calc(var(--ffb-header-h, 74px) + 20px); }
.ffb-widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px; }
.ffb-widget-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.ffb-widget ul { list-style: none; }
.ffb-widget li { padding: 6px 0; border-bottom: 1px solid var(--line-light); font-size: 14px; }
.ffb-widget li:last-child { border-bottom: none; }
.ffb-widget a { color: var(--ink-soft); text-decoration: none; }
.ffb-widget a:hover { color: var(--blue); }
.ffb-widget input[type=search] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-sub); color: var(--ink); font-family: inherit; }

/* Single entries */
.ffb-entry-header { margin-bottom: 16px; }
.ffb-entry-header > :first-child { margin-top: 0; }
.ffb-entry > :first-child { margin-top: 0; }
.ffb-entry-title { font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 10px; color: var(--ink); line-height: 1.2; }
.ffb-dot { opacity: .6; }
.ffb-featured { margin: 0 0 28px; }
.ffb-featured img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.entry-content { line-height: 1.8; color: var(--ink-soft); }
.entry-content > * + * { margin-top: 1.1em; }
/* no extra gap above the first block (heading, image, group...) */
.entry-content > :first-child,
.entry-content > h1:first-child, .entry-content > h2:first-child, .entry-content > h3:first-child, .entry-content > h4:first-child { margin-top: 0; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); line-height: 1.25; margin-top: 1.6em; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; }
.ffb-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.ffb-tags a { background: var(--chip); color: var(--blue); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; text-decoration: none; }
.post-navigation { margin-top: 32px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 16px; }
.post-navigation a { color: var(--ink); font-weight: 700; text-decoration: none; }
.ffb-related { margin-top: 40px; }
.ffb-related h3 { margin-bottom: 16px; }
.ffb-breadcrumbs { font-size: 13px; color: var(--mute); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.ffb-breadcrumbs a { color: var(--mute); text-decoration: none; }
.ffb-sep { opacity: .6; }

/* Blog / archive cards */
.ffb-archive-header { margin-bottom: 28px; }
.ffb-posts { display: grid; gap: 24px; }
.ffb-posts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ffb-posts--list { grid-template-columns: 1fr; }
.ffb-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.ffb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ffb-posts--list .ffb-card { flex-direction: row; }
.ffb-posts--list .ffb-card-thumb { flex: 0 0 280px; }
.ffb-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/9; }
.ffb-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ffb-card-title { font-size: 19px; line-height: 1.3; }
.ffb-card-title a { color: var(--ink); text-decoration: none; }
.ffb-card-title a:hover { color: var(--blue); }
.ffb-card-excerpt { color: var(--mute); font-size: 14.5px; line-height: 1.6; }
.ffb-readmore { color: var(--blue); font-weight: 700; font-size: 14px; text-decoration: none; margin-top: auto; }
.navigation.pagination { margin-top: 32px; }
.navigation.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; background: var(--card); }
.page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Footer extras */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-social a { font-size: 12px; font-weight: 700; padding: 5px 11px; border: 1px solid #1a2a44; border-radius: 99px; color: inherit; text-decoration: none; transition: color .2s, border-color .2s; }
.footer-social a:hover { border-color: currentColor; }
.footer-copy { margin-top: 14px; font-size: 12px; }
.footer-bottom-menu { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; padding: 0; }
.footer-bottom-menu a { color: inherit; text-decoration: none; }
.footer-bottom-menu a:hover { text-decoration: underline; }

/* Back to top */
#ffb-back-top { position: fixed; right: 20px; bottom: 24px; z-index: 98; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--blue); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
#ffb-back-top.show { opacity: 1; visibility: visible; transform: none; }
#ffb-back-top:hover { background: var(--blue-hover); }

@media (max-width: 992px) {
  .ffb-layout--has-sidebar, .ffb-layout--sidebar-left { grid-template-columns: 1fr; }
  .ffb-layout--sidebar-left .ffb-sidebar { order: 0; }
  .ffb-sidebar { position: static; }
}
@media (max-width: 768px) {
  .ffb-posts--grid { grid-template-columns: 1fr !important; }
  .ffb-posts--list .ffb-card { flex-direction: column; }
  .ffb-posts--list .ffb-card-thumb { flex: none; }
  #ffb-back-top { bottom: 84px; }
}

/* ---- Comments (form, list) ---- */
.comments-area, #respond { margin-top: 40px; }
.comment-reply-title, .comments-title { font-size: 22px; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--mute); margin-bottom: 16px; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); font-family: inherit; font-size: 15px; outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form .comment-form-cookies-consent, .comment-form p:has(> input[type=checkbox]) { display: flex; gap: 8px; align-items: center; }
.comment-form .comment-form-cookies-consent label, .comment-form p:has(> input[type=checkbox]) label { display: inline; margin: 0; font-weight: 500; font-size: 13.5px; color: var(--ink-soft); }
.comment-form input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); }
.comment-form .form-submit input[type=submit], .comment-form .submit {
  background: var(--blue); color: #fff; border: none; padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; transition: background .2s;
}
.comment-form .form-submit input[type=submit]:hover { background: var(--blue-hover); }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .comment-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 14px; }
.comment-list .children { list-style: none; margin-left: 24px; }
.comment-author .avatar { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.comment-metadata, .comment-metadata a { font-size: 12.5px; color: var(--mute); text-decoration: none; }

/* Post navigation + pagination: undo header-menu styles that share the .nav-links class */
.post-navigation .nav-links, .pagination .nav-links { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-navigation .nav-links a { color: var(--ink); font-size: 15px; font-weight: 700; white-space: normal; text-decoration: none; }
.post-navigation .nav-links a:hover { color: var(--blue); }
.pagination .nav-links { justify-content: flex-start; }
.pagination .nav-links a { color: var(--ink); font-size: 14px; white-space: normal; }
.pagination .nav-links a:hover { color: var(--blue); }
.pagination .nav-links .current { color: #fff; }
