/* FlarePoint BTC Chart Lab */

.fp-btc-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 20px;
}

.fp-btc-page-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  margin: 0 0 12px 0;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.fp-btc-page-header p {
  max-width: 940px;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 24px 0;
  color: #334155;
}

.fp-btc-page-disclaimer {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin-top: 18px;
  max-width: 1080px;
}

.fp-btc-loading,
.fp-btc-error {
  border: 1px solid #dbe2ea;
  border-radius: 18px;
  padding: 24px;
  background: #f8fafc;
  color: #334155;
}

.fp-btc-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.fp-btc-shell {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 35%),
    linear-gradient(135deg, #111827 0%, #020617 100%);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.20);
  color: #e5e7eb;
  overflow: hidden;
}

.fp-btc-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.fp-btc-title {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.fp-btc-subtitle {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
  max-width: 980px;
}

.fp-btc-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.fp-btc-controls button {
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 12px;
}

.fp-btc-controls button:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(245, 158, 11, 0.85);
}

.fp-btc-controls button.active {
  background: #f59e0b;
  color: #111827;
  border-color: #f59e0b;
}

.fp-btc-section-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 2px;
  align-self: center;
}

.fp-btc-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0 14px 0;
}

.fp-btc-metric-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 12px;
  min-height: 74px;
}

.fp-btc-metric-label {
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.fp-btc-metric-value {
  font-size: 18px;
  font-weight: 850;
  color: #f8fafc;
  white-space: nowrap;
}

.fp-btc-metric-sub {
  margin-top: 5px;
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

.fp-btc-chart-wrap {
  position: relative;
  height: 610px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 12px;
}

.fp-btc-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.fp-btc-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}

.fp-btc-disclaimer {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
}

.fp-btc-positive {
  color: #22c55e;
}

.fp-btc-negative {
  color: #ef4444;
}

@media (max-width: 1200px) {
  .fp-btc-metrics {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 900px) {
  .fp-btc-metrics {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .fp-btc-chart-wrap {
    height: 520px;
  }
}
