:root {
  --bg: #070707;
  --bg-2: #0b0b0b;
  --panel: #0f0f0f;
  --panel-2: #121212;
  --line: #2a1a14;
  --line-soft: #1b1512;
  --accent: #ff7a2f;
  --accent-2: #e23a2e;
  --gold: #ffc46b;
  --text: #f3efe9;
  --muted: #9b948c;
  --ok: #8fd18f;
  --bad: #ff6b6b;
  --wait: #ffc46b;
  --radius: 2px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --display: "Unbounded", "Manrope", sans-serif;
  --body: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 420px at 82% -8%, rgba(255, 90, 54, 0.16), transparent 65%),
    radial-gradient(900px 600px at 8% 105%, rgba(226, 58, 46, 0.08), transparent 70%),
    linear-gradient(180deg, #080808, #050505);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 122, 47, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 47, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
}

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

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 18px; letter-spacing: -0.01em; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); margin-top: 16px; }
.link { color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.link:hover { color: var(--gold); }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.94), rgba(7, 7, 7, 0.72));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 90, 54, 0.35));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #080808;
  font-weight: 700;
}
.btn-primary:hover { box-shadow: 0 0 34px rgba(255, 122, 47, 0.28); }
.btn-ghost { background: rgba(255, 255, 255, 0.015); }
.btn-danger { border-color: rgba(255, 107, 107, 0.45); color: var(--bad); }
.btn-danger:hover { background: rgba(255, 107, 107, 0.08); border-color: var(--bad); }
.btn-small { padding: 9px 14px; font-size: 10px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 32px;
  min-height: 540px;
  padding: 64px 0 40px;
}

.hero-copy { max-width: 620px; }
.hero h1 {
  margin: 4px 0 18px;
  font-size: clamp(88px, 15vw, 176px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #ffffff 8%, #ffc46b 48%, #ff5a36 78%, #b72d22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 440px;
  font-size: 17px;
  color: var(--muted);
}

.hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mark img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 0 70px rgba(255, 90, 54, 0.22));
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats > div {
  padding: 24px 0 22px;
  border-right: 1px solid var(--line-soft);
}

.stats > div:last-child { border-right: 0; }

.stats span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stats strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  color: var(--text);
}

.admin-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* sections */
.section { margin-top: 72px; }

.section-head, .page-head, .admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-head { display: block; margin: 64px 0 32px; }
.page-head p { max-width: 560px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 60%),
    linear-gradient(180deg, var(--panel-2), #0a0a0a);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover { border-color: rgba(255, 122, 47, 0.45); }
.card.pad { padding: 28px; }
.card.narrow { max-width: 520px; }
.card h2 { margin-bottom: 10px; }
.card h3 { margin-bottom: 6px; }

.step-num {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

/* giveaways */
.giveaway-list { display: grid; gap: 12px; }

.giveaway-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}

.giveaway-row:hover { transform: translateY(-1px); }
.giveaway-row h3 { margin: 0 0 4px; }
.giveaway-row p { margin: 0; color: var(--muted); font-size: 13px; }

.giveaway-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.giveaway-card { padding: 24px 28px; }
.giveaway-card h2 { margin: 14px 0 6px; }

.badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge-live { border-color: rgba(255, 122, 47, 0.5); color: var(--accent); background: rgba(255, 122, 47, 0.06); }
.badge-ok { border-color: rgba(143, 209, 143, 0.4); color: var(--ok); background: rgba(143, 209, 143, 0.05); }
.badge-wait { border-color: rgba(255, 196, 107, 0.4); color: var(--wait); background: rgba(255, 196, 107, 0.05); }
.badge-bad { border-color: rgba(255, 107, 107, 0.4); color: var(--bad); background: rgba(255, 107, 107, 0.05); }
.badge-muted { color: var(--muted); }

/* forms */
.form { display: grid; gap: 16px; margin-top: 18px; }

.form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #080808;
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.08);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); }

.code {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px dashed rgba(255, 122, 47, 0.55);
  background: rgba(255, 122, 47, 0.055);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.16em;
}

/* verify */
.page-head { margin-top: 56px; }

.steps-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.steps-line span {
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
}
.steps-line .active { border-color: var(--accent); color: var(--accent); }
.steps-line .done { border-color: rgba(143, 209, 143, 0.35); color: var(--ok); }

.account { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.account h2 { margin: 2px 0 2px; }
.avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #0b0b0b;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.success-card { border-color: rgba(143, 209, 143, 0.25); }
.success-card h2 { margin-top: 10px; }

/* flash */
.flash {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 122, 47, 0.055);
  color: var(--text);
  font-size: 13px;
}
.flash-ok { border-left-color: var(--ok); background: rgba(143, 209, 143, 0.05); }
.flash-error { border-left-color: var(--bad); background: rgba(255, 107, 107, 0.05); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); background: rgba(10, 10, 10, 0.6); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 122, 47, 0.025); }

/* admin */
.admin-head { align-items: flex-end; }
.admin-head .actions { justify-content: flex-end; }
.admin-detail { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 16px; }
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.admin-row:last-child { border-bottom: 0; }
.admin-row p { margin: 4px 0 0; font-size: 12px; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 20px 0; }
.kv dt { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs a {
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tabs a.active { border-color: var(--accent); color: var(--accent); }

.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* empty / footer */
.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer span:first-child { color: var(--text); letter-spacing: 0.16em; }
.site-footer a:hover { color: var(--accent); }

.prose h2 { margin: 24px 0 8px; font-size: 20px; }
.prose h2:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-mark { order: -1; }
  .hero-mark img { max-width: 300px; }
  .hero h1 { font-size: clamp(72px, 20vw, 120px); }
  .grid-3, .grid-2, .admin-detail { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .giveaway-row { align-items: flex-start; flex-direction: column; }
  .row-between { flex-direction: column; }
}

@media (max-width: 620px) {
  .container { padding: 0 16px 56px; }
  .site-header { padding: 14px 16px; }
  .brand { font-size: 14px; }
  .brand img { width: 32px; height: 32px; }
  .site-nav { gap: 12px; }
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { padding: 9px 12px; }
  h1 { font-size: 38px; }
  .hero h1 { margin-bottom: 14px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
  .stats > div:last-child { border-bottom: 0; }
  .admin-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-head { margin-top: 36px; }
  .section { margin-top: 48px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .site-footer { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.nav-button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.nav-button:hover { color: var(--text); }
