/* ========================================================
   GESTOR FINANCEIRO - LANDING PAGE CORPORATIVA B2B
   Estilo Executivo: Modern Fintech em Azul Claro, Tipografia Precisa e Alto Contraste
   Com Demonstração Fiel e Idêntica ao Sistema Principal
   ======================================================== */

:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Paleta Corporativa Executiva em Azul Claro da Landing Page (Site Principal) */
  --site-bg: #f0f7ff;
  --site-bg-card: #ffffff;
  --site-bg-subtle: #f8fbff;
  --site-text-title: #0f172a;
  --site-text-body: #334155;
  --site-text-muted: #64748b;
  --site-border: #dbeafe;
  --site-border-hover: #7dd3fc;
  
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-glow: rgba(2, 132, 199, 0.25);

  --success: #059669;
  --danger: #e11d48;
  --warning: #d97706;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --container-max: 1240px;
}

/* Reset e Configurações Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  background-color: var(--site-bg);
  color: var(--site-text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section[id],
div[id] {
  scroll-margin-top: 85px;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fbff 35%, #edf5ff 70%, #f0f7ff 100%);
  color: var(--site-text-body);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 10%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 80% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 20% 70%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================================
   TOP ANNOUNCEMENT BAR
   ======================================================== */
.top-bar {
  background: linear-gradient(90deg, #e0f2fe 0%, #bae6fd 100%);
  border-bottom: 1px solid #7dd3fc;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  color: #0369a1;
  font-weight: 500;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-bar-badge {
  background: #ffffff;
  color: #0284c7;
  border: 1px solid #7dd3fc;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.15);
}

.top-bar-link {
  color: #0284c7;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.top-bar-link:hover {
  text-decoration: underline;
  color: #0369a1;
}

/* ========================================================
   HEADER / NAVBAR
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 247, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #dbeafe;
  box-shadow: 0 4px 20px -2px rgba(14, 165, 233, 0.06);
  width: 100%;
}

.site-header .container {
  max-width: 1360px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
  width: 100%;
}

/* LOGO TOTALMENTE ALINHADO E IMUNE A QUEBRAS */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-name-integra {
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.025em;
  font-size: 1.15rem;
}

.brand-name-capital {
  font-weight: 850;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.025em;
  font-size: 1.15rem;
}

.brand-tld-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.35);
  margin-left: 0.25rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.12);
  vertical-align: middle;
}

.brand-live-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2.2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.brand-badge {
  font-size: 0.62rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.35);
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  position: relative;
  padding: 0.4rem 0.25rem;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #0284c7;
}

.nav-pill {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  font-weight: 700;
  border: 1px solid rgba(2, 132, 199, 0.3);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

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

/* Botão Executivo de Alternância de Tema Corporativo (Design de Precisão B2B) */
.btn-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(14, 165, 233, 0.08);
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
  user-select: none;
}

.btn-theme-toggle:hover {
  background: #f0f7ff;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.18);
}

.btn-theme-toggle:active {
  transform: scale(0.94);
}

.theme-icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

/* Modo Claro: Exibe Ícone de Lua Corporativa */
.theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
  pointer-events: none;
}

.btn-compact {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  gap: 0.45rem;
}

.btn-nav-cta {
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Botões do Design System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: #f8fafc;
  color: #0284c7;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero-section {
  position: relative;
  padding: 5.5rem 0 3.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, rgba(14, 165, 233, 0.12) 0%, transparent 60%);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #bae6fd;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.1);
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.22rem;
  line-height: 1.6;
  color: #475569;
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  padding: 1.75rem 2rem;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08);
  margin-top: 1rem;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid #e2e8f0;
}

.hero-stat-item:last-child {
  border-right: none;
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hero-stat-value.green {
  color: #059669;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.2rem;
}

/* ========================================================
   SEÇÃO DO SHOWROOM INTERATIVO (DEMONSTRAÇÃO REAL)
   ======================================================== */
.showcase-section {
  padding: 5rem 0 6rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid #bae6fd;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
}

.product-showcase-box {
  background: #0d121f;
  border-radius: var(--radius-xl);
  border: 1px solid #bae6fd;
  box-shadow: 0 25px 60px -15px rgba(2, 132, 199, 0.25), 0 0 0 1px rgba(14, 165, 233, 0.1);
  overflow: hidden;
}

/* Barra Superior da Janela Simulada */
.window-topbar {
  background: #141c2e;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-url-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 14, 23, 0.7);
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
}

.window-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pulse-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ========================================================
   SISTEMA IDÊNTICO AO PROJETO PRINCIPAL DENTRO DA DEMO
   (Variáveis e Classes Oficiais do Projeto Principal)
   ======================================================== */
#demo-system-root {
  --bg-main: #0c101d;
  --bg-card: #131929;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #1e293b;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: rgba(79, 70, 229, 0.15);

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --success-text: #34d399;

  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --danger-text: #f87171;

  --info: #0284c7;
  --info-bg: rgba(2, 132, 199, 0.15);
  --info-text: #38bdf8;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);

  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 680px;
}

/* Cores de Rótulos de Categorias e Barra de Progresso */
#demo-system-root .cat-label-blue { color: #60a5fa; font-weight: 700; }
#demo-system-root .cat-label-green { color: #34d399; font-weight: 700; }
#demo-system-root .cat-label-yellow { color: #fbbf24; font-weight: 700; }
#demo-system-root .cat-label-rose { color: #fda4af; font-weight: 700; }
#demo-system-root .cat-label-cyan { color: #22d3ee; font-weight: 700; }

#demo-system-root .demo-num-strong {
  color: var(--text-main);
  font-weight: 700;
}

#demo-system-root .demo-bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

#demo-system-root .demo-category-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

#demo-system-root .demo-category-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Telegram Simulated Backup Card */
#demo-system-root .backup-card-layout {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

@media (max-width: 900px) {
  #demo-system-root .backup-card-layout {
    flex-direction: column;
    align-items: stretch;
  }
}

#demo-system-root .demo-telegram-card {
  background: linear-gradient(145deg, #090e1a 0%, #0d1527 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.12);
  border-radius: 14px;
  padding: 1.35rem 1.45rem;
  width: 360px;
  min-width: 320px;
  max-width: 100%;
  font-size: 0.83rem;
  line-height: 1.65;
  color: #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

#demo-system-root .tg-bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#demo-system-root .tg-bot-badge {
  color: #60a5fa;
  font-weight: 800;
  font-size: 0.88rem;
}

#demo-system-root .tg-bot-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

#demo-system-root .tg-bubble-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#demo-system-root .tg-msg-status {
  font-size: 0.84rem;
}

#demo-system-root .tg-msg-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

#demo-system-root .tg-msg-file {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0;
}

#demo-system-root .tg-file-code {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.78rem;
}

#demo-system-root .tg-msg-security {
  color: #10b981;
  font-weight: 700;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
}

#demo-system-root .backup-info-content {
  flex: 1;
}

#demo-system-root .backup-info-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

#demo-system-root .backup-info-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ========================================================
   MODO CLARO DO SISTEMA SIMULADO (TEMA CLARO PADRÃO ORIGINAL)
   ======================================================== */
#demo-system-root.demo-light-mode {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  background-color: #f8fafc;
  color: #0f172a;
}

#demo-system-root.demo-light-mode .demo-telegram-card {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#demo-system-root.demo-light-mode .tg-bubble-header {
  border-bottom: 1px solid #cbd5e1;
}

#demo-system-root.demo-light-mode .tg-bot-badge {
  color: #4f46e5;
  font-weight: 800;
}

#demo-system-root.demo-light-mode .tg-bot-time {
  color: #64748b;
}

#demo-system-root.demo-light-mode .tg-msg-meta {
  color: #64748b;
}

#demo-system-root.demo-light-mode .tg-file-code {
  background: #ffffff;
  color: #4f46e5;
  border: 1px solid #cbd5e1;
}

#demo-system-root.demo-light-mode .tg-msg-security {
  color: #059669;
}

#demo-system-root.demo-light-mode .sidebar-brand h1 {
  color: #0f172a;
}

#demo-system-root.demo-light-mode .data-table th,
#demo-system-root.demo-light-mode .compact-report-table th {
  background: #f8fafc;
  color: #1e293b;
  border-bottom: 2px solid #e2e8f0;
}

#demo-system-root.demo-light-mode .data-table tr:hover td,
#demo-system-root.demo-light-mode .compact-report-table tr:hover td {
  background-color: #f8fafc;
}

#demo-system-root.demo-light-mode .table-row-total td {
  background: #eef2ff !important;
  color: #312e81 !important;
  font-weight: 800;
  border-top: 2px solid #c7d2fe;
}

#demo-system-root.demo-light-mode .excel-entry-row {
  background-color: rgba(79, 70, 229, 0.06);
  border-bottom: 2px solid #4f46e5;
}

#demo-system-root.demo-light-mode .excel-cell-input,
#demo-system-root.demo-light-mode .excel-cell-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

#demo-system-root.demo-light-mode .demo-category-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

/* ========================================================
   GRÁFICOS ANALÍTICOS DE MÉTRICAS & METAS (IDÊNTICOS AO PROJETO)
   ======================================================== */
#demo-system-root .metrics-charts-section {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#demo-system-root .metrics-two-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
}

#demo-system-root .metrics-full-chart {
  width: 100%;
}

#demo-system-root .chart-legend-custom {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-wrap: wrap;
}

#demo-system-root .leg-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

#demo-system-root .leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

#demo-system-root .leg-dot.meta { background: #f59e0b; }
#demo-system-root .leg-dot.real { background: #4f46e5; }
#demo-system-root .leg-dot.proj { background: #ec4899; }

/* Grid de Insights de Negócio */
#demo-system-root .metrics-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

#demo-system-root .insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#demo-system-root .insight-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

#demo-system-root .insight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

#demo-system-root .insight-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

#demo-system-root .insight-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#demo-system-root .insight-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

#demo-system-root .insight-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Layout Interno do Sistema */
#demo-system-root .app-layout {
  display: flex;
  min-height: 680px;
  position: relative;
  background-color: var(--bg-main);
  width: 100%;
}

/* Sidebar Idêntica ao Projeto */
#demo-system-root .app-sidebar {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 1.15rem 1rem;
  user-select: none;
  flex-shrink: 0;
}

#demo-system-root .sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

#demo-system-root .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

#demo-system-root .sidebar-brand .brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

#demo-system-root .sidebar-brand h1 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

#demo-system-root .sidebar-brand .subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Seletor de Workspace SaaS */
#demo-system-root .sidebar-workspace-area {
  margin-bottom: 1rem;
}

#demo-system-root .btn-workspace-select {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

#demo-system-root .btn-workspace-select:hover {
  border-color: var(--primary);
}

#demo-system-root .ws-pill-name {
  max-width: 140px;
  flex: 1;
  text-align: left;
  margin-left: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Itens de Navegação da Sidebar */
#demo-system-root .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-grow: 1;
}

#demo-system-root .sidebar-nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 0.65rem 0.65rem 0.25rem 0.65rem;
  text-transform: uppercase;
}

#demo-system-root .sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

#demo-system-root .sidebar-nav-item svg {
  flex-shrink: 0;
}

#demo-system-root .sidebar-nav-item:hover {
  background: var(--primary-light);
  color: var(--text-main);
}

#demo-system-root .sidebar-nav-item.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

#demo-system-root .sidebar-nav-item.active svg {
  color: #ffffff;
}

/* Rodapé da Sidebar */
#demo-system-root .sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

#demo-system-root .sidebar-theme-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

#demo-system-root .sidebar-theme-btn:hover {
  border-color: var(--primary);
}

#demo-system-root .sidebar-theme-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

#demo-system-root .theme-pill-tag {
  font-size: 0.68rem;
  background: rgba(79, 70, 229, 0.2);
  color: #a5b4fc;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

#demo-system-root .sidebar-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

#demo-system-root .user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

#demo-system-root .user-email-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Área de Conteúdo Principal */
#demo-system-root .app-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
}

#demo-system-root .content-container {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Barra Superior do Dashboard */
#demo-system-root .dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
}

#demo-system-root .dashboard-page-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

#demo-system-root .btn-new-entry {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* ========================================================
   CARDS DE RESUMO (KPIS) - IDÊNTICOS AO PROJETO
   ======================================================== */
#demo-system-root .kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

#demo-system-root .kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#demo-system-root .kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#demo-system-root .kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

#demo-system-root .card-income::before { background-color: var(--success); }
#demo-system-root .card-expense::before { background-color: var(--danger); }
#demo-system-root .card-balance::before { background-color: var(--primary); }
#demo-system-root .card-balance-today::before { background-color: var(--info); }

#demo-system-root .kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

#demo-system-root .kpi-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#demo-system-root .kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

#demo-system-root .income-icon { background-color: var(--success-bg); color: var(--success); }
#demo-system-root .expense-icon { background-color: var(--danger-bg); color: var(--danger); }
#demo-system-root .balance-icon { background-color: var(--primary-light); color: var(--primary); }
#demo-system-root .balance-today-icon { background-color: var(--info-bg); color: var(--info); }

#demo-system-root .kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

#demo-system-root .card-income .kpi-value { color: #10b981; }
#demo-system-root .card-expense .kpi-value { color: #ef4444; }

#demo-system-root .kpi-footer {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ========================================================
   GRÁFICOS & METAS - IDÊNTICOS AO PROJETO
   ======================================================== */
#demo-system-root .charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

#demo-system-root .chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

#demo-system-root .chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

#demo-system-root .chart-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

#demo-system-root .chart-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

#demo-system-root .chart-toggle-group {
  display: flex;
  gap: 0.35rem;
}

#demo-system-root .btn-chart-toggle {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}

#demo-system-root .btn-chart-toggle.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Meta de Lucro com Barra Reta do Projeto Principal */
#demo-system-root .goal-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

#demo-system-root .goal-val-current,
#demo-system-root .goal-val-missing,
#demo-system-root .goal-val-target {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#demo-system-root .goal-num-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

#demo-system-root .goal-num-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

#demo-system-root .goal-num-value.profit { color: #10b981; }

#demo-system-root .goal-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

#demo-system-root .goal-progress-bar {
  width: 100%;
  height: 9px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

#demo-system-root .goal-progress-fill.profit {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: var(--radius-full);
  width: 91.4%;
  transition: width 0.8s ease;
}

#demo-system-root .goal-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

#demo-system-root .goal-projection-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ========================================================
   FILTROS E TABELA - IDÊNTICOS AO PROJETO
   ======================================================== */
#demo-system-root .filters-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

#demo-system-root .filters-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.2fr 1.2fr 1.5fr;
  gap: 0.75rem;
  align-items: end;
}

#demo-system-root .filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

#demo-system-root .filter-item label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#demo-system-root .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#demo-system-root .search-input-wrapper svg {
  position: absolute;
  left: 0.65rem;
  color: var(--text-muted);
}

#demo-system-root input[type="text"],
#demo-system-root input[type="date"],
#demo-system-root select {
  width: 100%;
  padding: 0.5rem 0.7rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.8rem;
  outline: none;
  font-family: inherit;
}

#demo-system-root .search-input-wrapper input {
  padding-left: 2rem;
}

#demo-system-root .month-nav-group {
  display: flex;
  gap: 0.25rem;
}

#demo-system-root .btn-month-nav {
  padding: 0.5rem 0.55rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Tabela de Lançamentos */
#demo-system-root .table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

#demo-system-root .table-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

#demo-system-root .table-title-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#demo-system-root .table-title-area h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

#demo-system-root .counter-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background-color: var(--primary-light);
  color: #818cf8;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

#demo-system-root .btn-sort-pill {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

#demo-system-root .table-responsive {
  width: 100%;
  overflow-x: auto;
}

#demo-system-root .data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

#demo-system-root .data-table th {
  background-color: var(--bg-main);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

#demo-system-root .data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

#demo-system-root .data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Linha de Inserção Rápida Estilo Excel */
#demo-system-root .excel-entry-row {
  background-color: rgba(79, 70, 229, 0.06);
  border-bottom: 2px solid var(--primary);
}

#demo-system-root .excel-entry-row td {
  padding: 0.4rem 0.5rem !important;
}

#demo-system-root .excel-cell-input,
#demo-system-root .excel-cell-select {
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-main);
}

/* Badges e Células */
#demo-system-root .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

#demo-system-root .badge-success { background: var(--success-bg); color: var(--success-text); }
#demo-system-root .badge-danger { background: var(--danger-bg); color: var(--danger-text); }

#demo-system-root .server-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

#demo-system-root .cell-valor {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#demo-system-root .cell-valor.entrada { color: #10b981; }
#demo-system-root .cell-valor.saida { color: #ef4444; }

#demo-system-root .table-actions-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

#demo-system-root .btn-action {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

#demo-system-root .table-pagination {
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Modo Privacidade Oficial */
#demo-system-root .privacy-hidden {
  filter: blur(5px);
  user-select: none;
  transition: filter 0.2s ease;
}

/* ========================================================
   RELATÓRIOS OFICIAIS DENTRO DA DEMO (#pane-reports)
   ======================================================== */
#demo-system-root .reports-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 0.25rem;
}

#demo-system-root .reports-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#demo-system-root .reports-title-area h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

#demo-system-root .reports-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

#demo-system-root .reports-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

#demo-system-root .reports-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
}

#demo-system-root .reports-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Grid Lado a Lado 50% / 50% dos Relatórios */
#demo-system-root .reports-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

#demo-system-root .reports-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#demo-system-root .reports-card-header {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-card);
}

#demo-system-root .reports-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

#demo-system-root .reports-card-title-group h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

#demo-system-root .reports-card-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

#demo-system-root .reports-card-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#demo-system-root .daily-icon-bg {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

#demo-system-root .monthly-icon-bg {
  background: rgba(79, 70, 229, 0.15);
  color: #818cf8;
}

#demo-system-root .daily-selectors-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#demo-system-root .daily-select-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

#demo-system-root .page-select {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 0.76rem;
  font-weight: 600;
}

/* Mini KPIs dos Relatórios */
#demo-system-root .page-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

#demo-system-root .page-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

#demo-system-root .page-kpi-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

#demo-system-root .page-kpi-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

#demo-system-root .page-kpi-card.kpi-income .page-kpi-val { color: #10b981; }
#demo-system-root .page-kpi-card.kpi-expense .page-kpi-val { color: #ef4444; }
#demo-system-root .page-kpi-card.kpi-balance .page-kpi-val { color: #818cf8; }

#demo-system-root .compact-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

#demo-system-root .compact-report-table th {
  background-color: var(--bg-main);
  padding: 0.65rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

#demo-system-root .compact-report-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

#demo-system-root .compact-report-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ========================================================
   MÉTRICAS & METAS COM MÓDULOS ARRASTÁVEIS (#pane-metrics)
   ======================================================== */
#demo-system-root .metrics-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

#demo-system-root .metrics-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#demo-system-root .metrics-header-left .metrics-title-icon {
  font-size: 1.75rem;
}

#demo-system-root .metrics-header-left h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

#demo-system-root .metrics-cards-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 0.25rem;
}

#demo-system-root .metrics-drag-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

#demo-system-root .drag-hint-icon {
  font-size: 1.15rem;
  color: #818cf8;
  line-height: 1;
}

/* Grid de Métricas Arrastável */
#demo-system-root .metrics-goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

#demo-system-root .metric-goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

#demo-system-root .metric-goal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: var(--shadow-md);
}

#demo-system-root .metric-goal-card.dragging {
  opacity: 0.45;
  transform: scale(0.97);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 2px dashed #4f46e5 !important;
  cursor: grabbing;
}

#demo-system-root .card-drag-handle {
  cursor: grab;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius-sm);
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s;
  user-select: none;
}

#demo-system-root .card-drag-handle:hover {
  opacity: 1;
  color: var(--primary);
  background: var(--primary-light);
}

#demo-system-root .goal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#demo-system-root .goal-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

#demo-system-root .goal-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

#demo-system-root .goal-icon.revenue { background: rgba(79, 70, 229, 0.12); color: #818cf8; }
#demo-system-root .goal-icon.weekly { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
#demo-system-root .goal-icon.profit { background: rgba(16, 185, 129, 0.12); color: #10b981; }
#demo-system-root .goal-icon.pace { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

#demo-system-root .goal-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  line-height: 1.2;
}

#demo-system-root .goal-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Detalhamento das 4 Semanas da Meta Semanal */
#demo-system-root .weekly-breakdown-container {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.4rem 0;
}

#demo-system-root .weekly-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-main);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
}

/* ========================================================
   OUTRAS VIEWS INTERATIVAS DENTRO DA DEMO
   ======================================================== */
#demo-system-root .demo-view-pane {
  display: none;
  animation: fadeInPane 0.25s ease forwards;
}

#demo-system-root .demo-view-pane.active {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   SEÇÕES DA LANDING PAGE EXTERNA EM AZUL CLARO (SITE PRINCIPAL)
   ======================================================== */
.features-section {
  padding: 6rem 0;
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.06);
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: #7dd3fc;
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(14, 165, 233, 0.14);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0284c7;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.feature-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #334155;
}

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bullet-check {
  color: #059669;
  font-weight: 800;
}

/* Tabela Comparativa */
.comparison-section {
  padding: 6rem 0;
  background: transparent;
}

.comparison-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(14, 165, 233, 0.08);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th {
  padding: 1.4rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  border-bottom: 2px solid #bae6fd;
  background: #f0f7ff;
  color: #0f172a;
}

.comp-table th.col-feature { width: 35%; color: #475569; }
.comp-table th.col-bad { width: 20%; color: #e11d48; }
.comp-table th.col-complex { width: 20%; color: #d97706; }
.comp-table th.col-winner {
  width: 25%;
  background: #e0f2fe;
  color: #0284c7;
  border-top: 3px solid #0284c7;
  font-weight: 900;
}

.comp-table td {
  padding: 1.2rem 1.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.comp-table tr:hover td {
  background: #f8fbff;
}

.comp-table td.col-winner {
  background: rgba(2, 132, 199, 0.04);
  font-weight: 700;
  color: #0f172a;
}

.icon-bad { color: #e11d48; margin-right: 0.35rem; font-weight: 800; }
.icon-ok { color: #059669; margin-right: 0.35rem; font-weight: 800; }

/* Calculadora ROI */
.roi-section {
  padding: 6rem 0;
  background: transparent;
}

.roi-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  box-shadow: 0 12px 35px rgba(14, 165, 233, 0.08);
}

.roi-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.roi-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.roi-control-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.roi-val-badge {
  color: #0284c7;
  font-family: var(--font-mono);
  font-weight: 800;
}

.roi-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  outline: none;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
  border: 2px solid #ffffff;
}

.roi-results-col {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: center;
}

.roi-result-metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.roi-result-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: #0284c7;
}

.roi-result-label {
  font-size: 0.88rem;
  color: #475569;
}

.roi-result-footnote {
  font-size: 0.82rem;
  color: #0369a1;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #bae6fd;
  font-weight: 600;
}

/* Planos */
.pricing-section {
  padding: 6rem 0;
  background: transparent;
}

.pricing-single-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card-single {
  background: #ffffff;
  border: 2px solid #38bdf8;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 45px -10px rgba(2, 132, 199, 0.16);
  position: relative;
  text-align: center;
  transition: all 0.25s ease;
}

.pricing-card-single:hover {
  border-color: #0284c7;
  box-shadow: 0 25px 55px -10px rgba(2, 132, 199, 0.22);
}

@keyframes offerHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px 8px rgba(56, 189, 248, 0.45);
    transform: scale(1.018);
    border-color: #0284c7;
  }
  100% {
    box-shadow: 0 20px 45px -10px rgba(2, 132, 199, 0.16);
    transform: scale(1);
  }
}

@keyframes badgeOfferPop {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.65);
  }
}

.pricing-card-single.highlight-pulse {
  animation: offerHighlightPulse 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-badge.badge-pulse {
  animation: badgeOfferPop 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pricing-badge-row .pricing-badge {
  position: static;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  text-transform: uppercase;
}

.pricing-tag-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.3);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.pricing-card-single .pricing-plan-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.pricing-card-single .pricing-plan-desc {
  font-size: 1.05rem;
  color: #475569;
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.pricing-card-single .pricing-price-wrap {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.04) 0%, rgba(2, 132, 199, 0.08) 100%);
  border: 1.5px dashed rgba(2, 132, 199, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.pricing-anchor-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pricing-old-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
}

.pricing-old-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #94a3b8;
  text-decoration: line-through;
}

.pricing-discount-pill {
  font-size: 0.8rem;
  font-weight: 800;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.pricing-main-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}

.pricing-main-price .pricing-currency {
  font-size: 1.8rem;
  font-weight: 850;
  color: #0284c7;
  line-height: 1;
}

.pricing-main-price .pricing-val {
  font-size: 4.6rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.pricing-terms {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.pricing-terms strong {
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
}

.pricing-terms span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
}

.pricing-no-recurrence {
  font-size: 0.8rem;
  font-weight: 800;
  color: #059669;
  margin-top: 0.25rem;
}

.pricing-highlights-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%);
  border-left: 4px solid #0284c7;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0369a1;
  text-align: left;
  margin-bottom: 1.75rem;
}

.pricing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.5rem;
  text-align: left;
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.pricing-features-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.45;
}

.pricing-features-grid li svg {
  color: #059669;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feature-bonus {
  background: rgba(254, 240, 138, 0.35);
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #854d0e;
  font-weight: 500;
}

.feature-bonus .bonus-star {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.pricing-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.btn-pricing-hero {
  width: 100%;
  max-width: 520px;
  padding: 1.15rem 2.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.4);
}

.pricing-secure-note {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

/* FAQ */
.faq-section {
  padding: 6rem 0;
  background: transparent;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.04);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  padding: 1.3rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question:hover { color: #0284c7; }
.faq-chevron { transition: transform 0.25s ease; color: #64748b; }
.faq-item.active .faq-chevron { transform: rotate(180deg); color: #0284c7; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.6rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
  transition: max-height 0.4s ease-in-out;
}

/* Final CTA */
.final-cta-section {
  padding: 6rem 0;
}

.cta-box {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 25px 60px -10px rgba(2, 132, 199, 0.4);
}

.cta-title { font-size: 2.6rem; font-weight: 900; color: #ffffff; margin-bottom: 1rem; }
.cta-desc { font-size: 1.15rem; color: #e0f2fe; max-width: 640px; margin: 0 auto 2.5rem; }

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1.75rem;
}

/* Rodapé */
.site-footer {
  background: #f0f7ff;
  border-top: 1px solid #dbeafe;
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
  color: #64748b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-title { font-size: 0.95rem; font-weight: 800; color: #0f172a; margin-bottom: 1rem; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-nav a { color: #475569; }
.footer-nav a:hover { color: #0284c7; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dbeafe;
  padding-top: 2rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Modal e Botão WhatsApp */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active { display: flex; }

.modal-content {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-title { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin-bottom: 0.4rem; }
.modal-subtitle { font-size: 0.88rem; color: #64748b; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.82rem; font-weight: 600; color: #334155; }

.form-input, .form-select {
  background: #f8fbff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #0f172a;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
  background: #ffffff;
}

.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.floating-whatsapp-btn:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

/* ========================================================
   RESPONSIVIDADE AJUSTADA - NENHUM ELEMENTO FORA DA TELA
   ======================================================== */
@media (max-width: 1200px) {
  /* Em telas menores que 1200px, esconde o menu textual para garantir
     que o logo e o botão de Garantir Licença fiquem com 100% de destaque e sem quebra */
  .nav-links {
    display: none;
  }
  .brand-subtitle {
    display: none; /* Economiza espaço horizontal no cabeçalho */
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .btn-compact .btn-text-desktop {
    display: none; /* Apenas ícone para "Abrir Sistema" */
  }
  .btn-compact {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-full);
  }
  .btn-nav-cta {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  #demo-system-root .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  #demo-system-root .charts-grid { grid-template-columns: 1fr; }
  #demo-system-root .filters-row { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-features-grid { grid-template-columns: 1fr; }
  .roi-card { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.15rem; }
  .hero-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .pricing-card-single { padding: 2rem 1.25rem; }
  .pricing-main-price .pricing-val { font-size: 3.5rem; }
  #demo-system-root .app-layout { flex-direction: column; }
  #demo-system-root .app-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  #demo-system-root .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem 0;
  }
  #demo-system-root .sidebar-nav-item {
    width: auto;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.5rem 0.7rem;
  }
  #demo-system-root .sidebar-nav-section-title,
  #demo-system-root .sidebar-workspace-area,
  #demo-system-root .sidebar-footer {
    display: none;
  }
  #demo-system-root .filters-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .site-header .container.navbar {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  .brand-title { font-size: 0.92rem; }
  .brand-badge { display: none; }
  .brand-icon-box { width: 34px; height: 34px; }
  .btn-theme-toggle { width: 36px; height: 36px; font-size: 1rem; }
  .btn-compact { display: none; }
  .btn-nav-cta { padding: 0.45rem 0.75rem; font-size: 0.8rem; }
}

/* ========================================================
   TEMA ESCURO DO SITE PRINCIPAL (LANDING PAGE)
   Ativado via botão com apenas ícone 🌙 / ☀️ no header
   Nota: O simulador (#demo-system-root) mantém sua
   própria identidade visual fiel ao software.
   ======================================================== */
body.site-dark-theme {
  --site-bg: #090e17;
  --site-bg-card: #0f172a;
  --site-bg-subtle: #1e293b;
  --site-text-title: #f8fafc;
  --site-text-body: #cbd5e1;
  --site-text-muted: #94a3b8;
  --site-border: #1e293b;
  --site-border-hover: #38bdf8;
  background: linear-gradient(180deg, #060b13 0%, #0b1120 35%, #090e17 100%);
  color: #cbd5e1;
}

body.site-dark-theme .site-header {
  background: rgba(9, 14, 23, 0.92);
  border-bottom-color: #1e293b;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

body.site-dark-theme .brand-title {
  color: #f8fafc;
}

body.site-dark-theme .brand-name-integra {
  color: #f8fafc;
}

body.site-dark-theme .brand-name-capital {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.site-dark-theme .brand-tld-badge {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

body.site-dark-theme .brand-subtitle {
  color: #94a3b8;
}

body.site-dark-theme .nav-link {
  color: #94a3b8;
}

body.site-dark-theme .nav-link:hover {
  color: #38bdf8;
}

body.site-dark-theme .nav-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

body.site-dark-theme .btn-theme-toggle {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.site-dark-theme .btn-theme-toggle:hover {
  background: #1e293b;
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

body.site-dark-theme .theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  pointer-events: none;
}

body.site-dark-theme .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #f59e0b;
}

body.site-dark-theme .btn-theme-toggle:hover .theme-icon-sun {
  color: #fbbf24;
}

body.site-dark-theme .btn-secondary {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #334155;
}

body.site-dark-theme .btn-secondary:hover {
  background: #334155;
  color: #38bdf8;
  border-color: #38bdf8;
}

body.site-dark-theme .hero-section {
  background: radial-gradient(circle at 50% 10%, rgba(2, 132, 199, 0.15) 0%, transparent 60%);
}

body.site-dark-theme .hero-tag {
  background: #1e293b;
  border-color: #0369a1;
  color: #38bdf8;
}

body.site-dark-theme .hero-title {
  color: #f8fafc;
}

body.site-dark-theme .hero-subtitle {
  color: #94a3b8;
}

/* Faixa de Estatísticas do Topo (R$ 440.000+) no Tema Escuro */
body.site-dark-theme .hero-stats-strip {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.site-dark-theme .hero-stat-value {
  color: #f8fafc;
}

body.site-dark-theme .hero-stat-value.green {
  color: #34d399;
}

body.site-dark-theme .hero-stat-label {
  color: #94a3b8;
}

body.site-dark-theme .hero-stat-item {
  border-right-color: #1e293b;
}

body.site-dark-theme .stat-card {
  background: #0f172a;
  border-color: #1e293b;
}

body.site-dark-theme .stat-number {
  color: #38bdf8;
}

body.site-dark-theme .stat-label {
  color: #94a3b8;
}

body.site-dark-theme .section-tag {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

body.site-dark-theme .section-title {
  color: #f8fafc;
}

body.site-dark-theme .section-desc {
  color: #94a3b8;
}

body.site-dark-theme .feature-card {
  background: #0f172a;
  border-color: #1e293b;
}

body.site-dark-theme .feature-card:hover {
  border-color: #0284c7;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

body.site-dark-theme .feature-title {
  color: #f8fafc;
}

body.site-dark-theme .feature-desc {
  color: #94a3b8;
}

/* Tabela Comparativa (Critério de Avaliação) no Tema Escuro */
body.site-dark-theme .comparison-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

body.site-dark-theme .comp-table th {
  background: #1e293b;
  color: #f8fafc;
  border-bottom-color: #334155;
}

body.site-dark-theme .comp-table th.col-feature {
  color: #cbd5e1;
}

body.site-dark-theme .comp-table th.col-winner {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-top-color: #38bdf8;
}

body.site-dark-theme .comp-table td {
  color: #cbd5e1;
  border-bottom-color: #1e293b;
}

body.site-dark-theme .comp-table tr:hover td {
  background: rgba(30, 41, 59, 0.6);
}

body.site-dark-theme .comp-table td.col-winner {
  background: rgba(2, 132, 199, 0.08);
  color: #f8fafc;
}

/* Calculadora ROI Interativa no Tema Escuro */
body.site-dark-theme .roi-section {
  background: transparent;
}

body.site-dark-theme .roi-card,
body.site-dark-theme .roi-box {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.55);
}

body.site-dark-theme .roi-control-label {
  color: #f8fafc;
}

body.site-dark-theme .roi-val-badge {
  color: #38bdf8;
}

body.site-dark-theme .roi-slider {
  background: #1e293b;
}

body.site-dark-theme .roi-slider::-webkit-slider-thumb {
  background: #38bdf8;
  border-color: #0f172a;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.65);
}

body.site-dark-theme .roi-results-col,
body.site-dark-theme .roi-result-card {
  background: linear-gradient(145deg, #131c31 0%, #0b1120 100%);
  border: 1px solid #1e293b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

body.site-dark-theme .roi-result-label {
  color: #94a3b8;
}

body.site-dark-theme .roi-result-num {
  color: #38bdf8;
}

body.site-dark-theme .roi-result-footnote {
  background: rgba(15, 23, 42, 0.85);
  color: #38bdf8;
  border-color: #334155;
}

body.site-dark-theme .pricing-card-single {
  background: #0f172a;
  border-color: #0284c7;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5);
}

body.site-dark-theme .pricing-card-single .pricing-plan-title {
  color: #f8fafc;
}

body.site-dark-theme .pricing-card-single .pricing-plan-desc {
  color: #94a3b8;
}

body.site-dark-theme .pricing-card-single .pricing-price-wrap {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.1) 0%, rgba(2, 132, 199, 0.18) 100%);
  border-color: rgba(56, 189, 248, 0.35);
}

body.site-dark-theme .pricing-old-val {
  color: #64748b;
}

body.site-dark-theme .pricing-main-price .pricing-val {
  color: #f8fafc;
}

body.site-dark-theme .pricing-terms strong {
  color: #f8fafc;
}

body.site-dark-theme .pricing-terms span {
  color: #94a3b8;
}

body.site-dark-theme .pricing-highlights-banner {
  background: rgba(2, 132, 199, 0.18);
  border-left-color: #38bdf8;
  color: #7dd3fc;
}

body.site-dark-theme .pricing-features-grid li {
  color: #cbd5e1;
}

body.site-dark-theme .feature-bonus {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.35);
  color: #fef08a;
}

body.site-dark-theme .pricing-secure-note {
  color: #94a3b8;
}

body.site-dark-theme .faq-item {
  background: #0f172a;
  border-color: #1e293b;
}

body.site-dark-theme .faq-question {
  color: #f8fafc;
}

body.site-dark-theme .faq-answer {
  color: #94a3b8;
  border-top-color: #1e293b;
}

body.site-dark-theme .cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #334155;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

body.site-dark-theme .cta-title {
  color: #f8fafc;
}

body.site-dark-theme .cta-desc {
  color: #94a3b8;
}

body.site-dark-theme .guarantee-badge {
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.4);
  color: #34d399;
}

body.site-dark-theme .site-footer {
  background: #060b13;
  border-top-color: #1e293b;
  color: #94a3b8;
}

body.site-dark-theme .footer-col-title {
  color: #f8fafc;
}

body.site-dark-theme .footer-nav a {
  color: #94a3b8;
}

body.site-dark-theme .footer-nav a:hover {
  color: #38bdf8;
}

body.site-dark-theme .footer-bottom {
  border-top-color: #1e293b;
  color: #64748b;
}

body.site-dark-theme .modal-content {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  color: #f8fafc;
}

body.site-dark-theme .modal-title {
  color: #f8fafc;
}

body.site-dark-theme .modal-subtitle {
  color: #94a3b8;
}

body.site-dark-theme .form-label {
  color: #cbd5e1;
}

body.site-dark-theme .form-input,
body.site-dark-theme .form-select {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

body.site-dark-theme .form-input:focus,
body.site-dark-theme .form-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

body.site-dark-theme .modal-close-btn {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

body.site-dark-theme .modal-close-btn:hover {
  background: #334155;
  color: #f8fafc;
}
