:root {
  --bg: #ffffff;
  --panel: #f7f7f7;
  --ink: #050505;
  --muted: #6e6e6e;
  --green: #00c95f;
  --line: #d7d7d7;
  --dash: #cfcfcf;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  text-transform: none;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 35vw);
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(28px, 4vw, 56px);
}

.left-panel { min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.topbar h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 42px);
  line-height: .88;
  letter-spacing: -0.06em;
}
nav { display: flex; gap: 18px; color: var(--muted); font-size: 11px; margin-top: 8px; }
nav a:hover { color: var(--ink); }

.label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.usd {
  font-family: var(--display);
  color: var(--green);
  font-size: clamp(54px, 8vw, 112px);
  line-height: .85;
  letter-spacing: -0.08em;
  margin-bottom: 24px;
}
.eth {
  font-family: var(--display);
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: .02em;
  margin-bottom: 40px;
}
.eth span { letter-spacing: .04em; }

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px dashed var(--dash);
  border-bottom: 1px dashed var(--dash);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.metrics div { padding: 18px 0; }
.metrics div + div { border-left: 1px dashed var(--dash); padding-left: 18px; }

.address-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px dashed var(--dash);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.address-row button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

.contribute { padding: 40px 0 32px; text-align: center; }
.contribute > button,
.snapshot-actions button,
.snapshot-actions a,
#walletDonate {
  border: 0;
  background: var(--green);
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.04em;
  padding: 16px 24px;
  width: 100%;
}
.contribute p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.donate-inline {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  margin-top: 18px;
}
input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 14px;
  outline: none;
}
#walletDonate { font-size: 14px; padding: 14px; }
.search-input {
  width: 200px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 12px;
  outline: none;
  background: var(--bg);
  color: var(--ink);
}
.search-input:focus { border-color: var(--muted); }
.status { min-height: 1.6em; }

.airdrop {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px dashed var(--dash);
  border-bottom: 1px dashed var(--dash);
}
.airdrop strong { font-family: var(--display); font-size: 18px; letter-spacing: -0.04em; }
.airdrop code { color: var(--muted); overflow-wrap: anywhere; font-size: 12px; }

.snapshot { padding-top: 32px; }
.snapshot-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 16px;
}
.snapshot h2 { margin: 0; font-family: var(--display); font-size: clamp(20px, 2.5vw, 32px); letter-spacing: -0.05em; }
.snapshot-actions { display: flex; gap: 10px; }
.snapshot-actions button, .snapshot-actions a { width: auto; font-size: 12px; padding: 10px 14px; }
.snapshot-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.snapshot-table-wrapper {
  height: 500px;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  margin-top: 10px;
}
.snapshot-table-wrapper table thead th {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
  border-bottom: 2px solid var(--line);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: var(--muted); font-weight: 400; text-align: right; padding: 14px 0; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
td { padding: 16px 0; border-bottom: 1px dashed var(--dash); text-align: right; vertical-align: top; }
td small { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; }
td a { text-decoration: underline; text-underline-offset: 3px; }

.right-panel {
  background: var(--panel);
  padding: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 48px);
  align-self: start;
  min-height: calc(100vh - clamp(56px, 8vw, 112px));
}
.right-panel section + section { margin-top: 56px; }
.right-panel h2 {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}
.right-panel p {
  margin: 0 0 24px;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.45;
  font-weight: 800;
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; padding: 24px; }
  .topbar, .snapshot-head { flex-direction: column; align-items: flex-start; }
  nav { flex-wrap: wrap; }
  .right-panel { min-height: 0; }
}
@media (max-width: 640px) {
  .metrics, .airdrop, .donate-inline { grid-template-columns: 1fr; }
  .metrics div + div { border-left: 0; border-top: 1px dashed var(--dash); padding-left: 0; }
  table { font-size: 11px; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}
