/* ============ /chain page — dark Binance-gold theme
   (structure from captures/chain-outline.txt; styles from captures/design/chain-desktop.json) ============ */

.chain-container {
  min-height: 100vh;
  background-color: rgb(30, 32, 38);
  color: rgb(234, 236, 239);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 0 20px 60px;
}
.chain-container .header { padding-top: 20px; }
.chain-container .header h1 {
  color: rgb(240, 185, 11);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px; font-weight: 600;
  margin: 21.44px 0 16px;
}
.chain-container .filters { margin-bottom: 24px; }
.search-box { position: relative; }
.search-input {
  font-family: Arial, sans-serif; font-size: 14px; font-weight: 400;
  color: rgb(234, 236, 239);
  background-color: rgb(30, 32, 38);
  padding: 12px 16px;
  border: 1px solid rgb(43, 49, 57);
  border-radius: 8px;
  width: 400px; max-width: 100%;
  outline: none;
  transition: 0.3s;
}
.search-input:focus { border-color: rgb(240, 185, 11); }
.search-input::placeholder { color: rgba(234, 236, 239, 0.4); }

/* Loading state (observed: .loading-container > .loading-content > icon, h3, message, progress, steps) */
.loading-container { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.loading-content { text-align: center; max-width: 500px; width: 100%; }
.loading-icon { color: rgb(240, 185, 11); margin-bottom: 16px; font-size: 28px; }
.loading-content h3 {
  color: rgb(250, 250, 250);
  background-image: linear-gradient(135deg, rgb(250, 250, 250), rgb(240, 185, 11));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px; font-weight: 700;
  margin: 32px 0 12px; text-align: center;
}
.loading-message { font-family: Inter, sans-serif; font-size: 14px; color: rgba(234, 236, 239, 0.6); margin-bottom: 24px; }
.progress-bar {
  position: relative; height: 8px; border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  overflow: hidden; margin-bottom: 8px;
}
.progress {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  border-radius: 8px;
  background-image: linear-gradient(90deg, rgb(240, 185, 11), rgb(250, 215, 100));
  transition: width 0.4s ease;
}
.progress-glow {
  position: absolute; inset: 0; border-radius: 8px;
  box-shadow: 0 0 12px rgba(240, 185, 11, 0.5);
}
.progress-text { font-family: Inter, sans-serif; font-size: 14px; color: rgb(240, 185, 11); font-variant-numeric: tabular-nums; margin-bottom: 32px; }
.loading-steps { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  font-family: Inter, sans-serif; font-size: 14px; color: rgba(234, 236, 239, 0.5);
  opacity: 0.5; transition: 0.3s;
}
.step i { width: 18px; text-align: center; color: rgba(234, 236, 239, 0.5); }
.step.active { opacity: 1; color: rgb(234, 236, 239); background-color: rgba(30, 32, 38, 0.8); border: 1px solid rgb(43, 49, 57); }
.step.active i { color: rgb(240, 185, 11); }
.step.completed { opacity: 1; color: rgba(234, 236, 239, 0.9); }
.step.completed i { color: #4ADE80; }

/* Loaded history view (tabs + feed observed in route-scan) */
.chain-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.chain-tab {
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  padding: 8px 16px; border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05); color: rgba(234, 236, 239, 0.6);
  border: 1px solid rgb(43, 49, 57);
  transition: 0.3s;
}
.chain-tab.active { color: rgb(240, 185, 11); border-color: rgb(240, 185, 11); background-color: rgba(240, 185, 11, 0.08); }
.chain-feed { display: flex; flex-direction: column; gap: 10px; }
.tx-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  font-family: Inter, sans-serif; font-size: 13.6px;
  flex-wrap: wrap;
}
.tx-row .tx-hash { font-family: Consolas, monospace; color: rgb(240, 185, 11); font-size: 12.8px; }
.tx-row .tx-type { font-weight: 600; }
.tx-row .tx-amount { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.tx-row .tx-amount.pos { color: #4ADE80; }
.tx-row .tx-amount.neg { color: #F87171; }
.tx-row .tx-time { color: rgba(234, 236, 239, 0.45); font-size: 12px; }
.chain-ready-note {
  margin-top: 16px; font-family: Inter, sans-serif; font-size: 12px;
  color: rgba(234, 236, 239, 0.45); text-align: center;
}

/* Market info cards + charts + pagination (evidenced in original ChainComponent) */
.chain-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 24px 0 0; }
.chain-stat {
  padding: 14px 16px; border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgb(43, 49, 57);
}
.chain-stat .cs-label { font-family: Inter, sans-serif; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(234, 236, 239, 0.5); margin-bottom: 6px; }
.chain-stat .cs-value { font-family: Inter, sans-serif; font-size: 17px; font-weight: 700; color: rgb(234, 236, 239); font-variant-numeric: tabular-nums; }
.chain-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 0; }
.chain-chart-card {
  padding: 16px; border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgb(43, 49, 57);
}
.chain-chart-card h3 { font-family: Inter, sans-serif; font-size: 14px; margin: 0; color: rgb(234, 236, 239); }
.chain-chart-card .chain-chart-sub { font-family: Inter, sans-serif; font-size: 12px; color: rgba(234, 236, 239, 0.5); margin: 2px 0 10px; }
.chain-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 20px 0 12px; flex-wrap: wrap;
  font-family: Inter, sans-serif; font-size: 13px; color: rgba(234, 236, 239, 0.6);
}
.chain-toolbar-left { display: flex; align-items: center; gap: 12px; }
.chain-per-label { display: flex; align-items: center; gap: 8px; }
.chain-per-label select {
  background-color: rgba(30, 32, 38, 0.8); color: rgb(234, 236, 239);
  border: 1px solid rgb(43, 49, 57); border-radius: 6px; padding: 6px 8px;
  font-family: Inter, sans-serif; font-size: 13px;
}
.chain-empty {
  padding: 40px; text-align: center;
  font-family: Inter, sans-serif; font-size: 14px; color: rgba(234, 236, 239, 0.5);
  border: 1px dashed rgb(43, 49, 57); border-radius: 10px;
}
.chain-pg { margin-top: 16px; }
.chain-pg .pg-btns { display: flex; gap: 6px; align-items: center; justify-content: center; }
.chain-pg .pg-btn {
  font-family: Inter, sans-serif; font-size: 13px;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); color: rgba(234, 236, 239, 0.7);
  border: 1px solid rgb(43, 49, 57);
}
.chain-pg .pg-btn:disabled { opacity: 0.4; cursor: default; }
.chain-pg .pg-btn.active { color: rgb(240, 185, 11); border-color: rgb(240, 185, 11); }
.tx-row:hover { background-color: rgba(255, 255, 255, 0.09); }
@media (max-width: 768px) {
  .chain-charts { grid-template-columns: 1fr; }
}
