/* ──────────────────────────────────────────────
   ON-CHAIN ANALYTICS — chrome design language
   demo2026/css/onchain.css
   ────────────────────────────────────────────── */

.oc-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.oc-header { margin-bottom: 24px; }
.oc-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.oc-title .chrome-text-subtle { font-weight: 700; }
.oc-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0;
  line-height: 1.5;
}

/* Time-range pills */
.oc-tf-row {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 24px 0 32px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}
.oc-tf-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.oc-tf-btn:hover { color: var(--text); }
.oc-tf-btn.is-active { background: #00C566; color: #0A0E14; }

/* Sections */
.oc-section { margin-bottom: 56px; }
.oc-section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--text);
}
.oc-section-sub {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0 0 20px;
}

/* Panel grid — 2 columns desktop, 1 column mobile */
.oc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .oc-grid { grid-template-columns: 1fr; } }

.oc-panel {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.oc-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.oc-panel-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.oc-panel-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.4;
}
.oc-stat { text-align: right; flex-shrink: 0; }
.oc-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.oc-stat-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.oc-canvas-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  flex: 1;
}
.oc-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Premium-locked panels — silhouette + centered card */
.chart-locked .oc-canvas-wrap {
  position: relative;
  background: var(--bg-surface-2);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text-tertiary);
}
.locked-silhouette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: blur(0.5px);
}
.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}
.locked-icon {
  width: 28px; height: 28px;
  color: #00C566;
  margin-bottom: 4px;
  opacity: 0.85;
}
.locked-overlay h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.005em;
}
.locked-overlay p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px;
  max-width: 280px;
  line-height: 1.5;
}
.locked-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.65;
}

@media (max-width: 600px) {
  .oc-canvas-wrap { height: 300px; }
  .oc-panel-head { flex-wrap: wrap; }
  .oc-stat { text-align: left; }
}
