@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Paleta Oficial Terminal FMP — Dark Mode */
  --bg-main: #0B1120;
  --bg-card: #0A192F;
  --bg-card-elev: #0F213B;
  --bg-input: #070E1C;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: rgba(37, 99, 235, 0.16);
  --action-green: #10B981;
  --action-green-hover: #059669;
  --action-green-soft: rgba(16, 185, 129, 0.14);
  --highlight-amber: #D97706;
  --highlight-amber-soft: rgba(217, 119, 6, 0.15);
  --highlight-cyan: #06B6D4;
  --highlight-cyan-soft: rgba(6, 182, 212, 0.14);
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --border-subtle: #1E293B;
  --border-hover: #334155;

  /* Aliases semânticos compatíveis com todos os módulos */
  --bg: var(--bg-main);
  --bg-midnight: var(--bg-card);
  --glass-bg: var(--bg-card);
  --glass-bg-hover: var(--bg-card-elev);
  --glass-elev: var(--bg-card-elev);
  --glass-dark: var(--bg-input);
  --border: var(--border-subtle);
  --border-strong: #273449;
  --text: var(--text-main);
  --text-strong: var(--text-main);
  --accent: var(--highlight-cyan);
  --accent-soft: var(--highlight-cyan-soft);
  --violet: var(--primary);
  --purple: #60A5FA;
  --purple-soft: var(--primary-soft);
  --emerald: var(--action-green);
  --emerald-bright: #10B981;
  --emerald-soft: var(--action-green-soft);
  --green: var(--action-green);
  --green-soft: var(--action-green-soft);
  --amber: var(--highlight-amber);
  --amber-soft: var(--highlight-amber-soft);
  --red: #EF4444;
  --red-bright: #F87171;
  --red-soft: rgba(239, 68, 68, 0.14);

  /* Bordas retas institucionais (4px / 6px) */
  --radius: 6px;
  --radius-sm: 4px;
  --radius-xs: 4px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.45);
  --ease: all 0.18s ease;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  background-image: none;
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--ease);
}
a:hover {
  color: var(--highlight-cyan);
  text-decoration: underline;
}

code {
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.84em;
  color: var(--highlight-cyan);
}

.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 14px; }
.muted { color: var(--text-muted); }

/* ================= NAVBAR FINA (ESTILO FMP) ================= */
.site-header {
  position: sticky;
  top: 30px;
  z-index: 60;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 9px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-top-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eyebrow-pill {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--highlight-cyan);
  background: var(--highlight-cyan-soft);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 1px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h2 {
  margin: 2px 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ================= SUBBARRA DISCRETA: USD/BRL INLINE + AVISO ================= */
.subbar-strip {
  background: #070E1C;
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 0;
}

.subbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.usd-inline-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.usd-inline-label {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--highlight-cyan);
  background: var(--highlight-cyan-soft);
  border: 1px solid rgba(6, 182, 212, 0.28);
  padding: 1px 6px;
  border-radius: 4px;
}

.usd-rate-compact {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.usd-sep {
  color: var(--border-hover);
}

.disclaimer-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.disclaimer-tag {
  background: var(--highlight-amber-soft);
  color: #F59E0B;
  border: 1px solid rgba(217, 119, 6, 0.35);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ================= BUTTONS (RETOS, SEM BRILHO EXAGERADO) ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--ease);
}

.btn:hover {
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  filter: none;
  box-shadow: none;
}

.btn-action {
  background: var(--action-green);
  color: #03150E;
  border-color: var(--action-green);
  font-weight: 700;
}

.btn-action:hover {
  background: var(--action-green-hover);
  border-color: var(--action-green-hover);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  backdrop-filter: none;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--bg-card-elev);
  border-color: var(--border-hover);
  color: #FFFFFF;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.76rem;
  border-radius: 4px;
}

/* ================= INPUTS & SELECTS ================= */
input[type="search"],
input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"],
select {
  font-family: inherit;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-weight: 400;
  transition: var(--ease);
}

input::placeholder {
  color: #64748B;
}

input[type="search"]:hover,
input[type="number"]:hover,
input[type="text"]:hover,
select:hover {
  border-color: var(--border-hover);
  background: #091324;
}

input:focus,
select:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.36);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15), 0 0 22px rgba(139, 92, 246, 0.2);
}

select option {
  background: #111318;
  color: #EAEAEA;
}

.main-content {
  padding-top: 24px;
  padding-bottom: 56px;
}

.notice-banner {
  background: rgba(251, 191, 36, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #FDE68A;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 0.9rem;
}

/* ================= MASTER BAR: MARKET TOGGLE + SEARCH ================= */
.master-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.market-toggle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px;
  box-shadow: var(--shadow);
}

@media (max-width: 1200px) {
  .market-toggle { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .market-toggle { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .market-toggle { grid-template-columns: 1fr; }
}

.market-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--ease);
}

.market-btn strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.market-btn small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.market-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}

.market-btn.active[data-market="BR"] {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.16);
}
.market-btn.active[data-market="US"] {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.16);
}
.market-btn.active[data-market="CRYPTO"] {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16) 0%, rgba(249, 115, 22, 0.08) 100%);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.16);
}
.market-btn.active[data-market="ETFS"] {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.18) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.16);
}
.market-btn.active[data-market="US_ETFS"] {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(16, 185, 129, 0.09) 100%);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.16);
}

.market-flag {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #10B981, #FBBF24);
  color: #06131F;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.market-flag-us {
  background: linear-gradient(135deg, #38BDF8, #8B5CF6);
  color: #06131F;
}
.market-flag-crypto {
  background: linear-gradient(135deg, #FBBF24, #F97316);
  color: #06131F;
  font-size: 1.05rem;
}
.market-flag-etfs {
  background: linear-gradient(135deg, #A78BFA, #38BDF8);
  color: #06131F;
  font-size: 0.74rem;
}
.market-flag-us-etfs {
  background: linear-gradient(135deg, #38BDF8, #34D399);
  color: #06131F;
  font-size: 0.66rem;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow);
  transition: var(--ease);
}

.search-form:focus-within {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.12);
}

.search-form input {
  flex: 1;
}

/* ================= HERO STRIP ================= */
.hero-strip {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .hero-strip { grid-template-columns: 1fr; }
}

.usd-hero-card {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.08) 0%, rgba(255, 255, 255, 0.025) 60%, rgba(139, 92, 246, 0.06) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: var(--ease);
}

.usd-hero-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.38);
}

.usd-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.usd-pill {
  background: rgba(56, 189, 248, 0.12);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}

.usd-date { font-size: 0.78rem; color: var(--text-muted); }
.usd-rate-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.usd-rate-giant {
  font-size: clamp(2.2rem, 3.8vw, 2.95rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  font-weight: 800;
}

.usd-delta-badge {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.usd-sub-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.usd-sub-metrics span strong { color: var(--text-strong); }
.usd-foot { margin: 0; font-size: 0.77rem; color: #93C5FD; }

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .hero-kpis { grid-template-columns: repeat(2, 1fr); }
}

.kpi-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: var(--ease);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--glass-bg-hover);
}

.kpi-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.kpi-value-sm { font-size: 1.08rem; text-transform: uppercase; }
.kpi-foot { font-size: 0.75rem; color: var(--text-muted); }

.kpi-discovery { border-top: 2px solid rgba(56, 189, 248, 0.7); }
.kpi-discovery .kpi-value { color: var(--accent); }
.kpi-short { border-top: 2px solid rgba(251, 191, 36, 0.7); }
.kpi-short .kpi-value { color: var(--amber); }
.kpi-medium { border-top: 2px solid rgba(167, 139, 250, 0.7); }
.kpi-medium .kpi-value { color: var(--purple); }
.kpi-long { border-top: 2px solid rgba(52, 211, 153, 0.7); }
.kpi-long .kpi-value { color: var(--emerald-bright); }

/* ================= HORIZON TABS BAR ================= */
.horizon-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.primary-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 10px;
  flex: 1;
}

@media (max-width: 720px) {
  .primary-tabs { grid-template-columns: 1fr; }
}

.horizon-tab {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow);
  transition: var(--ease);
}

.horizon-tab:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--glass-bg-hover);
}

.horizon-tab.active {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 22px rgba(16, 185, 129, 0.15);
}

.tab-kicker {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--emerald-bright);
  text-transform: uppercase;
}

.horizon-tab strong {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.horizon-tab small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.secondary-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

@media (max-width: 720px) {
  .secondary-tabs { flex-direction: row; flex-wrap: wrap; width: 100%; }
}

.aux-tab {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ease);
}

.aux-tab:hover {
  transform: translateY(-2px);
  color: #FFFFFF;
  border-color: var(--border-hover);
  background: var(--glass-bg-hover);
}

.aux-tab.active {
  background: rgba(56, 189, 248, 0.14);
  color: #7DD3FC;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.14);
}

/* ================= GLASS CARDS & GRIDS ================= */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: var(--ease);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.horizon-pill-note {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #BAE6FD;
  font-size: 0.78rem;
  padding: 6px 13px;
  border-radius: 999px;
}

.role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.role-janela { background: var(--emerald-soft); color: var(--emerald-bright); border: 1px solid rgba(52, 211, 153, 0.35); }
.role-macro  { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.3); }
.role-calc   { background: var(--purple-soft); color: var(--purple); border: 1px solid rgba(167, 139, 250, 0.35); }

.horizon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .horizon-grid { grid-template-columns: 1fr; }
}

.horizon-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: var(--ease);
}

.horizon-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.horizon-card.is-janela {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.03) 58%);
  box-shadow: var(--shadow), 0 0 24px rgba(16, 185, 129, 0.1);
}

.horizon-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.rank-and-title { flex: 1; min-width: 0; }

.rank-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 9px;
  border-radius: 7px;
  margin-right: 8px;
  vertical-align: middle;
}

.ticker-title {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  vertical-align: middle;
}

.asset-sub {
  font-size: 0.81rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.score-gauge-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.conviction-gauge {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.conviction-gauge-inner {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #0D0F14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.conviction-score-giant {
  font-size: 1.88rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.conviction-score-sub {
  font-size: 0.61rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 3px;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.status-janela_aporte { background: rgba(16, 185, 129, 0.18); color: #6EE7B7; border: 1px solid rgba(52, 211, 153, 0.5); text-transform: uppercase; }
.status-foco_estudo   { background: var(--accent-soft); color: #7DD3FC; border: 1px solid rgba(56, 189, 248, 0.35); }
.status-monitorar     { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.status-cautela       { background: var(--red-soft); color: var(--red-bright); border: 1px solid rgba(239, 68, 68, 0.4); }

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 560px) {
  .mini-metrics { grid-template-columns: repeat(2, 1fr); }
}

.mini-metric {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  padding: 9px 11px;
  transition: var(--ease);
}

.mini-metric:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.mini-metric span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.mini-metric strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-strong);
}

.num-pos  { color: var(--emerald-bright) !important; font-weight: 600; }
.num-neg  { color: var(--red-bright) !important; font-weight: 600; }
.num-warn { color: var(--amber) !important; font-weight: 600; }

/* ================= BREAKDOWN & PARECER ================= */
.breakdown-box {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}

.breakdown-box summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--accent);
}

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.78rem;
}

.breakdown-table th,
.breakdown-table td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.breakdown-table th {
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.parecer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 640px) {
  .parecer-cols { grid-template-columns: 1fr; }
}

.parecer-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}

.parecer-box h4 {
  margin: 0 0 7px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.parecer-pro h4  { color: var(--emerald-bright); }
.parecer-risk h4 { color: var(--amber); }

.parecer-box ul {
  margin: 0;
  padding-left: 16px;
  font-size: 0.8rem;
  color: #D4D7DD;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.links-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.link-pill {
  font-size: 0.74rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  transition: var(--ease);
}

.link-pill:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
}

/* ================= SIMULATOR (GLASS & MODERN INPUTS) ================= */
.sim-form-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.15fr 0.95fr;
  gap: 14px;
  align-items: end;
}

@media (max-width: 920px) { .sim-form-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .sim-form-grid { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sim-scenarios-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 780px) { .sim-scenarios-3 { grid-template-columns: 1fr; } }

.scenario-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
  transition: var(--ease);
}

.scenario-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.scenario-card.scen-stress { border-top: 2px solid rgba(239, 68, 68, 0.75); }
.scenario-card.scen-base   { border-top: 2px solid rgba(56, 189, 248, 0.8); }
.scenario-card.scen-opt    { border-top: 2px solid rgba(52, 211, 153, 0.8); }

.scenario-big {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FFFFFF;
}

.scenario-bar-bg {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-top: 6px;
}

.scenario-bar-fill {
  height: 100%;
  border-radius: 999px;
}

/* ================= MACRO & SECTORS ================= */
.sentiment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.sentiment-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--ease);
}

.sentiment-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.sentiment-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sentiment-pill { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.sent-Positivo { background: var(--green-soft); color: var(--emerald-bright); border: 1px solid rgba(52, 211, 153, 0.35); }
.sent-Negativo { background: var(--red-soft); color: var(--red-bright); border: 1px solid rgba(239, 68, 68, 0.35); }
.sent-Neutro   { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border); }

.macro-overview-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
@media (max-width: 860px) { .macro-overview-grid { grid-template-columns: 1fr; } }

.signal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { font-size: 0.74rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); }
.chip-stress   { background: var(--red-soft); color: #FCA5A5; border-color: rgba(239, 68, 68, 0.35); }
.chip-positive { background: var(--green-soft); color: #6EE7B7; border-color: rgba(52, 211, 153, 0.35); }

.benchmarks-box { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.83rem; }
.bench-pill { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; padding: 6px 11px; }
.link-list { display: flex; flex-direction: column; gap: 8px; }

.ext-link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: var(--ease);
}

.ext-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.sources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.source-tile { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px; display: flex; flex-direction: column; gap: 6px; }
.source-tile-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.status-dot { font-size: 0.71rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.dot-ok   { background: var(--green-soft); color: var(--emerald-bright); }
.dot-warn { background: var(--amber-soft); color: var(--amber); }

.headlines-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; }
.headline-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: var(--ease);
}
.headline-item:hover { border-color: var(--border-hover); }
.headline-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.73rem; color: var(--text-muted); }
.headline-title { font-weight: 600; font-size: 0.89rem; color: var(--text-strong); }
.headline-title:hover { color: var(--accent); }
.headline-summary { font-size: 0.79rem; color: var(--text-muted); margin: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 36px;
  font-size: 0.83rem;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
}
.footer-inner p { margin: 4px 0; }

/* ================= LIVE LOADING & TACTICAL ZONES ================= */
.loading-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(255, 255, 255, 0.03) 70%);
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tactical-alert-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09) 0%, rgba(56, 189, 248, 0.06) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}

.tactical-alert-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tactical-alert-main {
  font-size: 1.08rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.tactical-pos-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  background: rgba(52, 211, 153, 0.16);
  color: #6EE7B7;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.tactical-pos-badge.near_resistance {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.4);
}

.tactical-pos-badge.below_support {
  background: var(--accent-soft);
  color: #7DD3FC;
  border-color: rgba(56, 189, 248, 0.45);
}

.tactical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.tactical-prices-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 4px 0;
}

.tactical-prices-hero.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 760px) {
  .tactical-prices-hero,
  .tactical-prices-hero.three-cols {
    grid-template-columns: 1fr;
  }
}

.tactical-price-pill {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--ease);
}

.tactical-price-pill:hover {
  border-color: var(--border-hover);
}

.tactical-price-pill span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tactical-price-pill strong {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tactical-price-pill small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.pill-price { border-left: 3px solid var(--amber); }
.pill-price strong { color: #FDE68A; }

.pill-buy { border-left: 3px solid var(--emerald-bright); }
.pill-buy strong { color: var(--emerald-bright); }

.pill-sell { border-left: 3px solid var(--accent); }
.pill-sell strong { color: #7DD3FC; }

/* ================= RADAR DE SAÍDA (TAKE PROFIT) ================= */
.aux-tab-exit {
  border-color: rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}
.aux-tab-exit:hover {
  border-color: rgba(239, 68, 68, 0.65);
  color: #FFFFFF;
}
.aux-tab-exit.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
  border-color: rgba(239, 68, 68, 0.65);
  color: #FECACA;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.16);
}

.role-exit {
  background: var(--red-soft);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.exit-banner {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(155deg, rgba(239, 68, 68, 0.08) 0%, rgba(255, 255, 255, 0.03) 62%);
}

.exit-pill-note {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #FECACA;
  font-size: 0.78rem;
  padding: 6px 13px;
  border-radius: 999px;
}

.exit-warning-box {
  background: rgba(251, 191, 36, 0.09);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.84rem;
  color: #FDE68A;
}

.exit-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: var(--ease);
}

.exit-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.exit-card.is-peak {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(155deg, rgba(239, 68, 68, 0.1) 0%, rgba(255, 255, 255, 0.03) 58%);
  box-shadow: var(--shadow), 0 0 22px rgba(239, 68, 68, 0.15);
}

.exhaustion-wrap {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}

.exhaustion-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 7px;
}

.exhaustion-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.exhaustion-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.inst-compare-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 560px) {
  .inst-compare-strip { grid-template-columns: 1fr; }
}

/* ================= VEREDITO DA IA (EFEITO "CÉREBRO DE IA") ================= */
.ai-verdict-banner {
  position: relative;
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: var(--ease);
}

.ai-verdict-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-verdict-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.ai-verdict-action {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-verdict-text {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.38;
  color: #F8FAFC;
  letter-spacing: 0.012em;
}

/* Positivo: Acumulação / Compra Forte — Esmeralda com glow externo sutil */
.ai-verdict-banner.tone-emerald {
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(10, 16, 15, 0.88) 72%) padding-box,
    linear-gradient(135deg, rgba(52, 211, 153, 0.85), rgba(16, 185, 129, 0.28), rgba(56, 189, 248, 0.45)) border-box;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(52, 211, 153, 0.22);
}
.ai-verdict-banner.tone-emerald .ai-verdict-label,
.ai-verdict-banner.tone-emerald .ai-verdict-action {
  color: #6EE7B7;
}

/* Negativo: Alerta de Topo / Venda / Fique de Fora — Rubi com glow externo sutil */
.ai-verdict-banner.tone-red {
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(20, 10, 12, 0.9) 72%) padding-box,
    linear-gradient(135deg, rgba(248, 113, 113, 0.85), rgba(239, 68, 68, 0.3), rgba(244, 63, 94, 0.55)) border-box;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(248, 113, 113, 0.22);
}
.ai-verdict-banner.tone-red .ai-verdict-label,
.ai-verdict-banner.tone-red .ai-verdict-action {
  color: #FCA5A5;
}

/* Tático / Swing Trade — Ciano / Violeta AI glow */
.ai-verdict-banner.tone-sky {
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.17) 0%, rgba(12, 15, 22, 0.9) 72%) padding-box,
    linear-gradient(135deg, rgba(56, 189, 248, 0.8), rgba(139, 92, 246, 0.45)) border-box;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.14), inset 0 1px 0 rgba(125, 211, 252, 0.2);
}
.ai-verdict-banner.tone-sky .ai-verdict-label,
.ai-verdict-banner.tone-sky .ai-verdict-action {
  color: #7DD3FC;
}

/* Aguarde — Âmbar */
.ai-verdict-banner.tone-amber {
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.16) 0%, rgba(20, 16, 10, 0.9) 72%) padding-box,
    linear-gradient(135deg, rgba(251, 191, 36, 0.8), rgba(245, 158, 11, 0.35)) border-box;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.13), inset 0 1px 0 rgba(253, 224, 71, 0.2);
}
.ai-verdict-banner.tone-amber .ai-verdict-label,
.ai-verdict-banner.tone-amber .ai-verdict-action {
  color: #FCD34D;
}

/* ================= AUTOCOMPLETE & ATALHOS DO SIMULADOR ================= */
.autocomplete-field { position: relative; }
.autocomplete-wrap { position: relative; width: 100%; }

.autocomplete-wrap input[type="text"] {
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(14, 15, 20, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
}

.ac-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.84rem;
  transition: var(--ease);
}

.ac-item:hover,
.ac-item.active {
  background: rgba(56, 189, 248, 0.14);
}

.ac-item-main { display: flex; flex-direction: column; min-width: 0; }
.ac-item-main strong { color: #FFFFFF; font-size: 0.9rem; }
.ac-item-main span {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-item-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.ac-mkt-tag {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.ac-mkt-tag.us {
  background: rgba(56, 189, 248, 0.15);
  color: #7DD3FC;
  border-color: rgba(56, 189, 248, 0.4);
}

.ac-global-action {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 10px;
  color: #7DD3FC;
}

.quick-days-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.day-chip {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
}

.day-chip:hover {
  transform: translateY(-2px);
  color: #FFFFFF;
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
}

/* ================= MODO INICIANTE / AVANÇADO & WATCHLIST ================= */
.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
}

.view-mode-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.view-mode-toggle.is-beginner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(56, 189, 248, 0.12) 100%);
  border-color: rgba(52, 211, 153, 0.55);
  color: #A7F3D0;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.16);
}

.view-mode-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: var(--ease);
  flex-shrink: 0;
}

.view-mode-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #9CA3AF;
  transition: var(--ease);
}

.view-mode-toggle.is-beginner .view-mode-track {
  background: rgba(16, 185, 129, 0.35);
  border-color: var(--emerald-bright);
}

.view-mode-toggle.is-beginner .view-mode-thumb {
  transform: translateX(16px);
  background: var(--emerald-bright);
}

body.mode-beginner .advanced-only,
body.mode-beginner .breakdown-box,
body.mode-beginner .mini-metrics,
body.mode-beginner .tactical-grid,
body.mode-beginner .parecer-cols,
body.mode-beginner .links-strip {
  display: none !important;
}

.beginner-price-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

@media (max-width: 520px) {
  .beginner-price-strip { grid-template-columns: 1fr; }
}

.beginner-price-cell { display: flex; flex-direction: column; gap: 3px; }
.beginner-price-cell span {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.beginner-price-cell strong {
  font-size: 1.12rem;
  font-weight: 700;
  color: #FFFFFF;
}

.star-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #8E95A5;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  transition: var(--ease);
}

.star-btn:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(251, 191, 36, 0.6);
  color: #FDE68A;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.2);
}

.star-btn.is-starred {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.7);
  color: #FBBF24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.22);
}

.aux-tab-watchlist {
  border-color: rgba(251, 191, 36, 0.35);
  color: #FDE68A;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.aux-tab-watchlist:hover {
  border-color: rgba(251, 191, 36, 0.65);
  color: #FFFFFF;
}

.aux-tab-watchlist.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-color: rgba(251, 191, 36, 0.65);
  color: #FEF3C7;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.watchlist-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #FDE68A;
  font-size: 0.72rem;
  font-weight: 700;
}

.role-watchlist {
  background: rgba(251, 191, 36, 0.14);
  color: #FDE68A;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.watchlist-banner {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(155deg, rgba(251, 191, 36, 0.08) 0%, rgba(255, 255, 255, 0.03) 62%);
}

.watchlist-empty-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.watchlist-quick-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.watchlist-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: var(--ease);
}

.watchlist-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover), 0 0 22px rgba(251, 191, 36, 0.12);
}

.watchlist-scores-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 600px) {
  .watchlist-scores-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ================= BANNER DE AVISO GLOBAL CRIPTO ================= */
.crypto-warning-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14) 0%, rgba(239, 68, 68, 0.12) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 15px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow), 0 0 22px rgba(251, 191, 36, 0.12);
}

.crypto-warning-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #FECACA;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.crypto-warning-banner p {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.5;
  color: #FEF3C7;
}

.crypto-warning-banner p strong {
  color: #FDE68A;
}

/* ================= LIVE ASSET HERO HEADER & TRADINGVIEW SHELL ================= */
.live-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.live-price-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.live-price-value {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.05;
}

.live-price-delta {
  font-size: 0.86rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.tv-chart-shell {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 8px 0 8px;
  box-shadow: var(--shadow);
}

.tv-chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 10px 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ================= BOTÃO DETALHES & MODAL MASTER-DETAIL GLASSMORPHISM ================= */
.btn-detalhes {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(139, 92, 246, 0.22) 100%);
  color: #F8FAFC;
  border: 1px solid rgba(56, 189, 248, 0.48);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.14);
}

.btn-detalhes:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.85);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.26);
  color: #FFFFFF;
}

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 18px;
  overflow-y: auto;
  animation: modalFadeIn 0.22s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1140px;
  background: linear-gradient(160deg, rgba(18, 20, 28, 0.96) 0%, rgba(10, 11, 16, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 26px 28px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: modalSlideUp 0.24s ease;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .modal-dialog {
    padding: 18px 16px 22px;
    border-radius: 16px;
  }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #EAEAEA;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--ease);
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.65);
  color: #FFFFFF;
}

.modal-loading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 40px 16px;
}

.modal-body-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-asset-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding-right: 44px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-title-main {
  margin: 6px 0 0;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-horizon-pills {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.modal-top-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .modal-top-grid {
    grid-template-columns: 1fr;
  }
}

.wiki-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wiki-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wiki-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 560px) {
  .wiki-meta-grid {
    grid-template-columns: 1fr;
  }
}

.wiki-summary-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.56;
  color: #D4D7DD;
  max-height: 130px;
  overflow-y: auto;
  padding-right: 4px;
}

.wiki-topics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wiki-topic {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wiki-topic-head {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7DD3FC;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wiki-leader-text {
  font-size: 0.87rem;
  font-weight: 600;
  color: #F8FAFC;
  line-height: 1.4;
}

.wiki-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wiki-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #BAE6FD;
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--ease);
}

.wiki-source-pill:hover {
  transform: translateY(-2px);
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(125, 211, 252, 0.65);
  color: #FFFFFF;
}

/* ================= PROJEÇÃO GRÁFICA DA IA (NO MODAL ABAIXO DO TRADINGVIEW) ================= */
.chart-forecast-card {
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.09) 0%, rgba(255, 255, 255, 0.03) 65%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow), 0 0 22px rgba(139, 92, 246, 0.12);
  transition: var(--ease);
}

.chart-forecast-card.tone-emerald {
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.12) 0%, rgba(255, 255, 255, 0.025) 68%);
  box-shadow: var(--shadow), 0 0 20px rgba(16, 185, 129, 0.15);
}

.chart-forecast-card.tone-red {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(140deg, rgba(239, 68, 68, 0.12) 0%, rgba(255, 255, 255, 0.025) 68%);
  box-shadow: var(--shadow), 0 0 20px rgba(239, 68, 68, 0.15);
}

.chart-forecast-card.tone-sky {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.1) 0%, rgba(255, 255, 255, 0.025) 68%);
  box-shadow: var(--shadow), 0 0 20px rgba(56, 189, 248, 0.12);
}

.chart-forecast-card.tone-amber {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(140deg, rgba(251, 191, 36, 0.1) 0%, rgba(255, 255, 255, 0.025) 68%);
  box-shadow: var(--shadow), 0 0 20px rgba(251, 191, 36, 0.12);
}

.forecast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.forecast-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.forecast-period-pills {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
}

.forecast-custom-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: var(--ease);
}

.forecast-custom-wrap:focus-within {
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

.forecast-custom-input {
  width: 112px;
  background: transparent;
  border: none;
  outline: none;
  color: #F8FAFC;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.forecast-custom-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.btn-custom-dias {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28) 0%, rgba(139, 92, 246, 0.32) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(125, 211, 252, 0.55);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}

.btn-custom-dias:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.42) 0%, rgba(139, 92, 246, 0.46) 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.forecast-pill {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 13px;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
}

.forecast-pill:hover {
  transform: translateY(-1px);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.16);
}

.forecast-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28) 0%, rgba(139, 92, 246, 0.28) 100%);
  color: #FFFFFF;
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.forecast-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.forecast-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 780px) {
  .forecast-dual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .forecast-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.forecast-block {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forecast-block-retro {
  border-left: 3px solid rgba(148, 163, 184, 0.65);
}

.forecast-block-proj {
  border-left: 3px solid rgba(167, 139, 250, 0.85);
}

.chart-forecast-card.tone-emerald .forecast-block-proj {
  border-left-color: rgba(52, 211, 153, 0.9);
}

.chart-forecast-card.tone-red .forecast-block-proj {
  border-left-color: rgba(248, 113, 113, 0.9);
}

.chart-forecast-card.tone-sky .forecast-block-proj {
  border-left-color: rgba(56, 189, 248, 0.9);
}

.forecast-block-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #CBD5E1;
}

.forecast-block-text {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.56;
  color: #F8FAFC;
}

.forecast-error-box {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  padding: 13px 15px;
  color: #FDE68A;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ================= RADAR DE SMART MONEY (CONGRESSO DOS EUA — GLASSMORPHISM) ================= */
.congress-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(16, 185, 129, 0.06) 55%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow), 0 0 22px rgba(245, 158, 11, 0.1);
  transition: var(--ease);
}

.congress-card.tone-bullish {
  border-color: rgba(52, 211, 153, 0.48);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.11) 0%, rgba(245, 158, 11, 0.06) 60%, rgba(255, 255, 255, 0.025) 100%);
  box-shadow: var(--shadow), 0 0 22px rgba(16, 185, 129, 0.13);
}

.congress-card.tone-bearish {
  border-color: rgba(248, 113, 113, 0.48);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.11) 0%, rgba(255, 255, 255, 0.025) 70%);
  box-shadow: var(--shadow), 0 0 20px rgba(239, 68, 68, 0.12);
}

.congress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.congress-net-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6EE7B7;
}

.congress-card.tone-bearish .congress-net-pill {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.45);
  color: #FCA5A5;
}

.congress-card.tone-neutral .congress-net-pill {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.38);
  color: #E2E8F0;
}

.congress-body-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 15px;
}

.congress-summary-text {
  font-size: 0.94rem;
  font-weight: 700;
  color: #F8FAFC;
}

.congress-politicians-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.politician-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F1F5F9;
}

.congress-footnote {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.smart-money-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(16, 185, 129, 0.06) 55%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow), 0 0 22px rgba(245, 158, 11, 0.1);
  transition: var(--ease);
}

.smart-money-card.tone-bullish {
  border-color: rgba(52, 211, 153, 0.5);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.11) 0%, rgba(245, 158, 11, 0.06) 60%, rgba(255, 255, 255, 0.025) 100%);
  box-shadow: var(--shadow), 0 0 22px rgba(16, 185, 129, 0.14);
}

.smart-money-card.tone-bearish {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(255, 255, 255, 0.025) 70%);
  box-shadow: var(--shadow), 0 0 20px rgba(239, 68, 68, 0.12);
}

.smart-money-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.smart-money-grid.single-col {
  grid-template-columns: 1fr;
}

@media (max-width: 720px) {
  .smart-money-grid {
    grid-template-columns: 1fr;
  }
}

.smart-money-block {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sm-block-head {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #CBD5E1;
}

.modal-verdict-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ================= TICKER TAPE GLOBAL (BARRA FIXA NO TOPO) ================= */
body {
  padding-top: 34px;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 0;
  display: flex;
  white-space: nowrap;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ticker-move {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 100%;
  animation: ticker 30s linear infinite;
}

.ticker-wrap:hover .ticker-move,
.ticker-move:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
}

.ticker-symbol {
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.ticker-price {
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.ticker-up {
  color: #10b981;
  font-weight: 700;
}

.ticker-down {
  color: #ef4444;
  font-weight: 700;
}

.ticker-flat {
  color: #94a3b8;
  font-weight: 600;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ================= GRID DE FUNDAMENTOS NO MODAL (ESTILO STATUS INVEST / FUNDAMENTUS) ================= */
.fundamentals-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.fundamentals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fundamentals-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 960px) {
  .fundamentals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .fundamentals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fund-kpi {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--ease);
}

.fund-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.35);
}

.fund-kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.fund-kpi-val {
  font-size: 1.08rem;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.fund-kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ================= BOTÃO & MODAL DE AUTENTICAÇÃO SAAS (GLASSMORPHISM) ================= */
.btn-auth {
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-auth:hover {
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(52, 211, 153, 0.7);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.25);
}

.btn-auth.logged-in {
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.4);
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-auth.logged-in:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.2);
}

.auth-modal-card {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  padding: 28px 26px 26px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.12) inset;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-modal-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 34px;
}

.auth-modal-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #34d399;
}

.auth-modal-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
}

.auth-modal-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
}

.auth-tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: var(--ease);
}

.auth-tab-btn:hover {
  color: #f8fafc;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.3));
  color: #ffffff;
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.18);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background: rgba(2, 6, 23, 0.55);
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 0.92rem;
  transition: var(--ease);
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
  background: rgba(2, 6, 23, 0.78);
}

.auth-feedback {
  font-size: 0.83rem;
  line-height: 1.4;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.auth-feedback.is-error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.auth-feedback.is-success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.auth-submit-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.92rem;
  margin-top: 2px;
}

.auth-foot-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================================
   FMP INSTITUTIONAL TERMINAL THEME — SHARP DATA-FIRST OVERRIDES
   Paleta: #0B1120 (Main) · #0A192F (Cards) · #2563EB (Primary) · #10B981 (Action)
           #D97706 (Amber) · #06B6D4 (Cyan) · #F1F5F9 (Text) · #94A3B8 (Muted)
           Bordas retas 4px–6px · Divisões 1px solid #1E293B
   ============================================================================ */

body {
  padding-top: 30px;
}

.main-content {
  padding-top: 16px;
  padding-bottom: 40px;
}

/* Ticker Tape fina e limpa no topo absoluto */
.ticker-wrap {
  height: 30px;
  background: #070E1C;
  border-bottom: 1px solid #1E293B;
  padding: 0;
  align-items: center;
  backdrop-filter: none;
}

.ticker-item {
  font-size: 0.76rem;
  margin-right: 32px;
  color: #94A3B8;
}

.ticker-symbol {
  color: #F1F5F9;
  font-weight: 700;
}

.ticker-price {
  color: #F1F5F9;
}

.ticker-up { color: #10B981; }
.ticker-down { color: #EF4444; }

/* Botão Entrar/Cadastrar discreto estilo FMP */
.btn-auth {
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid var(--primary);
  border-radius: 4px;
  backdrop-filter: none;
}

.btn-auth:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: none;
}

.btn-auth.logged-in {
  background: #0F213B;
  color: #F1F5F9;
  border: 1px solid #1E293B;
}

.btn-auth.logged-in:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.5);
  color: #FCA5A5;
}

/* Subbarra USD/BRL compacta */
.usd-delta-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.usd-sub-metrics {
  display: inline-flex;
  gap: 10px;
  font-size: 0.74rem;
  color: #94A3B8;
}

.usd-sub-metrics strong {
  color: #F1F5F9;
  font-weight: 600;
}

.usd-date {
  font-size: 0.72rem;
  color: #64748B;
}

/* Listas compactas (substituindo blocos de texto longos) */
.inline-bullets {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #CBD5E1;
}

.compact-bullets {
  margin: 4px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.8rem;
  color: #94A3B8;
}

.compact-bullets strong {
  color: #F1F5F9;
}

/* Aviso Cripto compacto */
.crypto-warning-banner {
  background: #0A192F;
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-left: 3px solid #D97706;
  border-radius: 4px;
  padding: 8px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.crypto-warning-badge {
  background: rgba(217, 119, 6, 0.16);
  color: #F59E0B;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 4px;
  font-size: 0.68rem;
  padding: 2px 7px;
}

/* Barra Mestre: Mercados + Busca */
.master-bar {
  gap: 10px;
  margin-bottom: 14px;
}

.market-toggle {
  background: #0A192F;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 4px;
  gap: 4px;
  box-shadow: none;
  backdrop-filter: none;
}

.market-btn {
  border-radius: 4px;
  padding: 8px 10px;
  border: 1px solid transparent;
  background: transparent;
}

.market-btn:hover {
  background: #0F213B;
  border-color: #1E293B;
}

.market-btn.active {
  background: rgba(37, 99, 235, 0.16);
  border-color: #2563EB;
  box-shadow: inset 0 -2px 0 #2563EB;
}

.market-flag {
  border-radius: 4px;
  font-size: 0.72rem;
}

.search-form {
  background: #0A192F;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 6px;
  gap: 8px;
}

.search-form input[type="search"] {
  border: 1px solid #1E293B;
  background: #070E1C;
  border-radius: 4px;
  padding: 8px 12px;
}

.search-form input[type="search"]:focus,
input:focus,
select:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
  background: #070E1C;
}

/* Faixa de KPIs modulares em 6 colunas (sem Hero gigante) */
.hero-strip {
  display: block;
  margin-bottom: 14px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 1100px) {
  .hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kpi-card {
  background: #0A192F;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: none;
  backdrop-filter: none;
  gap: 2px;
}

.kpi-card:hover {
  transform: none;
  border-color: #334155;
  background: #0F213B;
}

.kpi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94A3B8;
}

.kpi-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #F1F5F9;
  font-variant-numeric: tabular-nums;
}

.kpi-short .kpi-value { color: #06B6D4; }
.kpi-medium .kpi-value { color: #2563EB; }
.kpi-long .kpi-value { color: #10B981; }

.kpi-foot {
  font-size: 0.7rem;
  color: #94A3B8;
}

/* Abas de Horizontes e Módulos (Estilo FMP com destaque #2563EB) */
.horizon-tabs-bar {
  background: #0A192F;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 14px;
  gap: 8px;
  backdrop-filter: none;
  box-shadow: none;
}

.horizon-tab {
  background: #070E1C;
  border: 1px solid #1E293B;
  border-radius: 4px;
  padding: 9px 12px;
}

.horizon-tab:hover {
  background: #0F213B;
  border-color: #334155;
  transform: none;
}

.horizon-tab.active {
  background: rgba(37, 99, 235, 0.14);
  border-color: #2563EB;
  box-shadow: inset 0 -2px 0 #2563EB;
}

.horizon-tab .tab-kicker {
  color: #06B6D4;
  font-size: 0.65rem;
}

.aux-tab {
  background: #070E1C;
  border: 1px solid #1E293B;
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 0.78rem;
  color: #94A3B8;
}

.aux-tab:hover {
  color: #F1F5F9;
  border-color: #334155;
}

.aux-tab.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

/* Cards gerais, Rankings e Watchlist — bordas 6px e 1px solid #1E293B */
.card,
.horizon-card,
.watchlist-card,
.exit-card,
.sentiment-card,
.source-tile,
.ext-link-card,
.headline-item,
.sim-scenario-card {
  background: #0A192F;
  border: 1px solid #1E293B;
  border-radius: 6px;
  box-shadow: none;
  backdrop-filter: none;
}

.card {
  padding: 14px 16px;
}

.section-strip.card {
  padding: 12px 16px;
}

.horizon-card:hover,
.watchlist-card:hover,
.exit-card:hover {
  transform: none;
  border-color: #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.role-badge {
  border-radius: 4px;
  font-size: 0.66rem;
  padding: 2px 7px;
  letter-spacing: 0.05em;
}

.role-janela {
  background: rgba(37, 99, 235, 0.16);
  color: #60A5FA;
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.role-calc {
  background: rgba(6, 182, 212, 0.14);
  color: #06B6D4;
  border: 1px solid rgba(6, 182, 212, 0.32);
}

.role-exit {
  background: rgba(217, 119, 6, 0.16);
  color: #F59E0B;
  border: 1px solid rgba(217, 119, 6, 0.38);
}

.role-watchlist {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.mini-metric,
.tactical-price-pill,
.fund-kpi,
.forecast-block,
.smart-money-block {
  background: #070E1C;
  border: 1px solid #1E293B;
  border-radius: 4px;
}

.mini-metric strong,
.fund-kpi-val,
.live-price-value,
.score-number,
.tactical-price-pill strong {
  font-variant-numeric: tabular-nums;
}

/* Botões de Simulação em Verde de Ação (#10B981) */
.btn-open-sim,
#modal-btn-sim,
#btn-sim-submit {
  background: #10B981;
  color: #03150E;
  border-color: #10B981;
  font-weight: 700;
}

.btn-open-sim:hover,
#modal-btn-sim:hover,
#btn-sim-submit:hover {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF;
}

.btn-detalhes {
  background: rgba(37, 99, 235, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 4px;
}

.btn-detalhes:hover {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

/* Veredito Institucional (Bullet points limpos em vez de prosa longa) */
.ai-verdict-banner {
  background: #070E1C;
  border: 1px solid #1E293B;
  border-left: 3px solid #2563EB;
  border-radius: 4px;
  padding: 12px 14px;
  box-shadow: none;
  backdrop-filter: none;
}

.ai-verdict-banner.tone-emerald { border-left-color: #10B981; }
.ai-verdict-banner.tone-red { border-left-color: #EF4444; }
.ai-verdict-banner.tone-amber { border-left-color: #D97706; }
.ai-verdict-banner.tone-sky { border-left-color: #06B6D4; }

.ai-verdict-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #94A3B8;
  font-weight: 700;
}

.ai-verdict-action {
  font-size: 0.72rem;
  border-radius: 4px;
  padding: 2px 8px;
}

.verdict-bullets {
  margin: 8px 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #F1F5F9;
}

.verdict-bullets li::marker {
  color: #06B6D4;
}

/* ================= MODAL MASTER-DETAIL ESTILO FMP (2 COLUNAS: GRÁFICO + LATERAL DE DADOS) ================= */
.modal-overlay {
  background: rgba(5, 9, 18, 0.82);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  max-width: 1320px;
  background: #0B1120;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.modal-close-btn {
  border-radius: 4px;
  background: #0A192F;
  border: 1px solid #1E293B;
  color: #94A3B8;
}

.modal-close-btn:hover {
  background: #1E293B;
  color: #F1F5F9;
}

.modal-asset-header {
  background: #0A192F;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 12px 16px;
  padding-right: 48px;
}

.modal-title-main {
  margin: 0;
  font-size: 1.15rem;
}

.modal-fmp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: start;
}

@media (max-width: 1024px) {
  .modal-fmp-grid {
    grid-template-columns: 1fr;
  }
}

.modal-main-col,
.modal-side-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.tv-chart-shell,
.chart-forecast-card,
.fundamentals-card,
.smart-money-card,
.wiki-card {
  background: #0A192F;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: none;
  backdrop-filter: none;
}

.tv-chart-meta {
  font-size: 0.78rem;
  color: #94A3B8;
  margin-bottom: 8px;
}

/* Fundamentos em Tabela / Mini-cards compactos 2 colunas na lateral */
.fundamentals-sidebar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fundamentals-sidebar-grid .fund-kpi {
  padding: 8px 10px;
  gap: 2px;
}

.fundamentals-sidebar-grid .fund-kpi:hover {
  transform: none;
  border-color: #2563EB;
}

.fundamentals-sidebar-grid .fund-kpi-label {
  font-size: 0.68rem;
  color: #94A3B8;
}

.fundamentals-sidebar-grid .fund-kpi-val {
  font-size: 0.98rem;
  color: #F1F5F9;
}

.fundamentals-sidebar-grid .fund-kpi-sub {
  font-size: 0.68rem;
  color: #64748B;
}

/* Grid 2 colunas para Busca ao Vivo (Gráfico esquerda | Veredito + Zonas direita) */
.live-fmp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 14px;
  margin-top: 12px;
  align-items: start;
}

@media (max-width: 980px) {
  .live-fmp-grid {
    grid-template-columns: 1fr;
  }
}

.live-side-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Forecast pills & controls retos */
.forecast-pill,
.day-chip,
.btn-custom-dias,
.rank-badge,
.status-badge,
.wiki-source-pill,
.politician-chip,
.congress-net-pill,
.chip {
  border-radius: 4px;
}

.forecast-pill {
  background: #070E1C;
  border: 1px solid #1E293B;
  color: #94A3B8;
}

.forecast-pill.active,
.btn-custom-dias {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

.forecast-custom-input {
  border-radius: 4px;
  background: #070E1C;
  border: 1px solid #1E293B;
}

/* Modal de Autenticação SaaS (limpo e alinhado ao FMP Dark Mode) */
.auth-modal-card {
  background: #0A192F;
  border: 1px solid #1E293B;
  border-radius: 6px;
  backdrop-filter: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.auth-modal-eyebrow {
  color: #06B6D4;
}

.auth-tabs {
  background: #070E1C;
  border: 1px solid #1E293B;
  border-radius: 4px;
}

.auth-tab-btn {
  border-radius: 4px;
}

.auth-tab-btn.active {
  background: #2563EB;
  border: 1px solid #2563EB;
  box-shadow: none;
}

.auth-field input {
  background: #070E1C;
  border: 1px solid #1E293B;
  border-radius: 4px;
}

.auth-feedback {
  border-radius: 4px;
}

/* Rodapé discreto */
.site-footer {
  border-top: 1px solid #1E293B;
  background: #070E1C;
  padding: 14px 0;
  font-size: 0.76rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================= OURO MACRO INLINE · FIIs TAB · WIKIPEDIA INVESTOR LINKS ================= */
.macro-inline-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gold-inline-ticker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.gold-inline-label {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #F59E0B;
  background: rgba(217, 119, 6, 0.16);
  border: 1px solid rgba(217, 119, 6, 0.38);
  padding: 1px 6px;
  border-radius: 4px;
}

.market-toggle {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1120px) {
  .market-toggle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .market-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.market-flag-fiis {
  background: rgba(217, 119, 6, 0.18);
  color: #F59E0B;
  border: 1px solid rgba(217, 119, 6, 0.38);
}

.investor-link {
  color: #06B6D4;
  text-decoration: none;
  border-bottom: 1px dotted #06B6D4;
  font-weight: 600;
  padding-bottom: 1px;
  transition: var(--ease);
}

.investor-link:hover {
  color: #F59E0B;
  border-bottom: 1px solid #F59E0B;
  text-decoration: none;
}

/* ================= BARRA DE NAVEGAÇÃO PRINCIPAL & SEÇÃO DE NOTÍCIAS (CRÉDITO ÀS FONTES) ================= */
.top-primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #070E1C;
  border: 1px solid #1E293B;
  border-radius: 4px;
  padding: 3px;
  flex-wrap: wrap;
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #94A3B8;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}

.top-nav-link:hover {
  color: #F1F5F9;
  background: #0F213B;
}

.top-nav-link.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.nav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
  font-variant-numeric: tabular-nums;
}

.top-nav-link.active .nav-count-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* Grade dedicada de Notícias com crédito explícito às fontes originais */
.news-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 860px) {
  .news-feed-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: #0A192F;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: var(--ease);
}

.news-card:hover {
  border-color: #334155;
  background: #0D1F38;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.news-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.28);
  padding: 2px 7px;
  border-radius: 4px;
}

.news-date-meta {
  font-size: 0.72rem;
  color: #94A3B8;
  font-variant-numeric: tabular-nums;
}

.news-card-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: #F1F5F9;
  line-height: 1.4;
  text-decoration: none;
}

.news-card-title:hover {
  color: #60A5FA;
  text-decoration: underline;
}

.news-card-summary {
  margin: 0;
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.5;
}

.news-card-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #1E293B;
  font-size: 0.74rem;
  color: #94A3B8;
  flex-wrap: wrap;
}

.news-card-credit strong {
  color: #F1F5F9;
}

.news-source-link {
  color: #2563EB;
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
}

.news-source-link:hover {
  color: #06B6D4;
}


/* ================= ALERTAS & NOTIFICAÇÕES · SINO · SUPORTE & CONTATO ================= */
.bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 38px;
  padding: 6px 10px;
}

.bell-icon {
  font-size: 0.92rem;
  line-height: 1;
}

.bell-badge,
.nav-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 0.67rem;
  font-weight: 700;
  background: #D97706;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.top-nav-link.active .nav-alert-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

.role-alerts {
  background: rgba(6, 182, 212, 0.14);
  color: #06B6D4;
  border: 1px solid rgba(6, 182, 212, 0.36);
}

.aux-tab-alerts {
  border-color: rgba(6, 182, 212, 0.34);
  color: #67E8F9;
}

.aux-tab-alerts.active {
  background: rgba(37, 99, 235, 0.22);
  border-color: #2563EB;
  color: #FFFFFF;
}

.alerts-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.34);
}

.alerts-status-pill.is-portal-only {
  background: rgba(217, 119, 6, 0.14);
  color: #FBBF24;
  border-color: rgba(217, 119, 6, 0.34);
}

.alerts-auth-gate-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.alerts-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: start;
}

@media (max-width: 960px) {
  .alerts-top-grid {
    grid-template-columns: 1fr;
  }
}

.alerts-card {
  background: #0A192F;
  border: 1px solid #1E293B;
  border-radius: 6px;
}

.alerts-kicker {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #06B6D4;
}

.alerts-card-head h3 {
  margin: 2px 0 8px;
  font-size: 0.98rem;
  color: #F1F5F9;
}

.alerts-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alerts-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 680px) {
  .alerts-form-row {
    grid-template-columns: 1fr;
  }
}

.alerts-form input[type="text"],
.alerts-form input[type="email"],
.alerts-form input[type="number"],
.alerts-form select {
  width: 100%;
  background: #070E1C;
  border: 1px solid #1E293B;
  border-radius: 4px;
  color: #F1F5F9;
  padding: 8px 10px;
  font-size: 0.84rem;
  font-family: inherit;
}

.alerts-form input:focus,
.alerts-form select:focus {
  outline: none;
  border-color: #2563EB;
}

.alerts-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #CBD5E1;
  cursor: pointer;
}

.alerts-checkbox-row input[type="checkbox"] {
  accent-color: #10B981;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.alerts-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.alert-scope-chip {
  background: #070E1C;
  color: #94A3B8;
  border: 1px solid #1E293B;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--ease);
}

.alert-scope-chip:hover {
  color: #F1F5F9;
  border-color: #2563EB;
  background: rgba(37, 99, 235, 0.16);
}

.alerts-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.alerts-inline-feedback {
  font-size: 0.78rem;
  padding: 7px 10px;
  border-radius: 4px;
  border: 1px solid #1E293B;
}

.alerts-inline-feedback.is-success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.alerts-inline-feedback.is-error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

/* Lista de Regras Configuradas */
.alerts-rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 14px;
  background: #070E1C;
  border: 1px solid #1E293B;
  border-left: 3px solid #2563EB;
  border-radius: 4px;
}

.alert-rule-row.is-paused {
  opacity: 0.65;
  border-left-color: #475569;
}

.alert-rule-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.alert-rule-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.alert-ticker-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.18);
  color: #93C5FD;
  border: 1px solid rgba(37, 99, 235, 0.36);
}

.alert-ticker-tag.is-scope {
  background: rgba(6, 182, 212, 0.14);
  color: #67E8F9;
  border-color: rgba(6, 182, 212, 0.34);
}

.alert-rule-state {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
}

.alert-rule-state.is-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.alert-rule-state.is-paused {
  background: rgba(148, 163, 184, 0.16);
  color: #94A3B8;
}

.alert-rule-desc {
  font-size: 0.84rem;
  color: #F1F5F9;
  font-weight: 600;
}

.alert-rule-meta {
  font-size: 0.74rem;
  color: #94A3B8;
}

.alert-rule-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-danger-ghost {
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.34);
}

.btn-danger-ghost:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #FFFFFF;
}

/* Central de Avisos Recentes (Portal) */
.portal-notifs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-notif-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: #070E1C;
  border: 1px solid #1E293B;
  border-radius: 4px;
}

.portal-notif-item.is-unread {
  border-left: 3px solid #D97706;
  background: rgba(10, 25, 47, 0.92);
}

.portal-notif-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.portal-notif-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-notif-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #F1F5F9;
}

.portal-notif-msg {
  margin: 0;
  font-size: 0.8rem;
  color: #CBD5E1;
  line-height: 1.45;
}

.portal-notif-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: #94A3B8;
  flex-wrap: wrap;
}

.notif-email-tag {
  color: #34D399;
  font-weight: 600;
}

/* Bloco de Suporte & Contato (Seção Alertas + Rodapé) */
.support-contact-card {
  border-color: rgba(6, 182, 212, 0.28);
  background: #0A192F;
}

.support-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.support-email-text {
  color: #06B6D4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.support-contact-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-support-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94A3B8;
}

.footer-support-link {
  color: #06B6D4;
  font-weight: 600;
  text-decoration: none;
}

.footer-support-link:hover {
  text-decoration: underline;
  color: #67E8F9;
}

.btn-copy-inline {
  background: #0A192F;
  color: #CBD5E1;
  border: 1px solid #1E293B;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--ease);
}

.btn-copy-inline:hover {
  border-color: #06B6D4;
  color: #FFFFFF;
}


/* ================= MOTOR CRIPTO ISOLADO · AVISO METODOLÓGICO · ONDE ACOMPANHAR ================= */
.crypto-warning-copy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #E2E8F0;
}

.crypto-warning-copy strong {
  color: #FBBF24;
}

.modal-crypto-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 6px;
}

.crypto-links-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.crypto-links-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crypto-links-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #06B6D4;
}

.crypto-links-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.card-onde-acompanhar-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #06B6D4;
  margin-right: 4px;
}
