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

:root {
  --bg: #060a07;
  --surface: #0c1310;
  --surface2: #111a14;
  --border: rgba(255,255,255,.07);
  --border-active: rgba(52,211,113,.35);
  --text: #eef3f0;
  --muted: #7a8c81;
  --subtle: #3d4d43;
  --green: #34d371;
  --green-dim: rgba(52,211,113,.12);
  --green-glow: rgba(52,211,113,.18);
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 900px 500px at 60% -5%, rgba(52,211,113,.06) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 10% 80%, rgba(52,211,113,.03) 0%, transparent 70%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(6,10,7,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3ef08a, #0f9b4e);
  color: #04200f;
  font-size: 13px;
  flex-shrink: 0;
}
.brand strong { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.brand small { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav a, .staff-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .15s;
}
.nav a:hover, .staff-link:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border-color: var(--border);
}
.nav a.active {
  color: var(--green);
  background: var(--green-dim);
  border-color: rgba(52,211,113,.2);
}
.nav i, .staff-link i { font-size: 11px; }
.staff-link { border-color: var(--border); color: var(--muted); }

/* ── Shell / Page ────────────────────────────────────────── */
.shell { max-width: 1160px; margin: 0 auto; padding: 64px 24px 80px; }
.page  { max-width: 980px;  margin: 0 auto; padding: 72px 24px 80px; }

/* ── Typography ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--green);
  text-transform: uppercase;
}
h1 {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  margin: 16px 0;
}
h1 span { color: var(--green); }
h2 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.lead { font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 580px; }

/* ── Live dot ────────────────────────────────────────────── */
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ── Hero layout ─────────────────────────────────────────── */
.hero-wide {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
  min-height: 520px;
}
.hero-copy { padding-right: 10px; }

/* ── Redeem Panel ────────────────────────────────────────── */
.redeem-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 12px;
}
.panel-header small {
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}
.panel-header h2 { font-size: 20px; margin-top: 5px; }
.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #6ddca0;
  background: var(--green-dim);
  border: 1px solid rgba(52,211,113,.15);
  border-radius: 8px;
  padding: 6px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Form fields ─────────────────────────────────────────── */
.field { display: block; margin-bottom: 16px; }
.field > label-text,
.field > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #b2c0b8;
  margin-bottom: 7px;
}
.field b { color: var(--green); font-size: 9px; letter-spacing: .06em; }
.input-wrap {
  height: 52px;
  border-radius: 11px;
  background: rgba(4,8,5,.8);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap:focus-within {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(52,211,113,.08);
}
.input-wrap i { color: var(--subtle); font-size: 13px; flex-shrink: 0; }
.input-wrap input {
  width: 100%; height: 100%;
  border: 0; outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.input-wrap input::placeholder { color: var(--subtle); }

/* ── Invite preview ──────────────────────────────────────── */
.invite-preview {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(52,211,113,.15);
  background: rgba(52,211,113,.05);
  border-radius: 10px;
  margin: -6px 0 14px;
}
.invite-preview.hidden { display: none !important; }
.invite-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-dim);
  color: var(--green);
  flex-shrink: 0;
  overflow: hidden;
}
.invite-icon img { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; }
.invite-preview strong { display: block; font-size: 11px; }
.invite-preview span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.invite-preview small { display: block; font-size: 9px; color: var(--subtle); margin-top: 1px; }
.invite-preview div { min-width: 0; }
.invite-preview span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #3ef08a, #1ab862);
  color: #03200e;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .15s, transform .15s;
  letter-spacing: -.01em;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: scale(.99); }
.btn-primary:disabled { opacity: .55; cursor: wait; transform: none; }

.cta { /* alias for compatibility */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #3ef08a, #1ab862);
  color: #03200e;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}
.cta:hover { filter: brightness(1.06); }
.cta:disabled { opacity: .55; cursor: wait; }
.cta.inline { display: inline-flex; width: auto; }

/* ── Notice/Result ───────────────────────────────────────── */
.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.notice.success { background: rgba(52,211,113,.07); border: 1px solid rgba(52,211,113,.15); color: #9af7c0; }
.notice.error   { background: rgba(248,113,113,.07); border: 1px solid rgba(248,113,113,.14); color: #ffbaba; }
.notice strong { font-weight: 700; }
.hidden { display: none !important; }

/* ── Mini info row ───────────────────────────────────────── */
.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
}
.mini-row i { color: var(--green); margin-right: 4px; }

/* ── Feature cards ───────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.feature-card {
  display: grid;
  grid-template-columns: 38px 1fr 16px;
  gap: 14px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.feature-card:hover {
  border-color: rgba(52,211,113,.2);
  transform: translateY(-2px);
}
.iconbox {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(52,211,113,.1);
  font-size: 14px;
  flex-shrink: 0;
}
.feature-card strong { font-size: 13px; font-weight: 700; display: block; }
.feature-card p { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 3px; }
.feature-card .arrow { font-size: 11px; color: var(--subtle); justify-self: end; }

/* ── Product card (Buy) ──────────────────────────────────── */
.product-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
}
.product-orb {
  height: 160px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #56ffa4, #0e9a52 65%, #064d28);
  color: #042411;
  font-size: 52px;
}
.product-body h2 { font-size: 36px; margin: 6px 0; }
.product-body p, .info-box p { color: var(--muted); line-height: 1.7; font-size: 13px; }
.product-kicker { font-size: 9px; letter-spacing: .12em; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.check-list { display: grid; gap: 8px; margin: 18px 0 22px; }
.check-list span { font-size: 12px; color: #c4d0c8; }
.check-list i { color: var(--green); margin-right: 8px; }

.info-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.info-box > i { color: var(--green); margin-top: 2px; flex-shrink: 0; }
.info-box strong { font-size: 12px; font-weight: 700; display: block; }
.info-box p { margin-top: 4px; }

/* ── Stock grid ──────────────────────────────────────────── */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.stock-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stock-card > span, .stock-card > small { display: block; color: var(--muted); font-size: 11px; }
.stock-card > strong { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.06em; margin: 8px 0 4px; }

/* ── Key checker ─────────────────────────────────────────── */
.checker-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-top: 28px;
  max-width: 640px;
}
.checker-result {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.checker-result.error {
  display: flex;
  gap: 11px;
  color: #ffbbbb;
  border-color: rgba(248,113,113,.15);
  background: rgba(248,113,113,.05);
}
.checker-result.error > i { margin-top: 2px; flex-shrink: 0; }
.checker-result small, .checker-result strong { display: block; }
.checker-result small { color: var(--muted); margin-top: 4px; font-size: 11px; }
.status-big {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 14px;
}
.status-big.active   { color: #7dffc0; }
.status-big.redeemed { color: #a8b8ff; }
.status-big.revoked  { color: #ffb0b0; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); display: inline-block;
}
.status-big.redeemed .status-dot { background: #a8b8ff; }
.status-big.revoked  .status-dot { background: #ffb0b0; }
.checker-meta {
  display: grid;
  grid-template-columns: 1.3fr .7fr .8fr;
  gap: 10px;
  margin-top: 14px;
}
.checker-meta > span {
  padding: 11px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.checker-meta small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; display: block; }
.checker-meta strong { margin-top: 4px; font-size: 11px; display: block; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: var(--subtle);
  font-size: 11px;
}
footer a:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-wide { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stock-grid { grid-template-columns: 1fr 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .product-orb { height: 140px; }
  .topbar { padding: 0 18px; }
  .staff-link { display: none; }
}
@media (max-width: 600px) {
  .topbar { height: 62px; }
  .brand small { display: none; }
  .nav a { padding: 8px 10px; font-size: 11px; }
  .nav i + * { display: none; }
  .shell, .page { padding: 48px 16px 64px; }
  h1 { font-size: 40px; }
  .mini-row { flex-direction: column; gap: 6px; }
  .stock-grid { grid-template-columns: 1fr; }
  .checker-meta { grid-template-columns: 1fr; }
  .redeem-panel { padding: 20px; border-radius: 16px; }
}
