/* ──────────────────────────────────────────────
   DEFI & NFT — page-specific styles
   demo2026/css/defi-nft.css
   (page wrapper + .chart-locked + .oc-panel come from onchain.css)
   ────────────────────────────────────────────── */

/* TVL panel (and stablecoin headline) — left stat column + right chart */
.dn-tvl-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 800px) { .dn-tvl-row { grid-template-columns: 1fr; } }

.dn-tvl-headline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}
.dn-tvl-chart { min-height: 280px; }
.dn-tvl-chart .oc-canvas-wrap { height: 280px; }

.dn-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.dn-stat-bignum {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.dn-stat-change {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dn-stat-change.up   { color: #00C566; }
.dn-stat-change.down { color: #E54360; }

.dn-tvl-side-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.dn-side-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dn-side-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.dn-side-stat-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Tables */
.dn-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dn-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}
.dn-table thead th[data-sort] { cursor: pointer; user-select: none; transition: color 200ms; }
.dn-table thead th[data-sort]:hover { color: var(--text); }
.dn-table thead th.t-right { text-align: right; }
.dn-table thead th.t-dim   { color: var(--text-tertiary); opacity: 0.7; }
.dn-table thead th.is-sorted { color: #00C566; }
.dn-table thead th.is-sorted::after { content: '▾'; margin-left: 4px; font-size: 9px; }
.dn-table thead th.is-sorted.is-asc::after { content: '▴'; }

.dn-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.dn-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.dn-table .t-right { text-align: right; }
.dn-table .t-dim   { color: var(--text-tertiary); }
.dn-table .t-mono  { font-family: var(--font-mono); }
.dn-table .num-up   { color: #00C566; font-family: var(--font-mono); font-weight: 600; }
.dn-table .num-down { color: #E54360; font-family: var(--font-mono); font-weight: 600; }
.dn-table .num-flat { color: var(--text-tertiary); font-family: var(--font-mono); }

/* Cell-with-logo */
.dn-cell-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dn-cell-logo img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  flex-shrink: 0;
  object-fit: cover;
}
.dn-cell-logo .dn-cell-name {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.dn-cell-logo .dn-cell-symbol {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-left: 4px;
}

/* Loading rows */
.dn-loading {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Note above the NFT table */
.dn-note {
  font-size: 12px;
  color: var(--text-tertiary);
  font-style: italic;
  margin: 0 0 14px;
  line-height: 1.5;
}

/* Attribution footer line */
.dn-attribution {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.dn-attribution a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 200ms;
}
.dn-attribution a:hover { color: #00C566; text-decoration: underline; }
