/**
 * NOXEN CSS FRAMEWORK v2.1.2
 * Layer 1 — Token System
 * All design decisions live here as CSS custom properties.
 * Every token is overridable. Every theme extends this.
 */

:root {

   /* ═══════════════════════════════════════
     COLOR — BASE PALETTE
  ═══════════════════════════════════════ */
   --nx-color-bg: #03030a;
   --nx-color-surface: #08080f;
   --nx-color-surface-2: #0d0d1a;
   --nx-color-surface-3: #131326;
   --nx-color-surface-4: #1a1a33;
   --nx-color-overlay: rgba(3, 3, 10, 0.85);

   /* ═══════════════════════════════════════
     COLOR — TEXT
  ═══════════════════════════════════════ */
   --nx-color-text: #eeeef8;
   --nx-color-text-2: #8888b0;
   --nx-color-text-3: #44446a;
   --nx-color-text-inv: #03030a;

   /* ═══════════════════════════════════════
     COLOR — ACCENT (primary brand color)
  ═══════════════════════════════════════ */
   --nx-color-accent: #00e5ff;
   --nx-color-accent-lo: rgba(0, 229, 255, 0.08);
   --nx-color-accent-md: rgba(0, 229, 255, 0.20);
   --nx-color-accent-hi: rgba(0, 229, 255, 0.45);
   --nx-color-accent-2: #7b4fff;

   /* ═══════════════════════════════════════
     COLOR — SEMANTIC
  ═══════════════════════════════════════ */
   --nx-color-ok: #00ff88;
   --nx-color-ok-lo: rgba(0, 255, 136, 0.08);
   --nx-color-ok-md: rgba(0, 255, 136, 0.20);
   --nx-color-warn: #ffcc00;
   --nx-color-warn-lo: rgba(255, 204, 0, 0.08);
   --nx-color-warn-md: rgba(255, 204, 0, 0.20);
   --nx-color-err: #ff3c3c;
   --nx-color-err-lo: rgba(255, 60, 60, 0.08);
   --nx-color-err-md: rgba(255, 60, 60, 0.20);
   --nx-color-info: #bf5fff;
   --nx-color-info-lo: rgba(191, 95, 255, 0.08);
   --nx-color-info-md: rgba(191, 95, 255, 0.20);

   /* ═══════════════════════════════════════
     COLOR — BORDERS
  ═══════════════════════════════════════ */
   --nx-color-border: rgba(255, 255, 255, 0.06);
   --nx-color-border-2: rgba(0, 229, 255, 0.15);
   --nx-color-border-3: rgba(0, 229, 255, 0.30);

   /* ═══════════════════════════════════════
     SPACING — 4px base scale
  ═══════════════════════════════════════ */
   --nx-space-1: 4px;
   --nx-space-2: 8px;
   --nx-space-3: 12px;
   --nx-space-4: 16px;
   --nx-space-5: 24px;
   --nx-space-6: 32px;
   --nx-space-7: 48px;
   --nx-space-8: 64px;
   --nx-space-9: 96px;
   --nx-space-10: 128px;

   /* ═══════════════════════════════════════
     TYPOGRAPHY
  ═══════════════════════════════════════ */
   --nx-font-display: 'Oxanium', 'Segoe UI', system-ui, sans-serif;
   --nx-font-body: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
   --nx-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

   --nx-text-xs: 0.70rem;
   /* 11px */
   --nx-text-sm: 0.80rem;
   /* 13px */
   --nx-text-base: 0.875rem;
   /* 14px */
   --nx-text-md: 1rem;
   /* 16px */
   --nx-text-lg: 1.125rem;
   /* 18px */
   --nx-text-xl: 1.25rem;
   /* 20px */
   --nx-text-2xl: 1.5rem;
   /* 24px */
   --nx-text-3xl: 1.875rem;
   /* 30px */
   --nx-text-4xl: 2.25rem;
   /* 36px */
   --nx-text-5xl: 3rem;
   /* 48px */
   --nx-text-6xl: 4rem;
   /* 64px */

   /* Fluid typography — scales between viewport widths */
   --nx-fluid-sm: clamp(0.80rem, 0.65rem + 0.5vw, 1rem);
   --nx-fluid-base: clamp(0.875rem, 0.75rem + 0.5vw, 1.125rem);
   --nx-fluid-lg: clamp(1rem, 0.8rem + 1vw, 1.5rem);
   --nx-fluid-xl: clamp(1.25rem, 1rem + 1.5vw, 2rem);
   --nx-fluid-2xl: clamp(1.5rem, 1.2rem + 2vw, 2.5rem);
   --nx-fluid-3xl: clamp(2rem, 1.5rem + 3vw, 4rem);
   --nx-fluid-hero: clamp(2.5rem, 1.8rem + 4vw, 6rem);

   --nx-leading-tight: 1.25;
   --nx-leading-snug: 1.375;
   --nx-leading-normal: 1.5;
   --nx-leading-relaxed: 1.625;
   --nx-leading-loose: 2;

   --nx-tracking-tight: -0.04em;
   --nx-tracking-snug: -0.02em;
   --nx-tracking-normal: 0;
   --nx-tracking-wide: 0.05em;
   --nx-tracking-wider: 0.1em;
   --nx-tracking-widest: 0.2em;

   /* ═══════════════════════════════════════
     BORDER RADIUS
  ═══════════════════════════════════════ */
   --nx-radius-xs: 4px;
   --nx-radius-sm: 6px;
   --nx-radius-md: 10px;
   --nx-radius-lg: 16px;
   --nx-radius-xl: 24px;
   --nx-radius-2xl: 32px;
   --nx-radius-full: 9999px;

   /* ═══════════════════════════════════════
     ELEVATION — Box shadows
  ═══════════════════════════════════════ */
   --nx-shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
   --nx-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
   --nx-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
   --nx-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
   --nx-shadow-xl: 0 16px 80px rgba(0, 0, 0, 0.7);
   --nx-shadow-glow: 0 0 24px var(--nx-color-accent-md);
   --nx-shadow-glow-lg: 0 0 60px var(--nx-color-accent-lo);

   /* ═══════════════════════════════════════
     MOTION
  ═══════════════════════════════════════ */
   --nx-ease-linear: linear;
   --nx-ease-in: cubic-bezier(0.4, 0, 1, 1);
   --nx-ease-out: cubic-bezier(0, 0, 0.2, 1);
   --nx-ease-default: cubic-bezier(0.22, 1, 0.36, 1);
   --nx-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
   --nx-ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);

   --nx-duration-instant: 50ms;
   --nx-duration-fast: 150ms;
   --nx-duration-base: 250ms;
   --nx-duration-slow: 400ms;
   --nx-duration-slower: 600ms;
   --nx-duration-glacial: 800ms;

   /* ═══════════════════════════════════════
     Z-INDEX SCALE
  ═══════════════════════════════════════ */
   --nx-z-below: -1;
   --nx-z-base: 0;
   --nx-z-raised: 10;
   --nx-z-dropdown: 100;
   --nx-z-sticky: 200;
   --nx-z-overlay: 300;
   --nx-z-modal: 400;
   --nx-z-toast: 500;
   --nx-z-top: 999;

   /* ═══════════════════════════════════════
     ANTIGRAVITY ENGINE TOKENS
  ═══════════════════════════════════════ */
   --nx-ag-seam-color: var(--nx-color-accent);
   --nx-ag-seam-width: 1px;
   --nx-ag-seam-glow: 0 0 20px var(--nx-color-accent-md), 0 0 60px var(--nx-color-accent-lo);
   --nx-ag-reflect-blur: 1px;
   --nx-ag-reflect-fade: 0.45;
   --nx-ag-zone-depth: 600px;

   /* ═══════════════════════════════════════
     FLUID SPACING (clamp-based)
  ═══════════════════════════════════════ */
   --nx-fluid-space-xs: clamp(4px, 0.5vw, 8px);
   --nx-fluid-space-sm: clamp(8px, 1vw, 16px);
   --nx-fluid-space-md: clamp(16px, 2vw, 32px);
   --nx-fluid-space-lg: clamp(32px, 4vw, 64px);
   --nx-fluid-space-xl: clamp(48px, 6vw, 96px);

   /* ═══════════════════════════════════════
     BRAND OVERRIDE ZONE
     (override these for your brand)
  ═══════════════════════════════════════ */
   --nx-brand-primary: var(--nx-color-accent);
   --nx-brand-secondary: var(--nx-color-accent-2);
   --nx-brand-font: var(--nx-font-display);

   /* ═══════════════════════════════════════
     PRINT TOKENS
  ═══════════════════════════════════════ */
   --nx-print-bg: #ffffff;
   --nx-print-text: #111111;
   --nx-print-border: #cccccc;
   --nx-print-accent: #007a8c;

}
/**
 * NOXEN CSS FRAMEWORK v2.1.2
 * Layer 2 — Theme Engine
 * 6 built-in themes. Switch with: data-nx-theme="NAME"
 * or JS: Noxen.theme('NAME')
 * Create custom themes: Noxen.createTheme('name', tokens)
 */

/* ═══════════════════════════════════════
   THEME: void (default — dark + cyan)
   Applied by default via :root tokens
═══════════════════════════════════════ */
[data-nx-theme="void"],
:root:not([data-nx-theme]) {
  /* inherits all defaults from _tokens.css */
  color-scheme: dark;
}

/* ═══════════════════════════════════════
   THEME: neon (deep space + electric blue)
═══════════════════════════════════════ */
[data-nx-theme="neon"] {
  color-scheme: dark;
  --nx-color-bg: #010108;
  --nx-color-surface: #050514;
  --nx-color-surface-2: #0a0a20;
  --nx-color-surface-3: #10102a;
  --nx-color-surface-4: #161638;
  --nx-color-accent: #4d9fff;
  --nx-color-accent-lo: rgba(77, 159, 255, 0.08);
  --nx-color-accent-md: rgba(77, 159, 255, 0.20);
  --nx-color-accent-hi: rgba(77, 159, 255, 0.45);
  --nx-color-accent-2: #00e5ff;
  --nx-color-text: #e8eeff;
  --nx-color-text-2: #7088cc;
  --nx-color-text-3: #303870;
  --nx-color-border: rgba(77, 159, 255, 0.08);
  --nx-color-border-2: rgba(77, 159, 255, 0.18);
  --nx-color-border-3: rgba(77, 159, 255, 0.35);
  --nx-ag-seam-color: #4d9fff;
  --nx-shadow-glow: 0 0 24px rgba(77, 159, 255, 0.3);
}

/* ═══════════════════════════════════════
   THEME: carbon (industrial + red)
═══════════════════════════════════════ */
[data-nx-theme="carbon"] {
  color-scheme: dark;
  --nx-color-bg: #0a0806;
  --nx-color-surface: #110e0a;
  --nx-color-surface-2: #1a1410;
  --nx-color-surface-3: #231c16;
  --nx-color-surface-4: #2c241e;
  --nx-color-accent: #ff4422;
  --nx-color-accent-lo: rgba(255, 68, 34, 0.08);
  --nx-color-accent-md: rgba(255, 68, 34, 0.20);
  --nx-color-accent-hi: rgba(255, 68, 34, 0.45);
  --nx-color-accent-2: #ff8c00;
  --nx-color-text: #f5ede8;
  --nx-color-text-2: #aa8878;
  --nx-color-text-3: #554438;
  --nx-color-text-inv: #0a0806;
  --nx-color-border: rgba(255, 255, 255, 0.05);
  --nx-color-border-2: rgba(255, 68, 34, 0.18);
  --nx-color-border-3: rgba(255, 68, 34, 0.35);
  --nx-ag-seam-color: #ff4422;
  --nx-shadow-glow: 0 0 24px rgba(255, 68, 34, 0.3);
}

/* ═══════════════════════════════════════
   THEME: bio (organic + green)
═══════════════════════════════════════ */
[data-nx-theme="bio"] {
  color-scheme: dark;
  --nx-color-bg: #030a05;
  --nx-color-surface: #071208;
  --nx-color-surface-2: #0d1c0f;
  --nx-color-surface-3: #122516;
  --nx-color-surface-4: #183020;
  --nx-color-accent: #00e87a;
  --nx-color-accent-lo: rgba(0, 232, 122, 0.08);
  --nx-color-accent-md: rgba(0, 232, 122, 0.20);
  --nx-color-accent-hi: rgba(0, 232, 122, 0.45);
  --nx-color-accent-2: #44ff88;
  --nx-color-text: #e8f5ea;
  --nx-color-text-2: #6a9b72;
  --nx-color-text-3: #2a4a30;
  --nx-color-text-inv: #030a05;
  --nx-color-border: rgba(0, 232, 122, 0.06);
  --nx-color-border-2: rgba(0, 232, 122, 0.18);
  --nx-color-border-3: rgba(0, 232, 122, 0.35);
  --nx-ag-seam-color: #00e87a;
  --nx-shadow-glow: 0 0 24px rgba(0, 232, 122, 0.3);
}

/* ═══════════════════════════════════════
   THEME: gold (luxury + amber)
═══════════════════════════════════════ */
[data-nx-theme="gold"] {
  color-scheme: dark;
  --nx-color-bg: #080600;
  --nx-color-surface: #120d00;
  --nx-color-surface-2: #1c1500;
  --nx-color-surface-3: #261c00;
  --nx-color-surface-4: #302300;
  --nx-color-accent: #ffd700;
  --nx-color-accent-lo: rgba(255, 215, 0, 0.08);
  --nx-color-accent-md: rgba(255, 215, 0, 0.20);
  --nx-color-accent-hi: rgba(255, 215, 0, 0.45);
  --nx-color-accent-2: #ffaa00;
  --nx-color-text: #f8f0e0;
  --nx-color-text-2: #aa9060;
  --nx-color-text-3: #554830;
  --nx-color-text-inv: #080600;
  --nx-color-border: rgba(255, 215, 0, 0.06);
  --nx-color-border-2: rgba(255, 215, 0, 0.18);
  --nx-color-border-3: rgba(255, 215, 0, 0.35);
  --nx-ag-seam-color: #ffd700;
  --nx-shadow-glow: 0 0 24px rgba(255, 215, 0, 0.3);
}

/* ═══════════════════════════════════════
   THEME: paper (light + warm — accessible)
═══════════════════════════════════════ */
[data-nx-theme="paper"] {
  color-scheme: light;
  --nx-color-bg: #faf9f7;
  --nx-color-surface: #ffffff;
  --nx-color-surface-2: #f4f2ee;
  --nx-color-surface-3: #eceae4;
  --nx-color-surface-4: #e2ded6;
  --nx-color-overlay: rgba(250, 249, 247, 0.92);
  --nx-color-accent: #d45500;
  --nx-color-accent-lo: rgba(212, 85, 0, 0.06);
  --nx-color-accent-md: rgba(212, 85, 0, 0.14);
  --nx-color-accent-hi: rgba(212, 85, 0, 0.30);
  --nx-color-accent-2: #9b2d00;
  --nx-color-text: #1a1208;
  --nx-color-text-2: #5a4a38;
  --nx-color-text-3: #a09080;
  --nx-color-text-inv: #faf9f7;
  --nx-color-ok: #166534;
  --nx-color-warn: #92400e;
  --nx-color-err: #991b1b;
  --nx-color-info: #4c1d95;
  --nx-color-border: rgba(0, 0, 0, 0.08);
  --nx-color-border-2: rgba(212, 85, 0, 0.20);
  --nx-color-border-3: rgba(212, 85, 0, 0.40);
  --nx-ag-seam-color: #d45500;
  --nx-shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.08);
  --nx-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.10);
  --nx-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --nx-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);
  --nx-shadow-glow: 0 0 20px rgba(212, 85, 0, 0.15);
}

/* ═══════════════════════════════════════
   THEME: aurora (purple + pink)
═══════════════════════════════════════ */
[data-nx-theme="aurora"] {
  color-scheme: dark;
  --nx-color-bg: #060310;
  --nx-color-surface: #0c0620;
  --nx-color-surface-2: #130930;
  --nx-color-surface-3: #1a0c40;
  --nx-color-surface-4: #210f50;
  --nx-color-accent: #cc44ff;
  --nx-color-accent-lo: rgba(204, 68, 255, 0.08);
  --nx-color-accent-md: rgba(204, 68, 255, 0.20);
  --nx-color-accent-hi: rgba(204, 68, 255, 0.45);
  --nx-color-accent-2: #ff44aa;
  --nx-color-text: #f0e8ff;
  --nx-color-text-2: #9966cc;
  --nx-color-text-3: #442266;
  --nx-color-text-inv: #060310;
  --nx-color-border: rgba(204, 68, 255, 0.08);
  --nx-color-border-2: rgba(204, 68, 255, 0.20);
  --nx-color-border-3: rgba(204, 68, 255, 0.40);
  --nx-ag-seam-color: #cc44ff;
  --nx-shadow-glow: 0 0 24px rgba(204, 68, 255, 0.35);
}

/* ═══════════════════════════════════════
   ACCESSIBILITY — High Contrast Mode
═══════════════════════════════════════ */
[data-nx-a11y="high-contrast"] {
  --nx-color-bg: #000000;
  --nx-color-surface: #0a0a0a;
  --nx-color-text: #ffffff;
  --nx-color-text-2: #eeeeee;
  --nx-color-accent: #ffff00;
  --nx-color-border: rgba(255, 255, 255, 0.3);
  --nx-color-border-2: rgba(255, 255, 0, 0.5);
}

/* ═══════════════════════════════════════
   PRINT MODE
═══════════════════════════════════════ */
[data-nx-mode="print"] {
  --nx-color-bg: var(--nx-print-bg);
  --nx-color-surface: #f8f8f8;
  --nx-color-surface-2: #f0f0f0;
  --nx-color-surface-3: #e8e8e8;
  --nx-color-text: var(--nx-print-text);
  --nx-color-text-2: #444444;
  --nx-color-text-3: #888888;
  --nx-color-accent: var(--nx-print-accent);
  --nx-color-border: var(--nx-print-border);
  --nx-shadow-md: none;
  --nx-shadow-lg: none;
  --nx-shadow-glow: none;
}

@media print {
  :root {
    --nx-color-bg: var(--nx-print-bg);
    --nx-color-surface: #f8f8f8;
    --nx-color-surface-2: #f0f0f0;
    --nx-color-surface-3: #e8e8e8;
    --nx-color-text: var(--nx-print-text);
    --nx-color-text-2: #444444;
    --nx-color-text-3: #888888;
    --nx-color-accent: var(--nx-print-accent);
    --nx-color-border: var(--nx-print-border);
    --nx-shadow-md: none;
    --nx-shadow-lg: none;
    --nx-shadow-glow: none;
  }
}

/* ═══════════════════════════════════════
   REDUCED MOTION — system preference
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  :root {
    --nx-duration-fast: 0ms;
    --nx-duration-base: 0ms;
    --nx-duration-slow: 0ms;
    --nx-duration-slower: 0ms;
    --nx-duration-glacial: 0ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/**
 * NOXEN CSS FRAMEWORK v2.1.2
 * Layer 3 — Base Reset + Typography
 */

/* ── Modern CSS Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: var(--nx-leading-normal);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--nx-color-bg);
  color: var(--nx-color-text);
  font-family: var(--nx-font-body);
  font-size: var(--nx-text-base);
  line-height: var(--nx-leading-normal);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Images ── */
img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* ── Typography defaults ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--nx-font-display);
  font-weight: 700;
  line-height: var(--nx-leading-tight);
  letter-spacing: var(--nx-tracking-tight);
  color: var(--nx-color-text);
}

h1 {
  font-size: var(--nx-fluid-3xl);
}

h2 {
  font-size: var(--nx-fluid-2xl);
}

h3 {
  font-size: var(--nx-fluid-xl);
}

h4 {
  font-size: var(--nx-text-xl);
}

h5 {
  font-size: var(--nx-text-lg);
}

h6 {
  font-size: var(--nx-text-md);
}

p {
  line-height: var(--nx-leading-relaxed);
  color: var(--nx-color-text-2);
  margin-bottom: var(--nx-space-4);
}

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

a {
  color: var(--nx-color-accent);
  text-decoration: none;
  transition: opacity var(--nx-duration-fast);
}

a:hover {
  opacity: 0.8;
}

strong,
b {
  font-weight: 700;
  color: var(--nx-color-text);
}

em,
i {
  font-style: italic;
}

code,
kbd,
samp,
pre {
  font-family: var(--nx-font-mono);
  font-size: 0.9em;
}

code {
  background: var(--nx-color-surface-3);
  color: var(--nx-color-accent);
  padding: 2px 6px;
  border-radius: var(--nx-radius-xs);
  font-size: var(--nx-text-sm);
}

pre {
  background: var(--nx-color-surface-2);
  border: 1px solid var(--nx-color-border);
  border-radius: var(--nx-radius-md);
  padding: var(--nx-space-5);
  overflow-x: auto;
  line-height: var(--nx-leading-relaxed);
}

pre code {
  background: none;
  padding: 0;
  color: var(--nx-color-text);
}

hr {
  border: none;
  border-top: 1px solid var(--nx-color-border);
  margin: var(--nx-space-6) 0;
}

/* ── Lists ── */
ul,
ol {
  padding-left: var(--nx-space-5);
  color: var(--nx-color-text-2);
  line-height: var(--nx-leading-relaxed);
}

li {
  margin-bottom: var(--nx-space-1);
}

/* ── Forms global reset ── */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

[disabled] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* ── Focus visible (keyboard navigation) ── */
:focus-visible {
  outline: 2px solid var(--nx-color-accent);
  outline-offset: 2px;
  border-radius: var(--nx-radius-xs);
}

/* ── Selection ── */
::selection {
  background: var(--nx-color-accent-md);
  color: var(--nx-color-accent);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--nx-color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--nx-color-surface-3);
  border-radius: var(--nx-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--nx-color-accent-md);
}

/* ── Skip to main (a11y) ── */
.nx-skip-link {
  position: absolute;
  top: -100%;
  left: var(--nx-space-4);
  background: var(--nx-color-accent);
  color: var(--nx-color-text-inv);
  padding: var(--nx-space-2) var(--nx-space-4);
  border-radius: 0 0 var(--nx-radius-md) var(--nx-radius-md);
  font-family: var(--nx-font-display);
  font-size: var(--nx-text-sm);
  font-weight: 700;
  z-index: var(--nx-z-top);
  transition: top var(--nx-duration-fast);
}

.nx-skip-link:focus {
  top: 0;
}

/* ── Print base ── */
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: white !important;
    color: black !important;
  }

  nav,
  [nx-print-hide],
  [data-nx-print="hide"] {
    display: none !important;
  }

  [nx-print-only],
  [data-nx-print="only"] {
    display: block !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  h1,
  h2,
  h3,
  h4 {
    page-break-after: avoid;
  }

  p,
  blockquote {
    orphans: 3;
    widows: 3;
  }

  [nx-print-break-before] {
    page-break-before: always;
  }

  [nx-print-break-after] {
    page-break-after: always;
  }

  [nx-print-break-avoid] {
    page-break-inside: avoid;
  }
}
/**
 * NOXEN CSS FRAMEWORK v2.1.2
 * Layer 4 — Layout Engine
 * Smart Grid · Fluid Layouts · Section system · Flex utilities
 */

/* ═══════════════════════════════════════
   SECTION  nx="section"
   Full-width page sections with intent-based sizing
═══════════════════════════════════════ */
[nx="section"] {
  width: 100%;
  padding: var(--nx-space-9) var(--nx-fluid-space-xl);
}

[nx="section"][size="hero"] {
  padding: var(--nx-space-10) var(--nx-fluid-space-xl);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

[nx="section"][size="full"] {
  padding: var(--nx-fluid-space-xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

[nx="section"][size="narrow"] {
  padding: var(--nx-space-7) var(--nx-fluid-space-xl);
  max-width: 760px;
  margin: 0 auto;
}

[nx="section"][size="wide"] {
  padding: var(--nx-space-8) var(--nx-fluid-space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

[nx="section"][size="sm"] {
  padding: var(--nx-space-7) var(--nx-fluid-space-xl);
}

[nx="section"][size="lg"] {
  padding: var(--nx-space-9) var(--nx-fluid-space-xl);
}

/* ═══════════════════════════════════════
   CONTAINER
═══════════════════════════════════════ */
[nx="container"] {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--nx-fluid-space-md);
}

[nx="container"][size="sm"] {
  max-width: 640px;
}

[nx="container"][size="md"] {
  max-width: 768px;
}

[nx="container"][size="lg"] {
  max-width: 1024px;
}

[nx="container"][size="xl"] {
  max-width: 1280px;
}

[nx="container"][size="full"] {
  max-width: 100%;
}

/* ═══════════════════════════════════════
   SMART GRID  nx="grid"
   Intent-based CSS Grid system
═══════════════════════════════════════ */
[nx="grid"] {
  display: grid;
  gap: var(--nx-fluid-space-md);
}

/* Column count shortcuts */
[nx="grid"][cols="1"] {
  grid-template-columns: 1fr;
}

[nx="grid"][cols="2"] {
  grid-template-columns: repeat(2, 1fr);
}

[nx="grid"][cols="3"] {
  grid-template-columns: repeat(3, 1fr);
}

[nx="grid"][cols="4"] {
  grid-template-columns: repeat(4, 1fr);
}

[nx="grid"][cols="5"] {
  grid-template-columns: repeat(5, 1fr);
}

[nx="grid"][cols="6"] {
  grid-template-columns: repeat(6, 1fr);
}

/* Auto-responsive — fills columns automatically */
[nx="grid"][cols="auto"],
[nx="grid"][cols="auto-sm"] {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

[nx="grid"][cols="auto-md"] {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

[nx="grid"][cols="auto-lg"] {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
}

[nx="grid"][cols="auto-xl"] {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
}

/* Intent-based layouts */
[nx="grid"][layout="sidebar-main"] {
  grid-template-columns: 280px 1fr;
}

[nx="grid"][layout="main-sidebar"] {
  grid-template-columns: 1fr 280px;
}

[nx="grid"][layout="holy-grail"] {
  grid-template-columns: 220px 1fr 220px;
  grid-template-rows: auto 1fr auto;
}

[nx="grid"][layout="dashboard"] {
  grid-template-columns: 240px 1fr;
  grid-template-rows: 60px 1fr auto;
}

[nx="grid"][layout="mosaic"] {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}

[nx="grid"][layout="magazine"] {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
}

[nx="grid"][layout="masonry"] {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 8px;
  /* JS fills in row spans */
  align-items: start;
}

/* Gap variants */
[nx="grid"][gap="none"] {
  gap: 0;
}

[nx="grid"][gap="xs"] {
  gap: var(--nx-space-2);
}

[nx="grid"][gap="sm"] {
  gap: var(--nx-space-3);
}

[nx="grid"][gap="md"] {
  gap: var(--nx-space-5);
}

[nx="grid"][gap="lg"] {
  gap: var(--nx-space-7);
}

[nx="grid"][gap="xl"] {
  gap: var(--nx-space-9);
}

/* Alignment */
[nx="grid"][align="start"] {
  align-items: start;
}

[nx="grid"][align="center"] {
  align-items: center;
}

[nx="grid"][align="end"] {
  align-items: end;
}

[nx="grid"][align="stretch"] {
  align-items: stretch;
}

[nx="grid"][justify="start"] {
  justify-items: start;
}

[nx="grid"][justify="center"] {
  justify-items: center;
}

[nx="grid"][justify="end"] {
  justify-items: end;
}

/* Subgrid support */
[nx="grid"][subgrid] {
  display: subgrid;
  grid-column: 1 / -1;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {

  [nx="grid"][cols="4"],
  [nx="grid"][cols="5"],
  [nx="grid"][cols="6"] {
    grid-template-columns: repeat(3, 1fr);
  }

  [nx="grid"][layout="holy-grail"] {
    grid-template-columns: 1fr;
  }

  [nx="grid"][layout="dashboard"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  [nx="grid"][cols="3"],
  [nx="grid"][cols="4"],
  [nx="grid"][cols="5"],
  [nx="grid"][cols="6"] {
    grid-template-columns: repeat(2, 1fr);
  }

  [nx="grid"][layout="sidebar-main"],
  [nx="grid"][layout="main-sidebar"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  [nx="grid"][cols="2"],
  [nx="grid"][cols="3"],
  [nx="grid"][cols="4"],
  [nx="grid"][cols="5"],
  [nx="grid"][cols="6"] {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   GRID ITEM SPANS
═══════════════════════════════════════ */
[span="2"] {
  grid-column: span 2;
}

[span="3"] {
  grid-column: span 3;
}

[span="4"] {
  grid-column: span 4;
}

[span="full"] {
  grid-column: 1 / -1;
}

[row-span="2"] {
  grid-row: span 2;
}

[row-span="3"] {
  grid-row: span 3;
}

/* ═══════════════════════════════════════
   FLEX ROW/WRAP
═══════════════════════════════════════ */
[nx="row"] {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--nx-space-4);
  align-items: center;
}

[nx="row"][gap="none"] {
  gap: 0;
}

[nx="row"][gap="xs"] {
  gap: var(--nx-space-2);
}

[nx="row"][gap="sm"] {
  gap: var(--nx-space-3);
}

[nx="row"][gap="md"] {
  gap: var(--nx-space-5);
}

[nx="row"][gap="lg"] {
  gap: var(--nx-space-7);
}

[nx="row"][nowrap] {
  flex-wrap: nowrap;
}

[nx="row"][justify="between"] {
  justify-content: space-between;
}

[nx="row"][justify="center"] {
  justify-content: center;
}

[nx="row"][justify="end"] {
  justify-content: flex-end;
}

[nx="row"][justify="around"] {
  justify-content: space-around;
}

[nx="row"][align="start"] {
  align-items: flex-start;
}

[nx="row"][align="end"] {
  align-items: flex-end;
}

[nx="row"][align="stretch"] {
  align-items: stretch;
}

/* ═══════════════════════════════════════
   STACK (vertical flex column)
═══════════════════════════════════════ */
[nx="stack"] {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-4);
}

[nx="stack"][gap="none"] {
  gap: 0;
}

[nx="stack"][gap="xs"] {
  gap: var(--nx-space-2);
}

[nx="stack"][gap="sm"] {
  gap: var(--nx-space-3);
}

[nx="stack"][gap="md"] {
  gap: var(--nx-space-5);
}

[nx="stack"][gap="lg"] {
  gap: var(--nx-space-7);
}

[nx="stack"][align="center"] {
  align-items: center;
}

[nx="stack"][align="end"] {
  align-items: flex-end;
}

[nx="stack"][align="start"] {
  align-items: flex-start;
}

[nx="stack"][align="stretch"] {
  align-items: stretch;
}

/* ═══════════════════════════════════════
   CENTER — perfect centering utility
═══════════════════════════════════════ */
[nx="center"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════
   DIVIDER  nx="divider"
═══════════════════════════════════════ */
[nx="divider"] {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nx-color-border) 20%, var(--nx-color-border) 80%, transparent);
  margin: var(--nx-space-5) 0;
  border: none;
}

[nx="divider"][variant="accent"] {
  background: linear-gradient(90deg, transparent, var(--nx-color-accent-md) 20%, var(--nx-color-accent) 50%, var(--nx-color-accent-md) 80%, transparent);
  box-shadow: var(--nx-ag-seam-glow);
}

[nx="divider"][vertical] {
  height: auto;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--nx-color-border) 20%, var(--nx-color-border) 80%, transparent);
  margin: 0 var(--nx-space-5);
  align-self: stretch;
}

/* ═══════════════════════════════════════
   SPACER
═══════════════════════════════════════ */
[nx="spacer"] {
  flex: 1 1 auto;
}
/**
 * NOXEN CSS FRAMEWORK v2.1.2
 * Layer 3 — Component System (25+ components)
 * All driven by nx="" attribute + modifiers.
 * Zero class names needed.
 */

/* ═══════════════════════════════════════
   CARD  nx="card"
═══════════════════════════════════════ */
[nx="card"] {
  background: var(--nx-color-surface);
  border: 1px solid var(--nx-color-border);
  border-radius: var(--nx-radius-lg);
  padding: var(--nx-space-6);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--nx-duration-base) var(--nx-ease-spring),
    border-color var(--nx-duration-base),
    box-shadow var(--nx-duration-base);
}

[nx="card"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--nx-color-accent-lo), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--nx-duration-base);
}

[nx="card"]:hover {
  transform: translateY(-4px);
  border-color: var(--nx-color-border-2);
  box-shadow: var(--nx-shadow-lg), var(--nx-shadow-glow);
}

[nx="card"]:hover::before {
  opacity: 1;
}

[nx="card"][no-hover]:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--nx-color-border);
}

[nx="card"][variant="ghost"] {
  background: transparent;
}

[nx="card"][variant="solid"] {
  background: var(--nx-color-surface-2);
  border-color: transparent;
}

[nx="card"][variant="raised"] {
  background: var(--nx-color-surface);
  box-shadow: var(--nx-shadow-md);
}

[nx="card"][variant="accent"] {
  background: var(--nx-color-accent-lo);
  border-color: var(--nx-color-border-2);
}

[nx="card"][variant="outline"] {
  background: transparent;
  border-color: var(--nx-color-border-2);
}

[nx="card"][variant="glass"] {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.08);
}

[nx="card"][size="sm"] {
  padding: var(--nx-space-4);
  border-radius: var(--nx-radius-md);
}

[nx="card"][size="lg"] {
  padding: var(--nx-space-8);
  border-radius: var(--nx-radius-xl);
}

[nx="card"][size="xl"] {
  padding: var(--nx-space-9);
  border-radius: var(--nx-radius-2xl);
}

/* ═══════════════════════════════════════
   BUTTON  nx="btn"
═══════════════════════════════════════ */
[nx="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--nx-space-2);
  padding: 10px var(--nx-space-6);
  border-radius: var(--nx-radius-full);
  border: none;
  font-family: var(--nx-font-display);
  font-size: var(--nx-text-sm);
  font-weight: 600;
  letter-spacing: var(--nx-tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--nx-color-accent);
  color: var(--nx-color-text-inv);
  transition: transform var(--nx-duration-fast) var(--nx-ease-spring), box-shadow var(--nx-duration-base);
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

[nx="btn"]::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 50%;
  height: 180%;
  background: rgba(255, 255, 255, 0.22);
  transform: skewX(-18deg) translateX(-100%);
  transition: transform var(--nx-duration-slow) var(--nx-ease-default);
}

[nx="btn"]:hover {
  transform: scale(1.04);
  box-shadow: var(--nx-shadow-glow);
}

[nx="btn"]:hover::after {
  transform: skewX(-18deg) translateX(500%);
}

[nx="btn"]:active {
  transform: scale(0.97);
}

[nx="btn"][variant="outline"] {
  background: transparent;
  color: var(--nx-color-accent);
  border: 1.5px solid var(--nx-color-accent);
}

[nx="btn"][variant="outline"]:hover {
  background: var(--nx-color-accent-lo);
}

[nx="btn"][variant="ghost"] {
  background: var(--nx-color-surface-2);
  color: var(--nx-color-text-2);
  border: 1px solid var(--nx-color-border);
}

[nx="btn"][variant="ghost"]:hover {
  color: var(--nx-color-text);
  border-color: var(--nx-color-border-2);
  background: var(--nx-color-surface-3);
}

[nx="btn"][variant="solid"] {
  background: var(--nx-color-surface-3);
  color: var(--nx-color-text);
}

[nx="btn"][variant="danger"] {
  background: var(--nx-color-err);
  color: #fff;
}

[nx="btn"][variant="danger"]:hover {
  box-shadow: 0 0 20px var(--nx-color-err-md);
}

[nx="btn"][size="xs"] {
  padding: 5px var(--nx-space-3);
  font-size: var(--nx-text-xs);
}

[nx="btn"][size="sm"] {
  padding: 7px var(--nx-space-4);
  font-size: var(--nx-text-xs);
}

[nx="btn"][size="lg"] {
  padding: 14px var(--nx-space-7);
  font-size: var(--nx-text-md);
}

[nx="btn"][size="xl"] {
  padding: 18px var(--nx-space-8);
  font-size: var(--nx-text-lg);
}

[nx="btn"][full] {
  width: 100%;
}

[nx="btn"][loading] {
  pointer-events: none;
  opacity: 0.7;
}

[nx="btn"][loading]::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: nx-spin 0.6s linear infinite;
  margin-right: var(--nx-space-2);
}

/* ═══════════════════════════════════════
   BADGE  nx="badge"
═══════════════════════════════════════ */
[nx="badge"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px var(--nx-space-3);
  border-radius: var(--nx-radius-full);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-text-xs);
  font-weight: 500;
  letter-spacing: 0.4px;
  background: var(--nx-color-accent-lo);
  color: var(--nx-color-accent);
  border: 1px solid var(--nx-color-border-2);
  white-space: nowrap;
}

[nx="badge"][tone="ok"] {
  color: var(--nx-color-ok);
  background: var(--nx-color-ok-lo);
  border-color: rgba(0, 255, 136, 0.25);
}

[nx="badge"][tone="warn"] {
  color: var(--nx-color-warn);
  background: var(--nx-color-warn-lo);
  border-color: rgba(255, 204, 0, 0.25);
}

[nx="badge"][tone="err"] {
  color: var(--nx-color-err);
  background: var(--nx-color-err-lo);
  border-color: rgba(255, 60, 60, 0.25);
}

[nx="badge"][tone="info"] {
  color: var(--nx-color-info);
  background: var(--nx-color-info-lo);
  border-color: rgba(191, 95, 255, 0.25);
}

[nx="badge"][size="sm"] {
  padding: 2px var(--nx-space-2);
  font-size: 10px;
}

[nx="badge"][size="lg"] {
  padding: 5px var(--nx-space-4);
  font-size: var(--nx-text-sm);
}

/* ═══════════════════════════════════════
   INPUT / TEXTAREA / SELECT  nx="input"
═══════════════════════════════════════ */
[nx="input"],
[nx="textarea"],
[nx="select"] {
  width: 100%;
  padding: 10px var(--nx-space-4);
  background: var(--nx-color-surface-2);
  border: 1.5px solid var(--nx-color-border);
  border-radius: var(--nx-radius-md);
  color: var(--nx-color-text);
  font-family: var(--nx-font-body);
  font-size: var(--nx-text-base);
  line-height: var(--nx-leading-normal);
  outline: none;
  transition: border-color var(--nx-duration-fast), box-shadow var(--nx-duration-fast);
  -webkit-appearance: none;
  appearance: none;
}

[nx="input"]:focus,
[nx="textarea"]:focus,
[nx="select"]:focus {
  border-color: var(--nx-color-accent);
  box-shadow: 0 0 0 3px var(--nx-color-accent-lo);
}

[nx="input"]::placeholder,
[nx="textarea"]::placeholder {
  color: var(--nx-color-text-3);
}

[nx="textarea"] {
  resize: vertical;
  min-height: 100px;
}

[nx="select"] {
  cursor: pointer;
}

[nx="input"][variant="filled"],
[nx="textarea"][variant="filled"] {
  background: var(--nx-color-surface-3);
  border-color: transparent;
}

[nx="input"][variant="underline"] {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--nx-color-border);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

[nx="input"][size="sm"] {
  padding: 7px var(--nx-space-3);
  font-size: var(--nx-text-sm);
}

[nx="input"][size="lg"] {
  padding: 14px var(--nx-space-5);
  font-size: var(--nx-text-md);
}

[nx="input"][tone="err"] {
  border-color: var(--nx-color-err);
}

[nx="input"][tone="ok"] {
  border-color: var(--nx-color-ok);
}

/* ═══════════════════════════════════════
   ALERT  nx="alert"
═══════════════════════════════════════ */
[nx="alert"] {
  display: flex;
  gap: var(--nx-space-3);
  align-items: flex-start;
  padding: var(--nx-space-4) var(--nx-space-5);
  border-radius: var(--nx-radius-md);
  border-left: 3px solid var(--nx-color-accent);
  background: var(--nx-color-accent-lo);
  color: var(--nx-color-text-2);
  font-size: var(--nx-text-base);
  line-height: var(--nx-leading-normal);
}

[nx="alert"][tone="ok"] {
  border-color: var(--nx-color-ok);
  background: var(--nx-color-ok-lo);
}

[nx="alert"][tone="warn"] {
  border-color: var(--nx-color-warn);
  background: var(--nx-color-warn-lo);
}

[nx="alert"][tone="err"] {
  border-color: var(--nx-color-err);
  background: var(--nx-color-err-lo);
}

[nx="alert"][tone="info"] {
  border-color: var(--nx-color-info);
  background: var(--nx-color-info-lo);
}

[nx="alert"][dismissible] {
  padding-right: var(--nx-space-8);
  position: relative;
}

/* ═══════════════════════════════════════
   AVATAR  nx="avatar"
═══════════════════════════════════════ */
[nx="avatar"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--nx-radius-full);
  background: var(--nx-color-surface-3);
  border: 2px solid var(--nx-color-border-2);
  font-family: var(--nx-font-display);
  font-size: var(--nx-text-sm);
  font-weight: 700;
  color: var(--nx-color-accent);
  overflow: hidden;
  flex-shrink: 0;
}

[nx="avatar"][size="xs"] {
  width: 24px;
  height: 24px;
  font-size: var(--nx-text-xs);
}

[nx="avatar"][size="sm"] {
  width: 32px;
  height: 32px;
  font-size: var(--nx-text-xs);
}

[nx="avatar"][size="lg"] {
  width: 56px;
  height: 56px;
  font-size: var(--nx-text-md);
}

[nx="avatar"][size="xl"] {
  width: 72px;
  height: 72px;
  font-size: var(--nx-text-lg);
}

[nx="avatar"][size="2xl"] {
  width: 96px;
  height: 96px;
  font-size: var(--nx-text-2xl);
}

[nx="avatar"][variant="square"] {
  border-radius: var(--nx-radius-md);
}

/* Avatar group */
[nx="avatar-group"] {
  display: flex;
}

[nx="avatar-group"] [nx="avatar"] {
  margin-left: -10px;
  border: 2px solid var(--nx-color-bg);
}

[nx="avatar-group"] [nx="avatar"]:first-child {
  margin-left: 0;
}

/* ═══════════════════════════════════════
   PROGRESS  nx="progress"
═══════════════════════════════════════ */
[nx="progress"] {
  height: 4px;
  background: var(--nx-color-surface-3);
  border-radius: var(--nx-radius-full);
  overflow: hidden;
  position: relative;
}

[nx="progress"][size="xs"] {
  height: 2px;
}

[nx="progress"][size="sm"] {
  height: 3px;
}

[nx="progress"][size="lg"] {
  height: 8px;
}

[nx="progress"][size="xl"] {
  height: 12px;
}

[nx="progress"]::after {
  content: '';
  display: block;
  height: 100%;
  width: calc(var(--nx-progress, 0) * 1%);
  border-radius: var(--nx-radius-full);
  background: linear-gradient(90deg, var(--nx-color-accent), var(--nx-color-accent-2));
  box-shadow: 0 0 8px var(--nx-color-accent-md);
  transition: width var(--nx-duration-slower) var(--nx-ease-default);
}

[nx="progress"][tone="ok"]::after {
  background: var(--nx-color-ok);
  box-shadow: none;
}

[nx="progress"][tone="warn"]::after {
  background: var(--nx-color-warn);
  box-shadow: none;
}

[nx="progress"][tone="err"]::after {
  background: var(--nx-color-err);
  box-shadow: none;
}

[nx="progress"][indeterminate]::after {
  width: 40%;
  animation: nx-progress-slide 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   CHIP  nx="chip"
═══════════════════════════════════════ */
[nx="chip"] {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: 4px var(--nx-space-3);
  border-radius: var(--nx-radius-full);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-text-xs);
  background: var(--nx-color-surface-2);
  color: var(--nx-color-text-2);
  border: 1px solid var(--nx-color-border);
  cursor: pointer;
  transition: background var(--nx-duration-fast), color var(--nx-duration-fast), border-color var(--nx-duration-fast);
  -webkit-user-select: none;
  user-select: none;
}

[nx="chip"]:hover,
[nx="chip"][active],
[nx="chip"].active {
  background: var(--nx-color-accent-lo);
  color: var(--nx-color-accent);
  border-color: var(--nx-color-border-2);
}

[nx="chip"][tone="ok"] {
  color: var(--nx-color-ok);
  background: var(--nx-color-ok-lo);
  border-color: rgba(0, 255, 136, 0.20);
}

[nx="chip"][tone="warn"] {
  color: var(--nx-color-warn);
  background: var(--nx-color-warn-lo);
  border-color: rgba(255, 204, 0, 0.20);
}

[nx="chip"][tone="err"] {
  color: var(--nx-color-err);
  background: var(--nx-color-err-lo);
  border-color: rgba(255, 60, 60, 0.20);
}

/* ═══════════════════════════════════════
   TOOLTIP  nx="tooltip"
═══════════════════════════════════════ */
[nx="tooltip"] {
  position: relative;
  display: inline-flex;
}

[nx="tooltip"][tip]::after {
  content: attr(tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--nx-color-surface-4);
  color: var(--nx-color-text);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-text-xs);
  padding: 4px 10px;
  border-radius: var(--nx-radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--nx-duration-fast), transform var(--nx-duration-fast);
  border: 1px solid var(--nx-color-border);
  z-index: var(--nx-z-dropdown);
  max-width: 240px;
  white-space: normal;
  text-align: center;
}

[nx="tooltip"][tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[nx="tooltip"][tip-pos="bottom"]::after {
  bottom: auto;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-6px);
}

[nx="tooltip"][tip-pos="left"]::after {
  left: auto;
  right: calc(100% + 8px);
  bottom: 50%;
  transform: translateY(50%) translateX(-6px);
}

[nx="tooltip"][tip-pos="right"]::after {
  left: calc(100% + 8px);
  bottom: 50%;
  transform: translateY(50%) translateX(6px);
}

/* ═══════════════════════════════════════
   TOGGLE  nx="toggle"
═══════════════════════════════════════ */
[nx="toggle"] {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: var(--nx-color-surface-3);
  border-radius: var(--nx-radius-full);
  border: 1px solid var(--nx-color-border);
  cursor: pointer;
  transition: background var(--nx-duration-fast), border-color var(--nx-duration-fast);
  flex-shrink: 0;
}

[nx="toggle"]::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--nx-color-text-3);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: left var(--nx-duration-fast) var(--nx-ease-spring), background var(--nx-duration-fast);
}

[nx="toggle"][on],
[nx="toggle"].on {
  background: var(--nx-color-accent);
  border-color: var(--nx-color-accent);
}

[nx="toggle"][on]::after,
[nx="toggle"].on::after {
  left: 21px;
  background: var(--nx-color-text-inv);
}

[nx="toggle"][size="sm"] {
  width: 34px;
  height: 18px;
}

[nx="toggle"][size="sm"]::after {
  width: 12px;
  height: 12px;
  top: 2px;
  left: 2px;
}

[nx="toggle"][size="sm"][on]::after,
[nx="toggle"][size="sm"].on::after {
  left: 16px;
}

[nx="toggle"][size="lg"] {
  width: 56px;
  height: 30px;
}

[nx="toggle"][size="lg"]::after {
  width: 22px;
  height: 22px;
  top: 3px;
  left: 3px;
}

[nx="toggle"][size="lg"][on]::after,
[nx="toggle"][size="lg"].on::after {
  left: 27px;
}

/* ═══════════════════════════════════════
   LABEL  nx="label"
═══════════════════════════════════════ */
[nx="label"] {
  display: inline-block;
  font-family: var(--nx-font-mono);
  font-size: var(--nx-text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--nx-tracking-wider);
  color: var(--nx-color-accent);
}

[nx="label"][muted] {
  color: var(--nx-color-text-3);
}

[nx="label"][size="lg"] {
  font-size: var(--nx-text-sm);
}

/* ═══════════════════════════════════════
   SKELETON  nx="skeleton"
═══════════════════════════════════════ */
[nx="skeleton"] {
  background: linear-gradient(90deg,
      var(--nx-color-surface-2) 25%,
      var(--nx-color-surface-3) 50%,
      var(--nx-color-surface-2) 75%);
  background-size: 200% 100%;
  border-radius: var(--nx-radius-sm);
  animation: nx-shimmer 1.5s infinite;
}

@keyframes nx-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ═══════════════════════════════════════
   MODAL  nx="modal"
═══════════════════════════════════════ */
[nx="modal-backdrop"] {
  position: fixed;
  inset: 0;
  background: var(--nx-color-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--nx-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nx-space-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--nx-duration-base);
}

[nx="modal-backdrop"][open] {
  opacity: 1;
  pointer-events: all;
}

[nx="modal"] {
  background: var(--nx-color-surface);
  border: 1px solid var(--nx-color-border-2);
  border-radius: var(--nx-radius-xl);
  padding: var(--nx-space-7);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--nx-shadow-xl);
  transform: scale(0.95) translateY(16px);
  transition: transform var(--nx-duration-base) var(--nx-ease-spring);
}

[nx="modal-backdrop"][open] [nx="modal"] {
  transform: scale(1) translateY(0);
}

/* ═══════════════════════════════════════
   TOAST  nx="toast"
═══════════════════════════════════════ */
[nx="toast-stack"] {
  position: fixed;
  bottom: var(--nx-space-5);
  right: var(--nx-space-5);
  z-index: var(--nx-z-toast);
  display: flex;
  flex-direction: column-reverse;
  /* newest at bottom */
  gap: var(--nx-space-2);
  max-width: 380px;
  width: 100%;
  pointer-events: none;
}

[nx="toast"] {
  background: var(--nx-color-surface-2);
  border: 1px solid var(--nx-color-border-2);
  border-radius: var(--nx-radius-lg);
  padding: var(--nx-space-4) var(--nx-space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--nx-space-3);
  box-shadow: var(--nx-shadow-lg);
  animation: nx-toast-in var(--nx-duration-base) var(--nx-ease-spring) both;
  pointer-events: auto;
}

@keyframes nx-toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

[nx="toast"][tone="ok"] {
  border-left: 3px solid var(--nx-color-ok);
}

[nx="toast"][tone="warn"] {
  border-left: 3px solid var(--nx-color-warn);
}

[nx="toast"][tone="err"] {
  border-left: 3px solid var(--nx-color-err);
}

[nx="toast"][tone="info"] {
  border-left: 3px solid var(--nx-color-info);
}

/* ═══════════════════════════════════════
   NAVBAR  nx="navbar"
═══════════════════════════════════════ */
[nx="navbar"] {
  display: flex;
  align-items: center;
  gap: var(--nx-space-4);
  height: 60px;
  padding: 0 var(--nx-space-6);
  background: var(--nx-color-surface);
  border-bottom: 1px solid var(--nx-color-border);
}

[nx="navbar"][sticky] {
  position: sticky;
  top: 0;
  z-index: var(--nx-z-sticky);
}

[nx="navbar"][fixed] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--nx-z-sticky);
}

[nx="navbar"][glass] {
  background: rgba(8, 8, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[nx="navbar"][variant="transparent"] {
  background: transparent;
  border-color: transparent;
}

/* ═══════════════════════════════════════
   TABLE  nx="table"
═══════════════════════════════════════ */
[nx="table"] {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--nx-text-sm);
}

[nx="table"] th {
  background: var(--nx-color-surface-2);
  color: var(--nx-color-text-2);
  font-family: var(--nx-font-mono);
  font-weight: 500;
  font-size: var(--nx-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--nx-tracking-wide);
  padding: var(--nx-space-3) var(--nx-space-4);
  text-align: left;
  border-bottom: 1px solid var(--nx-color-border);
}

[nx="table"] td {
  padding: var(--nx-space-3) var(--nx-space-4);
  border-bottom: 1px solid var(--nx-color-border);
  color: var(--nx-color-text-2);
}

[nx="table"][striped] tbody tr:nth-child(odd) td {
  background: var(--nx-color-surface-2);
}

[nx="table"][hover] tbody tr:hover td {
  background: var(--nx-color-accent-lo);
}

/* ═══════════════════════════════════════
   TABS  nx="tabs"
═══════════════════════════════════════ */
[nx="tabs"] {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--nx-color-border);
}

[nx="tab"] {
  padding: var(--nx-space-3) var(--nx-space-5);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-text-sm);
  color: var(--nx-color-text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--nx-duration-fast), border-color var(--nx-duration-fast);
  -webkit-user-select: none;
  user-select: none;
}

[nx="tab"]:hover {
  color: var(--nx-color-text-2);
}

[nx="tab"][active],
[nx="tab"].active {
  color: var(--nx-color-accent);
  border-bottom-color: var(--nx-color-accent);
}

/* ═══════════════════════════════════════
   ACCORDION  nx="accordion"
═══════════════════════════════════════ */
[nx="accordion"] {
  border: 1px solid var(--nx-color-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
}

[nx="accordion-item"] {
  border-bottom: 1px solid var(--nx-color-border);
}

[nx="accordion-item"]:last-child {
  border-bottom: none;
}

[nx="accordion-trigger"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--nx-space-4) var(--nx-space-5);
  background: none;
  border: none;
  color: var(--nx-color-text);
  font-family: var(--nx-font-body);
  font-size: var(--nx-text-base);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background var(--nx-duration-fast);
}

[nx="accordion-trigger"]:hover {
  background: var(--nx-color-surface-2);
}

[nx="accordion-trigger"]::after {
  content: '+';
  font-size: var(--nx-text-lg);
  color: var(--nx-color-accent);
  transition: transform var(--nx-duration-base) var(--nx-ease-spring);
  flex-shrink: 0;
}

[nx="accordion-trigger"][open]::after,
[nx="accordion-trigger"].open::after {
  transform: rotate(45deg);
}

[nx="accordion-content"] {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--nx-duration-slow) var(--nx-ease-default);
  padding: 0 var(--nx-space-5);
}

[nx="accordion-content"][open],
[nx="accordion-content"].open {
  max-height: 600px;
  padding-bottom: var(--nx-space-4);
}

/* ═══════════════════════════════════════
   DROPDOWN  nx="dropdown"
═══════════════════════════════════════ */
[nx="dropdown"] {
  position: relative;
  display: inline-block;
}

[nx="dropdown-menu"] {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--nx-color-surface-2);
  border: 1px solid var(--nx-color-border-2);
  border-radius: var(--nx-radius-lg);
  padding: var(--nx-space-2);
  box-shadow: var(--nx-shadow-lg);
  z-index: var(--nx-z-dropdown);
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  pointer-events: none;
  transition: opacity var(--nx-duration-fast) var(--nx-ease-default), transform var(--nx-duration-fast) var(--nx-ease-spring);
}

[nx="dropdown-menu"][open],
[nx="dropdown-menu"].open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

[nx="dropdown-item"] {
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: var(--nx-space-2) var(--nx-space-3);
  border-radius: var(--nx-radius-sm);
  font-size: var(--nx-text-base);
  color: var(--nx-color-text-2);
  cursor: pointer;
  transition: background var(--nx-duration-fast), color var(--nx-duration-fast);
  -webkit-user-select: none;
  user-select: none;
}

[nx="dropdown-item"]:hover {
  background: var(--nx-color-accent-lo);
  color: var(--nx-color-accent);
}

/* ═══════════════════════════════════════
   CARD HEADER / FOOTER helpers
═══════════════════════════════════════ */
[nx="card-header"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-3);
  margin-bottom: var(--nx-space-5);
  padding-bottom: var(--nx-space-4);
  border-bottom: 1px solid var(--nx-color-border);
}

[nx="card-footer"] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--nx-space-3);
  margin-top: var(--nx-space-5);
  padding-top: var(--nx-space-4);
  border-top: 1px solid var(--nx-color-border);
}

/* ═══════════════════════════════════════
   STAT  nx="stat"
═══════════════════════════════════════ */
[nx="stat"] {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-2);
}

[nx="stat-label"] {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--nx-tracking-wider);
  color: var(--nx-color-text-3);
}

[nx="stat-value"] {
  font-family: var(--nx-font-display);
  font-size: var(--nx-text-4xl);
  font-weight: 800;
  color: var(--nx-color-text);
  line-height: 1;
  letter-spacing: var(--nx-tracking-tight);
}

[nx="stat-desc"] {
  font-size: var(--nx-text-sm);
  color: var(--nx-color-text-2);
}

/* ═══════════════════════════════════════
   SIDEBAR  nx="sidebar"
═══════════════════════════════════════ */
[nx="sidebar"] {
  --nx-sidebar-width: 260px;
  --nx-sidebar-mini-width: 64px;
  width: var(--nx-sidebar-width);
  min-height: 100vh;
  background: var(--nx-color-surface);
  border-right: 1px solid var(--nx-color-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width var(--nx-duration-slow) var(--nx-ease-spring),
    transform var(--nx-duration-slow) var(--nx-ease-spring);
  overflow: hidden;
  position: relative;
  z-index: var(--nx-z-raised);
}

[nx="sidebar"][variant="glass"] {
  background: rgba(8, 8, 15, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

[nx="sidebar"][variant="dark"] {
  background: var(--nx-color-bg);
  border-right-color: var(--nx-color-border);
}

[nx="sidebar"][variant="accent"] {
  background: var(--nx-color-accent);
}

[nx="sidebar"][variant="accent"] [nx="sidebar-link"] {
  color: rgba(0, 0, 0, 0.7);
}

[nx="sidebar"][variant="accent"] [nx="sidebar-link"]:hover,
[nx="sidebar"][variant="accent"] [nx="sidebar-link"][active] {
  color: #000;
  background: rgba(0, 0, 0, 0.12);
}

[nx="sidebar"][collapsed] {
  width: var(--nx-sidebar-mini-width);
}

[nx="sidebar"][collapsed] [nx="sidebar-label"],
[nx="sidebar"][collapsed] [nx="sidebar-group-label"],
[nx="sidebar"][collapsed] [nx="sidebar-link-text"],
[nx="sidebar"][collapsed] [nx="sidebar-badge"],
[nx="sidebar"][collapsed] [nx="sidebar-section-title"],
[nx="sidebar"][collapsed] .sb-chevron {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

[nx="sidebar"][collapsed] [nx="sidebar-link"] {
  justify-content: center;
  padding: 10px;
}

[nx="sidebar"][collapsed] [nx="sidebar-header"] {
  justify-content: center;
  padding: var(--nx-space-4) var(--nx-space-3);
}

[nx="sidebar"][collapsed] [nx="sidebar-logo-text"] {
  display: none;
}

[nx="sidebar"][collapsed] [nx="sidebar-link"] {
  position: relative;
}

[nx="sidebar"][collapsed] [nx="sidebar-link"]:hover::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--nx-color-surface-3);
  color: var(--nx-color-text);
  border: 1px solid var(--nx-color-border-2);
  border-radius: var(--nx-radius-md);
  padding: 5px 10px;
  font-size: 12px;
  white-space: nowrap;
  font-family: var(--nx-font-body);
  box-shadow: var(--nx-shadow-lg);
  z-index: 999;
  pointer-events: none;
}

[nx="sidebar-header"] {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  padding: var(--nx-space-5) var(--nx-space-5);
  border-bottom: 1px solid var(--nx-color-border);
  flex-shrink: 0;
  min-height: 64px;
}

[nx="sidebar-logo"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--nx-radius-md);
  background: var(--nx-color-accent);
  color: #000;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  font-family: var(--nx-font-display);
}

[nx="sidebar-logo-text"] {
  font-family: var(--nx-font-display);
  font-size: var(--nx-text-md);
  font-weight: 700;
  color: var(--nx-color-text);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--nx-duration-base), width var(--nx-duration-slow);
}

[nx="sidebar-body"] {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--nx-space-3) var(--nx-space-3);
  scrollbar-width: thin;
  scrollbar-color: var(--nx-color-surface-3) transparent;
}

[nx="sidebar-body"]::-webkit-scrollbar {
  width: 4px;
}

[nx="sidebar-body"]::-webkit-scrollbar-thumb {
  background: var(--nx-color-surface-3);
  border-radius: 4px;
}

[nx="sidebar-section"] {
  margin-bottom: var(--nx-space-5);
}

[nx="sidebar-section-title"] {
  font-family: var(--nx-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--nx-tracking-widest);
  color: var(--nx-color-text-3);
  padding: 0 var(--nx-space-3);
  margin-bottom: var(--nx-space-2);
  white-space: nowrap;
  transition: opacity var(--nx-duration-base);
}

[nx="sidebar-link"] {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  padding: 9px var(--nx-space-3);
  border-radius: var(--nx-radius-md);
  color: var(--nx-color-text-2);
  text-decoration: none;
  font-size: var(--nx-text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--nx-duration-fast), color var(--nx-duration-fast),
    padding var(--nx-duration-slow) var(--nx-ease-spring);
  position: relative;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

[nx="sidebar-link"]:hover {
  background: var(--nx-color-surface-2);
  color: var(--nx-color-text);
}

[nx="sidebar-link"][active],
[nx="sidebar-link"].active {
  background: var(--nx-color-accent-lo);
  color: var(--nx-color-accent);
  font-weight: 600;
}

[nx="sidebar-link"][active]::before,
[nx="sidebar-link"].active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--nx-color-accent);
}

[nx="sidebar-icon"] {
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.8;
  transition: opacity var(--nx-duration-fast);
}

[nx="sidebar-link"]:hover [nx="sidebar-icon"],
[nx="sidebar-link"][active] [nx="sidebar-icon"] {
  opacity: 1;
}

[nx="sidebar-link-text"] {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--nx-duration-base), width var(--nx-duration-slow);
}

[nx="sidebar-badge"] {
  font-family: var(--nx-font-mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--nx-color-accent);
  color: #000;
  border-radius: 99px;
  padding: 2px 7px;
  flex-shrink: 0;
  transition: opacity var(--nx-duration-base);
}

[nx="sidebar-badge"][tone="ok"] {
  background: var(--nx-color-ok);
}

[nx="sidebar-badge"][tone="warn"] {
  background: var(--nx-color-warn);
}

[nx="sidebar-badge"][tone="err"] {
  background: var(--nx-color-err);
}

.sb-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--nx-duration-fast), opacity var(--nx-duration-base);
  flex-shrink: 0;
  opacity: 0.5;
}

[nx="sidebar-link"][open] .sb-chevron {
  transform: rotate(-135deg);
}

[nx="sidebar-sub"] {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--nx-duration-slow) var(--nx-ease-default);
  margin-left: var(--nx-space-3);
  padding-left: var(--nx-space-3);
  border-left: 1px solid var(--nx-color-border);
}

[nx="sidebar-sub"][open] {
  max-height: 600px;
}

[nx="sidebar-sub-link"] {
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: 7px var(--nx-space-3);
  border-radius: var(--nx-radius-md);
  color: var(--nx-color-text-3);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--nx-duration-fast), color var(--nx-duration-fast);
  white-space: nowrap;
}

[nx="sidebar-sub-link"]:hover {
  color: var(--nx-color-text);
  background: var(--nx-color-surface-2);
}

[nx="sidebar-sub-link"][active],
[nx="sidebar-sub-link"].active {
  color: var(--nx-color-accent);
}

[nx="sidebar-sub-link"]::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.4;
}

[nx="sidebar-sub-link"][active]::before,
[nx="sidebar-sub-link"].active::before {
  opacity: 1;
}

[nx="sidebar-divider"] {
  height: 1px;
  background: var(--nx-color-border);
  margin: var(--nx-space-3) 0;
}

[nx="sidebar-footer"] {
  flex-shrink: 0;
  padding: var(--nx-space-3) var(--nx-space-3);
  border-top: 1px solid var(--nx-color-border);
}

[nx="sidebar-toggle"],
[nx="sidebar-close"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--nx-radius-md);
  background: var(--nx-color-surface-2);
  border: 1px solid var(--nx-color-border);
  cursor: pointer;
  color: var(--nx-color-text-3);
  font-size: 14px;
  line-height: 1;
  transition: all var(--nx-duration-fast);
  margin-left: auto;
  flex-shrink: 0;
}

[nx="sidebar-toggle"]:hover,
[nx="sidebar-close"]:hover {
  background: var(--nx-color-accent-lo);
  color: var(--nx-color-accent);
  border-color: var(--nx-color-border-2);
}

.mob-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mob-only {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }
}

/* ─── Dashboard Layout ─── */
[nx="dashboard-layout"] {
  display: flex;
  min-height: 100vh;
}

[nx="dashboard-main"] {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[nx="dashboard-content"] {
  flex: 1;
  padding: var(--nx-space-6);
  overflow-y: auto;
}

[nx="sidebar-overlay"] {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--nx-color-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: calc(var(--nx-z-sticky) - 1);
  opacity: 0;
  transition: opacity var(--nx-duration-base);
}

[nx="sidebar-overlay"][open] {
  opacity: 1;
}

@media (max-width: 768px) {
  [nx="sidebar"] {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    z-index: calc(var(--nx-z-overlay) + 2);
    box-shadow: var(--nx-shadow-xl);
    width: var(--nx-sidebar-width) !important;
  }

  [nx="sidebar"][open] {
    transform: translateX(0);
  }

  [nx="sidebar-overlay"] {
    display: block;
    pointer-events: none;
    z-index: calc(var(--nx-z-overlay) + 1);
  }

  [nx="sidebar-overlay"][open] {
    pointer-events: all;
  }

  [nx="sidebar"][open][collapsed] [nx="sidebar-label"],
  [nx="sidebar"][open][collapsed] [nx="sidebar-link-text"],
  [nx="sidebar"][open][collapsed] [nx="sidebar-badge"],
  [nx="sidebar"][open][collapsed] [nx="sidebar-section-title"],
  [nx="sidebar"][open][collapsed] [nx="sidebar-logo-text"] {
    opacity: 1;
    width: auto;
    pointer-events: auto;
  }

  [nx="sidebar"][open][collapsed] [nx="sidebar-link"] {
    justify-content: flex-start;
    padding: 9px var(--nx-space-3);
  }

  [nx="sidebar"][open][collapsed] [nx="sidebar-header"] {
    justify-content: flex-start;
    padding: var(--nx-space-5);
  }

  [nx="sidebar"][open][collapsed] [nx="sidebar-logo-text"] {
    display: block;
  }
}

/* ═══════════════════════════════════════
   GLOBAL ANIMATIONS
═══════════════════════════════════════ */
@keyframes nx-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nx-progress-slide {
  0% {
    margin-left: -40%;
  }

  100% {
    margin-left: 100%;
  }
}

@keyframes nx-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes nx-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}
/**
 * NOXEN CSS FRAMEWORK v2.1.2
 * Layer 5 — Motion System
 * Entrance animations · Scroll reveals · Stagger groups · Exit animations
 * All respect prefers-reduced-motion automatically
 */

/* ═══════════════════════════════════════
   ENTRANCE ANIMATIONS  nx-enter=""
═══════════════════════════════════════ */
[nx-enter] {
  animation-fill-mode: both;
  animation-duration: var(--nx-duration-slow);
  animation-timing-function: var(--nx-ease-spring);
}

[nx-enter="fade"] {
  animation-name: nx-fade-in;
}

[nx-enter="rise"] {
  animation-name: nx-rise-in;
}

[nx-enter="fall"] {
  animation-name: nx-fall-in;
}

[nx-enter="slide-left"] {
  animation-name: nx-slide-in-left;
}

[nx-enter="slide-right"] {
  animation-name: nx-slide-in-right;
}

[nx-enter="scale"] {
  animation-name: nx-scale-in;
}

[nx-enter="flip"] {
  animation-name: nx-flip-in;
}

[nx-enter="blur"] {
  animation-name: nx-blur-in;
}

[nx-enter="bounce"] {
  animation-name: nx-bounce-in;
  animation-timing-function: var(--nx-ease-bounce);
}

/* Speed modifiers */
[nx-enter][nx-speed="fast"] {
  animation-duration: var(--nx-duration-base);
}

[nx-enter][nx-speed="slow"] {
  animation-duration: var(--nx-duration-glacial);
}

/* ═══════════════════════════════════════
   SCROLL REVEAL  nx-scroll-reveal=""
   Triggered by IntersectionObserver in noxen.js
═══════════════════════════════════════ */
[nx-scroll-reveal] {
  opacity: 0;
  transition:
    opacity var(--nx-duration-slow) var(--nx-ease-default),
    transform var(--nx-duration-slow) var(--nx-ease-spring);
}

[nx-scroll-reveal="rise"] {
  transform: translateY(32px);
}

[nx-scroll-reveal="fade"] {
  transform: none;
}

[nx-scroll-reveal="slide-left"] {
  transform: translateX(-32px);
}

[nx-scroll-reveal="slide-right"] {
  transform: translateX(32px);
}

[nx-scroll-reveal="scale"] {
  transform: scale(0.92);
}

[nx-scroll-reveal="blur"] {
  filter: blur(8px);
}

[nx-scroll-reveal].nx-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ═══════════════════════════════════════
   STAGGER GROUPS  nx-stagger
   Children reveal sequentially
═══════════════════════════════════════ */
[nx-stagger]>* {
  --nx-stagger-delay: 0ms;
}

[nx-stagger]>*:nth-child(1) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 1);
}

[nx-stagger]>*:nth-child(2) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 2);
}

[nx-stagger]>*:nth-child(3) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 3);
}

[nx-stagger]>*:nth-child(4) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 4);
}

[nx-stagger]>*:nth-child(5) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 5);
}

[nx-stagger]>*:nth-child(6) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 6);
}

[nx-stagger]>*:nth-child(7) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 7);
}

[nx-stagger]>*:nth-child(8) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 8);
}

[nx-stagger]>*:nth-child(9) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 9);
}

[nx-stagger]>*:nth-child(10) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 10);
}

[nx-stagger]>*:nth-child(n+11) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 11);
}

[nx-stagger][nx-stagger-step="fast"] {
  --nx-stagger-step: 40ms;
}

[nx-stagger][nx-stagger-step="slow"] {
  --nx-stagger-step: 140ms;
}

[nx-stagger][nx-stagger-step="xslow"] {
  --nx-stagger-step: 220ms;
}

/* ═══════════════════════════════════════
   CONTINUOUS ANIMATIONS  nx-animate=""
═══════════════════════════════════════ */
[nx-animate="pulse"] {
  animation: nx-pulse 2s ease-in-out infinite;
}

[nx-animate="bounce"] {
  animation: nx-bounce 1.5s ease-in-out infinite;
}

[nx-animate="spin"] {
  animation: nx-spin 1s linear infinite;
}

[nx-animate="spin-slow"] {
  animation: nx-spin 3s linear infinite;
}

[nx-animate="float"] {
  animation: nx-float 4s ease-in-out infinite;
}

[nx-animate="ping"] {
  animation: nx-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

[nx-animate="shake"] {
  animation: nx-shake 0.5s ease-in-out;
}

[nx-animate="glow"] {
  animation: nx-glow 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   HOVER TRANSITIONS
═══════════════════════════════════════ */
[nx-hover="lift"]:hover {
  transform: translateY(-4px);
  transition: transform var(--nx-duration-base) var(--nx-ease-spring);
}

[nx-hover="scale"]:hover {
  transform: scale(1.04);
  transition: transform var(--nx-duration-fast) var(--nx-ease-spring);
}

[nx-hover="glow"]:hover {
  box-shadow: var(--nx-shadow-glow);
  transition: box-shadow var(--nx-duration-base);
}

[nx-hover="dim"]:hover {
  opacity: 0.7;
  transition: opacity var(--nx-duration-fast);
}

[nx-hover="bright"]:hover {
  filter: brightness(1.15);
  transition: filter var(--nx-duration-fast);
}

/* ═══════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════ */
@keyframes nx-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes nx-rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nx-fall-in {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nx-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes nx-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes nx-scale-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes nx-flip-in {
  from {
    opacity: 0;
    transform: rotateX(-25deg) translateY(16px);
  }

  to {
    opacity: 1;
    transform: rotateX(0) translateY(0);
  }
}

@keyframes nx-blur-in {
  from {
    opacity: 0;
    filter: blur(10px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes nx-bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }

  55% {
    opacity: 1;
    transform: scale(1.08);
  }

  75% {
    transform: scale(0.96);
  }

  90% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes nx-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes nx-glow {

  0%,
  100% {
    box-shadow: 0 0 8px var(--nx-color-accent-md);
  }

  50% {
    box-shadow: 0 0 24px var(--nx-color-accent-hi);
  }
}

@keyframes nx-ping {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes nx-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

@keyframes nx-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes nx-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes nx-spin {
  to {
    transform: rotate(360deg);
  }
}
/**
 * NOXEN CSS FRAMEWORK v2.1.2
 * Antigravity Engine — The world's first CSS gravity system
 * nx-ag="mirror | reflect | floor | zone | pair | invert"
 */

/* ═══════════════════════════════════════
   MIRROR  nx-ag="mirror"
   Flips element on Y axis. Children auto-corrected.
═══════════════════════════════════════ */
[nx-ag="mirror"] {
  transform: scaleY(-1);
}

/* Auto-correct children so text/content reads normally */
[nx-ag="mirror"]>*,
[nx-ag-correct] {
  transform: scaleY(-1);
}

/* ═══════════════════════════════════════
   REFLECT  nx-ag="reflect"
   Ghost reflection below element with gradient fade
═══════════════════════════════════════ */
[nx-ag="reflect"] {
  transform: scaleY(-1);
  transform-origin: top center;
  opacity: var(--nx-ag-reflect-fade, 0.45);
  filter: blur(var(--nx-ag-reflect-blur, 1px));
  -webkit-mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.4) 40%,
      transparent 85%);
  mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.4) 40%,
      transparent 85%);
  pointer-events: none;
}

/* ═══════════════════════════════════════
   FLOOR  nx-ag="floor"
   Antigravity flex — items stack from the bottom
   Perfect for: chat UIs, notification stacks
═══════════════════════════════════════ */
[nx-ag="floor"] {
  display: flex;
  flex-direction: column-reverse;
}

/* ═══════════════════════════════════════
   INVERT  nx-ag="invert"
   Full 3D perspective flip
═══════════════════════════════════════ */
[nx-ag="invert"] {
  transform: perspective(var(--nx-ag-zone-depth, 600px)) rotateX(180deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

[nx-ag="invert"]>* {
  transform: rotateX(180deg);
  backface-visibility: hidden;
}

/* ═══════════════════════════════════════
   ZONE  nx-ag="zone"
   Gravity zone container — children anchor to edges
═══════════════════════════════════════ */
[nx-ag="zone"] {
  position: relative;
  overflow: hidden;
}

[nx-ag="zone"][nx-ag-pull="top"] {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

[nx-ag="zone"][nx-ag-pull="bottom"] {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

[nx-ag="zone"][nx-ag-pull="left"] {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

[nx-ag="zone"][nx-ag-pull="right"] {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

[nx-ag="zone"][nx-ag-pull="center"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════
   PAIR  nx-ag="pair"
   Two sections meeting at an antigravity seam
   Apply to: parent container
═══════════════════════════════════════ */
[nx-ag="pair"] {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* The seam — glowing line between pair halves */
[nx-ag-seam] {
  height: var(--nx-ag-seam-width, 1px);
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 0, 0, 0) 5%,
      var(--nx-ag-seam-color) 50%,
      rgba(0, 0, 0, 0) 95%,
      transparent 100%);
  box-shadow: var(--nx-ag-seam-glow);
  position: relative;
  z-index: 10;
  animation: nx-ag-seam-pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes nx-ag-seam-pulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════
   AXIS CONTROL  nx-ag-axis=""
═══════════════════════════════════════ */
[nx-ag-axis="x"] {
  transform: scaleX(-1);
}

[nx-ag-axis="y"] {
  transform: scaleY(-1);
}

[nx-ag-axis="both"] {
  transform: scale(-1);
}

/* ═══════════════════════════════════════
   ANTIGRAVITY ENTRY ANIMATIONS  nx-ag-enter=""
═══════════════════════════════════════ */
[nx-ag-enter] {
  animation-fill-mode: both;
  animation-duration: var(--nx-duration-slow);
  animation-timing-function: var(--nx-ease-spring);
}

[nx-ag-enter="fall"] {
  animation-name: nx-ag-fall;
}

[nx-ag-enter="rise"] {
  animation-name: nx-ag-rise;
}

[nx-ag-enter="flip"] {
  animation-name: nx-ag-flip;
}

[nx-ag-enter="slide-left"] {
  animation-name: nx-ag-slide-left;
}

[nx-ag-enter="slide-right"] {
  animation-name: nx-ag-slide-right;
}

[nx-ag-enter][nx-ag-speed="fast"] {
  animation-duration: var(--nx-duration-base);
}

[nx-ag-enter][nx-ag-speed="slow"] {
  animation-duration: var(--nx-duration-glacial);
}

/* Stagger within antigravity containers */
[nx-ag-stagger]>*:nth-child(1) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 1);
}

[nx-ag-stagger]>*:nth-child(2) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 2);
}

[nx-ag-stagger]>*:nth-child(3) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 3);
}

[nx-ag-stagger]>*:nth-child(4) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 4);
}

[nx-ag-stagger]>*:nth-child(5) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 5);
}

[nx-ag-stagger]>*:nth-child(6) {
  animation-delay: calc(var(--nx-stagger-step, 80ms) * 6);
}

/* Antigravity keyframes */
@keyframes nx-ag-fall {
  from {
    opacity: 0;
    transform: scaleY(-1) translateY(-40px);
  }

  to {
    opacity: 1;
    transform: scaleY(-1) translateY(0);
  }
}

@keyframes nx-ag-rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nx-ag-flip {
  from {
    opacity: 0;
    transform: rotateY(-90deg);
  }

  to {
    opacity: 1;
    transform: rotateY(0);
  }
}

@keyframes nx-ag-slide-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes nx-ag-slide-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ═══════════════════════════════════════
   FLOOR GLOW — decorative floor reflection light
═══════════════════════════════════════ */
[nx-ag-floor-glow]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: radial-gradient(ellipse at center top,
      var(--nx-color-accent-lo), transparent 70%);
  pointer-events: none;
}