/* holders.html — page-specific styles */

.page-header,
.analytics-section,
.analytics-block,
.overview-grid,
.overview-card {
  position: relative;
  z-index: 1;
}

* { color: #333333 !important; }

.page-header {
  padding: 120px 48px 56px;
}
.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.page-tag {
  display: inline-block;
  background: rgba(184, 132, 26, 0.12);
  border: 1px solid rgba(184, 132, 26, 0.3);
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #4A2E0E;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.page-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Consolas', 'Courier New', monospace, var(--font);
}
.update-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
  font-family: 'Consolas', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}

.analytics-section {
  padding: 0 48px 80px;
}
.analytics-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.overview-card {
  background: rgba(247, 240, 230, 0.55);
  border: 1px solid rgba(217, 201, 174, 0.6);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.overview-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.overview-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-family: 'Consolas', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.overview-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0.75;
}

.analytics-block {
  background: rgba(247, 240, 230, 0.55);
  border: 1px solid rgba(217, 201, 174, 0.6);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 24px;
}
.block-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(217, 201, 174, 0.5);
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
}
.tier-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 0 0 14px 0;
  border-bottom: 1px solid rgba(217, 201, 174, 0.5);
}
.tier-table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(217, 201, 174, 0.25);
  font-size: 0.92rem;
  color: var(--text);
  font-family: 'Consolas', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}
.tier-table tr:last-child td { border-bottom: none; }
.tier-icon { font-size: 1.1rem; margin-right: 8px; }
.tier-name { font-weight: 600; }
.tier-zero { opacity: 0.4; }
.tier-bar-wrap {
  width: 120px;
  height: 6px;
  background: rgba(217, 201, 174, 0.4);
  border-radius: 3px;
  overflow: hidden;
}
.tier-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.8s ease;
}

.conc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.conc-item {
  text-align: center;
  padding: 16px;
  background: rgba(247, 240, 230, 0.4);
  border-radius: 8px;
}
.conc-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  font-family: 'Consolas', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.conc-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.holder-table {
  width: 100%;
  border-collapse: collapse;
}
.holder-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 0 12px 14px 0;
  border-bottom: 1px solid rgba(217, 201, 174, 0.5);
}
.holder-table th:first-child { padding-left: 0; width: 48px; }
.holder-table td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid rgba(217, 201, 174, 0.2);
  font-size: 0.88rem;
  color: var(--text);
  vertical-align: middle;
}
.holder-table td:first-child { padding-left: 0; }
.holder-table tr:last-child td { border-bottom: none; }
.holder-rank {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'Consolas', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}
.holder-addr {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
}
.holder-table td:nth-child(3),
.holder-table td:nth-child(4),
.holder-table td:nth-child(5) {
  font-family: 'Consolas', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.holder-addr:hover { opacity: 0.75; }
.pct-bar-wrap {
  width: 100%;
  max-width: 200px;
  height: 4px;
  background: rgba(217, 201, 174, 0.4);
  border-radius: 2px;
  margin-top: 5px;
}
.pct-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.loading-row td {
  text-align: center;
  padding: 40px !important;
  color: var(--text-muted);
  font-style: italic;
}
.arbiscan-link {
  font-size: 0.78rem;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.arbiscan-link:hover { opacity: 0.75; }

.tier-chart-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.tier-chart-donut {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}

.tier-chart-donut canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

.tier-chart-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tier-chart-total {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
}

.tier-chart-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: max-content;
  min-width: 100%;
}

.chart-legend > div {
  white-space: nowrap;
}

.block-scroll {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(217, 201, 174, 0.6);
  border-radius: 8px;
  background: rgba(247, 240, 230, 0.35);
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 12px 14px;
}

.block-scroll--table {
  padding: 0;
}

.block-scroll--table .tier-table {
  min-width: 620px;
}

.block-scroll--table .tier-table th:first-child,
.block-scroll--table .tier-table td:first-child {
  padding-left: 14px;
}

.block-scroll--table .tier-table th:last-child,
.block-scroll--table .tier-table td:last-child {
  padding-right: 14px;
}

@media (max-width: 768px) {
  .page-header, .analytics-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-header {
    padding-top: 88px;
    padding-bottom: 40px;
  }

  .page-header-inner,
  .analytics-inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .page-sub {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .analytics-section {
    padding-bottom: 64px;
  }

  .overview-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .overview-card,
  .analytics-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .analytics-block {
    padding: 24px 16px;
  }

  .tier-chart-total {
    font-size: 1.4rem;
  }

  .tier-chart-label {
    font-size: 0.7rem;
  }

  .block-title {
    text-align: center;
  }

  .block-title[style*="flex"] {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
  }

  .tier-chart-layout {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
  }

  .tier-chart-donut {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    align-self: center;
    overflow: hidden;
  }

  .block-scroll--legend {
    width: 100%;
    max-width: 100%;
    flex: none;
    max-height: none;
    box-sizing: border-box;
  }

  .block-scroll--legend .chart-legend {
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
  }

  .conc-grid {
    grid-template-columns: 1fr;
  }

  .analytics-block:has(.holder-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .holder-table th:nth-child(3),
  .holder-table td:nth-child(3) { display: none; }
}
