:root{--bg:#0d1013;--panel:#15191d;--panel2:#1b2025;--line:#2c333a;--text:#eef2f5;--muted:#8e9aa4;--orange:#ff8a00;--green:#25c77a;--red:#ff525d;--amber:#f3bd41;--radius:4px}*{box-sizing:border-box}body{margin:0;font:14px/1.45 Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:var(--text);text-decoration:none}.topbar{height:58px;padding:0 22px;border-bottom:1px solid var(--line);background:#101418;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:30}.topbar>div{display:flex;gap:12px;align-items:center}.topbar nav{display:flex;gap:16px;align-items:center;color:var(--muted)}.brand-kicker,.eyebrow{font-size:10px;letter-spacing:.16em;color:var(--orange);font-weight:800}.shell{max-width:1540px;margin:auto;padding:18px}.hero{display:flex;gap:20px;justify-content:space-between;align-items:flex-end;border-left:3px solid var(--orange);padding:14px 16px;background:var(--panel);border-top:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line)}h1,h2,p{margin-top:0}h1{margin-bottom:4px;font-size:25px}h2{margin-bottom:2px;font-size:16px}.hero p,.panel-head p{color:var(--muted);margin-bottom:0}.toolbar,.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}input,select{background:#0f1316;border:1px solid var(--line);color:var(--text);border-radius:var(--radius);padding:10px 11px;outline:none}input:focus,select:focus{border-color:var(--orange)}.btn,.filter{border:1px solid var(--line);background:#20262b;color:var(--text);padding:9px 12px;border-radius:3px;cursor:pointer;font-weight:700}.btn.primary,.filter.active{background:var(--orange);border-color:var(--orange);color:#111}.btn.danger{background:#421b20;border-color:#6b262d;color:#ffdce0}.btn.small{padding:6px 9px}.btn.wide{width:100%}.kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:10px 0}.kpis article{background:var(--panel);border:1px solid var(--line);padding:11px 12px}.kpis span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.kpis b{font-size:20px}.good{color:var(--green)}.bad{color:var(--red)}.warn{color:var(--amber)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px;border-bottom:1px solid var(--line)}.table-scroll{max-height:calc(100vh - 300px);overflow:auto}table{width:100%;border-collapse:collapse;min-width:1050px}th,td{padding:9px 10px;border-bottom:1px solid #262c31;text-align:left;white-space:nowrap}th{position:sticky;top:0;background:#1d2328;z-index:2;color:#abb6bf;font-size:11px;text-transform:uppercase;letter-spacing:.06em}tbody tr:hover{background:#191e22;box-shadow:inset 3px 0 var(--orange)}.status{font-size:10px;font-weight:800;padding:4px 6px;border-radius:2px}.status.online{background:#123a29;color:#67e9a9}.status.offline{background:#3a171b;color:#ff8f97}.status.disabled{background:#3b3215;color:#f6d471}.empty{color:var(--muted);text-align:center;padding:28px}.split{display:grid;grid-template-columns:1fr 1.2fr;gap:10px}.form-grid{padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px}.nas-list{padding:10px}.nas-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px;border-bottom:1px solid var(--line)}.nas-row span{display:block;color:var(--muted);font-size:12px}.alert{padding:10px 12px;margin:10px;border:1px solid}.alert.success{border-color:#24583f;background:#142c22}.alert.error{border-color:#753039;background:#34181c}.auth-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 20%,#23282d 0,#0d1013 40%)}.auth-card{width:min(420px,92vw);background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--orange);padding:26px}.auth-card form{display:grid;gap:12px}.auth-card label{display:grid;gap:6px;color:var(--muted)}.muted{color:var(--muted);font-size:12px}.progress-modal{position:fixed;inset:0;background:#000a;display:grid;place-items:center;z-index:100}.progress-modal.hidden{display:none}.progress-box{width:min(520px,90vw);background:#15191d;border:1px solid var(--line);padding:18px}.progress-title{font-weight:800;margin-bottom:12px}.progress-track{height:7px;background:#0d1013;border:1px solid var(--line);margin:10px 0}.progress-track div{height:100%;background:var(--orange);transition:width .25s}.toast-stack{position:fixed;right:16px;bottom:16px;display:grid;gap:8px;z-index:120}.toast{background:#18251f;border:1px solid #2f704f;border-left:3px solid var(--green);padding:10px 12px;min-width:280px}.toast.error{background:#2f181b;border-color:#71343a;border-left-color:var(--red)}@media(max-width:900px){.kpis{grid-template-columns:repeat(2,1fr)}.hero,.panel-head{align-items:stretch;flex-direction:column}.split{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.shell{padding:10px}.topbar{padding:0 12px}.topbar nav span{display:none}}
.active-nav{color:var(--orange)!important}.topbar nav a:hover{color:var(--orange)}.dashboard-kpis article small{display:block;color:var(--muted);margin-top:3px}.dashboard-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:10px;margin-bottom:10px}.traffic-hero{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border-bottom:1px solid var(--line)}.traffic-hero>div{background:var(--panel);padding:16px}.traffic-hero span,.health-grid span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.traffic-hero b{font-size:27px}.traffic-hero>div:first-child b,.rate-rx{color:var(--green)}.traffic-hero>div:last-child b,.rate-tx{color:var(--orange)}.chart-wrap{padding:12px;min-height:235px}.chart-wrap canvas{display:block;width:100%;max-width:100%}.chart-wrap.large{min-height:285px}.health-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line)}.health-grid div{background:var(--panel);padding:15px}.health-grid b{font-size:18px;display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis}.inline-error{margin:10px;padding:10px;border:1px solid #71343a;background:#2f181b;color:#ffd7da}.hidden{display:none!important}.traffic-table-panel{margin-top:10px}.traffic-scroll{max-height:420px}.traffic-kpis{margin-bottom:10px}@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.topbar{height:auto;min-height:58px;gap:10px;align-items:flex-start;padding-top:10px;padding-bottom:10px}.topbar nav{flex-wrap:wrap;justify-content:flex-end}.traffic-hero{grid-template-columns:1fr}.health-grid{grid-template-columns:1fr 1fr}}

.icon{width:18px;height:18px;display:inline-block;vertical-align:middle;flex:0 0 auto}.icon.sm{width:14px;height:14px}.icon.lg{width:20px;height:20px}.icon.xl{width:22px;height:22px}.brand{display:flex;gap:10px;align-items:center}.brand-logo{width:34px;height:34px;border:1px solid var(--line);background:linear-gradient(180deg,#181d22,#101418);display:grid;place-items:center;color:var(--orange);border-radius:8px;box-shadow:inset 0 0 0 1px rgba(255,138,0,.08)}.brand-title{display:flex;flex-direction:column;gap:2px}.nav-link,.nav-user{display:inline-flex;align-items:center;gap:8px}.nav-user{color:var(--muted);padding:8px 0}.topbar nav a{display:inline-flex;align-items:center;gap:8px;padding:8px 0}.hero-action{display:inline-flex;align-items:center;gap:8px}.section-title{display:flex;align-items:center;gap:10px}.kpis article{position:relative;padding-left:48px;min-height:74px}.kpis article .card-icon{position:absolute;left:14px;top:14px;width:24px;height:24px;color:var(--orange);opacity:.95}.kpis article .card-icon.good{color:var(--green)}.kpis article .card-icon.bad{color:var(--red)}.kpis article .card-icon.warn{color:var(--amber)}.panel-head .status{align-self:center}.btn{display:inline-flex;align-items:center;gap:8px}.filters input{min-width:240px}.filter{display:inline-flex;align-items:center;gap:6px}.field-icon{position:relative}.field-icon .icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted)}.field-icon input{padding-left:36px}.nas-row b,.panel-head h2,.hero h1{letter-spacing:-.01em}.soft-badge{display:inline-flex;gap:6px;align-items:center;background:#141a1e;border:1px solid var(--line);padding:6px 8px;border-radius:999px;color:var(--muted);font-size:12px}.topbar nav .active-nav{position:relative}.topbar nav .active-nav:after{content:"";position:absolute;left:0;right:0;bottom:-16px;height:2px;background:var(--orange)}@media(max-width:900px){.topbar nav a span,.topbar nav .nav-user span{display:none}.brand-title strong{font-size:14px}.topbar nav{gap:12px}.kpis article{padding-left:42px}.kpis article .card-icon{left:12px;top:12px;width:20px;height:20px}.filters input{min-width:unset;width:100%}}

/* v1.0.5 MOBILE ONLY */
html{background:#07090b}body{max-width:480px;margin:0 auto;min-height:100vh;box-shadow:0 0 0 1px #171b1f,0 0 60px #000;background:var(--bg);padding-bottom:76px}.shell{max-width:480px;padding:10px}.topbar{height:56px;padding:0 12px;position:sticky;top:0;background:#0f1316;border-bottom:1px solid var(--line);z-index:60}.topbar>div:first-child{width:100%}.brand-logo{width:32px;height:32px}.brand-title strong{font-size:13px}.brand-kicker{font-size:9px}.topbar nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(480px,100vw);height:66px;background:#101418;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);gap:0;padding:0;z-index:100}.topbar nav a,.topbar nav .nav-user{height:66px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:0;color:var(--muted);font-size:10px}.topbar nav a .icon,.topbar nav .nav-user .icon{width:20px;height:20px}.topbar nav a span,.topbar nav .nav-user span{display:block!important;font-size:9px;line-height:1}.topbar nav .nav-user{display:none}.topbar nav a[href="logout.php"] span{font-size:9px}.topbar nav .active-nav{color:var(--orange)!important}.topbar nav .active-nav:after{left:25%;right:25%;bottom:auto;top:0;height:2px}.hero{padding:12px;display:block;border-left:2px solid var(--orange);margin-bottom:8px}.hero h1{font-size:20px;line-height:1.2;margin-bottom:6px}.hero p{font-size:12px;line-height:1.45}.hero .toolbar{margin-top:12px;display:grid;grid-template-columns:1fr;gap:8px}.hero .toolbar select,.hero .toolbar .btn,.hero .toolbar button{width:100%;min-height:44px}.kpis,.dashboard-kpis,.traffic-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:8px 0}.kpis article{min-height:78px;padding:10px 8px 9px 39px}.kpis article .card-icon{left:10px;top:12px;width:19px;height:19px}.kpis span{font-size:9px;line-height:1.2}.kpis b{font-size:18px;line-height:1.2;word-break:break-word}.kpis article small{font-size:9px}.dashboard-grid{grid-template-columns:1fr;gap:8px}.panel{border-radius:3px}.panel-head{padding:11px;display:block}.panel-head h2{font-size:14px;margin-bottom:2px}.panel-head p{font-size:11px}.panel-head .status{display:inline-block;margin-top:8px}.traffic-hero{grid-template-columns:1fr 1fr}.traffic-hero>div{padding:12px}.traffic-hero b{font-size:20px}.health-grid{grid-template-columns:1fr 1fr}.health-grid div{padding:12px}.health-grid b{font-size:14px}.chart-wrap,.chart-wrap.large{padding:8px;min-height:190px;overflow:hidden}.chart-wrap canvas{height:190px!important}.nas-row{align-items:flex-start;padding:11px 8px;gap:8px}.nas-row>div:first-child{min-width:0}.nas-row b{font-size:12px}.nas-row span{font-size:10px;white-space:normal;word-break:break-word}.nas-row form .btn{min-height:36px}.split{grid-template-columns:1fr;gap:8px}.form-grid{grid-template-columns:1fr;padding:12px;gap:10px}.form-grid input,.form-grid select{min-height:44px;width:100%}.form-grid .btn{min-height:44px}.filters{width:100%;display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-top:10px}.filters .field-icon{grid-column:1/-1}.filters input{width:100%;min-width:0;height:42px}.filter{min-height:38px;justify-content:center;padding:7px}.table-scroll{max-height:58vh;overflow:auto;-webkit-overflow-scrolling:touch}.traffic-scroll{max-height:55vh}table{min-width:840px;font-size:11px}th,td{padding:8px 7px}th{font-size:9px}.status{font-size:9px;padding:3px 5px}.btn{min-height:40px;justify-content:center}.btn.small{min-height:34px}.toast-stack{left:10px;right:10px;bottom:78px}.toast{min-width:0;width:100%;font-size:12px}.progress-box{width:calc(100vw - 24px);max-width:440px}.auth-body{display:flex;align-items:center;justify-content:center;padding:16px}.auth-card{width:100%;max-width:420px;padding:20px}.auth-card input,.auth-card .btn{min-height:44px}.inline-error{font-size:11px;word-break:break-word}.soft-badge{font-size:10px}.section-title{gap:7px}.section-title h2{display:flex;align-items:center;gap:7px}.topbar nav a:nth-of-type(5){display:flex}
@media(min-width:481px){body:before{content:"MOBILE ONLY";position:fixed;top:10px;right:12px;color:#58616a;font-size:9px;letter-spacing:.16em;z-index:2}}

/* v1.0.6 NAS MOBILE TOOLS */
.nas-form label small{font-size:9px;color:var(--muted);margin-top:1px}.nas-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.btn.test-api{background:#14241f;border-color:#27634b;color:#71e4ad}.btn.test-api:hover{background:#193329}.nas-card{padding:11px 8px;border-bottom:1px solid var(--line)}.nas-card-main{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.nas-card-main>div{min-width:0}.nas-card-main b{display:block;font-size:12px}.nas-card-main span:not(.status){display:block;margin-top:3px;color:var(--muted);font-size:10px;white-space:normal;word-break:break-word}.nas-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.nas-actions form{margin:0}.nas-actions .btn{width:100%;min-width:0;padding:7px 5px;font-size:10px}.panel-head>a.btn{float:right}@media(max-width:360px){.nas-actions{grid-template-columns:1fr}.nas-form-actions{grid-template-columns:1fr}}

/* v1.0.7 TEST API PROGRESS POPUP */
.api-progress-box{border-top:2px solid var(--orange);box-shadow:0 18px 70px #000c}.api-progress-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.api-progress-head .progress-title{margin:2px 0 0;font-size:15px}.api-progress-stage{margin-top:13px;min-height:20px;color:#dbe2e7;font-size:12px}.api-progress-meta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:10px;margin-top:6px}.api-progress-meta span:last-child{max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}.api-test-result{margin-top:13px;border:1px solid var(--line);padding:11px;background:#101418}.api-test-result.success{border-color:#2d6d50;background:#12261e}.api-test-result.error{border-color:#71343a;background:#2f181b}.api-result-title{font-size:12px;font-weight:800;margin-bottom:8px}.api-result-grid{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:10px}.api-result-grid span{color:var(--muted)}.api-result-grid b{text-align:right;word-break:break-word}.api-error-text{font-size:11px;color:#ffd8db;word-break:break-word;line-height:1.5}#apiProgressClose{margin-top:10px}.progress-track #apiProgressBar{box-shadow:0 0 14px rgba(255,138,0,.28)}


/* v1.0.8 MOBILE DASHBOARD PERFECT */
.perfect-dashboard{padding-bottom:10px}.mobile-hero{padding:11px}.hero-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.mobile-hero h1{font-size:19px;margin-bottom:3px}.icon-btn{width:38px;height:38px;border:1px solid var(--line);background:#11161a;color:var(--orange);border-radius:8px;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}.icon-btn .icon{width:18px;height:18px}.icon-btn.spinning .icon{animation:dashSpin .75s linear infinite}@keyframes dashSpin{to{transform:rotate(360deg)}}.live-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.live-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#101418;border-radius:999px;padding:5px 8px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.05em}.live-chip i{width:7px;height:7px;border-radius:50%;background:#66727b}.live-chip.online{color:#84efb9;border-color:#245b42;background:#11261d}.live-chip.online i{background:var(--green);box-shadow:0 0 0 3px rgba(37,199,122,.12)}.live-chip.offline{color:#ff9da4;border-color:#6b2e35;background:#2c171a}.live-chip.offline i{background:var(--red)}.sample-time{font-size:9px;color:var(--muted)}.compact-kpis article{min-height:68px;padding-top:9px;padding-bottom:8px}.compact-kpis b{font-size:17px}.compact-kpis article small{margin-top:1px}.compact-head{padding:10px}.compact-head .section-title h2{margin:0}.perfect-traffic{margin-bottom:8px}.mobile-traffic-hero>div{padding:10px 11px}.mobile-traffic-hero span{font-size:9px}.mobile-traffic-hero b{font-size:19px}.mini-chart-wrap{height:138px;padding:6px 7px 3px;overflow:hidden}.mini-chart-wrap canvas{width:100%;height:138px!important;display:block}.health-panel,.top-users-panel{margin-bottom:8px}.perfect-health{grid-template-columns:repeat(2,1fr)}.perfect-health div{padding:10px}.perfect-health div.wide{grid-column:1/-1}.perfect-health span{font-size:9px}.perfect-health b{font-size:13px;margin-top:2px;white-space:normal;word-break:break-word}.top-users{padding:2px 10px 8px}.top-user-row{padding:9px 0;border-bottom:1px solid #252b30}.top-user-row:last-child{border-bottom:0}.top-user-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.top-user-head>div:first-child{display:grid;grid-template-columns:auto 1fr;column-gap:6px;align-items:center;min-width:0}.top-user-head .rank{grid-row:1/3;color:var(--orange);font-size:10px;font-weight:800}.top-user-head b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-user-head small{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-user-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:0 0 auto}.top-user-meta b{font-size:10px}.usage-track{height:4px;background:#0d1114;border:1px solid #242b30;margin-top:7px;border-radius:99px;overflow:hidden}.usage-track i{display:block;height:100%;background:linear-gradient(90deg,#b96000,var(--orange));border-radius:99px}.compact-empty{padding:16px 8px;font-size:11px}.compact-fleet .nas-row{padding:9px 8px}.compact-fleet .nas-row b{font-size:11px}.compact-fleet .nas-row span{font-size:9px}.perfect-dashboard>.panel:last-child{margin-bottom:2px}@media(max-width:360px){.mobile-hero h1{font-size:17px}.live-row{align-items:flex-start;flex-direction:column}.perfect-health{grid-template-columns:1fr 1fr}}

.uplink-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line);background:#11161a;color:var(--muted);font-size:11px}.uplink-meta #uplinkName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.soft-badge.uplink-up{color:var(--green);border-color:#24583f}.soft-badge.uplink-down{color:var(--red);border-color:#71343a}.perfect-traffic .uplink-meta{padding:7px 10px}

/* v1.0.10 DOWNLOAD / UPLOAD LABELS */
.mobile-traffic-hero small{display:block;margin-top:2px;color:var(--muted);font-size:8px;letter-spacing:.02em}.traffic-legend{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:7px 10px 0;color:var(--muted);font-size:9px}.traffic-legend span{display:inline-flex;align-items:center;gap:5px}.traffic-legend i{width:14px;height:2px;border-radius:2px;display:inline-block}.traffic-legend .download i{background:var(--green)}.traffic-legend .upload i{background:var(--orange)}

/* v1.0.13 Multi Login + Register */
.auth-brand-row{display:flex;align-items:center;gap:12px;margin-bottom:12px}.auth-brand-row h1{font-size:20px;margin:2px 0 0}.auth-switch{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--muted);font-size:12px}.auth-switch a{color:var(--orange);font-weight:800}.auth-switch a:hover{text-decoration:underline}.center-text{text-align:center}.auth-card{max-height:calc(100vh - 24px);overflow:auto}.auth-card input{width:100%;min-height:44px}.auth-card .btn{justify-content:center;min-height:44px}@media(max-width:520px){.auth-body{align-items:flex-start;padding:12px 10px}.auth-card{width:100%;max-width:480px;margin:auto;padding:20px 16px}.auth-switch{font-size:11px}}


/* v1.0.14 BRANDING LOGO */
.brand-logo.brand-image{width:auto;height:auto;min-width:0;border:0;background:transparent;box-shadow:none;padding:0;border-radius:0}
.brand-logo.brand-image img{display:block;height:auto;max-width:100%}
.brand-logo.brand-image.topbar-logo img{width:138px;max-height:34px;object-fit:contain;object-position:left center;filter:drop-shadow(0 0 0 rgba(0,0,0,0))}
.brand-logo.brand-image.auth-logo{display:block;width:100%;text-align:center;margin:0 auto 8px}
.brand-logo.brand-image.auth-logo img{width:min(250px,100%);max-height:96px;object-fit:contain;margin:0 auto}
.auth-brand-stack{display:grid;gap:4px;justify-items:start;margin-bottom:12px}.auth-brand-stack.centered{justify-items:center;text-align:center}.auth-company{font-size:11px;letter-spacing:.12em;color:var(--muted);font-weight:700;text-transform:uppercase}.auth-subtitle{color:var(--muted);margin:4px 0 0}.topbar .brand-title .brand-kicker.company-kicker{font-size:9px;letter-spacing:.12em;color:#b9c3cb}.topbar .brand-title strong{font-size:15px}.auth-card .brand-kicker{margin-bottom:2px}
@media(max-width:480px){.brand-logo.brand-image.topbar-logo img{width:128px;max-height:30px}.topbar .brand-title strong{font-size:14px}.auth-brand-stack{justify-items:center;text-align:center}.auth-company{font-size:10px}}

/* v1.0.16 MOBILE NAS UI FIX */
body{padding-bottom:0}.shell{padding-bottom:92px}
.topbar{min-height:58px;height:58px;padding:7px 12px;align-items:center;overflow:hidden}.topbar .brand{gap:9px;min-width:0;overflow:hidden}.topbar .brand-title{min-width:0}.topbar .brand-title .company-kicker{font-size:8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .brand-title strong{font-size:14px;white-space:nowrap}
.brand-logo.brand-image.topbar-logo{width:38px!important;height:34px!important;min-width:38px!important;overflow:hidden;position:relative;display:block!important;border:1px solid #2b3238!important;background:#0f1316!important;border-radius:7px!important}
.brand-logo.brand-image.topbar-logo img{position:absolute!important;width:102px!important;max-width:none!important;height:auto!important;max-height:none!important;top:-1px!important;left:50%!important;transform:translateX(-50%)!important;object-fit:initial!important}
.nas-mobile-shell{padding-top:8px}.nas-mobile-shell .split{gap:8px}.nas-mobile-shell .panel-head{padding:10px}.nas-mobile-shell .panel-head h2{font-size:14px}.nas-mobile-shell .panel-head p{font-size:10px}.nas-mobile-shell .nas-form{padding:10px;gap:8px}.nas-mobile-shell .nas-form label{gap:4px;font-size:11px}.nas-mobile-shell .nas-form input{min-height:40px;height:40px;padding:8px 10px;font-size:13px}.nas-mobile-shell .nas-form label small{font-size:8px;line-height:1.35}.nas-mobile-shell .nas-form-actions{position:sticky;bottom:66px;z-index:24;background:linear-gradient(180deg,rgba(21,25,29,.94),#15191d 30%);margin:4px -10px -10px;padding:9px 10px 10px;border-top:1px solid var(--line);box-shadow:0 -8px 20px rgba(0,0,0,.24)}.nas-mobile-shell .nas-form-actions .btn{min-height:42px}.nas-mobile-shell .nas-list{padding:5px 8px 10px}.nas-mobile-shell .nas-card{padding:10px 4px}.nas-mobile-shell .nas-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.nas-mobile-shell .nas-actions .btn{font-size:10px;min-height:36px}.nas-mobile-shell .nas-actions form{width:100%}.nas-mobile-shell .nas-actions form .btn{width:100%}
@media(max-width:380px){.topbar .brand-title .company-kicker{max-width:190px}.nas-mobile-shell .nas-form-actions{grid-template-columns:1fr 1fr}.nas-mobile-shell .nas-actions{grid-template-columns:1fr 1fr}}


/* v1.0.17 POST LOGIN / REGISTER SPLASHSCREEN */
.splash-body{min-height:100vh;margin:0;background:radial-gradient(circle at 50% 28%,#20262b 0,#0d1013 43%,#07090b 100%);display:grid;place-items:center;padding:20px;color:var(--text)}.splash-card{width:min(430px,94vw);text-align:center;padding:28px 22px 24px;background:#12171b;border:1px solid var(--line);border-top:2px solid var(--orange);box-shadow:0 20px 80px #000a}.splash-logo .auth-logo{margin-bottom:10px}.splash-card h1{font-size:22px;margin:5px 0 5px}.splash-card p{color:var(--muted);font-size:12px;margin:0 0 14px}.splash-user{font-size:12px;color:#cbd4db;margin-bottom:18px}.splash-progress{height:7px;background:#0b0f12;border:1px solid var(--line);overflow:hidden;border-radius:99px}.splash-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#b65d00,var(--orange));transition:width .32s ease;box-shadow:0 0 16px rgba(255,138,0,.3)}.splash-status{display:flex;justify-content:space-between;gap:12px;margin-top:8px;color:var(--muted);font-size:10px}.splash-status b{color:var(--orange)}@media(max-width:480px){.splash-body{padding:14px}.splash-card{padding:24px 16px 20px}.splash-card h1{font-size:20px}}


/* v1.0.18 SELECT MOBILE / WEBSITE MODE */
.mode-switch-top{position:absolute;right:12px;top:10px;z-index:80;border:1px solid var(--line);background:#11161a;color:var(--orange);font-size:8px;font-weight:800;letter-spacing:.08em;padding:5px 7px;border-radius:999px}.mode-switch-top:hover{border-color:var(--orange)}
.mode-body{min-height:100vh;margin:0;padding:18px;background:radial-gradient(circle at 50% 20%,#20262b 0,#0d1013 43%,#07090b 100%);display:grid;place-items:center}.mode-card{width:min(880px,96vw);background:#12171b;border:1px solid var(--line);border-top:2px solid var(--orange);padding:24px}.mode-brand{text-align:center;margin-bottom:18px}.mode-brand .auth-logo img{max-height:76px}.mode-brand h1{font-size:24px;margin:4px 0}.mode-brand p{color:var(--muted);margin:0}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mode-option{background:#151a1f;border:1px solid var(--line);padding:16px;display:flex;flex-direction:column;gap:12px;transition:.18s}.mode-option:hover,.mode-option.selected{border-color:var(--orange);box-shadow:inset 0 0 0 1px rgba(255,138,0,.14)}.mode-copy h2{font-size:18px;margin:0 0 4px}.mode-copy p{font-size:12px;color:var(--muted);margin:0 0 8px;min-height:36px}.mode-copy span{font-size:9px;font-weight:800;color:var(--orange);letter-spacing:.08em}.mode-device{margin:auto;display:grid;place-items:center;border:2px solid #6d7881;background:#0c1013}.mode-device.phone{width:74px;height:126px;border-radius:12px;padding:8px 5px}.mode-device.desktop{width:154px;height:96px;border-radius:5px;padding:6px}.mode-device.desktop:after{content:"";width:54px;height:8px;border-top:2px solid #6d7881;margin-top:12px}.mode-screen{width:100%;height:100%;background:#11171b;border:1px solid #2b3339;display:grid;gap:5px;padding:7px}.mode-screen i{display:block;background:#252c31;border-left:2px solid var(--orange);min-height:10px}.mode-screen i:nth-child(2){background:#193025;border-left-color:var(--green)}.mode-screen i:nth-child(3){background:#2b2020;border-left-color:var(--red)}.mode-back{display:block;text-align:center;margin-top:16px;color:var(--muted);font-size:11px}.mode-back:hover{color:var(--orange)}

/* Website-only overrides the mobile-only shell */
body.ui-website{max-width:none;margin:0;min-height:100vh;box-shadow:none;padding-bottom:0;background:var(--bg)}body.ui-website:before{content:none!important}.ui-website .shell{max-width:1540px;padding:18px}.ui-website .topbar{height:58px;padding:0 22px;position:sticky;top:0}.ui-website .topbar>div:first-child{width:auto}.ui-website .brand-logo.brand-image.topbar-logo img{width:150px;max-height:35px}.ui-website .topbar nav{position:static;transform:none;width:auto;height:auto;background:transparent;border:0;display:flex;grid-template-columns:none;gap:16px;padding:0}.ui-website .topbar nav a,.ui-website .topbar nav .nav-user{height:auto;display:inline-flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:7px;padding:8px 0;font-size:12px}.ui-website .topbar nav a .icon,.ui-website .topbar nav .nav-user .icon{width:15px;height:15px}.ui-website .topbar nav a span,.ui-website .topbar nav .nav-user span{display:inline!important;font-size:12px}.ui-website .topbar nav .active-nav:after{left:0;right:0;bottom:-10px;top:auto;height:2px}.ui-website .topbar nav a[href="logout.php"] span{font-size:12px}.ui-website .mode-switch-top{right:210px;top:16px}.ui-website .hero{display:flex;align-items:flex-end;padding:14px 16px;margin-bottom:0}.ui-website .hero h1{font-size:25px}.ui-website .hero p{font-size:13px}.ui-website .hero .toolbar{margin-top:0;display:flex;grid-template-columns:none}.ui-website .hero .toolbar select,.ui-website .hero .toolbar .btn,.ui-website .hero .toolbar button{width:auto;min-height:40px}.ui-website .kpis,.ui-website .dashboard-kpis,.ui-website .traffic-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}.ui-website .kpis article{min-height:84px;padding:12px 12px 11px 48px}.ui-website .kpis article .card-icon{left:14px;top:15px;width:23px;height:23px}.ui-website .kpis span{font-size:10px}.ui-website .kpis b{font-size:22px}.ui-website .panel-head{display:flex;padding:13px}.ui-website .panel-head h2{font-size:16px}.ui-website .panel-head p{font-size:12px}.ui-website .panel-head .status{margin-top:0}.ui-website .dashboard-grid{grid-template-columns:1.35fr 1fr}.ui-website .traffic-hero>div{padding:16px}.ui-website .traffic-hero b{font-size:27px}.ui-website .health-grid div{padding:15px}.ui-website .health-grid b{font-size:18px}.ui-website .chart-wrap,.ui-website .chart-wrap.large{min-height:260px;padding:12px}.ui-website .chart-wrap canvas{height:auto!important}.ui-website .mini-chart-wrap{height:230px;padding:10px}.ui-website .mini-chart-wrap canvas{height:230px!important}.ui-website .split{grid-template-columns:1fr 1.2fr;gap:10px}.ui-website .form-grid{grid-template-columns:1fr 1fr;padding:14px;gap:12px}.ui-website .form-grid input,.ui-website .form-grid select{min-height:40px}.ui-website .filters{width:auto;display:flex;grid-template-columns:none;margin-top:0}.ui-website .filters .field-icon{grid-column:auto}.ui-website .filters input{width:auto;min-width:260px}.ui-website .table-scroll{max-height:calc(100vh - 300px)}.ui-website table{min-width:1050px;font-size:13px}.ui-website th,.ui-website td{padding:9px 10px}.ui-website th{font-size:10px}.ui-website .nas-row{align-items:center;padding:11px}.ui-website .nas-actions{grid-template-columns:repeat(4,auto);justify-content:end}.ui-website .nas-form-actions{position:static;grid-template-columns:1fr 1fr;background:transparent;border:0;padding:0;box-shadow:none}.ui-website .mobile-sticky-actions{position:static!important}.ui-website .perfect-health{grid-template-columns:repeat(4,1fr)}.ui-website .perfect-health div.wide{grid-column:auto}.ui-website .top-users{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:10px}.ui-website .top-user-row{border:1px solid var(--line);padding:10px}.ui-website .compact-fleet{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.ui-website .compact-fleet .nas-row{border:1px solid var(--line)}
@media(max-width:900px){.ui-website .topbar nav a span{display:none!important}.ui-website .mode-switch-top{right:12px;top:62px}.ui-website .dashboard-grid{grid-template-columns:1fr}.ui-website .kpis,.ui-website .dashboard-kpis,.ui-website .traffic-kpis{grid-template-columns:repeat(2,1fr)}.ui-website .top-users{grid-template-columns:1fr 1fr}.ui-website .compact-fleet{grid-template-columns:1fr}}
@media(max-width:560px){.mode-body{padding:10px}.mode-card{padding:18px 12px}.mode-grid{grid-template-columns:1fr}.mode-option{padding:13px}.mode-device.desktop{width:130px}.mode-brand h1{font-size:20px}}


/* v1.0.19 ABOUT - SMART-OLT PROFILE ALIGNMENT */
.topbar nav{grid-template-columns:repeat(6,1fr)}
.about-shell{padding-bottom:92px}.about-hero{padding:14px;margin-bottom:8px;border-left:2px solid var(--orange)}.about-brand{display:flex;align-items:center;gap:14px}.about-brand .auth-logo{width:120px;margin:0;flex:0 0 120px}.about-brand .auth-logo img{width:100%;max-height:58px}.about-brand h1{font-size:19px;margin:3px 0}.about-brand p{font-size:11px;color:var(--muted);margin:0}.about-status{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.about-grid{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:8px}.about-card{padding:13px;display:grid;grid-template-columns:36px 1fr;gap:12px;align-items:start}.about-card-icon{width:36px;height:36px;border:1px solid var(--line);background:#101418;color:var(--orange);display:grid;place-items:center;border-radius:6px}.about-card h2{font-size:14px;margin:2px 0 4px}.about-card p{font-size:11px;color:var(--muted);margin:0;line-height:1.55}.about-label{font-size:9px;color:var(--orange);text-transform:uppercase;letter-spacing:.12em;font-weight:800}.about-link{margin-top:9px;min-height:34px}.about-coverage,.about-product{margin-bottom:8px}.coverage-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}.coverage-grid>div{background:var(--panel);padding:11px}.coverage-grid b{display:block;font-size:11px;margin-bottom:3px}.coverage-grid span{display:block;color:var(--muted);font-size:9px;line-height:1.45}.product-info{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}.product-info>div{background:var(--panel);padding:11px}.product-info span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.07em}.product-info b{display:block;font-size:11px;margin-top:3px;word-break:break-word}.about-footer{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:11px 12px;border:1px solid var(--line);background:#101418;color:var(--muted);font-size:9px}.about-footer>div{display:grid;gap:2px;min-width:0}.about-footer b{color:var(--text);font-size:10px}.about-footer small{font-size:8px;color:var(--muted)}
.ui-website .topbar nav{grid-template-columns:none}.ui-website .about-shell{max-width:1280px;padding-bottom:30px}.ui-website .about-hero{padding:18px}.ui-website .about-brand .auth-logo{width:190px;flex-basis:190px}.ui-website .about-brand .auth-logo img{max-height:82px}.ui-website .about-brand h1{font-size:26px}.ui-website .about-brand p{font-size:13px}.ui-website .about-grid{grid-template-columns:repeat(2,1fr);gap:10px}.ui-website .about-card{padding:18px;grid-template-columns:44px 1fr}.ui-website .about-card-icon{width:44px;height:44px}.ui-website .about-card h2{font-size:17px}.ui-website .about-card p{font-size:12px}.ui-website .coverage-grid{grid-template-columns:repeat(3,1fr)}.ui-website .coverage-grid>div,.ui-website .product-info>div{padding:15px}.ui-website .coverage-grid b,.ui-website .product-info b{font-size:13px}.ui-website .coverage-grid span,.ui-website .product-info span{font-size:10px}.ui-website .product-info{grid-template-columns:repeat(3,1fr)}.ui-website .about-footer{padding:14px 16px}
@media(max-width:360px){.about-brand{display:block}.about-brand .auth-logo{width:150px;margin:0 0 10px}.coverage-grid,.product-info{grid-template-columns:1fr}.about-footer{align-items:flex-start;flex-wrap:wrap}}

/* v1.0.20 NAV + ABOUT FIX */
.mode-switch-top{display:none!important}.topbar nav .nav-mode-link{color:var(--orange)}.ui-website .topbar{overflow:visible}.ui-website .topbar nav{margin-left:auto;white-space:nowrap}.ui-website .topbar .brand{flex:0 1 auto;min-width:250px}.ui-website .topbar nav a{flex:0 0 auto}.ui-website .topbar nav .nav-link[href="about.php"]{display:inline-flex!important}.ui-mobile .topbar nav .nav-mode-link{display:none!important}.ui-mobile .topbar nav{grid-template-columns:repeat(6,1fr)!important}.ui-mobile .topbar nav a[href="about.php"]{display:flex!important}@media(max-width:1180px){.ui-website .topbar nav{gap:10px}.ui-website .topbar nav a span{font-size:11px!important}.ui-website .topbar .brand-title .company-kicker{max-width:180px}}


/* v1.0.21 MOBILE DASHBOARD FINAL COMPACT */
.ui-mobile{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
.ui-mobile .topbar{height:50px;min-height:50px;padding:0 10px}
.ui-mobile .brand{gap:7px;min-width:0}
.ui-mobile .brand-logo.brand-image.topbar-logo img{width:34px!important;max-width:34px!important;max-height:28px!important;object-fit:contain}
.ui-mobile .brand-title{gap:0;min-width:0}
.ui-mobile .brand-title .company-kicker{font-size:7px!important;letter-spacing:.1em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px}
.ui-mobile .brand-title strong{font-size:12px!important;line-height:1.15}
.ui-mobile .mobile-mode-badge{display:inline-flex!important;align-items:center;gap:4px;margin-left:auto;border:1px solid #3a4248;background:#11161a;color:var(--orange);padding:3px 6px;border-radius:999px;font-size:7px;font-weight:800;letter-spacing:.08em}
.ui-mobile .mobile-mode-badge .icon{width:10px;height:10px}
.ui-website .mobile-mode-badge{display:none!important}
.ui-mobile .shell.perfect-dashboard{padding:7px 8px 18px;max-width:480px}
.ui-mobile .perfect-dashboard .mobile-hero{padding:9px 10px}
.ui-mobile .perfect-dashboard .mobile-hero h1{font-size:17px;line-height:1.15;margin-bottom:2px}
.ui-mobile .perfect-dashboard .mobile-hero p{font-size:10px;line-height:1.35;margin-bottom:7px}
.ui-mobile .perfect-dashboard .eyebrow{font-size:8px;letter-spacing:.13em}
.ui-mobile .perfect-dashboard .icon-btn{width:34px;height:34px;border-radius:7px}
.ui-mobile .perfect-dashboard .live-row{margin-top:7px}
.ui-mobile .perfect-dashboard .live-chip{padding:4px 7px;font-size:8px}
.ui-mobile .perfect-dashboard .sample-time{font-size:8px}
.ui-mobile .perfect-dashboard .toolbar{margin-top:7px;display:grid;grid-template-columns:1fr;gap:6px;width:100%}
.ui-mobile .perfect-dashboard .toolbar select{height:38px;min-height:38px;padding:7px 10px;font-size:11px;width:100%}
.ui-mobile .perfect-dashboard .toolbar .btn{min-height:38px;height:38px;font-size:11px;padding:7px 10px}
.ui-mobile .perfect-dashboard .compact-kpis{gap:6px;margin:7px 0}
.ui-mobile .perfect-dashboard .compact-kpis article{min-height:60px;padding:8px 7px 7px 34px}
.ui-mobile .perfect-dashboard .compact-kpis article .card-icon{left:9px;top:10px;width:17px;height:17px}
.ui-mobile .perfect-dashboard .compact-kpis span{font-size:8px}
.ui-mobile .perfect-dashboard .compact-kpis b{font-size:16px}
.ui-mobile .perfect-dashboard .compact-kpis small{font-size:8px;margin-top:0}
.ui-mobile .perfect-dashboard .panel{margin-bottom:7px}
.ui-mobile .perfect-dashboard .compact-head{padding:8px 9px}
.ui-mobile .perfect-dashboard .compact-head h2{font-size:12px}
.ui-mobile .perfect-dashboard .compact-head p{font-size:9px;line-height:1.3}
.ui-mobile .perfect-dashboard .status{font-size:8px;padding:3px 5px}
.ui-mobile .perfect-dashboard .uplink-meta{padding:6px 9px;font-size:9px}
.ui-mobile .perfect-dashboard .soft-badge{font-size:8px;padding:4px 6px}
.ui-mobile .perfect-dashboard .mobile-traffic-hero>div{padding:8px 9px}
.ui-mobile .perfect-dashboard .mobile-traffic-hero span{font-size:8px}
.ui-mobile .perfect-dashboard .mobile-traffic-hero b{font-size:18px;line-height:1.15}
.ui-mobile .perfect-dashboard .mobile-traffic-hero small{font-size:7px}
.ui-mobile .perfect-dashboard .traffic-legend{padding:5px 9px 0;font-size:8px;gap:10px}
.ui-mobile .perfect-dashboard .mini-chart-wrap{height:112px;padding:4px 6px 2px}
.ui-mobile .perfect-dashboard .mini-chart-wrap canvas{height:112px!important}
.ui-mobile .perfect-dashboard .perfect-health div{padding:8px 9px}
.ui-mobile .perfect-dashboard .perfect-health span{font-size:8px}
.ui-mobile .perfect-dashboard .perfect-health b{font-size:12px}
.ui-mobile .perfect-dashboard .top-users{padding:1px 9px 6px}
.ui-mobile .perfect-dashboard .top-user-row{padding:7px 0}
.ui-mobile .perfect-dashboard .top-user-head b{font-size:10px}
.ui-mobile .perfect-dashboard .top-user-head small,.ui-mobile .perfect-dashboard .top-user-meta b{font-size:8px}
.ui-mobile .perfect-dashboard .compact-fleet .nas-row{padding:7px}
.ui-mobile .perfect-dashboard .compact-fleet .nas-row b{font-size:10px}
.ui-mobile .perfect-dashboard .compact-fleet .nas-row span{font-size:8px}
.ui-mobile .topbar nav{height:calc(64px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);grid-template-columns:repeat(6,1fr)!important;background:#101418f5;backdrop-filter:blur(10px);box-shadow:0 -8px 24px rgba(0,0,0,.22)}
.ui-mobile .topbar nav a{height:64px;font-size:8px;gap:3px}
.ui-mobile .topbar nav a .icon{width:18px;height:18px}
.ui-mobile .topbar nav .active-nav:after{bottom:auto;top:0;height:2px}
.ui-mobile .perfect-dashboard>.panel:last-child{margin-bottom:14px}
@media(max-width:360px){.ui-mobile .brand-title .company-kicker{max-width:190px}.ui-mobile .mobile-mode-badge{font-size:6px;padding:3px 5px}.ui-mobile .perfect-dashboard .mobile-traffic-hero b{font-size:16px}}


/* v1.0.22 PPPoE REALTIME TRAFFIC */
.pppoe-live-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:7px;color:var(--muted);font-size:9px}.pppoe-live-meta .status{margin:0!important}.pppoe-live-table{min-width:1320px}.live-rate{font-weight:800;font-variant-numeric:tabular-nums}.download-rate{color:var(--green)}.upload-rate,.rate-upload{color:var(--orange)}.traffic-hot{background:rgba(255,138,0,.045);box-shadow:inset 3px 0 var(--orange)}.traffic-hot:hover{box-shadow:inset 3px 0 var(--orange)}.traffic-sort.active{background:#2a1b0d;border-color:#8a500d;color:#ffb65b}.pppoe-live-kpis article small{display:block;color:var(--muted);font-size:8px;margin-top:2px}.ui-mobile .pppoe-live-table{min-width:1180px}.ui-mobile .pppoe-live-meta{font-size:8px;gap:6px}.ui-mobile .pppoe-live-kpis article:nth-child(5),.ui-mobile .pppoe-live-kpis article:nth-child(6){min-height:74px}.ui-mobile .pppoe-live-kpis article small{font-size:7px}.ui-mobile .traffic-sort{grid-column:1/-1}.ui-website .pppoe-live-kpis{grid-template-columns:repeat(6,1fr)}


/* v1.0.23 MOBILE NAS SCROLL / ACTION SAFE FIX */
.ui-mobile .nas-mobile-shell{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))!important}
.ui-mobile .nas-mobile-shell .nas-form{padding-bottom:12px!important}
.ui-mobile .nas-mobile-shell .nas-form-actions{position:static!important;bottom:auto!important;z-index:auto!important;background:transparent!important;margin:2px 0 0!important;padding:6px 0 0!important;border-top:1px solid var(--line)!important;box-shadow:none!important}
.ui-mobile .nas-mobile-shell .nas-form label:last-of-type{padding-bottom:2px}
.ui-mobile .nas-mobile-shell .nas-form input[type="password"]{margin-bottom:2px}
.ui-mobile .nas-mobile-shell .nas-list{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
.ui-mobile .nas-mobile-shell .nas-card:last-child{margin-bottom:8px}
.ui-mobile .nas-mobile-shell .panel:last-child{margin-bottom:18px}
.ui-mobile .nas-mobile-shell .nas-actions{margin-bottom:2px}
.ui-mobile .nas-mobile-shell .split{padding-bottom:8px}


/* v1.0.24 TOOLBAR REDIRECT FIX */
.topbar nav,.topbar nav a,.mobile-mode-badge{pointer-events:auto!important}.topbar nav{z-index:90}.topbar nav a.nav-link{position:relative;z-index:91;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:rgba(255,138,0,.18)}.topbar nav a.nav-link:before{content:"";position:absolute;inset:-8px -6px}.topbar nav a.nav-link.nav-redirecting{opacity:.65}.mobile-mode-badge{z-index:92;cursor:pointer;touch-action:manipulation}@media(max-width:480px){.topbar nav{z-index:200}.topbar nav a.nav-link{min-height:58px;display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:3px}.topbar nav a.nav-link:before{inset:0}.topbar nav a.nav-link span{pointer-events:none}.topbar nav a.nav-link .icon{pointer-events:none}}


/* v1.0.25 ROUTER HEALTH REAL INTERFACE */
.traffic-filter-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.traffic-filter-tools select{min-width:145px}.if-category{display:inline-flex;align-items:center;padding:3px 6px;border:1px solid var(--line);border-radius:999px;font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.if-category.physical{color:#8ed0ff;border-color:#31566d}.if-category.vlan{color:#d8b4ff;border-color:#553b6d}.if-category.bridge{color:#ffd37e;border-color:#6a5324}.if-category.pppoe-dynamic{color:#7debb4;border-color:#285e45}.if-category.dynamic-other{color:#ff9ca4;border-color:#6c3439}@media(max-width:480px){.traffic-filter-tools{width:100%;display:grid;grid-template-columns:1fr}.traffic-filter-tools select,.traffic-filter-tools .field-icon,.traffic-filter-tools input{width:100%}}


/* v1.0.26 TOOLBAR DIRECT ROUTES */
.topbar nav a.nav-link{position:relative;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}
.topbar nav a.nav-link::before{content:"";position:absolute;inset:-8px -6px;z-index:-1;border-radius:5px}
.topbar nav a.nav-link:hover::before{background:rgba(255,138,0,.06)}
.topbar nav a.nav-link.nav-redirecting{opacity:.65;pointer-events:none}
.brand-home{color:inherit;text-decoration:none;cursor:pointer}.brand-home:hover .brand-title strong{color:var(--orange)}
.ui-mobile .topbar nav a.nav-link{width:100%;height:100%;min-width:0;display:flex!important;align-items:center!important;justify-content:center!important;pointer-events:auto!important;z-index:1002!important}
.ui-mobile .topbar nav a.nav-link::before{inset:0}
.ui-mobile .topbar nav{pointer-events:auto!important;z-index:1001!important}

/* v1.0.27 TOOLBAR CURSOR + CLICK HIT AREA FIX */
.topbar nav{pointer-events:auto!important;position:relative!important}
.topbar nav a.nav-link{cursor:pointer!important;pointer-events:auto!important;position:relative!important;z-index:20!important;padding:10px 9px!important;border-radius:5px!important}
.topbar nav a.nav-link::before{display:none!important;content:none!important}
.topbar nav a.nav-link *{pointer-events:none!important;cursor:pointer!important}
.topbar nav a.nav-link:hover{background:rgba(255,138,0,.08)!important;color:var(--orange)!important}
.topbar nav a.nav-link:active{transform:translateY(1px)}
.brand-home,.brand-home *{cursor:pointer!important}
.ui-mobile .topbar nav a.nav-link{cursor:pointer!important;touch-action:manipulation!important;padding:0!important}
.ui-website .topbar nav a.nav-link{min-height:38px!important;display:inline-flex!important;align-items:center!important}

/* v1.0.28 PPPoE USER CRUD */
.crud-modal{position:fixed;inset:0;background:rgba(0,0,0,.72);display:grid;place-items:center;z-index:220;padding:14px}.crud-modal.hidden{display:none}.crud-dialog{width:min(680px,96vw);max-height:calc(100vh - 28px);overflow:auto;background:var(--panel);border:1px solid var(--line);border-top:2px solid var(--orange);box-shadow:0 24px 80px rgba(0,0,0,.55)}.crud-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid var(--line)}.crud-head h2{margin:2px 0 0}.crud-form{display:grid;grid-template-columns:1fr 1fr;gap:11px;padding:14px}.crud-form label{display:grid;gap:6px;color:var(--muted);font-size:11px}.crud-form input,.crud-form select{width:100%;min-height:42px}.crud-form small{font-size:9px;color:var(--muted)}.crud-form .full{grid-column:1/-1}.crud-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;justify-content:start;gap:9px!important}.crud-check input{width:18px!important;min-height:18px!important}.crud-actions{display:flex;justify-content:flex-end;gap:8px}.row-actions{display:flex;gap:6px;align-items:center}.row-actions .btn{min-height:30px;padding:5px 8px;font-size:10px}.sticky-actions{position:sticky;right:0;z-index:4;background:#1d2328}.pppoe-live-table tbody td:last-child{position:sticky;right:0;background:var(--panel);z-index:1}.pppoe-live-table tbody tr:hover td:last-child{background:#191e22}.btn.edit-user{background:#20262b}.btn.delete-user{background:#421b20;border-color:#6b262d;color:#ffdce0}.crud-busy{pointer-events:none;opacity:.65}@media(max-width:520px){.crud-modal{padding:8px;align-items:end}.crud-dialog{width:100%;max-height:88vh;border-radius:8px 8px 0 0}.crud-form{grid-template-columns:1fr;padding:12px}.crud-form .full{grid-column:auto}.crud-actions{position:sticky;bottom:0;background:var(--panel);padding-top:8px}.crud-actions .btn{flex:1}.row-actions{min-width:124px}.pppoe-live-table{min-width:1180px}}

/* v1.0.29 realtime recovery */
.status.connecting,.status.disabled{background:#3b3215;color:#f6d471}.realtime-recovery-note{font-size:10px;color:var(--muted)}


/* v1.0.30 TOOLBAR RESTORE - hard navigation visibility */
.topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;overflow:visible!important}
.topbar>.brand,.topbar>.brand-home{display:flex!important;align-items:center!important;flex:0 0 auto!important}
.topbar>nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.ui-website .topbar>nav{display:flex!important;position:static!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;transform:none!important;width:auto!important;height:auto!important;margin-left:auto!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;overflow:visible!important;background:transparent!important;border:0!important;padding:0!important;z-index:100!important}
.ui-website .topbar>nav>.nav-link{display:inline-flex!important;visibility:visible!important;opacity:1!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;min-height:38px!important;height:38px!important;padding:0 9px!important;color:var(--muted)!important;white-space:nowrap!important}
.ui-website .topbar>nav>.nav-link.active-nav,.ui-website .topbar>nav>.nav-link:hover{color:var(--orange)!important;background:rgba(255,138,0,.07)!important}
.ui-website .topbar>nav>.nav-link span{display:inline!important;font-size:11px!important}
.ui-website .topbar>nav>.nav-link .icon{display:inline-block!important;width:14px!important;height:14px!important}
.ui-mobile .topbar>nav{display:grid!important;visibility:visible!important;opacity:1!important;position:fixed!important;left:50%!important;right:auto!important;bottom:0!important;top:auto!important;transform:translateX(-50%)!important;width:min(480px,100vw)!important;height:calc(64px + env(safe-area-inset-bottom,0px))!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:0!important;padding:0 0 env(safe-area-inset-bottom,0px)!important;background:#101418f5!important;border-top:1px solid var(--line)!important;z-index:1000!important}
.ui-mobile .topbar>nav>.nav-link{display:flex!important;visibility:visible!important;opacity:1!important;width:100%!important;height:64px!important;min-height:64px!important;padding:0!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;color:var(--muted)!important}
.ui-mobile .topbar>nav>.nav-link.active-nav{color:var(--orange)!important}
.ui-mobile .topbar>nav>.nav-link span{display:block!important;font-size:8px!important;line-height:1!important}
.ui-mobile .topbar>nav>.nav-link .icon{display:block!important;width:18px!important;height:18px!important}
@media(max-width:1180px) and (min-width:481px){.ui-website .topbar{padding-left:14px!important;padding-right:14px!important}.ui-website .topbar>nav{gap:3px!important}.ui-website .topbar>nav>.nav-link{padding:0 6px!important}.ui-website .topbar>nav>.nav-link span{font-size:10px!important}.ui-website .brand-title .company-kicker{display:none!important}}


/* v1.0.31 PPP PROFILE POPUP */
.profile-dialog{width:min(520px,94vw);max-height:86vh;overflow:hidden;display:flex;flex-direction:column}.profile-dialog .crud-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.profile-status{padding:10px 12px;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;background:#101418}.profile-picker{padding:10px;display:grid;gap:7px;overflow:auto;max-height:52vh}.profile-choice{appearance:none;width:100%;border:1px solid var(--line);background:#11161a;color:var(--text);padding:10px 11px;display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;text-align:left;cursor:pointer;border-radius:4px}.profile-choice:hover,.profile-choice:focus{border-color:var(--orange);background:#181d21;outline:none}.profile-choice-icon{width:28px;height:28px;display:grid;place-items:center;border:1px solid #3c464f;border-radius:50%;color:var(--orange);font-size:10px;font-weight:800}.profile-choice b{display:block;font-size:12px}.profile-choice small{display:block;margin-top:2px;color:var(--muted);font-size:9px}.profile-choice-arrow{font-size:22px;color:var(--orange);line-height:1}.profile-actions{padding:10px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:8px}.profile-actions .btn{width:100%}@media(max-width:480px){.profile-dialog{width:calc(100vw - 18px);max-height:82vh}.profile-picker{max-height:48vh}.profile-choice{padding:9px}.profile-actions{position:sticky;bottom:0;background:var(--panel)}}


/* v1.0.32 MODERN PPPoE USER MODAL */
.crud-modal{backdrop-filter:blur(10px);background:radial-gradient(circle at top, rgba(255,149,0,.06), transparent 24%), rgba(4,6,8,.78)}
.crud-dialog{border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.08);border-top:1px solid rgba(255,159,28,.55);background:linear-gradient(180deg,#171d22 0%,#12171c 100%);box-shadow:0 30px 100px rgba(0,0,0,.6)}
.user-dialog{width:min(860px,96vw)}
.modern-head{padding:18px 20px 16px;background:linear-gradient(180deg,rgba(255,149,0,.06),rgba(255,149,0,.015) 55%,transparent 100%)}
.modern-head h2{font-size:28px;line-height:1.1;margin:4px 0 0}.modern-head p{margin:6px 0 0;color:var(--muted);font-size:12px;max-width:58ch}.modal-close{border-color:#33404a;background:#101418;color:#ffbf66;border-radius:12px;font-size:20px;font-weight:500}
.modern-form{gap:14px;padding:18px 20px 20px}.crud-hero{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:flex-start;padding:13px 14px;border:1px solid rgba(255,159,28,.18);background:linear-gradient(180deg,rgba(255,159,28,.08),rgba(255,159,28,.03));border-radius:14px}.crud-hero.compact-hero{margin:0 12px 8px}.crud-hero .hero-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#11161a;border:1px solid #303940;color:var(--orange)}.crud-hero .hero-icon .icon{width:20px;height:20px}.crud-hero strong{display:block;font-size:13px;color:#f7fafc;margin-bottom:3px}.crud-hero span{display:block;font-size:11px;color:var(--muted)}
.crud-profile-pill{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border-radius:14px;background:#101418;border:1px solid #252c33}.crud-profile-pill .pill-label{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800}.crud-profile-pill b{font-size:13px;color:#fff}.pill-action{margin-left:auto;appearance:none;background:transparent;border:1px solid #3a444c;color:#ffb65b;padding:7px 10px;border-radius:10px;cursor:pointer;font-size:11px;font-weight:700}.pill-action:hover{border-color:#ff9f1c;background:rgba(255,159,28,.08)}
.crud-section{border:1px solid #232a31;border-radius:16px;padding:14px;background:linear-gradient(180deg,#13191e,#11161b)}.compact-section{padding-bottom:10px}.crud-section-title{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#ffb65b;font-weight:800;margin-bottom:12px}.crud-section-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.crud-section-grid .full{grid-column:1/-1}.modern-form label{gap:7px}.modern-form label>span{font-size:11px;color:#c2ccd5;font-weight:700}.modern-form input,.modern-form select{min-height:46px;border-radius:12px;background:#0f1418;border:1px solid #273039;box-shadow:inset 0 1px 0 rgba(255,255,255,.02);padding:0 13px}.modern-form input::placeholder{color:#61707d}.modern-form input:focus,.modern-form select:focus{outline:none;border-color:#ff9f1c;box-shadow:0 0 0 4px rgba(255,159,28,.12)}.modern-form small{font-size:10px;line-height:1.35}
.modern-actions{padding-top:2px;position:sticky;bottom:0;z-index:2;background:linear-gradient(180deg,rgba(18,23,28,0),rgba(18,23,28,.86) 18%,#12171c 45%);padding-bottom:2px}.modern-actions .btn{min-height:44px;border-radius:12px;padding-inline:14px}.secondary-accent{color:#ffbf66}.profile-dialog{border-radius:20px}.profile-status{padding:12px 14px;background:#0f1418;border-top:1px solid rgba(255,255,255,.03)}.profile-picker{padding:12px;gap:10px}.profile-choice{border-radius:14px;padding:12px 13px;background:linear-gradient(180deg,#11161a,#0f1418);transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease}.profile-choice:hover,.profile-choice:focus{transform:translateY(-1px);box-shadow:0 12px 24px rgba(0,0,0,.18)}.profile-choice-icon{border-radius:10px;border-color:#39454f;background:#151b20;width:32px;height:32px}.profile-choice-arrow{font-size:18px}.profile-actions{padding:12px}.profile-actions .btn{min-height:42px;border-radius:12px}
@media(max-width:720px){.user-dialog{width:min(96vw,96vw)}.modern-head h2{font-size:24px}.crud-section-grid{grid-template-columns:1fr}.pill-action{margin-left:0}}
@media(max-width:520px){.crud-dialog{border-radius:18px 18px 0 0}.modern-head{padding:16px 14px 14px}.modern-head h2{font-size:22px}.modern-head p{font-size:11px}.modern-form{padding:14px}.crud-section{padding:12px;border-radius:14px}.crud-profile-pill{padding:11px 12px;border-radius:12px}.modern-actions{padding-bottom:max(4px, env(safe-area-inset-bottom))}.profile-dialog{border-radius:18px 18px 0 0}.crud-hero.compact-hero{margin:0 10px 8px}}


/* v1.0.34 RESPONSIVE LITE FINAL LAYER */
html{scroll-behavior:auto}body{overflow-x:hidden}.shell{width:min(100%,1540px);margin-inline:auto}.topbar{contain:layout paint}.topbar .brand{min-width:0}.brand-title{min-width:0}.brand-title strong,.brand-kicker{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar nav{min-width:0}.panel,.hero,.kpis article{contain:layout paint}.table-scroll{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}.chart-wrap canvas,.mini-chart-wrap canvas{max-width:100%}.crud-modal{overscroll-behavior:contain}.crud-dialog{overscroll-behavior:contain}.crud-form{min-width:0}.crud-form>*{min-width:0}.filters>*{min-width:0}.toolbar>*{min-width:0}

/* Website mode */
.ui-website .shell{padding:16px clamp(12px,2vw,22px)}.ui-website .hero{min-height:0}.ui-website .topbar{padding-inline:clamp(12px,2vw,22px)}.ui-website .topbar nav{gap:clamp(7px,1vw,14px)}.ui-website .topbar nav a{padding-inline:4px}.ui-website .kpis{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}.ui-website .dashboard-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr)}.ui-website .split{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}

/* Tablet */
@media (max-width:1100px){.ui-website .topbar{height:auto;min-height:58px;gap:10px;align-items:center}.ui-website .topbar nav{flex-wrap:wrap;justify-content:flex-end}.ui-website .dashboard-grid{grid-template-columns:1fr}.ui-website .hero{align-items:stretch;flex-direction:column}.ui-website .hero .toolbar{width:100%}.ui-website .hero .toolbar select{flex:1 1 240px}.ui-website .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.ui-website .filters{width:100%}}

/* Mobile mode */
.ui-mobile{max-width:none}.ui-mobile .topbar,.ui-mobile .shell{width:100%;max-width:480px;margin-inline:auto}.ui-mobile .shell{padding:8px 8px calc(92px + env(safe-area-inset-bottom))}.ui-mobile .hero{padding:10px}.ui-mobile .hero h1{font-size:18px}.ui-mobile .hero p{font-size:10px}.ui-mobile .toolbar{width:100%;display:grid;grid-template-columns:1fr}.ui-mobile .toolbar select,.ui-mobile .toolbar .btn,.ui-mobile .toolbar a{width:100%}.ui-mobile .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.ui-mobile .kpis article{min-height:64px;padding:9px 7px 8px 36px}.ui-mobile .kpis article .card-icon{left:9px;top:10px}.ui-mobile .panel-head{padding:10px}.ui-mobile .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.ui-mobile .filters .field-icon{grid-column:1/-1}.ui-mobile .table-scroll{max-height:60vh}.ui-mobile .traffic-scroll{max-height:58vh}.ui-mobile .crud-dialog{max-height:calc(100dvh - 10px)}.ui-mobile .crud-form{padding:12px;gap:10px}.ui-mobile .crud-section-grid{grid-template-columns:1fr}.ui-mobile .crud-actions{padding-bottom:max(8px,env(safe-area-inset-bottom))}.ui-mobile .toast-stack{bottom:calc(76px + env(safe-area-inset-bottom))}.ui-mobile .progress-box{max-height:86dvh;overflow:auto}.ui-mobile .topbar nav{padding-bottom:env(safe-area-inset-bottom)}

@media(max-width:520px){.crud-modal{padding:0;align-items:end}.crud-dialog{width:100%;max-width:none;border-radius:16px 16px 0 0}.profile-dialog{width:100%;max-width:none}.modern-head{padding:14px}.modern-head h2{font-size:21px}.crud-profile-pill{display:grid;grid-template-columns:1fr auto}.crud-profile-pill .pill-label{grid-column:1/-1}.pill-action{margin-left:0}.profile-picker{max-height:45dvh}}
@media(max-width:380px){.ui-mobile .kpis{grid-template-columns:1fr 1fr}.ui-mobile .topbar .brand-title .company-kicker{display:none}.ui-mobile .brand-logo.brand-image.topbar-logo img{width:92px}.ui-mobile .bottom-nav a span{font-size:8px}.ui-mobile .filters{grid-template-columns:1fr 1fr}.ui-mobile .filter{font-size:10px}}

/* Reduced motion / low-power friendliness */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


/* v1.0.35 MODE-ALIGNED UI
   Display mode is authoritative. The dialog style follows ui-mobile/ui-website,
   not only the browser viewport width. */

/* Website Only: centered enterprise dialogs */
.ui-website .crud-modal{
  display:grid!important;
  place-items:center!important;
  align-items:center!important;
  padding:28px!important;
  background:radial-gradient(circle at 50% 8%,rgba(255,138,0,.055),transparent 26%),rgba(4,6,8,.80)!important;
}
.ui-website .crud-dialog{
  width:min(880px,calc(100vw - 56px))!important;
  max-width:880px!important;
  max-height:min(86vh,860px)!important;
  border-radius:18px!important;
  margin:0!important;
}
.ui-website .user-dialog{width:min(900px,calc(100vw - 56px))!important;max-width:900px!important}
.ui-website .profile-dialog{width:min(600px,calc(100vw - 56px))!important;max-width:600px!important;max-height:min(82vh,760px)!important;border-radius:18px!important}
.ui-website .modern-head{padding:18px 20px!important}
.ui-website .modern-head h2{font-size:27px!important}
.ui-website .modern-form{padding:18px 20px 20px!important;gap:14px!important}
.ui-website .crud-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.ui-website .crud-section-grid .full{grid-column:1/-1!important}
.ui-website .profile-picker{max-height:48vh!important;padding:12px!important;gap:9px!important}
.ui-website .profile-choice{min-height:58px!important;padding:12px 13px!important}
.ui-website .profile-actions{position:static!important;grid-template-columns:1fr 1fr!important;padding:12px!important}
.ui-website .modern-actions{position:sticky!important;bottom:0!important}
.ui-website .mode-dialog-chip{display:inline-flex!important}

/* Mobile Only: true mobile shell / bottom sheet even on desktop */
.ui-mobile .crud-modal{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  padding:0!important;
  background:rgba(4,6,8,.82)!important;
}
.ui-mobile .crud-dialog,
.ui-mobile .user-dialog,
.ui-mobile .profile-dialog{
  width:min(480px,100vw)!important;
  max-width:480px!important;
  max-height:calc(100dvh - 8px)!important;
  margin:0!important;
  border-radius:18px 18px 0 0!important;
  border-left:1px solid var(--line)!important;
  border-right:1px solid var(--line)!important;
  border-bottom:0!important;
}
.ui-mobile .modern-head{padding:14px 14px 12px!important}
.ui-mobile .modern-head h2{font-size:20px!important}
.ui-mobile .modern-head p{font-size:10px!important;line-height:1.35!important}
.ui-mobile .crud-hero{grid-template-columns:38px 1fr!important;padding:10px 11px!important;border-radius:12px!important}
.ui-mobile .crud-hero .hero-icon{width:38px!important;height:38px!important;border-radius:11px!important}
.ui-mobile .crud-profile-pill{margin:0!important;padding:10px 11px!important;border-radius:12px!important;display:grid!important;grid-template-columns:1fr auto!important;gap:6px 9px!important}
.ui-mobile .crud-profile-pill .pill-label{grid-column:1/-1!important;font-size:8px!important}
.ui-mobile .crud-profile-pill b{font-size:12px!important}
.ui-mobile .pill-action{margin:0!important;min-height:34px!important;padding:6px 9px!important}
.ui-mobile .modern-form{grid-template-columns:1fr!important;padding:12px!important;gap:10px!important}
.ui-mobile .crud-section{padding:11px!important;border-radius:12px!important}
.ui-mobile .crud-section-title{font-size:9px!important;margin-bottom:9px!important}
.ui-mobile .crud-section-grid{grid-template-columns:1fr!important;gap:9px!important}
.ui-mobile .crud-form input,.ui-mobile .crud-form select{min-height:42px!important;border-radius:10px!important;font-size:12px!important}
.ui-mobile .crud-form label>span{font-size:10px!important}
.ui-mobile .crud-form small{font-size:8px!important}
.ui-mobile .modern-actions{position:sticky!important;bottom:0!important;z-index:4!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:9px 0 max(10px,env(safe-area-inset-bottom))!important;background:linear-gradient(180deg,rgba(18,23,28,0),#12171c 24%)!important}
.ui-mobile .modern-actions .btn{min-height:42px!important;border-radius:10px!important}
.ui-mobile .profile-dialog .crud-hero.compact-hero{margin:0 10px 6px!important}
.ui-mobile .profile-status{padding:9px 11px!important;font-size:9px!important}
.ui-mobile .profile-picker{max-height:52dvh!important;padding:9px 10px!important;gap:7px!important}
.ui-mobile .profile-choice{min-height:50px!important;padding:9px 10px!important;border-radius:11px!important;grid-template-columns:30px 1fr auto!important}
.ui-mobile .profile-choice-icon{width:30px!important;height:30px!important;border-radius:9px!important;font-size:9px!important}
.ui-mobile .profile-choice b{font-size:11px!important}
.ui-mobile .profile-choice small{font-size:8px!important}
.ui-mobile .profile-actions{position:sticky!important;bottom:0!important;grid-template-columns:1fr 1fr!important;padding:9px 10px max(10px,env(safe-area-inset-bottom))!important;background:#12171c!important}
.ui-mobile .profile-actions .btn{min-height:40px!important;border-radius:10px!important;font-size:11px!important}

/* Mode indicator inside CRUD dialogs */
.crud-mode-row{display:flex;align-items:center;gap:7px;margin-top:8px}
.mode-dialog-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;border:1px solid #34404a;border-radius:999px;color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:#0f1418}
.mode-dialog-chip:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--orange)}
.ui-mobile .mode-dialog-chip .mode-web,.ui-website .mode-dialog-chip .mode-mobile{display:none}

/* Safety for genuinely narrow screens in Website Only: remain usable without
   silently changing the user's selected mode. */
@media(max-width:700px){
  .ui-website .crud-modal{padding:10px!important}
  .ui-website .crud-dialog,.ui-website .user-dialog,.ui-website .profile-dialog{width:calc(100vw - 20px)!important;max-width:none!important}
  .ui-website .crud-section-grid{grid-template-columns:1fr!important}
  .ui-website .crud-section-grid .full{grid-column:auto!important}
}


/* v1.0.36 POPUP CLOSE FIX */
.crud-modal.hidden,
.ui-mobile .crud-modal.hidden,
.ui-website .crud-modal.hidden{display:none!important;visibility:hidden!important;pointer-events:none!important;opacity:0!important}
.crud-modal:not(.hidden){visibility:visible!important;pointer-events:auto!important;opacity:1!important}


/* v1.0.37 HAND CURSOR / TOOLBAR POINTER */
button:not(:disabled),
.btn:not(.disabled):not(:disabled),
.filter:not(:disabled),
a.nav-link,
a.brand-home,
.mobile-mode-badge,
.icon-btn:not(:disabled),
.profile-choice:not(:disabled),
.pill-action:not(:disabled),
.mode-option button:not(:disabled),
.mode-back,
.nas-actions .btn:not(:disabled),
.row-actions .btn:not(:disabled),
.toolbar .btn:not(:disabled),
.crud-actions .btn:not(:disabled),
.auth-card .btn:not(:disabled),
select:not(:disabled){cursor:pointer!important}
button:disabled,.btn:disabled,.filter:disabled,select:disabled{cursor:not-allowed!important}
.topbar nav a.nav-link,.topbar nav a.nav-link *,a.brand-home,a.brand-home *{cursor:pointer!important}
.topbar nav a.nav-link:hover,.ui-mobile .topbar nav a.nav-link:hover{background:rgba(255,138,0,.07)}
.topbar nav a.nav-link:active,.ui-mobile .topbar nav a.nav-link:active{transform:translateY(1px)}


/* v1.0.38 POPUP MODE OPTION */
.popup-mode-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line);background:#0f1418}.popup-mode-label{font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}.popup-mode-options{display:flex;align-items:center;gap:6px}.popup-mode-btn{appearance:none;border:1px solid #303941;background:#151b20;color:#99a6b0;border-radius:10px;min-height:32px;padding:6px 9px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;font:700 9px/1 Inter,Segoe UI,Arial,sans-serif;transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease}.popup-mode-btn:hover{border-color:#586570;color:#e7edf2;transform:translateY(-1px)}.popup-mode-btn.active{border-color:#a75e0a;background:rgba(255,138,0,.12);color:#ffb65b;box-shadow:inset 0 0 0 1px rgba(255,138,0,.08)}.popup-mode-btn:disabled{opacity:.55;cursor:wait}.popup-mode-btn .icon{width:13px;height:13px}.ui-mobile .popup-mode-switch{width:100%;max-width:480px;padding:9px 11px}.ui-mobile .popup-mode-label{font-size:8px}.ui-mobile .popup-mode-options{flex:1;display:grid;grid-template-columns:1fr 1fr}.ui-mobile .popup-mode-btn{justify-content:center;min-height:34px;padding:6px;font-size:8px}.ui-website .popup-mode-switch{padding:10px 18px}.ui-website .popup-mode-btn{min-width:112px;justify-content:center}@media(max-width:380px){.ui-mobile .popup-mode-switch{align-items:stretch;flex-direction:column;gap:6px}.ui-mobile .popup-mode-options{width:100%}}

.crud-modal.hidden,.ui-mobile .crud-modal.hidden,.ui-website .crud-modal.hidden{display:none!important;visibility:hidden!important;pointer-events:none!important;opacity:0!important}


/* v1.0.40 POPUP MODE REAL SYNC
   Explicit popup-owned layouts. These declarations are intentionally last. */
.crud-modal.hidden,
.crud-modal.popup-mobile.hidden,
.crud-modal.popup-website.hidden{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
  opacity:0!important;
}

.crud-modal.popup-mobile:not(.hidden){
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  padding:0!important;
  inset:0!important;
}
.crud-modal.popup-mobile .crud-dialog,
.crud-modal.popup-mobile .user-dialog,
.crud-modal.popup-mobile .profile-dialog{
  width:min(480px,100vw)!important;
  max-width:480px!important;
  height:auto!important;
  max-height:92dvh!important;
  margin:0!important;
  border-radius:20px 20px 0 0!important;
  border-bottom:0!important;
  overflow:auto!important;
}
.crud-modal.popup-mobile .modern-head{padding:13px 14px 11px!important}
.crud-modal.popup-mobile .modern-head h2{font-size:20px!important}
.crud-modal.popup-mobile .modern-head p{font-size:10px!important;line-height:1.35!important}
.crud-modal.popup-mobile .popup-mode-switch{padding:8px 11px!important;display:block!important}
.crud-modal.popup-mobile .popup-mode-options{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:6px!important}
.crud-modal.popup-mobile .popup-mode-btn{min-height:36px!important;justify-content:center!important;font-size:9px!important}
.crud-modal.popup-mobile .crud-hero{grid-template-columns:38px 1fr!important;padding:10px 11px!important;border-radius:12px!important}
.crud-modal.popup-mobile .modern-form{display:grid!important;grid-template-columns:1fr!important;padding:11px!important;gap:9px!important}
.crud-modal.popup-mobile .crud-section{padding:11px!important;border-radius:12px!important}
.crud-modal.popup-mobile .crud-section-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
.crud-modal.popup-mobile .crud-section-grid .full{grid-column:auto!important}
.crud-modal.popup-mobile .crud-form input,
.crud-modal.popup-mobile .crud-form select{min-height:42px!important;font-size:12px!important;border-radius:10px!important}
.crud-modal.popup-mobile .crud-profile-pill{display:grid!important;grid-template-columns:1fr auto!important;padding:10px 11px!important;border-radius:12px!important}
.crud-modal.popup-mobile .crud-profile-pill .pill-label{grid-column:1/-1!important;font-size:8px!important}
.crud-modal.popup-mobile .modern-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;position:sticky!important;bottom:0!important;padding:9px 0 max(10px,env(safe-area-inset-bottom))!important;background:linear-gradient(180deg,rgba(18,23,28,0),#12171c 24%)!important;z-index:6!important}
.crud-modal.popup-mobile .profile-picker{max-height:48dvh!important;padding:9px!important;gap:7px!important}
.crud-modal.popup-mobile .profile-choice{min-height:50px!important;padding:9px 10px!important;border-radius:11px!important}
.crud-modal.popup-mobile .profile-actions{position:sticky!important;bottom:0!important;padding:9px 10px max(10px,env(safe-area-inset-bottom))!important;background:#12171c!important;z-index:5!important}

.crud-modal.popup-website:not(.hidden){
  display:grid!important;
  place-items:center!important;
  align-items:center!important;
  justify-items:center!important;
  padding:28px!important;
  inset:0!important;
}
.crud-modal.popup-website .crud-dialog{
  width:min(900px,calc(100vw - 56px))!important;
  max-width:900px!important;
  max-height:86vh!important;
  margin:0!important;
  border-radius:18px!important;
  overflow:auto!important;
}
.crud-modal.popup-website .profile-dialog{
  width:min(660px,calc(100vw - 56px))!important;
  max-width:660px!important;
  max-height:82vh!important;
}
.crud-modal.popup-website .modern-head{padding:18px 20px!important}
.crud-modal.popup-website .modern-head h2{font-size:27px!important}
.crud-modal.popup-website .popup-mode-switch{display:flex!important;padding:10px 18px!important}
.crud-modal.popup-website .popup-mode-options{display:flex!important;gap:8px!important}
.crud-modal.popup-website .popup-mode-btn{min-width:120px!important;justify-content:center!important}
.crud-modal.popup-website .modern-form{display:grid!important;grid-template-columns:1fr!important;padding:18px 20px 20px!important;gap:14px!important}
.crud-modal.popup-website .crud-section-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.crud-modal.popup-website .crud-section-grid .full{grid-column:1/-1!important}
.crud-modal.popup-website .modern-actions{display:flex!important;justify-content:flex-end!important;position:sticky!important;bottom:0!important}
.crud-modal.popup-website .profile-picker{max-height:48vh!important;padding:12px!important;gap:9px!important}
.crud-modal.popup-website .profile-choice{min-height:58px!important;padding:12px 13px!important}
.crud-modal.popup-website .profile-actions{position:static!important;padding:12px!important}

/* On very small physical screens, website mode remains website in structure,
   but scales to fit without forcing a mobile bottom-sheet. */
@media(max-width:700px){
  .crud-modal.popup-website:not(.hidden){padding:10px!important}
  .crud-modal.popup-website .crud-dialog,
  .crud-modal.popup-website .profile-dialog{width:calc(100vw - 20px)!important;max-width:none!important}
  .crud-modal.popup-website .crud-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* v1.0.41 THEME ALIGNED POPUP
   Align all PPPoE CRUD dialogs with the main Smarttech NOC graphite/orange shell. */
.crud-modal,
.crud-modal.popup-mobile,
.crud-modal.popup-website{
  background:rgba(5,7,9,.84)!important;
  backdrop-filter:none!important;
}
.crud-modal .crud-dialog,
.crud-modal .user-dialog,
.crud-modal .profile-dialog{
  background:var(--panel)!important;
  border:1px solid var(--line)!important;
  border-top:2px solid var(--orange)!important;
  box-shadow:0 20px 55px rgba(0,0,0,.52)!important;
}
.crud-modal.popup-mobile .crud-dialog,
.crud-modal.popup-mobile .user-dialog,
.crud-modal.popup-mobile .profile-dialog{
  border-radius:4px 4px 0 0!important;
}
.crud-modal.popup-website .crud-dialog,
.crud-modal.popup-website .user-dialog,
.crud-modal.popup-website .profile-dialog{
  border-radius:4px!important;
}
.crud-modal .modern-head{
  background:#15191d!important;
  border-bottom:1px solid var(--line)!important;
}
.crud-modal .modern-head h2{
  color:var(--text)!important;
  letter-spacing:-.01em!important;
}
.crud-modal .modern-head p,
.crud-modal .profile-status,
.crud-modal .crud-hero span,
.crud-modal .crud-form small{
  color:var(--muted)!important;
}
.crud-modal .eyebrow{
  color:var(--orange)!important;
}
.crud-modal .modal-close{
  width:34px!important;
  height:34px!important;
  border-radius:3px!important;
  border:1px solid var(--line)!important;
  background:#101418!important;
  color:var(--orange)!important;
  box-shadow:none!important;
}
.crud-modal .modal-close:hover{
  border-color:var(--orange)!important;
  background:#191e22!important;
}
.crud-modal .popup-mode-switch{
  background:#101418!important;
  border-bottom:1px solid var(--line)!important;
}
.crud-modal .popup-mode-label{
  color:var(--muted)!important;
}
.crud-modal .popup-mode-btn{
  border-radius:3px!important;
  border:1px solid var(--line)!important;
  background:#20262b!important;
  color:#abb6bf!important;
  box-shadow:none!important;
  transform:none!important;
}
.crud-modal .popup-mode-btn:hover{
  border-color:#4c5660!important;
  color:var(--text)!important;
  background:#252b30!important;
}
.crud-modal .popup-mode-btn.active{
  border-color:var(--orange)!important;
  background:var(--orange)!important;
  color:#111!important;
  box-shadow:none!important;
}
.crud-modal .crud-hero{
  border-radius:3px!important;
  border:1px solid var(--line)!important;
  border-left:3px solid var(--orange)!important;
  background:#11161a!important;
  box-shadow:none!important;
}
.crud-modal .crud-hero .hero-icon{
  border-radius:3px!important;
  background:#0f1316!important;
  border:1px solid var(--line)!important;
  color:var(--orange)!important;
}
.crud-modal .crud-hero strong{
  color:var(--text)!important;
}
.crud-modal .crud-profile-pill{
  border-radius:3px!important;
  border:1px solid var(--line)!important;
  background:#101418!important;
}
.crud-modal .crud-profile-pill .pill-label{
  color:var(--muted)!important;
}
.crud-modal .crud-profile-pill b{
  color:var(--text)!important;
}
.crud-modal .pill-action{
  border-radius:3px!important;
  border:1px solid #6e430f!important;
  background:#2a1b0d!important;
  color:#ffb65b!important;
}
.crud-modal .pill-action:hover{
  border-color:var(--orange)!important;
  background:#34200c!important;
}
.crud-modal .crud-section{
  border-radius:3px!important;
  border:1px solid var(--line)!important;
  background:#11161a!important;
  box-shadow:none!important;
}
.crud-modal .crud-section-title{
  color:var(--orange)!important;
  border-bottom:1px solid #252b30!important;
  padding-bottom:8px!important;
}
.crud-modal .modern-form input,
.crud-modal .modern-form select{
  border-radius:3px!important;
  background:#0f1316!important;
  border:1px solid var(--line)!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
.crud-modal .modern-form input:focus,
.crud-modal .modern-form select:focus{
  border-color:var(--orange)!important;
  box-shadow:0 0 0 1px var(--orange)!important;
}
.crud-modal .modern-form input::placeholder{
  color:#68747d!important;
}
.crud-modal .crud-check{
  color:var(--text)!important;
}
.crud-modal .modern-actions,
.crud-modal.popup-mobile .modern-actions{
  background:#15191d!important;
  border-top:1px solid var(--line)!important;
}
.crud-modal .crud-actions .btn,
.crud-modal .profile-actions .btn,
.crud-modal .modern-actions .btn{
  border-radius:3px!important;
  box-shadow:none!important;
}
.crud-modal .crud-actions .btn:not(.primary),
.crud-modal .profile-actions .btn:not(.primary){
  background:#20262b!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
.crud-modal .crud-actions .btn:not(.primary):hover,
.crud-modal .profile-actions .btn:not(.primary):hover{
  background:#252b30!important;
  border-color:#4b555e!important;
}
.crud-modal .crud-actions .btn.primary,
.crud-modal .modern-actions .btn.primary{
  background:var(--orange)!important;
  border-color:var(--orange)!important;
  color:#111!important;
}
.crud-modal .profile-status{
  background:#101418!important;
  border-bottom:1px solid var(--line)!important;
}
.crud-modal .profile-picker{
  background:#15191d!important;
}
.crud-modal .profile-choice{
  border-radius:3px!important;
  border:1px solid var(--line)!important;
  background:#11161a!important;
  box-shadow:none!important;
  transform:none!important;
}
.crud-modal .profile-choice:hover,
.crud-modal .profile-choice:focus{
  border-color:var(--orange)!important;
  background:#191e22!important;
  box-shadow:inset 3px 0 var(--orange)!important;
  transform:none!important;
}
.crud-modal .profile-choice-icon{
  border-radius:3px!important;
  background:#0f1316!important;
  border-color:#3a434b!important;
  color:var(--orange)!important;
}
.crud-modal .profile-choice b{
  color:var(--text)!important;
}
.crud-modal .profile-choice-arrow{
  color:var(--orange)!important;
}
.crud-modal .profile-actions{
  background:#15191d!important;
  border-top:1px solid var(--line)!important;
}
.crud-modal .mode-dialog-chip{
  border-radius:999px!important;
  border-color:#3c464f!important;
  background:#101418!important;
  color:var(--muted)!important;
}

/* Keep the selected display mode geometry from v1.0.40, only reskin it. */
.crud-modal.popup-mobile .modern-head h2{font-size:19px!important}
.crud-modal.popup-mobile .crud-section-title{font-size:9px!important}
.crud-modal.popup-mobile .popup-mode-btn{border-radius:3px!important}
.crud-modal.popup-mobile .profile-choice{border-radius:3px!important}
.crud-modal.popup-website .popup-mode-btn{border-radius:3px!important}
.crud-modal.popup-website .profile-choice{border-radius:3px!important}

/* v1.0.42 LOGOUT ALWAYS VISIBLE */
.ui-website .topbar{position:sticky!important;padding-right:118px!important}
.ui-website .topbar>nav{padding-right:0!important;max-width:calc(100% - 250px)!important;overflow:visible!important}
.ui-website .topbar>nav>.nav-logout{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  position:absolute!important;
  right:16px!important;
  top:10px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 12px!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  border:1px solid #493036!important;
  background:#21171a!important;
  color:#ff9aa2!important;
  border-radius:4px!important;
  z-index:160!important;
  white-space:nowrap!important;
}
.ui-website .topbar>nav>.nav-logout:hover{
  color:#fff!important;
  border-color:#7b343c!important;
  background:#3a1b20!important;
}
.ui-mobile .topbar>nav>.nav-mode-link{display:none!important}
.ui-mobile .topbar>nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.ui-mobile .topbar>nav>.nav-logout{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  color:#ff8f97!important;
}
.ui-mobile .topbar>nav>.nav-logout .icon{color:#ff8f97!important}
@media(max-width:1180px) and (min-width:481px){
  .ui-website .topbar{padding-right:108px!important}
  .ui-website .topbar>nav>.nav-logout{right:10px!important;padding:0 9px!important}
  .ui-website .topbar>nav>.nav-logout span{font-size:10px!important}
}

/* v1.0.43 AUTO DEVICE MODE */
.auto-mode-badge{cursor:default!important;pointer-events:none!important;user-select:none}
.popup-mode-switch{display:none!important}
.auto-mode-grid{grid-template-columns:minmax(0,560px)!important;justify-content:center}
.auto-mode-chip{color:#ffad42!important;border-color:rgba(255,138,0,.35)!important;background:rgba(255,138,0,.08)!important}

/* v1.0.44 TRUE AUTO DEVICE MODE ------------------------------------------ */
html.device-mobile body{width:100%!important;min-width:0!important;overflow-x:hidden!important}
html.device-mobile body .topbar,
html.device-mobile body .shell{width:100%!important;max-width:480px!important;margin-inline:auto!important}
html.device-mobile body .shell{padding-left:8px!important;padding-right:8px!important}
html.device-mobile body .topbar>nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}
html.device-mobile body .topbar>nav>.nav-mode-link{display:none!important}
html.device-mobile body .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html.device-mobile body .dashboard-grid{grid-template-columns:1fr!important}
html.device-mobile body .crud-section-grid{grid-template-columns:1fr!important}
html.device-mobile body .crud-modal{align-items:flex-end!important;padding:0!important}
html.device-mobile body .crud-dialog,
html.device-mobile body .user-dialog,
html.device-mobile body .profile-dialog{width:100%!important;max-width:480px!important;margin:0 auto!important;border-radius:16px 16px 0 0!important}

html.device-website body .shell{max-width:none}
html.device-website body .crud-modal{align-items:center!important;justify-content:center!important}

@media (max-width:820px) and (pointer:coarse){
  html:not(.device-website) body .topbar,
  html:not(.device-website) body .shell{width:100%!important;max-width:480px!important;margin-inline:auto!important}
}

/* v1.0.46 BOTTOM TOOLBAR -------------------------------------------------- */
/* Navigation is always anchored at the bottom; the top bar is branding only. */
body.ui-website,
html.device-website body{padding-bottom:74px!important}

.ui-website .topbar,
html.device-website body .topbar{
  position:sticky!important;
  top:0!important;
  padding:0 22px!important;
  height:58px!important;
  min-height:58px!important;
  overflow:visible!important;
}

.ui-website .topbar>nav,
html.device-website body .topbar>nav{
  display:flex!important;
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  top:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:none!important;
  height:64px!important;
  margin:0!important;
  padding:0 max(14px,calc((100vw - 980px)/2)) env(safe-area-inset-bottom,0px)!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:0!important;
  background:rgba(16,20,24,.97)!important;
  border-top:1px solid var(--line)!important;
  border-bottom:0!important;
  box-shadow:0 -8px 24px rgba(0,0,0,.28)!important;
  backdrop-filter:blur(10px)!important;
  z-index:1200!important;
  white-space:normal!important;
}

.ui-website .topbar>nav>.nav-link,
html.device-website body .topbar>nav>.nav-link{
  position:relative!important;
  flex:1 1 0!important;
  max-width:140px!important;
  min-width:92px!important;
  height:64px!important;
  min-height:64px!important;
  padding:7px 10px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--muted)!important;
}

.ui-website .topbar>nav>.nav-link .icon,
html.device-website body .topbar>nav>.nav-link .icon{
  width:17px!important;
  height:17px!important;
}

.ui-website .topbar>nav>.nav-link span,
html.device-website body .topbar>nav>.nav-link span{
  display:block!important;
  font-size:9px!important;
  line-height:1!important;
}

.ui-website .topbar>nav>.nav-link.active-nav,
.ui-website .topbar>nav>.nav-link:hover,
html.device-website body .topbar>nav>.nav-link.active-nav,
html.device-website body .topbar>nav>.nav-link:hover{
  color:var(--orange)!important;
  background:rgba(255,138,0,.07)!important;
}

.ui-website .topbar>nav>.nav-link.active-nav:after,
html.device-website body .topbar>nav>.nav-link.active-nav:after{
  content:""!important;
  position:absolute!important;
  left:18%!important;
  right:18%!important;
  top:0!important;
  bottom:auto!important;
  height:2px!important;
  background:var(--orange)!important;
}

.ui-website .topbar>nav>.nav-logout,
html.device-website body .topbar>nav>.nav-logout{
  position:relative!important;
  right:auto!important;
  top:auto!important;
  height:64px!important;
  min-height:64px!important;
  padding:7px 10px!important;
  border:0!important;
  background:transparent!important;
  color:#ff8f97!important;
  z-index:auto!important;
}

.ui-website .topbar>nav>.nav-logout:hover,
html.device-website body .topbar>nav>.nav-logout:hover{
  color:#ffb2b8!important;
  background:rgba(255,82,93,.08)!important;
}

/* Mobile keeps the same bottom navigation, with stronger safe-area spacing. */
body.ui-mobile,
html.device-mobile body{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important}
.ui-mobile .topbar>nav,
html.device-mobile body .topbar>nav{
  bottom:0!important;
  border-top:1px solid var(--line)!important;
  box-shadow:0 -8px 24px rgba(0,0,0,.28)!important;
}
.ui-mobile .topbar>nav>.nav-link.active-nav:after,
html.device-mobile body .topbar>nav>.nav-link.active-nav:after{
  top:0!important;
  bottom:auto!important;
}

/* Keep content and floating feedback clear of the toolbar. */
.ui-website .shell,
html.device-website body .shell{padding-bottom:92px!important}
.ui-website .toast-stack,
html.device-website body .toast-stack{bottom:82px!important}
.ui-mobile .toast-stack,
html.device-mobile body .toast-stack{bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}

/* v1.0.46 TRUE BOTTOM TOOLBAR -------------------------------------------- */
/* The navigation is physically moved to <body> by toolbar.js. These rules
   intentionally do not depend on .topbar, eliminating older header overrides. */
body > nav.app-bottom-nav{
  display:grid!important;
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  top:auto!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:calc(66px + env(safe-area-inset-bottom,0px))!important;
  margin:0!important;
  padding:0 max(8px,calc((100vw - 980px)/2)) env(safe-area-inset-bottom,0px)!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:0!important;
  overflow:visible!important;
  background:#101418f7!important;
  border:0!important;
  border-top:1px solid var(--line)!important;
  box-shadow:0 -8px 24px rgba(0,0,0,.34)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
  z-index:2147483000!important;
  transform:none!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body > nav.app-bottom-nav > .nav-link{
  position:relative!important;
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:66px!important;
  min-height:66px!important;
  padding:7px 2px!important;
  margin:0!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--muted)!important;
  text-decoration:none!important;
  box-shadow:none!important;
  transform:none!important;
}
body > nav.app-bottom-nav > .nav-link .icon{
  display:block!important;
  width:19px!important;
  height:19px!important;
  margin:0!important;
}
body > nav.app-bottom-nav > .nav-link span{
  display:block!important;
  font-size:9px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body > nav.app-bottom-nav > .nav-link.active-nav{
  color:var(--orange)!important;
  background:rgba(255,138,0,.07)!important;
}
body > nav.app-bottom-nav > .nav-link.active-nav::after{
  content:""!important;
  position:absolute!important;
  left:18%!important;
  right:18%!important;
  top:0!important;
  bottom:auto!important;
  height:2px!important;
  background:var(--orange)!important;
}
body > nav.app-bottom-nav > .nav-logout{color:#ff8f97!important}
body > nav.app-bottom-nav > .nav-mode-link{display:none!important}
body{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))!important}
body .shell{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important}
body .toast-stack{bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}

/* Header becomes branding only after navigation is detached. */
header.topbar{justify-content:flex-start!important}

@media (min-width:821px){
  body > nav.app-bottom-nav{
    display:flex!important;
    height:66px!important;
  }
  body > nav.app-bottom-nav > .nav-link{
    flex:1 1 0!important;
    max-width:150px!important;
  }
}


/* v1.0.47 - KPI one-click navigation */
.kpi-oneclick .kpi-card-link{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  min-width:0;min-height:100%;text-decoration:none;color:inherit;background:var(--panel,#14191e);
  border:1px solid var(--line,#2b3239);padding:16px;cursor:pointer;font:inherit;text-align:left;
  transition:border-color .16s ease,transform .16s ease,background .16s ease,box-shadow .16s ease;
}
.kpi-oneclick button.kpi-card-link{width:100%;appearance:none;-webkit-appearance:none;border-radius:0;}
.kpi-oneclick .kpi-card-link:hover,.kpi-oneclick .kpi-card-link:focus-visible{
  border-color:#ff8a00;background:#171d22;outline:none;transform:translateY(-1px);box-shadow:0 0 0 1px rgba(255,138,0,.12) inset;
}
.kpi-oneclick .kpi-card-link:active{transform:translateY(0)}
.kpi-oneclick .kpi-card-link em{margin-top:7px;font-size:10px;font-style:normal;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#7f8a94}
.kpi-oneclick .kpi-card-link:hover em,.kpi-oneclick .active-kpi em{color:#ff9800}
.kpi-oneclick .active-kpi{border-color:#ff8a00!important;box-shadow:inset 0 2px 0 #ff8a00;background:#171d22!important}
.kpi-oneclick .kpi-online.active-kpi{box-shadow:inset 0 2px 0 #23c483}
.kpi-oneclick .kpi-offline.active-kpi{box-shadow:inset 0 2px 0 #ff5364}
@media(max-width:720px){
  .kpi-oneclick .kpi-card-link{padding:13px 14px;min-height:102px}
  .kpi-oneclick .kpi-card-link em{font-size:9px;margin-top:5px}
}


/* v1.0.48 — NAS uplink is system-managed only */
.auto-uplink-field{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border:1px solid var(--border,#2a3138);background:var(--panel-2,#11171c);border-radius:8px;min-height:74px}
.auto-uplink-field .auto-uplink-label{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#7f8b96)}
.auto-uplink-field strong{font-size:14px;color:var(--accent,#ff8a00)}
.auto-uplink-field small{color:var(--muted,#7f8b96);line-height:1.4}

/* v1.0.49 — MOBILE POPUP ACTION BAR / BOTTOM TOOLBAR SAFE AREA ---------- */
/* Keep PPPoE modal controls fully visible above the fixed application nav. */
:root{
  --app-bottom-nav-height:66px;
}

html.device-mobile body .crud-modal.popup-mobile:not(.hidden),
body.ui-mobile .crud-modal.popup-mobile:not(.hidden){
  top:0!important;
  left:0!important;
  right:0!important;
  bottom:calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom,0px))!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  align-items:flex-end!important;
  justify-content:center!important;
  overflow:hidden!important;
}

html.device-mobile body .crud-modal.popup-mobile .crud-dialog,
html.device-mobile body .crud-modal.popup-mobile .user-dialog,
html.device-mobile body .crud-modal.popup-mobile .profile-dialog,
body.ui-mobile .crud-modal.popup-mobile .crud-dialog,
body.ui-mobile .crud-modal.popup-mobile .user-dialog,
body.ui-mobile .crud-modal.popup-mobile .profile-dialog{
  width:100%!important;
  max-width:480px!important;
  max-height:calc(100dvh - var(--app-bottom-nav-height) - env(safe-area-inset-bottom,0px))!important;
  height:auto!important;
  margin:0 auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border-radius:4px 4px 0 0!important;
}

/* Header stays visible; form body owns the scrolling. */
html.device-mobile body .crud-modal.popup-mobile .modern-head,
body.ui-mobile .crud-modal.popup-mobile .modern-head{
  flex:0 0 auto!important;
}

html.device-mobile body .crud-modal.popup-mobile .modern-form,
body.ui-mobile .crud-modal.popup-mobile .modern-form{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  padding-bottom:0!important;
}

/* Save/Cancel is a permanent footer inside the popup. */
html.device-mobile body .crud-modal.popup-mobile .modern-actions,
body.ui-mobile .crud-modal.popup-mobile .modern-actions{
  position:sticky!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  flex:0 0 auto!important;
  z-index:30!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  margin:0 -11px!important;
  padding:10px 11px 11px!important;
  background:#15191d!important;
  border-top:1px solid var(--line)!important;
  box-shadow:0 -10px 24px rgba(0,0,0,.34)!important;
}

html.device-mobile body .crud-modal.popup-mobile .modern-actions .btn,
body.ui-mobile .crud-modal.popup-mobile .modern-actions .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  margin:0!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

/* PPP profile chooser receives the same protected footer behavior. */
html.device-mobile body .crud-modal.popup-mobile .profile-picker,
body.ui-mobile .crud-modal.popup-mobile .profile-picker{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
html.device-mobile body .crud-modal.popup-mobile .profile-actions,
body.ui-mobile .crud-modal.popup-mobile .profile-actions{
  position:sticky!important;
  bottom:0!important;
  flex:0 0 auto!important;
  z-index:30!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  padding:10px 11px 11px!important;
  background:#15191d!important;
  border-top:1px solid var(--line)!important;
  box-shadow:0 -10px 24px rgba(0,0,0,.34)!important;
}
html.device-mobile body .crud-modal.popup-mobile .profile-actions .btn,
body.ui-mobile .crud-modal.popup-mobile .profile-actions .btn{
  width:100%!important;
  min-height:46px!important;
}

/* Very short phone screens: preserve the actions first, scroll everything else. */
@media (max-height:640px){
  html.device-mobile body .crud-modal.popup-mobile .crud-dialog,
  body.ui-mobile .crud-modal.popup-mobile .crud-dialog{
    max-height:calc(100dvh - var(--app-bottom-nav-height) - env(safe-area-inset-bottom,0px))!important;
  }
  html.device-mobile body .crud-modal.popup-mobile .modern-head,
  body.ui-mobile .crud-modal.popup-mobile .modern-head{
    padding-top:10px!important;
    padding-bottom:8px!important;
  }
}

/* v1.0.50 — MOBILE FIXED PPPoE SAVE BAR ----------------------------------
   Mobile only. Keep the global bottom toolbar fixed and reserve a protected
   action zone immediately above it. Desktop/website mode is intentionally
   untouched. */
:root{
  --mobile-bottom-toolbar-h:66px;
  --mobile-pppoe-action-h:76px;
  --mobile-pppoe-form-reserve:124px;
}

/* The application nav remains pinned to the viewport bottom on mobile. */
html.device-mobile body .app-bottom-nav,
body.ui-mobile .app-bottom-nav{
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:1000!important;
  padding-bottom:env(safe-area-inset-bottom,0px)!important;
}

/* Modal itself ends above the fixed application toolbar. */
html.device-mobile body .crud-modal.popup-mobile:not(.hidden),
body.ui-mobile .crud-modal.popup-mobile:not(.hidden){
  bottom:calc(var(--mobile-bottom-toolbar-h) + env(safe-area-inset-bottom,0px))!important;
  overflow:hidden!important;
}

html.device-mobile body .crud-modal.popup-mobile .crud-dialog,
html.device-mobile body .crud-modal.popup-mobile .user-dialog,
body.ui-mobile .crud-modal.popup-mobile .crud-dialog,
body.ui-mobile .crud-modal.popup-mobile .user-dialog{
  max-height:calc(100dvh - var(--mobile-bottom-toolbar-h) - env(safe-area-inset-bottom,0px))!important;
  overflow:hidden!important;
}

/* Only the PPPoE form content scrolls. Reserve 110–130px below the fields so
   the last controls never sit behind the action bar. */
html.device-mobile body #pppoeUserModal.popup-mobile .modern-form,
body.ui-mobile #pppoeUserModal.popup-mobile .modern-form{
  overflow-y:auto!important;
  min-height:0!important;
  padding-bottom:var(--mobile-pppoe-form-reserve)!important;
  scroll-padding-bottom:var(--mobile-pppoe-form-reserve)!important;
  -webkit-overflow-scrolling:touch!important;
}

/* Cancel + Save PPPoE User: fixed immediately above bottom toolbar. */
html.device-mobile body #pppoeUserModal.popup-mobile .modern-actions,
body.ui-mobile #pppoeUserModal.popup-mobile .modern-actions{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  bottom:calc(var(--mobile-bottom-toolbar-h) + env(safe-area-inset-bottom,0px))!important;
  width:min(480px,100vw)!important;
  min-height:var(--mobile-pppoe-action-h)!important;
  z-index:1002!important;
  display:grid!important;
  grid-template-columns:minmax(92px,.72fr) minmax(0,1.55fr)!important;
  align-items:center!important;
  gap:9px!important;
  margin:0!important;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;
  background:#15191d!important;
  border-top:1px solid var(--line)!important;
  box-shadow:0 -12px 28px rgba(0,0,0,.46)!important;
}

html.device-mobile body #pppoeUserModal.popup-mobile .modern-actions .btn,
body.ui-mobile #pppoeUserModal.popup-mobile .modern-actions .btn{
  min-height:50px!important;
  width:100%!important;
  justify-content:center!important;
  border-radius:5px!important;
  font-weight:700!important;
}
html.device-mobile body #pppoeUserModal.popup-mobile #cancelPppoeUser,
body.ui-mobile #pppoeUserModal.popup-mobile #cancelPppoeUser{
  background:#20262b!important;
  color:var(--text)!important;
  border:1px solid var(--line)!important;
}
html.device-mobile body #pppoeUserModal.popup-mobile #savePppoeUser,
body.ui-mobile #pppoeUserModal.popup-mobile #savePppoeUser{
  background:var(--orange)!important;
  color:#111!important;
  border-color:var(--orange)!important;
  font-size:13px!important;
  box-shadow:0 0 0 1px rgba(255,138,0,.08)!important;
}

/* Keep profile chooser safe too, but do not turn its actions into the PPPoE
   fixed save bar. */
html.device-mobile body #pppoeProfileModal.popup-mobile .profile-picker,
body.ui-mobile #pppoeProfileModal.popup-mobile .profile-picker{
  padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important;
}

/* Explicit desktop reset: website mode keeps the existing desktop layout. */
html.device-desktop body #pppoeUserModal.popup-website .modern-form,
body.ui-website #pppoeUserModal.popup-website .modern-form{
  padding-bottom:20px!important;
  scroll-padding-bottom:0!important;
}
html.device-desktop body #pppoeUserModal.popup-website .modern-actions,
body.ui-website #pppoeUserModal.popup-website .modern-actions{
  position:sticky!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  bottom:0!important;
  width:auto!important;
  min-height:0!important;
  display:flex!important;
  grid-template-columns:none!important;
  padding:12px 0 0!important;
  box-shadow:none!important;
}


/* v1.0.53 PPPoE Expired */
.status.expired,.expired{color:#ff9f43!important}.status.expired{border-color:rgba(255,159,67,.5)!important;background:rgba(255,159,67,.10)!important}.kpi-expired{border-color:rgba(255,159,67,.22)!important}.kpi-expired:hover,.kpi-expired.active-kpi{border-color:#ff9f43!important;box-shadow:inset 0 2px 0 rgba(255,159,67,.75)}
#pppExpires{color-scheme:dark}
@media (max-width:760px){.pppoe-live-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.crud-section-grid label:has(#pppExpires){grid-column:1/-1}}


/* v1.0.57 — Dashboard NAS Review Retouch */
.nas-review-panel{margin-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
.nas-review-panel .nas-manage-btn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.nas-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}
.nas-review-card{position:relative;display:block;min-width:0;padding:12px;background:#11161a;border:1px solid var(--line);border-radius:6px;transition:border-color .15s ease,background .15s ease,transform .15s ease;overflow:hidden}
.nas-review-card:hover{border-color:#5c4630;background:#161b1f;transform:translateY(-1px)}
.nas-review-card.selected{border-color:var(--orange);box-shadow:inset 3px 0 0 var(--orange)}
.nas-review-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding-bottom:10px;border-bottom:1px solid #242b30}
.nas-review-title{min-width:0}.nas-review-title b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nas-review-title small{display:inline-block;margin-top:4px;color:var(--orange);font-size:8px;font-weight:900;letter-spacing:.08em}
.nas-review-details{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;padding:10px 0 8px}
.nas-review-details div{min-width:0}.nas-review-details span{display:block;color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.08em;margin-bottom:2px}.nas-review-details strong{display:block;font-size:10px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nas-review-error{margin:0 0 8px;padding:6px 7px;background:#2b171a;border:1px solid #5d2b31;color:#ff9ca4;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:3px}
.nas-review-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:8px;border-top:1px solid #242b30;color:var(--muted);font-size:9px}.nas-review-foot em{font-style:normal;color:var(--orange);font-weight:900;letter-spacing:.04em}
.ui-mobile .nas-review-panel{margin-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
.ui-mobile .nas-review-panel .panel-head{flex-direction:row;align-items:center}.ui-mobile .nas-review-panel .panel-head p{font-size:9px}.ui-mobile .nas-review-panel .nas-manage-btn{padding:7px 8px;font-size:9px}.ui-mobile .nas-review-panel .nas-manage-btn .icon{width:13px;height:13px}
.ui-mobile .nas-review-grid{grid-template-columns:1fr;padding:7px;gap:7px}.ui-mobile .nas-review-card{padding:10px}.ui-mobile .nas-review-details{grid-template-columns:1fr 1fr;gap:7px 10px}.ui-mobile .nas-review-title b{font-size:11px}.ui-mobile .nas-review-details strong{font-size:9px}
.ui-website .nas-review-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.ui-website .nas-review-card{padding:14px}.ui-website .nas-review-title b{font-size:14px}.ui-website .nas-review-details strong{font-size:11px}
@media(min-width:1280px){.ui-website .nas-review-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v1.0.58 — Integrated NAS Review inside PPPoE Operations */
.integrated-operations-hero{display:block!important;padding:14px 16px 15px!important}
.integrated-operations-hero .hero-topline{margin-bottom:10px}
.nas-ops-card{background:#11161a;border:1px solid var(--line);border-left:3px solid var(--orange);border-radius:6px;overflow:hidden}
.nas-ops-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border-bottom:1px solid #242b30}
.nas-ops-identity{min-width:0}.nas-ops-label{display:block;color:var(--orange);font-size:8px;font-weight:900;letter-spacing:.12em;margin-bottom:3px}.nas-ops-identity strong{display:block;font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nas-ops-identity small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.nas-ops-metrics{display:grid;grid-template-columns:1.2fr repeat(3,.75fr) 1.15fr;border-bottom:1px solid #242b30}
.nas-ops-metrics>div{min-width:0;padding:10px 11px;border-right:1px solid #242b30}.nas-ops-metrics>div:last-child{border-right:0}.nas-ops-metrics span{display:block;color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.08em;margin-bottom:3px}.nas-ops-metrics b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nas-ops-metrics .good{color:var(--green)}.nas-ops-metrics .bad{color:#ff5f69}
.nas-ops-error{margin:9px 11px 0;padding:6px 8px;background:#2b171a;border:1px solid #5d2b31;border-radius:3px;color:#ff9ca4;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nas-ops-actions{display:flex;align-items:center;gap:8px;padding:10px 11px}.nas-ops-actions .btn{min-height:36px}.nas-ops-actions .secondary{background:#171d21;border:1px solid var(--line)}.nas-open-monitor{margin-left:auto}.nas-switch-wrap{position:relative}.nas-switch-panel{position:absolute;left:0;top:calc(100% + 6px);z-index:60;width:min(360px,80vw);padding:7px;background:#11161a;border:1px solid #3a4248;border-radius:5px;box-shadow:0 12px 30px rgba(0,0,0,.45)}.nas-switch-panel select{width:100%;min-height:38px}.nas-ops-foot{justify-content:flex-end;padding:0 11px 9px;margin:0}.empty-nas-ops{padding:14px}
/* Standalone NAS Review from v1.0.57 is intentionally retired. */
.nas-review-panel{display:none!important}
.ui-mobile .integrated-operations-hero{padding:10px!important}
.ui-mobile .nas-ops-head{padding:10px}.ui-mobile .nas-ops-identity strong{font-size:12px}.ui-mobile .nas-ops-identity small{font-size:9px}
.ui-mobile .nas-ops-metrics{grid-template-columns:1fr 1fr}.ui-mobile .nas-ops-metrics>div{padding:9px 10px;border-bottom:1px solid #242b30}.ui-mobile .nas-ops-metrics>div:nth-child(2n){border-right:0}.ui-mobile .nas-ops-metrics .wide{grid-column:1/-1;border-bottom:0;border-right:0}.ui-mobile .nas-ops-metrics b{font-size:11px}
.ui-mobile .nas-ops-actions{display:grid;grid-template-columns:1fr 1fr;padding:9px}.ui-mobile .nas-open-monitor{grid-column:1/-1;margin-left:0;justify-content:center;min-height:43px}.ui-mobile .nas-switch-wrap{min-width:0}.ui-mobile .nas-switch-wrap>.btn,.ui-mobile .nas-ops-actions>a.btn{width:100%;justify-content:center}.ui-mobile .nas-switch-panel{position:fixed;left:10px;right:10px;top:auto;bottom:calc(76px + env(safe-area-inset-bottom,0px));width:auto;z-index:1100}.ui-mobile .nas-ops-foot{padding-bottom:8px}
.ui-website .nas-ops-card{max-width:none}


/* v1.0.59 — NAS Operations Compact Polish */
.integrated-operations-hero{padding:12px 14px 12px!important}
.integrated-operations-hero .hero-topline{margin-bottom:8px}
.nas-ops-card{border-radius:5px}
.nas-ops-head.compact{padding:9px 10px}
.nas-ops-status-stack{display:flex;align-items:center;gap:12px;min-width:0;margin-left:auto}
.nas-last-sync{display:flex;align-items:center;gap:6px;min-width:0;color:var(--muted);font-size:8px;white-space:nowrap}
.nas-last-sync span{font-weight:900;letter-spacing:.08em}
.nas-last-sync b{color:var(--text);font-size:9px;font-weight:700}
.nas-ops-metrics.compact{grid-template-columns:1.35fr repeat(3,.72fr)}
.nas-ops-metrics.compact>div{padding:8px 10px}
.nas-ops-actions.compact{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px}
.nas-ops-action-left,.nas-ops-action-right{display:flex;align-items:center;gap:7px;min-width:0}
.nas-ops-action-right{margin-left:auto}
.nas-ops-action-right .sample-time{font-size:8px;color:var(--muted);white-space:nowrap}
.nas-ops-actions.compact .btn{min-height:34px;padding:7px 11px}
.nas-open-monitor{margin-left:0!important;min-width:170px;justify-content:center}
.nas-switch-panel{top:calc(100% + 7px);width:min(390px,82vw);padding:8px;border-color:#414a50}
.nas-switch-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px 7px;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.1em}
.nas-switch-close{display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid var(--line);border-radius:4px;background:#171d21;color:var(--text);font-size:16px;line-height:1;cursor:pointer}
.nas-switch-close:hover{border-color:var(--orange);color:var(--orange)}
.nas-switch-panel select{min-height:40px;background:#0f1418}
.nas-ops-foot{display:none!important}

.ui-mobile .integrated-operations-hero{padding:9px!important}
.ui-mobile .integrated-operations-hero .hero-topline{margin-bottom:7px}
.ui-mobile .nas-ops-head.compact{align-items:flex-start;padding:9px}
.ui-mobile .nas-ops-status-stack{display:grid;justify-items:end;gap:5px}
.ui-mobile .nas-last-sync{display:grid;gap:1px;text-align:right;white-space:normal}
.ui-mobile .nas-last-sync span{font-size:7px}.ui-mobile .nas-last-sync b{font-size:8px}
.ui-mobile .nas-ops-metrics.compact{grid-template-columns:1fr 1fr}
.ui-mobile .nas-ops-metrics.compact>div{padding:8px 9px}
.ui-mobile .nas-ops-actions.compact{display:grid;grid-template-columns:1fr;padding:8px 9px;gap:7px}
.ui-mobile .nas-ops-action-left{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%}
.ui-mobile .nas-ops-action-right{display:grid;grid-template-columns:1fr;width:100%;margin:0;gap:5px}
.ui-mobile .nas-ops-action-right .sample-time{order:2;text-align:right;padding-right:2px;font-size:7px}
.ui-mobile .nas-open-monitor{order:1;width:100%;min-width:0;min-height:42px}
.ui-mobile .nas-switch-wrap,.ui-mobile .nas-switch-wrap>.btn,.ui-mobile .nas-ops-action-left>a.btn{width:100%}
.ui-mobile .nas-switch-panel{left:10px;right:10px;bottom:calc(78px + env(safe-area-inset-bottom,0px));width:auto;max-height:46vh}

.ui-website .nas-ops-head.compact{min-height:50px}
.ui-website .nas-ops-metrics.compact>div:first-child{padding-left:12px}
@media(max-width:920px) and (min-width:761px){.ui-website .nas-ops-status-stack{gap:7px}.ui-website .nas-last-sync{display:none}.ui-website .nas-open-monitor{min-width:150px}.ui-website .nas-ops-actions.compact .btn{padding-inline:9px}}

/* v1.0.60 — PPPoE Billing & Payment */
.billing-shell{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
.billing-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.billing-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.billing-controls select,.billing-controls input{min-height:38px}
.billing-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0}.billing-kpis>a{display:block;padding:12px;background:#13181c;border:1px solid var(--line);border-radius:4px}.billing-kpis>a:hover{border-color:#5b4631}.billing-kpis span{display:block;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.08em}.billing-kpis b{display:block;margin:4px 0 2px;font-size:18px}.billing-kpis small{color:var(--muted);font-size:9px}
.billing-generate-panel .panel-head,.billing-invoices .panel-head,.billing-tariff-panel .panel-head{align-items:center}
.billing-filter-tabs{display:flex;gap:5px;flex-wrap:wrap}.billing-filter-tabs a{padding:6px 9px;border:1px solid var(--line);border-radius:3px;color:var(--muted);font-size:9px;font-weight:800}.billing-filter-tabs a.active,.billing-filter-tabs a:hover{border-color:var(--orange);color:var(--orange);background:rgba(255,138,0,.08)}
.billing-table-wrap{overflow:auto}.billing-table{width:100%;border-collapse:collapse;min-width:940px}.billing-table th{padding:9px 8px;text-align:left;color:var(--muted);font-size:8px;letter-spacing:.07em;border-bottom:1px solid var(--line)}.billing-table td{padding:9px 8px;border-bottom:1px solid #252c31;font-size:10px;vertical-align:middle}.billing-table td b{display:block}.billing-table td small{display:block;color:var(--muted);font-size:8px;margin-top:2px}.billing-table input,.billing-table select{min-height:34px;padding:6px 8px}.billing-table input[type=number]{width:140px}.billing-row-actions{display:flex;align-items:center;gap:5px}.billing-row-actions form{margin:0}.btn.mini{min-height:30px;padding:5px 8px;font-size:9px}.btn.danger{background:#241518;border-color:#5d2b31;color:#ff7a84}
.billing-status{display:inline-flex;padding:4px 7px;border:1px solid var(--line);border-radius:99px;font-size:8px;font-weight:900;letter-spacing:.05em}.billing-status.paid{color:var(--green);border-color:rgba(38,201,133,.35);background:rgba(38,201,133,.08)}.billing-status.unpaid{color:#ff6b73;border-color:rgba(255,95,105,.35);background:rgba(255,95,105,.08)}.billing-status.partial{color:#ffd166;border-color:rgba(255,209,102,.35);background:rgba(255,209,102,.08)}.billing-status.overdue{color:#ff9f43;border-color:rgba(255,159,67,.4);background:rgba(255,159,67,.08)}.billing-status.void{color:var(--muted)}
.billing-search{display:flex;gap:6px}.billing-search input{min-width:230px}.bulk-tariff{display:flex;align-items:end;gap:8px;padding:10px;border-bottom:1px solid var(--line);background:#101519}.bulk-tariff label{display:grid;gap:4px;color:var(--muted);font-size:8px;font-weight:800}.bulk-tariff input{min-height:36px}
.billing-modal{position:fixed;inset:0;z-index:1300;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.68)}.billing-modal.hidden{display:none!important}.billing-modal-card{width:min(520px,100%);max-height:calc(100dvh - 36px);overflow:auto;background:#151a1e;border:1px solid #3a4248;border-top:2px solid var(--orange);border-radius:6px;box-shadow:0 20px 70px rgba(0,0,0,.55)}.billing-modal-head{display:flex;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid var(--line)}.billing-modal-head h2{margin:2px 0}.billing-modal-head p{margin:0;color:var(--muted);font-size:10px}.billing-payment-form{display:grid;gap:10px;padding:14px}.billing-payment-form label{display:grid;gap:5px;color:var(--muted);font-size:9px;font-weight:800}.billing-payment-form input,.billing-payment-form select,.billing-payment-form textarea{width:100%}.billing-modal-actions{display:grid;grid-template-columns:.7fr 1.3fr;gap:8px;padding-top:4px}
.notice.success{border-color:rgba(38,201,133,.35);background:rgba(38,201,133,.08);color:#7fe7b6}.notice.error{border-color:#5d2b31;background:#241518;color:#ff9ca4}
@media(max-width:760px){.billing-hero{display:grid;gap:10px}.billing-controls{display:grid;grid-template-columns:1fr 1fr}.billing-controls .btn{grid-column:1/-1}.billing-kpis{grid-template-columns:1fr 1fr}.billing-kpis b{font-size:14px}.billing-filter-tabs{overflow:auto;flex-wrap:nowrap}.billing-invoices .panel-head,.billing-tariff-panel .panel-head{align-items:flex-start}.billing-search{width:100%}.billing-search input{min-width:0;width:100%}.bulk-tariff{display:grid;grid-template-columns:1fr 90px}.bulk-tariff .btn{grid-column:1/-1}.billing-table{min-width:820px}.billing-modal{align-items:end;padding:0 0 calc(66px + env(safe-area-inset-bottom,0px))}.billing-modal-card{width:100%;max-height:calc(100dvh - 80px - env(safe-area-inset-bottom,0px));border-radius:8px 8px 0 0}.billing-modal-actions{position:sticky;bottom:0;background:#151a1e;padding:10px 0 0}}
/* v1.0.60 nav + billing polish */
.notice{margin:9px 0;padding:10px 12px;border:1px solid var(--line);background:#14191d;border-radius:4px;font-size:11px}
body > nav.app-bottom-nav{grid-template-columns:repeat(7,minmax(0,1fr))!important}
.kpi-billing{border-color:rgba(255,138,0,.24)!important}.kpi-billing .card-icon{color:var(--orange)}
@media(max-width:760px){body > nav.app-bottom-nav > .nav-link span{font-size:8px!important}body > nav.app-bottom-nav > .nav-link .icon{width:18px!important;height:18px!important}.billing-shell{padding-inline:8px!important}}

/* v1.0.61 — Profile Package Billing Integration */
.profile-billing-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line);background:#101519}.profile-billing-toolbar b{display:block;font-size:11px}.profile-billing-toolbar small{display:block;margin-top:3px;color:var(--muted);font-size:9px}.profile-billing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border-bottom:1px solid var(--line)}.profile-billing-card{padding:11px;background:#11161a;border:1px solid var(--line);border-left:3px solid var(--orange);border-radius:5px}.profile-billing-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:9px;border-bottom:1px solid #252c31}.profile-billing-card-head span{display:block;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.08em}.profile-billing-card-head strong{display:block;margin-top:3px;font-size:13px}.profile-subscriber-count{white-space:nowrap!important;color:var(--orange)!important}.profile-billing-fields{display:grid;grid-template-columns:1.3fr .7fr .8fr auto;gap:8px;align-items:end;padding-top:9px}.profile-billing-fields label{display:grid;gap:4px;color:var(--muted);font-size:8px;font-weight:800}.profile-billing-fields input,.profile-billing-fields select{min-height:36px}.profile-billing-fields .btn{min-height:36px;white-space:nowrap}.subscriber-billing-map-head{padding-top:10px}.billing-source{display:inline-flex;padding:4px 7px;border:1px solid var(--line);border-radius:99px;font-size:7px;font-weight:900;letter-spacing:.05em}.billing-source.profile{color:var(--orange);border-color:rgba(255,138,0,.35);background:rgba(255,138,0,.07)}.billing-source.legacy{color:var(--muted)}
@media(max-width:980px){.profile-billing-grid{grid-template-columns:1fr}.profile-billing-fields{grid-template-columns:1fr 100px 120px auto}}
@media(max-width:760px){.profile-billing-toolbar{display:grid}.profile-billing-toolbar .btn{width:100%;justify-content:center}.profile-billing-grid{padding:7px}.profile-billing-card{padding:9px}.profile-billing-card-head{display:grid;gap:5px}.profile-subscriber-count{white-space:normal!important}.profile-billing-fields{grid-template-columns:1fr 90px}.profile-billing-fields .profile-enabled{grid-column:1/2}.profile-billing-fields .btn{grid-column:2/3;align-self:end}.subscriber-billing-map-head{padding-top:8px}}


/* v1.0.62 — Package Integration Compact Retouch */
.compact-package-integration{overflow:hidden}
.profile-package-head{padding-bottom:9px!important}
.profile-package-head h2{margin-bottom:3px}
.profile-package-head p{max-width:680px}
.profile-billing-toolbar.compact{display:grid;grid-template-columns:minmax(240px,1.4fr) auto auto;align-items:center;gap:14px;padding:9px 11px;background:#0f1418}
.package-integration-copy b{font-size:10px;text-transform:uppercase;letter-spacing:.06em}
.package-integration-copy small{margin-top:2px;font-size:8px;line-height:1.35}
.package-summary{display:flex;align-items:center;gap:5px}
.package-summary>span{display:grid;min-width:72px;padding:6px 8px;border:1px solid var(--line);border-radius:4px;background:#12181c;text-align:center}
.package-summary b{font-size:12px;line-height:1;color:var(--text)}
.package-summary small{margin-top:3px;font-size:7px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.profile-sync-form{margin:0}.profile-sync-form .btn{min-height:34px;white-space:nowrap}
.profile-billing-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px;background:#0d1215}
.profile-billing-card.compact{padding:0;border-left-width:2px;border-radius:4px;overflow:hidden;background:#11171b}
.profile-billing-card.compact.is-unconfigured{border-left-color:#596168}
.profile-billing-card-head.compact{align-items:center;padding:8px 9px;border-bottom:1px solid #242c31;background:#12181c}
.package-title span{font-size:7px!important}.package-title strong{margin-top:2px!important;font-size:12px!important}
.package-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.profile-config-state{display:inline-flex!important;align-items:center;padding:3px 5px;border:1px solid var(--line);border-radius:3px;font-size:6px!important;font-weight:900!important;letter-spacing:.05em!important}
.profile-config-state.ready{color:var(--green)!important;border-color:rgba(38,201,133,.28);background:rgba(38,201,133,.06)}
.profile-config-state.empty{color:var(--muted)!important;background:#101519}
.profile-subscriber-count{font-size:7px!important}
.profile-billing-fields.compact{grid-template-columns:minmax(150px,1.45fr) 74px 104px 66px;gap:6px;align-items:end;padding:8px 9px}
.profile-billing-fields.compact label{gap:3px;font-size:7px}
.profile-billing-fields.compact input,.profile-billing-fields.compact select{min-height:33px;height:33px;padding:5px 7px;font-size:10px;border-radius:3px}
.money-field{display:grid;grid-template-columns:30px 1fr;align-items:stretch}
.money-field i{display:grid;place-items:center;border:1px solid var(--line);border-right:0;border-radius:3px 0 0 3px;background:#171d21;color:var(--orange);font-size:8px;font-style:normal;font-weight:900}
.money-field input{border-radius:0 3px 3px 0!important;min-width:0;width:100%}
.package-save{min-height:33px!important;height:33px;padding:5px 10px!important;justify-content:center;font-size:9px!important}
.package-search input{min-height:34px}.package-search .btn{min-height:34px}
@media(max-width:1120px){.profile-billing-toolbar.compact{grid-template-columns:1fr auto}.package-summary{grid-column:1/2;grid-row:2}.profile-sync-form{grid-column:2/3;grid-row:1/3}.profile-billing-fields.compact{grid-template-columns:minmax(130px,1fr) 72px 100px 62px}}
@media(max-width:820px){.profile-billing-grid.compact{grid-template-columns:1fr}.profile-package-head{align-items:flex-start!important}.package-search{width:100%}.package-search input{flex:1}.profile-billing-toolbar.compact{grid-template-columns:1fr}.package-summary{grid-column:auto;grid-row:auto;display:grid;grid-template-columns:repeat(4,1fr);width:100%}.profile-sync-form{grid-column:auto;grid-row:auto}.profile-sync-form .btn{width:100%;justify-content:center}}
@media(max-width:560px){.profile-billing-grid.compact{padding:6px}.profile-billing-card-head.compact{display:flex;gap:8px}.package-meta{display:grid;justify-items:end;gap:3px}.profile-billing-fields.compact{grid-template-columns:1fr 72px;gap:6px}.profile-billing-fields.compact .profile-enabled{grid-column:1/2}.profile-billing-fields.compact .package-save{grid-column:2/3;width:100%}.package-summary>span{min-width:0;padding:5px 3px}.package-summary b{font-size:11px}.package-summary small{font-size:6px}}


/* v1.0.65 — Traffic consolidated into Dashboard */
.dashboard-traffic-kpis{margin-top:10px;grid-template-columns:repeat(6,minmax(0,1fr))}
.dashboard-traffic-kpis article{min-width:0}
.dashboard-interface-panel{margin-top:10px;margin-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
.dashboard-interface-panel .panel-head{align-items:center;gap:14px}
.dashboard-interface-panel .traffic-filter-tools{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:0}
.dashboard-interface-panel .traffic-filter-tools select{min-width:150px}
.dashboard-interface-panel .traffic-filter-tools .field-icon{min-width:220px}
.dashboard-traffic-scroll{max-height:430px;overflow:auto}
.dashboard-traffic-scroll table{min-width:920px}
.dashboard-traffic-scroll thead th{position:sticky;top:0;z-index:2;background:#171d21}
#network-traffic{scroll-margin-top:16px}
.ui-website .app-bottom-nav nav{justify-content:center}
.ui-website .app-bottom-nav .nav-link{flex:0 1 150px}

@media(max-width:900px){
  .dashboard-traffic-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-interface-panel .panel-head{align-items:stretch;flex-direction:column}
  .dashboard-interface-panel .traffic-filter-tools{width:100%;margin-left:0}
  .dashboard-interface-panel .traffic-filter-tools select,.dashboard-interface-panel .traffic-filter-tools .field-icon{flex:1;min-width:0}
}
@media(max-width:640px){
  .dashboard-traffic-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .dashboard-traffic-kpis article{padding:10px}
  .dashboard-interface-panel{margin-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  .dashboard-interface-panel .traffic-filter-tools{display:grid;grid-template-columns:1fr;gap:6px}
  .dashboard-interface-panel .traffic-filter-tools select,.dashboard-interface-panel .traffic-filter-tools .field-icon{width:100%}
  .dashboard-traffic-scroll{max-height:52vh}
}
\n/* v1.0.66 Expired / Isolir */
.profile-isolir{display:inline-flex;align-items:center;padding:3px 8px;border:1px solid rgba(255,89,89,.45);border-radius:999px;color:#ff6b73;background:rgba(255,68,79,.08);font-weight:800;letter-spacing:.04em}.profile-origin{display:block;margin-top:4px;color:var(--muted,#82909f);font-size:10px}.expired-filter-link{text-decoration:none}.isolir-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.isolir-summary .kpi{padding:14px}.isolir-table .status.isolir{color:#ff6b73;border-color:rgba(255,89,89,.42);background:rgba(255,68,79,.08)}.isolir-table .package-cell small{display:block;color:var(--muted,#82909f);margin-top:3px}.isolir-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.isolir-toolbar form{margin:0}.isolir-note{border-left:2px solid var(--accent,#ff8a00);padding:10px 12px;background:rgba(255,138,0,.045);font-size:12px;color:var(--muted,#9aa6b2)}
@media(max-width:760px){.isolir-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.isolir-toolbar .btn{flex:1 1 45%}.isolir-table{min-width:940px}}

/* v1.0.69 — QRIS payment + invoice redesign */
.billing-modal-card-wide{width:min(760px,100%)}
.billing-payment-form-qris{grid-template-columns:minmax(0,1fr) 250px;align-items:start}
.billing-payment-form-qris .payment-form-fields{display:grid;gap:10px}
.billing-payment-form-qris .billing-modal-actions{grid-column:1/-1}
.qris-payment-panel{display:grid;gap:8px;padding:10px;border:1px solid #3d464d;border-radius:5px;background:#0f1418}
.qris-payment-panel.hidden{display:none!important}
.qris-payment-title{display:grid;gap:2px}
.qris-payment-title b{font-size:11px;color:var(--text)}
.qris-payment-title span{font-size:8px;color:var(--muted);line-height:1.35}
.qris-payment-panel img{display:block;width:100%;max-height:310px;object-fit:contain;border:1px solid #343d43;border-radius:4px;background:#fff}
.qris-payment-panel small{color:var(--muted);font-size:8px;line-height:1.4}
.billing-row-actions a[href*="billing_receipt.php"]{border-color:rgba(255,138,0,.35);color:#f5b35f}
@media(max-width:760px){
  .billing-modal-card-wide{width:100%}
  .billing-payment-form-qris{grid-template-columns:1fr;padding-bottom:18px}
  .billing-payment-form-qris .billing-modal-actions{grid-column:auto}
  .qris-payment-panel{order:2}
  .qris-payment-panel img{max-height:290px}
  .billing-payment-form-qris .billing-modal-actions{order:3}
}

/* v1.0.69 - payment channel selector */
.payment-provider-field.hidden,.payment-channel-summary.hidden{display:none!important}
.payment-channel-summary{display:grid;gap:5px;padding:12px;border:1px solid #3d464d;border-radius:5px;background:#0f1418;min-height:96px;align-content:center}
.payment-channel-summary>span{font-size:8px;letter-spacing:.12em;font-weight:900;color:var(--orange)}
.payment-channel-summary>strong{font-size:15px;color:var(--text)}
.payment-channel-summary>small{font-size:9px;line-height:1.5;color:var(--muted)}
#bankNameField input,#ewalletNameField input{border-color:#47525a}
#bankNameField:not(.hidden) input:focus,#ewalletNameField:not(.hidden) input:focus{border-color:var(--orange)}

/* v1.0.70 Package Profile Dropdown */
.package-profile-selector{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:10px 12px;border-bottom:1px solid var(--line);background:#0d1215}.package-profile-selector label{display:grid;gap:5px;min-width:min(520px,100%)}.package-profile-selector label>span{font-size:8px;font-weight:900;letter-spacing:.09em;color:var(--orange)}.package-profile-selector select{height:38px;min-width:320px;border:1px solid #303940;border-radius:4px;background:#10161a;color:var(--text);padding:0 34px 0 10px;font-weight:800}.package-profile-selector small{color:var(--muted);font-size:8px}.profile-dropdown-grid{display:block!important;padding:9px 10px!important}.package-profile-card{display:none!important;max-width:100%}.package-profile-card.is-active-package{display:block!important}.package-profile-card .profile-billing-fields.compact{grid-template-columns:minmax(220px,1.8fr) 110px 150px 140px}.package-profile-card .package-save{width:100%;justify-content:center}.package-dropdown-toolbar{grid-template-columns:minmax(250px,1.2fr) auto auto!important}
@media(max-width:820px){.package-profile-selector{display:grid;align-items:stretch}.package-profile-selector label{min-width:0}.package-profile-selector select{min-width:0;width:100%}.package-profile-selector small{display:none}.package-dropdown-toolbar{grid-template-columns:1fr!important}.package-profile-card .profile-billing-fields.compact{grid-template-columns:1fr 92px}.package-profile-card .profile-enabled{grid-column:1/2}.package-profile-card .package-save{grid-column:2/3}}

/* v1.0.71 — AUTO DEVICE POLISH ------------------------------------------ */
/* Device mode is authoritative. Keep manual mode controls out of the UI. */
.popup-mode-switch,.nav-mode-link,.mobile-mode-badge{display:none!important}

.device-auto-indicator{
  margin-left:auto;display:inline-flex;align-items:center;gap:7px;min-height:28px;
  padding:5px 9px;border:1px solid #313a42;border-radius:999px;background:#11171b;
  color:#8f9ba5;font-size:8px;font-weight:900;letter-spacing:.09em;white-space:nowrap;
}
.device-auto-indicator i{width:7px;height:7px;border-radius:50%;background:#25c77a;box-shadow:0 0 0 3px rgba(37,199,122,.10)}
html.device-mobile .device-auto-indicator{padding:4px 7px;font-size:7px;gap:5px}

/* MOBILE / HANDPHONE */
html.device-mobile body{
  --auto-content-max:520px;
  overflow-x:hidden!important;
}
html.device-mobile body .topbar{
  width:100%!important;max-width:var(--auto-content-max)!important;height:54px!important;min-height:54px!important;
  margin:0 auto!important;padding:0 10px!important;position:sticky!important;top:0!important;
  background:#0f1418f5!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important;
}
html.device-mobile body .topbar .brand{min-width:0!important;max-width:calc(100% - 108px)!important}
html.device-mobile body .topbar-logo img{max-width:128px!important;max-height:35px!important;object-fit:contain!important}
html.device-mobile body .brand-title{display:none!important}
html.device-mobile body .shell{
  width:100%!important;max-width:var(--auto-content-max)!important;margin:0 auto!important;
  padding:8px 8px calc(92px + env(safe-area-inset-bottom,0px))!important;
}
html.device-mobile body .hero{padding:10px!important;gap:9px!important;border-radius:4px!important}
html.device-mobile body .hero h1{font-size:18px!important;line-height:1.15!important}
html.device-mobile body .hero p{font-size:10px!important}
html.device-mobile body .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
html.device-mobile body .kpis article{min-width:0!important}
html.device-mobile body .panel-head{align-items:flex-start!important;gap:8px!important}
html.device-mobile body .form-grid,.device-mobile body .crud-section-grid{grid-template-columns:1fr!important}
html.device-mobile body .table-scroll{max-width:100%!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}
html.device-mobile body > nav.app-bottom-nav{
  left:50%!important;right:auto!important;transform:translateX(-50%)!important;
  width:100%!important;max-width:var(--auto-content-max)!important;
  height:calc(66px + env(safe-area-inset-bottom,0px))!important;
  padding:0 0 env(safe-area-inset-bottom,0px)!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  border-left:1px solid #222a30!important;border-right:1px solid #222a30!important;
}
html.device-mobile body > nav.app-bottom-nav > .nav-link{height:66px!important;min-height:66px!important;padding:6px 1px!important}
html.device-mobile body > nav.app-bottom-nav > .nav-link .icon{width:19px!important;height:19px!important}
html.device-mobile body > nav.app-bottom-nav > .nav-link span{font-size:8px!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}
html.device-mobile body .crud-modal.popup-mobile:not(.hidden){padding:0!important;align-items:flex-end!important}
html.device-mobile body .crud-modal.popup-mobile .crud-dialog{width:100%!important;max-width:var(--auto-content-max)!important;margin:0 auto!important}

/* LAPTOP / PC */
html.device-website body{overflow-x:hidden!important}
html.device-website body .topbar{
  width:100%!important;max-width:none!important;height:58px!important;min-height:58px!important;
  padding:0 clamp(16px,2vw,28px)!important;background:#101418!important;
}
html.device-website body .topbar .brand{max-width:none!important}
html.device-website body .brand-title{display:flex!important;flex-direction:column!important}
html.device-website body .shell{
  width:min(100%,1540px)!important;max-width:1540px!important;margin:0 auto!important;
  padding:16px clamp(14px,2vw,24px) calc(92px + env(safe-area-inset-bottom,0px))!important;
}
html.device-website body > nav.app-bottom-nav{
  display:flex!important;left:0!important;right:0!important;transform:none!important;width:100%!important;max-width:none!important;
  height:60px!important;padding:0 max(18px,calc((100vw - 920px)/2))!important;
  background:#101418f5!important;
}
html.device-website body > nav.app-bottom-nav > .nav-link{
  flex:1 1 0!important;max-width:150px!important;height:60px!important;min-height:60px!important;
  flex-direction:row!important;gap:7px!important;padding:0 12px!important;border-left:1px solid transparent!important;border-right:1px solid transparent!important;
}
html.device-website body > nav.app-bottom-nav > .nav-link .icon{width:16px!important;height:16px!important}
html.device-website body > nav.app-bottom-nav > .nav-link span{font-size:10px!important}
html.device-website body > nav.app-bottom-nav > .nav-link.active-nav{background:rgba(255,138,0,.08)!important}
html.device-website body .crud-modal.popup-website:not(.hidden){align-items:center!important;justify-content:center!important;padding:28px!important}

/* Small phones: keep all six navigation items usable without horizontal scroll. */
@media(max-width:380px){
  html.device-mobile body .device-auto-indicator span{display:none!important}
  html.device-mobile body .device-auto-indicator{width:24px;height:24px;justify-content:center;padding:0!important}
  html.device-mobile body > nav.app-bottom-nav > .nav-link span{font-size:7px!important}
  html.device-mobile body > nav.app-bottom-nav > .nav-link .icon{width:17px!important;height:17px!important}
}

/* v1.0.80 - Package billing: PPN + BHP + USO */
.profile-tax-grid{display:grid;grid-template-columns:minmax(190px,1.5fr) repeat(3,minmax(90px,.65fr)) minmax(90px,.6fr) minmax(120px,.8fr);gap:10px;align-items:end;padding:12px 0}.profile-tax-grid label{display:grid;gap:6px;min-width:0}.profile-tax-grid label>span{font-size:10px;font-weight:800;color:#8d9aa7;text-transform:uppercase;letter-spacing:.04em}.profile-tax-grid input,.profile-tax-grid select{width:100%}.package-tax-summary{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr)) minmax(170px,1.35fr) auto;gap:8px;align-items:stretch;border-top:1px solid var(--line,#26313a);padding-top:12px}.package-tax-summary>span{display:flex;flex-direction:column;gap:4px;padding:9px 10px;border:1px solid var(--line,#26313a);background:rgba(255,255,255,.015);border-radius:6px;font-size:9px;text-transform:uppercase;color:#7f8b96}.package-tax-summary b{font-size:13px;color:#e8eef4;text-transform:none}.package-tax-summary .package-grand{border-color:rgba(255,138,0,.45);background:rgba(255,138,0,.07)}.package-tax-summary .package-grand b{color:#ff9a19;font-size:15px}.package-tax-summary .package-save{min-width:120px}.tariff-table td:nth-child(5) small{display:block;color:#7f8b96;white-space:nowrap}.tariff-table td:nth-child(5) b{display:block;margin-top:3px;color:#ff9a19}
@media(max-width:900px){.profile-tax-grid{grid-template-columns:1fr 1fr 1fr}.profile-tax-grid .package-fee{grid-column:1/-1}.package-tax-summary{grid-template-columns:1fr 1fr}.package-tax-summary .package-grand,.package-tax-summary .package-save{grid-column:1/-1}.package-tax-summary .package-save{width:100%}}
@media(max-width:600px){.profile-tax-grid{grid-template-columns:1fr 1fr}.profile-tax-grid .package-fee{grid-column:1/-1}.package-tax-summary{grid-template-columns:1fr 1fr}.package-tax-summary>span{padding:8px}.tariff-table{min-width:900px}}

/* v1.0.81 Billing Paid/Unpaid Search */
.billing-invoice-head{gap:14px;align-items:flex-end;flex-wrap:wrap}
.billing-invoice-search{display:flex;align-items:center;gap:8px;min-width:min(100%,520px);margin-left:auto}
.billing-invoice-search input[type="search"]{min-width:280px;flex:1;height:38px}
.billing-status-filter{display:flex;gap:6px;flex-wrap:wrap;padding:10px 12px;border-top:1px solid var(--line,#26313a);border-bottom:1px solid var(--line,#26313a);background:rgba(9,14,18,.42)}
.billing-status-filter a{min-width:72px;text-align:center}
.billing-search-result-note{padding:9px 12px;font-size:12px;color:var(--muted,#94a3b8);border-bottom:1px solid var(--line,#26313a)}
.billing-search-result-note b{color:var(--text,#e6edf3)}
@media(max-width:760px){
 .billing-invoice-head{align-items:stretch}
 .billing-invoice-search{width:100%;min-width:0;margin-left:0;display:grid;grid-template-columns:1fr auto auto}
 .billing-invoice-search input[type="search"]{min-width:0;width:100%}
 .billing-status-filter{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
 .billing-status-filter a{flex:0 0 auto}
}

/* v1.0.82 Billing search hard fix */
.billing-search-fallback{border-top:1px solid var(--line,#27313a);background:rgba(255,153,0,.035)}
.billing-search-fallback-head{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line,#27313a);font-size:12px}
.billing-search-fallback-head b{color:#ff9f0a}.billing-search-fallback-head span{color:var(--muted,#8793a0)}
.compact-search-match td,.compact-search-match th{padding-top:8px;padding-bottom:8px}
.billing-status.missing{color:#ffb12b;border-color:rgba(255,177,43,.38);background:rgba(255,177,43,.08)}
@media(max-width:760px){.billing-search-fallback-head{align-items:flex-start;flex-direction:column}.billing-invoice-search input[type=search]{min-width:0;width:100%}}

/* v1.0.86 Custom PPP Profile */
.profile-custom-input{margin-top:8px!important;border-color:#f59e0b!important}.profile-custom-input.hidden{display:none!important}.custom-profile-choice{border-style:dashed!important}.custom-profile-choice .profile-choice-icon{color:#ff9800!important;font-weight:800}
\n\n/* v1.0.89 - Selected PPP Profile is the direct package dropdown */\n.selected-profile-dropdown{display:grid!important;grid-template-columns:max-content minmax(260px,1fr);gap:8px 14px;align-items:center}\n.selected-profile-dropdown .pill-label{margin:0;color:var(--muted,#8995a7);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}\n.selected-profile-dropdown #pppProfile{width:100%;min-height:42px;background:#0d1218;border:1px solid #465260;border-radius:7px;color:#fff;padding:0 38px 0 12px;font-weight:700;outline:none}\n.selected-profile-dropdown #pppProfile:focus{border-color:#ff8a00;box-shadow:0 0 0 2px rgba(255,138,0,.12)}\n.selected-profile-dropdown #pppProfileHelp{grid-column:2;color:#7f8b99;font-size:10px;line-height:1.35}\n.ui-mobile .selected-profile-dropdown,.popup-mobile .selected-profile-dropdown{grid-template-columns:1fr!important;gap:7px!important}\n.ui-mobile .selected-profile-dropdown #pppProfileHelp,.popup-mobile .selected-profile-dropdown #pppProfileHelp{grid-column:1!important}\n
/* v1.0.90 - global configuration success/error show message */
.global-message-stack{position:fixed;right:18px;top:82px;z-index:10000;display:grid;gap:10px;width:min(390px,calc(100vw - 24px));pointer-events:none}
.global-show-message{display:grid;grid-template-columns:38px minmax(0,1fr) 28px;align-items:center;gap:10px;padding:12px 10px 12px 12px;background:#12191a;border:1px solid #2a6c4b;border-left:4px solid #26c985;border-radius:7px;box-shadow:0 18px 50px #0009;color:#eef7f3;opacity:0;transform:translateY(-8px) scale(.985);transition:.22s ease;pointer-events:auto}
.global-show-message.show{opacity:1;transform:none}.global-show-message.error{background:#241518;border-color:#71343a;border-left-color:#ff5561}.global-show-message.warning{background:#28210f;border-color:#8b6920;border-left-color:#ffb020}
.gsm-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#123a29;color:#67e9a9;font-size:20px;font-weight:900}.error .gsm-icon{background:#3a171b;color:#ff8f97}.warning .gsm-icon{background:#3b3215;color:#ffd56a}.gsm-copy{min-width:0;display:grid;gap:2px}.gsm-copy strong{font-size:10px;letter-spacing:.12em;color:#67e9a9}.error .gsm-copy strong{color:#ff8f97}.warning .gsm-copy strong{color:#ffd56a}.gsm-copy span{font-size:12px;line-height:1.4;color:#e7edf0;overflow-wrap:anywhere}.gsm-close{border:0;background:transparent;color:#7e8a91;font-size:19px;cursor:pointer;padding:2px}.gsm-close:hover{color:#fff}
@media(max-width:900px){.global-message-stack{left:10px;right:10px;top:66px;width:auto}.global-show-message{grid-template-columns:34px minmax(0,1fr) 24px;padding:10px}.gsm-copy span{font-size:11px}}


/* v1.0.91 — PPPoE automatic Active NAS sync */
.auto-sync-state{display:inline-flex;align-items:center;min-height:30px;padding:0 9px;border:1px solid #303941;border-radius:6px;background:#10161b;color:#8d9aa5;font-size:10px;font-weight:700;letter-spacing:.04em;white-space:nowrap}
.auto-sync-state[data-state=syncing]{color:#ff9800;border-color:#6a4515}
.auto-sync-state[data-state=ok]{color:#24c984;border-color:#1d6249}
.auto-sync-state[data-state=error]{color:#ff626d;border-color:#6d2930}
.ui-mobile .hero .toolbar .auto-sync-state{width:100%;justify-content:center;min-height:28px}

/* v1.0.94 PPPoE Enable / Disable */
.row-actions .enable-user{border-color:rgba(34,197,94,.48);color:#51e38b;background:rgba(34,197,94,.08)}
.row-actions .enable-user:hover{background:rgba(34,197,94,.16)}
.row-actions .disable-user{border-color:rgba(245,158,11,.45);color:#ffb347;background:rgba(245,158,11,.07)}
.row-actions .disable-user:hover{background:rgba(245,158,11,.15)}


/* v1.0.95 PPPoE online/offline audible notifications */
.sound-alert-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 10px;border:1px solid #28513f;border-radius:6px;background:#0f1d18;color:#59dda0;font-size:10px;font-weight:800;letter-spacing:.03em;cursor:pointer;white-space:nowrap}.sound-alert-toggle:hover{border-color:#3b7d5d;background:#132820}.sound-alert-toggle[data-enabled="0"]{border-color:#424a52;background:#151a1f;color:#89939c}.ui-mobile .hero .toolbar .sound-alert-toggle{width:100%;min-height:32px}.sound-alert-toggle:focus-visible{outline:2px solid #ff8a00;outline-offset:2px}


/* v1.0.96 mobile/desktop PPPoE sound settings */
.sound-settings-modal{position:fixed;inset:0;z-index:190;background:rgba(2,5,8,.82);display:grid;place-items:center;padding:18px}.sound-settings-modal.hidden{display:none!important}.sound-settings-card{width:min(620px,96vw);max-height:min(780px,90vh);overflow:auto;background:#14191e;border:1px solid #394149;border-top:2px solid var(--orange);border-radius:10px;box-shadow:0 24px 80px #000b}.sound-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px;border-bottom:1px solid var(--line)}.sound-settings-head h2{margin:2px 0 4px;font-size:20px}.sound-settings-head p{margin:0;color:var(--muted);font-size:12px}.sound-settings-body{display:grid;gap:14px;padding:16px 18px}.sound-switch-row,.sound-volume-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px;border:1px solid var(--line);border-radius:7px;background:#101519}.sound-switch-row span,.sound-volume-row span{display:grid;gap:2px}.sound-switch-row small,.sound-volume-row small{color:var(--muted);font-size:10px}.sound-switch-row input{width:22px;height:22px;accent-color:var(--orange)}.sound-setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sound-setting-grid>label{display:grid;gap:8px;padding:13px;border:1px solid var(--line);border-radius:7px;background:#101519}.sound-setting-grid>label>span{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#cbd4db}.sound-test{width:100%}.online-test{border-color:#236946;color:#70e7ad;background:#10271d}.offline-test{border-color:#71333a;color:#ff9ca4;background:#2a1519}.sound-volume-row input[type=range]{width:min(280px,50vw);accent-color:var(--orange);padding:0;border:0;background:transparent}.sound-help{padding:10px 12px;border-left:3px solid var(--orange);background:#1b1a15;color:#c3a46f;font-size:11px}.sound-settings-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding:13px 18px 17px;border-top:1px solid var(--line);background:#11161a;position:sticky;bottom:0}.sound-alert-toggle{gap:5px}.ui-mobile .sound-settings-modal{align-items:end;padding:0}.ui-mobile .sound-settings-card{width:100%;max-height:calc(100dvh - 76px - env(safe-area-inset-bottom,0px));border-radius:14px 14px 0 0}.ui-mobile .sound-settings-head{padding:14px}.ui-mobile .sound-settings-body{padding:12px;gap:10px}.ui-mobile .sound-setting-grid{grid-template-columns:1fr}.ui-mobile .sound-switch-row,.ui-mobile .sound-volume-row{padding:11px}.ui-mobile .sound-volume-row{align-items:flex-start;flex-direction:column}.ui-mobile .sound-volume-row input[type=range]{width:100%}.ui-mobile .sound-settings-actions{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}

/* v1.0.100 Compact Notification Settings */
.compact-sound-settings .sound-settings-card{width:min(560px,94vw);max-height:min(680px,88vh);overflow:hidden;display:flex;flex-direction:column}
.compact-sound-settings .sound-settings-head{padding:14px 16px}
.compact-sound-settings .sound-settings-head h2{font-size:18px}
.compact-sound-settings .sound-settings-head p{font-size:11px}
.compact-sound-settings .sound-settings-body{padding:12px 14px;gap:10px;overflow:auto}
.compact-toggle-group{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#101519}
.compact-sound-settings .sound-switch-row.compact-row{border:0;border-radius:0;background:transparent;padding:10px 12px}
.compact-sound-settings .sound-switch-row.compact-row+ .sound-switch-row.compact-row{border-top:1px solid var(--line)}
.compact-sound-settings .sound-switch-row.compact-row b{font-size:13px}
.compact-sound-settings .sound-switch-row.compact-row small{font-size:9px;line-height:1.35}
.compact-sound-settings .sound-switch-row input{width:19px;height:19px;flex:0 0 auto}
.compact-sound-grid{gap:9px}
.compact-sound-settings .sound-setting-grid>label{padding:10px;gap:6px}
.compact-sound-settings .sound-setting-grid>label>span{font-size:10px}
.sound-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
.sound-inline select{min-width:0;height:38px;padding:0 10px;font-size:12px}
.compact-test{width:auto!important;min-width:64px;height:38px;padding:0 12px}
.compact-volume{padding:10px 12px!important;gap:10px!important}
.compact-volume>span{display:flex!important;align-items:center;justify-content:space-between;width:100%}
.compact-volume input[type=range]{width:100%!important;max-width:none}
.compact-utility-row{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center}
.compact-vibration{width:auto;white-space:nowrap}
.compact-help{padding:0!important;border:0!important;background:transparent!important;color:var(--muted)!important;font-size:9px!important;line-height:1.35}
.compact-sound-settings .sound-settings-actions{padding:10px 14px 12px;grid-template-columns:1fr 1.25fr}

.ui-mobile .compact-sound-settings .sound-settings-card{max-height:calc(100dvh - 82px - env(safe-area-inset-bottom,0px));border-radius:12px 12px 0 0}
.ui-mobile .compact-sound-settings .sound-settings-head{padding:10px 12px}
.ui-mobile .compact-sound-settings .sound-settings-head h2{font-size:16px}
.ui-mobile .compact-sound-settings .sound-settings-head p{display:none}
.ui-mobile .compact-sound-settings .sound-settings-body{padding:9px 10px;gap:8px}
.ui-mobile .compact-sound-settings .sound-setting-grid{grid-template-columns:1fr}
.ui-mobile .compact-sound-settings .sound-setting-grid>label{padding:9px}
.ui-mobile .compact-sound-settings .sound-switch-row.compact-row{padding:9px 10px}
.ui-mobile .compact-sound-settings .sound-switch-row.compact-row small{display:none}
.ui-mobile .compact-sound-settings .compact-volume{flex-direction:column;align-items:stretch!important;padding:9px 10px!important}
.ui-mobile .compact-sound-settings .compact-utility-row{grid-template-columns:auto 1fr}
.ui-mobile .compact-sound-settings .compact-vibration{height:36px;padding:0 10px}
.ui-mobile .compact-sound-settings .sound-settings-actions{padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));gap:8px}
.ui-mobile .compact-sound-settings .sound-settings-actions .btn{min-height:42px}
@media(max-width:420px){.compact-utility-row{grid-template-columns:1fr}.compact-help{text-align:center}.compact-vibration{width:100%}}

/* v1.0.101 — COMPACT MOBILE DASHBOARD / SINGLE AUTO INDICATOR ----------- */
/* One header indicator only. Any legacy MOBILE AUTO badge is suppressed. */
.mobile-mode-badge,.nav-mode-link{display:none!important}
header.topbar .device-auto-indicator{margin-left:auto!important;flex:0 0 auto!important}

/* Compact Active NAS card while preserving readability and primary action. */
html.device-mobile body .integrated-operations-hero{padding:8px!important}
html.device-mobile body .integrated-operations-hero .hero-topline{margin-bottom:6px!important}
html.device-mobile body .integrated-operations-hero .hero-topline h1{font-size:18px!important;margin-bottom:0!important}
html.device-mobile body .nas-ops-card{border-radius:7px!important}
html.device-mobile body .nas-ops-head.compact{padding:7px 8px!important;gap:8px!important;min-height:0!important}
html.device-mobile body .nas-ops-label{font-size:7px!important;margin-bottom:2px!important}
html.device-mobile body .nas-ops-identity strong{font-size:12px!important;line-height:1.15!important}
html.device-mobile body .nas-ops-identity small{font-size:8px!important;margin-top:1px!important}
html.device-mobile body .nas-ops-status-stack{gap:3px!important}
html.device-mobile body .nas-ops-status-stack .live-chip{padding:4px 7px!important;font-size:7px!important}
html.device-mobile body .nas-last-sync{display:flex!important;align-items:center!important;gap:4px!important;white-space:nowrap!important;font-size:7px!important;line-height:1.1!important}
html.device-mobile body .nas-last-sync span{font-size:7px!important}
html.device-mobile body .nas-last-sync b{font-size:7px!important;font-weight:700!important}
html.device-mobile body .nas-ops-metrics.compact>div{padding:6px 8px!important;min-height:48px!important}
html.device-mobile body .nas-ops-metrics span{font-size:7px!important;margin-bottom:2px!important}
html.device-mobile body .nas-ops-metrics.compact b{font-size:11px!important}
html.device-mobile body .nas-ops-actions.compact{padding:6px 8px!important;gap:6px!important}
html.device-mobile body .nas-ops-action-left{gap:6px!important}
html.device-mobile body .nas-ops-actions.compact .btn{min-height:32px!important;height:32px!important;padding:5px 7px!important;font-size:9px!important;border-radius:6px!important}
html.device-mobile body .nas-ops-actions.compact .btn .icon{width:13px!important;height:13px!important}
html.device-mobile body .nas-open-monitor{min-height:40px!important;height:40px!important;font-size:11px!important;font-weight:800!important}
html.device-mobile body .nas-ops-action-right{gap:3px!important}
html.device-mobile body .nas-ops-action-right .sample-time{font-size:7px!important;line-height:1!important}

/* Dashboard KPI hierarchy: two columns, 15–20% shorter, entire card clickable. */
html.device-mobile body .dashboard-kpis.compact-kpis{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;margin:7px 0 8px!important;
}
html.device-mobile body .dashboard-kpis.kpi-oneclick .kpi-card-link{
  min-height:80px!important;height:auto!important;
  padding:9px 9px 8px 38px!important;
  justify-content:center!important;border-radius:0!important;
  touch-action:manipulation!important;
}
html.device-mobile body .dashboard-kpis .kpi-card-link .card-icon{
  left:10px!important;top:12px!important;width:19px!important;height:19px!important;
}
html.device-mobile body .dashboard-kpis .kpi-card-link>span{
  font-size:8px!important;line-height:1.05!important;letter-spacing:.06em!important;
}
html.device-mobile body .dashboard-kpis .kpi-card-link>b{
  font-size:21px!important;line-height:1.08!important;margin-top:2px!important;font-weight:800!important;
}
html.device-mobile body .dashboard-kpis .kpi-card-link>small{
  font-size:7px!important;line-height:1.1!important;margin-top:1px!important;
}
html.device-mobile body .dashboard-kpis .kpi-card-link>em{
  font-size:7px!important;line-height:1!important;margin-top:5px!important;letter-spacing:.035em!important;
}

/* Semantic KPI color system. NAS / Total remain neutral. */
.dashboard-kpis .kpi-online{border-color:rgba(37,199,122,.28)!important}
.dashboard-kpis .kpi-online .card-icon,.dashboard-kpis .kpi-online b{color:var(--green)!important}
.dashboard-kpis .kpi-offline,.dashboard-kpis .kpi-expired{border-color:rgba(255,82,93,.25)!important}
.dashboard-kpis .kpi-offline .card-icon,.dashboard-kpis .kpi-offline b,
.dashboard-kpis .kpi-expired .card-icon,.dashboard-kpis .kpi-expired b{color:var(--red)!important}
.dashboard-kpis .kpi-billing{border-color:rgba(255,138,0,.28)!important}
.dashboard-kpis .kpi-billing .card-icon,.dashboard-kpis .kpi-billing .billing-due{color:var(--orange)!important}
.dashboard-kpis .kpi-card-link:not(.kpi-online):not(.kpi-offline):not(.kpi-expired):not(.kpi-billing) .card-icon{color:var(--muted)!important}

/* Extra Android/iOS breathing room below the fixed navigation. */
html.device-mobile body > nav.app-bottom-nav{
  height:calc(70px + env(safe-area-inset-bottom,0px) + 4px)!important;
  padding-bottom:calc(env(safe-area-inset-bottom,0px) + 4px)!important;
}
html.device-mobile body > nav.app-bottom-nav > .nav-link{
  height:66px!important;min-height:66px!important;
}
html.device-mobile body{
  padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;
}
html.device-mobile body .shell,
html.device-mobile body .shell.perfect-dashboard{
  padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important;
}
html.device-mobile body .perfect-dashboard>:last-child{margin-bottom:10px!important}

@media(max-width:380px){
  html.device-mobile body .dashboard-kpis.kpi-oneclick .kpi-card-link{min-height:76px!important;padding-left:35px!important}
  html.device-mobile body .dashboard-kpis .kpi-card-link>b{font-size:19px!important}
  html.device-mobile body .nas-last-sync span{display:none!important}
}

/* v1.0.103 — UNIFIED CORPORATE THEME -------------------------------------
   One visual language across Dashboard, PPPoE, NAS, Billing, Expired,
   About, authentication, dialogs, tables and notification settings.
   Corporate light shell + graphite operational surfaces + orange accent.
*/
:root{
  --bg:#f2f5f7;--panel:#ffffff;--panel2:#f8fafb;--line:#dbe2e7;
  --text:#1d252c;--muted:#7b8791;--orange:#ff8a00;--green:#19b978;
  --red:#e8505b;--amber:#e4a820;--radius:10px;
  --graphite:#101519;--graphite2:#151b20;--graphite3:#1b2228;
  --graphite-line:#2a333a;--shadow:0 8px 26px rgba(31,42,50,.07);
}
html{background:#eef2f4!important}
body,body.ui-mobile,body.ui-website{background:var(--bg)!important;color:var(--text)!important;box-shadow:none!important}
a{color:inherit}

/* Header / branding */
.topbar,html.device-mobile body .topbar,html.device-website body .topbar{
  background:rgba(255,255,255,.97)!important;border-color:var(--line)!important;
  box-shadow:0 1px 10px rgba(31,42,50,.04)!important;color:var(--text)!important;
}
.topbar .brand-title strong{color:var(--text)!important}.brand-kicker,.eyebrow{color:var(--orange)!important}
.device-auto-indicator,.auto-mode-chip{
  background:#fff!important;border:1px solid var(--line)!important;color:#66727c!important;
  box-shadow:0 2px 8px rgba(31,42,50,.04)!important;
}

/* Fixed bottom navigation – same style on every page */
body>nav.app-bottom-nav,html.device-mobile body>nav.app-bottom-nav,html.device-website body>nav.app-bottom-nav{
  background:rgba(255,255,255,.98)!important;border-color:var(--line)!important;
  box-shadow:0 -6px 22px rgba(31,42,50,.08)!important;
}
body>nav.app-bottom-nav>.nav-link{color:#7c8790!important;background:transparent!important}
body>nav.app-bottom-nav>.nav-link.active-nav{color:var(--orange)!important;background:rgba(255,138,0,.07)!important}
body>nav.app-bottom-nav>.nav-link.active-nav:after{background:var(--orange)!important}
body>nav.app-bottom-nav>.nav-logout{color:#d75c66!important}

/* Shared page containers */
.shell,.billing-shell,.about-shell,.nas-mobile-shell{color:var(--text)!important}
.hero,.panel,.about-card,.billing-hero,.billing-tariff-panel,.billing-invoices,.profile-billing-panel,
.isolir-summary,.isolir-table,.isolir-toolbar,.package-profile-card,.billing-search-fallback{
  background:#fff!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:var(--shadow)!important;
}
.hero{border-left:3px solid var(--orange)!important;border-radius:12px!important}
.panel,.about-card,.billing-tariff-panel,.billing-invoices,.profile-billing-panel{border-radius:10px!important}
.panel-head,.billing-invoice-head,.profile-billing-toolbar,.billing-status-filter,.billing-search-result-note{
  background:#fff!important;border-color:var(--line)!important;color:var(--text)!important;
}
.hero p,.panel-head p,.muted,.about-label,.about-card p,.billing-search-result-note,.nas-row span{color:var(--muted)!important}
h1,h2,h3,strong,b{color:var(--text)}

/* Dashboard keeps the operational NAS console graphite, matching the brand. */
.nas-ops-card,.integrated-operations-hero .nas-ops-card{
  background:var(--graphite)!important;border-color:var(--graphite-line)!important;color:#eef3f6!important;box-shadow:none!important;
}
.nas-ops-card strong,.nas-ops-card b{color:#eef3f6!important}.nas-ops-card small,.nas-ops-card span{color:#8f9aa3}
.nas-ops-metrics>div,.nas-ops-actions{border-color:var(--graphite-line)!important}

/* KPI cards */
.kpis article,.dashboard-kpis .kpi-card-link,.billing-kpis .kpi,.pppoe-live-kpis .kpi,.traffic-kpis article{
  background:#fff!important;border:1px solid var(--line)!important;color:var(--text)!important;box-shadow:0 4px 16px rgba(31,42,50,.045)!important;
}
.kpis span,.dashboard-kpis span,.billing-kpis span,.pppoe-live-kpis span,.traffic-kpis span{color:#87919a!important}
.kpis b,.dashboard-kpis b,.billing-kpis b,.pppoe-live-kpis b,.traffic-kpis b{color:var(--text)}
.dashboard-kpis .kpi-online b,.good{color:var(--green)!important}
.dashboard-kpis .kpi-offline b,.dashboard-kpis .kpi-expired b,.bad{color:var(--red)!important}
.dashboard-kpis .kpi-billing b,.warn{color:var(--orange)!important}
.kpi-card-link:hover{border-color:#ffc06d!important;background:#fffaf4!important}

/* Forms, filters, selects */
input,select,textarea,.selected-profile-dropdown #pppProfile{
  background:#fff!important;border-color:#cfd8de!important;color:var(--text)!important;box-shadow:none!important;
}
input::placeholder,textarea::placeholder{color:#a4afb8!important}
input:focus,select:focus,textarea:focus,.selected-profile-dropdown #pppProfile:focus{
  border-color:var(--orange)!important;box-shadow:0 0 0 3px rgba(255,138,0,.10)!important;
}
label,.form-grid label,.modern-form label>span,.profile-billing-fields label{color:#68747e!important}
.btn,.filter,.icon-btn{
  background:#fff!important;border-color:#cfd8de!important;color:#34404a!important;box-shadow:none!important;
}
.btn:hover,.filter:hover,.icon-btn:hover{border-color:#aebbc4!important;background:#f8fafb!important}
.btn.primary,.filter.active,.btn.primary:hover{background:var(--orange)!important;border-color:var(--orange)!important;color:#161616!important}
.btn.danger{background:#fff5f6!important;border-color:#f0c6ca!important;color:#ce4651!important}
.btn.test-api{background:#effaf5!important;border-color:#b7e8d0!important;color:#14865a!important}

/* Tables */
.table-scroll,.billing-table-wrap{background:#fff!important}
table{color:var(--text)!important;background:#fff!important}
th{background:#f4f7f9!important;color:#78848e!important;border-color:var(--line)!important}
td{border-color:#e6ebef!important;color:#34404a!important}
tbody tr:hover{background:#fff8ef!important;box-shadow:inset 3px 0 var(--orange)!important}
.status.online{background:#e9f8f1!important;color:#15935f!important}.status.offline{background:#fff0f1!important;color:#d44853!important}.status.disabled{background:#fff7e6!important;color:#b37c10!important}

/* NAS management */
.nas-card,.nas-row{background:#fff!important;border-color:var(--line)!important}.nas-card-main b,.nas-row b{color:var(--text)!important}
.auto-uplink-field,.api-progress-box,.api-test-result{background:#f7fafb!important;border-color:var(--line)!important;color:var(--text)!important}

/* Billing / Expired */
.billing-status-filter{background:#f8fafb!important}.billing-status-filter a,.expired-filter-link{background:#fff!important;border-color:var(--line)!important;color:#66727c!important}
.billing-status-filter a.active,.expired-filter-link.active{background:var(--orange)!important;color:#151515!important;border-color:var(--orange)!important}
.billing-status,.billing-source{background:#f6f8f9!important;border-color:var(--line)!important;color:#67737d!important}
.package-tax-summary>span,.profile-billing-card{background:#f8fafb!important;border-color:var(--line)!important;color:#67737d!important}
.package-tax-summary b,.profile-billing-card strong{color:var(--text)!important}

/* About */
.about-hero{background:#fff!important;border:1px solid var(--line)!important;border-left:3px solid var(--orange)!important;box-shadow:var(--shadow)!important;color:var(--text)!important}
.about-card-icon{background:#fff8ef!important;border-color:#ffd7a3!important;color:var(--orange)!important}
.about-link{color:#d56f00!important}.about-footer{color:#8a959e!important;border-color:var(--line)!important}

/* Authentication / mode / install */
.auth-body,.mode-body{background:linear-gradient(180deg,#eef3f6 0%,#f8fafb 100%)!important;color:var(--text)!important}
.auth-card,.mode-card{
  background:#fff!important;border:1px solid var(--line)!important;border-left:3px solid var(--orange)!important;
  color:var(--text)!important;box-shadow:0 20px 60px rgba(31,42,50,.12)!important;border-radius:14px!important;
}
.auth-card h1,.mode-card h1,.auth-company{color:var(--text)!important}.auth-subtitle,.mode-card p{color:var(--muted)!important}

/* Modals / popup theme */
.crud-modal,.billing-modal,.sound-settings-modal{background:rgba(23,31,37,.48)!important;backdrop-filter:blur(5px)!important}
.crud-dialog,.billing-modal-card,.sound-settings-card,.profile-dialog{
  background:#fff!important;border:1px solid var(--line)!important;border-top:3px solid var(--orange)!important;
  color:var(--text)!important;box-shadow:0 24px 70px rgba(22,31,38,.22)!important;
}
.crud-head,.modern-head,.billing-modal-head,.sound-settings-head{background:#fff!important;border-color:var(--line)!important;color:var(--text)!important}
.crud-hero,.crud-section,.crud-profile-pill,.profile-status,.profile-choice,.compact-toggle-group,.sound-switch-row,.sound-setting-grid>label,.sound-volume-row{
  background:#f8fafb!important;border-color:var(--line)!important;color:var(--text)!important;
}
.crud-section-title,.sound-settings-head .eyebrow{color:var(--orange)!important}
.crud-hero strong,.crud-profile-pill b,.profile-choice b,.sound-switch-row b{color:var(--text)!important}
.profile-choice:hover,.profile-choice:focus{background:#fff8ef!important;border-color:var(--orange)!important;box-shadow:none!important}
.modal-close{background:#fff!important;border-color:#d4dde3!important;color:#69757f!important}
.modern-actions,.profile-actions,.sound-settings-actions,.billing-modal-actions{background:#fff!important;border-color:var(--line)!important}

/* Notification settings */
.compact-sound-settings .sound-settings-body{background:#fff!important}.compact-help{color:#87929b!important}
.sound-inline select{background:#fff!important}.sound-alert-toggle{background:#eefaf4!important;border-color:#b9e5cf!important;color:#13895a!important}
.sound-alert-toggle[data-enabled="0"]{background:#f4f6f7!important;border-color:#d8dfe4!important;color:#7e8992!important}

/* Messages */
.alert.success,.toast{background:#effaf5!important;border-color:#b6e4cd!important;color:#18734f!important}
.alert.error,.toast.error{background:#fff2f3!important;border-color:#efc1c5!important;color:#b83f49!important}
.progress-box{background:#fff!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:var(--shadow)!important}
.progress-track{background:#e9eef1!important;border-color:#d9e1e6!important}

/* Mobile density + safe area, consistently applied */
html.device-mobile body .shell,html.device-mobile body .billing-shell,html.device-mobile body .about-shell,html.device-mobile body .nas-mobile-shell{
  padding-left:10px!important;padding-right:10px!important;
  padding-bottom:calc(114px + env(safe-area-inset-bottom,0px))!important;
}
html.device-mobile body .panel,html.device-mobile body .hero,html.device-mobile body .about-card{border-radius:10px!important}
html.device-mobile body>nav.app-bottom-nav{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 6px)!important}

/* Desktop remains spacious but uses exactly the same component palette. */
html.device-website body .shell,html.device-website body .billing-shell,html.device-website body .about-shell{max-width:1540px!important}

/* Avoid old dark inline component surfaces leaking through the unified skin. */
.ui-mobile .crud-dialog,.ui-website .crud-dialog,.popup-mobile .crud-dialog,.popup-website .crud-dialog{background:#fff!important;color:var(--text)!important}
.ui-mobile .modern-form input,.ui-mobile .modern-form select,.ui-website .modern-form input,.ui-website .modern-form select{background:#fff!important;color:var(--text)!important}

/* v1.0.103 — STRICT UNIFIED THEME -----------------------------------------
   One visual language across Dashboard, PPPoE, NAS, Billing, About and modals.
   Removes the remaining mixed graphite/light surfaces visible in v1.0.103. */

:root{
  --st-bg:#f2f5f7;
  --st-surface:#ffffff;
  --st-surface-soft:#f8fafb;
  --st-line:#dbe2e7;
  --st-line-strong:#cbd5dc;
  --st-text:#1d252c;
  --st-muted:#7b8791;
  --st-orange:#ff8a00;
  --st-green:#19b978;
  --st-red:#ef5965;
  --st-shadow:0 8px 26px rgba(31,42,50,.07);
}

html,body{background:var(--st-bg)!important;color:var(--st-text)!important}
body{background:var(--st-bg)!important}

/* Header + bottom navigation use the same white corporate shell. */
.topbar,
html.device-mobile .topbar,
html.device-website .topbar{
  background:#fff!important;
  border-color:var(--st-line)!important;
  box-shadow:0 2px 14px rgba(31,42,50,.05)!important;
}
.topbar .brand-title strong,.topbar .brand-title span{color:var(--st-text)!important}
.topbar .brand-title .brand-kicker{color:var(--st-orange)!important}
.device-auto-indicator{background:#fff!important;border-color:var(--st-line)!important;color:#69757f!important;box-shadow:none!important}
.device-auto-indicator:before{background:var(--st-green)!important}
body>nav.app-bottom-nav{background:#fff!important;border-color:var(--st-line)!important;box-shadow:0 -6px 24px rgba(31,42,50,.08)!important}
body>nav.app-bottom-nav>.nav-link{color:#7a858e!important;background:#fff!important}
body>nav.app-bottom-nav>.nav-link.active-nav{color:var(--st-orange)!important;background:#fff8ef!important}
body>nav.app-bottom-nav>.nav-logout{color:#d75c66!important}

/* Shared surfaces: no more mixed dark cards. */
.hero,.panel,.about-card,.about-hero,.billing-hero,.billing-tariff-panel,.billing-invoices,
.profile-billing-panel,.isolir-summary,.isolir-table,.isolir-toolbar,.package-profile-card,
.billing-search-fallback,.nas-card,.nas-row,.kpis article,.dashboard-kpis .kpi-card-link,
.billing-kpis .kpi,.pppoe-live-kpis .kpi,.traffic-kpis article,.profile-billing-card,
.package-profile-selector,.profile-billing-toolbar,.billing-status-filter,
.billing-search-result-note,.auto-uplink-field,.api-progress-box,.api-test-result,
.progress-box,.table-scroll,.billing-table-wrap{
  background:var(--st-surface)!important;
  color:var(--st-text)!important;
  border-color:var(--st-line)!important;
  box-shadow:var(--st-shadow)!important;
}

.hero,.about-hero{border-left:3px solid var(--st-orange)!important}
.panel-head,.billing-invoice-head,.subscriber-billing-map-head{
  background:var(--st-surface)!important;
  color:var(--st-text)!important;
  border-color:var(--st-line)!important;
}

/* Dashboard Active NAS now belongs to the same theme as every other panel. */
.nas-ops-card,.integrated-operations-hero .nas-ops-card{
  background:var(--st-surface)!important;
  color:var(--st-text)!important;
  border:1px solid var(--st-line)!important;
  border-left:3px solid var(--st-orange)!important;
  box-shadow:var(--st-shadow)!important;
}
.nas-ops-card strong,.nas-ops-card b,.nas-ops-identity strong,.nas-ops-metrics b{color:var(--st-text)!important}
.nas-ops-card small,.nas-ops-card span,.nas-ops-last-sync,.nas-last-sync span,.nas-last-sync b{color:var(--st-muted)!important}
.nas-ops-label{color:var(--st-orange)!important}
.nas-ops-head,.nas-ops-metrics,.nas-ops-actions,.nas-ops-metrics>div{
  background:var(--st-surface)!important;
  border-color:var(--st-line)!important;
}
.nas-ops-metrics>div:nth-child(even){background:var(--st-surface-soft)!important}
.nas-ops-actions .btn.secondary{background:#fff!important;border-color:var(--st-line-strong)!important;color:#34404a!important}
.nas-ops-actions .btn.secondary:hover{background:#f8fafb!important;border-color:#aebbc4!important}
.nas-ops-actions .btn.primary,.nas-open-monitor{background:var(--st-orange)!important;border-color:var(--st-orange)!important;color:#171717!important}
.nas-switch-panel{background:#fff!important;border-color:var(--st-line)!important;box-shadow:0 16px 38px rgba(31,42,50,.16)!important}
.nas-switch-title{color:var(--st-text)!important;border-color:var(--st-line)!important}
.nas-switch-close{background:#fff!important;border-color:var(--st-line)!important;color:#68747e!important}

/* Status chips harmonized with light shell. */
.live-chip.online,.status.online{background:#eaf8f2!important;border-color:#bce7d1!important;color:#158a5b!important}
.live-chip.offline,.status.offline{background:#fff0f1!important;border-color:#efc2c6!important;color:#d14954!important}
.live-chip.disabled,.status.disabled{background:#f3f5f6!important;border-color:#d9e0e4!important;color:#76828b!important}
.live-chip.online i{background:var(--st-green)!important}.live-chip.offline i{background:var(--st-red)!important}

/* Realtime / health / operational blocks use white + soft-gray only. */
.uplink-meta,.traffic-hero>div,.health-grid>div,.top-user-row,.compact-fleet .nas-row,
.dashboard-interface-panel,.traffic-scroll,.service-table,.table-wrap{
  background:var(--st-surface)!important;
  color:var(--st-text)!important;
  border-color:var(--st-line)!important;
}
.traffic-hero>div:nth-child(even),.health-grid>div:nth-child(even){background:var(--st-surface-soft)!important}
.uplink-meta,.traffic-legend{color:var(--st-muted)!important}
.soft-badge{background:#f7fafb!important;border-color:var(--st-line)!important;color:#65717a!important}

/* Forms / controls / tables: one palette everywhere. */
input,select,textarea,.selected-profile-dropdown #pppProfile,.package-profile-selector select{
  background:#fff!important;color:var(--st-text)!important;border-color:var(--st-line-strong)!important;
}
input:focus,select:focus,textarea:focus,.selected-profile-dropdown #pppProfile:focus,.package-profile-selector select:focus{
  border-color:var(--st-orange)!important;box-shadow:0 0 0 3px rgba(255,138,0,.10)!important;
}
.btn,.filter,.icon-btn{background:#fff!important;border-color:var(--st-line-strong)!important;color:#34404a!important}
.btn.primary,.filter.active{background:var(--st-orange)!important;border-color:var(--st-orange)!important;color:#171717!important}
.btn.danger{background:#fff5f6!important;border-color:#efc6ca!important;color:#ce4651!important}

table,thead,tbody,tr,td{background:#fff!important;color:#34404a!important}
th{background:#f4f7f9!important;color:#75818a!important;border-color:var(--st-line)!important}
td{border-color:#e6ebef!important}
tbody tr:hover td{background:#fff8ef!important}
.sticky-actions,.pppoe-live-table tbody td:last-child{background:#fff!important}
.pppoe-live-table tbody tr:hover td:last-child{background:#fff8ef!important}

/* Billing/Profile areas had legacy dark bars; force them into the same shell. */
.profile-billing-toolbar,.package-profile-selector,.billing-status-filter,
.profile-billing-card,.profile-billing-card-head,.package-tax-summary>span,
.money-field i,.billing-source,.billing-status{
  background:var(--st-surface-soft)!important;
  color:var(--st-text)!important;
  border-color:var(--st-line)!important;
}
.package-profile-selector label>span,.profile-billing-card-head span{color:var(--st-orange)!important}

/* All modals / popup cards follow identical white surface styling. */
.crud-modal,.billing-modal,.sound-settings-modal,.progress-modal{background:rgba(23,31,37,.44)!important;backdrop-filter:blur(5px)!important}
.crud-dialog,.billing-modal-card,.sound-settings-card,.profile-dialog{
  background:#fff!important;color:var(--st-text)!important;border:1px solid var(--st-line)!important;border-top:3px solid var(--st-orange)!important;
  box-shadow:0 24px 70px rgba(22,31,38,.20)!important;
}
.crud-head,.modern-head,.billing-modal-head,.sound-settings-head,.modern-actions,.profile-actions,.sound-settings-actions,.billing-modal-actions{
  background:#fff!important;color:var(--st-text)!important;border-color:var(--st-line)!important;
}
.crud-hero,.crud-section,.crud-profile-pill,.profile-status,.profile-choice,.compact-toggle-group,
.sound-switch-row,.sound-setting-grid>label,.sound-volume-row,.sound-settings-body,.sound-help{
  background:var(--st-surface-soft)!important;color:var(--st-text)!important;border-color:var(--st-line)!important;
}
.online-test{background:#effaf5!important;border-color:#b7e8d0!important;color:#14865a!important}
.offline-test{background:#fff2f3!important;border-color:#efc1c5!important;color:#b83f49!important}

/* Authentication pages match the same light corporate theme. */
.auth-body,.mode-body{background:linear-gradient(180deg,#eef3f6 0%,#f8fafb 100%)!important}
.auth-card,.mode-card,.splash-card,.login-card{
  background:#fff!important;color:var(--st-text)!important;border:1px solid var(--st-line)!important;border-left:3px solid var(--st-orange)!important;
  box-shadow:0 20px 60px rgba(31,42,50,.12)!important;
}

/* Keep semantic colors clear and consistent. */
.good,.dashboard-kpis .kpi-online b{color:var(--st-green)!important}
.bad,.dashboard-kpis .kpi-offline b,.dashboard-kpis .kpi-expired b{color:var(--st-red)!important}
.warn,.dashboard-kpis .kpi-billing b,.dashboard-kpis .kpi-billing .billing-due{color:var(--st-orange)!important}

/* Final mobile harmonization */
html.device-mobile body .hero,html.device-mobile body .panel,html.device-mobile body .nas-ops-card,
html.device-mobile body .kpi-card-link,html.device-mobile body .about-card{
  border-radius:10px!important;
}
html.device-mobile body .nas-ops-metrics>div:nth-child(even),
html.device-mobile body .traffic-hero>div:nth-child(even),
html.device-mobile body .health-grid>div:nth-child(even){background:#f8fafb!important}
