:root {
  --bg: #11131a;
  --panel: #1b1f2d;
  --accent: #47c2ff;
  --muted: #8892b0;
  --text: #f8fbff;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: #0c0e14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--text);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.search {
  display: flex;
  gap: 0.4rem;
}

.search input {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  min-width: 280px;
}

.search button {
  background: var(--accent);
  border: none;
  color: #041019;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.content {
  padding: 2rem 3rem 4rem;
  flex: 1;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--panel);
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card p {
  margin: 0.2rem 0;
  font-size: 1.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

th,
td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-align: left;
}

th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.tx-section {
  background: var(--panel);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  background: rgba(71, 194, 255, 0.15);
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table-scroll table {
  min-width: 640px;
}

.hash {
  font-family: "Consolas", "SFMono-Regular", monospace;
  word-break: break-all;
  overflow-wrap: anywhere;
}
