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

:root {
  --bg: #05060b;
  --bg-soft: #0a0d16;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf6;
  --text-dim: #b9c0cf;
  --muted: #8b93a7;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.18));
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 20px 50px -16px rgba(139, 92, 246, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; }

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232a3d; border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2f3850; }

/* ---------- Ambient background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.bg-fx::before,
.bg-fx::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}
.bg-fx::before {
  width: 640px; height: 640px;
  top: -220px; left: -140px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
  animation: drift 20s ease-in-out infinite;
}
.bg-fx::after {
  width: 560px; height: 560px;
  bottom: -200px; right: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.42), transparent 70%);
  animation: drift 26s ease-in-out infinite reverse;
}
.bg-fx .blob {
  position: absolute;
  width: 480px; height: 480px;
  top: 42%; left: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.28), transparent 70%);
  filter: blur(120px);
  animation: drift 32s ease-in-out infinite;
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 55%, transparent 100%);
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.08); }
  66% { transform: translate(-40px, 70px) scale(0.95); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  0% { opacity: 0; transform: scale(0.92) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--cyan); opacity: 0.7; }
.eyebrow::after { content: ''; width: 22px; height: 1px; background: var(--cyan); opacity: 0.7; }

.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-primary {
  background: var(--grad);
  color: #04060f;
  box-shadow: 0 14px 34px -12px rgba(139, 92, 246, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(139, 92, 246, 0.8); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--border-strong); transform: translateY(-2px); }

.btn-sm { padding: 10px 16px; font-size: 0.86rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 6, 11, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -6px rgba(139, 92, 246, 0.7);
}
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero-inner { max-width: 820px; margin: 0 auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
  animation: rise 0.6s ease both;
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  animation: rise 0.6s ease both;
}
.hero-sub {
  max-width: 580px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  animation: rise 0.6s 0.08s ease both;
}

.hero-cta { animation: rise 0.6s 0.16s ease both; }

/* ---------- Signup form ---------- */
.signup-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup-form:focus-within {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}
.signup-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 10px 14px;
}
.signup-form input::placeholder { color: var(--muted); }
.signup-form .btn { flex-shrink: 0; }
.form-hint { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }
.form-hint a { color: var(--cyan); }

/* ---------- Countdown ---------- */
.countdown-wrap { animation: rise 0.6s 0.24s ease both; }
.countdown {
  display: inline-flex;
  gap: clamp(10px, 2.5vw, 20px);
  margin: 30px 0 34px;
}
.count-unit {
  min-width: clamp(72px, 12vw, 96px);
  padding: 18px 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  backdrop-filter: blur(8px);
}
.count-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.count-label {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  padding: 28px 24px;
  animation: rise 0.6s 0.32s ease both;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  padding: 28px 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.feature:hover { transform: translateY(-5px); border-color: var(--border-strong); background: linear-gradient(180deg, var(--surface-strong), var(--surface)); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 28px 26px; position: relative; }
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Leaderboard ---------- */
.leaderboard { max-width: 560px; margin: 0 auto; overflow: hidden; }
.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.lb-head h3 { font-size: 1.05rem; }
.lb-head .live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 600; color: var(--emerald);
}
.lb-list { padding: 8px; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  transition: background 0.16s ease;
}
.lb-row:hover { background: var(--surface); }
.lb-rank {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}
.lb-rank.top { color: #04060f; background: var(--grad); border-color: transparent; }
.lb-avatar {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
}
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-weight: 600; font-size: 0.94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-bar-track { height: 5px; margin-top: 7px; border-radius: 10px; background: var(--surface-strong); overflow: hidden; }
.lb-bar { height: 100%; border-radius: 10px; background: var(--grad); transition: width 0.7s ease; }
.lb-refs { text-align: right; flex-shrink: 0; }
.lb-refs strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; display: block; line-height: 1; }
.lb-refs span { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.lb-empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.faq-q .chev { transition: transform 0.25s ease; color: var(--muted); flex-shrink: 0; }
.faq-q .chev svg { width: 18px; height: 18px; }
.faq-item.open .chev { transform: rotate(180deg); color: var(--cyan); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner { padding: 0 24px 20px; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 72px) 24px;
  text-align: center;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.08)), var(--surface);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -60%; left: 50%;
  width: 500px; height: 500px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-card h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 14px; }
.cta-card p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }
.cta-card .signup-form { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { transition: color 0.16s; }
.footer-links a:hover { color: var(--text); }

/* ---------- Confirm page ---------- */
.confirm-main { padding: clamp(40px, 8vw, 90px) 0; }
.confirm-card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}
.confirm-check {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  box-shadow: var(--shadow-glow);
  animation: pop 0.5s ease both;
}
.confirm-check svg { width: 34px; height: 34px; color: #04060f; }
.confirm-card h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.confirm-card .lead { color: var(--muted); margin: 0 0 28px; }

.pos-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
}
.pos-item { text-align: center; }
.pos-item strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; display: block; line-height: 1; }
.pos-item span { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.pos-sep { width: 1px; height: 34px; background: var(--border); }

.ref-block { margin-bottom: 24px; text-align: left; }
.ref-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; display: block; }
.ref-row { display: flex; gap: 8px; }
.ref-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  outline: none;
}

.confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.confirm-note { margin-top: 22px; font-size: 0.82rem; color: var(--muted); }

/* ---------- Admin page ---------- */
.admin-main { padding: clamp(28px, 6vw, 56px) 0 80px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.admin-head .sub { color: var(--muted); margin-top: 6px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-card { padding: 22px; }
.stat-card .stat-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.stat-card .stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; margin-top: 8px; line-height: 1; }
.stat-card .stat-delta { font-size: 0.8rem; margin-top: 8px; color: var(--emerald); }

.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 16px; }

.panel { padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h3 { font-size: 1.05rem; }

.chart { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bar {
  width: 100%;
  max-width: 34px;
  border-radius: 8px 8px 4px 4px;
  background: var(--grad);
  min-height: 3px;
  transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.chart-bar:hover { filter: brightness(1.2); }
.chart-bar .tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 7px;
  background: #12182a;
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s;
}
.chart-bar:hover .tip { opacity: 1; }
.chart-col span { font-size: 0.68rem; color: var(--muted); }

.launch-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.launch-row input {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
}
.launch-row input:focus { border-color: rgba(139, 92, 246, 0.55); }

.table-panel { margin-bottom: 16px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search {
  flex: 1;
  min-width: 180px;
  position: relative;
}
.toolbar .search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.toolbar .search input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
}
.toolbar .search input:focus { border-color: rgba(139, 92, 246, 0.55); }
.toolbar select {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.14s; }
tbody tr:hover { background: var(--surface); }
.t-email { font-weight: 600; }
.t-code { font-family: 'Space Grotesk', monospace; font-size: 0.82rem; color: var(--cyan); }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; font-size: 0.76rem; font-weight: 600; }
.badge-pill.yes { color: var(--emerald); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.25); }
.badge-pill.no { color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.badge-pill.yes::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.badge-pill.no::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.t-pos { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }

.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-state .icon { font-size: 2rem; margin-bottom: 10px; }

/* ---------- Toast ---------- */
.toasts {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #12182a;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(52, 211, 153, 0.4); }
.toast.success::before { content: '✓'; color: var(--emerald); font-weight: 700; }
.toast.error { border-color: rgba(251, 113, 133, 0.4); }
.toast.error::before { content: '✕'; color: var(--rose); font-weight: 700; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .features-grid, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .signup-form { flex-direction: column; padding: 8px; }
  .signup-form .btn { width: 100%; }
  .countdown { flex-wrap: wrap; justify-content: center; }
  .ref-row { flex-direction: column; }
  .confirm-actions { flex-direction: column; }
  .confirm-actions .btn { width: 100%; }
  .stats-strip { gap: 26px; }
  .nav-inner { height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Auth ---------- */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding: clamp(32px, 6vw, 64px) 0;
}
.auth-card { max-width: 420px; margin: 0 auto; padding: clamp(28px, 5vw, 44px); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-brand .brand-mark { width: 48px; height: 48px; border-radius: 14px; }
.auth-card h1 { font-size: clamp(1.5rem, 4vw, 1.9rem); text-align: center; margin-bottom: 8px; }
.auth-sub { color: var(--muted); text-align: center; margin: 0 0 28px; }

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.field-input {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field-input::placeholder { color: var(--muted); }
.field-input:focus { border-color: rgba(139, 92, 246, 0.55); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14); }

.password-field { position: relative; margin-bottom: 18px; }
.password-field .field-input { margin-bottom: 0; padding-right: 46px; }
.password-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  background: transparent; border: none; color: var(--muted); cursor: pointer; border-radius: 8px;
  transition: color 0.16s, background 0.16s;
}
.password-toggle:hover { color: var(--text); background: var(--surface-strong); }
.password-toggle svg { width: 19px; height: 19px; }
.password-toggle.active { color: var(--cyan); }

.auth-error {
  display: none;
  margin: -4px 0 16px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fda4af;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.25);
}
.auth-error.show { display: block; animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.btn.loading { pointer-events: none; opacity: 0.8; }
.btn.loading::before {
  content: ''; width: 14px; height: 14px;
  border: 2px solid rgba(4, 6, 15, 0.35); border-top-color: #04060f;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}

.demo-box {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
}
.demo-box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.demo-box-head span { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.demo-box code { font-size: 0.85rem; color: var(--cyan); font-family: 'Space Grotesk', monospace; word-break: break-all; }

.auth-note { margin-top: 20px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.admin-user { color: var(--cyan); font-weight: 600; }

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .count-unit { min-width: 62px; padding: 14px 8px 11px; }
  .admin-head { align-items: flex-start; flex-direction: column; }
  .lb-head { padding: 14px 16px; }
  .faq-q { padding: 16px 18px; }
}
