@property --nx-pct {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}

.nx-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: clamp(14px, 3vh, 36px) clamp(10px, 2.5vw, 26px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(920px 520px at 14% -12%, var(--accent-soft), transparent 62%),
    radial-gradient(780px 460px at 88% 6%, color-mix(in srgb, var(--accent2) 9%, transparent), transparent 60%),
    radial-gradient(900px 620px at 50% 118%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 66%),
    rgba(3, 5, 10, 0.8);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.nx-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  animation: nx-a-fade 0.26s ease both;
}

.nx-modal {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  padding: 22px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 8% -18%, var(--accent-soft), transparent 58%),
    radial-gradient(70% 55% at 106% 108%, color-mix(in srgb, var(--accent2) 7%, transparent), transparent 60%),
    linear-gradient(168deg, rgba(22, 27, 42, 0.88), rgba(10, 13, 22, 0.94));
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    0 44px 120px -30px rgba(0, 0, 0, 0.75),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  animation: nx-a-modal 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nx-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 50%, transparent), transparent);
  opacity: 0.55;
}

.nx-modal::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -70px;
  width: 340px;
  height: 240px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 32%, transparent), transparent 68%);
  filter: blur(44px);
  opacity: 0.5;
  animation: nx-a-breathe 9s ease-in-out infinite;
}

.nx-c { display: none; }

.nx-statusbar {
  display: flex;
  align-items: center;
  gap: 9px;
  width: calc(100% - 104px);
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.nx-live-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent2) 70%, transparent);
  animation: nx-a-pulse 2.4s ease-in-out infinite;
}

.nx-status-sep {
  flex: 1;
  min-width: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}

#nx-stamp {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.nx-top-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.nx-sound-toggle,
.nx-close {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nx-sound-toggle:hover,
.nx-close:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.nx-sound-toggle:focus-visible,
.nx-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 2px;
}

.nx-sound-toggle svg {
  width: 15px;
  height: 15px;
}

.nx-sound-toggle[aria-pressed="false"] {
  color: color-mix(in srgb, var(--muted) 65%, transparent);
}

.nx-sound-toggle[aria-pressed="false"] .nx-snd-on { display: none; }
.nx-sound-toggle[aria-pressed="true"] .nx-snd-off { display: none; }

.nx-close {
  font-size: 13px;
  line-height: 1;
}

.nx-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 18px;
}

.nx-hud-step {
  position: relative;
  padding: 9px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.022);
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nx-hud-step b {
  display: block;
  margin-bottom: 2px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.nx-hud-step.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background: linear-gradient(160deg, var(--accent-soft), rgba(255, 255, 255, 0.03));
}

.nx-hud-step.active b { color: var(--accent); }

.nx-hud-step.done {
  color: color-mix(in srgb, var(--ok) 88%, var(--text));
  border-color: color-mix(in srgb, var(--ok) 26%, transparent);
  background: color-mix(in srgb, var(--ok) 7%, transparent);
}

.nx-hud-step.done b { color: var(--ok); }

.nx-head {
  text-align: center;
  margin-bottom: 20px;
}

.nx-head h3 {
  font-family: Cinzel, Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.nx-head p {
  max-width: 48ch;
  margin: 0 auto;
  font-size: 12.5px;
  color: var(--muted);
}

.nx-field { margin-bottom: 18px; }

.nx-label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 90%, transparent);
}

.nx-input-wrap { position: relative; }

.nx-input-ic {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--muted) 80%, transparent);
  pointer-events: none;
}

.nx-input-ic svg { width: 100%; height: 100%; }

.nx-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(6, 9, 16, 0.52);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.nx-input::placeholder { color: color-mix(in srgb, var(--muted) 62%, transparent); }

.nx-input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: rgba(8, 11, 20, 0.72);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.nx-input-error {
  border-color: color-mix(in srgb, #fb7185 70%, transparent) !important;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14) !important;
}

.nx-hint {
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
}

.nx-hint-error { color: #fb7185; }

.nx-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.nx-plat {
  flex: 1 1 0;
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.024);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.nx-plat-ic {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.nx-plat-ic svg { width: 100%; height: 100%; }

.nx-plat-label { line-height: 1.2; }

.nx-plat:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.nx-plat.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(160deg, var(--accent-soft), rgba(255, 255, 255, 0.03));
  box-shadow: 0 12px 28px -18px var(--glow);
}

.nx-plat.active .nx-plat-ic { color: var(--accent); }

.nx-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.nx-pkg {
  position: relative;
  padding: 18px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.024);
  color: var(--text);
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nx-pkg-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.nx-pkg-bonus {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
}

.nx-pkg-flag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--cta-text);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px -10px var(--glow);
}

.nx-pkg:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.nx-pkg.pop { border-color: color-mix(in srgb, var(--accent) 26%, transparent); }

.nx-pkg.active {
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  background: linear-gradient(165deg, var(--accent-soft), rgba(255, 255, 255, 0.035));
  box-shadow: 0 16px 38px -22px var(--glow);
}

#nx-generate {
  position: relative;
  width: 100%;
  margin-top: 4px;
  padding: 16px 20px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--cta-text);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 20px 44px -22px var(--glow), 0 1px 0 rgba(255, 255, 255, 0.28) inset;
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

#nx-generate::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -55%;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-16deg);
  animation: nx-a-sheen 5.6s ease-in-out infinite;
}

#nx-generate:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 24px 52px -22px var(--glow), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

#nx-generate:active { transform: translateY(0) scale(0.995); }

#nx-generate:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
}

#nx-generate .nx-btn-ic {
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
}

#nx-generate .nx-btn-ic svg { width: 100%; height: 100%; }

.nx-console {
  position: relative;
  margin-top: 4px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.72), rgba(3, 5, 10, 0.84));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

.nx-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.nx-console-head span:last-child {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.nx-cbar {
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.nx-cfill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 16px -4px var(--glow);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-logs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 200px;
  overflow-y: auto;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--muted) 92%, transparent);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.nx-console-line { animation: nx-a-line 0.28s ease both; }
.nx-console-line.ok { color: var(--ok); }
.nx-console-line.warn { color: #fbbf24; }

.nx-cursor {
  width: 8px;
  height: 14px;
  margin-top: 8px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 85%, transparent);
  animation: nx-a-blink 1.1s steps(1) infinite;
}

.nx-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
}

.nx-pct-badge {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--accent) 0%,
    var(--accent) var(--nx-pct, 0%),
    rgba(255, 255, 255, 0.08) var(--nx-pct, 0%),
    rgba(255, 255, 255, 0.08) 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 14px 34px -20px var(--glow);
  transition: --nx-pct 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-pct-badge::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #0a0e17;
  box-shadow: 0 14px 30px -24px rgba(0, 0, 0, 0.9) inset;
}

.nx-pct-badge b {
  position: relative;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.nx-pct-badge span {
  position: relative;
  font-size: 7.5px;
  letter-spacing: 0.22em;
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.nx-segwrap { flex: 1; min-width: 0; }

.nx-segs {
  display: flex;
  gap: 7px;
  margin-bottom: 9px;
}

.nx-seg {
  flex: 1;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nx-seg.on {
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 18px -8px var(--glow);
}

.nx-seg.current {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-soft);
  animation: nx-a-pulse 1.9s ease-in-out infinite;
}

.nx-plabel {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.nx-psub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.nx-busy {
  display: none;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 15px;
  background: linear-gradient(120deg, var(--accent-soft), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.nx-busy.show {
  display: flex;
  animation: nx-a-rise 0.3s ease both;
}

.nx-spin {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: nx-a-spin 1s linear infinite;
}

.nx-offers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nx-offer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.012));
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nx-offer:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent-soft) 85%, transparent), rgba(255, 255, 255, 0.02));
  box-shadow: 0 22px 44px -30px var(--glow);
}

.nx-slot {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nx-offer-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--accent);
}

.nx-offer-ic svg { width: 22px; height: 22px; }

.nx-offer img {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.oi { flex: 1; min-width: 0; }

.nx-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ot {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.od {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.nx-go {
  flex: none;
  padding: 10px 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--cta-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 26px -16px var(--glow);
}

.nx-offer.busy { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.nx-offer.busy .nx-go { animation: nx-a-pulse 1.8s ease-in-out infinite; }

.nx-offer.done {
  border-color: color-mix(in srgb, var(--ok) 32%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--ok) 8%, transparent), rgba(255, 255, 255, 0.012));
}

.nx-offer.done .nx-slot {
  border-color: color-mix(in srgb, var(--ok) 30%, transparent);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok);
}

.nx-offer.done .nx-go {
  background: linear-gradient(135deg, var(--ok), color-mix(in srgb, var(--ok) 72%, #ffffff));
  box-shadow: 0 12px 26px -16px color-mix(in srgb, var(--ok) 45%, transparent);
}

.nx-offer.done .ot { color: color-mix(in srgb, var(--text) 92%, var(--ok)); }

.nx-inject-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.012));
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.nx-inject-banner b {
  color: var(--text);
  font-weight: 600;
}

.nx-inject-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent2) 70%, transparent);
  animation: nx-a-pulse 2s ease-in-out infinite;
}

.nx-steps-note {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.nx-state {
  padding: 34px 10px 26px;
  text-align: center;
}

.nx-state h3 {
  margin-bottom: 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: 19px;
}

.nx-state p {
  max-width: 44ch;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.nx-state-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 18px 40px -26px var(--glow);
}

.nx-state-ic svg { width: 26px; height: 26px; }

.nx-state-ic-error {
  border-color: color-mix(in srgb, #fb7185 30%, transparent);
  background: rgba(251, 113, 133, 0.1);
  color: #fb7185;
  box-shadow: none;
}

.nx-state .btn.small {
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: none;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nx-state .btn.small:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: rgba(255, 255, 255, 0.07);
  filter: none;
  transform: translateY(-1px);
}

.nx-state-success { padding-top: 30px; }

.nx-trophy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, var(--accent-soft), transparent 72%);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 7%, transparent), 0 24px 54px -30px var(--glow);
  animation: nx-a-pop 0.6s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}

.nx-trophy svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent);
}

.nx-voucher {
  margin: 20px 0 14px;
  padding: 16px;
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--accent-soft), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
  word-break: break-all;
  user-select: all;
  box-shadow: 0 20px 44px -32px var(--glow);
  animation: nx-a-voucher 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

#nx-copy {
  position: relative;
  width: 100%;
  padding: 15px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.035));
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transition: border-color 0.24s ease, background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

#nx-copy::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-14deg);
  transition: left 0.55s ease;
}

#nx-copy:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), rgba(255, 255, 255, 0.05));
  color: var(--text);
  transform: translateY(-1px);
  filter: none;
}

#nx-copy:hover::after { left: 135%; }

#nx-copy:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
}

.nx-proof-box {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 340;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.nx-proof {
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: 340px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 2px solid color-mix(in srgb, var(--ok) 55%, transparent);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(13, 17, 28, 0.72));
  box-shadow: 0 28px 64px -34px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-proof.show {
  opacity: 1;
  transform: none;
}

.nx-proof:hover { border-color: rgba(255, 255, 255, 0.16); }

.nx-proof-check {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}

.nx-proof-check svg {
  width: 11px;
  height: 11px;
}

.nx-proof-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.nx-proof-text b {
  color: var(--text);
  font-weight: 600;
}

.nx-proof-time {
  margin-top: 3px;
  font-size: 10px;
  color: color-mix(in srgb, var(--muted) 62%, transparent);
}

.nx-modal::-webkit-scrollbar { width: 8px; }
.nx-modal::-webkit-scrollbar-track { background: transparent; }
.nx-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.nx-modal::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

.nx-logs::-webkit-scrollbar { width: 6px; }
.nx-logs::-webkit-scrollbar-track { background: transparent; }
.nx-logs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

@keyframes nx-a-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nx-a-modal {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes nx-a-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

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

@keyframes nx-a-blink {
  50% { opacity: 0; }
}

@keyframes nx-a-line {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@keyframes nx-a-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes nx-a-sheen {
  0%, 58% { left: -55%; }
  82%, 100% { left: 130%; }
}

@keyframes nx-a-pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes nx-a-voucher {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes nx-a-breathe {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 0.58; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-overlay.open,
  .nx-modal,
  .nx-modal::after,
  .nx-live-dot,
  .nx-inject-dot,
  .nx-spin,
  .nx-cursor,
  .nx-seg.current,
  .nx-console-line,
  .nx-busy.show,
  .nx-trophy,
  .nx-voucher,
  .nx-offer.busy .nx-go,
  #nx-generate,
  #nx-generate::after,
  #nx-copy,
  #nx-copy::after,
  .nx-proof {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 820px) {
  .nx-modal {
    max-width: 100%;
    padding: 20px 18px 20px;
    border-radius: 22px;
  }

  .nx-statusbar { width: calc(100% - 100px); }
  .nx-head h3 { font-size: 19px; }
  .nx-plat { min-width: 84px; }
  .nx-offer { gap: 11px; }
  .nx-go { padding: 9px 11px; font-size: 9.5px; }
  .nx-proof-box { left: 14px; bottom: 14px; }
  .nx-proof { max-width: 300px; }
}

@media (max-width: 520px) {
  .nx-overlay { padding: 10px 8px 14px; }

  .nx-modal {
    padding: 18px 14px 16px;
    border-radius: 20px;
    max-height: calc(100vh - 22px);
  }

  .nx-statusbar {
    width: calc(100% - 94px);
    gap: 7px;
    padding: 6px 10px;
    font-size: 8.5px;
    letter-spacing: 0.12em;
  }

  #nx-stamp { display: none; }

  .nx-top-actions {
    top: 12px;
    right: 12px;
    gap: 6px;
  }

  .nx-sound-toggle,
  .nx-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .nx-hud { gap: 5px; margin-bottom: 16px; }

  .nx-hud-step {
    padding: 7px 4px 6px;
    border-radius: 11px;
    font-size: 7.5px;
    letter-spacing: 0.06em;
  }

  .nx-hud-step b { font-size: 10px; }

  .nx-head { margin-bottom: 16px; }
  .nx-head h3 { font-size: 17.5px; }
  .nx-field { margin-bottom: 15px; }

  .nx-packages {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nx-pkg { padding: 14px 12px 12px; }

  .nx-plat {
    min-width: 68px;
    gap: 6px;
    padding: 10px 7px;
    border-radius: 13px;
    font-size: 11px;
  }

  .nx-plat-ic { width: 18px; height: 18px; }

  #nx-generate {
    padding: 15px 16px;
    font-size: 12.5px;
  }

  .nx-console {
    padding: 13px 12px 11px;
    border-radius: 16px;
  }

  .nx-logs { max-height: 170px; font-size: 11px; }

  .nx-progress {
    gap: 12px;
    padding: 13px;
    border-radius: 17px;
  }

  .nx-pct-badge { width: 56px; height: 56px; }
  .nx-pct-badge b { font-size: 13px; }

  .nx-offer {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .nx-slot {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 10px;
  }

  .nx-offer-ic {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .nx-offer-ic svg { width: 18px; height: 18px; }

  .nx-offer img {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .nx-go {
    flex: 1 1 100%;
    margin-top: 2px;
    padding: 10px;
    text-align: center;
  }

  .nx-voucher {
    padding: 14px 12px;
    font-size: 13.5px;
    letter-spacing: 0.07em;
  }

  .nx-proof-box { left: 10px; bottom: 10px; }

  .nx-proof {
    max-width: 265px;
    padding: 11px 12px;
    border-radius: 16px;
  }
}
