
/* Bloqueio de Scroll do Fundo quando Modal está aberto */
body.modal-open {
  overflow: hidden !important;
  touch-action: none !important;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.modal-overlay {
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}


/* Compatibilidade Global Safari iOS / Android / WebKit */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important; /* Impede zoom automático do Safari no iOS */
  }
}

/* ==========================================================================
   PLATAFORMA INVESTE+ - DESIGN SYSTEM FINTECH REAL
   Paleta Estrita: Preto Ônix Carbono e Vermelho Fintech
   ========================================================================== */

:root {
  /* Fundo Preto Profundo / Onyx / Carbono */
  --bg-primary: #070709;
  --bg-secondary: #0e0e12;
  --bg-darker: #030304;
  --bg-card: rgba(16, 16, 20, 0.88);
  --bg-card-hover: rgba(26, 26, 32, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(229, 9, 20, 0.7);

  /* Paleta Estrita: Preto e Vermelho */
  --primary: #E50914;               /* Vermelho Fintech Puro */
  --primary-hover: #FF1E27;
  --primary-dark: #B80710;
  --primary-light: rgba(229, 9, 20, 0.15);
  --primary-glow: rgba(229, 9, 20, 0.45);

  --accent-red: #FF2E2E;
  --accent-red-bright: #FF4D4D;
  --accent-red-soft: rgba(229, 9, 20, 0.12);

  --success: #FFFFFF;
  --warning: #FF4D4D;
  --danger: #E50914;
  --info: #E50914;

  /* Texto e Tipografia */
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-family);

  /* Sombras e Efeitos Especiais Preto & Vermelho */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, 0.85);
  --shadow-glow-red: 0 8px 30px rgba(229, 9, 20, 0.45);

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

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: #070709;
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.025) 0%, transparent 65%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar Customizada Única e Elegante (Preto Ônix e Vermelho Neon) */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #070709;
}

::-webkit-scrollbar-thumb {
  background: rgba(229, 9, 20, 0.45);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #FF1E27;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 9, 20, 0.45) #070709;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 800;
}

p {
  color: #cbd5e1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Barra Superior de Conformidade e Transparência */
.transparency-bar {
  background: #09090c;
  border-bottom: 1px solid rgba(229, 9, 20, 0.25);
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

.transparency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 9, 20, 0.16);
  color: #FF4D4D;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid rgba(229, 9, 20, 0.35);
}

.demo-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-switcher select {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(229, 9, 20, 0.4);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 600;
}

/* Header & Navegação */
.main-header {
  position: sticky;
  top: 0;
  z-index: 90;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(18, 3, 6, 0.9);
  border-bottom: 1px solid rgba(225, 29, 72, 0.2);
  transition: var(--transition);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #E50914, #B80710);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-badge-plus {
  color: #E50914;
  font-weight: 900;
  text-shadow: 0 0 14px rgba(229, 9, 20, 0.7);
  margin-left: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

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

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  position: relative;
  padding: 6px 4px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  display: inline-block;
}

.nav-link:hover, .nav-link.active {
  color: #FF2E2E;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2.5px;
  background: #E50914;
  border-radius: 2px;
}

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

/* Botões Modernos e CTAs Fintech (Vermelho Puro & Preto) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  outline: none;
  text-decoration: none;
  font-family: var(--font-family);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

/* CTA Primário Vermelho Fintech */
.btn-primary, .btn-gold {
  background: linear-gradient(135deg, #E50914 0%, #B80710 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover, .btn-gold:hover {
  background: linear-gradient(135deg, #FF1E27 0%, #C90812 100%);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-primary:active, .btn-gold:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
}

/* CTA Secundário Dark Onyx */
.btn-secondary {
  background: rgba(18, 18, 24, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-secondary:hover {
  background: rgba(28, 28, 36, 0.95);
  border-color: rgba(229, 9, 20, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Cards & Glassmorphism */
.glass-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}

/* Seções */
.section {
  padding: 80px 24px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(229, 9, 20, 0.14);
  color: #FF4D4D;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  border: 1px solid rgba(229, 9, 20, 0.35);
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
}

/* Hero Section */
.hero-section {
  padding: 60px 24px 90px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #FFFFFF;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 22px;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.25);
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.12;
  margin-bottom: 22px;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 15%, #FF3D3D 75%, #E50914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-red {
  background: linear-gradient(135deg, #FFFFFF 0%, #FF1E27 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #f1f5f9;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(229, 9, 20, 0.25);
  padding-top: 24px;
}

.stat-item h4 {
  font-size: 1.6rem;
  color: #FFFFFF;
  font-weight: 900;
}

.stat-item p {
  font-size: 0.8125rem;
  color: #cbd5e1;
}

/* Celular Mockup Inspirado Fielmente na Imagem do Invest+ */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 320px;
  background: #0a0103;
  border-radius: 40px;
  border: 8px solid #27060d;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  padding: 20px 16px;
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 16px;
  background: #27060d;
  border-radius: 0 0 12px 12px;
  margin: -20px auto 14px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.phone-brand-title {
  text-align: center;
  margin-bottom: 14px;
}

.phone-brand-title small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.phone-brand-title h3 {
  font-size: 1.4rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.phone-card {
  background: linear-gradient(135deg, #e11d48, #991b1b);
  border-radius: 16px;
  padding: 18px 14px;
  color: white;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.4);
}

.phone-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.phone-card p {
  font-size: 0.72rem;
  color: #fecdd3;
  margin-bottom: 12px;
}

.phone-card-cta {
  display: inline-block;
  background: #ffffff;
  color: #b91c1c;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
}

/* 3 Pilares do App: Investir | Guardar | Realizar */
.phone-three-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pillar-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
  padding: 12px 6px;
  border-radius: 12px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.pillar-btn:hover, .pillar-btn.active {
  background: rgba(229, 9, 20, 0.2);
  border-color: #E50914;
}

.pillar-btn svg {
  color: #E50914;
}

.pillar-btn span {
  font-size: 0.75rem;
  font-weight: 700;
}

/* ==========================================================================
   SIMULADOR EXPRESSO HERO (CARD FLUTUANTE FINTECH)
   ========================================================================== */
.hero-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-simulator-card {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  background: linear-gradient(165deg, rgba(22, 24, 32, 0.98) 0%, rgba(10, 11, 15, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-simulator-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-simulator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.8), rgba(255, 77, 77, 0.95), transparent);
}

.hero-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hero-sim-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-sim-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #E50914, #B80710);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
  flex-shrink: 0;
}

.hero-sim-tag {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-sim-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
}

.hero-sim-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.hero-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-sim-display {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.hero-sim-display-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.hero-sim-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.hero-sim-pill-daily {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.hero-sim-amount {
  font-size: 2.35rem;
  font-weight: 900;
  color: #FFFFFF;
  font-family: Outfit, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-sim-slider-wrap {
  margin-bottom: 12px;
}

.hero-custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #1e1e28;
  outline: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF2E2E, #E50914);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.7);
  border: 2px solid #FFFFFF;
  transition: transform 0.15s ease;
}

.hero-custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.hero-custom-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF2E2E, #E50914);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.7);
  border: 2px solid #FFFFFF;
}

.hero-sim-quick-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-preset-chip small {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 500;
}

.hero-preset-chip:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
  color: #FFFFFF;
}

.hero-preset-chip.active {
  background: #E50914;
  border-color: #FF1E27;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.5);
}

.hero-preset-chip.active small {
  color: #FFFFFF;
}

.hero-sim-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.hero-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}

.hero-metric-caption {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-metric-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: #FFFFFF;
  display: block;
}

.hero-val-highlight {
  color: #FF4D4D;
}

.hero-val-green {
  color: #4ade80;
}

.hero-sim-display-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #cbd5e1;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-sim-live-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E50914;
  box-shadow: 0 0 6px #E50914;
  flex-shrink: 0;
}

.hero-sim-actions {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
}

.hero-btn-cta {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.3);
}

.hero-btn-login {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9rem;
}

.hero-sim-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.hero-sim-jump-link:hover {
  color: #FF4D4D;
}

/* Seção Quem Pode Acessar */
.access-banner {
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.access-banner-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.access-banner-title h3 {
  font-size: 1.7rem;
  color: #FFFFFF;
}

.access-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.access-list svg {
  color: #FF4D4D;
  flex-shrink: 0;
}

/* Cards de Inclusão Social, Baixa Renda e Beneficiários */
.inclusion-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.inclusion-card {
  background: linear-gradient(165deg, rgba(20, 22, 28, 0.98), rgba(10, 11, 15, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.inclusion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: all 0.3s ease;
}

.inclusion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.16);
}

.inclusion-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.inclusion-card:hover .inclusion-icon-wrap {
  transform: scale(1.05);
}

.inclusion-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.inclusion-card p {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 24px;
  min-height: 85px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inclusion-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: all 0.25s ease;
  line-height: 1.2;
}

.inclusion-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Como Funciona em 4 Etapas */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.step-card:hover {
  border-color: #E50914;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}

.step-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e11d48, #b91c1c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.step-card p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Catálogo de Produtos e Filtros Fintech */
.products-filter, .invest-category-filters {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-btn, .invest-filter-btn {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover, .invest-filter-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #FFFFFF;
  border-color: rgba(230, 25, 25, 0.5);
  transform: translateY(-1px);
}

.filter-btn.active, .invest-filter-btn.active {
  background: linear-gradient(135deg, #FF2222 0%, #D80000 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(230, 25, 25, 0.45);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  align-items: stretch;
}

#investments-catalog-grid.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(20, 22, 28, 0.98) 0%, rgba(10, 11, 15, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9), 0 0 24px rgba(229, 9, 20, 0.15);
}

.product-card-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #E50914 0%, #FF4D4D 50%, rgba(229, 9, 20, 0.2) 100%);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}

.card-badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(229, 9, 20, 0.12);
  color: #FF4D4D;
  border: 1px solid rgba(229, 9, 20, 0.35);
  white-space: nowrap;
}

.card-cycle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  white-space: nowrap;
}

.card-cycle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E50914;
  box-shadow: 0 0 8px #FF1E27;
  display: inline-block;
  animation: pulseNeon 1.5s infinite;
  flex-shrink: 0;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  min-height: 2.8rem;
  display: flex;
  align-items: center;
}

.card-institution-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #94A3B8;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-institution-row svg {
  color: #22c55e;
  flex-shrink: 0;
}

.card-institution-row strong {
  color: #cbd5e1;
  font-weight: 600;
}

.product-description {
  font-size: 0.8125rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  background: rgba(0, 0, 0, 0.45);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.metric-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.metric-col:last-child {
  text-align: right;
  align-items: flex-end;
}

.metric-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: block;
}

.metric-val-min {
  font-size: 1.15rem;
  font-weight: 900;
  color: #FFFFFF;
  font-family: Outfit, sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.metric-val-yield {
  font-size: 1.15rem;
  font-weight: 900;
  color: #FF4D4D;
  font-family: Outfit, sans-serif;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.metric-val-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94A3B8;
  margin-top: 2px;
  display: block;
}

.metric-footer-row {
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  margin-top: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.metric-foot-label {
  font-size: 0.7rem;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.metric-foot-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: #FFFFFF;
}

.card-cta-btn {
  width: 100%;
  padding: 11px 16px;
  font-size: 0.875rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.3);
  border-radius: 10px;
}

.product-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 12px;
  border: 1px solid transparent;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tag-renda-fixa { background: rgba(229, 9, 20, 0.16); color: #FF4D4D; border-color: rgba(229, 9, 20, 0.4); }
.tag-tesouro { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.2); }
.tag-titulos { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.2); }
.tag-isentos { background: rgba(229, 9, 20, 0.22); color: #FF6B6B; border-color: rgba(229, 9, 20, 0.5); }
.tag-fundos { background: rgba(255, 255, 255, 0.05); color: #FF4D4D; border-color: rgba(229, 9, 20, 0.35); }
.tag-metas { background: rgba(229, 9, 20, 0.14); color: #FFFFFF; border-color: rgba(229, 9, 20, 0.35); }
.tag-educacao { background: rgba(229, 9, 20, 0.18); color: #FF4D4D; border-color: rgba(229, 9, 20, 0.4); }

.term-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.5);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pulse-dot-red {
  width: 7px;
  height: 7px;
  background: #FF1E27;
  border-radius: 50%;
  box-shadow: 0 0 8px #FF1E27;
  display: inline-block;
  animation: pulseNeon 1.5s infinite;
}

@keyframes pulseNeon {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #FF1E27; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Simulador Financeiro */
.simulator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.simulator-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
}

.input-label span {
  color: #FF4D4D;
  font-weight: 800;
}

.custom-range {
  width: 100%;
  accent-color: #e11d48;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.custom-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 1rem;
  font-family: var(--font-family);
  transition: var(--transition);
}

.custom-input:focus {
  border-color: #E50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.3);
  outline: none;
}

.simulator-result-box {
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(229, 9, 20, 0.35);
}

.result-total-label {
  font-size: 0.875rem;
  color: #cbd5e1;
}

.result-total-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 6px 0 20px;
  font-family: var(--font-heading);
}

.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-progress-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0;
  display: flex;
}

.progress-invested {
  background: linear-gradient(90deg, #E50914, #FF2E2E);
  height: 100%;
  transition: width 0.3s ease;
}

.progress-interest {
  background: #25252e;
  height: 100%;
  transition: width 0.3s ease;
}

.simulation-disclaimer {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-top: 16px;
  line-height: 1.5;
}

/* FAQ Acordeão */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question svg {
  transition: transform 0.3s ease;
  color: #E50914;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: #cbd5e1;
  font-size: 0.9375rem;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px;
}

/* Rodapé Institucional */
.main-footer {
  background: #080103;
  border-top: 1px solid rgba(225, 29, 72, 0.25);
  padding: 60px 24px 30px;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #FF4D4D;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #FF2E2E;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8125rem;
  color: #cbd5e1;
  text-align: center;
}

/* ==========================================================================
   BANNER INSTITUCIONAL GOVERNO FEDERAL & CONFORMIDADE CIDADÃ
   ========================================================================== */
.gov-compliance-wrapper {
  max-width: 1280px;
  margin: 0 auto 36px;
  width: 100%;
}

.gov-compliance-card {
  background: linear-gradient(135deg, rgba(18, 22, 30, 0.95) 0%, rgba(10, 12, 16, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.gov-compliance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #009B3A 0%, #FEDF00 35%, #002776 70%, #E50914 100%);
}

.gov-seal-side {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.gov-logo-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease;
}

.gov-logo-card:hover {
  transform: translateY(-1px);
}

.gov-logo-official {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.gov-seal-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
}

.gov-compliance-content {
  flex: 1;
  min-width: 280px;
}

.gov-compliance-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.gov-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.gov-tag-green {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.gov-tag-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.gov-tag-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gov-compliance-text {
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.gov-compliance-text strong {
  color: #FFFFFF;
}

.gov-compliance-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 20px;
}

.gov-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .gov-compliance-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
  .gov-seal-divider {
    display: none;
  }
  .gov-compliance-badges {
    border-left: none;
    padding-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
  }
}

/* ==========================================================================
   PAINEL DO INVESTIDOR (PORTAL INVEST+)
   ========================================================================== */

/* ==========================================================================
   SISTEMA DE ISOLAMENTO TOTAL DE TELAS (LANDING / INVESTIDOR / ADMIN)
   ========================================================================== */
#view-landing,
#view-user-portal,
#view-admin-portal {
  display: none !important;
}

#view-landing.active-view {
  display: block !important;
}

#view-user-portal.active-view,
#view-admin-portal.active-view {
  display: grid !important;
  grid-template-columns: 280px 1fr;
  align-items: start;
  width: 100%;
  min-height: calc(100vh - 68px);
  position: relative;
}

.portal-container {
  width: 100%;
  min-height: calc(100vh - 68px);
  position: relative;
}

.sidebar {
  background: #09090d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 68px;
  align-self: start;
  height: calc(100vh - 68px);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  overflow-x: hidden;
  gap: 20px;
  z-index: 40;
  box-sizing: border-box;
  transform: none;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(229, 9, 20, 0.35);
  border-radius: 4px;
}

.sidebar-section-title {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  margin: 18px 0 8px 8px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #94A3B8;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  transform: translateX(3px);
}

.sidebar-item.active {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.16) 0%, rgba(229, 9, 20, 0.03) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-left: 3px solid #E50914;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.sidebar-admin-card {
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.sidebar-admin-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}

.sidebar-admin-sub {
  font-size: 0.72rem;
  color: #94A3B8;
  margin: 4px 0 8px;
}

.sidebar-admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #E50914, #B80710);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
}

.sidebar-user-info {
  overflow: hidden;
  flex: 1;
}

.sidebar-user-name {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-email {
  font-size: 0.72rem;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #4ade80;
  font-weight: 700;
  margin-top: 2px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.35);
  color: #FF4D4D;
}

.admin-badge-pill {
  background: linear-gradient(135deg, #E50914, #B80710);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

/* ==========================================================================
   NAVEGAÇÃO LATERAL RESPONSIVA (DRAWER MOBILE COM 3 TRACINHOS)
   ========================================================================== */
.portal-hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 6px;
  flex-shrink: 0;
}

.portal-hamburger-btn:hover {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.45);
  color: #FF4D4D;
}

[data-theme="light"] .portal-hamburger-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

.sidebar-drawer-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 16px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .sidebar-drawer-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.sidebar-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-close-btn:hover,
.sidebar-close-btn:active {
  background: rgba(229, 9, 20, 0.2);
  color: #FF4D4D;
  border-color: rgba(229, 9, 20, 0.4);
}

[data-theme="light"] .sidebar-close-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

.mobile-portal-topbar,
.mobile-portal-hamburger-action {
  display: none !important;
}

.mobile-portal-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

[data-theme="light"] .mobile-portal-badge {
  color: #475569;
  background: #F1F5F9;
  border-color: #E2E8F0;
}

/* Backdrop Escuro para o Drawer Mobile */
.portal-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99980;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.portal-sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.topbar-live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pulse-indicator-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.kpi-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-quick-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.admin-quick-action-btn:hover {
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.portal-content {
  width: 100%;
  max-width: 100%;
  padding: 32px 36px 60px;
  min-height: calc(100vh - 68px);
  overflow-y: visible;
  box-sizing: border-box;
}

.portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.portal-topbar-title h2 {
  font-size: 1.85rem;
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E50914, #B80710);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.45);
}

/* 3 Pilares no Painel do Usuário: Investir | Guardar | Realizar */
.portal-pillars-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.portal-pillar-card {
  background: var(--bg-card);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.portal-pillar-card:hover, .portal-pillar-card.active {
  background: rgba(229, 9, 20, 0.14);
  border-color: #E50914;
  transform: translateY(-2px);
}

.portal-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(229, 9, 20, 0.18);
  color: #FF4D4D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.portal-pillar-info h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.portal-pillar-info p {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Métricas do Dashboard */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-card {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.card-icon-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-card-title {
  font-size: 0.8125rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.dashboard-card-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.dashboard-card-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.8125rem;
}

/* Tabelas e Extratos */
.custom-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c12;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.custom-table th {
  background: #08080c;
  padding: 14px 18px;
  color: #94A3B8;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.custom-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.badge-status {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-completed { 
  background: rgba(34, 197, 94, 0.12); 
  color: #4ade80; 
  border: 1px solid rgba(34, 197, 94, 0.35); 
}
.status-pending { 
  background: rgba(245, 158, 11, 0.12); 
  color: #fbbf24; 
  border: 1px solid rgba(245, 158, 11, 0.35); 
}
.status-cancelled { 
  background: rgba(239, 68, 68, 0.12); 
  color: #f87171; 
  border: 1px solid rgba(239, 68, 68, 0.35); 
}
.status-admin {
  background: linear-gradient(135deg, #E50914, #B80710);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

/* Barra de Filtros e Busca de Contas */
.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.admin-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.admin-search-input:focus {
  border-color: #E50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.admin-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-pill-btn {
  padding: 7px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.admin-pill-btn.active {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.5);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.25);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Modais */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  box-sizing: border-box !important;
  background: linear-gradient(165deg, #14161C 0%, #0A0B0F 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: min(520px, calc(100vw - 20px));
  padding: 26px 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(229, 9, 20, 0.12);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(229, 9, 20, 0.15);
  color: #FF4D4D;
  border-color: rgba(229, 9, 20, 0.4);
}

/* Customização dos selects e inputs nos modais com seta vermelha de alta visibilidade */
select,
select.custom-input,
.modal-select-plan {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: rgba(18, 20, 26, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23E50914' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 7L10 12.5L15.5 7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px 18px !important;
  border: 1.5px solid rgba(229, 9, 20, 0.45) !important;
  border-radius: 12px;
  padding: 12px 46px 12px 14px !important;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.925rem;
  width: 100%;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select::-ms-expand {
  display: none !important;
}

select:hover,
select.custom-input:hover,
.modal-select-plan:hover {
  border-color: #E50914 !important;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2) !important;
}

select:focus,
select.custom-input:focus,
.modal-select-plan:focus {
  border-color: #E50914 !important;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.35) !important;
  outline: none;
}

.modal-select-plan option,
.modal-select-plan optgroup {
  background: #14161E;
  color: #F8FAFC;
  padding: 8px 12px;
  font-weight: 600;
}

.modal-select-plan optgroup {
  color: #FF4D4D;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: #0D0E13;
}

.invest-amount-field {
  background: rgba(18, 20, 26, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: Outfit, sans-serif;
}

.quick-chip-btn {
  flex: 1;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #CBD5E1;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.quick-chip-btn:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
  color: #FFFFFF;
}

/* Painel de Resumo / Projeção no Modal */
.invest-summary-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 22px;
}

.invest-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.invest-summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.invest-summary-term {
  font-size: 0.875rem;
  font-weight: 800;
  color: #FFFFFF;
}

.invest-projections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.invest-proj-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.invest-proj-box.highlight-proj {
  background: rgba(229, 9, 20, 0.1);
  border-color: rgba(229, 9, 20, 0.3);
}

.proj-box-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 4px;
}

.proj-box-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
  font-family: Outfit, sans-serif;
}

.proj-box-val.highlight-val {
  color: #FF4D4D;
}

.btn-modal-confirm {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-close:hover {
  color: var(--text-main);
}

/* Bottom Bar para Mobile */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 14, 18, 0.98);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(229, 9, 20, 0.3);
  padding: 8px 12px;
  z-index: 80;
  justify-content: space-around;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav-item.active {
  color: #FF2E2E;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: #111116;
  border-left: 4px solid #E50914;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsividade */
@media (max-width: 1260px) {
  .header-container {
    padding: 10px 16px;
    gap: 12px;
  }
  .header-brand-group {
    gap: 8px;
  }
  .brand-logo {
    font-size: 1.2rem;
    gap: 8px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .brand-icon svg {
    width: 18px;
    height: 18px;
  }
  .gov-logo-img {
    height: 20px;
  }
  .gov-logo-badge {
    padding: 2px 6px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 4px 2px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .btn {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 1060px) {
  .nav-links {
    gap: 8px;
  }
  .nav-link {
    font-size: 0.76rem;
  }
  .gov-logo-badge {
    padding: 2px 6px;
  }
  .gov-logo-img {
    height: 18px;
  }
  .brand-divider {
    height: 18px;
    margin: 0 4px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none !important;
  }
  .main-nav {
    display: none !important;
  }
  .main-header .header-brand-group .gov-logo-badge,
  .main-header .header-brand-group .brand-divider {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .access-banner {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .simulator-container {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .portal-pillars-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none !important;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.35rem) !important;
    line-height: 1.16 !important;
  }
  #view-user-portal,
  #view-admin-portal,
  #view-user-portal.active-view,
  #view-admin-portal.active-view,
  .portal-container {
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    position: static !important;
    z-index: auto !important;
  }

  /* Gaveta Lateral (Drawer) para Dispositivos Móveis (Android / iOS) */
  .sidebar {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 295px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: max(18px, env(safe-area-inset-top, 18px)) 16px max(24px, env(safe-area-inset-bottom, 24px)) !important;
    gap: 16px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: none !important;
    background: #0E0F14 !important;
    color: #FFFFFF !important;
    z-index: 100000 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    pointer-events: auto !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 14px 0 55px rgba(0, 0, 0, 0.85) !important;
    pointer-events: auto !important;
  }

  /* TEMA CLARO: GAVETA 100% OPACA BRANCA COM TEXTO ESCURO NÍTIDO */
  [data-theme="light"] .sidebar {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border-right: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: none !important;
  }

  [data-theme="light"] .sidebar.mobile-open {
    box-shadow: 10px 0 45px rgba(0, 0, 0, 0.28) !important;
  }

  /* Cabeçalho do Drawer com Botão Fechar (✕) */
  .sidebar-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 14px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  [data-theme="light"] .sidebar-drawer-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #0F172A !important;
  }

  [data-theme="light"] .sidebar-drawer-header span {
    color: #0F172A !important;
  }

  .sidebar-close-btn {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .sidebar-close-btn:hover {
    background: rgba(229, 9, 20, 0.25) !important;
    color: #FF4D4D !important;
  }

  [data-theme="light"] .sidebar-close-btn {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
  }

  [data-theme="light"] .sidebar-close-btn:hover {
    background: rgba(229, 9, 20, 0.1) !important;
    color: #E50914 !important;
    border-color: #E50914 !important;
  }

  .sidebar-user-card, .sidebar-admin-card {
    display: flex !important;
    margin-bottom: 12px !important;
    padding: 12px !important;
    background: #151720 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  [data-theme="light"] .sidebar-user-card,
  [data-theme="light"] .sidebar-admin-card {
    background: #F8FAFC !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  [data-theme="light"] .sidebar-user-name,
  [data-theme="light"] .sidebar-admin-header {
    color: #0F172A !important;
  }

  [data-theme="light"] .sidebar-user-email,
  [data-theme="light"] .sidebar-admin-sub {
    color: #64748B !important;
  }

  .sidebar-section-title {
    display: block !important;
    font-size: 0.6875rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #64748B !important;
    margin: 14px 0 8px 6px !important;
  }

  .sidebar-menu {
    display: flex !important;
    flex-direction: column !important;
    overflow-x: visible !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .sidebar-item {
    white-space: normal !important;
    flex-shrink: 0 !important;
    padding: 12px 14px !important;
    font-size: 0.88rem !important;
    border-left: 3px solid transparent !important;
    border-bottom: 1px solid transparent !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #cbd5e1 !important;
  }

  [data-theme="light"] .sidebar-item {
    color: #334155 !important;
  }

  [data-theme="light"] .sidebar-item:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
  }

  .sidebar-item.active {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.2) 0%, rgba(229, 9, 20, 0.04) 100%) !important;
    border-left-color: #E50914 !important;
    border-bottom-color: transparent !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
  }

  [data-theme="light"] .sidebar-item.active {
    background: rgba(229, 9, 20, 0.1) !important;
    border-left-color: #E50914 !important;
    color: #E50914 !important;
  }

  .sidebar-footer {
    display: block !important;
    margin-top: auto !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .sidebar-footer {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
  }

  .sidebar-logout-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
  }

  [data-theme="light"] .sidebar-logout-btn {
    background: #F8FAFC !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #475569 !important;
  }

  /* Topbar móvel oculta para remover botão vermelho redundante */
  .mobile-portal-topbar,
  .mobile-portal-hamburger-action {
    display: none !important;
  }

  .portal-hamburger-btn.visible-in-portal {
    display: inline-flex !important;
  }

  /* Fundo escuro (Backdrop) com opacidade sólida e sem desfoque do drawer */
  .portal-sidebar-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    z-index: 99980 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.28s ease, visibility 0.28s ease !important;
  }

  .portal-sidebar-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .portal-content {
    margin-left: 0 !important;
    padding: 14px 12px 60px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
}

/* ==========================================
   ESTILOS FINTECH: PAINEL PIX, GATEWAY & ADMIN
   ========================================== */

/* Barra de Status Institucional e Segurança */
.fintech-status-bar {
  background: #090204;
  border-bottom: 1px solid rgba(225, 29, 72, 0.25);
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #94a3b8;
  z-index: 95;
}

.fintech-badge-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 9, 20, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(229, 9, 20, 0.35);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.fintech-badge-gateway {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 9, 20, 0.16);
  color: #FF4D4D;
  border: 1px solid rgba(229, 9, 20, 0.4);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Switch de Modo PIX (Manual x Automático) */
.pix-mode-switch-card {
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.pix-mode-selector {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pix-mode-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  color: #94a3b8;
  background: transparent;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pix-mode-btn.active-manual {
  background: linear-gradient(135deg, #E50914, #B80710);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.5);
}

.pix-mode-btn.active-auto {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   SUB-ABAS E BANNER DE GESTÃO PIX (ADMIN)
   ========================================================================== */
.admin-pix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-subtab-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.admin-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.admin-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-subtab-btn.active {
  background: linear-gradient(135deg, #E50914, #B80710) !important;
  color: #FFFFFF !important;
  border-color: #E50914 !important;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.35);
}

.admin-subtab-btn.active svg {
  color: #FFFFFF !important;
}

.subtab-counter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  font-size: 0.72rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.admin-subtab-btn.active .subtab-counter-badge {
  background: rgba(0, 0, 0, 0.35) !important;
  color: #FFFFFF !important;
}

.subtab-counter-badge.alert.has-pending {
  background: #E50914 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
  animation: pulse-glow 2s infinite ease-in-out;
}

.admin-pix-subcontent {
  animation: fadeIn 0.25s ease-out;
}

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

.admin-pix-banner {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 22px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.admin-pix-banner-warning {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 4px solid #f59e0b;
}

.admin-pix-banner-info {
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-left: 4px solid #22c55e;
}

.subtab-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.subtab-banner-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.subtab-banner-icon.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.btn-copy-small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-small:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

/* Modal PIX e QR Code */
.pix-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0;
}

.pix-qr-image-wrapper {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
}

.pix-qr-image-wrapper img {
  width: 220px;
  height: 220px;
  display: block;
}

.pix-copia-cola-box {
  width: 100%;
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.pix-copia-cola-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.8rem;
  outline: none;
}

.pix-status-pulsing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FF4D4D;
  margin-top: 12px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #E50914;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
  animation: pulseAnim 1.6s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(229, 9, 20, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

/* Abas de Autenticação */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #E50914, #B80710);
  color: white;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}



/* Badges e Ações na Tabela de Admin */
.btn-action-approve {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-action-approve:hover {
  background: #22c55e;
  border-color: #22c55e;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-action-reject {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-action-reject:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-action-adjust {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-action-adjust:hover {
  background: #E50914;
  border-color: #FF1E27;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.btn-action-delete {
  background: rgba(229, 9, 20, 0.08);
  color: #FF4D4D;
  border: 1px solid rgba(229, 9, 20, 0.28);
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-action-delete:hover {
  background: #B80710;
  border-color: #E50914;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

/* Filtros de Categorias de Investimento */
.invest-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.invest-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.invest-filter-btn:hover {
  background: rgba(230, 25, 25, 0.15);
  border-color: rgba(230, 25, 25, 0.5);
  color: #ffffff;
}

.invest-filter-btn.active {
  background: linear-gradient(135deg, #E61919, #A30D0D);
  border-color: #FF4D4D;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(230, 25, 25, 0.4);
}

.invest-filter-btn .filter-badge {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Responsividade da Landing Page e Telas Menores */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 40px 20px 60px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .simulator-container {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 28px;
  }

  .access-banner {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .nav-links {
    display: none;
  }
}

/* ==========================================================================
   SIMULADOR FINANCEIRO PREMIUM - INVESTE+
   ========================================================================== */
.premium-simulator-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.premium-simulator-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  background: linear-gradient(145deg, #0e0e14, #08080b);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.premium-simulator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF1E27, #E50914, transparent);
}

.sim-controls-col,
.sim-results-col {
  display: flex;
  flex-direction: column;
}

.sim-col-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sim-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF1E27, #B80710);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

.sim-col-title h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  margin: 0;
}

.sim-input-block {
  margin-bottom: 22px;
}

.sim-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sim-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 8px;
  display: block;
}

.sim-amount-badge {
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.4);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}

/* Custom Red Slider */
.sim-slider-red {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: #1a1a24;
  outline: none;
  cursor: pointer;
  margin: 10px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-slider-red::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF2E2E, #E50914);
  cursor: pointer;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
  border: 2px solid #FFFFFF;
  transition: transform 0.15s ease;
}

.sim-slider-red::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.sim-slider-red::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF2E2E, #E50914);
  cursor: pointer;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.8);
  border: 2px solid #FFFFFF;
}

/* Quick Amount Pills */
.sim-quick-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-pill-amount {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-pill-amount:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.5);
  color: #FFFFFF;
}

.sim-pill-amount.active {
  background: #E50914;
  border-color: #FF1E27;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.5);
}

/* Period Pills */
.sim-period-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-period-pill {
  flex: 1;
  min-width: 72px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.sim-period-pill:hover {
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.4);
  color: #FFFFFF;
}

.sim-period-pill.active {
  background: linear-gradient(135deg, #FF1E27, #B80710);
  border-color: #FF4D4D;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.45);
}

/* Plan Cards Grid */
.sim-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sim-plan-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.sim-plan-card:hover {
  border-color: rgba(229, 9, 20, 0.5);
  transform: translateY(-2px);
  background: rgba(229, 9, 20, 0.08);
}

.sim-plan-card.active {
  background: rgba(229, 9, 20, 0.14);
  border: 1.5px solid #FF1E27;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.35);
}

.plan-card-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #FF4D4D;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.plan-card-name {
  font-size: 0.825rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 4px;
}

.plan-card-yield {
  font-size: 0.75rem;
  color: #CBD5E1;
  font-weight: 600;
}

.sim-guarantee-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.25);
  font-size: 0.78rem;
  color: #CBD5E1;
}

/* Coluna 2: Resultados */
.sim-total-showcase {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.18), rgba(184, 7, 16, 0.05));
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.showcase-caption {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #CBD5E1;
  margin-bottom: 6px;
}

.showcase-main-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #FFFFFF;
  font-family: var(--font-heading);
  letter-spacing: -1px;
  text-shadow: 0 0 20px rgba(229, 9, 20, 0.45);
  line-height: 1.1;
  margin-bottom: 10px;
}

.showcase-profit-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(229, 9, 20, 0.5);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #FF4D4D;
  font-weight: 700;
}

/* Gráfico Comparativo de Barras */
.sim-chart-container {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.sim-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sim-advantage-pill {
  background: linear-gradient(135deg, #FF1E27, #B80710);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.5);
}

.sim-bars-comparison {
  display: flex;
  gap: 24px;
  height: 130px;
  align-items: flex-end;
  padding: 10px 20px 0;
}

.sim-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-val-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.bar-track {
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.bar-fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill-social {
  background: linear-gradient(180deg, #FF2E2E, #E50914);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.6);
}

.bar-fill-poupanca {
  background: linear-gradient(180deg, #64748b, #334155);
}

.bar-name-label {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Advantage Box */
.sim-advantage-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.sim-advantage-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF1E27, #B80710);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.45);
}

/* Trio de Métricas */
.sim-metrics-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.trio-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}

.trio-label {
  display: block;
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.trio-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  color: #FFFFFF;
}

.sim-cta-button {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 15px 24px;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.45);
}

/* Responsividade do Simulador */
@media (max-width: 900px) {
  .premium-simulator-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 32px;
  }

  .sim-plans-grid {
    grid-template-columns: 1fr;
  }

  .showcase-main-amount {
    font-size: 2.1rem;
  }
}

/* ==========================================================================
   TEMA CLARO (LIGHT THEME) & ALTERNADOR DE TEMA
   ========================================================================== */

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  margin: 0;
}

.theme-toggle-btn:hover {
  background: rgba(229, 9, 20, 0.18);
  border-color: #E50914;
  color: #FF4D4D;
  transform: translateY(-1px);
}

[data-theme="light"] {
  --bg-primary: #F8F9FC;
  --bg-secondary: #FFFFFF;
  --bg-darker: #EDF0F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-glass: rgba(0, 0, 0, 0.02);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(229, 9, 20, 0.6);

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-glow-red: 0 6px 20px rgba(229, 9, 20, 0.18);
}

[data-theme="light"] body {
  background-color: #F8F9FC !important;
  background-image: none !important;
  color: #0F172A !important;
}

/* Tipografia Base e Títulos no Tema Claro */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: #0F172A !important;
}

[data-theme="light"] p {
  color: #334155 !important;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0F172A 15%, #E50914 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .text-gradient-red {
  background: linear-gradient(135deg, #0F172A 0%, #E50914 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Inversão inteligente de cores fixadas em inline styles (#FFFFFF / white / #cbd5e1) */
[data-theme="light"] [style*="color: #FFFFFF"],
[data-theme="light"] [style*="color: #ffffff"],
[data-theme="light"] [style*="color: white"],
[data-theme="light"] [style*="color:#FFFFFF"],
[data-theme="light"] [style*="color:#ffffff"],
[data-theme="light"] [style*="color:white"] {
  color: #0F172A !important;
}

[data-theme="light"] [style*="color: #cbd5e1"],
[data-theme="light"] [style*="color:#cbd5e1"],
[data-theme="light"] [style*="color: #CBD5E1"],
[data-theme="light"] [style*="color:#CBD5E1"],
[data-theme="light"] [style*="color: #94a3b8"],
[data-theme="light"] [style*="color:#94a3b8"],
[data-theme="light"] [style*="color: #64748B"],
[data-theme="light"] [style*="color:#64748B"] {
  color: #475569 !important;
}

/* Proteção de elementos com texto branco obrigatório (botões primários, badges) */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-primary *,
[data-theme="light"] .btn-primary [style*="color"],
[data-theme="light"] .btn-gold,
[data-theme="light"] .btn-gold *,
[data-theme="light"] .btn-action-adjust:hover,
[data-theme="light"] .hero-preset-chip.active,
[data-theme="light"] .hero-preset-chip.active *,
[data-theme="light"] .hero-preset-chip.active small,
[data-theme="light"] .sim-pill-amount.active,
[data-theme="light"] .sim-period-pill.active,
[data-theme="light"] .filter-btn.active,
[data-theme="light"] .invest-filter-btn.active,
[data-theme="light"] .sim-step-badge,
[data-theme="light"] .status-admin,
[data-theme="light"] .brand-icon svg,
[data-theme="light"] .hero-sim-icon svg {
  color: #FFFFFF !important;
}

/* Header & Barra Superior */
[data-theme="light"] .main-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .brand-logo {
  color: #0F172A !important;
}

[data-theme="light"] .brand-divider {
  background: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .nav-link {
  color: #334155 !important;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #E50914 !important;
}

[data-theme="light"] .transparency-bar {
  background: #FFFFFF !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .demo-switcher select {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Hero Section */
[data-theme="light"] .hero-tag {
  background: rgba(229, 9, 20, 0.08) !important;
  border-color: rgba(229, 9, 20, 0.3) !important;
  color: #E50914 !important;
}

[data-theme="light"] .hero-title {
  color: #0F172A !important;
}

[data-theme="light"] .hero-description {
  color: #334155 !important;
}

[data-theme="light"] .hero-stats {
  border-top-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .stat-item h4 {
  color: #0F172A !important;
}

[data-theme="light"] .stat-item p {
  color: #64748B !important;
}

[data-theme="light"] .gov-hero-badge {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .gov-hero-badge .gov-logo-badge {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 4px 0 2px !important;
  border-radius: 0 !important;
}

[data-theme="light"] .gov-hero-badge span {
  color: #0F172A !important;
}

/* Hero Simulator Card */
[data-theme="light"] .hero-simulator-card {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .hero-sim-title {
  color: #0F172A !important;
}

[data-theme="light"] .hero-sim-tag {
  color: #64748B !important;
}

[data-theme="light"] .hero-sim-guarantee {
  background: #F1F5F9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #0F172A !important;
}

[data-theme="light"] .hero-sim-display {
  background: #F8FAFC !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .hero-sim-label {
  color: #64748B !important;
}

[data-theme="light"] .hero-sim-amount {
  color: #0F172A !important;
}

[data-theme="light"] .hero-custom-range {
  background: #E2E8F0 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .btn-header-logout {
  background: transparent !important;
  border: 1.5px solid rgba(229, 9, 20, 0.4) !important;
  color: #DC2626 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .btn-header-logout:hover {
  background: #FEF2F2 !important;
  border-color: #DC2626 !important;
  color: #B91C1C !important;
}

.btn-header-logout {
  background: transparent;
  border: 1px solid rgba(229, 9, 20, 0.5);
  color: #FF4D4D;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-header-logout:hover {
  background: rgba(229, 9, 20, 0.15);
  color: #FFFFFF;
}

[data-theme="light"] .hero-preset-chip {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #1E293B !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .hero-preset-chip small {
  color: #64748B !important;
}

[data-theme="light"] .hero-preset-chip:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
}

[data-theme="light"] .hero-preset-chip.active {
  background: linear-gradient(135deg, #E50914, #B80710) !important;
  border-color: #B80710 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35) !important;
}

[data-theme="light"] .hero-preset-chip.active,
[data-theme="light"] .hero-preset-chip.active * {
  color: #FFFFFF !important;
}

[data-theme="light"] .hero-metric-box {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .hero-metric-caption {
  color: #64748B !important;
}

[data-theme="light"] .hero-metric-val {
  color: #0F172A !important;
}

[data-theme="light"] .hero-val-highlight {
  color: #E50914 !important;
}

[data-theme="light"] .hero-sim-display-foot {
  color: #475569 !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .hero-sim-jump-link {
  color: #64748B !important;
}

[data-theme="light"] .hero-sim-jump-link:hover {
  color: #E50914 !important;
}

/* Inclusão Social & Banners */
[data-theme="light"] .section-title {
  color: #0F172A !important;
}

[data-theme="light"] .section-subtitle {
  color: #475569 !important;
}

[data-theme="light"] .inclusion-card {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .inclusion-card h3 {
  color: #0F172A !important;
}

[data-theme="light"] .inclusion-card p {
  color: #475569 !important;
}

[data-theme="light"] .inclusion-card .inclusion-icon-wrap {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .inclusion-tag-green {
  background: rgba(0, 155, 58, 0.08) !important;
  color: #15803d !important;
  border-color: rgba(0, 155, 58, 0.25) !important;
}

[data-theme="light"] .inclusion-tag-yellow {
  background: rgba(202, 138, 4, 0.1) !important;
  color: #b45309 !important;
  border-color: rgba(202, 138, 4, 0.3) !important;
}

[data-theme="light"] .inclusion-tag-blue {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}

[data-theme="light"] .inclusion-tag-red {
  background: rgba(229, 9, 20, 0.08) !important;
  color: #b91c1c !important;
  border-color: rgba(229, 9, 20, 0.25) !important;
}

[data-theme="light"] .access-banner,
[data-theme="light"] div[style*="background: rgba(18, 24, 38, 0.7)"] {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .access-banner h3,
[data-theme="light"] div[style*="background: rgba(18, 24, 38, 0.7)"] h4 {
  color: #0F172A !important;
}

[data-theme="light"] .access-banner p,
[data-theme="light"] div[style*="background: rgba(18, 24, 38, 0.7)"] p {
  color: #475569 !important;
}

/* Catálogo de Produtos */
[data-theme="light"] .product-card {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .product-card h3,
[data-theme="light"] .product-card .product-title,
[data-theme="light"] .product-name {
  color: #0F172A !important;
}

[data-theme="light"] .product-institution {
  color: #64748B !important;
}

[data-theme="light"] .product-card p {
  color: #475569 !important;
}

[data-theme="light"] .card-badge-vip {
  background: rgba(229, 9, 20, 0.08) !important;
  border-color: rgba(229, 9, 20, 0.25) !important;
  color: #DC2626 !important;
}

[data-theme="light"] .card-cycle-pill {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #1E293B !important;
  font-weight: 800 !important;
}

[data-theme="light"] .card-institution-row strong {
  color: #334155 !important;
}

[data-theme="light"] .product-metrics {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .metric-label {
  color: #64748B !important;
}

[data-theme="light"] .metric-value,
[data-theme="light"] .metric-val-min,
[data-theme="light"] .metric-foot-val {
  color: #0F172A !important;
  font-weight: 800 !important;
}

[data-theme="light"] .metric-val-yield {
  color: #DC2626 !important;
}

[data-theme="light"] .metric-val-sub {
  color: #64748B !important;
}

[data-theme="light"] .metric-footer-row {
  border-top: 1px dashed #E2E8F0 !important;
}

/* Modais de Aplicação e Saque em Tema Claro */
[data-theme="light"] div[style*="background: rgba(0,0,0,0.4)"],
[data-theme="light"] div[style*="background: rgba(0, 0, 0, 0.4)"] {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] div[style*="background: rgba(255,255,255,0.03)"],
[data-theme="light"] div[style*="background: rgba(255, 255, 255, 0.03)"] {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] div[style*="background: rgba(229,9,20,0.12)"],
[data-theme="light"] div[style*="background: rgba(229, 9, 20, 0.12)"] {
  background: #FFF1F2 !important;
  border: 1px solid rgba(229, 9, 20, 0.25) !important;
}

[data-theme="light"] #modal-withdraw-available-balance,
[data-theme="light"] #invest-proj-daily {
  color: #0F172A !important;
}

[data-theme="light"] #invest-proj-monthly,
[data-theme="light"] #invest-proj-term {
  color: #DC2626 !important;
}

/* Simulador Principal (#simulador) */
[data-theme="light"] .premium-simulator-card {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .sim-col-title h3 {
  color: #0F172A !important;
}

[data-theme="light"] .sim-label {
  color: #475569 !important;
}

[data-theme="light"] .sim-amount-badge {
  background: rgba(229, 9, 20, 0.08) !important;
  border-color: rgba(229, 9, 20, 0.25) !important;
  color: #E50914 !important;
  text-shadow: none !important;
}

[data-theme="light"] .sim-slider-red {
  background: #E2E8F0 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .sim-pill-amount,
[data-theme="light"] .sim-period-pill {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .sim-pill-amount:hover,
[data-theme="light"] .sim-period-pill:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
  border-color: #94A3B8 !important;
}

[data-theme="light"] .sim-pill-amount.active,
[data-theme="light"] .sim-period-pill.active {
  background: linear-gradient(135deg, #E50914, #B80710) !important;
  border-color: #B80710 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35) !important;
}

[data-theme="light"] .sim-plans-grid {
  gap: 12px !important;
}

[data-theme="light"] .sim-plan-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .sim-plan-card:hover {
  background: #FFF5F5 !important;
  border-color: rgba(229, 9, 20, 0.4) !important;
}

[data-theme="light"] .sim-plan-card.active {
  background: #FFF1F2 !important;
  border: 2px solid #E50914 !important;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.2) !important;
}

[data-theme="light"] .sim-plan-card .plan-card-tag {
  color: #DC2626 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .sim-plan-card .plan-card-name {
  color: #0F172A !important;
  font-weight: 800 !important;
}

[data-theme="light"] .sim-plan-card .plan-card-yield {
  color: #475569 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .sim-guarantee-note {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}

/* Abas de Autenticação em Tema Claro */
[data-theme="light"] .auth-tabs {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  padding: 5px !important;
  border-radius: 12px !important;
}

[data-theme="light"] .auth-tab-btn {
  color: #64748B !important;
  font-weight: 700 !important;
}

[data-theme="light"] .auth-tab-btn:hover {
  color: #0F172A !important;
}

[data-theme="light"] .auth-tab-btn.active {
  background: #E50914 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3) !important;
}

[data-theme="light"] .sim-total-showcase {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.06), rgba(229, 9, 20, 0.01)) !important;
  border-color: rgba(229, 9, 20, 0.2) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .showcase-caption {
  color: #64748B !important;
}

[data-theme="light"] .showcase-main-amount {
  color: #0F172A !important;
  text-shadow: none !important;
}

[data-theme="light"] .showcase-profit-badge {
  background: #FFFFFF !important;
  border-color: rgba(229, 9, 20, 0.3) !important;
  color: #E50914 !important;
}

[data-theme="light"] .sim-chart-container {
  background: #F8FAFC !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .sim-chart-header span {
  color: #0F172A !important;
}

[data-theme="light"] .bar-val-label {
  color: #0F172A !important;
}

[data-theme="light"] .bar-track {
  background: #E2E8F0 !important;
  border-bottom-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .sim-advantage-box {
  background: rgba(229, 9, 20, 0.06) !important;
  border-color: rgba(229, 9, 20, 0.2) !important;
}

[data-theme="light"] .sim-advantage-box div {
  color: #334155 !important;
}

[data-theme="light"] #sim-res-diff {
  color: #E50914 !important;
}

[data-theme="light"] .trio-item {
  background: #F8FAFC !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .trio-label {
  color: #64748B !important;
}

[data-theme="light"] .trio-value {
  color: #0F172A !important;
}

/* Como Funciona & FAQ */
[data-theme="light"] .step-card {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .step-card h3 {
  color: #0F172A !important;
}

[data-theme="light"] .step-card p {
  color: #475569 !important;
}

[data-theme="light"] .faq-item {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .faq-question {
  color: #0F172A !important;
}

[data-theme="light"] .faq-answer {
  color: #475569 !important;
}

/* Banner Institucional do Governo & Rodapé */
[data-theme="light"] .gov-compliance-card {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .gov-compliance-text {
  color: #334155 !important;
}

[data-theme="light"] .gov-compliance-text strong {
  color: #0F172A !important;
}

[data-theme="light"] .gov-trust-badge {
  background: #F8FAFC !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #0F172A !important;
}

[data-theme="light"] .gov-seal-divider {
  background: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .gov-tag-neutral {
  background: #F1F5F9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}

[data-theme="light"] .main-footer {
  background: #F1F5F9 !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .main-footer h4 {
  color: #0F172A !important;
}

[data-theme="light"] .main-footer p,
[data-theme="light"] .main-footer ul,
[data-theme="light"] .main-footer li,
[data-theme="light"] .main-footer div {
  color: #475569 !important;
}

[data-theme="light"] .main-footer a {
  color: #334155 !important;
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
  color: #64748B !important;
}

/* Painel do Investidor & Painel Administrativo */
[data-theme="light"] .portal-container {
  background: #F8F9FC !important;
}

[data-theme="light"] .sidebar {
  background: #FFFFFF !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .sidebar-item {
  color: #475569 !important;
}

[data-theme="light"] .sidebar-item:hover {
  background: rgba(229, 9, 20, 0.08) !important;
  color: #E50914 !important;
}

[data-theme="light"] .sidebar-item.active {
  background: rgba(229, 9, 20, 0.1) !important;
  color: #E50914 !important;
}

[data-theme="light"] .sidebar-admin-card,
[data-theme="light"] .sidebar-user-card {
  background: #F8FAFC !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .sidebar-admin-header,
[data-theme="light"] .sidebar-user-name {
  color: #0F172A !important;
}

[data-theme="light"] .sidebar-admin-sub,
[data-theme="light"] .sidebar-user-email {
  color: #64748B !important;
}

[data-theme="light"] .sidebar-logout-btn {
  background: #F8FAFC !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #64748B !important;
}

[data-theme="light"] .sidebar-logout-btn:hover {
  background: rgba(229, 9, 20, 0.08) !important;
  color: #E50914 !important;
}

[data-theme="light"] .portal-content {
  background: #F8F9FC !important;
  color: #0F172A !important;
}

[data-theme="light"] .portal-content h2,
[data-theme="light"] .portal-content h3,
[data-theme="light"] .portal-content h4 {
  color: #0F172A !important;
}

[data-theme="light"] .portal-content p {
  color: #475569 !important;
}

[data-theme="light"] .portal-card,
[data-theme="light"] .dashboard-card,
[data-theme="light"] .admin-card,
[data-theme="light"] .admin-stat-card,
[data-theme="light"] .custom-table-container,
[data-theme="light"] .pix-mode-switch-card,
[data-theme="light"] .modal-box {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .admin-subtab-nav {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .admin-subtab-btn {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #475569 !important;
}

[data-theme="light"] .admin-subtab-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

[data-theme="light"] .admin-subtab-btn.active {
  background: linear-gradient(135deg, #E50914, #B80710) !important;
  color: #FFFFFF !important;
  border-color: #E50914 !important;
}

[data-theme="light"] .admin-subtab-btn.active * {
  color: #FFFFFF !important;
}

[data-theme="light"] .subtab-counter-badge {
  background: #E2E8F0 !important;
  color: #334155 !important;
}

[data-theme="light"] .admin-subtab-btn.active .subtab-counter-badge {
  background: rgba(0, 0, 0, 0.3) !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .admin-pix-banner-warning {
  background: #FFFBEB !important;
  border-color: #FDE68A !important;
  border-left: 4px solid #D97706 !important;
}

[data-theme="light"] .admin-pix-banner-warning strong {
  color: #92400E !important;
}

[data-theme="light"] .admin-pix-banner-warning p {
  color: #78350F !important;
}

[data-theme="light"] .admin-pix-banner-info {
  background: #F0FDF4 !important;
  border-color: #BBF7D0 !important;
  border-left: 4px solid #16A34A !important;
}

[data-theme="light"] .admin-pix-banner-info strong {
  color: #166534 !important;
}

[data-theme="light"] .admin-pix-banner-info p {
  color: #15803D !important;
}

[data-theme="light"] .btn-copy-small {
  background: #E2E8F0 !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}

[data-theme="light"] .btn-copy-small:hover {
  background: #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] .dashboard-card-title,
[data-theme="light"] .admin-metric-label {
  color: #64748B !important;
}

[data-theme="light"] .dashboard-card-value,
[data-theme="light"] .admin-metric-value,
[data-theme="light"] .admin-stat-num {
  color: #0F172A !important;
}

[data-theme="light"] .custom-table th {
  background: #F8FAFC !important;
  color: #475569 !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .custom-table td {
  color: #1E293B !important;
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .custom-table tr:hover {
  background: #F8FAFC !important;
}

[data-theme="light"] .custom-input,
[data-theme="light"] .form-control,
[data-theme="light"] .invest-amount-field {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] select,
[data-theme="light"] select.custom-input,
[data-theme="light"] .modal-select-plan {
  background-color: #FFFFFF !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23E50914' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 7L10 12.5L15.5 7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px 18px !important;
  border-color: rgba(229, 9, 20, 0.45) !important;
  color: #0F172A !important;
}

[data-theme="light"] select:hover,
[data-theme="light"] select.custom-input:hover,
[data-theme="light"] .modal-select-plan:hover {
  border-color: #E50914 !important;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.15) !important;
}

[data-theme="light"] select:focus,
[data-theme="light"] select.custom-input:focus,
[data-theme="light"] .modal-select-plan:focus {
  border-color: #E50914 !important;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25) !important;
}

[data-theme="light"] .modal-select-plan option,
[data-theme="light"] .modal-select-plan optgroup {
  background: #FFFFFF !important;
  color: #0F172A !important;
}

[data-theme="light"] .modal-select-plan optgroup {
  color: #DC2626 !important;
  font-weight: 800 !important;
  background: #F1F5F9 !important;
}

[data-theme="light"] .quick-chip-btn {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #334155 !important;
}

[data-theme="light"] .quick-chip-btn:hover {
  background: #F1F5F9 !important;
  border-color: #DC2626 !important;
  color: #DC2626 !important;
}

[data-theme="light"] .invest-summary-card {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .invest-summary-header {
  border-bottom-color: #E2E8F0 !important;
}

[data-theme="light"] .invest-summary-label {
  color: #64748B !important;
}

[data-theme="light"] .invest-summary-term {
  color: #0F172A !important;
}

[data-theme="light"] .invest-proj-box {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .invest-proj-box.highlight-proj {
  background: #FFF1F2 !important;
  border-color: rgba(229, 9, 20, 0.25) !important;
}

[data-theme="light"] .proj-box-title {
  color: #64748B !important;
}

[data-theme="light"] .proj-box-val {
  color: #0F172A !important;
}

[data-theme="light"] .proj-box-val.highlight-val {
  color: #DC2626 !important;
}

[data-theme="light"] .custom-input:focus,
[data-theme="light"] .form-control:focus,
[data-theme="light"] select:focus,
[data-theme="light"] .modal-select-plan:focus,
[data-theme="light"] .invest-amount-field:focus {
  border-color: #E50914 !important;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15) !important;
}

[data-theme="light"] .form-group label,
[data-theme="light"] .input-label {
  color: #334155 !important;
}

[data-theme="light"] .modal-header h3 {
  color: #0F172A !important;
}

[data-theme="light"] .modal-close {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #64748B !important;
}

[data-theme="light"] .modal-close:hover {
  color: #0F172A !important;
}

[data-theme="light"] .btn-secondary {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #1E293B !important;
}

[data-theme="light"] .btn-secondary:hover {
  background: #F1F5F9 !important;
  border-color: #E50914 !important;
  color: #E50914 !important;
}

[data-theme="light"] .filter-btn,
[data-theme="light"] .invest-filter-btn {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .invest-filter-btn:hover {
  background: #F8FAFC !important;
  border-color: rgba(229, 9, 20, 0.4) !important;
  color: #E50914 !important;
}

[data-theme="light"] .filter-btn.active,
[data-theme="light"] .invest-filter-btn.active {
  background: linear-gradient(135deg, #E50914, #B80710) !important;
  border-color: #B80710 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35) !important;
}

[data-theme="light"] .filter-btn.active *,
[data-theme="light"] .invest-filter-btn.active * {
  color: #FFFFFF !important;
}

[data-theme="light"] .filter-btn .filter-badge,
[data-theme="light"] .invest-filter-btn .filter-badge {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .filter-btn.active .filter-badge,
[data-theme="light"] .invest-filter-btn.active .filter-badge {
  background: rgba(0, 0, 0, 0.28) !important;
  border-color: transparent !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .admin-pill-btn {
  background: #F1F5F9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}

[data-theme="light"] .admin-pill-btn.active {
  background: rgba(229, 9, 20, 0.12) !important;
  border-color: #E50914 !important;
  color: #E50914 !important;
}

[data-theme="light"] .btn-action-adjust {
  background: #F1F5F9 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1E293B !important;
}

[data-theme="light"] .btn-action-delete {
  background: #FEE2E2 !important;
  border-color: #FCA5A5 !important;
  color: #DC2626 !important;
}

[data-theme="light"] .btn-action-delete:hover {
  background: #DC2626 !important;
  border-color: #B91C1C !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .admin-search-input {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0F172A !important;
}

[data-theme="light"] .theme-toggle-btn {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0F172A !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(229, 9, 20, 0.08) !important;
  border-color: #E50914 !important;
  color: #E50914 !important;
}

[data-theme="light"] #modal-confirm-title {
  color: #0F172A !important;
}

[data-theme="light"] #modal-confirm-message {
  color: #475569 !important;
}

[data-theme="light"] #modal-confirm-input-label {
  color: #334155 !important;
}

/* ==========================================================================
   IDENTIDADE VISUAL BRASIL - UNIÃO E RECONSTRUÇÃO (GOVERNO FEDERAL)
   ========================================================================== */

:root {
  --brasil-green: #009B3A;
  --brasil-yellow: #FFCC00;
  --brasil-blue: #002776;
  --brasil-red: #E50914;
}

/* Faixa Multicolor Oficial do Brasil */
.brasil-top-strip {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, 
    #009B3A 0%, #009B3A 25%, 
    #FFCC00 25%, #FFCC00 50%, 
    #002776 50%, #002776 75%, 
    #E50914 75%, #E50914 100%
  );
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.brasil-strip-inline {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, 
    #009B3A 0%, #009B3A 25%, 
    #FFCC00 25%, #FFCC00 50%, 
    #002776 50%, #002776 75%, 
    #E50914 75%, #E50914 100%
  );
  border-radius: 2px;
}

/* Badge e Container da Logo do Governo Federal */
.gov-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin: 0;
}

.gov-logo-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .gov-logo-badge {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.gov-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}

.gov-logo-img-lg {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0;
  flex-shrink: 0;
}

/* Badge de Destaque no Hero */
.gov-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 18px 6px 6px;
  border-radius: 9999px;
  margin-bottom: 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.gov-hero-badge .gov-logo-badge {
  background: #FFFFFF !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  border: none !important;
  padding: 2px 10px !important;
  transition: all 0.2s ease;
}

.gov-hero-badge:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.85);
  transform: translateY(-2px);
}

.gov-hero-badge-text {
  font-size: 0.825rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-transform: uppercase;
}

/* Destaque das 4 Cores do Brasil nos Cards de Inclusão */
.inclusion-card-green {
  border: 1px solid rgba(0, 155, 58, 0.22) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.inclusion-card-green::before {
  background: linear-gradient(90deg, #009B3A, #22c55e, transparent) !important;
}
.inclusion-card-green:hover {
  border-color: rgba(0, 155, 58, 0.5) !important;
  box-shadow: 0 16px 36px rgba(0, 155, 58, 0.15) !important;
}
.inclusion-card-green .inclusion-icon-wrap {
  background: linear-gradient(135deg, rgba(0, 155, 58, 0.25), rgba(0, 115, 42, 0.1)) !important;
  border-color: rgba(0, 155, 58, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 155, 58, 0.2) !important;
}
.inclusion-card-green .inclusion-icon-wrap svg {
  stroke: #22c55e !important;
}
.inclusion-tag-green {
  background: rgba(0, 155, 58, 0.1) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(0, 155, 58, 0.3) !important;
}
.inclusion-tag-green::before {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.inclusion-card-yellow {
  border: 1px solid rgba(255, 204, 0, 0.22) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.inclusion-card-yellow::before {
  background: linear-gradient(90deg, #FFCC00, #FDE047, transparent) !important;
}
.inclusion-card-yellow:hover {
  border-color: rgba(255, 204, 0, 0.5) !important;
  box-shadow: 0 16px 36px rgba(255, 204, 0, 0.15) !important;
}
.inclusion-card-yellow .inclusion-icon-wrap {
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.25), rgba(230, 184, 0, 0.1)) !important;
  border-color: rgba(255, 204, 0, 0.35) !important;
  box-shadow: 0 4px 14px rgba(255, 204, 0, 0.2) !important;
}
.inclusion-card-yellow .inclusion-icon-wrap svg {
  stroke: #FACC15 !important;
}
.inclusion-tag-yellow {
  background: rgba(255, 204, 0, 0.1) !important;
  color: #FACC15 !important;
  border: 1px solid rgba(255, 204, 0, 0.3) !important;
}
.inclusion-tag-yellow::before {
  background: #EAB308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.8);
}

.inclusion-card-blue {
  border: 1px solid rgba(34, 88, 184, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.inclusion-card-blue::before {
  background: linear-gradient(90deg, #2258B8, #60A5FA, transparent) !important;
}
.inclusion-card-blue:hover {
  border-color: rgba(34, 88, 184, 0.5) !important;
  box-shadow: 0 16px 36px rgba(34, 88, 184, 0.18) !important;
}
.inclusion-card-blue .inclusion-icon-wrap {
  background: linear-gradient(135deg, rgba(34, 88, 184, 0.25), rgba(0, 39, 118, 0.1)) !important;
  border-color: rgba(34, 88, 184, 0.35) !important;
  box-shadow: 0 4px 14px rgba(34, 88, 184, 0.2) !important;
}
.inclusion-card-blue .inclusion-icon-wrap svg {
  stroke: #60A5FA !important;
}
.inclusion-tag-blue {
  background: rgba(34, 88, 184, 0.12) !important;
  color: #93C5FD !important;
  border: 1px solid rgba(34, 88, 184, 0.3) !important;
}
.inclusion-tag-blue::before {
  background: #3B82F6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

.inclusion-card-red {
  border: 1px solid rgba(229, 9, 20, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.inclusion-card-red::before {
  background: linear-gradient(90deg, #E50914, #F87171, transparent) !important;
}
.inclusion-card-red:hover {
  border-color: rgba(229, 9, 20, 0.5) !important;
  box-shadow: 0 16px 36px rgba(229, 9, 20, 0.18) !important;
}
.inclusion-card-red .inclusion-icon-wrap {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.25), rgba(184, 7, 16, 0.1)) !important;
  border-color: rgba(229, 9, 20, 0.35) !important;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.2) !important;
}
.inclusion-card-red .inclusion-icon-wrap svg {
  stroke: #F87171 !important;
}
.inclusion-tag-red {
  background: rgba(229, 9, 20, 0.1) !important;
  color: #F87171 !important;
  border: 1px solid rgba(229, 9, 20, 0.3) !important;
}
.inclusion-tag-red::before {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

/* Área Institucional no Rodapé */
.gov-footer-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  margin-top: 24px;
}

[data-theme="light"] .brand-divider {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .gov-hero-badge {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .gov-hero-badge-text {
  color: #0F172A;
}

[data-theme="light"] .gov-footer-box {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   SUÍTE DE RESPONSIVIDADE COMPLETA E ROBUSTA (MOBILE FIRST & TODOS OS DISPOSITIVOS)
   ========================================================================== */

/* 1. Global Box-Sizing e Proteção contra overflow horizontal */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
}

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

/* 2. Utilitários de Grids Responsivos */
.admin-config-grid {
  grid-template-columns: 1fr 1fr;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
}

/* Modais com Scroll Suave e Altura Segura em Telas Pequenas */
.modal-overlay {
  padding: 16px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.modal-box {
  max-height: calc(100vh - 32px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* 3. Tablets e Notebooks Pequenos (<= 1024px) */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 36px !important;
    padding: 40px 20px 60px !important;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .products-grid,
  #investments-catalog-grid.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
  .admin-config-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 4. Tablets Verticais e Dispositivos Móveis (<= 768px) */
@media (max-width: 768px) {
  /* Header Mobile */
  .header-container {
    padding: 10px 14px !important;
  }
  .nav-links, .main-nav {
    display: none !important;
  }
  /* Header Mobile: Espaçamento perfeito e sem colisão */
  .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .header-brand-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
  }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  /* Ocultar badge do governo no header superior em dispositivos móveis e tablets para evitar qualquer risco de sobreposição com o alternador de temas e botões de ação */
  .main-header .header-brand-group .gov-logo-badge,
  .main-header .header-brand-group .brand-divider {
    display: none !important;
  }

  /* Badge do Hero: Logo oficial do Brasil sempre visível e integrado */
  .gov-hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 14px 4px 6px !important;
    max-width: 100% !important;
  }
  .gov-hero-badge .gov-logo-badge {
    display: inline-flex !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
    border: none !important;
    padding: 2px 8px !important;
  }
  [data-theme="light"] .gov-hero-badge .gov-logo-badge {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 2px !important;
  }
  .gov-hero-badge-text {
    font-size: 0.72rem !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 30px 16px 50px !important;
    gap: 30px !important;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.25rem) !important;
    line-height: 1.18 !important;
    margin-bottom: 16px !important;
  }
  .hero-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
  }

  /* Catálogo de Investimentos & Cards de Inclusão */
  .products-grid,
  #investments-catalog-grid.products-grid,
  .inclusion-cards-grid,
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .product-card,
  .inclusion-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }

  /* Simulador Financeiro */
  .premium-simulator-card {
    grid-template-columns: 1fr !important;
    padding: 22px 16px !important;
    gap: 26px !important;
  }
  .sim-plans-grid {
    grid-template-columns: 1fr !important;
  }
  .showcase-main-amount {
    font-size: clamp(1.65rem, 6.5vw, 2.1rem) !important;
  }

  .portal-topbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .portal-topbar-title h2 {
    font-size: 1.35rem !important;
  }
  .dashboard-cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .portal-pillars-nav {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Tabelas com Scroll Horizontal Suave */
  .custom-table-container {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 10px !important;
  }
  .custom-table th,
  .custom-table td {
    padding: 10px 12px !important;
    font-size: 0.78rem !important;
  }

  /* Rodapé */
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .gov-footer-box {
    flex-direction: column !important;
    text-align: center;
    gap: 12px !important;
    padding: 16px !important;
  }
}

/* 5. Smartphones Pequenos e Médios (<= 640px) */
@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(229, 9, 20, 0.2) !important;
  }
  .stat-item {
    text-align: center;
  }
  .stat-item h4 {
    font-size: 1.25rem !important;
  }
  .stat-item p {
    font-size: 0.72rem !important;
  }
  .hero-simulator-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }
  .hero-sim-amount {
    font-size: clamp(1.55rem, 6.5vw, 2.1rem) !important;
  }
  .hero-sim-quick-presets {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
  }
  .hero-preset-chip {
    flex: 1 1 auto;
    text-align: center;
    padding: 6px 8px !important;
    font-size: 0.72rem !important;
  }
  .hero-sim-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .hero-metric-box {
    padding: 10px 8px !important;
  }
  .hero-metric-caption {
    font-size: 0.68rem !important;
  }
  .hero-metric-val {
    font-size: 0.88rem !important;
  }
}

/* 6. Smartphones Ultra Compactos (<= 480px e <= 360px) */
@media (max-width: 480px) {
  .header-container {
    padding: 8px 12px !important;
    gap: 8px !important;
  }
  .header-brand-group {
    gap: 4px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  .brand-logo {
    font-size: 1.05rem !important;
    gap: 5px !important;
  }
  .brand-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
  }
  .brand-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  .main-header .header-brand-group .gov-logo-badge,
  .main-header .header-brand-group .brand-divider {
    display: none !important;
  }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  .header-actions .btn {
    padding: 5px 9px !important;
    font-size: 0.73rem !important;
    white-space: nowrap !important;
  }
  .theme-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 5 !important;
  }

  /* Modais no Mobile */
  .modal-overlay {
    padding: 10px !important;
  }
  .modal-box {
    padding: 18px 14px !important;
    border-radius: 14px !important;
    width: 100% !important;
  }
  .modal-header {
    margin-bottom: 14px !important;
  }
  .modal-header h3 {
    font-size: 1.15rem !important;
  }
  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .quick-chip-btn {
    font-size: 0.72rem !important;
    padding: 6px 2px !important;
  }
  .invest-summary-card {
    padding: 12px !important;
  }
  .summary-stat-val {
    font-size: 0.95rem !important;
  }

  /* Seções e Espaçamentos */
  .section-header {
    margin-bottom: 28px !important;
  }
  .section-title {
    font-size: 1.7rem !important;
  }
  .section-subtitle {
    font-size: 0.9rem !important;
  }
}

/* Telas mínimas (iPhone 5/SE <= 360px) */
@media (max-width: 360px) {
  .header-container {
    padding: 6px 8px !important;
    gap: 4px !important;
  }
  .main-header .header-brand-group .gov-logo-badge,
  .main-header .header-brand-group .brand-divider {
    display: none !important;
  }
  .brand-logo span {
    font-size: 0.95rem !important;
  }
  .header-actions {
    gap: 4px !important;
  }
  .header-actions .btn {
    padding: 5px 7px !important;
    font-size: 0.70rem !important;
  }
  .theme-toggle-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
  }
  .hero-sim-metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   ESTILOS KYC: VERIFICAÇÃO DE IDENTIDADE, BIOMETRIA E AUDITORIA ADMINISTRATIVA
   ========================================================================== */

.kyc-register-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

[data-theme="light"] .kyc-register-box {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
}

.kyc-box-header {
  margin-bottom: 14px;
}

.kyc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

[data-theme="light"] .kyc-badge-pill {
  background: #FEF08A !important;
  color: #854D0E !important;
  border-color: #FACC15 !important;
}

.kyc-box-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

[data-theme="light"] .kyc-box-desc {
  color: #475569 !important;
}

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

.kyc-slot-card {
  background: rgba(18, 18, 24, 0.85);
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 125px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .kyc-slot-card {
  background: #FFFFFF !important;
  border: 1.5px dashed #CBD5E1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.kyc-slot-card:hover {
  border-color: #E50914 !important;
  background: rgba(229, 9, 20, 0.06) !important;
  transform: translateY(-2px);
}

.kyc-slot-card.has-photo {
  border-style: solid !important;
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.08) !important;
}

[data-theme="light"] .kyc-slot-card.has-photo {
  background: #F0FDF4 !important;
  border-color: #22c55e !important;
}

.kyc-slot-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.kyc-slot-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF4D4D;
  margin-bottom: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

[data-theme="light"] .kyc-slot-icon-box {
  background: rgba(229, 9, 20, 0.08) !important;
  border-color: rgba(229, 9, 20, 0.2) !important;
  color: #DC2626 !important;
}

.kyc-slot-card:hover .kyc-slot-icon-box {
  transform: scale(1.08);
}

.kyc-slot-text-group {
  margin-bottom: 8px;
  text-align: center;
}

.kyc-slot-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
  line-height: 1.25;
}

[data-theme="light"] .kyc-slot-title {
  color: #0F172A !important;
}

.kyc-slot-hint {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.2;
}

[data-theme="light"] .kyc-slot-hint {
  color: #64748B !important;
}

.kyc-slot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #FF4D4D;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

[data-theme="light"] .kyc-slot-btn {
  background: rgba(229, 9, 20, 0.1) !important;
  border-color: rgba(229, 9, 20, 0.3) !important;
  color: #DC2626 !important;
}

.kyc-slot-btn:hover {
  background: #E50914 !important;
  border-color: #E50914 !important;
  color: #FFFFFF !important;
}

.kyc-slot-btn.kyc-slot-btn-done,
.kyc-slot-card.has-photo .kyc-slot-btn {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #000000 !important;
  font-weight: 800;
}

.kyc-slot-thumb {
  width: 100%;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
  display: block;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.kyc-notice-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.74rem;
  color: #fde047;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.35;
}

[data-theme="light"] .kyc-notice-strip {
  background: #FEF9C3 !important;
  border-color: #FEF08A !important;
  color: #854D0E !important;
}

/* Responsividade Mobile: Cards horizontais super compactos e elegantes */
@media (max-width: 640px) {
  .kyc-slots-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .kyc-slot-card {
    min-height: auto !important;
    padding: 10px 12px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .kyc-slot-preview {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .kyc-slot-icon-box {
    margin-bottom: 0 !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }
  .kyc-slot-text-group {
    margin-bottom: 0 !important;
    text-align: left !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .kyc-slot-title {
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .kyc-slot-hint {
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .kyc-slot-btn {
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    font-size: 0.72rem !important;
  }
  .kyc-slot-thumb {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    margin-bottom: 0 !important;
  }
}

/* Banner de Status no Painel do Usuário */
.kyc-user-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  flex-wrap: wrap;
}

.kyc-user-banner.banner-pending {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(202, 138, 4, 0.08));
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.kyc-user-banner.banner-approved {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.kyc-user-banner.banner-rejected {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(185, 28, 28, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.kyc-user-banner.banner-warning {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.15), rgba(184, 7, 16, 0.08));
  border: 1px solid rgba(229, 9, 20, 0.4);
}

.kyc-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kyc-banner-icon {
  font-size: 2rem;
  line-height: 1;
}

.kyc-banner-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.kyc-banner-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Badges e Botões no Painel Admin */
.btn-action-kyc {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-kyc:hover {
  background: #eab308;
  color: #000;
}

.btn-action-approve {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-action-approve:hover {
  background: #22c55e;
  color: #000;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.btn-action-adjust {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-action-adjust:hover {
  background: #3b82f6;
  color: #fff;
}

.btn-action-reject {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-action-reject:hover {
  background: #ef4444;
  color: #fff;
}

.btn-action-delete {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-action-delete:hover {
  background: #b91c1c;
  color: #fff;
}

.btn-action-kyc.kyc-pending-glow {
  animation: kycPulse 2s infinite;
}

@keyframes kycPulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(234, 179, 8, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.status-kyc-pending {
  background: rgba(234, 179, 8, 0.18);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
  font-weight: 800;
}

.status-kyc-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-weight: 800;
}

.status-kyc-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-weight: 800;
}

.status-kyc-none {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-kyc-user-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 14px 0 18px;
}

.admin-kyc-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.admin-kyc-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 820px) {
  .admin-kyc-photos-grid {
    grid-template-columns: 1fr;
  }
}

.admin-kyc-photo-card {
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-kyc-photo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.825rem;
  font-weight: 700;
  color: #FFFFFF;
}

.btn-kyc-zoom {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 6px;
  font-size: 0.7rem;
  padding: 4px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-kyc-zoom:hover {
  background: #E50914;
  color: #FFFFFF;
  border-color: #E50914;
}

.admin-kyc-img-container {
  height: 220px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

.admin-kyc-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.admin-kyc-img:hover {
  transform: scale(1.03);
}

.admin-kyc-empty-slot {
  color: #64748B;
  font-size: 0.8rem;
  text-align: center;
  padding: 20px;
}

.admin-kyc-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   WIZARD DE CADASTRO MULTI-ETAPAS & VALIDAÇÃO AVANÇADA KYC (FINTECH PREMIUM)
   ========================================================================== */

.reg-stepper-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
}

[data-theme="light"] .reg-stepper-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.reg-stepper-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reg-step-indicator-pill {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(229, 9, 20, 0.15);
  color: #FF4D4D;
  border: 1px solid rgba(229, 9, 20, 0.3);
}

[data-theme="light"] .reg-step-indicator-pill {
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
  border-color: rgba(220, 38, 38, 0.2);
}

.reg-step-title-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
}

[data-theme="light"] .reg-step-title-text {
  color: #0F172A;
}

.reg-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

[data-theme="light"] .reg-progress-track {
  background: #E2E8F0;
}

.reg-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #E50914 0%, #F59E0B 50%, #22C55E 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reg-steps-pills {
  display: flex;
  gap: 8px;
  width: 100%;
}

.reg-step-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

[data-theme="light"] .reg-step-pill {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.reg-pill-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  transition: all 0.2s;
}

[data-theme="light"] .reg-pill-num {
  background: #F1F5F9;
  color: #64748B;
}

.reg-pill-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: #94A3B8;
  white-space: nowrap;
}

[data-theme="light"] .reg-pill-label {
  color: #64748B;
}

.reg-step-pill.active {
  border-color: #E50914;
  background: rgba(229, 9, 20, 0.08);
}

.reg-step-pill.active .reg-pill-num {
  background: #E50914;
  color: #FFFFFF;
}

.reg-step-pill.active .reg-pill-label {
  color: #FFFFFF;
  font-weight: 800;
}

[data-theme="light"] .reg-step-pill.active {
  background: rgba(220, 38, 38, 0.06);
  border-color: #DC2626;
}

[data-theme="light"] .reg-step-pill.active .reg-pill-label {
  color: #DC2626;
}

.reg-step-pill.completed {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.06);
}

.reg-step-pill.completed .reg-pill-num {
  background: #22C55E;
  color: #000000;
  font-size: 0.7rem;
}

.reg-step-pill.completed .reg-pill-label {
  color: #22C55E;
}

/* Painéis de Etapas */
.reg-wizard-step {
  display: none;
  animation: fadeInStep 0.25s ease-in-out;
}

.reg-wizard-step.active {
  display: block;
}

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

/* Estilo do Feedback de Validação */
.field-error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  color: #EF4444;
  font-size: 0.73rem;
  font-weight: 600;
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 6px;
  border-left: 3px solid #EF4444;
}

.field-error-msg.visible,
.field-error-msg.show {
  display: flex !important;
}

.custom-input.input-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
  background: rgba(239, 68, 68, 0.05) !important;
}

.custom-input.input-success {
  border-color: #22C55E !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15) !important;
}

/* Indicador e Checklist de Força da Senha */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap .custom-input {
  padding-right: 46px;
}

.password-toggle-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 5;
}

.password-toggle-eye:hover {
  color: #FFFFFF;
}

[data-theme="light"] .password-toggle-eye:hover {
  color: #0F172A;
}

.password-strength-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0 16px;
}

[data-theme="light"] .password-strength-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.strength-meter-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

[data-theme="light"] .strength-meter-bar {
  background: #E2E8F0;
}

.strength-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.3s ease, background 0.3s ease;
}

.strength-meter-fill.weak { width: 33%; background: #EF4444; }
.strength-meter-fill.medium { width: 66%; background: #EAB308; }
.strength-meter-fill.strong { width: 100%; background: #22C55E; }

.strength-rules-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 0.72rem;
  color: #94A3B8;
}

@media (max-width: 480px) {
  .strength-rules-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.strength-rule-item {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.strength-rule-item.valid {
  color: #22C55E !important;
  font-weight: 700;
}

[data-theme="light"] .strength-rule-item.valid {
  color: #16A34A !important;
}

.strength-rule-item .rule-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

.strength-rule-item.valid .rule-icon {
  background: #22C55E;
  border-color: #22C55E;
  color: #000000;
}

/* Botões do Wizard */
.wizard-nav-btns {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.wizard-nav-btns .btn {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0 16px;
}

.wizard-nav-btns .btn-secondary {
  flex: 0 0 110px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

[data-theme="light"] .wizard-nav-btns .btn-secondary {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

/* Quick Setting Box no Admin */
.admin-quick-setting-box {
  transition: all 0.25s ease;
}

[data-theme="light"] .admin-quick-setting-box {
  background: #FFF1F2 !important;
  border-color: rgba(229, 9, 20, 0.25) !important;
}

[data-theme="light"] .admin-quick-setting-box div {
  color: #1e293b !important;
}

[data-theme="light"] .admin-quick-setting-box #current-min-withdraw-badge {
  background: rgba(34, 197, 94, 0.18) !important;
  color: #15803d !important;
}




