/* NexusSoul installable app UI — isolated from regular website & its admin layout. */
.ns-app-header, .ns-app-nav, .ns-app-install-banner { display:none; }
html.ns-app-mode { --ns-app-background:#080b13; --ns-app-accent:#168cff; --ns-app-danger:#ff304f; --ns-app-text:#edf5ff; color-scheme:dark; }
html.ns-app-mode body { background:#080b13; color:var(--ns-app-text); }
@media (max-width:860px) {
  html.ns-app-mode body { padding-bottom:env(safe-area-inset-bottom); }
  html.ns-app-mode .dashboard-layout { display:block !important; grid-template-columns:minmax(0,1fr) !important; min-height:100dvh; }
  html.ns-app-mode .dashboard-main { width:100% !important; max-width:100% !important; min-width:0 !important; margin:0 !important; }
  html.ns-app-mode .sidebar, html.ns-app-mode .topbar { display:none !important; }
  html.ns-app-mode .ns-app-header { display:block; position:sticky; top:0; z-index:26; padding:12px 16px 13px; background:#090f1bf0; backdrop-filter:blur(20px); border-bottom:1px solid #ffffff11; }
  html.ns-app-mode .ns-app-headrow { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:45px; }
  html.ns-app-mode .ns-app-wordmark { display:flex; align-items:center; gap:10px; min-width:0; text-decoration:none; color:#fff; letter-spacing:.045em; font-weight:900; font-size:16px; line-height:1; }
  html.ns-app-mode .ns-app-wordmark strong { color:#39aaff; }
  html.ns-app-mode .ns-app-wordmark small { display:block; font-size:7px; line-height:1.7; margin-top:2px; font-weight:700; letter-spacing:.18em; color:#8ba6c5; }
  html.ns-app-mode .ns-app-emblem { display:grid; place-items:center; flex:0 0 39px; width:39px; height:39px; color:#fff; font-size:25px; font-weight:950; background:linear-gradient(135deg,#1cafff,#0863eb); box-shadow:0 5px 22px #168cff4d; border-radius:12px; border:1px solid #81d7ff77; }
  html.ns-app-mode .ns-app-head-actions { display:flex; align-items:center; gap:7px; flex-shrink:0; }
  html.ns-app-mode .ns-app-icon-btn { display:grid;place-items:center;width:35px;height:35px;padding:0;border:1px solid #27364d;border-radius:11px;background:#101b2b;color:#d9eaff;box-shadow:none; }
  html.ns-app-mode .ns-app-icon-btn.ns-app-avatar { background:#1d3c70; border-color:#366db9; }
  html.ns-app-mode .ns-app-search { display:flex; gap:8px; margin:12px 0 0; }
  html.ns-app-mode .ns-app-search[hidden] { display:none !important; }
  html.ns-app-mode .ns-app-search input { flex:1; min-width:0; border:1px solid #254168; border-radius:11px; color:#fff; background:#102037; padding:12px 13px; outline:0; }
  html.ns-app-mode .ns-app-search input:focus { border-color:#168cff; }
  html.ns-app-mode .ns-app-search button { background:#168cff; border:0; border-radius:11px; color:white; padding:10px 14px; font-weight:800; }
  html.ns-app-mode .ns-app-nav { display:flex; position:fixed; z-index:45; bottom:0; left:0; right:0; padding:8px 9px calc(8px + env(safe-area-inset-bottom)); gap:4px; background:#09101df7; border-top:1px solid #1e314c; box-shadow:0 -15px 50px #0009; backdrop-filter:blur(20px); }
  html.ns-app-mode .ns-app-nav-item { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; align-items:center; justify-content:center; border:1px solid transparent; border-radius:13px; background:transparent; color:#8298b3; font-size:10px; font-weight:750; padding:8px 0 7px; box-shadow:none; }
  html.ns-app-mode .ns-app-nav-item.active { color:#72c9ff; background:linear-gradient(145deg,#123455,#0b203c); border-color:#2a5b9b; }
  html.ns-app-mode .ns-app-nav-item.active svg { filter:drop-shadow(0 0 6px #168cff77); }
  html.ns-app-mode #app { min-height:calc(100dvh - 150px); padding-bottom:98px; background:#080b13; overflow-x:hidden; }
  html.ns-app-mode .hero { display:block; min-height:0; margin:13px 12px 6px; padding:29px 22px 24px; border:1px solid #2a4f84; border-radius:23px; background:radial-gradient(ellipse at 95% 8%,#174b93 0%,transparent 51%),linear-gradient(135deg,#0f203b,#0a1324 68%,#08101a); box-shadow:0 12px 40px #0008,inset 0 1px #9bcaff19; overflow:hidden; }
  html.ns-app-mode .hero::after { content:"N"; position:absolute; right:5px; bottom:-50px; font-size:225px; font-weight:950; color:#168cff0b; transform:rotate(-13deg); pointer-events:none; }
  html.ns-app-mode .hero-copy { position:relative; z-index:1; }
  html.ns-app-mode .hero-art { display:none !important; }
  html.ns-app-mode .hero h1 { font-size:clamp(37px,9.5vw,54px); letter-spacing:-2px; margin:15px 0 13px; line-height:1.07; }
  html.ns-app-mode .hero h1 span, html.ns-app-mode .eyebrow, html.ns-app-mode .category span { color:#54bbff !important; }
  html.ns-app-mode .hero-copy>p { color:#b5c7dd; font-size:13px; line-height:1.65; margin:0; max-width:300px; }
  html.ns-app-mode .pulse { background:#ff304f; box-shadow:0 0 14px #ff304f77; }
  html.ns-app-mode .hero-actions { display:flex; gap:9px; margin:20px 0 0; flex-wrap:wrap; }
  html.ns-app-mode .hero-actions .btn { font-size:11px; min-height:39px; padding:10px 12px; border-radius:11px; }
  html.ns-app-mode .btn-primary { background:linear-gradient(135deg,#189dff,#0862ec) !important; box-shadow:0 8px 20px #168cff2e; border-color:transparent !important; }
  html.ns-app-mode .btn-ghost { border:1px solid #375277; color:#d6eaff; background:#18263eaa; }
  html.ns-app-mode .hero-stats { gap:10px; flex-wrap:wrap; margin-top:21px; padding-top:17px; border-top:1px solid #ffffff20; }
  html.ns-app-mode .hero-stats div { flex:1; min-width:70px; gap:5px; }
  html.ns-app-mode .hero-stats strong { font-size:11px; }
  html.ns-app-mode .hero-stats small { font-size:9px; color:#849dbb; }
  html.ns-app-mode .category-strip { display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;gap:9px;padding:12px 14px;border:0;background:transparent; }
  html.ns-app-mode .category-strip::-webkit-scrollbar { display:none; }
  html.ns-app-mode .category { flex:0 0 auto; background:#101b2b; border:1px solid #263952; padding:10px 13px; border-radius:12px; color:#b3c6dc; }
  html.ns-app-mode .category.active { background:#13375e; border-color:#168cff; color:#fff; }
  html.ns-app-mode .section, html.ns-app-mode .page-wrap { padding:22px 13px 30px !important; }
  html.ns-app-mode .section-head { align-items:flex-start; gap:11px; flex-wrap:wrap; margin-bottom:16px; }
  html.ns-app-mode .section-head h2 { font-size:23px; letter-spacing:-.5px; margin:8px 0; }
  html.ns-app-mode .section-head p { max-width:280px; line-height:1.5; }
  html.ns-app-mode .section-head select { width:100%; color:#d9eaff; border:1px solid #2a4262; background:#132039; }
  html.ns-app-mode .listing-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  html.ns-app-mode .listing-card { border-radius:15px; border:1px solid #263b56; background:#101b2b; }
  html.ns-app-mode .listing-art { height:118px; background:radial-gradient(circle at 75% 12%,#204b91,#0d1b34 65%,#0e1827); }
  html.ns-app-mode .listing-body { padding:12px; }
  html.ns-app-mode .listing-body h3 { font-size:12px; margin:0 0 7px; min-height:36px; }
  html.ns-app-mode .listing-body p { font-size:10px; min-height:30px; }
  html.ns-app-mode .listing-card .price { font-size:16px; }
  html.ns-app-mode .listing-card .buy-btn { border-color:#2564a6; background:#103865; color:#9ed8ff; padding:8px; }
  html.ns-app-mode .panel, html.ns-app-mode .metric, html.ns-app-mode .order-card { background:#101a29; border-color:#283b55; border-radius:16px; }
  html.ns-app-mode .panel { padding:17px; }
  html.ns-app-mode .page-title { font-size:27px; }
  html.ns-app-mode .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  html.ns-app-mode .form-grid { grid-template-columns:1fr; }
  html.ns-app-mode .field input:focus, html.ns-app-mode .field select:focus, html.ns-app-mode .field textarea:focus { border-color:#168cff; }
  html.ns-app-mode .trust-band { margin:0 13px 22px; padding:18px; border-color:#244c83; background:linear-gradient(135deg,#112a48,#0e1727); border-radius:16px; flex-wrap:wrap; gap:9px; }
  html.ns-app-mode .trust-icon { background:#163a6b;color:#71beff; }
  html.ns-app-mode .trust-band .btn { margin-left:0; width:100%; text-align:center; }
  html.ns-app-mode footer { margin:0 12px; padding:18px 8px 60px; border-color:#25364d; }
  html.ns-app-mode footer .footer-links { margin-left:0; }
  html.ns-app-mode .toast { bottom:calc(100px + env(safe-area-inset-bottom)); color:#e8f4ff; background:#174477; }
  html.ns-app-mode .modal { max-height:calc(100dvh - 90px); border-color:#365478; background:#101a2a; }
  html.ns-app-mode button, html.ns-app-mode a { -webkit-tap-highlight-color:transparent; }
  html.ns-app-mode button:focus-visible, html.ns-app-mode a:focus-visible { outline:2px solid #4cbaff; outline-offset:3px; }
}
@media (max-width:440px) {
  html.ns-app-mode .ns-app-wordmark { font-size:14px; }
  html.ns-app-mode .ns-app-head-actions { gap:5px; }
  html.ns-app-mode .ns-app-icon-btn { width:32px; height:34px; }
  html.ns-app-mode .listing-art { height:104px; }
}
@media (max-width:860px) {
  .ns-app-install-banner:not([hidden]) { display:block; position:fixed; left:50%; transform:translateX(-50%); bottom:16px; width:max-content; max-width:calc(100vw - 28px); z-index:46; padding:13px 22px; color:#fff; border:1px solid #63bdff; background:#0872eb; border-radius:24px; box-shadow:0 8px 30px #0009; font-weight:800; }
}
