:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-soft: #08090b;
  --panel: #0b0c10;
  --panel-2: #0f1116;
  --line: #1b1e24;
  --line-strong: #2a2e36;
  --text: #f5f6f7;
  --muted: #8b919c;
  --muted-2: #5f6570;
  --accent: #c8ff3d;
  --accent-bright: #d9ff6e;
  --accent-dim: rgba(200, 255, 61, 0.09);
  --accent-line: rgba(200, 255, 61, 0.3);
  --danger: #ff5566;
  --ok: #3ee08f;
  --warn: #ffb347;
  --radius: 14px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 84% -12%, rgba(200, 255, 61, 0.07), transparent 60%),
    radial-gradient(760px 500px at -12% 28%, rgba(104, 124, 255, 0.035), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #060706;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #23262d;
  border: 3px solid var(--bg);
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #33373f;
}

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

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

button,
input,
select {
  font: inherit;
}

svg {
  display: block;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
}

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(100%, 1280px);
  height: 76px;
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent));
  color: #060706;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 10px 3px 10px 3px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  box-shadow: 0 0 34px rgba(200, 255, 61, 0.22);
}

.brand-avatar {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 2px;
  border-radius: 50%;
  background: #0a0b0d;
  box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.22), 0 0 28px rgba(200, 255, 61, 0.14);
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.brand-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--accent), #20240d 28%, var(--accent) 52%, #15170c 76%, var(--accent));
  animation: ring-spin 9s linear infinite;
}

.brand-avatar::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 2px;
  z-index: 2;
  width: 10px;
  height: 10px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(200, 255, 61, 0.8);
}

.brand-avatar img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid #060708;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.brand:hover .brand-avatar {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 38px rgba(200, 255, 61, 0.28);
}

.brand:hover .brand-avatar img {
  filter: grayscale(1) contrast(1.14);
}

.brand-avatar-sm {
  width: 34px;
  height: 34px;
  padding: 1px;
}

.brand-avatar-sm::after {
  display: none;
}

.brand-avatar-sm img {
  border-width: 1px;
}

.brand-avatar-lg {
  width: 56px;
  height: 56px;
}

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

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.topnav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}

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

.topnav a:hover::after {
  right: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.live-pill-ok i {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #060706;
  box-shadow: 0 10px 34px rgba(200, 255, 61, 0.14);
}

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 14px 44px rgba(200, 255, 61, 0.22);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

.btn-dark {
  background: #07080a;
  color: #fff;
}

.btn-dark:hover {
  background: #101217;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.btn-danger {
  background: rgba(255, 85, 102, 0.08);
  border-color: rgba(255, 85, 102, 0.32);
  color: #ff9aa4;
}

.btn-danger:hover {
  background: rgba(255, 85, 102, 0.14);
  border-color: var(--danger);
}

.btn-sm {
  min-height: 38px;
  padding: 0 15px;
  font-size: 0.6rem;
  border-radius: 7px;
}

.btn-wide {
  width: 100%;
}

.btn .arrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.36;
  pointer-events: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(52px, 7.5vw, 104px) 28px clamp(56px, 7vw, 96px);
}

.hero-copy {
  max-width: 680px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(200, 255, 61, 0.5);
}

.hero h1 {
  margin: 24px 0 26px;
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 246, 247, 0.32);
}

.accent-dot {
  color: var(--accent);
  font-style: normal;
  -webkit-text-stroke: 0;
}

.hero .lede {
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 38px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-stat {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}

.hero-stat:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-stat span {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

/* Terminal */

.terminal {
  position: relative;
  width: 100%;
  max-width: 470px;
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(160deg, #0c0d10, #07080a);
  box-shadow: var(--shadow), 0 0 90px rgba(200, 255, 61, 0.04);
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #272a31;
}

.traffic i:first-child {
  background: #343841;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.terminal-badge {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}

.terminal-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 264px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(200, 255, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 61, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center;
}

.terminal-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(200, 255, 61, 0.07), transparent 62%);
  pointer-events: none;
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px rgba(200, 255, 61, 0.65);
  opacity: 0.55;
  animation: scan 5.5s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(-2px); }
  100% { transform: translateY(266px); }
}

.monogram {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 156px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: rgba(200, 255, 61, 0.025);
  box-shadow: inset 0 0 50px rgba(200, 255, 61, 0.03);
}

.monogram::before,
.monogram::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
}

.monogram::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.monogram::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.monogram span {
  font-family: var(--font-display);
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 44px rgba(200, 255, 61, 0.38);
}

.readout {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.r-tl { top: 14px; left: 16px; }
.r-tr { top: 14px; right: 16px; }
.r-bl { bottom: 14px; left: 16px; }
.r-br { bottom: 14px; right: 16px; }

.terminal-log {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 2;
  color: #a2a8b3;
}

.log-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-prompt { color: var(--muted-2); }
.tl-ok { color: var(--accent); }
.tl-dim { color: var(--muted-2); }
.tl-val { color: #e8eaed; }
.tl-dots { color: #2c3038; }

.blink {
  color: var(--accent);
  animation: blink 1.1s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.terminal-foot b {
  color: var(--accent);
  font-weight: 500;
}

/* Ticker */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  padding: 13px 0;
  white-space: nowrap;
}

.ticker-group span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.ticker-group b {
  margin: 0 22px;
  color: var(--accent);
  font-weight: 400;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Sections */

.section {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(66px, 9vw, 118px) 28px;
}

.section-tight {
  padding-top: 10px;
  padding-bottom: clamp(60px, 8vw, 100px);
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

.section-index::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-transform: uppercase;
}

.section-head p {
  max-width: 38ch;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* Steps */

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

.step-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.022), transparent 60%),
    var(--panel);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.step-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: right 0.4s var(--ease);
}

.step-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.step-card:hover::after {
  right: 0;
}

.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.step-no {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(200, 255, 61, 0.03);
  color: var(--accent);
}

.step-icon svg {
  width: 20px;
  height: 20px;
}

.step-card h3 {
  margin: 42px 0 12px;
  font-size: 1.14rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.step-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.68;
}

/* Rules */

.rules {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.rules-intro {
  position: sticky;
  top: 106px;
}

.rules-intro h2 {
  margin: 16px 0 20px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-transform: uppercase;
}

.rules-intro p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.rule-list {
  border-top: 1px solid var(--line);
}

.rule-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.rule-row .no {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent);
}

.rule-row h4 {
  margin-bottom: 5px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.rule-row p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.flag {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* CTA */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5.5vw, 68px);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #07080a;
}

.cta-band::after {
  content: "FFH4X";
  position: absolute;
  right: -12px;
  bottom: -58px;
  font-family: var(--font-display);
  font-size: clamp(7rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(0, 0, 0, 0.055);
  pointer-events: none;
}

.cta-band .section-index {
  color: rgba(0, 0, 0, 0.55);
}

.cta-band .section-index::before {
  background: rgba(0, 0, 0, 0.5);
}

.cta-band h2 {
  position: relative;
  z-index: 1;
  margin: 18px 0 16px;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-transform: uppercase;
}

.cta-band p {
  position: relative;
  z-index: 1;
  max-width: 42ch;
  margin-bottom: 30px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.96rem;
  line-height: 1.65;
}

.cta-band .btn {
  position: relative;
  z-index: 1;
}

/* Flow pages */

.flow {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) 28px 100px;
}

.flow-narrow {
  width: min(100%, 660px);
}

.flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

.step-track {
  display: flex;
  gap: 4px;
  margin-bottom: 30px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.step-track .t {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.13em;
  color: var(--muted-2);
  text-transform: uppercase;
  white-space: nowrap;
}

.step-track .t.done {
  color: var(--ok);
}

.step-track .t.active {
  border-color: var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(165deg, #0c0d10, #08090b);
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}

.flow-panel h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-transform: uppercase;
}

.flow-panel .lede {
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.72;
}

.gateway-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 16px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(200, 255, 61, 0.055), transparent 58%),
    #07080a;
}

.gateway-radar {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.gateway-radar .ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  animation: gateway-ping 2.6s ease-out infinite;
}

.gateway-radar .ring-2 {
  animation-delay: 1.3s;
}

.gateway-radar::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-dim);
}

.gateway-radar svg {
  position: relative;
  z-index: 2;
  width: 19px;
  height: 19px;
  color: var(--accent);
}

@keyframes gateway-ping {
  0% { transform: scale(0.62); opacity: 0; }
  30% { opacity: 0.85; }
  100% { transform: scale(1.28); opacity: 0; }
}

.gateway-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.gateway-copy strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
}

.gateway-copy small {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  white-space: normal;
}

.gateway-badge {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-dim);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}

.verify-cta {
  margin-top: 2px;
}

.gateway-hint {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  line-height: 1.7;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .gateway-card {
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .gateway-badge {
    display: none;
  }
}

.panel-notes {
  margin-top: 34px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.note-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.note-row:last-child {
  border-bottom: 0;
}

.note-no {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--accent);
}

.note-row p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.flow-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-align: center;
  text-transform: uppercase;
}

.flow-foot a {
  color: var(--accent);
}

.flow-foot a:hover {
  color: var(--accent-bright);
}

.success-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 26px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: 0 0 46px rgba(200, 255, 61, 0.12);
}

.success-mark svg {
  width: 26px;
  height: 26px;
}

.key-board {
  margin: 28px 0 18px;
  padding: 26px 22px;
  border: 1px dashed var(--accent-line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(200, 255, 61, 0.05), transparent),
    rgba(200, 255, 61, 0.02);
  text-align: center;
}

.key-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.key-value {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3.1vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  word-break: break-all;
}

.key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.key-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.key-meta > div {
  padding: 17px 18px;
  border-right: 1px solid var(--line);
}

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

.key-meta span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.49rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.key-meta strong {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.key-meta strong.ok {
  color: var(--ok);
}

.countdown.expired {
  color: var(--danger);
}

.callout {
  margin-top: 24px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted-2);
}

.centered {
  text-align: center;
}

.centered .section-index {
  justify-content: center;
}

.centered .lede {
  margin-left: auto;
  margin-right: auto;
}

.centered .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.center-actions {
  justify-content: center;
}

.error-code {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-line);
}

.pulse-orb {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 28px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-dim);
}

.pulse-orb::before,
.pulse-orb::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px var(--accent);
}

.pulse-orb::after {
  width: 100%;
  height: 100%;
  inset: 0;
  background: transparent;
  border: 1px solid var(--accent);
  transform: none;
  animation: orb 2.4s ease-out infinite;
}

@keyframes orb {
  0% { opacity: 0.5; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.5); }
}

.micro-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* Forms */

.stack-form {
  display: grid;
  gap: 14px;
  margin: 28px 0 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #050506;
  color: var(--text);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #4b515b;
}

input:focus,
select:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.08);
}

label.field input:disabled {
  opacity: 0.55;
}

select {
  cursor: pointer;
}

input[type="number"] {
  font-family: var(--font-mono);
}

.login-panel {
  max-width: 480px;
  margin: 0 auto;
}

.login-brand {
  margin-bottom: 34px;
}

.login-panel h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
}

.login-panel .back-link {
  display: inline-block;
  margin-top: 10px;
}

.flash {
  margin: 0 0 20px;
  padding: 13px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.flash div + div {
  margin-top: 6px;
}

.flash-error {
  border-color: rgba(255, 85, 102, 0.35);
  background: rgba(255, 85, 102, 0.07);
  color: #ff9aa4;
}

/* Admin */

.page-admin .topbar,
.page-admin .footer {
  display: none;
}

.admin-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #08090b, #050506);
}

.admin-rail .brand {
  padding: 2px 4px;
}

.rail-nav {
  display: grid;
  gap: 5px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rail-nav a span {
  font-size: 0.5rem;
  color: var(--muted-2);
}

.rail-nav a:hover,
.rail-nav a.active {
  border-color: var(--line);
  background: rgba(200, 255, 61, 0.05);
  color: var(--accent);
}

.rail-nav a:hover span,
.rail-nav a.active span {
  color: var(--accent);
}

.rail-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.rail-foot .live-pill {
  justify-content: center;
  margin-bottom: 4px;
}

.admin-main {
  min-width: 0;
}

.admin-topline {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
  padding: 0 clamp(20px, 3.5vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.admin-breadcrumb b {
  color: var(--accent);
  font-weight: 400;
}

.admin-topline-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-clock {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.admin-content {
  padding: 0 clamp(20px, 3.5vw, 44px) 70px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: 44px 0 34px;
  border-bottom: 1px solid var(--line);
}

.admin-hero-copy h1 {
  margin: 16px 0;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}

.admin-hero-copy p {
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.admin-hero-card {
  position: relative;
  flex-shrink: 0;
  width: min(100%, 288px);
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(165deg, #0c0d10, #08090b);
}

.admin-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}

.hero-card-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.49rem;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.admin-hero-card > strong {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.hero-card-rows {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
}

.hero-card-rows span {
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero-card-rows b {
  font-weight: 500;
  text-align: right;
}

.hero-card-rows b.ok {
  color: var(--ok);
}

.hero-card-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  animation: scan 5s linear infinite;
}

.flash-key {
  margin-top: 20px;
}

.key-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200, 255, 61, 0.08), rgba(200, 255, 61, 0.015));
}

.key-result-copy {
  min-width: 0;
}

.key-result-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.49rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}

.key-result .key-cell code {
  color: var(--text);
  font-size: 0.85rem;
}

.key-result small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.generator {
  position: relative;
  overflow: hidden;
}

.generator::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-line), transparent);
}

.panel-tag-accent {
  border-color: var(--accent-line);
  color: var(--accent);
}

.generator-format {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050506;
}

.generator-format span {
  font-family: var(--font-mono);
  font-size: 0.49rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.generator-format code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.generator-format i {
  flex: 1;
  min-width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.field-static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(200, 255, 61, 0.03);
}

.field-static strong {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.field-static small {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.check-field.field-span {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 2px 0;
}

.key-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: transparent;
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.copy-key:hover {
  border-color: var(--accent-line);
  background: rgba(200, 255, 61, 0.05);
  color: var(--accent);
}

.admin-wrap {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 40px 28px 92px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.admin-head h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-transform: uppercase;
}

.admin-head p {
  color: var(--muted);
  font-size: 0.93rem;
}

.admin-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 16px;
}

.admin-stat {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.admin-stat span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.51rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin: 12px 0 5px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.admin-stat small {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.stat-accent {
  border-color: var(--accent-line);
  background:
    linear-gradient(170deg, rgba(200, 255, 61, 0.06), transparent 70%),
    var(--panel);
}

.stat-accent strong {
  color: var(--accent);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  margin-bottom: 16px;
}

.admin-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-title h2 {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.panel-tag {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.panel-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.hint-inline {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.field-span {
  grid-column: 1 / -1;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  align-self: end;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  cursor: pointer;
}

.check-field input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.op-list {
  margin-top: 14px;
}

.op-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.op-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.op-row b {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
}

.op-row small {
  display: block;
  max-width: 330px;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.5;
}

.op-row form {
  flex-shrink: 0;
}

.op-danger b {
  color: #ff9aa4;
}

.inventory {
  margin-top: 0;
}

.filterbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 130px auto auto;
  gap: 9px;
  align-items: center;
  margin: 22px 0 16px;
}

.search-field {
  position: relative;
}

.search-field span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-field input {
  padding-left: 34px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.key-table {
  width: 100%;
  min-width: 1130px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.key-table th {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--muted-2);
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.key-table td {
  padding: 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.key-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.014);
}

.key-table code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.row-note {
  display: block;
  max-width: 250px;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 0.65rem;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: capitalize;
  white-space: nowrap;
}

.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}

.badge.active {
  border-color: rgba(62, 224, 143, 0.28);
  background: rgba(62, 224, 143, 0.06);
  color: var(--ok);
}

.badge.active i {
  background: var(--ok);
}

.badge.expired {
  border-color: rgba(255, 179, 71, 0.28);
  background: rgba(255, 179, 71, 0.06);
  color: var(--warn);
}

.badge.expired i {
  background: var(--warn);
}

.badge.revoked {
  border-color: rgba(255, 85, 102, 0.3);
  background: rgba(255, 85, 102, 0.06);
  color: #ff9aa4;
}

.badge.revoked i {
  background: var(--danger);
}

.expiry-cell {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted);
  white-space: nowrap;
}

.device-cell {
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.device-cell small {
  color: var(--muted-2);
}

.renew-form,
.manage-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.renew-form input {
  width: 62px;
  min-height: 32px;
  height: 32px;
  padding: 5px 6px;
  font-size: 0.7rem;
  border-radius: 6px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mini-btn:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  background: rgba(200, 255, 61, 0.04);
}

.mini-danger:hover {
  border-color: rgba(255, 85, 102, 0.4);
  color: #ff9aa4;
  background: rgba(255, 85, 102, 0.06);
}

.empty-state {
  padding: 48px 20px !important;
  text-align: center;
}

.empty-state b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.empty-state small {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 0.75rem;
}

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  text-transform: uppercase;
}

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

.pagination > span {
  white-space: nowrap;
}

.pagination b {
  color: var(--text);
  font-weight: 500;
}

.admin-foot {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.admin-foot a {
  color: var(--muted);
}

.admin-foot a:hover {
  color: var(--accent);
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 32px 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark-sm {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  box-shadow: none;
}

.footer-brand-copy {
  display: grid;
  gap: 1px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-brand-copy small {
  font-family: var(--font-mono);
  font-size: 0.47rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.footer-meta a {
  transition: color 0.2s ease;
}

.footer-meta a:hover {
  color: var(--accent);
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  transform: translate(-50%, 140%);
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #060706;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: transform 0.32s var(--ease);
}

.toast.show {
  transform: translate(-50%, 0);
}

/* Responsive */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 36px;
  }

  .terminal {
    max-width: 420px;
  }

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

@media (max-width: 980px) {
  .topnav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .terminal {
    max-width: 480px;
    justify-self: start;
  }

  .rules {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .rules-intro {
    position: static;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-card h3 {
    margin-top: 26px;
  }

  .admin-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-head-meta {
    width: 100%;
  }

  .filterbar {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .filterbar .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    height: 68px;
    padding: 0 18px;
    gap: 14px;
  }

  .brand-sub {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .live-pill {
    display: none;
  }

  .topbar-signout {
    display: none;
  }

  .hero {
    padding: 46px 18px 58px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13.5vw, 4.2rem);
  }

  .hero .lede {
    font-size: 0.98rem;
  }

  .hero-stat {
    padding-right: 18px;
    margin-right: 18px;
  }

  .hero-stat strong {
    font-size: 0.82rem;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-head p {
    max-width: none;
  }

  .terminal-stage {
    min-height: 234px;
  }

  .monogram {
    width: 118px;
    height: 140px;
  }

  .monogram span {
    font-size: 4.8rem;
  }

  .readout {
    font-size: 0.44rem;
  }

  .r-tl { top: 10px; left: 12px; }
  .r-tr { top: 10px; right: 12px; }
  .r-bl { bottom: 10px; left: 12px; }
  .r-br { bottom: 10px; right: 12px; }

  .terminal-log {
    font-size: 0.58rem;
    padding: 14px 16px;
  }

  .flow {
    padding-left: 18px;
    padding-right: 18px;
  }

  .flow-top {
    flex-wrap: wrap;
  }

  .step-track .t {
    font-size: 0.48rem;
    letter-spacing: 0.08em;
  }

  .panel {
    padding: 26px 20px;
  }

  .verify-link-row {
    flex-direction: column;
  }

  .verify-link-row .btn {
    width: 100%;
  }

  .key-meta {
    grid-template-columns: 1fr;
  }

  .key-meta > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .key-meta > div:last-child {
    border-bottom: 0;
  }

  .key-board {
    padding: 22px 14px;
  }

  .key-actions .btn {
    flex: 1;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-span {
    grid-column: auto;
  }

  .admin-wrap {
    padding: 32px 18px 74px;
  }

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

  .admin-stats .admin-stat:last-child {
    grid-column: 1 / -1;
  }

  .admin-panel {
    padding: 20px 18px;
  }

  .op-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .op-row form {
    width: 100%;
  }

  .op-row .btn {
    width: 100%;
  }

  .filterbar {
    grid-template-columns: 1fr;
  }

  .table-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination {
    width: 100%;
    justify-content: space-between;
  }

  .pagination > span {
    font-size: 0.52rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 18px;
  }

  .footer-meta {
    gap: 16px;
  }
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-rail {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 6, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .admin-rail .brand-sub {
    display: none;
  }

  .rail-nav {
    display: none;
  }

  .rail-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  .rail-foot .live-pill {
    display: none;
  }

  .rail-foot .btn:first-of-type {
    display: none;
  }

  .admin-topline {
    display: none;
  }

  .admin-content {
    padding: 0 18px 60px;
  }

  .admin-hero {
    padding-top: 30px;
  }

  .admin-hero-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .admin-rail {
    padding: 10px 14px;
  }

  .admin-rail .brand-avatar {
    width: 38px;
    height: 38px;
  }

  .admin-rail .brand-word {
    font-size: 0.82rem;
  }

  .rail-foot .btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.5rem;
  }

  .admin-hero-copy h1 {
    font-size: 2.6rem;
  }

  .key-result {
    flex-direction: column;
    align-items: stretch;
  }

  .key-result > .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
  }
}
