﻿:root {
  --bg: #120d09;
  --bg-soft: #1a120d;
  --panel: #1d140f;
  --panel-2: #271913;
  --panel-3: #140e0a;
  --text: #f1dec9;
  --text-strong: #fff3e3;
  --muted: #c49d74;
  --line: rgba(255, 132, 28, 0.34);
  --line-strong: rgba(255, 164, 72, 0.62);
  --accent: #ff7a1a;
  --accent-strong: #ffb14a;
  --accent-soft: rgba(255, 126, 26, 0.16);
  --shadow: 0 14px 0 rgba(0, 0, 0, 0.24);
  --glow: 0 0 0 1px rgba(255, 176, 74, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 125, 18, 0.2), transparent 18%),
    radial-gradient(circle at bottom right, rgba(98, 40, 8, 0.34), transparent 28%),
    linear-gradient(180deg, #120c08 0%, #17100c 46%, #0c0806 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 170, 102, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 170, 102, 0.03) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255, 132, 28, 0.03) 0 2px, transparent 2px 14px);
  background-size: 28px 28px, 28px 28px, auto;
  opacity: 0.7;
}

.page-shell {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.55rem 1.15rem;
  backdrop-filter: blur(10px);
  background: rgba(18, 12, 8, 0.88);
  border-bottom: 2px solid var(--line-strong);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: 0.2rem;
  color: var(--text-strong);
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid rgba(255, 177, 74, 0.5);
  background: #2a180d;
  padding: 0.25rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-copy span {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.site-nav a:hover,
.site-footer a:hover,
.table-link:hover {
  color: var(--accent-strong);
}

main {
  padding-top: 1.5rem;
}

.search-hero,
.section,
.search-card {
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.search-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.search-hero-copy,
.search-card {
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(36, 23, 16, 0.98), rgba(20, 13, 9, 0.96)),
    linear-gradient(90deg, rgba(255, 128, 24, 0.04), transparent);
}

.search-card-full {
  grid-column: 1 / -1;
}

.search-hero-copy {
  padding: 2.4rem;
}

.search-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem;
  position: relative;
}

.search-card::after,
.section::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  width: 54px;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.85;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: flex-end;
  margin-bottom: 0.85rem;
}

.network-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.network-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 0.95rem;
  border: 2px solid rgba(255, 190, 82, 0.24);
  border-radius: 8px;
  color: var(--text-strong);
  background: #1a120d;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.network-status-badge.is-online {
  border-color: rgba(72, 201, 120, 0.28);
  color: #a9f0bb;
}

.network-status-badge.is-down {
  border-color: rgba(255, 122, 47, 0.35);
  color: #ffc89a;
}

.network-picker label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.network-picker select {
  min-width: 150px;
  min-height: 2.7rem;
  padding: 0 0.9rem;
  color: var(--text-strong);
  background: #120d09;
  border: 2px solid rgba(255, 190, 82, 0.2);
  border-radius: 8px;
  outline: none;
  font: inherit;
}

.network-picker select:focus {
  border-color: rgba(255, 190, 82, 0.64);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.14);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-strong);
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.06;
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.lede,
.section-copy,
.info-card p,
.note-list li,
.site-footer p,
.detail-meta {
  color: var(--muted);
  line-height: 1.7;
}

.section-copy.is-error,
.detail-meta.is-error {
  color: #ffc89a;
}

.lede {
  max-width: 68ch;
  margin-top: 1rem;
}

.search-bar {
  display: flex;
  gap: 0.75rem;
}

.search-bar-main {
  margin-top: 0;
}

.search-bar input {
  flex: 1 1 320px;
  min-height: 3.6rem;
  padding: 0 1.15rem;
  color: var(--text-strong);
  background: #130d09;
  border: 2px solid rgba(255, 190, 82, 0.18);
  border-radius: 8px;
  outline: none;
  font: inherit;
}

.search-bar input::placeholder {
  color: #8090ad;
}

.search-bar input:focus {
  border-color: rgba(255, 190, 82, 0.64);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.14);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #271206;
  background: linear-gradient(180deg, #ffbe52, #ff7415 78%);
  border: 2px solid #ffbe52;
  box-shadow: inset 0 -3px 0 rgba(73, 28, 0, 0.28);
}

.button.primary:hover {
  background: linear-gradient(180deg, #ffc96d, #ff822d 78%);
}

.search-hint {
  min-height: 1.4rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.search-hint.is-error {
  color: #ffc89a;
}

.search-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}

.search-examples span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.chip-button {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 158, 206, 0.2);
  color: var(--text);
  background: rgba(15, 24, 40, 0.96);
  font: inherit;
  cursor: pointer;
}

.chip-button:hover {
  border-color: rgba(255, 190, 82, 0.5);
  color: var(--accent-strong);
}

.section {
  margin: 1.2rem 0;
  padding: 1.4rem;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(31, 20, 14, 0.98), rgba(17, 11, 8, 0.98)),
    repeating-linear-gradient(0deg, rgba(255, 146, 44, 0.02) 0 1px, transparent 1px 22px);
  position: relative;
  box-shadow: var(--shadow), var(--glow);
}

.overview-section {
  padding-top: 1.6rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.compact-heading {
  margin-bottom: 0.8rem;
}

.section-heading .section-copy,
.detail-meta {
  max-width: 44ch;
  margin: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.metric-card {
  min-height: 7.6rem;
  padding: 1.15rem;
  border-radius: 8px;
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(37, 24, 17, 0.98), rgba(23, 15, 10, 0.96)),
    linear-gradient(90deg, rgba(255, 135, 36, 0.05), transparent 55%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 214, 169, 0.06);
}

.metric-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.metric-value {
  display: block;
  color: var(--text-strong);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric-card.hash-card {
  grid-column: span 2;
}

.metric-card.hash-card .metric-value {
  font-size: clamp(0.92rem, 1.45vw, 1.25rem);
  line-height: 1.45;
}

.wallet-grid {
  margin-bottom: 1rem;
}

.skeleton-card {
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

.explorer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 1.2rem;
  align-items: start;
}

.explorer-panel-full {
  grid-column: 1 / -1;
}

.explorer-panel,
.sidebar-panel {
  margin: 0;
}

.sidebar-stack {
  display: grid;
  gap: 1.2rem;
}

.table-shell {
  overflow-x: auto;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: rgba(17, 11, 8, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 224, 190, 0.04);
}

.table-empty {
  padding: 1.2rem 1rem;
  text-align: center;
  color: var(--muted);
}

.explorer-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.explorer-table th,
.explorer-table td {
  padding: 0.85rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.explorer-table th {
  color: var(--accent-strong);
  background: #2a1a12;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.explorer-table td {
  color: var(--text);
  font-size: 0.93rem;
  overflow-wrap: anywhere;
  background: rgba(24, 15, 10, 0.48);
}

.explorer-table tbody tr:nth-child(even) td {
  background: rgba(33, 20, 13, 0.72);
}

.explorer-table th:nth-child(1),
.explorer-table td:nth-child(1) {
  width: 110px;
}

.explorer-table th:nth-child(2),
.explorer-table td:nth-child(2) {
  width: 42%;
}

.explorer-table th:nth-child(3),
.explorer-table td:nth-child(3) {
  width: 180px;
}

.explorer-table th:nth-child(4),
.explorer-table td:nth-child(4),
.explorer-table th:nth-child(5),
.explorer-table td:nth-child(5) {
  width: 110px;
}

.wallet-table th:nth-child(1),
.wallet-table td:nth-child(1) {
  width: 100px;
}

.wallet-table th:nth-child(2),
.wallet-table td:nth-child(2) {
  width: 22%;
}

.wallet-table th:nth-child(3),
.wallet-table td:nth-child(3) {
  width: 24%;
}

.wallet-table th:nth-child(4),
.wallet-table td:nth-child(4),
.wallet-table th:nth-child(6),
.wallet-table td:nth-child(6) {
  width: 120px;
}

.wallet-table th:nth-child(5),
.wallet-table td:nth-child(5) {
  width: 180px;
}

.table-subtext {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.wallet-table-shell {
  margin-top: 0.85rem;
}

.tx-direction {
  display: inline-flex;
  min-width: 4.3rem;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 2px solid rgba(255, 190, 82, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(23, 15, 10, 0.9);
}

.tx-direction-in {
  border-color: rgba(72, 201, 120, 0.28);
  color: #a9f0bb;
}

.tx-direction-out {
  border-color: rgba(255, 122, 47, 0.35);
  color: #ffc89a;
}

.tx-amount-in {
  color: #a9f0bb;
}

.tx-amount-out {
  color: #ffc89a;
}

.table-link {
  padding: 0;
  border: 0;
  color: var(--text-strong);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.note-list {
  margin: 0;
  padding-left: 1.2rem;
}

.explorer-notes {
  display: grid;
  gap: 0.6rem;
}

.sidebar-info-grid {
  grid-template-columns: 1fr;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.info-card {
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: rgba(29, 19, 13, 0.88);
}

.detail-panel {
  scroll-margin-top: 6rem;
}

.address-detail {
  display: grid;
  gap: 1rem;
}

.address-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.address-flags {
  color: var(--muted);
  line-height: 1.7;
}

.detail-subhead {
  margin-bottom: 0.8rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  gap: 0.8rem;
}

.detail-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: rgba(28, 18, 12, 0.9);
}

.detail-key {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-value {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.65;
}

.io-table th:nth-child(1),
.io-table td:nth-child(1) {
  width: 34%;
}

.io-table th:nth-child(2),
.io-table td:nth-child(2) {
  width: 38%;
}

.io-table th:nth-child(3),
.io-table td:nth-child(3) {
  width: 28%;
  text-align: right;
}

.raw-panel {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 18, 12, 0.9);
  padding: 0.95rem 1rem;
}

.raw-panel summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.raw-panel-code {
  margin: 0.9rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.65;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--line);
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1100px) {
  .search-hero,
  .explorer-main,
  .metric-grid,
  .info-grid,
  .address-summary-grid {
    grid-template-columns: 1fr;
  }

  .metric-card.hash-card {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 1rem, 1380px);
  }

  .site-header,
  .section-heading,
  .site-footer,
  .search-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar-row,
  .network-picker {
    width: 100%;
    justify-content: flex-start;
  }

  .toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .network-status-badge {
    justify-content: center;
  }

  .site-nav {
    gap: 0.7rem 1rem;
  }

  .search-bar,
  .search-bar input,
  .search-bar .button {
    width: 100%;
  }

  .search-hero-copy,
  .search-card,
  .section {
    padding: 1.1rem;
  }

  .detail-row {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}

