/*
Theme Name: Trade Finverse
Theme URI: https://tradefinverse.com
Author: Trade Finverse Team
Author URI: https://tradefinverse.com
Description: Standalone, production-ready WordPress theme converted from Trade Finverse. High-performance, mobile-first broker reviews, comparisons, and financial journal platform with dynamic custom post types, interactive directory, and clean vanilla CSS/JS without any Node.js runtime or build steps.
Version: 1.1.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tradefinverse
Tags: financial, blog, two-columns, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (DESIGN SYSTEM TOKENS)
   ========================================================================== */
:root {
  /* Radius Tokens */
  --radius-xs: 0.125rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Color Palette - OKLCH with Hex/RGB Fallbacks */
  --navy: #123826;
  --navy: oklch(0.32 0.08 160);
  --navy-rgb: 18, 56, 38;

  --navy-foreground: #ffffff;
  --navy-foreground: oklch(0.99 0 0);

  --background: #f8faf8;
  --background: oklch(0.982 0.003 158);
  --background-rgb: 248, 250, 248;

  --surface: #ffffff;
  --surface: oklch(1 0 0);

  --foreground: #162a20;
  --foreground: oklch(0.23 0.045 160);
  --foreground-rgb: 22, 42, 32;

  --card: #ffffff;
  --card: oklch(1 0 0);
  --card-foreground: #162a20;
  --card-foreground: oklch(0.23 0.045 160);

  --popover: #ffffff;
  --popover: oklch(1 0 0);
  --popover-foreground: #162a20;
  --popover-foreground: oklch(0.23 0.045 160);

  --primary: #23b064;
  --primary: oklch(0.78 0.19 157);
  --primary-rgb: 35, 176, 100;
  --primary-hover: #1ca058;

  --primary-foreground: #0d2417;
  --primary-foreground: oklch(0.2 0.05 160);

  --secondary: #eef4f0;
  --secondary: oklch(0.95 0.015 158);
  --secondary-foreground: #123826;
  --secondary-foreground: oklch(0.32 0.08 160);

  --muted: #f1f5f2;
  --muted: oklch(0.955 0.006 158);
  --muted-foreground: #5b6b62;
  --muted-foreground: oklch(0.49 0.03 158);

  --accent: #e4f6eb;
  --accent: oklch(0.95 0.04 155);
  --accent-foreground: #123826;
  --accent-foreground: oklch(0.32 0.08 160);

  --positive: #23b064;
  --positive: oklch(0.78 0.19 157);
  --positive-text: #15733f;
  --positive-text: oklch(0.45 0.12 152);
  --positive-soft: #e6f9ed;
  --positive-soft: oklch(0.95 0.04 152);

  --destructive: #dc2626;
  --destructive: oklch(0.55 0.21 27);
  --destructive-foreground: #ffffff;

  --border: #e2e8e4;
  --border: oklch(0.91 0.01 158);

  --input: #d9e2db;
  --input: oklch(0.89 0.012 158);

  --ring: #23b064;
  --ring: oklch(0.78 0.19 157);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(18, 56, 38, 0.05);
  --shadow: 0 1px 3px 0 rgba(18, 56, 38, 0.1), 0 1px 2px -1px rgba(18, 56, 38, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(18, 56, 38, 0.08), 0 2px 4px -2px rgba(18, 56, 38, 0.06);
  --shadow-card: 0 1px 2px rgba(18, 56, 38, 0.06), 0 8px 24px -12px rgba(18, 56, 38, 0.18);
  --shadow-lg: 0 10px 15px -3px rgba(18, 56, 38, 0.1), 0 4px 6px -4px rgba(18, 56, 38, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(18, 56, 38, 0.12), 0 8px 10px -6px rgba(18, 56, 38, 0.08);

  /* Gradients */
  --gradient-hero: radial-gradient(1200px 400px at 85% -10%, rgba(35, 176, 100, 0.14), transparent 60%), linear-gradient(180deg, #ffffff, #f8faf8);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout Spacing */
  --container-max-width: 1440px;
  --header-height: 64px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#primary {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease, opacity 150ms ease, background-color 150ms ease;
}

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

ul, ol {
  list-style: none;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */
.container-site {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 1024px) {
  .container-site { padding-inline: 2.75rem; }
}

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

.bg-hero {
  background: var(--gradient-hero);
}

.bg-navy {
  background-color: var(--navy);
  color: var(--navy-foreground);
}

.text-navy {
  color: var(--navy);
}

.text-navy-foreground {
  color: var(--navy-foreground);
}

.text-white {
  color: #ffffff !important;
}

.text-inherit {
  color: inherit !important;
}

.bg-surface {
  background-color: var(--surface);
}

.bg-muted {
  background-color: var(--muted);
}

.bg-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

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

.text-positive {
  color: var(--positive);
}

.text-positive-text {
  color: var(--positive-text);
}

.bg-positive-soft {
  background-color: var(--positive-soft);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.border-navy-15 {
  border-color: rgba(255, 255, 255, 0.15);
}

.bg-navy-5 {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Inline Link */
.link-inline {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  border-radius: 2px;
  transition: color 150ms ease;
}
.link-inline:hover, .link-inline:focus-visible {
  color: var(--navy);
}
.link-inline:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ==========================================================================
   BUTTONS (100% Lovable & shadcn/ui Spec)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-md, 6px);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.25rem; /* h-9: 36px */
  padding: 0 1rem; /* px-4 */
  cursor: pointer;
  border: 1px solid transparent;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  text-decoration: none;
  line-height: 1;
}
.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}
.btn:focus-visible {
  outline: 1px solid var(--ring);
  outline-offset: 1px;
}
.btn:disabled,
.btn[disabled] {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary (Default) Variant: bg-primary text-primary-foreground shadow hover:bg-primary/90 */
.btn-primary,
.btn-default {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary:hover,
.btn-default:hover {
  background-color: #1ca058; /* primary/90 */
  color: var(--primary-foreground);
  transform: none;
}

/* Outline Variant: border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground */
.btn-outline {
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-weight: 500;
}
.btn-outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--input);
}

/* Secondary Variant: bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80 */
.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-weight: 500;
  border: 1px solid transparent;
}
.btn-secondary:hover {
  background-color: rgba(226, 232, 240, 0.8);
  color: var(--secondary-foreground);
}

/* Ghost Variant: hover:bg-accent hover:text-accent-foreground */
.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--foreground);
  font-weight: 500;
}
.btn-ghost:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

/* Link Variant: text-primary underline-offset-4 hover:underline */
.btn-link {
  background-color: transparent;
  border-color: transparent;
  color: var(--primary);
  height: auto;
  padding: 0;
  font-weight: 500;
  text-underline-offset: 4px;
}
.btn-link:hover {
  text-decoration: underline;
  color: var(--primary);
  background: transparent;
}

/* Button Sizes */
.btn-sm {
  height: 2rem; /* h-8: 32px */
  padding: 0 0.75rem; /* px-3 */
  font-size: 0.75rem; /* text-xs */
  border-radius: var(--radius-md, 6px);
}
.btn-lg {
  height: 2.5rem; /* h-10: 40px */
  padding: 0 2rem; /* px-8 */
  font-size: 0.875rem;
  border-radius: var(--radius-md, 6px);
}
.btn-xl,
.btn-hero {
  height: 3rem; /* h-12: 48px */
  padding: 0 1.75rem; /* px-7 */
  font-size: 1rem; /* text-base */
  font-weight: 600;
  border-radius: var(--radius-md, 6px);
}
.btn-icon {
  width: 2.25rem; /* h-9 w-9 */
  height: 2.25rem;
  padding: 0;
  border-radius: var(--radius-md, 6px);
}
.btn-pill {
  border-radius: var(--radius-full, 9999px) !important;
}

/* ==========================================================================
   FORMS & INPUTS (100% Lovable & shadcn/ui Spec)
   ========================================================================== */
.form-input, .form-textarea, .form-select {
  width: 100%;
  border-radius: var(--radius-md, 6px);
  border: 1px solid var(--input);
  background-color: var(--surface);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  height: 2.25rem; /* h-9 */
}
.form-textarea {
  height: auto;
  min-height: 100px;
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.8;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 1px var(--ring);
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}
.form-group {
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.trust-bar {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(35, 176, 100, 0.05), var(--surface) 50%, rgba(35, 176, 100, 0.1));
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.75rem; /* py-3: 12px */
  min-height: 48px;
}
.trust-bar-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .trust-bar-heading {
    font-size: 1rem;
  }
}
.trust-bar-heading svg {
  width: 1.25rem !important; /* h-5: 20px */
  height: 1.25rem !important;
  flex-shrink: 0;
  display: block;
}
.trust-bar-points {
  display: none;
  align-items: center;
  gap: 1.5rem; /* gap-6: 24px */
  font-size: 0.875rem;
  color: var(--foreground);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .trust-bar-points {
    display: inline-flex;
  }
}
.trust-bar-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
  white-space: nowrap;
}
.trust-bar-points li svg {
  width: 1rem !important; /* h-4: 16px */
  height: 1rem !important;
  flex-shrink: 0;
  display: block;
}
.trust-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--positive-text);
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: color 150ms ease;
}
.trust-bar-link:hover {
  color: var(--primary);
}
.trust-bar-link svg {
  width: 1rem !important; /* h-4: 16px */
  height: 1rem !important;
  flex-shrink: 0;
  display: block;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 200ms ease;
}
/* WordPress Admin Bar Compatibility */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
.site-header.is-scrolled {
  box-shadow: 0 4px 12px rgba(18, 56, 38, 0.05);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: auto;
  flex-shrink: 0;
}
.site-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Desktop Nav Menu */
.desktop-nav {
  display: none;
}
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
  }
}
.desktop-nav .menu-primary-navigation-container,
.desktop-nav .nav-menu-container {
  display: flex;
  align-items: center;
}
.desktop-nav ul,
.desktop-nav .nav-menu,
.desktop-nav ul.menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.desktop-nav li,
.desktop-nav .menu-item,
.nav-menu > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.desktop-nav > ul > li > a,
.desktop-nav .menu-primary-navigation-container > ul > li > a,
.desktop-nav .nav-menu > li > a,
.desktop-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.desktop-nav > ul > li > a:hover,
.desktop-nav .menu-primary-navigation-container > ul > li > a:hover,
.desktop-nav .nav-menu > li > a:hover,
.desktop-nav .nav-link:hover,
.desktop-nav .nav-link:focus-visible {
  background-color: var(--accent);
  color: var(--navy);
}
.desktop-nav svg.chevron {
  width: 13px;
  height: 13px;
  color: #64748b;
  transition: transform 150ms ease;
  flex-shrink: 0;
}
.desktop-nav li:hover > a svg.chevron,
.desktop-nav li:focus-within > a svg.chevron {
  transform: rotate(180deg);
  color: var(--navy);
}

/* Fallback chevron icon for native WordPress menu items */
.desktop-nav li.menu-item-has-children > a:not(:has(svg.chevron))::after {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 3px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform 150ms ease;
}
.desktop-nav li.menu-item-has-children:hover > a:not(:has(svg.chevron))::after {
  transform: rotate(180deg);
}

/* Submenu dropdown: Absolute positioned, hidden by default */
.desktop-nav .sub-menu,
.desktop-nav .nav-dropdown,
.nav-menu .sub-menu,
.nav-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 250px !important;
  padding: 0.5rem !important;
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 10px 25px -5px rgba(18, 56, 38, 0.12), 0 8px 10px -6px rgba(18, 56, 38, 0.08) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease !important;
  z-index: 100 !important;
  list-style: none !important;
  margin: 0 !important;
  pointer-events: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
}
.desktop-nav li:hover > .sub-menu,
.desktop-nav li:focus-within > .sub-menu,
.desktop-nav li:hover > .nav-dropdown,
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu,
.nav-menu > li:hover > .nav-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
.desktop-nav .sub-menu li,
.nav-menu .sub-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
.desktop-nav .sub-menu a,
.desktop-nav .nav-dropdown a,
.nav-menu .sub-menu a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--foreground) !important;
  border-radius: var(--radius-sm) !important;
  text-decoration: none !important;
  transition: background-color 150ms ease, color 150ms ease !important;
  width: 100% !important;
  white-space: nowrap !important;
}
.desktop-nav .sub-menu a:hover,
.desktop-nav .nav-dropdown a:hover,
.nav-menu .sub-menu a:hover {
  background-color: var(--accent) !important;
  color: var(--navy) !important;
}

/* Header Search Form */
.header-search {
  position: relative;
  margin-left: auto;
  display: none;
  width: 250px;
}
@media (min-width: 1100px) {
  .header-search { display: block; }
}
.header-search input {
  padding-left: 2.25rem !important;
  padding-right: 0.75rem !important;
  height: 2.375rem !important;
  min-height: 38px !important;
  font-size: 0.875rem !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  background-color: var(--surface) !important;
  color: var(--foreground) !important;
  box-shadow: none !important;
  width: 100% !important;
}
.header-search input:focus {
  outline: none !important;
  border-color: var(--ring) !important;
  box-shadow: 0 0 0 2px rgba(35, 176, 100, 0.2) !important;
}
.header-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

/* Header Right Actions */
.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .header-actions {
    display: flex;
  }
}
.header-signin-btn {
  color: var(--foreground) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  height: 2rem !important; /* h-8: 32px */
  padding: 0 0.75rem !important;
  background: transparent !important;
  border-radius: var(--radius-md, 6px) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
  transition: color 150ms ease, background-color 150ms ease !important;
}
.header-signin-btn:hover {
  color: var(--accent-foreground) !important;
  background-color: var(--accent) !important;
}
.header-cta-btn {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  font-weight: 600 !important;
  height: 2rem !important; /* h-8: 32px */
  padding: 0 0.75rem !important;
  font-size: 0.875rem !important;
  border-radius: var(--radius-md, 6px) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
  transition: background-color 150ms ease !important;
}
.header-cta-btn:hover {
  background-color: #1ca058 !important;
  color: var(--primary-foreground) !important;
  transform: none !important;
}

.header-mobile-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
@media (min-width: 1024px) {
  .header-mobile-bar { display: none; }
}
}

/* Mobile Nav Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 56, 38, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms;
}
.mobile-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 88vw;
  max-width: 380px;
  background-color: var(--surface);
  box-shadow: -4px 0 24px rgba(18, 56, 38, 0.15);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.is-open {
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}
.mobile-drawer-body {
  padding: 1.25rem 1rem;
}
.mobile-nav-group {
  margin-bottom: 0.75rem;
}
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.mobile-nav-toggle:hover {
  background-color: var(--accent);
}
.mobile-nav-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 200ms ease;
}
.mobile-nav-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.mobile-nav-sub {
  display: none;
  padding-left: 0.75rem;
  margin-top: 0.25rem;
}
.mobile-nav-sub.is-open {
  display: block;
}
.mobile-nav-sub a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--foreground);
  border-radius: var(--radius-sm);
}
.mobile-nav-sub a:hover {
  background-color: var(--muted);
  color: var(--navy);
}

/* ==========================================================================
   HOMEPAGE SECTIONS
   ========================================================================== */
/* Section Header helper */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
}
.section-kicker.kicker-positive {
  color: var(--positive);
}
.section-title {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
}
.section-title.text-white {
  color: var(--navy-foreground);
}
.section-head-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.section-head-link:hover {
  color: var(--navy);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  color: var(--navy-foreground);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(18, 56, 38, 0.92) 55%, rgba(18, 56, 38, 0.45) 100%);
}
.hero-content {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 7.5rem);
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--positive);
}
.hero-title {
  margin-top: 1.25rem;
  max-width: 50rem;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--navy-foreground);
}
.hero-description {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.95;
}
.hero-highlight-link {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-decoration-color: #23b064 !important;
  text-underline-offset: 4px !important;
  text-decoration-thickness: 2px !important;
  cursor: pointer !important;
  transition: color 200ms ease, text-decoration-color 200ms ease, text-shadow 200ms ease !important;
  display: inline !important;
}
.hero-highlight-link:hover,
.hero-highlight-link:focus {
  color: #23b064 !important;
  text-decoration-color: #4ade80 !important;
  text-shadow: 0 0 12px rgba(35, 176, 100, 0.6) !important;
}
.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-actions .btn {
  height: 3rem !important;
  min-height: 3rem !important;
  padding: 0 1.75rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  border-radius: var(--radius-md, 6px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  box-sizing: border-box !important;
}

.hero-actions .hero-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-actions .hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
  color: #ffffff !important;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* Stat Counters */
.hero-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 48rem;
}
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}
.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background-color: rgba(35, 176, 100, 0.2);
  color: var(--positive);
  flex-shrink: 0;
}
.stat-icon svg {
  width: 22px;
  height: 22px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}
.stat-label {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* Featured Section Grid */
.featured-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }
}

/* Post Cards */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(35, 176, 100, 0.45);
  box-shadow: var(--shadow-xl);
}
.article-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background-color: var(--muted);
}
.article-card.is-lead .article-card-media {
  aspect-ratio: 16 / 9;
}
.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.article-card:hover .article-card-media img {
  transform: scale(1.05);
}
.article-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border-radius: var(--radius-full);
  background-color: rgba(18, 56, 38, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  z-index: 2;
}
.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.article-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
  font-size: 1.15rem;
  transition: color 150ms ease;
}
.article-card-title a {
  color: inherit;
  text-decoration: none;
}
.article-card.is-lead .article-card-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}
.article-card:hover .article-card-title,
.article-card-title a:hover {
  color: var(--primary);
}
.article-card-excerpt {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  flex: 1;
}
.article-card-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.article-card-footer svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Numbered side picks list */
.featured-side-list {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1024px) {
  .featured-side-list {
    height: 100%;
  }
}
.featured-side-item {
  display: flex;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .featured-side-item {
    flex: 1 1 0%;
    min-height: 0;
  }
}
.featured-side-item:last-child {
  border-bottom: none;
}
.featured-side-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: background-color 150ms ease;
  width: 100%;
}
@media (min-width: 1024px) {
  .featured-side-link {
    padding: 1.35rem 1.75rem;
  }
}
.featured-side-link:hover {
  background-color: var(--accent);
}
.featured-side-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(35, 176, 100, 0.35);
  transition: color 150ms ease;
  flex-shrink: 0;
  width: 2.25rem;
}
.featured-side-link:hover .featured-side-num {
  color: var(--primary);
}
.featured-side-text {
  flex: 1;
  min-width: 0;
}
.featured-side-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  transition: color 150ms ease;
}
.featured-side-link:hover .featured-side-title {
  color: var(--primary);
}
.featured-side-meta {
  margin-top: 0.35rem;
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

/* Topic Categories Grid */
.topic-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 640px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .topic-grid { grid-template-columns: repeat(4, 1fr); }
}
.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
.topic-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.topic-card:hover img {
  transform: scale(1.08);
}
.topic-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--navy) 0%, rgba(18, 56, 38, 0.65) 55%, transparent 100%);
}
.topic-count {
  position: relative;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--positive);
}
.topic-name {
  position: relative;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}
.topic-blurb {
  position: relative;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* Home About Section */
.about-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.about-media-box {
  position: relative;
}
.about-media-box img {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.about-badge {
  position: absolute;
  bottom: -1.25rem;
  right: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.about-badge-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}
.about-badge-text {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}
.checklist {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.checklist-item svg {
  width: 20px;
  height: 20px;
  color: var(--positive);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Why Choose Us Grid */
.why-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr 1.4fr;
  }
}
.features-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  background-color: var(--navy);
  color: var(--navy-foreground);
}
.feature-icon-box svg {
  width: 20px;
  height: 20px;
}
.feature-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.feature-desc {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Research Process Section */
.research-section {
  background-color: var(--navy);
  color: var(--navy-foreground);
  padding-block: clamp(3.5rem, 6vw, 6rem);
}
.research-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .research-grid { grid-template-columns: repeat(3, 1fr); }
}
.research-step-card {
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.75rem;
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--positive);
  line-height: 1;
}
.step-title {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}
.step-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.5;
}
.research-links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
}
.research-links a {
  font-weight: 600;
  color: var(--positive);
}
.research-links a:hover {
  text-decoration: underline;
}

/* Community CTA Glowing Banner */
.community-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background-color: var(--navy);
  color: var(--navy-foreground);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-card);
}
.cta-glow {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background-color: rgba(35, 176, 100, 0.25);
  filter: blur(48px);
  pointer-events: none;
}
.cta-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--primary);
}
.community-cta-inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .community-cta-inner {
    grid-template-columns: 1fr auto;
  }
}
.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
}
.cta-text {
  margin-top: 0.5rem;
  max-width: 36rem;
  opacity: 0.8;
  font-size: 1rem;
}

/* ==========================================================================
   BROKER DIRECTORY COMPONENT & TABLE
   ========================================================================== */
.broker-directory-wrapper {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .broker-directory-wrapper {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}
.broker-filter-sidebar {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  align-self: start;
}
@media (min-width: 1024px) {
  .broker-filter-sidebar {
    position: sticky;
    top: 5.5rem;
  }
}
.filter-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.filter-group {
  margin-bottom: 1.5rem;
}
.filter-group:last-child {
  margin-bottom: 0;
}
.filter-group-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.market-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.market-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.75rem; /* text-xs: 12px */
  font-weight: 500;
  height: 2rem; /* h-8: 32px */
  padding: 0 0.75rem; /* px-3 */
  cursor: pointer;
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
  text-decoration: none;
  line-height: 1;
}
.market-pill:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--input);
}
.market-pill.is-active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.market-pill.is-active:hover {
  background-color: #1ca058;
  color: var(--primary-foreground);
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Active Filter Chips & Clear All */
.active-chips-container {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--foreground);
  cursor: pointer;
  transition: all 150ms ease;
  line-height: 1;
}
.active-filter-chip:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--input);
}
.active-filter-chip .chip-remove-x {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.6;
  margin-left: 0.125rem;
}
.active-filter-chip:hover .chip-remove-x {
  opacity: 1;
  color: var(--destructive);
}
.btn-clear-all {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 150ms ease;
}
.btn-clear-all:hover {
  color: var(--navy);
}

/* Broker Table Container */
.broker-table-card {
  position: relative;
  overflow-x: auto;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background-color: var(--surface);
  box-shadow: var(--shadow-card);
}
.broker-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  min-width: 640px;
}
.broker-table thead {
  background-color: var(--navy);
  color: var(--navy-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.broker-table th {
  padding: 0.875rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--navy);
  color: var(--navy-foreground);
}
.broker-table td {
  padding: 1rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.broker-table tbody tr {
  transition: background-color 150ms ease;
}
.broker-table tbody tr:nth-child(even) {
  background-color: rgba(241, 245, 242, 0.35);
}
.broker-table tbody tr:hover {
  background-color: rgba(35, 176, 100, 0.05);
}
.broker-cell-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--navy);
}
.broker-cell-brand:hover {
  color: var(--primary);
}
.broker-badge-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--primary));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.tag-badge {
  display: inline-block;
  border-radius: var(--radius-full);
  background-color: rgba(35, 176, 100, 0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  margin: 0.125rem;
}
.tri-state-yes {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--positive-text);
  font-weight: 600;
}
.tri-state-no {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--destructive);
  font-weight: 600;
}
.tri-state-unknown {
  color: var(--muted-foreground);
  font-style: italic;
  font-size: 0.8125rem;
}

/* ==========================================================================
   BLOG ARCHIVE & CATEGORY PILLS (home.php / archive.php)
   ========================================================================== */
.blog-header {
  background-color: var(--navy);
  color: var(--navy-foreground);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.category-pills {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cat-pill {
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 150ms ease;
  text-decoration: none;
}
.cat-pill:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}
.cat-pill.is-active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

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

/* ==========================================================================
   SINGLE ARTICLE TEMPLATE (single.php)
   ========================================================================== */
.article-header {
  position: relative;
  background-color: var(--navy);
  color: #ffffff;
  overflow: hidden;
  padding-block: clamp(3.5rem, 6vw, 6rem);
}
.article-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.article-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--navy) 0%, rgba(18, 56, 38, 0.92) 60%, rgba(18, 56, 38, 0.7) 100%);
}
.article-header-content {
  position: relative;
  max-width: 52rem;
  color: #ffffff;
}

.article-header h1,
.article-header .article-title,
.article-header h1.text-white {
  color: #ffffff !important;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.article-header p,
.article-header .article-lead {
  color: rgba(255, 255, 255, 0.9) !important;
}

.article-header .article-meta,
.article-header .article-meta span {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Breadcrumbs in Article Header */
.article-header .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.article-header .breadcrumbs a {
  color: #34d399 !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms ease, opacity 150ms ease;
}
.article-header .breadcrumbs a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}
.article-header .breadcrumbs-sep {
  color: rgba(255, 255, 255, 0.45) !important;
  margin-inline: 0.15rem;
  opacity: 1;
}
.article-header .breadcrumbs span:last-child {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--positive);
  font-weight: 600;
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: var(--positive);
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs-sep {
  opacity: 0.6;
}

/* Single Social Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.share-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-right: 0.5rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--foreground);
  transition: all 150ms ease;
}
.share-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
}
.share-btn svg {
  width: 16px;
  height: 16px;
}

/* Article Typography */
.article-body-wrapper {
  max-width: 48rem;
  margin-inline: auto;
  padding-block: 3.5rem;
}
.disclaimer-box {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(35, 176, 100, 0.25);
  background-color: var(--accent);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--accent-foreground);
  margin-bottom: 2.5rem;
}
.article-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(22, 42, 32, 0.9);
}
.article-content p {
  margin-bottom: 1.5rem;
}
.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 800;
}
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.article-content ul, .article-content ol {
  margin-top: 1rem;
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  margin-bottom: 0.65rem;
}
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--navy);
}

/* Author Bio Card */
.author-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  margin-top: 3rem;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--muted);
  flex-shrink: 0;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}
.author-bio {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Prev / Next Post Nav */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .post-navigation { grid-template-columns: 1fr 1fr; }
}
.post-nav-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--surface);
  text-decoration: none;
  transition: all 150ms ease;
}
.post-nav-card:hover {
  border-color: var(--primary);
  background-color: var(--accent);
}
.post-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.post-nav-title {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

/* Comments Section */
.comments-area {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2rem;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.comment-body {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.comment-author {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}
.comment-metadata {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.comment-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--foreground);
}
.comment-reply-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
}
.comment-respond {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.comment-reply-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   FAQ ACCORDION (page-faq.php)
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 150ms ease;
}
.accordion-item.is-open {
  border-color: var(--primary);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease;
}
.accordion-header:hover {
  color: var(--primary);
}
.accordion-header svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 1rem;
}
.accordion-item.is-open .accordion-header svg {
  transform: rotate(180deg);
}
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.is-open .accordion-body {
  grid-template-rows: 1fr;
}
.accordion-content {
  overflow: hidden;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: auto;
  overflow: hidden;
  border-top: 4px solid var(--primary);
  background-color: var(--navy);
  color: var(--navy-foreground);
}
.footer-glow {
  position: absolute;
  top: -8rem;
  left: -8rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background-color: rgba(35, 176, 100, 0.15);
  filter: blur(64px);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.footer-logo img {
  height: 56px;
  width: auto;
}
.footer-tagline {
  font-size: 0.875rem;
  opacity: 0.8;
  max-width: 20rem;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
}
.footer-nav a {
  opacity: 0.8;
  transition: opacity 150ms ease, color 150ms ease;
}
.footer-nav a:hover {
  opacity: 1;
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 1.5rem;
  font-size: 0.8125rem;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .footer-bottom-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
.footer-disclaimers {
  max-width: 48rem;
  opacity: 0.8;
  line-height: 1.5;
}
.footer-disclaimers p {
  margin-bottom: 0.35rem;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  flex-shrink: 0;
}
.footer-legal-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.8;
}
.footer-legal-links a:hover {
  opacity: 1;
  color: var(--primary);
}

/* ==========================================================================
   PAGINATION (WordPress Numeric)
   ========================================================================== */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-md, 6px);
  border: 1px solid var(--input);
  background-color: var(--background);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.pagination .page-numbers:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--input);
}
.pagination .page-numbers.current {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--navy-foreground);
  font-weight: 600;
  pointer-events: none;
}

/* ==========================================================================
   ANIMATIONS & SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   LIVE MARKET RATES TICKER
   ========================================================================== */
.market-ticker-section {
  background: var(--surface);
  border-block: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.market-ticker-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
}

.market-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  height: 100%;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
}

.market-ticker-label .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23b064;
  box-shadow: 0 0 0 0 rgba(35, 176, 100, 0.7);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(35, 176, 100, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(35, 176, 100, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(35, 176, 100, 0);
  }
}

.market-ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.market-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-slide 38s linear infinite;
}

.market-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-quote-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  font-size: 0.8125rem;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}

.ticker-quote-item .quote-sym {
  font-weight: 700;
  color: var(--navy);
}

.ticker-quote-item .quote-val {
  font-weight: 600;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

.ticker-quote-item .quote-chg {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.ticker-quote-item .quote-chg.chg-up {
  color: #15803d;
  background: rgba(35, 176, 100, 0.12);
}

.ticker-quote-item .quote-chg.chg-down {
  color: #be123c;
  background: rgba(239, 68, 68, 0.12);
}

@media (max-width: 640px) {
  .market-ticker-wrap {
    height: 40px;
  }
  .market-ticker-label {
    padding: 0 0.75rem;
    font-size: 0.7rem;
  }
  .ticker-quote-item {
    padding: 0 0.875rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   RICH ARTICLE FORMATTING (TABLES, CALLOUTS, FAQS)
   ========================================================================== */
.article-callout {
  background: var(--positive-soft);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-block: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.table-responsive {
  margin-block: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
  min-width: 580px;
}

.data-table th {
  background: var(--muted);
  color: var(--navy);
  font-weight: 700;
  padding: 0.875rem 1.125rem;
  border-bottom: 2px solid var(--border);
  letter-spacing: 0.02em;
}

.data-table td {
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  line-height: 1.5;
}

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

.data-table tbody tr:hover {
  background: rgba(35, 176, 100, 0.04);
}

.article-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-content p {
  line-height: 1.75;
  font-size: 1.0625rem;
  color: #334155;
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin-block: 1.25rem;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #334155;
}

.article-content a.link-inline {
  color: #15803d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

.article-content a.link-inline:hover {
  color: #166534;
}

/* ==========================================================================
   TOP FOREX & CRYPTO BROKERS SECTION
   ========================================================================== */
.top-brokers-section {
  padding-block: clamp(4rem, 7vw, 6rem);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.top-brokers-columns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 991px) {
  .top-brokers-columns-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.top-brokers-col-card {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(15, 42, 33, 0.1);
  box-shadow: 0 10px 30px -5px rgba(15, 42, 33, 0.06), 0 0 1px rgba(15, 42, 33, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.top-brokers-col-card:hover {
  box-shadow: 0 16px 36px -6px rgba(15, 42, 33, 0.1), 0 0 1px rgba(15, 42, 33, 0.12);
}

.top-brokers-col-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.top-brokers-col-header.forex-header {
  background: linear-gradient(135deg, rgba(15, 42, 33, 0.03) 0%, rgba(35, 176, 100, 0.07) 100%);
}

.top-brokers-col-header.crypto-header {
  background: linear-gradient(135deg, rgba(15, 42, 33, 0.03) 0%, rgba(59, 130, 246, 0.07) 100%);
}

.top-brokers-col-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.col-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.forex-icon-box {
  background: #0f2a21;
  color: #23b064;
}

.crypto-icon-box {
  background: #0b1f3a;
  color: #60a5fa;
}

.top-brokers-col-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.2;
}

.top-brokers-col-desc {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.4;
}

.top-brokers-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(35, 176, 100, 0.12);
  color: #15803d;
  white-space: nowrap;
}

.top-brokers-list-container {
  display: flex;
  flex-direction: column;
}

.top-broker-row-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 150ms ease;
  position: relative;
}

.top-broker-row-item:last-child {
  border-bottom: none;
}

.top-broker-row-item:hover {
  background-color: #f8fafc;
}

.top-broker-row-item.is-featured-row {
  background: linear-gradient(90deg, rgba(35, 176, 100, 0.06) 0%, transparent 100%);
  border-left: 3px solid #23b064;
}

.top-broker-rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  background: #f1f5f9;
  color: #475569;
}

.top-broker-rank-badge.rank-1 {
  background: #23b064;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(35, 176, 100, 0.35);
}

.top-broker-rank-badge.rank-2 {
  background: #0f2a21;
  color: #ffffff;
}

.top-broker-rank-badge.rank-3 {
  background: #1e293b;
  color: #ffffff;
}

.top-broker-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.top-broker-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

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

.top-broker-name-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.top-broker-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.25;
}

.top-broker-pill-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(35, 176, 100, 0.12);
  color: #166534;
  white-space: nowrap;
}

.top-broker-pill-tag.crypto-tag {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.top-broker-meta-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.top-broker-badge-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.top-broker-dot {
  color: #cbd5e1;
}

.top-broker-rating-star {
  color: #d97706;
  font-weight: 600;
  white-space: nowrap;
}

.top-broker-action-cell {
  flex-shrink: 0;
}

.top-broker-cta-btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  min-width: 82px;
  text-align: center;
  justify-content: center;
}

.top-brokers-footer-note {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  max-width: 50rem;
  margin-inline: auto;
}

.top-brokers-footer-note svg {
  color: #23b064;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .top-broker-row-item {
    padding: 0.75rem 0.85rem;
    gap: 0.6rem;
  }
  .top-broker-badge-text {
    max-width: 110px;
  }
  .top-broker-cta-btn {
    min-width: 72px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}



