.container_global {
  max-width: min(1800px, 96vw) !important;
}

.container_evolucao {
  display: flex;
  gap: 30px;
  align-items: stretch;
  margin-top: 20px;
}

/* --- DASHBOARD DE INSIGHTS --- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.insight-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.insight-card.highlight {
  background: #09090b;
  color: white;
  border: 1px solid #27272a;
}

.insight-card.highlight label {
  color: rgba(255, 255, 255, 0.7);
}

.insight-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090b;
}

.highlight .insight-icon {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.insight-content h2 {
  margin: 0;
  font-size: 24px;
  font-family: 'Inter', sans-serif !important;
  color: inherit;
}

.insight-content label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  display: block;
}

.subtext {
  font-size: 10px;
  opacity: 0.8;
}

/* --- COLUNA ESQUERDA (CONTROLES) --- */
.esquerda {
  flex: 0 0 320px;
  min-width: 320px;
}

.control-group {
  margin-bottom: 25px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.value-display {
  font-size: 14px;
  font-weight: 700;
  color: #09090b;
  background: #f4f4f5;
  padding: 4px 12px;
  border-radius: 100px;
}

.value-display.highlight {
  background: #09090b;
  color: white;
}

.input-premium {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid #e4e4e7;
  background: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  color: #09090b;
  transition: all 0.3s ease;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.input-premium:focus {
  border-color: #09090b;
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.input-minimal {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-weight: 700;
  color: #09090b;
  font-size: 18px !important;
  pointer-events: none;
}

/* --- COLUNA DIREITA (GRÁFICO) --- */
.direita {
  flex: 1;
  min-width: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.chart-header h3 {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: #09090b;
}

.chart-legend-custom {
  display: flex;
  gap: 15px;
  font-size: 12px;
  font-weight: 600;
  color: #71717a;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.sua-projecao { background: #09090b; }
.cdi { background: #10B981; }
.ipca { background: #EF4444; }

.grafico-container {
  flex: 1;
  min-height: 450px;
  width: 100%;
  position: relative;
}

/* --- MAGIC INSIGHTS --- */
.magic-insights {
  margin-top: 30px;
}

/* --- BOTÕES (LADO A LADO) --- */
.botoes {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.botoes .btn-main,
.botoes .btn-secundario {
  flex: 1;
  padding: 14px 20px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.botoes .btn-main {
  background: #09090b;
  color: white;
  border: 1px solid #27272a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.botoes .btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: #18181b;
}

.botoes .btn-secundario {
  background: #ffffff;
  color: #09090b;
  border: 1px solid #e4e4e7;
}

.botoes .btn-secundario:hover {
  background: #f4f4f5;
  color: #000000;
  transform: translateY(-2px);
}

/* --- BOTÃO PRÓXIMO --- */
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: #09090b;
  color: white;
  border: 1px solid #27272a;
  padding: 18px 45px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-next:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background: #18181b;
}

/* --- RESPONSIVIDADE COMPLETA --- */
@media (max-width: 1100px) {
  .container_evolucao {
    flex-direction: column;
  }
  .esquerda, .direita {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .insight-card {
    padding: 18px 14px;
    gap: 14px;
  }

  .insight-content h2 {
    font-size: 20px;
  }

  .container_evolucao {
    padding: 0 12px;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .insight-content h2 {
    font-size: 18px;
  }
}