:root {
  --bg: #0e0d20;
  --surface: #161432;
  --surface-2: #1a1836;
  --outline: #2a2852;
  --accent: #6c5bd3;
  --accent-2: #7a68f8;
  --lime: #a6ff00;
  --text: #e8e7fb;
  --muted: #8e89b7;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 70% -120px, #262252 0%, transparent 55%) var(--bg);
  color: var(--text);
}

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(0deg, rgba(14,13,32,0.6), rgba(14,13,32,0.6)), var(--bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #221f45;
  box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.2px; }
.brand-logo { display: inline-block; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,0.35), 0 0 12px rgba(166,255,0,0.12); }
.brand-text { font-weight: 700; }

.nav { display: flex; gap: 8px; }
.nav-link { color: var(--muted); text-decoration: none; padding: 9px 12px; border-radius: 10px; transition: 120ms ease; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--surface-2); color: var(--text); border: 1px solid var(--outline); box-shadow: inset 0 -1px 0 rgba(0,0,0,0.4); }
.nav-actions { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; }
.button-ghost { appearance: none; background: transparent; color: var(--text); border: 1px solid var(--outline); border-radius: 10px; padding: 8px 12px; cursor: pointer; transition: 120ms ease; text-decoration: none; }
.button-ghost:hover { background: var(--surface); }
.small { font-size: 13px; padding: 8px 12px; }

/* Main */
.main { padding: 28px 0 64px; }
.hero { margin-bottom: 18px; }
.hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.h1 { font-size: 28px; margin: 0; letter-spacing: -0.5px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

.hero-sub { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

.heading-lime { color: var(--lime); text-shadow: 0 0 14px rgba(166,255,0,0.35); }

.code-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* Cards */
.card { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--outline); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25), inset 0 10px 30px rgba(0,0,0,0.25); }
.table-card { padding: 6px; }
.form-card { padding: 20px; max-width: 560px; }

/* Table */
.table-responsive { overflow: auto; border-radius: 12px; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; }
table.table thead th { text-align: left; padding: 14px 16px; font-weight: 600; font-size: 13px; color: var(--muted); background: #1b1938; position: sticky; top: 0; z-index: 1; }
table.table thead th:first-child { border-top-left-radius: 12px; }
table.table thead th:last-child { border-top-right-radius: 12px; }
table.table tbody td { padding: 14px 16px; border-top: 1px solid var(--outline); }
table.table th.num, table.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.table tbody tr { background: #161534; }
table.table tbody tr:nth-child(even) { background: #15133a; }
table.table tbody tr:hover { background: #211f49; }
table.table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 13px; }

.reward { color: var(--lime); background: rgba(166,255,0,0.08); padding: 6px 10px; border-radius: 999px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(166,255,0,0.55); box-shadow: 0 0 0 2px rgba(166,255,0,0.12) inset, 0 0 18px rgba(166,255,0,0.15); }
.reward small { color: var(--lime); font-weight: 700; opacity: 0.95; }

/* Form */
.form { display: grid; gap: 12px; }
.label { font-size: 14px; color: var(--muted); }
.input { background: #141233; color: var(--text); border: 1px solid var(--outline); border-radius: 12px; padding: 14px 14px; outline: none; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); }
.input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(122,104,248,0.25); }
.button { appearance: none; background: linear-gradient(180deg, #c7ff53, var(--lime)); color: #10110a; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 800; cursor: pointer; box-shadow: 0 0 0 2px rgba(166,255,0,0.2) inset, 0 10px 28px rgba(166,255,0,0.28); letter-spacing: 0.2px; }
.button:hover { filter: brightness(1.03); box-shadow: 0 0 0 2px rgba(166,255,0,0.28) inset, 0 12px 34px rgba(166,255,0,0.34); }

@keyframes limePulse {
  0% { box-shadow: 0 0 0 2px rgba(166,255,0,0.22) inset, 0 8px 22px rgba(166,255,0,0.22); filter: brightness(1.0); }
  50% { box-shadow: 0 0 0 3px rgba(166,255,0,0.35) inset, 0 14px 34px rgba(166,255,0,0.35); filter: brightness(1.08); }
  100% { box-shadow: 0 0 0 2px rgba(166,255,0,0.22) inset, 0 8px 22px rgba(166,255,0,0.22); filter: brightness(1.0); }
}

.button-flash-lime { animation: limePulse 1.2s ease-in-out infinite; }

/* Footer */
.site-footer { border-top: 1px solid var(--outline); padding: 16px 0 22px; color: var(--muted); background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25)); }
.footer-inner { display: flex; justify-content: center; }

/* Utilities */
.chip-rank { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--outline); background: #211e44; font-weight: 700; color: var(--muted); box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); }

@media (max-width: 640px) {
  .h1 { font-size: 22px; }
  table.table thead th:nth-child(2),
  table.table tbody td:nth-child(2) { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
}


