/* ============================
   PALETA E BASE – LANDING DARK
   ============================ */

:root {
  --bg-body: #020617;
  --bg-layer: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.95);
  --bg-glass: rgba(15, 23, 42, 0.82);

  --primary: #0ea5e9;
  --primary-soft: rgba(14, 165, 233, 0.16);
  --primary-dark: #0369a1;
  --accent: #38bdf8;

  /* Secundário/terciário mais claros para contraste em fundo #020617 (WCAG / legibilidade) */
  --text-main: #e5e7eb;
  --text-muted: #b4bcc8;
  --text-soft: #cbd5e1;

  --border-subtle: rgba(148, 163, 184, 0.28);
  --border-strong: rgba(30, 64, 175, 0.8);

  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.95);
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.9);

  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;

  /* Alinhado à altura do header institucional (fixed) */
  --site-main-offset: 5.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.85), transparent 60%),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.85), transparent 55%),
    #020617;
  color: var(--text-main);
  margin: 0;
}

/* Deixa o container mais “wide” tipo site financeiro */
.container {
  max-width: 1140px;
}

/* Links genéricos */
a {
  text-decoration: none;
}

/* ============================
   NAVBAR / BRAND
   ============================ */
.navbar {
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.92) 0%,
      rgba(15, 23, 42, 0.85) 40%,
      rgba(15, 23, 42, 0.70) 70%,
      rgba(243, 244, 246, 0.10) 100%   /* <-- transição suave para o fundo claro */
  ) !important;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
}

.brand-main {
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.brand-highlight {
  font-weight: 500;
  color: var(--primary);
  margin-left: 6px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Hamburger icon mais visível em fundo escuro */
.navbar-light .navbar-toggler {
  border-color: rgba(148, 163, 184, 0.4);
}

.navbar-light .navbar-toggler-icon {
  filter: invert(0.8);
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--text-muted) !important;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  position: relative;
  transition: color var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.9;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-med);
}

.navbar .nav-link:hover {
  color: var(--primary) !important;
  opacity: 1;
}

.navbar .nav-link:hover::after {
  transform: scaleX(1);
}

/* Conteúdo abaixo do header fixo (site institucional) */
.site-main--offset {
  margin-top: var(--site-main-offset);
}

/* ============================
   HEADER INSTITUCIONAL (site)
   Fintech / trading: autoridade, conversão, dark
   ============================ */

.site-header--institutional.navbar {
  z-index: 1040;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0;
  border-bottom: none;
  background: linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.97) 0%,
      rgba(15, 23, 42, 0.95) 45%,
      rgba(15, 23, 42, 0.9) 100%
    )
    !important;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}

/* Linha inferior: gradiente + glow sutil */
.site-header--institutional::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(30, 64, 175, 0.15) 10%,
    rgba(14, 165, 233, 0.45) 50%,
    rgba(30, 64, 175, 0.15) 90%,
    transparent 100%
  );
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* Altura mínima maior com logo + tagline (desktop) */
@media (min-width: 992px) {
  :root {
    --site-main-offset: 6.125rem;
  }
}

.site-header--institutional .site-header__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.85rem;
  padding-bottom: 0.9rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 1200px) {
  .site-header--institutional .site-header__container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

.site-header__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem 0.85rem;
  margin-right: 1rem;
  min-width: 0;
  flex-shrink: 0;
  padding: 0.1rem 0 0.15rem;
  text-decoration: none;
}

.site-header--institutional .site-header__logo,
.site-header--institutional .brand-logo.site-header__logo {
  height: 50px;
  width: 50px;
  max-height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header__wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1.1;
  min-width: 0;
}

.site-header__title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.4rem;
  row-gap: 0;
}

.site-header--institutional .site-header__title-line .brand-main {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.site-header--institutional .site-header__title-line .brand-highlight {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-left: 0.15rem;
}

.site-header__tagline {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.2;
  margin: 0;
  max-width: 12rem;
}

/* Collapse: empilhamento móvel + linha no desktop */
.site-header__collapse {
  position: relative;
  z-index: 2;
}

@media (max-width: 991.98px) {
  .site-header--institutional .site-header__collapse {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .site-header--institutional .site-header__collapse {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
  }
}

.site-header__cluster {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: 0;
  gap: 0.5rem 1.25rem;
  align-items: stretch;
}

@media (min-width: 992px) {
  .site-header__cluster {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    max-width: none;
    width: auto;
  }
}

.site-header__nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin: 0.25rem 0 0.5rem;
  padding: 0.25rem 0;
  gap: 0.1rem 0.15rem;
  border-top: 1px solid rgba(51, 65, 85, 0.35);
}

@media (min-width: 992px) {
  .site-header__nav {
    border-top: none;
    width: auto;
    flex: 0 1 auto;
    margin: 0 0.25rem 0 0.75rem;
    justify-content: flex-end;
    text-align: left;
  }
}

/* Tipografia de menu: peso, tracking, hover consistente com navbar global */
.site-header--institutional .site-header__nav .nav-link {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  padding: 0.5rem 0.55rem;
  opacity: 0.95;
  position: relative;
}

.site-header--institutional .site-header__end {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-left: 0;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  gap: 0.6rem 0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .site-header--institutional .site-header__end {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-top: 0;
    margin-left: 0.5rem;
    margin-right: 0;
    margin-bottom: 0;
    border-top: none;
    padding-top: 0;
  }
}

.site-header__user {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  width: 100%;
}

@media (min-width: 992px) {
  .site-header__user {
    width: auto;
  }
}

.site-header__user .nav-link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.45rem;
}

/* CTA conversão */
.btn.site-header__cta {
  width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.65);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(2, 132, 199, 0.22));
  color: #f0f9ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.35);
  transition:
    color var(--transition-med),
    border-color var(--transition-med),
    background var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-med);
  white-space: normal;
  flex: 0 0 auto;
}

.btn.site-header__cta:hover,
.btn.site-header__cta:focus {
  color: #000;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border-color: #7dd3fc;
  text-decoration: none;
  text-shadow: none;
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.45),
    0 10px 28px rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

.btn.site-header__cta:focus {
  outline: 2px solid rgba(14, 165, 233, 0.45);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .btn.site-header__cta {
    width: auto;
    white-space: nowrap;
  }
}

/* Idiomas: discretos, em dropdown */
.site-header__lang {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 8rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .site-header__lang {
    width: auto;
    max-width: none;
    margin: 0;
  }
}

.site-header__lang .dropdown-menu {
  min-width: 9.5rem;
  margin-top: 0.4rem;
}

button.site-header__lang-btn,
.site-header__lang-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.15rem;
  margin: 0;
  font-family: inherit;
  line-height: 1.1;
  padding: 0.3rem 0.55rem 0.3rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #a8b0bd;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 10px;
  cursor: pointer;
  transition:
    color var(--transition-med),
    border-color var(--transition-med),
    background var(--transition-med);
}

.site-header__lang-btn:hover,
.site-header__lang-btn:focus,
.site-header__lang-btn[aria-expanded="true"] {
  color: #e2e8f0;
  border-color: rgba(100, 116, 139, 0.55);
  background: rgba(15, 23, 42, 0.75);
  outline: none;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.site-header__lang-code {
  text-transform: uppercase;
}

.site-header__lang-caret {
  display: inline-block;
  font-size: 0.5rem;
  line-height: 1;
  opacity: 0.65;
  margin-left: 0.2rem;
}

.site-header__lang-menu {
  background: rgba(15, 23, 42, 0.99) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 0.3rem 0.35rem;
  z-index: 1060 !important;
}

.site-header__lang-menu .dropdown-item {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-header__lang-menu .dropdown-item:hover,
.site-header__lang-menu .dropdown-item:focus {
  background: rgba(14, 165, 233, 0.1);
  color: #f1f5f9;
  text-decoration: none;
}

/* Toggler: alinhar com fundo */
.site-header--institutional .site-header__toggler {
  border-color: rgba(100, 116, 139, 0.45);
  z-index: 2;
  position: relative;
}

/* Header custom (quando usado fora da navbar padrão) */

.main-header {
  background: #020617;
  color: #e5e7eb;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-nav a {
  margin-left: 16px;
  font-size: 0.85rem;
  color: #cbd5f5;
  text-decoration: none;
}

.main-nav a:hover {
  color: #ffffff;
}

.nav-logout {
  color: #f97373;
}

/* ============================
   HERO / TOPO – LANDING
   ============================ */

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 108px 0 80px 0;
  position: relative;
  overflow: hidden;
}

/* Fundo hero com “mapa” abstrato */
.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(circle at 95% 20%, rgba(59, 130, 246, 0.2), transparent 55%),
    linear-gradient(130deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.98));
  z-index: -3;
}

/* Halo à direita */
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 8%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow:
    0 0 120px rgba(56, 189, 248, 0.35),
    0 0 260px rgba(37, 99, 235, 0.35);
  opacity: 0.55;
  z-index: -2;
}

/* Badge “linha de serviço” */
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: radial-gradient(circle at left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.96));
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 8px;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
}

/* Título hero */
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-highlight {
  color: var(--primary);
}

/* Subtítulo hero */
.hero-subtitle {
  font-size: 0.98rem;
  margin-top: 18px;
  color: var(--text-soft);
  max-width: 600px;
}

/* Hero sem card lateral: texto aproveita largura do contentor */
.hero-main--full .hero-subtitle,
.hero-main--full .hero-subtitle.hero-subtitle--support {
  max-width: min(52rem, 100%);
}

@media (min-width: 1200px) {
  .hero-main--full .hero-subtitle,
  .hero-main--full .hero-subtitle.hero-subtitle--support {
    max-width: min(60rem, 100%);
  }
}

.hero-subtitle--support {
  font-size: 0.95rem;
}

.hero-lead-footnote {
  font-size: 0.82rem;
  max-width: min(48rem, 100%);
}

/* Pills de pilares hero */
.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.78rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  margin-right: 6px;
}

/* CTA hero */
.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Botão principal landing */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  border-radius: 999px;
  padding: 11px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #020617;
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.45);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    background var(--transition-med);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #020617;
  box-shadow: 0 18px 48px rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

/* Label do lado do CTA */
.hero-cta-secondary {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-cta-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  font-size: 0.72rem;
  color: #e5e7eb;
}

.hero-cta-desc {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Hero Card / Painel de métricas landing */

.hero-card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 16px;
  color: #e5e7eb;
}

/* Métricas rápidas */
.hero-card-metrics .hero-metric {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-metric-label {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Bloco único de destaque no card do hero (sem duas colunas) */
.hero-card-metrics--focus {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-card-metrics--focus .hero-metric {
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}

.hero-card-metrics--focus .hero-metric-label {
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: none;
  margin-top: 6px;
  color: #cbd5e1;
}

.hero-card-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero-card-list {
  margin-top: 12px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #d1d5db;
}

/* ============================
   MICRO-CHART – VERSÃO FINAL
   ============================ */

.micro-chart-header {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.micro-chart {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-strong);
}

/* Layout em linha: rótulo | barra | valor */
.micro-chart-row {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

/* Texto fixo à esquerda */
.micro-chart-label {
  width: 120px;
  font-size: 0.85rem;
  color: #e2e8f0;
  flex-shrink: 0;
}

/* Barra central */
.micro-chart-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin: 0 10px;
  overflow: hidden;
  position: relative;
}

/* Preenchimento da barra */
.micro-chart-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: left;
  transform: scaleX(0.6);
  opacity: 0.95;
  transition: transform 0.4s ease;
}

/* Cores individuais por ativo */
.fill-1 { background: #3b82f6; } /* açúcar */
.fill-2 { background: #10b981; } /* USD/BRL */
.fill-3 { background: #8b5b18; } /* café */
.fill-4 { background: #ff4603; } /* milho */
.fill-5 { background: #d6be0a; } /* ouro */
.fill-6 { background: #0ea5e9; } /* brent */
.fill-7 { background: #6366f1; } /* gás */
.fill-8 { background: #f472b6; } /* BDI */

/* Valor à direita */
.micro-chart-value {
  width: 90px;
  text-align: right;
  font-size: 0.85rem;
}

/* Anima as barras quando a página carrega */
body.loaded .micro-chart .micro-chart-fill.fill-1 { transform: scaleX(0.78); }
body.loaded .micro-chart .micro-chart-fill.fill-2 { transform: scaleX(0.50); }
body.loaded .micro-chart .micro-chart-fill.fill-3 { transform: scaleX(0.62); }
body.loaded .micro-chart .micro-chart-fill.fill-4 { transform: scaleX(0.55); }
body.loaded .micro-chart .micro-chart-fill.fill-5 { transform: scaleX(0.68); }
body.loaded .micro-chart .micro-chart-fill.fill-6 { transform: scaleX(0.60); }
body.loaded .micro-chart .micro-chart-fill.fill-7 { transform: scaleX(0.52); }

.micro-chart-footnote {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Textos de variação */
.text-up {
  color: #4ade80;
}

.text-down {
  color: #fb7185;
}

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

/* ============================
   SEÇÕES / TIPOGRAFIA – LANDING
   ============================ */

.section-default {
  padding: 72px 0;
  background: #020617;
}

.section-default:nth-of-type(even) {
  background: radial-gradient(circle at top left, #020617 0, #020617 35%, #020617 100%);
}

/* “kicker” acima do título */
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.section-title {
  font-weight: 700;
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: #f9fafb;
  letter-spacing: 0.04em;
}

.section-subtitle {
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 32px auto;
  font-size: 0.95rem;
}

.section-text {
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* ============================
   GRID “FOCO EM COMMODITIES”
   ============================ */

.segment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .segment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.segment-card {
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 18px 18px 20px 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med),
    background var(--transition-med);
}

.segment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.98);
  border-color: var(--border-strong);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
}

.segment-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.segment-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.segment-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================
   GRID “PARA QUEM”
   ============================ */

.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .who-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.who-card {
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 18px 18px 20px 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med),
    background var(--transition-med);
}

.who-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.98);
  border-color: var(--border-strong);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
}

.who-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.who-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================
   SOBRE – GRID “ABOUT”
   ============================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.about-item {
  background: var(--bg-glass);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.about-value {
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* ============================
   CARDS GENÉRICOS / SOLUÇÕES
   ============================ */

.card-feature {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at top, #020617, #020617 70%, #020617 100%);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med),
    background var(--transition-med);
}

.card-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.98);
  border-color: var(--border-strong);
  background: radial-gradient(circle at top, #020617, #020617 60%, #020617 100%);
}

.card-feature h5 {
  font-weight: 600;
  margin-bottom: 8px;
  color: #e5e7eb;
}

.card-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Seção “O que fazemos” — quatro cards com a mesma altura na linha */
.solucoes-cards-row > [class*="col-"] {
  display: flex;
}

.solucoes-cards-row .card-feature {
  flex: 1 1 auto;
  min-height: 100%;
}

.solucoes-cards-row .card-feature > p:last-child {
  flex-grow: 1;
}

/* “Pílula numérica” nos cards */
.icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* Lista com marcador “▹” */
.check-list {
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
  font-size: 0.92rem;
  color: #d1d5db;
}

.check-list li {
  margin-bottom: 6px;
}

.check-list li::before {
  content: "▹";
  margin-right: 8px;
  color: var(--primary);
  font-weight: 700;
}

/* ============================
   STEPS (METODOLOGIA)
   ============================ */

.steps-card {
  padding-top: 18px;
}

.steps-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0 0;
}

.steps-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.steps-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.steps-content {
  flex: 1;
}

.steps-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

.steps-text {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ============================
   CTA BAND FINAL
   ============================ */

.section-cta-band {
  padding: 42px 0;
  background: linear-gradient(90deg, #020617, #020617);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.cta-band-text {
  font-size: 0.96rem;
  color: #e5e7eb;
}

.cta-band-text span {
  display: block;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.cta-band-btn {
  white-space: nowrap;
}

/* ============================
   SECTION BAND
   ============================ */

.section-band {
  padding: 18px 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section-band-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.section-band-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.section-band-text strong {
  color: #e5e7eb;
}

.section-band-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pill {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  font-size: 0.78rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.96);
}

/* Institucional: CTAs e blocos de autoridade (BK Company) */
.btn-hero-secondary {
  display: inline-block;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e5e7eb !important;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition:
    background var(--transition-med),
    border-color var(--transition-med),
    transform var(--transition-med);
}

.btn-hero-secondary:hover {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.7);
  color: #f8fafc !important;
  text-decoration: none !important;
}

.section-default--spacious {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.authority-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .authority-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.authority-card {
  background: var(--bg-glass);
  border: 1px solid rgba(31, 41, 55, 0.9);
  border-radius: var(--radius-lg);
  padding: 22px 20px 24px;
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.authority-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.95);
  border-color: var(--border-strong);
}

.authority-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.authority-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.who-grid--four {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .who-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .who-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-cnpj--intl {
  font-size: 0.78rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* ============================
   CONTATO / FORM – LANDING
   ============================ */

.contact-card {
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.form-control {
  border-radius: 10px;
  font-size: 0.9rem;
  background: #020617;
  border: 1px solid rgba(51, 65, 85, 0.9);
  color: var(--text-main);
}

.form-control:focus {
  background: #020617;
  color: #e5e7eb;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.65);
}

/* Fale conosco: campos legíveis (texto digitado + placeholder) no card escuro */
.contact-card .form-control {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #f1f5f9;
}

.contact-card .form-control:focus {
  background: #0f172a;
  color: #f8fafc;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.65);
}

.contact-card .form-control::placeholder {
  color: var(--text-soft);
  opacity: 1;
}

label {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.contact-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================
   FOOTER – LANDING
   ============================ */

.footer-custom {
  padding: 16px 0;
  background: #020617;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-custom .footer-cnpj {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

/* ============================
   ALERTAS (FLASH)
   ============================ */

.alert {
  border-radius: 12px;
  font-size: 0.86rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.7);
  color: #bbf7d0;
}

.alert-danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.75);
  color: #fecaca;
}

/* ============================
   SWITCH DE IDIOMA
   ============================ */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.7);
  transition: transform 0.18s ease-out,
              box-shadow 0.18s ease-out,
              border-color 0.18s ease-out,
              background 0.18s ease-out;
}

.lang-flag:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.8);
}

.lang-flag.active {
  border-color: rgba(56, 189, 248, 1);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.96));
}

.nav-link-small {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ============================
   STATUS PILL – BASE DARK
   ============================ */

.status-pill {
  white-space: nowrap;
  font-size: 0.7rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.95);
}

.status-pill-active {
  border-color: rgba(56, 189, 248, 0.9);
  background: rgba(8, 47, 73, 0.9);
}

/* Mini listinhas dentro dos cards (landing/painel) */

.dash-mini-list {
  border-top: 1px dashed rgba(51, 65, 85, 0.9);
  padding-top: 8px;
}

.dash-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
}

.mini-label {
  font-size: 0.86rem;
  color: #e5e7eb;
}

.mini-sub {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.mini-badge {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  color: var(--text-muted);
}

/* Listas compactas */
.compact-list .dash-item-line {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(31, 41, 55, 0.9);
}

.compact-list .dash-item-line:last-child {
  border-bottom: none;
}

/* ============================
   DASHBOARD GRID / CARDS – PAINEL & LANDING
   ============================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 2fr 1.2fr 1.2fr;
  }

  .dashboard-grid .dash-card-main {
    grid-row: span 1;
  }
}

/* Card base escuro (landing / painel dark) */

.dash-card {
  background: var(--bg-glass);
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.dash-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 2px;
}

.dash-card-sub {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.dash-link {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
}

.dash-link:hover {
  text-decoration: underline;
}

.dash-card-body {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Botões ícone pequenos */

.icon-btn {
  padding: 4px 6px;
  color: var(--primary);
}

.icon-btn:hover {
  opacity: .7;
}

/* ============================
   PAINEL DO COLABORADOR – TEMA CLARO
   ============================ */

.section-painel-colab {
  background: #f3f4f6;
  color: #0f172a;
}

/* Container geral do painel */
.section-painel-colab .painel-wrap {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 28px 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

/* Header */
.section-painel-colab .painel-header {
  margin-bottom: 18px;
}

/* Títulos do painel */
.section-painel-colab .section-title {
  color: #0f172a !important;
}

.section-painel-colab .section-subtitle {
  color: #4b5563 !important;
}

.section-painel-colab .section-kicker {
  color: #2563eb !important;
}

/* Box do usuário */
.section-painel-colab .painel-user-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.section-painel-colab .painel-user-circle {
  background: #dbeafe;
  color: #1d4ed8;
}

.section-painel-colab .painel-user-name {
  color: #111827 !important;
}

.section-painel-colab .painel-user-logout {
  color: #6b7280;
}

.section-painel-colab .painel-user-logout:hover {
  color: #1d4ed8;
}

/* Cards em modo claro dentro do painel */
.section-painel-colab .dash-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #111827;
}

.section-painel-colab .dash-card-title {
  color: #0f172a;
}

.section-painel-colab .dash-card-sub {
  color: #6b7280;
}

.section-painel-colab .dash-link {
  color: #2563eb;
}

.section-painel-colab .dash-link:hover {
  text-decoration: underline;
}

.section-painel-colab .dash-card-body {
  color: #4b5563;
}

.section-painel-colab .dash-section-title {
  color: #9ca3af;
}

/* Status pills em modo claro */
.section-painel-colab .status-flow {
  gap: 6px;
}

.section-painel-colab .status-pill {
  background: #edf2f7;
  color: #1e293b;
  border-color: #cbd5e1;
}

.section-painel-colab .status-pill-active {
  background: #e1effe;
  color: #1e40af;
  border-color: #93c5fd;
}

/* Mini listinhas claras */
.section-painel-colab .dash-mini-list {
  border-top-color: #e5e7eb;
}

.section-painel-colab .mini-label {
  color: #111827;
}

.section-painel-colab .mini-sub {
  color: #6b7280;
}

.section-painel-colab .mini-badge {
  border-color: #e5e7eb;
  color: #111827;
  background: #f9fafb;
}

/* Listas compactas */
.section-painel-colab .compact-list .dash-item-line {
  border-bottom-color: #e5e7eb;
}

/* Links linha inteira no glossário */
.section-painel-colab .dash-link-wrapper {
  border-radius: 10px;
  padding: 6px 8px;
  margin: -4px -6px;
}

.section-painel-colab .dash-link-wrapper:hover {
  background: #f3f4ff;
}

/* Hero-card do glossário em tema claro */
.section-painel-colab .hero-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  padding: 18px 20px;
}

.section-painel-colab .hero-card::before {
  display: none;
}

/* Labels e inputs claros dentro do glossário */
.section-painel-colab .hero-card label {
  color: #6b7280;
}

.section-painel-colab .hero-card .form-control {
  background: #f9fafb;
  color: #111827;
  border: 1px solid #d1d5db;
}

.section-painel-colab .hero-card .form-control:focus {
  background: #ffffff;
  color: #111827;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* Tabela do glossário */
.section-painel-colab .glossario-table {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.section-painel-colab .glossario-table thead th {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  font-weight: 600;
  font-size: 0.82rem;
}

.section-painel-colab .glossario-table tbody tr {
  background: #ffffff;
}

.section-painel-colab .glossario-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.section-painel-colab .glossario-table tbody td {
  border-top: 1px solid #e5e7eb;
  color: #111827;
  vertical-align: top;
}

.section-painel-colab .glossario-table tbody tr:hover {
  background: #eef2ff;
}

/* Badge sigla */
.section-painel-colab .glossario-table .badge.badge-primary {
  background: #e0ecff !important;
  color: #1d4ed8 !important;
}

/* Categoria na tabela */
.section-painel-colab .glossario-table .mini-badge {
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #374151;
}

/* Mensagem "nenhum termo encontrado" */
.section-painel-colab #glossario-sem-resultados {
  color: #6b7280 !important;
}

/* Nota de rodapé do glossário */
.section-painel-colab .micro-chart-footnote {
  color: #9ca3af;
}

/* Ajuste para table-dark usada dentro do painel */
.section-painel-colab table.table-dark {
  background: #ffffff !important;
  color: #1e293b !important;
}

.section-painel-colab table.table-dark td,
.section-painel-colab table.table-dark th {
  border-color: #e2e8f0 !important;
}

.section-painel-colab table.table-dark tbody tr:hover {
  background: #f1f5f9 !important;
}

/* Inputs claros gerais do painel */
.section-painel-colab .form-control {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

.section-painel-colab .form-control:focus {
  border-color: #2b6cb0 !important;
  box-shadow: 0 0 0 1px rgba(43,108,176,0.3) !important;
}

/* ============================
   PLATAFORMA INTERNA – VARS
   ============================ */

:root {
  --app-bg: #f3f4f6;
  --app-surface: #ffffff;
  --app-border-subtle: #e5e7eb;
  --app-border-strong: #d1d5db;
  --app-text-main: #0f172a;
  --app-text-soft: #6b7280;
  --app-text-soft-stronger: #4b5563;
  --app-primary: #0f766e;
  --app-primary-soft: #ecfdf5;
  --app-primary-strong: #115e59;
  --app-danger: #b91c1c;
  --app-warning: #f97316;
  --app-radius-lg: 16px;
  --app-radius-md: 12px;
  --app-radius-pill: 999px;
  --app-shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
  --app-shadow-card: 0 10px 26px rgba(15, 23, 42, 0.06);
}

/* ============================
   SHELL DA APLICAÇÃO – APP_BASE
   ============================ */

.app-shell {
  display: flex;
  min-height: calc(100vh - 70px);
  background: var(--app-bg);
}

/* Sidebar fixa à esquerda */
.app-sidebar {
  width: 250px;
  background: #0b1f3a;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border-right: 1px solid #111827;
  position: sticky;
  top: 0;
  height: 100vh;
}

/* Marca da sidebar */
.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.app-sidebar-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #0f766e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ecfdf5;
}

.app-sidebar-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.app-sidebar-sub {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Navegação da sidebar */
.app-nav {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Título de seção dentro da sidebar */
.app-nav-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-top: 14px;
  margin-bottom: 4px;
}

/* Link da sidebar */
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #e5e7eb;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.08s ease;
}

.app-nav-item i {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
}

.app-nav-item:hover {
  background: rgba(148, 163, 184, 0.18);
  color: #f9fafb;
  transform: translateX(1px);
}

.app-nav-item-active {
  background: rgba(16, 185, 129, 0.16);
  color: #bbf7d0;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

/* Bloco de usuário na base da sidebar */
.app-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.app-user-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
}

.app-user-info {
  display: flex;
  flex-direction: column;
}

.app-user-name {
  font-size: 0.86rem;
  font-weight: 500;
  color: #e5e7eb;
}

.app-user-logout {
  font-size: 0.76rem;
  color: #9ca3af;
  text-decoration: none;
}

.app-user-logout:hover {
  color: #f87171;
}

/* Área principal da plataforma */
.app-main {
  flex: 1;
  padding: 22px 24px 32px;
  overflow-y: auto;
  background: var(--app-bg);
}

/* Cabeçalhos da área interna */
.app-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.app-header-simple {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-header-left {
  max-width: 60%;
}

.app-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #0ea5e9;
  margin-bottom: 4px;
}

.app-title {
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--app-text-main);
  margin-bottom: 4px;
}

.app-subtitle {
  font-size: 0.9rem;
  color: var(--app-text-soft);
  margin-bottom: 0;
}

.app-header-right {
  display: flex;
  align-items: center;
}

/* Chips de meta no cabeçalho */
.app-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.app-header-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--app-radius-pill);
  font-size: 0.78rem;
  border: 1px solid var(--app-border-subtle);
  background: #ffffff;
  color: #374151;
}

.app-header-chip-soft {
  background: #f3f4f6;
  color: #4b5563;
}

/* ============================
   GRID, CARDS, KPI – PLATAFORMA
   ============================ */

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.app-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.app-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.app-grid-form {
  align-items: flex-start;
}

.app-card {
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  padding: 18px 18px 16px 18px;
  box-shadow: var(--app-shadow-card);
  border: 1px solid var(--app-border-subtle);
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.app-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.app-card-subtitle,
.app-card-sub {
  font-size: 0.85rem;
  color: var(--app-text-soft);
  margin-bottom: 0;
}

.app-card-body {
  margin-top: 4px;
}

.app-card-highlight {
  border: 1px solid #c7d2fe;
  background: #eff6ff;
}

/* Cards específicos */
.app-card-form {
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  padding: 22px 22px 20px 22px;
  box-shadow: var(--app-shadow-soft);
  border: 1px solid var(--app-border-subtle);
}

.app-card-side {
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--app-border-subtle);
}

/* KPIs */
.app-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.app-kpi-card {
  background: var(--app-surface);
  border-radius: var(--app-radius-md);
  padding: 12px 14px;
  border: 1px solid var(--app-border-subtle);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.app-kpi-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-text-soft);
  margin-bottom: 3px;
}

.app-kpi-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--app-text-main);
}

.app-kpi-help {
  font-size: 0.78rem;
  color: var(--app-text-soft);
  margin-top: 2px;
}

/* Listas mini */
.app-mini-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.app-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.app-mini-row:last-child {
  border-bottom: none;
}

.app-mini-label {
  font-size: 0.86rem;
  font-weight: 500;
}

.app-mini-sub {
  font-size: 0.8rem;
  color: var(--app-text-soft);
}

.app-mini-value {
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}

.app-empty {
  font-size: 0.85rem;
  color: var(--app-text-soft);
}

/* Links internos */
.app-card-link,
.app-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--app-primary-strong);
  text-decoration: none;
}

.app-card-link:hover,
.app-link:hover {
  text-decoration: underline;
}

.app-link-muted {
  color: var(--app-text-soft);
}

/* Icon links (ações de tabela) */
.app-icon-link {
  font-size: 0.85rem;
  color: var(--app-text-soft-stronger);
  margin-left: 6px;
}

.app-icon-link:hover {
  color: var(--app-primary-strong);
}

/* Pills internas */
.app-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-pill {
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--app-border-subtle);
  background: #f9fafb;
}

.app-pill-green {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.app-pill-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.app-pill-amber {
  background: #fffbeb;
  color: #92400e;
  border-color: #fed7aa;
}

/* Steps reaproveitados na plataforma (fundo claro) — escopado para não sobrescrever a landing */
.app-shell .steps-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.app-shell .steps-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.app-shell .steps-item:last-child {
  border-bottom: none;
}

.app-shell .steps-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--app-primary-soft);
  color: var(--app-primary-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.app-shell .steps-content {
  flex: 1;
}

.app-shell .steps-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--app-text-main);
}

.app-shell .steps-text {
  font-size: 0.8rem;
  color: var(--app-text-soft);
}

/* Versão clara de status-pill dentro da plataforma */
.app-shell .status-pill {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  font-size: 0.75rem;
}

/* ============================
   FORMULÁRIOS – PLATAFORMA
   ============================ */

.app-shell .form-control,
.app-shell select.form-control,
.app-shell textarea.form-control {
  background: #ffffff;
  color: var(--app-text-main);
  border-radius: 10px;
  border: 1px solid var(--app-border-strong);
  font-size: 0.9rem;
  box-shadow: none;
}

.app-shell .form-control:focus,
.app-shell select.form-control:focus,
.app-shell textarea.form-control:focus {
  border-color: var(--app-primary);
  outline: 0;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.25);
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 500;
  color: #374151;
}

.app-form-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-link-back {
  font-size: 0.85rem;
  padding-left: 0;
}

/* ============================
   TABELAS – NEGOCIAÇÕES (lista na plataforma: ver platform.css)
   ============================ */

.neg-cell-sm {
  white-space: nowrap;
}

.neg-cell-md {
  min-width: 130px;
}

.neg-cell-actions {
  white-space: nowrap;
  font-size: 0.78rem;
}

.status-pill-light {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Listas genéricas */
.app-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.app-list-item {
  padding: 6px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.app-list-item:last-child {
  border-bottom: none;
}

.app-list-title {
  font-size: 0.86rem;
  font-weight: 500;
}

.app-list-sub {
  font-size: 0.8rem;
  color: var(--app-text-soft);
}

/* ============================
   RESPONSIVIDADE
   ============================ */

/* Layout legado (sem body.platform-app) — plataforma nova usa platform.css */
@media (max-width: 991.98px) {
  body:not(.platform-app) .app-shell {
    flex-direction: column;
  }

  body:not(.platform-app) .app-sidebar {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-right: none;
    border-bottom: 1px solid #041b4d;
    border-radius: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  body:not(.platform-app) .app-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  body:not(.platform-app) .app-nav-section-label {
    width: 100%;
  }

  body:not(.platform-app) .app-main {
    padding: 16px 16px 24px;
  }

  body:not(.platform-app) .app-header,
  body:not(.platform-app) .app-header-simple {
    flex-direction: column;
  }

  body:not(.platform-app) .app-header-left {
    max-width: 100%;
  }

  body:not(.platform-app) .app-kpi-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
.alert-auto {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  .alert-auto.is-hiding {
    opacity: 0;
    transform: translateY(-4px);
  }/* ======= BADGES ======= */

.dd-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dd-low    { background: #e0fce8; color: #1e7b2a; }
.dd-medium { background: #fff4d6; color: #b98300; }
.dd-high   { background: #ffe1d9; color: #b52e2e; }
.dd-critical { background: #ffb8b1; color: #8b0000; }

/* ======= TIMELINE ======= */

.dd-timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
}

.dd-timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #d1d5db;
}

.dd-event {
  position: relative;
  margin-bottom: 22px;
}

.dd-event-marker {
  position: absolute;
  left: -2px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: #3b82f6;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #3b82f6;
}

.dd-event-content {
  background: #ffffff;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.dd-event-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.dd-event-meta {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ======= FILTER BAR ======= */

.dd-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dd-filter-bar select,
.dd-filter-bar input {
  width: 240px;
}
/* ==========================
   DUE DILIGENCE – BADGES
   ========================== */

.dd-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.dd-low {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.dd-medium {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.dd-high {
  background: rgba(248, 113, 113, 0.15);
  color: #b91c1c;
}

.dd-critical {
  background: rgba(127, 29, 29, 0.2);
  color: #fee2e2;
}


/* ==========================
   ALERTA SANÇÕES (TOP BOX)
   ========================== */

.dd-sancao-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.dd-sancao-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.dd-sancao-alert-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.dd-sancao-icon {
  font-size: 1.4rem;
  margin-top: 0.1rem;
}

.dd-sancao-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.dd-sancao-sub {
  font-size: 0.85rem;
  opacity: 0.9;
}


/* ==========================
   TIMELINE
   ========================== */

.dd-timeline {
  position: relative;
  margin-left: 1rem;
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  border-left: 2px dashed #e5e7eb;
}

.dd-event {
  position: relative;
  margin-bottom: 1rem;
}

.dd-event-marker {
  position: absolute;
  left: -1.1rem;
  top: 0.8rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background: #fff;
}

.dd-event-content {
  background: #fff;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  font-size: 0.85rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.dd-event:hover .dd-event-content {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

/* RISCO – borda lateral forte */

.dd-risk-low .dd-event-content {
  border-left: 4px solid #16a34a;
}

.dd-risk-medium .dd-event-content {
  border-left: 4px solid #f59e0b;
}

.dd-risk-high .dd-event-content {
  border-left: 4px solid #dc2626;
}

/* HEADER DO EVENTO */

.dd-event-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.dd-event-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.dd-event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}

/* CHIPS (tipo / fonte / risco) */

.dd-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dd-chip-tipo {
  background: #eff6ff;
  color: #1d4ed8;
}

.dd-chip-fonte {
  background: #f5f3ff;
  color: #6d28d9;
}

.dd-chip-risco {
  background: #fef3c7;
  color: #92400e;
}

.dd-event-meta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.dd-event-meta i {
  margin-right: 0.25rem;
}

.dd-event-body {
  margin-top: 0.4rem;
  line-height: 1.4;
}

.dd-event-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: #2563eb;
}

.dd-event-link i {
  font-size: 0.7rem;
  margin-left: 0.2rem;
}


/* ==========================
   FILTROS
   ========================== */

.dd-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .dd-filter-bar {
    grid-template-columns: 1fr;
  }
}


/* ==========================
   CONSULTAS – status pill
   ========================== */

.dd-table-consultas td,
.dd-table-consultas th {
  vertical-align: middle;
  font-size: 0.8rem;
}

.dd-status-pill {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Exemplos básicos (ajusta se quiser mais granular) */
.dd-status-ok,
.dd-status_200 {
  background: #ecfdf5;
  color: #047857;
}

.dd-status-erro,
.dd-status_error {
  background: #fef2f2;
  color: #b91c1b;
}

.dd-status-http_403,
.dd-status-http_404,
.dd-status_http_403,
.dd-status_http_404 {
  background: #fef3c7;
  color: #92400e;
}
/* ====== DOCUMENTOS (NCDA / CIS) ====== */

.doc-page {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 32px 40px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #111827;
}

.doc-title-main {
  text-align: center;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.doc-title-sub {
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0;
  margin-bottom: 8px;
}

.doc-subtitle-center {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 20px;
}

.doc-parties-block {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #f9fafb;
}

.doc-section-header {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 4px;
}

.doc-label {
  font-weight: 600;
}

.doc-clause-title {
  margin-top: 18px;
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #111827;
}

.doc-section-title {
  margin-top: 20px;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #111827;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.doc-table td {
  border: 1px solid #e5e7eb;
  padding: 4px 6px;
  vertical-align: top;
}

.doc-label-cell {
  width: 30%;
  font-weight: 600;
  background: #f9fafb;
}

.doc-value-cell {
  width: 70%;
}

.doc-signatures {
  margin-top: 30px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.doc-signature {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
}

.doc-signature-line {
  border-top: 1px solid #111827;
  margin-bottom: 4px;
  margin-top: 36px;
}

.doc-signature-small {
  font-size: 0.8rem;
  color: #4b5563;
}

.doc-signature-table {
  width: 100%;
  border: 0;
  margin-top: 10px;
}

.doc-signature-table td {
  border: 0;
  text-align: center;
  padding-top: 20px;
}

.doc-small {
  font-size: 0.85rem;
  color: #4b5563;
}

.doc-footer {
  margin-top: 28px;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}

/* Versão print-friendly: esconde sidebar/menus na impressão */
@media print {
  .app-sidebar,
  .app-header,
  .app-header-simple,
  .app-kicker,
  .app-header-actions {
    display: none !important;
  }

  .app-main {
    margin: 0;
    padding: 0;
  }

  .app-card {
    box-shadow: none !important;
    border: none !important;
  }

  .doc-page {
    box-shadow: none !important;
    border-radius: 0;
    padding: 0;
  }
}

/* ============================
   HOME — duas frentes (commodities + plataforma)
   ============================ */

.home-dual-business {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.35) 0%, transparent 45%);
}

.dual-business-card {
  height: 100%;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-strong);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dual-business-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.dual-business-card--broker {
  border-top: 3px solid rgba(251, 191, 36, 0.65);
}

.dual-business-card--platform {
  border-top: 3px solid rgba(34, 211, 238, 0.75);
}

.dual-business-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.dual-business-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.dual-business-card > p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.dual-business-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.dual-business-list li {
  margin-bottom: 0.35rem;
}

@media (max-width: 767.98px) {
  .section-band-pills {
    justify-content: center;
  }
}

/* ============================
   Cookies — consentimento (site institucional)
   ============================ */
.cookie-consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
  padding: 0.85rem 0;
  background: rgba(15, 23, 42, 0.97);
  color: #e2e8f0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.cookie-consent-bar[hidden] {
  display: none !important;
}

.cookie-consent-bar--dismissed {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.cookie-consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-text {
  flex: 1 1 280px;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
  color: #cbd5e1;
  max-width: 58rem;
}

.cookie-consent-text a {
  color: #7dd3fc;
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: #bae6fd;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-consent-more {
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
}

.cookie-consent-more:hover {
  color: #e2e8f0;
  text-decoration: underline;
}

/* Mesmo padrão dos CTAs do site (.btn-primary-custom em index / contacto) */
.cookie-consent-bar .cookie-consent-accept.btn-primary-custom {
  min-width: 7rem;
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 0.9rem;
}

@media (max-width: 575.98px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-bar .cookie-consent-accept.btn-primary-custom {
    width: 100%;
  }
}
