/*
Theme Name: Vauban Wealth Modern
Theme URI: https://vaubanwealth.com/
Author: Vauban Wealth Redesign
Description: Luxury WordPress theme for Vauban Wealth Management (RIA). Educational portfolio calculator with compliance disclosures, live market research center, consultation form with database logging, English-first with Spanish translation.
Version: 2.0.0
Text Domain: vauban-wealth
*/

/* ==========================================================================
   VAUBAN WEALTH MANAGEMENT - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Modern Luxury Dark Mode, Emerald & Champagne Gold Accents,
               Glassmorphism, High-Performance Micro-Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ============================================================
     VAUBAN BRAND PALETTE — anchored to real logo colors
     Teal  : #4e9baa  (V letter, WEALTH MANAGEMENT, teal frame)
     Charcoal: #2d3030 (AUBAN text, left bracket frame)
     Gold  : #c8a96e  (premium accent, warm complement to teal)
     ============================================================ */

  /* Backgrounds */
  --bg-dark:   #070d12;
  --bg-darker: #040a0f;
  --bg-card:   rgba(10, 22, 34, 0.75);
  --bg-card-hover: rgba(14, 32, 48, 0.88);
  --bg-glass:  rgba(255, 255, 255, 0.03);

  /* Brand teal (primary) */
  --accent-teal:       #4e9baa;
  --accent-teal-light: #6ab8c6;
  --accent-teal-dark:  #3a7a88;
  --accent-teal-glow:  rgba(78, 155, 170, 0.35);

  /* Keep --accent-emerald aliased to teal for legacy references */
  --accent-emerald:      #4e9baa;
  --accent-emerald-glow: rgba(78, 155, 170, 0.35);

  /* Gold accent (warm premium complement) */
  --accent-gold:          #c8a96e;
  --accent-gold-gradient: linear-gradient(135deg, #e8c98e 0%, #c8a96e 50%, #a0804a 100%);

  /* Borders */
  --border-glass:        rgba(255, 255, 255, 0.08);
  --border-glass-gold:   rgba(200, 169, 110, 0.25);
  --border-glass-emerald:rgba(78, 155, 170, 0.30);

  /* Text */
  --text-main:  #f0f6fa;
  --text-muted: #8fa8b8;
  --text-dim:   #5a7080;
  --text-gold:  #e8c98e;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Glows */
  --shadow-glow:      0 0 40px rgba(78, 155, 170, 0.22);
  --shadow-gold-glow: 0 0 35px rgba(200, 169, 110, 0.14);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(78, 155, 170, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(200, 169, 110, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 95%, rgba(78, 155, 170, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/*
 * Safety net for WordPress. A leftover stylesheet from a previously active
 * theme can declare `body { background:#fff; color:#555 }` at the same
 * specificity as the rule above and win purely on load order — which turns the
 * page white and hides every white heading. `html body` outranks bare `body`
 * whatever the order, so the page keeps its own ground.
 */
html body {
  background-color: var(--bg-dark);
  color: var(--text-main);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-gradient-gold {
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #7fccd8 0%, #4e9baa 50%, #3a7a88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-silver {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}


/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: opacity var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(78, 155, 170, 0.30));
  transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-teal-light) 0%, var(--accent-teal-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  font-family: var(--font-heading);
  box-shadow: 0 0 20px rgba(78, 155, 170, 0.45);
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-emerald);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  /* Keep the CTA at its natural width; the nav menu absorbs the squeeze. */
  flex-shrink: 0;
}

/* Language Switcher */
.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  /* Labels are short by design; wrapping them breaks the header bar height. */
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal-light) 0%, var(--accent-teal) 50%, var(--accent-teal-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 22px rgba(78, 155, 170, 0.38);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(78, 155, 170, 0.55);
  background: linear-gradient(135deg, #7fccd8 0%, var(--accent-teal-light) 50%, var(--accent-teal) 100%);
}

.btn-gold {
  background: var(--accent-gold-gradient);
  color: #0a1620;
  box-shadow: 0 4px 20px rgba(200, 169, 110, 0.32);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 169, 110, 0.50);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(243, 186, 47, 0.05);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Ticker Bar */
.ticker-wrap {
  width: 100%;
  background: rgba(4, 7, 14, 0.9);
  /* `border-y` is a Tailwind shorthand, not CSS — the ticker had no border. */
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
  padding: 0.65rem 0;
  margin-top: 85px;
  position: relative;
  z-index: 10;
}

.ticker {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: tickerSlide 35s linear infinite;
  width: max-content;
}

.ticker:hover {
  animation-play-state: paused;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ticker-symbol {
  font-weight: 700;
  color: var(--text-main);
}

.ticker-val {
  font-weight: 600;
}

.ticker-up {
  color: var(--accent-emerald);
}

.ticker-down {
  color: #ef4444;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.08;
  margin: 1.5rem 0 1.5rem;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  /* Two stats since compliance review removed the regulatory one. */
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Hero Visual Graphic */
.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glow);
}

.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--border-glass-gold);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 20;
}

.badge-top-right {
  top: -20px;
  right: -20px;
}

.badge-bottom-left {
  bottom: -20px;
  left: -20px;
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(243, 186, 47, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.3rem;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
}

.section-tag {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  display: block;
}

.section-title {
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Strategic Hub Section */
.hub-section {
  padding: 6rem 0;
  position: relative;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hub-visual-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glass-emerald);
}

.hub-visual-wrapper img,
.hub-visual-wrapper .hub-video {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

/*
 * An autoplaying loop is motion the visitor did not ask for. When the OS
 * signals a preference for reduced motion, hide the frames and let the
 * poster show through instead — same composition, no movement.
 */
@media (prefers-reduced-motion: reduce) {
  .hub-visual-wrapper .hub-video {
    visibility: hidden;
  }
  .hub-visual-wrapper {
    background-image: url('assets/images/skyline_poster.jpg');
    background-size: cover;
    background-position: center;
  }
}

.hub-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hub-feature-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

.hub-feature-item:hover {
  background: rgba(78, 155, 170, 0.06);
  border-color: rgba(78, 155, 170, 0.32);
}

.hub-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(78, 155, 170, 0.14);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Services Section */
.services-section {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(243, 186, 47, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
}

.service-title {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-list li i {
  color: var(--accent-emerald);
}

/* Interactive Wealth Allocation Simulator */
.simulator-section {
  padding: 6rem 0;
  background: rgba(4, 7, 14, 0.6);
  position: relative;
}

.simulator-card {
  background: rgba(13, 19, 34, 0.85);
  border: 1px solid var(--border-glass-gold);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-gold-glow);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/*
 * Grid items default to min-width:auto, which refuses to shrink below the
 * content's intrinsic width. The three profile buttons are wider than a narrow
 * track, so without this the column blew past the viewport and the whole page
 * scrolled sideways on a phone.
 */
.simulator-grid > * {
  min-width: 0;
}

.control-group {
  margin-bottom: 2rem;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(243, 186, 47, 0.6);
}

.risk-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.risk-btn {
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

/* Hover is a hint; selection is a state. They must not look the same. */
.risk-btn:hover {
  background: rgba(78, 155, 170, 0.10);
  border-color: rgba(78, 155, 170, 0.5);
  color: var(--text-main);
}

.risk-btn.active {
  background: rgba(78, 155, 170, 0.22);
  border-color: var(--accent-teal);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--accent-teal), 0 0 14px rgba(78, 155, 170, 0.25);
}

.risk-btn:focus-visible {
  outline: 2px solid var(--accent-teal-light);
  outline-offset: 2px;
}

/* Chart Canvas Box */
.chart-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sim-output-box {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sim-metric-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.sim-metric-val.teal { color: var(--accent-teal-light); }

/* ====================================================
   EDUCATIONAL CALCULATOR
   Allocation colors are their own tokens so the equities
   segment never collides with the gold used for figures.
   ==================================================== */
:root {
  --alloc-equities: #c8a96e;
  --alloc-bonds:    #4a7c8c;
  --alloc-alts:     #6ab8c6;
  --alloc-cash:     #6b7280;
}

.calc-val {
  font-weight: 700;
  font-size: 1.05rem;
}
.calc-val.gold { color: var(--accent-gold); }
.calc-val.teal { color: var(--accent-teal-light); }

.calc-assume {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

/* The hypothetical label sits with the number, not only in the disclosure. */
.calc-hypo-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  margin-bottom: 0.55rem;
}

.calc-out-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.calc-chart-title {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  text-align: center;
}

.calc-donut {
  position: relative;
  width: 230px;
  height: 230px;
}

.calc-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.calc-profile-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
}

.calc-profile-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.calc-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.2rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.calc-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.calc-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Disclosure must stay adjacent to the figures it qualifies. */
.calc-disclosure {
  margin-top: 2rem;
  padding: 1.3rem 1.5rem;
  background: rgba(200, 169, 110, 0.05);
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.calc-disclosure p + p { margin-top: 0.85rem; }
.calc-disclosure strong { color: var(--accent-gold); }

@media (max-width: 768px) {
  .sim-output-box { grid-template-columns: 1fr; }
  .calc-legend    { grid-template-columns: 1fr; }

  .calc-donut,
  .calc-donut svg { width: 200px; height: 200px; }

  /* 3rem of padding ate a quarter of a 390px screen. */
  .simulator-card { padding: 1.5rem; }
  .container      { padding: 0 1.25rem; }

  /* Three profile buttons side by side leave no room for their labels. */
  .risk-options {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .control-label {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  /*
   * Three comparison columns cannot fit a phone. Rather than leave the table
   * to scroll sideways inside its wrapper — which just looks cut off — break
   * each row into its own card. The column headings move onto the cells as
   * labels (filled in by JS so they follow the language switch).
   */
  .comp-table,
  .comp-table tbody,
  .comp-table tr,
  .comp-table td {
    display: block;
    width: 100%;
  }

  .comp-table thead { display: none; }

  .comp-table tr {
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .comp-table td {
    border-bottom: none;
    padding: 0.85rem 1.1rem;
  }

  .comp-table td:first-child {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    background: rgba(15, 23, 42, 0.9);
  }

  .comp-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
  }

  .comp-table td.highlight-col::before { color: var(--accent-teal-light); }

  /*
   * The header CTA cannot wrap (see .btn) and must not shrink, so on narrow
   * screens it pushed the header wider than the viewport and the whole
   * document scrolled sideways. The hamburger menu and the hero buttons
   * already offer the same action, so hide it here.
   */
  #headerCtaBtn { display: none; }

  /* Same cause: the non-wrapping ADV button overflowed this side-by-side row. */
  .compliance-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
  }
  .compliance-box .btn { width: 100%; }
}

/* Fiduciary Comparison Table */
.comparison-section {
  padding: 6rem 0;
}

.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 2rem;
}

.comp-table th, .comp-table td {
  padding: 1.4rem 1.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.comp-table th {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
}

.comp-table th:first-child {
  border-top-left-radius: var(--radius-md);
}

.comp-table th:last-child {
  border-top-right-radius: var(--radius-md);
}

.comp-table th.highlight-col {
  background: rgba(78, 155, 170, 0.14);
  color: var(--accent-teal-light);
  border-top: 2px solid var(--accent-teal);
}

.comp-table td.highlight-col {
  background: rgba(78, 155, 170, 0.06);
  font-weight: 600;
  color: #fff;
}

.check-icon {
  color: var(--accent-emerald);
  font-size: 1.2rem;
  margin-right: 0.4rem;
}

.cross-icon {
  color: #ef4444;
  font-size: 1.2rem;
  margin-right: 0.4rem;
}

/* SEC Compliance & ADV Modal/Drawer */
.compliance-section {
  padding: 5rem 0;
  background: rgba(4, 7, 14, 0.8);
}

.compliance-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.compliance-info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

/* Contact & Consultation Booking */
.contact-section {
  padding: 6rem 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(78, 155, 170, 0.14);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-teal);
  background: rgba(78, 155, 170, 0.06);
  box-shadow: 0 0 15px rgba(78, 155, 170, 0.22);
}

.form-select option {
  background: #0d1322;
  color: #fff;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ====================================================
   INNER PAGES (page.php / 404.php)
   The landing page is authored section by section; anything
   the firm writes in WordPress renders through these.
   ==================================================== */
.page-section {
  padding: 7rem 0 5rem;
  min-height: 60vh;
}

.container-narrow {
  max-width: 780px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.page-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Long-form prose from the WordPress editor */
.page-content {
  color: var(--text-muted);
  line-height: 1.8;
}

.page-content > * + * { margin-top: 1.15rem; }

.page-content h2,
.page-content h3 {
  font-family: var(--font-heading);
  color: #fff;
  margin-top: 2.5rem;
  line-height: 1.3;
}

.page-content h2 { font-size: 1.5rem; }
.page-content h3 { font-size: 1.2rem; }

.page-content a {
  color: var(--accent-teal-light);
  text-decoration: underline;
}

.page-content ul,
.page-content ol { padding-left: 1.4rem; }
.page-content li + li { margin-top: 0.5rem; }

.page-content strong { color: var(--text-main); }

.page-content blockquote {
  border-left: 2px solid var(--accent-teal);
  padding-left: 1.2rem;
  color: var(--text-main);
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.page-content th,
.page-content td {
  border: 1px solid var(--border-glass);
  padding: 0.6rem 0.9rem;
  text-align: left;
}

/* Consent line above the submit button */
.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-teal);
  cursor: pointer;
}

.form-consent a {
  color: var(--accent-teal-light);
  text-decoration: underline;
}

.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent-teal-light);
  outline-offset: 2px;
}

/* Field-level validation */
.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.field-error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #f87171;
}

/*
 * Honeypot. Kept off-screen rather than display:none — some bots skip
 * fields that are outright hidden, and this one needs to look real.
 */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submission feedback */
.form-alert {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-alert-success {
  background: rgba(78, 155, 170, 0.16);
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal-light);
}

.form-alert-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid #f87171;
  color: #fca5a5;
}

/* Modal Drawer */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #0d1322;
  border: 1px solid var(--border-glass-gold);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.disclaimer-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ====================================================
   MARKET RESEARCH CENTER
   ==================================================== */
.market-section {
  padding: 6rem 0;
  background: rgba(4, 10, 16, 0.75);
  position: relative;
  overflow: visible;
}

.market-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
  opacity: 0.35;
}

.market-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 2rem;
  align-items: start;
}

/* Search Input */
.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass-emerald);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box-wrapper:focus-within {
  border-color: var(--accent-teal);
  box-shadow: 0 0 22px rgba(78,155,170,0.22);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  color: var(--accent-teal);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.ticker-search-input {
  width: 100%;
  padding: 1.1rem 3.5rem 1.1rem 3.2rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  letter-spacing: 0.02em;
}

.ticker-search-input::placeholder { color: var(--text-dim); }

.search-clear-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  transition: color var(--transition-fast);
  z-index: 1;
}

.search-clear-btn:hover { color: #fff; }

/* Suggestions Dropdown */
.suggestions-dropdown {
  background: rgba(7, 18, 28, 0.98);
  border: 1px solid var(--border-glass-emerald);
  border-radius: var(--radius-md);
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1rem;
  display: none;
  box-shadow: 0 24px 48px rgba(0,0,0,0.55);
  z-index: 200;
}

.suggestions-dropdown.open { display: block; }

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition-fast);
}

.suggestion-item:last-child { border-bottom: none; }

.suggestion-item:hover { background: rgba(78,155,170,0.10); }

.sug-symbol {
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-teal);
  font-size: 0.95rem;
  min-width: 72px;
}

.sug-name {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sug-type {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* Loading / Error */
.quote-loading, .quote-error {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.quote-error { color: #f87171; }

/* Quote Card */
.quote-card-wrapper { margin-top: 0; }

.quote-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.quote-company-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.quote-symbol-exchange {
  font-size: 0.82rem;
  color: var(--accent-teal);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.add-watchlist-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--accent-gold);
  background: rgba(200,169,110,0.08);
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.add-watchlist-btn:hover { background: rgba(200,169,110,0.18); }

.add-watchlist-btn.saved {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(78,155,170,0.12);
}

.quote-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.quote-price {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.quote-change-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
}

.quote-change-badge.up   { background: rgba(78,155,170,0.15); color: var(--accent-teal-light); }
.quote-change-badge.down { background: rgba(239,68,68,0.12);  color: #f87171; }

/* Sparkline */
.sparkline-canvas {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 0.3rem;
  display: block;
}

.sparkline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
  padding: 0 0.2rem;
}

/* Stats Grid */
.quote-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.2rem;
}

.stat-item-market { display: flex; flex-direction: column; gap: 0.3rem; }

.stat-label-m {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.stat-val-m {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

/* Empty / initial state */
.quote-empty-state {
  text-align: center;
  padding: 3rem 1rem 2rem;
  color: var(--text-muted);
}

.quote-empty-state > i {
  font-size: 3.5rem;
  color: var(--accent-teal);
  opacity: 0.35;
  margin-bottom: 1.2rem;
  display: block;
}

.quote-empty-state p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.quick-tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.quick-ticker-chip {
  padding: 0.45rem 1.1rem;
  background: rgba(78,155,170,0.08);
  border: 1px solid var(--border-glass-emerald);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-teal);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.quick-ticker-chip:hover {
  background: rgba(78,155,170,0.22);
  border-color: var(--accent-teal);
  color: #fff;
  transform: translateY(-1px);
}

/* Watchlist Panel */
.watchlist-panel {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.watchlist-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.watchlist-panel-header h3 {
  font-size: 1.05rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.watchlist-badge {
  background: var(--accent-teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wl-empty-state {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: var(--text-dim);
}

.wl-empty-state > i {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
  display: block;
  opacity: 0.35;
}

.wl-empty-state p {
  font-size: 0.8rem;
  line-height: 1.6;
}

.watchlist-items-list {
  display: flex;
  flex-direction: column;
}

.wl-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.3rem;
  border-bottom: 1px solid var(--border-glass);
  cursor: pointer;
  transition: background var(--transition-fast);
  border-radius: 6px;
  gap: 0.4rem;
}

.wl-item:hover { background: rgba(255,255,255,0.03); }

.wl-item-left {
  flex: 1;
  min-width: 0;
}

.wl-item-symbol {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  font-size: 0.9rem;
}

.wl-item-name {
  font-size: 0.7rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}

.wl-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
}

.wl-item-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.wl-item-change {
  font-size: 0.72rem;
  font-weight: 600;
}

.wl-item-change.up   { color: var(--accent-teal-light); }
.wl-item-change.down { color: #f87171; }

.wl-remove-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0.3rem 0.4rem;
  transition: color var(--transition-fast);
  border-radius: 4px;
  flex-shrink: 0;
}

.wl-remove-btn:hover { color: #f87171; background: rgba(239,68,68,0.08); }

.watchlist-footer {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-glass);
}

.btn-clear-watchlist {
  background: none;
  border: 1px solid rgba(239,68,68,0.22);
  color: #f87171;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.btn-clear-watchlist:hover { background: rgba(239,68,68,0.10); border-color: #f87171; }

/* ====================================================
   NEWS FEED (Market Research Center)
   ==================================================== */

.news-container {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.2rem;
}

.general-news-wrapper {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  text-align: left;
}

.news-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.news-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.news-header-title i { color: var(--accent-teal); }

.news-powered {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-style: italic;
}

.news-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  justify-content: center;
}

.news-loading i { color: var(--accent-teal); }

.news-feed {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.news-feed::-webkit-scrollbar {
  width: 4px;
}

.news-feed::-webkit-scrollbar-thumb {
  background: var(--border-glass-emerald);
  border-radius: 2px;
}

.news-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  align-items: flex-start;
}

.news-item:hover {
  background: rgba(78, 155, 170, 0.07);
  border-color: rgba(78, 155, 170, 0.30);
}

.news-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.news-thumb-placeholder {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(78, 155, 170, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  font-size: 1.2rem;
  opacity: 0.5;
}

.news-body {
  flex: 1;
  min-width: 0;
}

.news-title {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.news-item:hover .news-title { color: #fff; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.news-publisher {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-sep {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.news-time {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.news-empty {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@keyframes priceFlash {

  0%   { opacity: 1; }
  30%  { opacity: 0.2; color: var(--accent-teal); }
  100% { opacity: 1; }
}

.price-flash { animation: priceFlash 0.65s ease; }

/* Defined here because the badge that used to own it was removed. */
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 6px #22c55e;
  animation: pulseGlow 2s infinite;
  vertical-align: middle;
}

.quote-live-line {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ====================================================
   RESPONSIVE BREAKPOINTS
   ==================================================== */

@media (max-width: 1024px) {
  .hero-grid, .hub-grid, .contact-grid, .simulator-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .market-layout {
    grid-template-columns: 1fr;
  }
  .watchlist-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    background: #070b14;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-glass);
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
