@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-card: #14141c;
  --border: #24242f;
  --text: #eaeaf2;
  --text-dim: #8a8a9a;
  --accent: #7c5cff;
  --accent2: #00e5a0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.5;
}

.topbar {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; font-size: 18px; font-family: 'JetBrains Mono', monospace; }

.container { max-width: 640px; margin: 0 auto; padding: 40px 20px 80px; }
.container.narrow { max-width: 480px; }

.hero { text-align: center; margin-bottom: 24px; }
.hero h1 { font-size: 32px; margin-bottom: 12px; font-weight: 800; }
.subtitle { color: var(--text-dim); font-size: 15px; max-width: 460px; margin: 0 auto; }

.stats-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 16px; font-size: 13px; color: var(--text-dim);
  margin-bottom: 20px;
}
.stats-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 6px var(--accent2); }
.stats-pill span:not(.dot) { color: var(--text); font-weight: 600; }

.tiers { display: flex; gap: 10px; margin-bottom: 28px; }
.tier {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 10px; text-align: center;
}
.tier-rank { display: block; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.tier-reward { display: block; font-weight: 700; color: var(--accent2); font-size: 14px; }

.claim-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; margin-bottom: 32px;
}
.claim-box h2 { margin-top: 0; font-size: 19px; text-align: center; }

.field-row { margin-bottom: 12px; }
.field-row input {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: #0d0d13; color: var(--text); font-size: 14px; font-family: inherit;
}
.field-row input:focus { outline: none; border-color: var(--accent); }

.rt-box {
  background: #0d0d13; border: 1px dashed var(--border); border-radius: 10px;
  padding: 14px; margin: 14px 0; text-align: center;
}
.rt-link { color: var(--accent2); text-decoration: none; font-size: 14px; font-weight: 600; display: block; margin-bottom: 10px; }
.rt-checkbox { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-dim); }

button, .claim-btn, .share-btn {
  background: var(--accent); color: #fff; border: none; border-radius: 10px;
  padding: 13px 20px; font-weight: 700; font-size: 15px; cursor: pointer; width: 100%;
  text-align: center; text-decoration: none; display: block;
}
button:hover, .claim-btn:hover, .share-btn:hover { opacity: 0.9; }
.error { color: #ff5c5c; font-size: 13px; margin-bottom: 12px; text-align: center; font-weight: 600; }
.hint { color: var(--text-dim); font-size: 12px; text-align: center; margin-top: 10px; }

.leaderboard h2 { font-size: 19px; margin-bottom: 14px; }
.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.lb-row:last-child { border-bottom: none; }
.lb-rank { font-family: 'JetBrains Mono', monospace; color: var(--accent2); width: 40px; font-weight: 700; }
.lb-handle { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-handle a { color: var(--text); text-decoration: none; }
.lb-handle a:hover { color: var(--accent2); text-decoration: underline; }
.lb-wallet { color: var(--text-dim); font-weight: 400; font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.lb-refs { color: var(--text-dim); font-size: 12px; }
.empty { color: var(--text-dim); }

.resend-box { text-align: center; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.resend-label { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.resend-form { display: flex; gap: 8px; max-width: 340px; margin: 0 auto; }
.resend-form input {
  flex: 1; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: #0d0d13; color: var(--text); font-size: 13px; font-family: inherit;
}
.resend-form button { width: auto; padding: 9px 16px; font-size: 13px; }

footer { text-align: center; padding: 30px; color: var(--text-dim); font-size: 13px; border-top: 1px solid var(--border); }

.status-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; text-align: center; margin-top: 30px; }
.status-label { color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.status-rank { font-size: 56px; font-weight: 800; color: var(--accent2); margin: 4px 0; }
.status-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.referral-box { margin-bottom: 16px; }
.referral-label { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.referral-box input {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: #0d0d13; color: var(--text); font-family: monospace; font-size: 13px; margin-bottom: 8px;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .tiers { flex-direction: column; }
  .status-rank { font-size: 44px; }
}

