/**
 * PRÓXIMAINVEST — Temas vibrantes + efeitos polidos
 * v1.5.13 — neon, pérola, ciano, escarlate
 */

:root {
  --neon: #39ff14;
  --neon-dim: #1a8a0a;
  --neon-glow: rgba(57, 255, 20, 0.35);
  --cyan: #00e5ff;
  --cyan-dim: #0097a7;
  --cyan-glow: rgba(0, 229, 255, 0.35);
  --scarlet: #ff1744;
  --scarlet-dim: #c4001d;
  --scarlet-glow: rgba(255, 23, 68, 0.35);
  --pearl: #e8e6e3;
  --pearl-dim: #a8a59f;
  --pearl-bg: #0d0d0f;
  --accent: var(--gold);
  --accent-glow: var(--gold-glow);
  --success: #39ff14;
  --danger: #ff1744;
  --info: #00e5ff;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* —— Clássico (ouro) reforçado —— */
html[data-theme="classico"] {
  --gold: #f0c14b;
  --gold-dark: #c9a227;
  --gold-soft: #e8d48b;
  --gold-glow: rgba(240, 193, 75, 0.4);
  --accent: var(--gold);
  --accent-glow: var(--gold-glow);
  --surface: #0a0a0c;
  --surface-2: #0e1014;
  --bg: #050506;
}

/* —— Neon (verde neon) —— */
html[data-theme="neon"] {
  --bg: #030805;
  --surface: #06120a;
  --surface-2: #0a1a10;
  --surface-3: #0f2418;
  --gold: #39ff14;
  --gold-dark: #1fc400;
  --gold-soft: #7dff6a;
  --gold-glow: rgba(57, 255, 20, 0.45);
  --accent: #39ff14;
  --accent-glow: rgba(57, 255, 20, 0.4);
  --border: rgba(57, 255, 20, 0.12);
  --border-strong: rgba(57, 255, 20, 0.28);
  --text-main: #e8ffe4;
  --text-body: #b8e0b0;
  --blue-real: #39ff14;
  --ok: #39ff14;
}

/* —— Pérola (preto perolado) —— */
html[data-theme="perola"] {
  --bg: #0c0c0e;
  --surface: #121214;
  --surface-2: #18181c;
  --surface-3: #1e1e24;
  --gold: #e8e6e3;
  --gold-dark: #c4c0ba;
  --gold-soft: #f5f4f2;
  --gold-glow: rgba(232, 230, 227, 0.25);
  --accent: #e8e6e3;
  --accent-glow: rgba(232, 230, 227, 0.3);
  --border: rgba(232, 230, 227, 0.1);
  --border-strong: rgba(232, 230, 227, 0.22);
  --text-main: #f5f4f2;
  --text-body: #c8c5c0;
  --blue-real: #a8d4ff;
}

/* —— Ciano —— */
html[data-theme="ciano"] {
  --bg: #030a0e;
  --surface: #06141a;
  --surface-2: #0a1c24;
  --surface-3: #0e2832;
  --gold: #00e5ff;
  --gold-dark: #00b8d4;
  --gold-soft: #84ffff;
  --gold-glow: rgba(0, 229, 255, 0.4);
  --accent: #00e5ff;
  --accent-glow: rgba(0, 229, 255, 0.4);
  --border: rgba(0, 229, 255, 0.12);
  --border-strong: rgba(0, 229, 255, 0.3);
  --text-main: #e0f7fa;
  --text-body: #a8d5de;
  --blue-real: #00e5ff;
  --ok: #00e5ff;
}

/* —— Escarlate —— */
html[data-theme="escarlate"] {
  --bg: #0c0406;
  --surface: #16080c;
  --surface-2: #1e0c12;
  --surface-3: #2a1018;
  --gold: #ff1744;
  --gold-dark: #d50000;
  --gold-soft: #ff8a9b;
  --gold-glow: rgba(255, 23, 68, 0.4);
  --accent: #ff1744;
  --accent-glow: rgba(255, 23, 68, 0.4);
  --border: rgba(255, 23, 68, 0.14);
  --border-strong: rgba(255, 23, 68, 0.32);
  --text-main: #ffebee;
  --text-body: #e8b4bc;
  --blue-real: #ff5252;
  --danger: #ff1744;
  --ok: #ff8a80;
}

/* —— Oceano / Esmeralda já existem; reforço de glow —— */
html[data-theme="oceano"] {
  --gold: #29b6f6;
  --gold-dark: #0288d1;
  --gold-glow: rgba(41, 182, 246, 0.4);
  --accent: #29b6f6;
}
html[data-theme="esmeralda"] {
  --gold: #00c853;
  --gold-dark: #00a844;
  --gold-glow: rgba(0, 200, 83, 0.4);
  --accent: #00c853;
}

/* —— Efeitos globais polidos —— */
html[data-theme] .chatbot-btn,
html[data-theme] #chatbotFab {
  box-shadow:
    0 0 12px var(--gold-glow),
    0 0 28px var(--gold-glow),
    0 8px 24px rgba(0, 0, 0, 0.5) !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-med) !important;
}
html[data-theme] .chatbot-btn:active,
html[data-theme] #chatbotFab:active {
  transform: scale(0.92) !important;
}

html[data-theme] .tool-card,
html[data-theme] .journey-card {
  transition: transform var(--transition-med), border-color var(--transition-fast), box-shadow var(--transition-med);
}
html[data-theme] .tool-card:hover,
html[data-theme] .journey-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 20px var(--gold-glow);
  border-color: var(--border-strong);
}

html[data-theme] .site-header {
  transition: background var(--transition-med), border-color var(--transition-med);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Dots da paleta — novos temas */
.theme-dot-neon {
  background: radial-gradient(circle at 30% 30%, #7dff6a, #39ff14 40%, #1a8a0a) !important;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.7);
}
.theme-dot-perola {
  background: radial-gradient(circle at 30% 30%, #fff, #e8e6e3 45%, #8a8680) !important;
  box-shadow: 0 0 6px rgba(232, 230, 227, 0.5);
}
.theme-dot-ciano {
  background: radial-gradient(circle at 30% 30%, #84ffff, #00e5ff 40%, #0097a7) !important;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}
.theme-dot-escarlate {
  background: radial-gradient(circle at 30% 30%, #ff8a9b, #ff1744 40%, #c4001d) !important;
  box-shadow: 0 0 8px rgba(255, 23, 68, 0.7);
}

/* ============================================================
   Bottom nav — estilo Investing + animações PRÓXIMAINVEST
   ============================================================ */
@media (max-width: 1024px) {
  #bottomNav.bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 100100 !important;
    height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    background: color-mix(in srgb, var(--surface-2, #0c0e12) 92%, transparent) !important;
    border-top: 1px solid var(--border, rgba(255,255,255,0.1)) !important;
    backdrop-filter: blur(20px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35) !important;
    transition: transform var(--transition-med), opacity var(--transition-med) !important;
  }

  #bottomNav .bn-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    position: relative !important;
    color: var(--text-dim, #8b93a3) !important;
    font-size: 0.6rem !important;
    font-weight: 500 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    padding: 6px 4px !important;
    margin: 0 2px !important;
    border-radius: 14px !important;
    min-height: 48px !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    transition:
      color var(--transition-fast),
      background var(--transition-fast),
      transform var(--transition-spring) !important;
  }

  #bottomNav .bn-item i {
    font-size: 1.15rem !important;
    line-height: 1 !important;
    transition: transform var(--transition-spring), color var(--transition-fast) !important;
  }

  #bottomNav .bn-item span {
    line-height: 1.1 !important;
    transition: opacity var(--transition-fast) !important;
  }

  /* Pílula ativa (estilo Investing) */
  #bottomNav .bn-item.is-active {
    color: var(--gold, #D4AF37) !important;
    background: color-mix(in srgb, var(--gold, #D4AF37) 14%, transparent) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold, #D4AF37) 28%, transparent) !important;
  }
  #bottomNav .bn-item.is-active i {
    color: var(--gold, #D4AF37) !important;
    transform: scale(1.08) !important;
    filter: drop-shadow(0 0 6px var(--gold-glow));
  }

  #bottomNav .bn-item:active {
    transform: scale(0.92) !important;
  }

  /* Ripple / feedback */
  #bottomNav .bn-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, var(--gold-glow), transparent 70%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.35s, transform 0.35s;
    pointer-events: none;
  }
  #bottomNav .bn-item.bn-pulse::after {
    opacity: 1;
    transform: scale(1.15);
  }

  /* Esconde nav com modal terminal */
  body.terminal-open #bottomNav,
  body:has(#modalTerminal.active) #bottomNav {
    transform: translateY(110%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}



/* —— Sheet “Mais” —— */
.bn-mais-sheet {
  position: fixed;
  inset: 0;
  z-index: 100150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-med);
}
.bn-mais-sheet.is-open {
  pointer-events: auto;
  opacity: 1;
}
.bn-mais-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.bn-mais-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: min(78dvh, 560px);
  background: var(--surface-2, #0c0e12);
  border: 1px solid var(--border-strong, rgba(255,255,255,0.14));
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5), 0 0 40px var(--gold-glow);
  transform: translateY(100%);
  transition: transform var(--transition-spring);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bn-mais-sheet.is-open .bn-mais-panel {
  transform: translateY(0);
}
.bn-mais-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--border-strong, rgba(255,255,255,0.2));
  margin: 4px auto 14px;
}
.bn-mais-title {
  font-family: var(--font-display, Orbitron, sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--gold, #D4AF37);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bn-mais-title button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.bn-mais-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bn-mais-list li button,
.bn-mais-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-main, #fff);
  font-size: 0.88rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.bn-mais-list li button:active,
.bn-mais-list li a:active {
  transform: scale(0.98);
}
.bn-mais-list li button:hover,
.bn-mais-list li a:hover {
  background: color-mix(in srgb, var(--gold, #D4AF37) 10%, transparent);
}
.bn-mais-list .bn-mais-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--gold, #D4AF37) 12%, transparent);
  color: var(--gold, #D4AF37);
  font-size: 1rem;
  flex-shrink: 0;
}
.bn-mais-sep {
  height: 1px;
  background: var(--border, rgba(255,255,255,0.08));
  margin: 8px 4px;
}
.bn-mais-section {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 8px 14px 4px;
}

@media (min-width: 1025px) {
  .bn-mais-sheet { display: none !important; }
}

/* ============================================================
   FORÇA aplicação visual do tema (sobrescreve background #000 fixo)
   ============================================================ */
html[data-theme] body {
  background: var(--bg, #000) !important;
  color: var(--text-body, #c5cad3) !important;
  transition: background 0.35s ease, color 0.35s ease;
}

html[data-theme] .site-header {
  background: color-mix(in srgb, var(--surface-2, #0c0e12) 90%, transparent) !important;
  border-bottom-color: var(--border, rgba(255,255,255,0.08)) !important;
}

html[data-theme] .logo-text,
html[data-theme] .section-tag,
html[data-theme] h1, html[data-theme] h2, html[data-theme] h3 {
  transition: color 0.3s ease;
}

html[data-theme] .tool-card,
html[data-theme] .journey-card,
html[data-theme] .ticker-wrap,
html[data-theme] .hero,
html[data-theme] .footer,
html[data-theme] footer {
  background-color: var(--surface, #0a0a0a);
  border-color: var(--border, rgba(255,255,255,0.08));
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

html[data-theme] .bottom-nav#bottomNav {
  background: color-mix(in srgb, var(--surface-2, #0c0e12) 94%, transparent) !important;
  border-top-color: var(--border, rgba(255,255,255,0.1)) !important;
}

html[data-theme] #bottomNav .bn-item.is-active {
  color: var(--gold, #D4AF37) !important;
  background: color-mix(in srgb, var(--gold, #D4AF37) 14%, transparent) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold, #D4AF37) 28%, transparent) !important;
}

html[data-theme] .chatbot-btn,
html[data-theme] #chatbotFab {
  background: linear-gradient(135deg, var(--gold, #D4AF37), var(--gold-dark, #b8941f)) !important;
  color: #0a0a0a !important;
}

html[data-theme="neon"] .chatbot-btn,
html[data-theme="neon"] #chatbotFab,
html[data-theme="ciano"] .chatbot-btn,
html[data-theme="ciano"] #chatbotFab {
  color: #030805 !important;
}

html[data-theme="escarlate"] .chatbot-btn,
html[data-theme="escarlate"] #chatbotFab {
  color: #fff !important;
}

html[data-theme="perola"] .chatbot-btn,
html[data-theme="perola"] #chatbotFab {
  color: #0c0c0e !important;
}

/* Superfícies com #000 hardcoded */
html[data-theme] .modal-content,
html[data-theme] #modalTerminal .modal-content {
  background: var(--surface-2, #0c0e12) !important;
  border-color: var(--border-strong) !important;
}

html[data-theme] .fx-converter {
  background: var(--surface-2, #0c0e12) !important;
  border-color: var(--border-strong) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 32px var(--gold-glow) !important;
}

/* Ticker */
html[data-theme] .ticker-api,
html[data-theme] #ticker-api,
html[data-theme] .market-ticker {
  border-color: var(--border) !important;
}

/* Texto accent */
html[data-theme] a {
  transition: color 0.2s ease;
}

/* ============================================================
   v1.5.15 — Mobile chrome: topo some, footer migra para "Mais"
   Desktop: header + footer intactos
   ============================================================ */
@media (max-width: 1024px) {
  /* Header / menu do topo some */
  .site-header {
    display: none !important;
  }

  /* Footer completo some — links estão no sheet Mais */
  footer#footer {
    display: none !important;
  }

  /* Espaço para a bottom nav não cobrir o conteúdo */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Sem header, conteúdo começa no topo */
  main,
  .hero,
  .app-shell,
  body > section:first-of-type {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
  }
}

@media (min-width: 1025px) {
  /* Desktop: header e footer normais; bottom nav e sheet escondidos */
  .site-header { display: flex !important; }
  footer#footer { display: block !important; }
}

/* Copyright line inside Mais sheet */
.bn-mais-copy {
  display: block;
  padding: 12px 14px 8px;
  font-size: 0.62rem;
  line-height: 1.45;
  color: var(--text-dim, #888);
  text-align: center;
  list-style: none;
}



/* Do not re-add #bottomNav display rules here; mobile-chrome is source of truth */

/* ============================================================
   v1.0.4 — Fundo unificado + tema Vidro / Fumo (glass)
   ============================================================ */

/* Página inteira: um único canvas (sem costuras entre seções) */
html[data-theme] body,
html[data-theme] main {
  background: var(--bg) !important;
  background-image: none !important;
}

html[data-theme] .hero,
html[data-theme] .hero-platform,
html[data-theme] .journey-section,
html[data-theme] .tools-section,
html[data-theme] #ferramentas,
html[data-theme] .resources-section,
html[data-theme] #recursos,
html[data-theme] .plano-section,
html[data-theme] .grid-section,
html[data-theme] section.home-slots,
html[data-theme] footer,
html[data-theme] footer#footer {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  border-top-color: var(--border, rgba(255,255,255,0.06)) !important;
  border-bottom-color: var(--border, rgba(255,255,255,0.04)) !important;
}

/* Cards / superfícies acompanham a paleta */
html[data-theme] .tool-card,
html[data-theme] .journey-card,
html[data-theme] .resource-card,
html[data-theme] .res-card,
html[data-theme] .lab-card,
html[data-theme] .info-card {
  background: var(--surface, rgba(12,14,18,0.9)) !important;
  border-color: var(--border, rgba(255,255,255,0.08)) !important;
  color: var(--text-main, #e8ecf0);
}

html[data-theme] .tool-card h3,
html[data-theme] .journey-card h3,
html[data-theme] .resource-card h3,
html[data-theme] .section-tag {
  color: var(--gold, #D4AF37) !important;
}

html[data-theme] .tool-card p,
html[data-theme] .journey-card p,
html[data-theme] .resource-card > p,
html[data-theme] .tools-group-head p,
html[data-theme] .tools-intro-text {
  color: var(--text-dim, #8b939e) !important;
}

html[data-theme] .tools-group-head h3,
html[data-theme] h2,
html[data-theme] .tools-intro h2 {
  color: var(--text-main, #e8e4dc) !important;
}

html[data-theme] .ticker-wrap,
html[data-theme] .market-ticker,
html[data-theme] #ticker-api {
  background: color-mix(in srgb, var(--surface-2, #0c0e12) 88%, transparent) !important;
  border-color: var(--border) !important;
}

/* —— Tema VIDRO (fumo + glass moderno) —— */
html[data-theme="vidro"] {
  --bg: #07090d;
  --surface: rgba(18, 22, 30, 0.55);
  --surface-2: rgba(22, 28, 38, 0.72);
  --surface-3: rgba(28, 36, 48, 0.85);
  --gold: #c8d0dc;
  --gold-dark: #9aa6b8;
  --gold-soft: #e4e9f0;
  --gold-glow: rgba(180, 200, 230, 0.28);
  --accent: #a8c0e0;
  --accent-glow: rgba(168, 192, 224, 0.35);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text-main: #eef2f7;
  --text-body: #b8c2d0;
  --text-dim: #8a95a8;
  --text-muted: #6a7588;
  --blue-real: #8ab4f8;
  color-scheme: dark;
}

/* Fundo fumo contínuo (gradiente suave, sem faixas) */
html[data-theme="vidro"] body {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(90, 110, 150, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(60, 80, 120, 0.08), transparent 50%),
    radial-gradient(ellipse 70% 40% at 0% 80%, rgba(40, 50, 70, 0.12), transparent 45%),
    #07090d !important;
  background-attachment: fixed !important;
}

html[data-theme="vidro"] .site-header {
  background: rgba(12, 16, 24, 0.45) !important;
  backdrop-filter: blur(20px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.35) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

html[data-theme="vidro"] .tool-card,
html[data-theme="vidro"] .journey-card,
html[data-theme="vidro"] .resource-card,
html[data-theme="vidro"] .res-card,
html[data-theme="vidro"] .lab-card,
html[data-theme="vidro"] .info-card {
  background: rgba(16, 20, 28, 0.42) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="vidro"] .tool-card:hover,
html[data-theme="vidro"] .journey-card:hover,
html[data-theme="vidro"] .resource-card:hover {
  background: rgba(22, 28, 40, 0.55) !important;
  border-color: rgba(200, 210, 230, 0.22) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(160, 180, 220, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="vidro"] .tool-card h3,
html[data-theme="vidro"] .section-tag,
html[data-theme="vidro"] .logo-text {
  color: #d4dce8 !important;
}

html[data-theme="vidro"] .tool-card i,
html[data-theme="vidro"] .tools-grid .tool-card > i {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #c8d4e8 !important;
  box-shadow: none !important;
}

html[data-theme="vidro"] .bottom-nav#bottomNav {
  background: rgba(10, 14, 20, 0.65) !important;
  backdrop-filter: blur(22px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.3) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="vidro"] .modal-content,
html[data-theme="vidro"] #modalTerminal .modal-content {
  background: rgba(14, 18, 26, 0.82) !important;
  backdrop-filter: blur(24px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="vidro"] .theme-palette-menu,
html[data-theme="vidro"] .fx-converter {
  background: rgba(14, 18, 26, 0.78) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="vidro"] .chatbot-btn,
html[data-theme="vidro"] #chatbotFab {
  background: linear-gradient(135deg, #c8d4e4, #8a9bb0) !important;
  color: #0a0c10 !important;
  box-shadow: 0 0 16px rgba(160, 180, 210, 0.25), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="vidro"] .tools-group-head {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Dot da paleta Vidro */
.theme-dot-vidro {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.85), rgba(180,200,230,0.5) 40%, rgba(40,50,70,0.95) 70%) !important;
  box-shadow: 0 0 8px rgba(160, 180, 220, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.theme-swatch-vidro {
  background: linear-gradient(135deg, #a8c0e0 0%, #2a3548 50%, #07090d 100%) !important;
}

/* ============================================================
   v1.0.5 — Glass leve nos temas escuros (sem exagero)
   ============================================================ */
html[data-theme]:not([data-theme="claro"]):not([data-theme="light"]) .tool-card,
html[data-theme]:not([data-theme="claro"]):not([data-theme="light"]) .journey-card,
html[data-theme]:not([data-theme="claro"]):not([data-theme="light"]) .resource-card,
html[data-theme]:not([data-theme="claro"]):not([data-theme="light"]) .res-card,
html[data-theme]:not([data-theme="claro"]):not([data-theme="light"]) .lab-card,
html[data-theme]:not([data-theme="claro"]):not([data-theme="light"]) .info-card {
  background: color-mix(in srgb, var(--surface, #0c0e12) 78%, transparent) !important;
  backdrop-filter: blur(10px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.12) !important;
  border: 1px solid color-mix(in srgb, var(--border, rgba(255,255,255,0.1)) 100%, transparent) !important;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html[data-theme]:not([data-theme="claro"]):not([data-theme="light"]) .tool-card:hover,
html[data-theme]:not([data-theme="claro"]):not([data-theme="light"]) .journey-card:hover,
html[data-theme]:not([data-theme="claro"]):not([data-theme="light"]) .resource-card:hover {
  background: color-mix(in srgb, var(--surface-2, #12151c) 85%, transparent) !important;
  border-color: color-mix(in srgb, var(--gold, #D4AF37) 28%, transparent) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.32),
    0 0 20px color-mix(in srgb, var(--gold-glow, rgba(212,175,55,0.2)) 50%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-theme]:not([data-theme="claro"]):not([data-theme="light"]) .site-header {
  background: color-mix(in srgb, var(--surface-2, #0c0e12) 72%, transparent) !important;
  backdrop-filter: blur(16px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
}

/* Footer acompanha tema + compacto */
html[data-theme] footer,
html[data-theme] footer#footer {
  background: transparent !important;
  color: var(--text-body);
}
html[data-theme] footer .footer-logo {
  color: var(--gold) !important;
}
html[data-theme] footer .footer-col h5 {
  color: var(--text-main) !important;
}
html[data-theme] footer .footer-col a {
  color: var(--text-dim) !important;
}
html[data-theme] footer .footer-col a:hover {
  color: var(--gold) !important;
}
html[data-theme] footer .edu-disclaimer-footer {
  color: var(--text-muted, #6b7280) !important;
  border-top-color: var(--border) !important;
}

/* Vidro mantém o glass mais forte (já definido acima) */
html[data-theme="vidro"] .tool-card,
html[data-theme="vidro"] .journey-card,
html[data-theme="vidro"] .resource-card {
  backdrop-filter: blur(14px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
}

/* FAB circular — força após qualquer tema */
#chatbotFab,
button.chatbot-btn#chatbotFab,
#chatbotRoot > #chatbotFab {
  border-radius: 50% !important;
  width: 56px !important;
  height: 56px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  padding: 0 !important;
}
#chatbotFab .fab-pulse-ring,
#chatbotFab i {
  border-radius: 50% !important;
}

/* Accent texts seguem a paleta */
html[data-theme] .section-tag,
html[data-theme] .journey-intro .section-tag,
html[data-theme] .cta-primary {
  color: inherit;
}
html[data-theme] .section-tag {
  color: var(--gold) !important;
}
html[data-theme] .cta-primary {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #0a0a0a !important;
}
html[data-theme="escarlate"] .cta-primary,
html[data-theme="neon"] .cta-primary {
  color: #030805 !important;
}
html[data-theme] .ticker-live-badge,
html[data-theme] .ticker-live-badge.is-stale,
html[data-theme] .ticker-live-badge.is-live {
  background: var(--gold) !important;
  color: #0a0a0a !important;
}
html[data-theme] .ticker-live-badge.is-offline {
  background: #ff5252 !important;
  color: #fff !important;
}
html[data-theme] .tab-btn.active,
html[data-theme] #recursos .tab-btn.active {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #0a0a0a !important;
}
html[data-theme="escarlate"] .tab-btn.active,
html[data-theme="escarlate"] #recursos .tab-btn.active {
  color: #fff !important;
}

/* ============================================================
   Escuro profundo — contraste legível (v1.0.11)
   ============================================================ */
html[data-theme="escuro"] {
  --gold: #D4AF37 !important;
  --gold-dark: #b8941f !important;
  --gold-soft: #e8c547 !important;
  --gold-glow: rgba(212, 175, 55, 0.4) !important;
  --text-main: #f4f4f6 !important;
  --text-body: #d0d2da !important;
  --text-dim: #a0a4b0 !important;
  --text-muted: #787c88 !important;
  --border: rgba(255, 255, 255, 0.12) !important;
  --border-strong: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="escuro"] body {
  color: var(--text-body) !important;
}

html[data-theme="escuro"] h1,
html[data-theme="escuro"] h2,
html[data-theme="escuro"] h3,
html[data-theme="escuro"] .section-tag,
html[data-theme="escuro"] .logo-text,
html[data-theme="escuro"] .tool-card h3,
html[data-theme="escuro"] .journey-card,
html[data-theme="escuro"] .jc-title,
html[data-theme="escuro"] .tools-group-head h3,
html[data-theme="escuro"] .footer-logo,
html[data-theme="escuro"] .bn-mais-logo {
  color: var(--gold) !important;
}

html[data-theme="escuro"] .tool-card p,
html[data-theme="escuro"] .journey-card p,
html[data-theme="escuro"] .tools-group-head p,
html[data-theme="escuro"] .tools-intro-text,
html[data-theme="escuro"] .hero-lead,
html[data-theme="escuro"] p {
  color: var(--text-body) !important;
}

/* REFERÊNCIA no ticker: fundo ouro + texto escuro legível */
html[data-theme="escuro"] .ticker-live-badge,
html[data-theme="escuro"] .ticker-live-badge.is-stale,
html[data-theme="escuro"] .ticker-live-badge.is-live {
  background: #D4AF37 !important;
  color: #0a0a0a !important;
}
html[data-theme="escuro"] .ticker-live-badge #ticker-live-label {
  color: #0a0a0a !important;
  font-weight: 900 !important;
}
html[data-theme="escuro"] .ticker-live-badge .ticker-live-dot {
  background: #0a0a0a !important;
  opacity: 0.55 !important;
}

html[data-theme="escuro"] .tab-btn.active,
html[data-theme="escuro"] #recursos .tab-btn.active {
  background: #D4AF37 !important;
  border-color: #D4AF37 !important;
  color: #0a0a0a !important;
}

html[data-theme="escuro"] .cta-primary {
  background: #D4AF37 !important;
  border-color: #D4AF37 !important;
  color: #0a0a0a !important;
}

html[data-theme="escuro"] .ticker-item .symbol,
html[data-theme="escuro"] .ticker-item .price {
  color: #e8e8ec !important;
}
