/* ==========================================================================
   CodeVault — "Precision Vault" design system  (/newdesign)
   Self-contained. Does not touch the legacy style.css.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg:            #0a0b0f;
  --bg-2:          #0d0f15;
  --surface:       #14161e;
  --surface-2:     #191c26;
  --surface-hover: #1d212d;

  /* Lines */
  --line:          rgba(255, 255, 255, 0.07);
  --line-strong:   rgba(255, 255, 255, 0.13);

  /* Type */
  --text:          #f3f4f7;
  --muted:         #8b919f;
  --faint:         #5d6374;

  /* Accent — electric lime ("redeemed / go") */
  --accent:        #c8f23c;
  --accent-soft:   rgba(200, 242, 60, 0.14);
  --accent-line:   rgba(200, 242, 60, 0.32);
  --accent-ink:    #0c0f06;

  /* Status */
  --success:       #5ee08a;
  --warn:          #f5b545;
  --danger:        #ff6b6b;

  /* Fonts */
  --font-display:  "Bricolage Grotesque", Georgia, serif;
  --font-body:     "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, monospace;

  /* Geometry */
  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     26px;
  --shell:         1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.nd-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: rgba(245, 181, 69, 0.08);
  border: 1px solid rgba(245, 181, 69, 0.28);
}
.nd-status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 999px;
  background: #f5b545;
  box-shadow: 0 0 0 0 rgba(245, 181, 69, 0.5);
  animation: nd-pulse 2s ease-out infinite;
}
@keyframes nd-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 181, 69, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(245, 181, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 181, 69, 0); }
}
.nd-status-text { display: flex; flex-direction: column; gap: 3px; }
.nd-status-text strong { font-size: 0.95rem; font-weight: 700; }
.nd-status-text span { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .nd-status-dot { animation: none; }
}

.nd-steps { list-style:none; margin:0; padding:0; display:grid; gap:16px; }
.nd-steps li { display:flex; gap:13px; align-items:flex-start; }
.nd-steps .n {
  flex:0 0 auto; width:30px; height:30px; border-radius:9px; display:grid; place-items:center;
  background:var(--accent-soft); color:var(--accent); border:1px solid var(--accent-line);
  font-family:var(--font-mono); font-weight:700;
}
.nd-steps strong { display:block; font-size:.98rem; }
.nd-steps p { margin:4px 0 0; color:var(--muted); font-size:.86rem; line-height:1.5; }

/* Atmospheric background: faint dot-grid + soft lime glow, no blurry orbs */
.nd-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(200, 242, 60, 0.07), transparent 60%),
    radial-gradient(800px 600px at -5% 8%, rgba(94, 130, 224, 0.06), transparent 55%),
    var(--bg);
}
.nd-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

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

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

/* ------------------------------------------------------------------ shell */
.nd-shell { display: flex; flex-direction: column; min-height: 100vh; }

.nd-container {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

/* ----------------------------------------------------------------- navbar */
.nd-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nd-nav.is-stuck {
  background: rgba(10, 11, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nd-nav-inner {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nd-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.nd-brand .nd-bolt {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  box-shadow: 0 0 0 1px var(--accent-line), 0 8px 22px rgba(200, 242, 60, 0.22);
}

.nd-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nd-links > a,
.nd-links .nd-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.nd-links > a:hover,
.nd-links .nd-menu-trigger:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.nd-divider { width: 1px; height: 22px; background: var(--line-strong); margin: 0 4px; }

.nd-cta {
  padding: 9px 16px !important;
  color: var(--accent-ink) !important;
  background: var(--accent) !important;
  border-radius: 10px;
  font-weight: 700 !important;
}
.nd-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* notification bell */
.nd-bell { position: relative; }
.nd-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
}

/* games dropdown */
.nd-dd { position: relative; }
.nd-dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 290px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  display: none;
}
.nd-dd.open .nd-dd-panel { display: block; animation: nd-pop .16s ease; }
.nd-dd-panel input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  outline: none;
}
.nd-dd-panel input:focus { border-color: var(--accent-line); }
.nd-dd-list { max-height: 320px; overflow-y: auto; }
.nd-game-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 9px;
  border-radius: 10px;
  color: var(--text);
}
.nd-game-row:hover { background: var(--surface-2); }
.nd-game-row img,
.nd-game-row .nd-game-ph {
  width: 34px; height: 34px; border-radius: 8px;
  object-fit: cover; flex: 0 0 auto;
}
.nd-game-ph {
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-family: var(--font-mono);
}
.nd-game-row strong { font-weight: 600; font-size: 0.92rem; }

/* language dropdown */
.nd-lang { position: relative; }
.nd-lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit; font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
}
.nd-lang-btn:hover { border-color: var(--line-strong); }
.nd-lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  z-index: 200;
}
.nd-lang.open .nd-lang-menu { display: block; animation: nd-pop .16s ease; }
.nd-lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px;
  color: var(--text); font-weight: 600;
}
.nd-lang-menu a:hover { background: var(--surface-2); }
.nd-lang-menu a.active { background: var(--accent-soft); color: var(--accent); }

/* mobile toggle */
.nd-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nd-burger svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------- main/page */
.nd-main { flex: 1; padding: 30px 0 10px; }

/* flash + task widgets reuse muted card styling */
.nd-flash-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.nd-alert {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 500;
}
.nd-alert.error   { border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.1); }
.nd-alert.success { border-color: rgba(94,224,138,.4); background: rgba(94,224,138,.1); }
.nd-alert.processing { border-color: var(--accent-line); background: var(--accent-soft); }

.nd-task-card {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}
.nd-task-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.nd-task-head #taskProgressPercent { font-family: var(--font-mono); color: var(--accent); }
.nd-task-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.nd-task-bar > div { height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }
.nd-task-card p { margin: 9px 0 0; color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------------- hero */
.nd-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 46px;
  align-items: center;
  padding: 56px 0 30px;
}
.nd-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nd-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: nd-pulse 2.2s ease-in-out infinite;
}
.nd-hero h1 {
  margin: 22px 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.nd-hero h1 .hl {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.nd-hero-sub {
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 0 30px;
}
.nd-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* buttons */
.nd-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 22px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
  font-family: inherit;
}
.nd-btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 34px rgba(200,242,60,.2); }
.nd-btn.primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.nd-btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.nd-btn.ghost:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.nd-btn.small { padding: 10px 16px; font-size: .9rem; border-radius: 11px; }
.nd-btn.full { width: 100%; justify-content: center; }
.nd-btn .arr { transition: transform .15s ease; }
.nd-btn:hover .arr { transform: translateX(3px); }

/* hero "receipt" card — vault ticket aesthetic */
.nd-ticket {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.nd-ticket::before {
  /* perforation accent strip */
  content: "";
  position: absolute;
  left: 26px; right: 26px; top: 70px;
  height: 1px;
  background-image: linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
  background-size: 12px 1px;
}
.nd-ticket-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.nd-ticket-top .lbl { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.nd-ticket-tag {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.nd-ticket-code {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 10px 0 4px;
}
.nd-ticket-code .dim { color: var(--faint); }
.nd-ticket-rows { display: grid; gap: 12px; margin-top: 22px; }
.nd-ticket-row { display: flex; align-items: center; justify-content: space-between; font-size: .92rem; }
.nd-ticket-row span { color: var(--muted); }
.nd-ticket-row strong { font-family: var(--font-mono); font-weight: 600; }
.nd-ticket-row .ok { color: var(--success); display: inline-flex; align-items: center; gap: 6px; }
.nd-ticket-row .ok::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--success); }

/* --------------------------------------------------------------------- stats */
.nd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin: 26px 0 60px;
}
.nd-stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.nd-stat:last-child { border-right: none; }
.nd-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nd-stat-num .u { color: var(--accent); }
.nd-stat-label {
  display: block;
  margin-top: 9px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ------------------------------------------------------------- section head */
.nd-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.nd-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
}
.nd-section-head p { margin: 6px 0 0; color: var(--muted); }
.nd-count-chip {
  font-family: var(--font-mono);
  font-size: .8rem; font-weight: 700;
  padding: 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--muted); white-space: nowrap;
}

/* --------------------------------------------------------------- game grid */
.nd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 18px;
  margin-bottom: 70px;
}
.nd-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nd-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
}
.nd-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--surface-2);
}
.nd-card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,11,15,.55) 100%);
}
.nd-status {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  /* frosted dark pill so text reads on ANY artwork */
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  z-index: 2;   /* sit above the ::after gradient */
}
/* a small status dot carries the color, text stays white & readable */
.nd-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.nd-status.active {
  color: #fff;
}
.nd-status.active::before {
  background: var(--accent);              /* lime */
  box-shadow: 0 0 0 3px rgba(200, 242, 60, 0.18);
}
.nd-status.dev {
  color: #fff;
}
.nd-status.dev::before {
  background: #f5b545;                     /* amber */
  box-shadow: 0 0 0 3px rgba(245, 181, 69, 0.18);
}
.nd-card-body { padding: 16px 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nd-card-body h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.nd-card-body .note { margin: 0; font-size: .82rem; color: var(--faint); }
.nd-card.is-disabled { opacity: .66; }
.nd-card.is-disabled .nd-card-media { filter: grayscale(.6); }
.nd-card-go {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 700; font-size: .85rem;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nd-card:hover .nd-card-go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.nd-card-go .arr { transition: transform .15s ease; }
.nd-card:hover .nd-card-go .arr { transform: translateX(2px); }

/* full-card link overlay */
.nd-card-link { position: absolute; inset: 0; z-index: 2; }

/* --------------------------------------------------------------------- forms */
.nd-auth { max-width: 440px; margin: 50px auto; }
.nd-panel {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.nd-panel h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; margin: 8px 0 22px; }
.nd-field { display: block; margin-bottom: 16px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.nd-field input {
  display: block; width: 100%; margin-top: 8px;
  padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--text);
  font: inherit; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nd-field input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.nd-center { text-align: center; color: var(--muted); }
.nd-center a { color: var(--accent); font-weight: 700; }

/* -------------------------------------------------------------------- footer */
.nd-footer { margin-top: auto; padding-top: 30px; }
.nd-support {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 200px at 90% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
}
.nd-support strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.nd-support p { margin: 6px 0 0; color: var(--muted); max-width: 40rem; }
.nd-kofi {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 13px;
  background: var(--accent); color: var(--accent-ink) !important;
  font-weight: 800; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
.nd-kofi:hover { transform: translateY(-2px); filter: brightness(1.05); }
.nd-footer-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 26px 4px 36px;
  margin-top: 22px;
  color: var(--faint);
  font-size: 0.86rem;
}
.nd-footer-bar a { color: var(--muted); }
.nd-footer-bar a:hover { color: var(--accent); }
.nd-footer-bar .sep { opacity: .4; margin: 0 4px; }

/* ----------------------------------------------------------------- keyframes */
@keyframes nd-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes nd-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.nd-reveal { opacity: 0; animation: nd-rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
.nd-reveal.d1 { animation-delay: .05s; }
.nd-reveal.d2 { animation-delay: .13s; }
.nd-reveal.d3 { animation-delay: .21s; }
.nd-reveal.d4 { animation-delay: .29s; }

@media (prefers-reduced-motion: reduce) {
  .nd-reveal { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 940px) {
  .nd-hero { grid-template-columns: 1fr; gap: 34px; padding-top: 38px; }
  .nd-ticket { max-width: 460px; }
  .nd-stats { grid-template-columns: repeat(2, 1fr); }
  .nd-stat:nth-child(2) { border-right: none; }
  .nd-stat:nth-child(1), .nd-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .nd-burger { display: inline-flex; }
  .nd-links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 22px;
    background: rgba(10,11,15,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-strong);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nd-nav.open .nd-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nd-links > a, .nd-links .nd-menu-trigger { width: 100%; }
  .nd-divider { width: 100%; height: 1px; margin: 6px 0; }
  .nd-dd, .nd-lang { width: 100%; }
  .nd-dd-panel { position: static; width: 100%; box-shadow: none; margin-top: 6px; }
  .nd-lang-menu { position: static; width: 100%; box-shadow: none; }
  .nd-support { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .nd-stats { grid-template-columns: 1fr; }
  .nd-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .nd-stat:last-child { border-bottom: none; }
}

/* ==========================================================================
   PAGE HEADER (reusable across inner pages)
   ========================================================================== */
.nd-pagehead { padding: 46px 0 30px; }
.nd-pagehead h1 {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.nd-pagehead .lead {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}
.nd-chiprow { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.nd-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.nd-chip b { font-family: var(--font-mono); color: var(--text); font-weight: 700; }
.nd-chip.accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.nd-chip.accent b { color: var(--accent); }

/* ==========================================================================
   GIFT CODES PAGE
   ========================================================================== */
.nd-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-bottom: 70px;
}
.nd-code-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nd-code-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.nd-code-top { display: flex; align-items: center; gap: 14px; }
.nd-code-img {
  width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: 14px; overflow: hidden;
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: var(--accent);
}
.nd-code-img img { width: 100%; height: 100%; object-fit: cover; }
.nd-code-name { min-width: 0; }
.nd-code-name strong { display: block; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.nd-code-name span { display: block; margin-top: 3px; color: var(--faint); font-size: 0.84rem; }
.nd-code-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nd-code-tile {
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-align: center;
}
.nd-code-tile strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem; font-weight: 700; line-height: 1;
}
.nd-code-tile.is-active strong { color: var(--success); }
.nd-code-tile span {
  display: block; margin-top: 6px;
  color: var(--muted); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.nd-code-foot {
  display: flex; justify-content: flex-end; align-items: center;
  padding-top: 2px;
}
.nd-code-view {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.9rem; color: var(--accent);
}
.nd-code-view .arr { transition: transform .15s ease; }
.nd-code-card:hover .nd-code-view .arr { transform: translateX(3px); }

.nd-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 60px;
}

@media (max-width: 520px) {
  .nd-code-counts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FORM CONTROLS (shared)
   ========================================================================== */
.nd-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin: 0 0 7px; }
.nd-input, .nd-textarea, .nd-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nd-input:focus, .nd-textarea:focus, .nd-select:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.nd-textarea { font-family: var(--font-mono); font-size: .95rem; line-height: 1.6; resize: vertical; min-height: 130px; }
.nd-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b919f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.nd-select option { background: var(--surface); color: var(--text); }

.nd-btn.danger { background: rgba(255,107,107,.12); color: #ffb1b1; border-color: rgba(255,107,107,.4); }
.nd-btn.danger:hover { background: rgba(255,107,107,.2); transform: translateY(-1px); }
.nd-btn.subtle { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.nd-btn.subtle:hover { border-color: var(--accent-line); }

/* ==========================================================================
   GAME DETAIL PAGE
   ========================================================================== */
.nd-game-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin: 36px 0 30px;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(620px 240px at 88% 0%, var(--accent-soft), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.nd-game-hero h1 {
  margin: 12px 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.nd-game-hero .desc { max-width: 38rem; margin: 0; color: var(--muted); line-height: 1.6; }
.nd-game-art {
  width: 132px; height: 132px; flex: 0 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-soft);
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
}
.nd-game-art img { width: 100%; height: 100%; object-fit: cover; }
.nd-game-art .ph { font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--accent); }

.nd-game-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 70px;
}
.nd-stack { display: grid; gap: 18px; position: sticky; top: 86px; }

.nd-panel-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.nd-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.nd-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 6px;
}
.nd-panel-head h2 { margin: 0; font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
.nd-help { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.nd-form { display: grid; gap: 14px; }

.nd-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 700;
  padding: 6px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
  white-space: nowrap;
}
.nd-warn {
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(245,181,69,.1); border: 1px solid rgba(245,181,69,.36);
  color: #ffd98a; font-size: .9rem; margin-bottom: 14px;
}

/* main column */
.nd-uid-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 18px;
}
.nd-uid-head h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.03em; }
.nd-toolbar { display: grid; gap: 14px; margin-bottom: 20px; }
.nd-toolrow { display: flex; gap: 10px; flex-wrap: wrap; }
.nd-toolrow .nd-input { flex: 1; min-width: 180px; }
.nd-bulk {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.nd-bulk strong { font-size: .98rem; }
.nd-bulk .nd-help { margin: 5px 0 12px; }

/* UID slot card */
.nd-uid-grid { display: grid; gap: 14px; }
.nd-uid {
  position: relative;
  padding: 20px 20px 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .18s ease;
}
.nd-uid:hover { border-color: var(--line-strong); }
.nd-uid-edit {
  position: absolute; top: -11px; left: 16px; z-index: 3;
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--accent-line); background: var(--surface-2);
  color: var(--accent); cursor: pointer;
  display: grid; place-items: center; font-size: 13px;
}
.nd-uid-edit:hover { background: var(--accent-soft); }
.nd-uid-check {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  font-size: 0.76rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.nd-uid-check input { accent-color: var(--accent); cursor: pointer; margin: 0; }
.nd-uid-main { display: flex; gap: 16px; align-items: flex-start; padding-right: 130px; }
.nd-uid-avatar {
  width: 64px; height: 64px; flex: 0 0 auto;
  border-radius: 16px; overflow: hidden;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
}
.nd-uid-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nd-uid-info { flex: 1; min-width: 0; }
.nd-uid-name-row { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; flex-wrap: wrap; }
.nd-uid-name-row strong { font-size: 1.08rem; font-weight: 700; }
.nd-uid-name-input {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  border: 1px solid transparent; background: transparent;
  padding: 5px 8px; border-radius: 9px; outline: none; max-width: 340px; width: 100%;
}
.nd-uid-name-input[readonly] { cursor: pointer; }
.nd-uid-name-input:not([readonly]) { border-color: var(--accent-line); background: var(--bg-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.nd-tag {
  font-family: var(--font-mono);
  padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.nd-uid-meta {
  margin: 6px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.6;
  font-family: var(--font-mono);
}
.nd-uid-meta b { color: var(--faint); font-weight: 500; }
.nd-uid-save { margin-top: 12px; }

.nd-redeem { max-width: 360px; margin-top: 16px; }
.nd-redeem-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.86rem; color: var(--muted); }
.nd-redeem-top strong { font-family: var(--font-mono); color: var(--text); }
.nd-redeem-bar { height: 8px; margin-top: 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); overflow: hidden; }
.nd-redeem-fill { height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s ease; }
.nd-redeem-note { margin: 8px 0 0; font-size: 0.8rem; color: var(--faint); }

.nd-uid-actions { position: absolute; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.nd-uid-actions .nd-btn { padding: 8px 13px; font-size: 0.82rem; }

.nd-empty-slots {
  padding: 56px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-2);
}
.nd-empty-slots .ico {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 800;
  background: var(--accent-soft); color: var(--accent);
}
.nd-empty-slots strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.nd-empty-slots p { margin: 0; color: var(--muted); }

.nd-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.nd-pagination a { padding: 9px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-strong); font-weight: 700; font-size: .9rem; }
.nd-pagination a:hover { border-color: var(--accent-line); color: var(--accent); }
.nd-pagination span { color: var(--muted); font-family: var(--font-mono); font-size: .86rem; }

/* native modal */
.nd-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4,5,8,.72);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.nd-modal-overlay.open { display: flex; animation: nd-pop .18s ease; }
.nd-modal {
  width: min(520px, 100%);
  max-height: 85vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.nd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.nd-modal-head h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.nd-modal-x { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 16px; }
.nd-modal-x:hover { color: var(--text); border-color: var(--line-strong); }
.nd-modal-body { padding: 20px 22px; }
.nd-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }

.nd-tag-order { display: grid; gap: 8px; max-height: 55vh; overflow-y: auto; }
.nd-tag-order-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.nd-drag { cursor: grab; color: var(--faint); font-size: 1.1rem; }
.nd-tag-order-item small { margin-left: auto; color: var(--muted); font-family: var(--font-mono); font-size: .76rem; }
.nd-change-row { padding: 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 10px; }
.nd-change-row strong { color: var(--accent); }
.nd-change-row p { margin: 6px 0; color: var(--muted); font-size: .9rem; }
.nd-change-row small { color: var(--faint); font-family: var(--font-mono); }
.nd-change-label { color: var(--faint); font-weight: 600; }
.nd-change-avatar { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-strong); }

@media (max-width: 980px) {
  .nd-game-layout { grid-template-columns: 1fr; }
  .nd-stack { position: static; }
}
@media (max-width: 700px) {
  .nd-game-hero { grid-template-columns: 1fr; text-align: left; }
  .nd-game-art { width: 96px; height: 96px; }
  .nd-uid-main { flex-direction: column; padding-right: 0; }
  .nd-uid-check { position: static; align-self: flex-start; margin-bottom: 12px; }
  .nd-uid-actions { position: static; flex-direction: row; flex-wrap: wrap; align-items: stretch; margin-top: 16px; }
  .nd-uid-actions form, .nd-uid-actions .nd-btn { flex: 1; }
}

.slot-edit-form { display: grid; gap: 10px; }
.slot-edit-form .nd-uid-name-input { flex: 0 1 auto; width: auto; min-width: 160px; }
.nd-uid-save { width: fit-content; }

/* ==========================================================================
   FILTERABLE COMBOBOX (searchable select)
   ========================================================================== */
.nd-combo { position: relative; }
.nd-combo-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nd-combo-trigger:hover { border-color: var(--accent-line); }
.nd-combo.open .nd-combo-trigger { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.nd-combo-trigger.is-placeholder .nd-combo-value { color: var(--muted); }
.nd-combo-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-combo-trigger .chev { color: var(--muted); transition: transform .18s ease; flex: 0 0 auto; }
.nd-combo.open .nd-combo-trigger .chev { transform: rotate(180deg); }
.nd-combo.invalid .nd-combo-trigger { border-color: rgba(255,107,107,.55); box-shadow: 0 0 0 3px rgba(255,107,107,.12); }

.nd-combo-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 56px rgba(0,0,0,.55);
  display: none;
}
.nd-combo.open .nd-combo-panel { display: block; animation: nd-pop .16s ease; }
.nd-combo-search {
  width: 100%; padding: 10px 12px; margin-bottom: 6px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; outline: none;
}
.nd-combo-search:focus { border-color: var(--accent-line); }
.nd-combo-list { max-height: 240px; overflow-y: auto; }
.nd-combo-opt {
  padding: 9px 11px; border-radius: 9px; cursor: pointer;
  font-size: 0.92rem; color: var(--text);
}
.nd-combo-opt:hover { background: var(--surface-2); }
.nd-combo-opt.selected { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nd-combo-empty { padding: 14px 11px; color: var(--muted); font-size: 0.88rem; text-align: center; display: none; }
.nd-combo-err { display: none; margin: 7px 0 0; color: #ffb1b1; font-size: 0.82rem; }
.nd-combo.invalid .nd-combo-err { display: block; }

/* ==========================================================================
   PUBLIC GAME CODES DETAIL PAGE
   ========================================================================== */
.nd-codes-detail { display: flex; flex-direction: column; gap: 26px; margin-bottom: 70px; }

.nd-codecard {
  display: flex; flex-direction: column; gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .18s ease;
}
.nd-codecard:hover { border-color: var(--line-strong); }
.nd-codecard.is-expired { opacity: .72; }
.nd-codecard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nd-code-value {
  font-family: var(--font-mono);
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em;
  word-break: break-all; color: var(--text);
}
.nd-code-meta { margin-top: 6px; color: var(--faint); font-size: 0.82rem; line-height: 1.5; }
.nd-codestatus {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  padding: 5px 11px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
}
.nd-codestatus.active { color: var(--success); background: rgba(94,224,138,.14); border: 1px solid rgba(94,224,138,.4); }
.nd-codestatus.expired { color: #ff9b9b; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.4); }
.nd-copy.copied { background: var(--success); border-color: var(--success); color: var(--accent-ink); }

.nd-infobox {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.nd-infobox h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.nd-infobox p { margin: 0 0 12px; color: var(--muted); line-height: 1.7; }
.nd-infobox p:last-child { margin-bottom: 0; }

.nd-auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  margin-bottom: 22px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em;
}

/* ==========================================================================
   ACCOUNT PAGE
   ========================================================================== */
.nd-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 18px;
  align-items: start;
  margin-bottom: 70px;
}
.nd-account-card { display: flex; flex-direction: column; gap: 14px; }
.nd-account-card > h2 { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.nd-user { display: flex; align-items: center; gap: 14px; }
.nd-user-avatar {
  width: 60px; height: 60px; flex: 0 0 auto;
  border-radius: 16px; overflow: hidden;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
}
.nd-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nd-user-meta p { margin: 0; }
.nd-user-meta strong { font-size: 1.05rem; }
.nd-user-meta .sub { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.nd-statusline { margin: 0; font-size: 0.92rem; }
.nd-ok { color: var(--success); font-weight: 600; }
.nd-bad { color: #ff9b9b; font-weight: 600; }
.nd-account-muted { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.92rem; }
.nd-secbadge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 8px 13px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  font-weight: 700; font-size: 0.86rem;
}
.nd-account-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.nd-warn ul { margin: 10px 0 0; padding-left: 18px; }
.nd-warn li { margin: 3px 0; }
.nd-warn small { display: block; margin-top: 10px; opacity: .8; font-family: var(--font-mono); }

/* ==========================================================================
   NOTIFICATIONS (list)
   ========================================================================== */
.nd-notif-page { max-width: 900px; margin: 0 auto 70px; }
.nd-notif-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.nd-notif-head h1 {
  margin: 0 0 6px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.035em;
}
.nd-notif-head p { margin: 0; color: var(--muted); }

.nd-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 18px; }
.nd-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--muted); font-weight: 600; font-size: 0.9rem;
}
.nd-tab:hover { color: var(--text); border-color: var(--accent-line); }
.nd-tab.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.nd-tab span { font-family: var(--font-mono); font-size: 0.78rem; opacity: .85; }

.nd-notif-list { display: grid; gap: 10px; }
.nd-notif-row { display: flex; align-items: stretch; gap: 10px; }
.nd-notif {
  flex: 1; min-width: 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.nd-notif:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.nd-notif.unread { background: var(--accent-soft); border-color: var(--accent-line); }
.nd-notif-main { display: flex; gap: 13px; min-width: 0; }
.nd-notif-ico {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem;
  background: var(--bg-2); border: 1px solid var(--line);
}
.nd-notif-body { min-width: 0; }
.nd-notif-titlerow { display: flex; align-items: center; gap: 8px; }
.nd-notif-titlerow strong { font-size: 1rem; }
.nd-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: 0 0 auto; }
.nd-notif-game { margin-top: 3px; font-size: 0.8rem; color: var(--accent); font-weight: 700; }
.nd-notif-body p { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.nd-notif-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; color: var(--faint); font-size: 0.8rem; font-family: var(--font-mono); }
.nd-notif-del {
  flex: 0 0 auto; align-self: center;
  border: 1px solid rgba(255,107,107,.4); background: rgba(255,107,107,.1); color: #ffb1b1;
  border-radius: var(--radius-sm); padding: 0 14px; height: 100%; min-height: 44px;
  font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.nd-notif-del:hover { background: rgba(255,107,107,.2); }

.nd-notif-empty { padding: 64px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.nd-notif-empty .ico { font-size: 2.4rem; margin-bottom: 12px; }
.nd-notif-empty h3 { margin: 0 0 6px; font-size: 1.15rem; }
.nd-notif-empty p { margin: 0; color: var(--muted); }

@media (max-width: 600px) {
  .nd-notif { flex-direction: column; gap: 10px; }
  .nd-notif-meta { flex-direction: row; align-items: center; gap: 8px; }
  .nd-notif-del { width: 100%; min-height: 42px; }
}

/* ==========================================================================
   NOTIFICATION DETAIL
   ========================================================================== */
.nd-notif-detail { max-width: 820px; margin: 30px auto 70px; }
.nd-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 18px; color: var(--muted); font-weight: 600; font-size: 0.92rem;
}
.nd-back:hover { color: var(--accent); }

.nd-notif-hero {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
}
.nd-notif-hero-top { display: flex; gap: 18px; align-items: flex-start; }
.nd-notif-hero-ico {
  width: 60px; height: 60px; flex: 0 0 auto;
  border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem;
  background: var(--bg-2); border: 1px solid var(--line);
}
.nd-notif-hero h1 {
  margin: 4px 0 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.08; letter-spacing: -0.03em;
}
.nd-game-pill {
  display: inline-flex; padding: 6px 13px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-weight: 700; font-size: 0.82rem;
}
.nd-notif-msg {
  margin-top: 22px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  color: #d6dae3; line-height: 1.7;
}

.nd-fail-card {
  margin-top: 18px; padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,107,107,.06); border: 1px solid rgba(255,107,107,.22);
}
.nd-fail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.nd-fail-head h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.nd-fail-head span {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,107,107,.14); color: #ffb1b1;
}
.nd-fail-list { display: grid; gap: 12px; }
.nd-fail-row { padding: 16px; border-radius: var(--radius); background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.nd-fail-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nd-fail-top strong { font-family: var(--font-mono); font-size: 0.92rem; }
.nd-server-pill {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(245,181,69,.14); color: #ffd98a;
}
.nd-fail-row p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ==========================================================================
   CAPTCHA STATS
   ========================================================================== */
.nd-cs { --cs-cyan: #5ec8ff; max-width: 1100px; margin: 0 auto 70px; }
.nd-cs-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 40px 0 22px; }
.nd-cs-header h1 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.035em; }
.nd-cs-header p { margin: 0; color: var(--muted); }
.nd-cs-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.nd-cs-updated { color: var(--muted); font-size: 0.84rem; }
.nd-cs-updated b { color: var(--text); font-weight: 600; font-family: var(--font-mono); }

.nd-cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nd-cs-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.nd-cs-stat { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.nd-cs-stat > span { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 500; margin-bottom: 8px; }
.nd-cs-stat > strong { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1; letter-spacing: -0.02em; }
.nd-cs-stat small { display: block; margin-top: 8px; color: var(--faint); font-size: 0.78rem; }
.cs-green { color: var(--success) !important; }
.cs-cyan { color: var(--cs-cyan) !important; }
.cs-muted { color: var(--muted) !important; }

.nd-cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.nd-cs-grid .span { grid-column: 1 / -1; }
.nd-cs-card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.nd-cs-card h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.nd-cs-card h3 small { color: var(--muted); font-weight: 400; font-size: 0.8rem; }

.nd-cs-bar { height: 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; margin-top: 14px; }
.nd-cs-bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.nd-cs-bar-meta { display: flex; justify-content: space-between; margin-top: 11px; color: var(--muted); font-size: 0.85rem; }
.nd-cs-bar-meta b { color: var(--text); font-family: var(--font-mono); }

.nd-cs-split { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.nd-cs-split:last-child { border-bottom: 0; }
.nd-cs-split span { color: var(--muted); }
.nd-cs-split b { font-weight: 600; font-family: var(--font-mono); }

.nd-cs-dist { margin-top: 14px; }
.nd-cs-dist-head { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 0.85rem; }
.nd-cs-dist-head span { color: var(--muted); }
.nd-cs-dist-head b { font-family: var(--font-mono); }
.nd-cs-dbar { height: 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.nd-cs-dbar > i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.nd-cs-dbar.g > i { background: var(--accent); }
.nd-cs-dbar.c > i { background: var(--cs-cyan); }

.nd-cs-act { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.nd-cs-act-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.nd-cs-act-num { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.nd-cs-act-cap { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 8px; }
.nd-cs-act-rate { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
.nd-cs-act-rate b { font-family: var(--font-mono); font-weight: 700; }

.nd-cs-hours { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin-top: 14px; }
.nd-cs-hours .h { flex: 1; min-height: 3px; border-radius: 3px 3px 0 0; background: rgba(255,255,255,.07); transition: height .6s ease; }
.nd-cs-hours .h.on { background: var(--accent); }
.nd-cs-hours-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--faint); font-size: 0.72rem; font-family: var(--font-mono); }

@media (max-width: 760px) {
  .nd-cs-stats { grid-template-columns: repeat(2, 1fr); }
  .nd-cs-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   2FA (setup + verify)
   ========================================================================== */
.nd-2fa { max-width: 460px; margin: 50px auto 70px; }
.nd-2fa .nd-panel { text-align: center; }
.nd-2fa h1 { margin: 6px 0 12px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; }
.nd-2fa .lead { margin: 0 auto 22px; color: var(--muted); line-height: 1.6; max-width: 32rem; }
.nd-qr {
  width: 200px; height: 200px; margin: 0 auto 24px;
  background: #fff; padding: 14px; border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(0,0,0,.4);
}
.nd-qr img { width: 100%; height: 100%; display: block; }
.nd-code-input {
  width: 100%; text-align: center;
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700;
  letter-spacing: 0.5em; padding-left: 0.5em;
  padding-block: 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--text); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nd-code-input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.nd-code-input::placeholder { color: var(--faint); letter-spacing: 0.5em; }
.nd-2fa-lock { font-size: 2.4rem; margin-bottom: 6px; }

/* ==========================================================================
   STATUS / ERROR PAGE (game unavailable, etc.)
   ========================================================================== */
.nd-status-page {
  max-width: 540px; margin: 70px auto;
  text-align: center;
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
}
.nd-status-ico {
  width: 76px; height: 76px; margin: 0 auto 22px;
  border-radius: 22px; display: grid; place-items: center; font-size: 2.2rem;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.nd-status-page h1 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.03em; }
.nd-status-page p { margin: 0 auto 28px; color: var(--muted); line-height: 1.65; max-width: 34rem; }

/* ==========================================================================
   USER DASHBOARD
   ========================================================================== */
.nd-dash { max-width: 1100px; margin: 0 auto 70px; }
.nd-dash-head { padding: 40px 0 22px; }
.nd-dash-head h1 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.035em; }
.nd-dash-head p { margin: 0; color: var(--muted); }

.nd-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nd-dash-stat { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.nd-dash-stat span { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 8px; }
.nd-dash-stat strong { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; letter-spacing: -0.02em; }

.nd-dash-highlight {
  margin: 16px 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: radial-gradient(500px 160px at 92% 0%, var(--accent-soft), transparent 60%), var(--surface);
  border: 1px solid var(--accent-line);
}
.nd-dash-highlight strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-family: var(--font-mono); }
.nd-dash-highlight p { margin: 8px 0 0; font-size: 1.1rem; font-weight: 600; }

.nd-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.nd-dash-card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.nd-dash-card h3 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; }
.nd-chart-wrap { position: relative; height: 250px; }

.nd-dash-fails { margin-top: 22px; }
.nd-dash-fails h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.nd-dash-fail-list { display: grid; gap: 10px; }
.nd-dash-fail-row {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 16px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.nd-dash-fail-row strong { display: block; font-size: 0.95rem; }
.nd-dash-fail-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.82rem; font-family: var(--font-mono); }
.nd-dash-fail-row > div:nth-child(2) strong { font-family: var(--font-mono); }
.nd-dash-fail-row > div:nth-child(2) span { color: #ff9b9b; text-transform: capitalize; }
.nd-dash-fail-row small { color: var(--faint); font-size: 0.78rem; font-family: var(--font-mono); white-space: nowrap; }

@media (max-width: 760px) {
  .nd-dash-stats { grid-template-columns: repeat(2, 1fr); }
  .nd-dash-grid { grid-template-columns: 1fr; }
  .nd-dash-fail-row { grid-template-columns: 1fr; gap: 6px; }
  .nd-dash-fail-row small { margin-top: 4px; }
}

/* ==========================================================================
   ADMIN (dashboard, users, games, codes, celery)
   ========================================================================== */
.nd-admin { max-width: 1140px; margin: 0 auto 70px; }
.nd-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 38px 0 22px; }
.nd-admin-head h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.035em; }
.nd-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nd-admin-actions form { margin: 0; }

.nd-admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.nd-admin-stat { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.nd-admin-stat span { display: block; color: var(--muted); font-size: 0.82rem; text-transform: capitalize; margin-bottom: 8px; }
.nd-admin-stat strong { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; letter-spacing: -0.02em; }

.nd-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 18px; align-items: start; }
.nd-admin-2col { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.nd-admin-panel { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.nd-admin-panel > h2 { margin: 0 0 16px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.nd-admin-panel .nd-form { gap: 12px; }
.nd-admin-panel .nd-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.nd-admin-panel .nd-form label input,
.nd-admin-panel .nd-form label textarea,
.nd-admin-panel .nd-form label select { margin-top: 7px; }
.nd-admin-panel .nd-form label.check { display: flex; align-items: center; gap: 9px; color: var(--text); }
.nd-admin-panel .nd-form label.check input { margin: 0; accent-color: var(--accent); width: auto; }

/* tables */
.nd-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.nd-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.nd-table th { text-align: left; padding: 11px 14px; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.nd-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.nd-table tbody tr:last-child td { border-bottom: 0; }
.nd-table tbody tr:hover { background: var(--surface-2); }
.nd-table code, .nd-table .mono { font-family: var(--font-mono); font-size: 0.84rem; }

.nd-pill-ok  { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: rgba(94,224,138,.14); color: var(--success); border: 1px solid rgba(94,224,138,.36); }
.nd-pill-off { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line-strong); }
.nd-pill-bad { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: rgba(255,107,107,.12); color: #ff9b9b; border: 1px solid rgba(255,107,107,.36); }
.nd-btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.nd-btn-row form { margin: 0; }

.nd-link-btn { background: none; border: 1px solid var(--line-strong); color: var(--accent); border-radius: 9px; padding: 6px 12px; font-weight: 700; font-size: 0.82rem; cursor: pointer; font-family: inherit; }
.nd-link-btn:hover { background: var(--accent-soft); border-color: var(--accent-line); }

.nd-bot-lines p { margin: 0 0 8px; }
.nd-mono-block { font-family: var(--font-mono); font-size: 0.78rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; overflow-x: auto; color: var(--muted); }
.nd-admin details summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.nd-admin hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.nd-admin h3 { font-size: 1.1rem; }
.nd-admin h5 { margin: 18px 0 8px; font-family: var(--font-mono); font-size: 0.86rem; color: var(--muted); }

@media (max-width: 820px) {
  .nd-admin-stats { grid-template-columns: repeat(2, 1fr); }
  .nd-admin-2col { grid-template-columns: 1fr; }
}

/* 2FA manual entry (for same-device users who can't scan) */
.nd-2fa-manual { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.nd-2fa-manual summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 8px; }
.nd-2fa-manual summary::-webkit-details-marker { display: none; }
.nd-2fa-manual summary::before { content: "▸"; transition: transform .15s ease; }
.nd-2fa-manual[open] summary::before { transform: rotate(90deg); }
.nd-2fa-manual p { margin: 12px 0 14px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.nd-secret {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line-strong);
}
.nd-secret code {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.12em; word-break: break-all; color: var(--text);
}
.nd-secret-copy {
  flex: 0 0 auto; border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--text); border-radius: 9px; padding: 8px 13px; font-weight: 700; font-size: 0.82rem; cursor: pointer; font-family: inherit;
}
.nd-secret-copy:hover { border-color: var(--accent-line); }
.nd-secret-copy.copied { background: var(--success); border-color: var(--success); color: var(--accent-ink); }
.nd-2fa-openapp { display: inline-flex; margin-top: 14px; }
