button,
a,
.nl-btn,
.nl-icon-btn,
.nl-menu-btn,
.nl-chip,
[data-nl-menu],
[data-nl-menu-close],
.nl-bottom-nav a,
.nl-drawer__nav a,
input[type="submit"],
input[type="button"],
select,
label[for],
summary {
  cursor: pointer;
}

.nl-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background 0.5s ease, border-color 0.5s ease;
}
.nl-header__bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem clamp(1.5rem, 5vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}
.nl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
}
.nl-brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #000;
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}
.nl-brand__name {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.nl-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.nl-nav a {
  position: relative;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.25rem;
}
.nl-nav a:hover,
.nl-nav a.is-active { color: var(--accent); }
.nl-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.nl-header__cta {
  white-space: nowrap;
  display: none;
}
@media (min-width: 640px) {
  .nl-header__cta { display: inline-flex; }
}
.nl-icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
}
.nl-status {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nl-status strong {
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nl-status strong::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  background: var(--accent);
  border-radius: 999px;
  animation: nl-pulse 1.4s ease infinite;
}
@keyframes nl-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (min-width: 1024px) {
  .nl-nav { display: flex; }
  .nl-menu-btn { display: none !important; }
}
@media (min-width: 1280px) {
  .nl-status { display: flex; }
}

.nl-drawer[hidden] { display: none; }
.nl-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 60;
}
.nl-drawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 70;
  padding: 1rem 1.25rem 2rem;
  overflow: auto;
}
.nl-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
}
.nl-drawer__nav a {
  padding: 0.85rem 0.5rem;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  min-height: 44px;
}
.nl-drawer__nav a:hover { color: var(--accent); }

.nl-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.4rem 0.35rem calc(0.4rem + var(--safe-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.nl-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 48px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nl-bottom-nav a.is-active,
.nl-bottom-nav a:hover { color: var(--accent); }
@media (min-width: 1024px) {
  .nl-bottom-nav { display: none; }
}

.nl-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 5vw, 2.75rem) 7rem;
  border-top: 1px solid var(--border);
  box-sizing: border-box;
}
.nl-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.nl-footer h4 {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nl-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.nl-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.nl-footer a:hover { color: var(--fg); }
.nl-footer__copy {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nl-footer__copy a { color: var(--accent); }
.nl-footer__legal {
  margin: 1rem 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
@media (min-width: 900px) {
  .nl-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nl-footer__copy { flex-direction: row; justify-content: space-between; align-items: center; }
}

.nl-toast-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: grid;
  gap: 0.5rem;
  width: min(90vw, 320px);
}
.nl-toast {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.85rem 1rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.25s ease;
}
.nl-toast.is-in { opacity: 1; transform: none; }
.nl-toast--success { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.nl-toast--error { border-color: #ef4444; }
