/* Painel de previsões BTC */
#previsoes,
.bhb-forecast-panel {
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  color: #e5e7eb;
  padding: 64px 6%;
}

.bhb-predictions-wrap,
#previsoes .panel-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.bhb-predictions-wrap h2,
#previsoes h2 {
  color: #d4af37;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px;
  text-align: center;
}

.bhb-predictions-sub,
#previsoes .subtitle {
  text-align: center;
  color: #9ca3af;
  margin-bottom: 32px;
  font-size: 1rem;
}

.bhb-kpi-grid,
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.bhb-kpi-card,
.kpi-card {
  background: #151f32;
  border: 1px solid #243047;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.bhb-kpi-label,
.kpi-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.bhb-kpi-value,
.kpi-card .value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f3f4f6;
  word-break: break-word;
}

.bhb-kpi-value-sm {
  font-size: 0.85rem;
  font-weight: 600;
}

.bhb-chart-wrap,
.chart-wrap {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 28px;
  min-height: 320px;
  height: 360px;
  position: relative;
}

.bhb-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-top: 12px;
  font-size: 0.78rem;
  color: #9ca3af;
}

.bhb-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bhb-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bhb-chart-legend .legend-hit i { background: #3ddc84; }
.bhb-chart-legend .legend-miss i { background: #ff6b6b; }
.bhb-chart-legend .legend-pending i { background: #ffc300; }
.bhb-chart-legend .legend-btc i { background: #e8edf5; border-radius: 2px; width: 16px; height: 3px; }

.bhb-table-wrap,
.forecast-table-wrap {
  overflow-x: auto;
}

.bhb-forecast-table,
table.forecast-live {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.bhb-forecast-table th,
.bhb-forecast-table td,
table.forecast-live th,
table.forecast-live td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}

.bhb-forecast-table th,
table.forecast-live th {
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bhb-kpi-value.gold {
  color: #d4af37;
}

.bhb-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.bhb-loading {
  text-align: center;
  color: #9ca3af;
  padding: 1.5rem;
}

.outcome-hit { color: #3ddc84; font-weight: 600; }
.outcome-miss { color: #ff6b6b; font-weight: 600; }
.outcome-pending { color: #ffc300; font-weight: 600; }

/* Isola estilos do painel — não vaza para seções comerciais */
#previsoes .bhb-forecast-table,
#previsoes table {
  width: 100%;
  border-collapse: collapse;
}

#previsoes .bhb-card,
#previsoes article {
  display: none;
}
