/* NetScan — the app's screens rebuilt for the web: the live demo on the main page (the same design as the Android app). */
.ns-app{--bg:#0B1020;--bg-high:#10172A;--card:#151D30;--card-high:#1A2440;--well:#0F1628;--sheet:#131B2E;--line:#263247;--hair:rgba(255,255,255,.08);--glass:rgba(255,255,255,.06);
  --text:#F8FAFC;--muted:#94A3B8;--dim:#64748B;--primary:#6366F1;--ptext:#A5B4FC;--cyan:#22D3EE;--green:#22C55E;--red:#EF4444;--amber:#F59E0B;
  --grad:linear-gradient(135deg,#6366F1,#4F8DF5 55%,#22D3EE);
  position:relative;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text);font-family:Assistant,system-ui,sans-serif;
  direction:rtl;text-align:right;-webkit-font-smoothing:antialiased;user-select:none;-webkit-tap-highlight-color:transparent;font-size:14px;line-height:1.35}
.ns-app *{box-sizing:border-box}
.ns-app svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;display:block}
.ns-app .glow{position:absolute;inset:0;pointer-events:none;background:radial-gradient(70% 38% at 85% -6%,rgba(99,102,241,.24),transparent 70%),radial-gradient(60% 40% at 0% 58%,rgba(34,211,238,.10),transparent 70%)}
.ns-app .status{position:absolute;top:0;left:0;right:0;height:32px;display:flex;align-items:center;justify-content:space-between;padding:4px 30px 0;font-size:12.5px;font-weight:700;color:var(--text);z-index:60;direction:ltr}
.ns-app .status .ic{display:flex;gap:6px;align-items:center}
.ns-app .status .ic svg{width:14px;height:14px}
.ns-app .bat{width:20px;height:10px;border:1.6px solid currentColor;border-radius:3px;position:relative;padding:1px}
.ns-app .bat i{display:block;height:100%;width:72%;background:currentColor;border-radius:1px}
.ns-app .scroll{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;padding:38px 18px 110px;scrollbar-width:none}
.ns-app .scroll::-webkit-scrollbar{display:none}
.ns-app .col{display:flex;flex-direction:column;gap:13px}
.ns-app .row{display:flex;align-items:center}
.ns-app .grow{flex:1;min-width:0}
.ns-app .ell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ns-app .ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}
.ns-app .muted{color:var(--muted)} .ns-app .dim{color:var(--dim)}
.ns-app .b{font-weight:800} .ns-app .sb{font-weight:700}
/* header */
.ns-app .logo{width:40px;height:40px;border-radius:11px;flex:none;box-shadow:0 0 0 1px rgba(99,102,241,.35)}
.ns-app .word{direction:ltr;font-weight:800;font-size:21px;letter-spacing:-.01em;line-height:1.05}
.ns-app .word i{font-style:normal;background:linear-gradient(90deg,#22D3EE,#4F8DF5,#6366F1);-webkit-background-clip:text;background-clip:text;color:transparent}
.ns-app .conn{display:flex;align-items:center;gap:6px;padding:5px 11px;border-radius:99px;font-size:12px;font-weight:800;color:var(--green);background:rgba(34,197,94,.13);border:1px solid rgba(34,197,94,.35)}
.ns-app .conn i{width:8px;height:8px;border-radius:50%;background:currentColor}
.ns-app .kicker{font-size:12px;font-weight:800;color:var(--ptext)}
.ns-app h2{margin:0;font-size:27px;font-weight:800;letter-spacing:-.01em;line-height:1.1}
.ns-app .sub{font-size:13px;color:var(--muted)}
/* cards */
.ns-app .panel{border-radius:22px;background:linear-gradient(180deg,var(--card-high),var(--card));border:1px solid var(--line);padding:16px;position:relative}
.ns-app .panel.hero{background:linear-gradient(135deg,#1E2550,#151D30 55%,#111A2E);border-color:rgba(99,102,241,.38)}
.ns-app .panel.hero::before{content:"";position:absolute;top:0;left:12%;right:12%;height:1px;background:linear-gradient(90deg,transparent,rgba(129,140,248,.6),transparent)}
.ns-app .tap{cursor:pointer;transition:transform .15s}
.ns-app .tap:active{transform:scale(.975)}
.ns-app .ibox{display:grid;place-items:center;border-radius:15px;flex:none}
.ns-app .hair{height:1px;background:var(--hair);margin:10px 0}
/* donut + legend */
.ns-app .donut{width:126px;height:126px;flex:none;position:relative;display:grid;place-items:center}
.ns-app .donut svg{position:absolute;inset:0;transform:rotate(-90deg)}
.ns-app .donut b{font-size:36px;font-weight:800;line-height:1}
.ns-app .legend{display:flex;align-items:center;gap:8px;font-size:13px}
.ns-app .legend i{width:10px;height:10px;border-radius:50%;flex:none}
.ns-app .legend b{font-size:15px}
/* info cards */
.ns-app .grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ns-app .info{padding:14px;border-radius:20px}
.ns-app .info .num{font-size:27px;font-weight:800;line-height:1}
.ns-app .info .t{font-size:14px;font-weight:800;margin-top:10px}
.ns-app .info .s{font-size:11px;color:var(--muted)}
/* scan button */
.ns-app .scanbtn{position:relative;height:64px;border-radius:22px;background:var(--grad);display:flex;align-items:center;justify-content:center;gap:12px;color:#fff;font-weight:800;font-size:18.5px;cursor:pointer;box-shadow:0 14px 34px -12px rgba(79,141,245,.8)}
.ns-app .scanbtn .c{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center}
.ns-app .scanbtn:active{transform:scale(.98)}
.ns-app .autoline{display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;color:var(--muted);font-weight:700}
.ns-app .autoline b{color:var(--ptext)}
/* device tile + cards */
.ns-app .tile{position:relative;border-radius:30%;display:grid;place-items:center;flex:none}
.ns-app .tile .dot{position:absolute;bottom:-3px;left:-3px;width:27%;height:27%;border-radius:50%;background:var(--card);padding:2.5px}
.ns-app .tile .dot i{display:block;width:100%;height:100%;border-radius:50%}
.ns-app .dev{display:flex;align-items:center;gap:12px;padding:13px;border-radius:20px}
.ns-app .dev .n{font-size:15.5px;font-weight:800}
.ns-app .dev .k{font-size:12.5px;color:var(--muted)}
.ns-app .dev .ip{font-size:11.5px;color:var(--dim);font-variant-numeric:tabular-nums}
.ns-app .dev .seen{font-size:10.5px;font-weight:700;color:var(--dim)}
.ns-app .dev .seen.on{color:var(--green)}
.ns-app .pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:99px;font-size:11px;font-weight:800;white-space:nowrap}
.ns-app .pill i{width:6px;height:6px;border-radius:50%;background:currentColor}
.ns-app .pill.on{color:var(--green);background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.32)}
.ns-app .pill.off{color:var(--muted);background:rgba(148,163,184,.1);border:1px solid rgba(148,163,184,.3)}
.ns-app .badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:99px;font-size:10.5px;font-weight:800;white-space:nowrap}
.ns-app .badge svg{width:11px;height:11px;stroke-width:2.4}
/* search + chips */
.ns-app .field{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:var(--well);border:1px solid var(--line);color:var(--dim);font-size:14.5px}
.ns-app .field svg{width:18px;height:18px;color:var(--muted)}
.ns-app .chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -18px;padding:0 18px}
.ns-app .chips::-webkit-scrollbar{display:none}
.ns-app .chip{display:flex;align-items:center;gap:6px;padding:7px 13px;border-radius:99px;background:var(--glass);border:1px solid var(--line);font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.ns-app .chip span{font-size:11px;font-weight:800;padding:1px 7px;border-radius:99px;background:var(--well);color:var(--muted)}
.ns-app .chip.sel{background:var(--primary);border-color:var(--primary);color:#fff}
.ns-app .chip.sel span{background:rgba(255,255,255,.2);color:#fff}
.ns-app .iconbtn{width:44px;height:44px;border-radius:14px;background:var(--glass);border:1px solid var(--line);display:grid;place-items:center;cursor:pointer;flex:none}
.ns-app .iconbtn svg{width:20px;height:20px}
.ns-app .callout{border-radius:18px;padding:13px;display:flex;gap:11px;align-items:flex-start}
.ns-app .callout .ci{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none}
.ns-app .callout .ci svg{width:17px;height:17px}
.ns-app .sbtn{display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:13px;font-size:12.5px;font-weight:800;background:var(--glass);border:1px solid var(--line);cursor:pointer}
.ns-app .sbtn.p{background:var(--grad);border-color:transparent;color:#fff}
/* bottom bar */
.ns-app .bar{position:absolute;left:12px;right:12px;bottom:12px;height:72px;border-radius:26px;background:var(--bg-high);border:1px solid var(--line);display:flex;padding:6px 4px;z-index:20}
.ns-app .bar::before{content:"";position:absolute;left:-12px;right:-12px;bottom:-12px;height:120px;background:linear-gradient(transparent,rgba(11,16,32,.94) 55%,var(--bg));z-index:-1;pointer-events:none}
.ns-app .bi{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10.5px;font-weight:700;color:var(--dim);cursor:pointer;position:relative}
.ns-app .bi .pk{width:50px;height:30px;border-radius:99px;display:grid;place-items:center;transition:background .25s}
.ns-app .bi svg{width:21px;height:21px}
.ns-app .bi.sel{color:var(--ptext);font-weight:800}
.ns-app .bi.sel .pk{background:var(--grad);color:#fff}
.ns-app .bi .bd{position:absolute;top:2px;left:calc(50% - 25px);min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:var(--red);color:#fff;font-size:9px;font-weight:800;display:grid;place-items:center;border:2px solid var(--bg-high)}
/* top bar (inner screens) */
.ns-app .topbar{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.ns-app .topbar .tt{font-size:19px;font-weight:800}
/* details */
.ns-app .center{text-align:center;display:flex;flex-direction:column;align-items:center}
.ns-app .kv{display:flex;align-items:center;padding:10px 0;font-size:13.5px}
.ns-app .kv .l{color:var(--muted);font-weight:600;display:flex;align-items:center;gap:6px;flex:.9}
.ns-app .kv .l svg{width:15px;height:15px;color:var(--ptext)}
.ns-app .kv .v{font-weight:800;flex:1.1;text-align:left;direction:rtl}
.ns-app .kv + .kv{border-top:1px solid var(--hair)}
.ns-app .act{flex:1;padding:12px 6px;border-radius:18px;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11.5px;font-weight:800;text-align:center}
.ns-app .act .ci{width:40px;height:40px;border-radius:50%;display:grid;place-items:center}
.ns-app .act svg{width:19px;height:19px;stroke-width:2.2}
.ns-app .how{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;padding:4px 0}
.ns-app .how i{width:7px;height:7px;border-radius:50%;margin-top:7px;flex:none}
.ns-app .strip{display:flex;gap:4px;align-items:flex-end;height:30px}
.ns-app .strip i{flex:1;border-radius:4px}
/* alerts */
.ns-app .alert{display:flex;gap:12px;align-items:flex-start;padding:13px;border-radius:20px}
.ns-app .alert .ci{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none}
.ns-app .alert .ci svg{width:20px;height:20px;stroke-width:2.2}
.ns-app .alert .t{font-size:14.5px;font-weight:800;display:flex;align-items:center;gap:7px}
.ns-app .alert .t em{width:8px;height:8px;border-radius:50%;background:var(--red);flex:none}
.ns-app .alert .bd{font-size:12.5px;color:var(--muted);line-height:1.45}
.ns-app .alert .tm{font-size:10.5px;color:var(--dim);margin-top:4px}
.ns-app .day{font-size:13px;font-weight:800;color:var(--muted);padding:4px 4px 0}
/* scans */
.ns-app .scan{display:flex;align-items:center;gap:0;padding:13px;border-radius:20px}
.ns-app .scan .tm{width:62px;text-align:center}
.ns-app .scan .tm b{display:block;font-size:19px;font-variant-numeric:tabular-nums}
.ns-app .scan .tm small{font-size:10.5px;font-weight:700}
.ns-app .scan .sep{width:1px;height:44px;background:var(--line);margin:0 12px}
.ns-app .chart{display:flex;align-items:flex-end;gap:8px;height:120px;padding-top:4px;border-bottom:1px solid var(--hair);position:relative}
.ns-app .chart .c{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}
.ns-app .chart .c b{font-size:10.5px;color:var(--muted)}
.ns-app .chart .c.hl b{color:var(--text)}
.ns-app .chart .bar2{width:62%;max-width:30px;border-radius:7px;background:var(--line);position:relative;overflow:hidden}
.ns-app .chart .c.hl .bar2{background:linear-gradient(180deg,#22D3EE,#6366F1)}
.ns-app .chart .bar2 u{position:absolute;bottom:0;left:0;right:0;background:#22D3EE;border-radius:7px}
.ns-app .labels{display:flex;gap:8px;margin-top:6px}
.ns-app .labels span{flex:1;text-align:center;font-size:9.5px;color:var(--dim);font-weight:700}
.ns-app .stat3{display:flex;gap:10px}
.ns-app .stat3 div{flex:1;border-radius:18px;padding:12px 4px;text-align:center}
.ns-app .stat3 b{display:block;font-size:26px;line-height:1.1;font-variant-numeric:tabular-nums}
.ns-app .stat3 small{font-size:11px;font-weight:700;color:var(--muted)}
/* settings rows */
.ns-app .srow{display:flex;align-items:center;gap:12px;padding:11px 0}
.ns-app .srow + .srow{border-top:1px solid var(--hair)}
.ns-app .srow .ci{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:none;color:var(--ptext);background:rgba(99,102,241,.13)}
.ns-app .srow .ci svg{width:19px;height:19px}
.ns-app .tog{width:52px;height:31px;border-radius:99px;background:var(--grad);padding:3px;display:flex;justify-content:flex-end;flex:none}
.ns-app .tog i{width:25px;height:25px;border-radius:50%;background:#fff}
.ns-app .tog.off{background:var(--well);border:1px solid var(--line);justify-content:flex-start}
.ns-app .tog.off i{background:var(--dim)}
/* scan overlay */
.ns-app .overlay{position:absolute;inset:0;z-index:40;background:var(--bg);display:none;flex-direction:column;align-items:center;justify-content:space-between;padding:44px 22px 24px;text-align:center}
.ns-app .overlay.on{display:flex;animation:nsfade .25s ease-out}
.ns-app .overlay::before{content:"";position:absolute;inset:0;background:radial-gradient(70% 45% at 50% 32%,rgba(99,102,241,.25),transparent 70%);pointer-events:none}
.ns-app .overlay > *{position:relative}
@keyframes nsfade{from{opacity:0}to{opacity:1}}
.ns-app .ochip{display:inline-flex;align-items:center;gap:7px;padding:6px 14px;border-radius:99px;background:rgba(99,102,241,.14);border:1px solid rgba(99,102,241,.4);color:var(--ptext);font-size:12.5px;font-weight:800}
.ns-app .ochip svg{width:14px;height:14px;stroke-width:2.4}
.ns-app .radar{width:250px;height:250px;position:relative;margin:18px auto 0}
.ns-app .radar canvas{width:100%;height:100%}
.ns-app .radar .mid{position:absolute;left:50%;top:50%;width:27%;height:27%;transform:translate(-50%,-50%);border-radius:50%;background:var(--grad);display:grid;place-items:center;border:3px solid rgba(255,255,255,.18)}
.ns-app .radar .mid svg{width:52%;height:52%;color:#fff;stroke-width:2.4}
.ns-app .pct{font-size:44px;font-weight:800;line-height:1;background:linear-gradient(90deg,#22D3EE,#6366F1);-webkit-background-clip:text;background-clip:text;color:transparent;font-variant-numeric:tabular-nums;margin-top:16px}
.ns-app .prog{height:10px;border-radius:99px;background:var(--well);overflow:hidden;width:100%;margin-top:8px}
.ns-app .prog i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#22D3EE,#6366F1);width:0;transition:width .35s ease-out;margin-right:0;margin-left:auto}
.ns-app .found{display:flex;align-items:center;gap:12px;text-align:right;width:100%;margin-top:14px}
.ns-app .found b{font-size:32px;color:var(--cyan);font-variant-numeric:tabular-nums;min-width:42px;text-align:center}
.ns-app .ipchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.ns-app .ipchips span{padding:3px 10px;border-radius:99px;background:var(--well);border:1px solid var(--line);font-size:11.5px;color:var(--muted);font-weight:700;direction:ltr;animation:nspop .35s ease-out}
@keyframes nspop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
.ns-app .bigbtn{width:100%;height:54px;border-radius:18px;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:800;font-size:16px;cursor:pointer;background:var(--grad);color:#fff}
.ns-app .bigbtn.ghost{background:var(--glass);border:1px solid var(--line);color:var(--text)}
.ns-app .bigbtn svg{width:19px;height:19px;stroke-width:2.3}
.ns-app .check{width:116px;height:116px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(closest-side,rgba(34,197,94,.3),transparent)}
.ns-app .check div{width:84px;height:84px;border-radius:50%;border:3px solid var(--green);background:rgba(34,197,94,.16);display:grid;place-items:center;color:var(--green)}
.ns-app .check svg{width:44px;height:44px;stroke-width:3.2;stroke-dasharray:30;stroke-dashoffset:30;animation:nsdraw .6s .15s ease-out forwards}
@keyframes nsdraw{to{stroke-dashoffset:0}}
.ns-app .fadein{animation:nsfade .35s ease-out}
.ns-app .note{font-size:11.5px;color:var(--muted);display:flex;gap:7px;align-items:flex-start;line-height:1.5}
.ns-app .note svg{width:14px;height:14px;margin-top:2px}
@media (prefers-reduced-motion:reduce){.ns-app *{animation:none!important;transition:none!important}}
