*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w:  240px;
  --topbar-h:   56px;
  --gap:        12px;
  --radius-lg:  20px;
  --radius-md:  13px;
  --radius-sm:  9px;
  --font: 'Inter', 'Segoe UI', sans-serif;


  --glass-frame:    rgba(8, 12, 30, 0.52);
  --glass-sidebar:  rgba(255,255,255, 0.04);
  --glass-topbar:   rgba(255,255,255, 0.04);
  --glass-card:     rgba(255,255,255, 0.07);
  --glass-hover:    rgba(255,255,255, 0.11);
  --glass-active:   rgba(255,255,255, 0.14);
  --glass-border:   rgba(255,255,255, 0.09);
  --glass-dd-bg:    rgba(12, 16, 38, 0.88);

  --glass-blur:     blur(24px) saturate(180%) brightness(1.05);
  --glass-blur-hvy: blur(40px) saturate(200%) brightness(1.06);
  --glass-blur-dd:  blur(32px) saturate(190%) brightness(1.04);


  --tx-primary: #ffffff;
  --white:      #ffffff;
  --white-80:   rgba(255,255,255,0.80);
  --white-60:   rgba(255,255,255,0.60);
  --white-40:   rgba(255,255,255,0.40);
  --white-20:   rgba(255,255,255,0.20);
  --white-10:   rgba(255,255,255,0.10);
  --white-06:   rgba(255,255,255,0.06);


  --accent:     #6c8fff;
  --accent-dim: rgba(108,143,255,0.18);
  --green:      #34d399;
  --red:        #f87171;
  --orange:     #fbbf24;


  --glow-blue:   rgba(108,143,255,0.35);
  --glow-pink:   rgba(236,72,153,0.35);
  --glow-cyan:   rgba(34,211,238,0.35);
  --glow-green:  rgba(52,211,153,0.35);
  --glow-orange: rgba(251,191,36,0.35);
  --glow-purple: rgba(167,139,250,0.35);
}


body.nx-light,
html.nx-light-init body {
  --glass-frame:    rgba(180, 210, 255, 0.22);
  --glass-sidebar:  rgba(160, 195, 255, 0.15);
  --glass-topbar:   rgba(160, 195, 255, 0.12);
  --glass-card:     rgba(190, 215, 255, 0.18);
  --glass-hover:    rgba(200, 220, 255, 0.28);
  --glass-active:   rgba(210, 225, 255, 0.35);
  --glass-border:   rgba(120, 160, 230, 0.22);
  --glass-dd-bg:    rgba(210, 228, 255, 0.88);

  --glass-blur:     blur(28px) saturate(160%) brightness(1.10);
  --glass-blur-hvy: blur(44px) saturate(180%) brightness(1.12);
  --glass-blur-dd:  blur(36px) saturate(170%) brightness(1.08);

  --tx-primary: #0a1628;
  --white:      #0a1628;
  --white-80:   rgba(10, 22, 60, 0.82);
  --white-60:   rgba(10, 22, 60, 0.65);
  --white-40:   rgba(10, 22, 60, 0.45);
  --white-20:   rgba(10, 22, 60, 0.20);
  --white-10:   rgba(10, 22, 60, 0.10);
  --white-06:   rgba(10, 22, 60, 0.06);

  --accent:     #3a6aee;
  --accent-dim: rgba(58, 106, 238, 0.16);
  --green:      #059669;
  --red:        #dc2626;
  --orange:     #d97706;

  --glow-blue:   rgba(58,106,238,0.25);
  --glow-pink:   rgba(190,50,120,0.25);
  --glow-cyan:   rgba(6,182,212,0.25);
  --glow-green:  rgba(5,150,105,0.25);
  --glow-orange: rgba(217,119,6,0.25);
  --glow-purple: rgba(124,58,237,0.25);
}

html, body {
  height: 100%;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse at 15% 15%, rgba(108,143,255,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(167,139,250,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(34,211,238,0.06) 0%, transparent 60%),
    url('/img/blue.jpg') center center / cover no-repeat fixed;
  min-height: 100vh;
  transition: color 0.3s;
}

body.nx-light {
  background:
    radial-gradient(ellipse at 15% 15%, rgba(120,180,255,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(160,140,255,0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(100,200,240,0.18) 0%, transparent 60%),
    url('/img/blue.jpg') center center / cover no-repeat fixed;
}


.nx-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.38); z-index: 199;
}
.nx-overlay.open { display: none !important; }

.nx-frame {
  position: fixed; inset: var(--gap);
  border-radius: var(--radius-lg);
  background: var(--glass-frame);
  backdrop-filter: var(--glass-blur-hvy);
  -webkit-backdrop-filter: var(--glass-blur-hvy);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.18),
    inset -1px -1px 0 rgba(0,0,0,0.08);
  overflow: hidden; z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

body.nx-light .nx-frame {
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.55),
    inset -1px -1px 0 rgba(100,140,220,0.10);
}

.nx-sidebar {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 200;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--glass-sidebar);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.06);
  transition: transform 0.3s ease, background 0.35s, border-color 0.35s;
}

body.nx-light .nx-sidebar {
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.40);
}


.nx-sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 14px; text-decoration: none; flex-shrink: 0;
}
.nx-logo-hex {
  width: 34px; height: 34px;
  background: var(--accent-dim);
  border: 1px solid rgba(108,143,255,0.40);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--accent);
  border-radius: 10px; flex-shrink: 0;
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.nx-logo-text {
  font-size: 13px; font-weight: 700;
  color: var(--white); letter-spacing: 0.3px; line-height: 1.2;
  transition: color 0.35s;
}
.nx-logo-sub {
  font-size: 8px; color: var(--white-40); letter-spacing: 1px; margin-top: 2px;
  text-transform: uppercase; transition: color 0.35s;
}

body.nx-light .nx-logo-hex {
  background:   rgba(255,255,255,0.38);
  border-color: rgba(58,106,238,0.35);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.65);
  color: #3a6aee;
}
body.nx-light .nx-logo-text { color: rgba(10,22,60,0.92); }
body.nx-light .nx-logo-sub  { color: rgba(10,22,60,0.45); }


.nx-nav-divider {
  margin: 8px 14px 4px;
  font-size: 9px; font-weight: 600;
  color: var(--white-40); letter-spacing: 1.5px;
  text-transform: uppercase; transition: color 0.35s;
}
body.nx-light .nx-nav-divider { color: rgba(10,22,60,0.42); }


.nx-sidebar-scroll {
  flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; padding: 8px 0 12px;
}
.nx-sidebar-scroll::-webkit-scrollbar { display: none; }

.nx-nav { padding: 4px 0; }
.nx-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  margin: 1px 0;                     
  text-decoration: none; color: var(--white-60);
  font-size: 12.5px; font-weight: 400;
  border-radius: 0;                  
  transition: all 0.18s ease;
}
.nx-nav a .nx-nav-icon {
  width: 26px; height: 26px;         
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;                
  font-size: 13px;                   
  background: var(--white-06);
  border: 1px solid var(--glass-border);
  flex-shrink: 0; transition: all 0.18s ease;
}
.nx-nav a:hover { color: var(--white-80); background: var(--glass-hover); }
.nx-nav a:hover .nx-nav-icon { background: var(--white-10); border-color: var(--white-20); }
.nx-nav a.active {
  color: var(--white);
  background: var(--glass-active);
  border-left: 2px solid var(--accent); 
  padding-left: 12px;                   
}
.nx-nav a.active .nx-nav-icon {
  background: var(--accent-dim);
  border-color: rgba(108,143,255,0.40);
  color: var(--accent);
  box-shadow: 0 0 10px var(--glow-blue);
}


.nx-nav a[href$="neworder"]             .nx-nav-icon { color: #6c8fff; }
.nx-nav a[href$="orders"]               .nx-nav-icon { color: #34d399; }
.nx-nav a[href$="link-fixer"]           .nx-nav-icon { color: #22d3ee; }
.nx-nav a[href$="services"]             .nx-nav-icon { color: #a78bfa; }
.nx-nav a[href$="recommended-services"] .nx-nav-icon { color: #fbbf24; }
.nx-nav a[href$="addfunds"]             .nx-nav-icon { color: #34d399; }
.nx-nav a[href$="tickets"]              .nx-nav-icon { color: #f472b6; }
.nx-nav a[href$="chat"]                 .nx-nav-icon { color: #f472b6; }
.nx-nav a[href$="api_connect"]          .nx-nav-icon { color: #22d3ee; }


.nx-nav a[href$="neworder"]:hover             .nx-nav-icon,
.nx-nav a[href$="neworder"].active            .nx-nav-icon { background: rgba(108,143,255,0.15); box-shadow: 0 0 10px var(--glow-blue);   border-color: rgba(108,143,255,0.35); }
.nx-nav a[href$="orders"]:hover               .nx-nav-icon,
.nx-nav a[href$="orders"].active              .nx-nav-icon { background: rgba(52,211,153,0.15);  box-shadow: 0 0 10px var(--glow-green);  border-color: rgba(52,211,153,0.35); }
.nx-nav a[href$="link-fixer"]:hover           .nx-nav-icon,
.nx-nav a[href$="link-fixer"].active          .nx-nav-icon { background: rgba(34,211,238,0.15);  box-shadow: 0 0 10px var(--glow-cyan);   border-color: rgba(34,211,238,0.35); }
.nx-nav a[href$="services"]:hover             .nx-nav-icon,
.nx-nav a[href$="services"].active            .nx-nav-icon { background: rgba(167,139,250,0.15); box-shadow: 0 0 10px var(--glow-purple); border-color: rgba(167,139,250,0.35); }
.nx-nav a[href$="recommended-services"]:hover .nx-nav-icon,
.nx-nav a[href$="recommended-services"].active .nx-nav-icon { background: rgba(251,191,36,0.15); box-shadow: 0 0 10px var(--glow-orange); border-color: rgba(251,191,36,0.35); }
.nx-nav a[href$="addfunds"]:hover             .nx-nav-icon,
.nx-nav a[href$="addfunds"].active            .nx-nav-icon { background: rgba(52,211,153,0.15);  box-shadow: 0 0 10px var(--glow-green);  border-color: rgba(52,211,153,0.35); }
.nx-nav a[href$="tickets"]:hover              .nx-nav-icon,
.nx-nav a[href$="tickets"].active             .nx-nav-icon { background: rgba(236,72,153,0.15);  box-shadow: 0 0 10px var(--glow-pink);   border-color: rgba(236,72,153,0.35); }
.nx-nav a[href$="chat"]:hover                 .nx-nav-icon,
.nx-nav a[href$="chat"].active                .nx-nav-icon { background: rgba(236,72,153,0.15);  box-shadow: 0 0 10px var(--glow-pink);   border-color: rgba(236,72,153,0.35); }
.nx-nav a[href$="api_connect"]:hover          .nx-nav-icon,
.nx-nav a[href$="api_connect"].active         .nx-nav-icon { background: rgba(34,211,238,0.15);  box-shadow: 0 0 10px var(--glow-cyan);   border-color: rgba(34,211,238,0.35); }

body.nx-light .nx-nav a {
  color: rgba(10,22,60,0.62);
}
body.nx-light .nx-nav a .nx-nav-icon {
  background:   rgba(255,255,255,0.38);
  border:       1px solid rgba(100,150,230,0.28);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.60),
                inset 0 -1px 0 rgba(80,120,200,0.08);
  color:        rgba(10,22,60,0.52);
}
body.nx-light .nx-nav a:hover {
  color:      rgba(10,22,60,0.90);
  background: rgba(255,255,255,0.22);
}
body.nx-light .nx-nav a:hover .nx-nav-icon {
  background:   rgba(255,255,255,0.55);
  border-color: rgba(80,130,220,0.42);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.72),
                inset 0 -1px 0 rgba(80,120,200,0.10);
}
body.nx-light .nx-nav a.active {
  color:        rgba(10,22,60,1);
  background:   rgba(255,255,255,0.30);
  border-left:  2px solid #3a6aee;
  padding-left: 12px;
}
body.nx-light .nx-nav a.active .nx-nav-icon {
  background:   rgba(58,106,238,0.16);
  border-color: rgba(58,106,238,0.44);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.60),
                0 0 10px rgba(58,106,238,0.20);
  color: #3a6aee;
}


body.nx-light .nx-nav a[href$="neworder"]             .nx-nav-icon { color: #3a6aee; }
body.nx-light .nx-nav a[href$="orders"]               .nx-nav-icon { color: #059669; }
body.nx-light .nx-nav a[href$="link-fixer"]           .nx-nav-icon { color: #0891b2; }
body.nx-light .nx-nav a[href$="services"]             .nx-nav-icon { color: #7c3aed; }
body.nx-light .nx-nav a[href$="recommended-services"] .nx-nav-icon { color: #d97706; }
body.nx-light .nx-nav a[href$="addfunds"]             .nx-nav-icon { color: #059669; }
body.nx-light .nx-nav a[href$="tickets"]              .nx-nav-icon { color: #db2777; }
body.nx-light .nx-nav a[href$="chat"]                 .nx-nav-icon { color: #db2777; }
body.nx-light .nx-nav a[href$="api_connect"]          .nx-nav-icon { color: #0891b2; }


body.nx-light .nx-nav a[href$="neworder"]:hover             .nx-nav-icon,
body.nx-light .nx-nav a[href$="neworder"].active            .nx-nav-icon {
  background:   rgba(58,106,238,0.14); border-color: rgba(58,106,238,0.42);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.60), 0 0 10px rgba(58,106,238,0.22);
}
body.nx-light .nx-nav a[href$="orders"]:hover               .nx-nav-icon,
body.nx-light .nx-nav a[href$="orders"].active              .nx-nav-icon {
  background:   rgba(5,150,105,0.14); border-color: rgba(5,150,105,0.42);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.60), 0 0 10px rgba(5,150,105,0.22);
}
body.nx-light .nx-nav a[href$="link-fixer"]:hover           .nx-nav-icon,
body.nx-light .nx-nav a[href$="link-fixer"].active          .nx-nav-icon {
  background:   rgba(8,145,178,0.14); border-color: rgba(8,145,178,0.42);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.60), 0 0 10px rgba(8,145,178,0.22);
}
body.nx-light .nx-nav a[href$="services"]:hover             .nx-nav-icon,
body.nx-light .nx-nav a[href$="services"].active            .nx-nav-icon {
  background:   rgba(124,58,237,0.14); border-color: rgba(124,58,237,0.42);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.60), 0 0 10px rgba(124,58,237,0.22);
}
body.nx-light .nx-nav a[href$="recommended-services"]:hover .nx-nav-icon,
body.nx-light .nx-nav a[href$="recommended-services"].active .nx-nav-icon {
  background:   rgba(217,119,6,0.14); border-color: rgba(217,119,6,0.42);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.60), 0 0 10px rgba(217,119,6,0.22);
}
body.nx-light .nx-nav a[href$="addfunds"]:hover             .nx-nav-icon,
body.nx-light .nx-nav a[href$="addfunds"].active            .nx-nav-icon {
  background:   rgba(5,150,105,0.14); border-color: rgba(5,150,105,0.42);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.60), 0 0 10px rgba(5,150,105,0.22);
}
body.nx-light .nx-nav a[href$="tickets"]:hover              .nx-nav-icon,
body.nx-light .nx-nav a[href$="tickets"].active             .nx-nav-icon,
body.nx-light .nx-nav a[href$="chat"]:hover                 .nx-nav-icon,
body.nx-light .nx-nav a[href$="chat"].active                .nx-nav-icon {
  background:   rgba(219,39,119,0.14); border-color: rgba(219,39,119,0.42);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.60), 0 0 10px rgba(219,39,119,0.22);
}
body.nx-light .nx-nav a[href$="api_connect"]:hover          .nx-nav-icon,
body.nx-light .nx-nav a[href$="api_connect"].active         .nx-nav-icon {
  background:   rgba(8,145,178,0.14); border-color: rgba(8,145,178,0.42);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.60), 0 0 10px rgba(8,145,178,0.22);
}


.nx-sidebar-bottom {
  flex-shrink: 0; padding: 12px 14px;
  border-top: 1px solid var(--glass-border);
  transition: border-color 0.35s;
}
.nx-sidebar-sys {
  font-size: 10px; color: var(--white-40);
  letter-spacing: 1.5px; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px; transition: color 0.35s;
}
body.nx-light .nx-sidebar-sys { color: rgba(10,22,60,0.45); }

.nx-sys-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.tier-recruit    { color: var(--white-40); }
.tier-apprentice { color: #67e8f9; }
.tier-silver     { color: #e2e8f0; }
.tier-gold       { color: var(--orange); }
.tier-platinum   { color: #bae6fd; }

body.nx-light .tier-recruit    { color: rgba(10,22,60,0.45); }
body.nx-light .tier-apprentice { color: #0891b2; }
body.nx-light .tier-silver     { color: #475569; }
body.nx-light .tier-gold       { color: #d97706; }
body.nx-light .tier-platinum   { color: #0284c7; }


.nx-topbar {
  position: absolute; top: 0; left: var(--sidebar-w); right: 0;
  height: var(--topbar-h); z-index: 250;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 18px; gap: 10px;
  background: var(--glass-topbar);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  transition: background 0.35s, border-color 0.35s;
}
body.nx-light .nx-topbar {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.nx-topbar-left  { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nx-topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nx-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: var(--glass-card); border: 1px solid var(--glass-border);
  color: var(--white-80); font-size: 18px; cursor: pointer;
  border-radius: var(--radius-sm); transition: background 0.18s;
}
.nx-hamburger:hover { background: var(--glass-hover); }
body.nx-light .nx-hamburger { color: rgba(10,22,60,0.72); }
body.nx-light .nx-hamburger:hover { color: #0a1628; }

.nx-breadcrumb {
  font-size: 11.5px; font-weight: 500; color: var(--white-60);
  display: flex; align-items: center; gap: 8px; transition: color 0.35s;
}
.nx-breadcrumb-divider {
  display: inline-block; width: 1px; height: 13px;
  background: var(--white-20); flex-shrink: 0; transition: background 0.35s;
}
.nx-breadcrumb span { color: var(--white); font-weight: 600; transition: color 0.35s; }

body.nx-light .nx-breadcrumb        { color: rgba(10,22,60,0.62); }
body.nx-light .nx-breadcrumb span   { color: #0a1628; }
body.nx-light .nx-breadcrumb-divider { background: rgba(10,22,60,0.20); }


.nx-tb-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--glass-card); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  color: var(--white-60); font-size: 14px; cursor: pointer;
  text-decoration: none; border-radius: var(--radius-sm);
  transition: all 0.18s; flex-shrink: 0;
}
.nx-tb-btn:hover {
  background: var(--glass-hover); color: var(--white); border-color: var(--white-20);
}
body.nx-light .nx-tb-btn {
  color: rgba(10,22,60,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.50);
}
body.nx-light .nx-tb-btn:hover {
  color: #0a1628;
  border-color: rgba(10,22,60,0.28);
}


.nx-theme-toggle {
  display: flex; align-items: center; gap: 7px;
  padding: 0 11px; height: 32px;
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  border-radius: 99px;
  color: var(--white-80); font-size: 11px; font-weight: 500;
  cursor: pointer; user-select: none; font-family: var(--font);
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}
.nx-theme-toggle:hover { background: var(--glass-hover); border-color: var(--white-20); }
body.nx-light .nx-theme-toggle {
  color: rgba(10,22,60,0.80);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
body.nx-light .nx-theme-toggle:hover { background: var(--glass-hover); }

.nx-theme-icon {
  font-size: 13px; display: flex; align-items: center;
  transition: transform 0.45s cubic-bezier(.34,1.56,.64,1);
}
.nx-theme-toggle:hover .nx-theme-icon { transform: rotate(22deg) scale(1.15); }
.nx-theme-label {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.2px; transition: color 0.25s;
}
body.nx-light .nx-theme-label { color: rgba(10,22,60,0.80); }

.nx-toggle-track {
  width: 28px; height: 16px; border-radius: 99px;
  background: rgba(108,143,255,0.22);
  border: 1px solid rgba(108,143,255,0.38);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.20);
  position: relative; flex-shrink: 0;
  transition: background 0.30s, border-color 0.30s;
}
.nx-toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #6c8fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.30), 0 0 6px rgba(108,143,255,0.55);
  transition: transform 0.30s cubic-bezier(.34,1.56,.64,1), background 0.30s;
}
body.nx-light .nx-toggle-track { background: rgba(58,106,238,0.20); border-color: rgba(58,106,238,0.38); }
body.nx-light .nx-toggle-thumb {
  transform: translateX(12px); background: #3a6aee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.20), 0 0 6px rgba(58,106,238,0.45);
}


.nx-social-icons { display: flex; align-items: center; gap: 4px; }


.nx-currency-wrap { position: relative; }
.nx-currency-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--glass-card); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  padding: 0 10px; height: 32px;
  color: var(--white); font-size: 11px; font-weight: 500;
  cursor: pointer; user-select: none; border-radius: 99px;
  transition: all 0.18s; font-family: var(--font);
}
.nx-currency-btn:hover { background: var(--glass-hover); border-color: var(--white-20); }
.nx-currency-btn .bi-chevron-down { font-size: 9px; color: var(--white-40); transition: transform 0.2s; }
.nx-currency-wrap.open .nx-currency-btn .bi-chevron-down { transform: rotate(180deg); }

body.nx-light .nx-currency-btn       { color: #0a1628; box-shadow: inset 0 1px 0 rgba(255,255,255,0.50); }
body.nx-light .nx-currency-btn .bi-chevron-down { color: rgba(10,22,60,0.42); }

.nx-currency-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 160px; max-height: 240px;
  background: var(--glass-dd-bg);
  backdrop-filter: var(--glass-blur-dd); -webkit-backdrop-filter: var(--glass-blur-dd);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 50px rgba(0,0,0,0.28);
  border-radius: var(--radius-md); overflow-y: auto; overflow-x: hidden;
  z-index: 9999; flex-direction: column; scrollbar-width: none;
}
.nx-currency-dropdown::-webkit-scrollbar { display: none; }
.nx-currency-dropdown.open { display: flex; }

.nx-currency-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; cursor: pointer; transition: background 0.15s;
  border-bottom: 1px solid var(--glass-border);
}
.nx-currency-item:last-child { border-bottom: none; }
.nx-currency-item:hover { background: var(--glass-hover); }
.nx-currency-item-code { font-size: 11px; font-weight: 600; color: var(--white); transition: color 0.35s; }
.nx-currency-item.selected .nx-currency-item-code { color: var(--green); }
.nx-currency-item-name { font-size: 9px; color: var(--white-40); margin-top: 1px; transition: color 0.35s; }
.nx-currency-radio {
  flex-shrink: 0; width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--white-20);
  display: flex; align-items: center; justify-content: center;
}
.nx-currency-item.selected .nx-currency-radio { border-color: var(--green); }
.nx-currency-item.selected .nx-currency-radio::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green);
}

body.nx-light .nx-currency-item-code              { color: #0a1628; }
body.nx-light .nx-currency-item-name              { color: rgba(10,22,60,0.52); }
body.nx-light .nx-currency-item.selected .nx-currency-item-code { color: #059669; }

.nx-notif-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px;
  background: #ef4444; color: #fff; font-size: 9px; font-weight: 700;
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}
.nx-notif-wrap { position: relative; }
.nx-notif-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 310px; max-height: 450px;
  background: var(--glass-dd-bg);
  backdrop-filter: var(--glass-blur-dd); -webkit-backdrop-filter: var(--glass-blur-dd);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 24px 60px rgba(0,0,0,0.28);
  border-radius: var(--radius-lg); overflow: hidden;
  z-index: 9999; flex-direction: column;
}
.nx-notif-dropdown.open { display: flex; }

.nx-notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px; border-bottom: 1px solid var(--glass-border); flex-shrink: 0;
}
.nx-notif-head-title { font-size: 11.5px; font-weight: 600; color: var(--white); transition: color 0.35s; }
body.nx-light .nx-notif-head-title { color: #0a1628; }

.nx-notif-head-right { display: flex; align-items: center; gap: 8px; }
.nx-notif-unread-pill {
  background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.30);
  color: #fca5a5; font-size: 9px; padding: 1px 7px; border-radius: 99px;
}
.nx-notif-mark-all {
  font-size: 9px; color: var(--white-40); cursor: pointer;
  background: none; border: none; padding: 0; transition: color 0.2s; font-family: var(--font);
}
.nx-notif-mark-all:hover { color: var(--white); }
body.nx-light .nx-notif-mark-all       { color: rgba(10,22,60,0.48); }
body.nx-light .nx-notif-mark-all:hover { color: #0a1628; }

.nx-notif-tabs {
  display: flex; border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0; padding: 4px 6px; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.nx-notif-tabs::-webkit-scrollbar { display: none; }
.nx-notif-tab {
  flex: 1; padding: 5px 4px; font-size: 10px; font-weight: 500;
  color: var(--white-40); background: none; border: none; border-radius: 6px;
  cursor: pointer; transition: all 0.18s; white-space: nowrap; font-family: var(--font);
}
.nx-notif-tab:hover  { color: var(--white-80); background: var(--glass-card); }
.nx-notif-tab.active { color: var(--white);    background: var(--glass-hover); }
body.nx-light .nx-notif-tab        { color: rgba(10,22,60,0.52); }
body.nx-light .nx-notif-tab:hover  { color: rgba(10,22,60,0.80); }
body.nx-light .nx-notif-tab.active { color: #0a1628; }

.nx-notif-list { overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--white-10) transparent; }
.nx-notif-item {
  display: flex; gap: 9px; padding: 9px 12px;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer; transition: background 0.15s; text-decoration: none; position: relative;
}
.nx-notif-item:hover  { background: var(--glass-card); }
.nx-notif-item.unread { background: rgba(108,143,255,0.06); }
.nx-notif-item.unread::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; border-radius: 0 2px 2px 0; background: var(--accent);
}
.nx-notif-icon-cell {
  flex-shrink: 0; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  border-radius: 8px; background: var(--glass-card); border: 1px solid var(--glass-border);
}
.nx-notif-body { flex: 1; min-width: 0; }
.nx-notif-item-top { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.nx-notif-type-tag {
  font-size: 8px; padding: 1px 5px; border-radius: 4px;
  background: var(--glass-card); color: var(--white-40);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.nx-notif-item-time { font-size: 9px; color: var(--white-40); margin-left: auto; flex-shrink: 0; }
.nx-notif-item-title {
  font-size: 11px; font-weight: 500; color: var(--white-60);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px;
}
.nx-notif-item.unread .nx-notif-item-title { color: var(--white); }
.nx-notif-item-msg { font-size: 10px; color: var(--white-40); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-notif-dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; margin-top: 12px; }
.nx-notif-item.unread .nx-notif-dot { background: var(--accent); }

body.nx-light .nx-notif-item-title                       { color: rgba(10,22,60,0.68); }
body.nx-light .nx-notif-item.unread .nx-notif-item-title { color: #0a1628; }
body.nx-light .nx-notif-item-msg                         { color: rgba(10,22,60,0.48); }
body.nx-light .nx-notif-item-time                        { color: rgba(10,22,60,0.42); }
body.nx-light .nx-notif-type-tag                         { color: rgba(10,22,60,0.48); }

.nx-notif-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px 20px; gap: 7px; color: var(--white-40);
}
.nx-notif-empty i    { font-size: 22px; }
.nx-notif-empty span { font-size: 10px; }
body.nx-light .nx-notif-empty { color: rgba(10,22,60,0.42); }

.nx-notif-footer { padding: 9px 13px; border-top: 1px solid var(--glass-border); text-align: center; }
.nx-notif-footer a { font-size: 10px; color: var(--white-40); text-decoration: none; transition: color 0.2s; }
.nx-notif-footer a:hover { color: var(--white); }
body.nx-light .nx-notif-footer a       { color: rgba(10,22,60,0.48); }
body.nx-light .nx-notif-footer a:hover { color: #0a1628; }
#nx-theme-toggle .nx-theme-label { display: none !important; }

.nx-user-wrap { position: relative; }
.nx-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass-card); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  padding: 4px 10px 4px 4px; height: 36px;
  cursor: pointer; border-radius: 99px;
  transition: all 0.18s; font-family: var(--font);
}
.nx-user-btn:hover { background: var(--glass-hover); border-color: var(--white-20); }
body.nx-light .nx-user-btn { box-shadow: inset 0 1px 0 rgba(255,255,255,0.50); }

.nx-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--white-20); flex-shrink: 0;
}
.nx-user-name {
  font-size: 13px; font-weight: 500; color: var(--white-80);
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color 0.35s;
}
body.nx-light .nx-user-name { color: rgba(10,22,60,0.88); }

.nx-user-btn .bi-chevron-down { font-size: 10px; color: var(--white-40); transition: transform 0.2s; }
body.nx-light .nx-user-btn .bi-chevron-down { color: rgba(10,22,60,0.42); }
.nx-user-wrap.open .nx-user-btn .bi-chevron-down { transform: rotate(180deg); }

.nx-user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px;
  background: var(--glass-dd-bg);
  backdrop-filter: var(--glass-blur-dd); -webkit-backdrop-filter: var(--glass-blur-dd);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 50px rgba(0,0,0,0.35);
  border-radius: var(--radius-md); overflow: hidden;
  z-index: 9999; flex-direction: column;
  transition: background 0.35s, border-color 0.35s;
}
.nx-user-dropdown.open { display: flex; }

.nx-user-dd-header {
  padding: 12px 14px 10px; border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 10px;
}
.nx-user-dd-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--white-20); flex-shrink: 0;
}
.nx-user-dd-name    { font-size: 13px; font-weight: 600; color: var(--white); transition: color 0.35s; }
.nx-user-dd-balance { font-size: 11px; color: var(--green); font-weight: 500; margin-top: 1px; transition: color 0.35s; }
body.nx-light .nx-user-dd-name    { color: #0a1628; }
body.nx-light .nx-user-dd-balance { color: #059669; }

.nx-user-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; cursor: pointer;
  text-decoration: none; color: var(--white-60);
  font-size: 13px; font-weight: 400;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s, color 0.35s;
}
.nx-user-dd-item:last-child { border-bottom: none; }
.nx-user-dd-item:hover { background: var(--glass-hover); color: var(--white); }
.nx-user-dd-item i {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 13px;
  background: var(--white-06); border: 1px solid var(--glass-border);
  flex-shrink: 0; transition: all 0.15s;
}
.nx-user-dd-item:hover i { background: var(--white-10); border-color: var(--white-20); }
.nx-user-dd-item.logout { color: #fca5a5; margin-top: 4px; border-top: 1px solid var(--glass-border); }
.nx-user-dd-item.logout:hover { background: rgba(248,113,113,0.10); }
.nx-user-dd-item.logout i { color: #f87171; }

body.nx-light .nx-user-dd-item       { color: rgba(10,22,60,0.65); }
body.nx-light .nx-user-dd-item:hover { color: #0a1628; }
body.nx-light .nx-user-dd-item i {
  background:   rgba(255,255,255,0.38);
  border-color: rgba(100,150,230,0.28);
  color:        rgba(10,22,60,0.55);
  box-shadow:   inset 0 1px 0 rgba(255,255,255,0.60);
}
body.nx-light .nx-user-dd-item:hover i {
  background:   rgba(255,255,255,0.55);
  border-color: rgba(80,130,220,0.42);
}
body.nx-light .nx-user-dd-item.logout       { color: #b91c1c; }
body.nx-light .nx-user-dd-item.logout:hover { background: rgba(220,38,38,0.10); }
body.nx-light .nx-user-dd-item.logout i     { color: #dc2626; }

.nx-main {
  position: absolute;
  top: var(--topbar-h); left: var(--sidebar-w); right: 0; bottom: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nx-main::-webkit-scrollbar { display: none; }

.no-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.no-section-badge {
  font-size: 11px; color: var(--white-60);
  border: 1px solid var(--glass-border); padding: 3px 10px;
  background: var(--glass-card); flex-shrink: 0; border-radius: 99px;
}
.no-section-title { font-size: 15px; font-weight: 600; color: var(--white); transition: color 0.35s; }
.no-section-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--glass-border) 0%, transparent 100%);
}

body.nx-light .no-section-title { color: #0a1628; }
body.nx-light .no-section-badge { color: rgba(10,22,60,0.58); }
.nx-theme-mobile { display: none; }
.nx-theme-desktop { display: flex; }

@media (max-width: 820px) {
  .nx-breadcrumb-hide-mobile { display: none; }
  .nx-sidebar { transform: translateX(-100%); border-radius: 0; z-index: 300; }
  .nx-sidebar.open { transform: translateX(0); }
  .nx-topbar { left: 0; }
  .nx-main { left: 0; }
  .nx-hamburger { display: flex; }
  .nx-social-icons { display: none; }
  .nx-theme-label { display: none; }
  .nx-overlay {
    top: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0,0,0,0.18);
  }
  .nx-sidebar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 14, 40, 0.97);
  }
  body.nx-light .nx-sidebar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(200, 222, 255, 0.97);
  }


  .nx-frame {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nx-notif-dropdown {
    position: fixed;
    top: 56px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: 70vh;
    border-radius: var(--radius-lg);
    z-index: 9999;
  }
  .nx-theme-mobile  { display: flex; }
  .nx-theme-desktop { display: none; }
}
@media (max-width: 500px) {
  :root { --gap: 8px; }
  .nx-topbar { padding: 0 10px; gap: 6px; }
  .nx-topbar-right { gap: 5px; }
  .nx-notif-dropdown {
    position: fixed;
    top: 56px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: 70vh;
  }
  .nx-user-name { display: none; }
  .nx-theme-toggle { padding: 0 8px; }
}