:root{
  --bg:#f5f6fb;--surface:#fff;--surface2:#fafbfe;--surface3:#f1f3f9;--surfaceGlass:rgba(255,255,255,.86);
  --text:#151927;--textStrong:#0d1020;--muted:#6f768b;--muted2:#9097aa;--border:#e6e8f0;--borderStrong:#d8dbe7;
  --primary:#5b5cf6;--primary2:#7b61ff;--primary3:#8e8fff;--primarySoft:#eeefff;--primaryGlow:rgba(91,92,246,.22);
  --cyan:#19b8d4;--cyanSoft:#e7f8fb;--success:#16a66a;--successSoft:#e9f8f1;--warning:#e18a19;--warningSoft:#fff6e8;--danger:#df4d56;--dangerSoft:#fff0f1;
  --shadowXs:0 1px 2px rgba(13,16,32,.04);--shadowSm:0 4px 16px rgba(24,31,55,.06);--shadow:0 12px 34px rgba(25,31,55,.08);--shadowLg:0 28px 72px rgba(12,18,39,.18);
  --radiusSm:10px;--radius:16px;--radiusLg:22px;--radiusXl:28px;--sidebar:#111321;--sidebar2:#17192b;--sidebarText:#f2f3fa;--sidebarMuted:#8e93aa;--sidebarW:276px;--topbarH:78px;
  --font:"Segoe UI Variable","Inter","SF Pro Display","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  --mono:"Cascadia Code","SFMono-Regular",Consolas,monospace;
}
html[data-theme=dark]{
  --bg:#0c0e16;--surface:#131621;--surface2:#171a27;--surface3:#1d2130;--surfaceGlass:rgba(19,22,33,.9);
  --text:#f2f3f8;--textStrong:#fff;--muted:#969db0;--muted2:#6f7689;--border:#272b3a;--borderStrong:#323748;
  --primary:#8585ff;--primary2:#9a7cff;--primary3:#a8a8ff;--primarySoft:#25254a;--primaryGlow:rgba(133,133,255,.24);
  --cyan:#45c9df;--cyanSoft:#102d33;--successSoft:#102b21;--warningSoft:#362817;--dangerSoft:#351c21;
  --shadowXs:0 1px 2px rgba(0,0,0,.22);--shadowSm:0 4px 18px rgba(0,0,0,.2);--shadow:0 14px 38px rgba(0,0,0,.22);--shadowLg:0 30px 80px rgba(0,0,0,.44)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}html{background:var(--bg);scroll-behavior:smooth}body{background:var(--bg);color:var(--text);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}button,input,select,textarea{font:inherit}button{cursor:pointer}[hidden]{display:none!important}svg{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
::selection{background:var(--primarySoft);color:var(--textStrong)}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:var(--borderStrong);border:3px solid transparent;background-clip:padding-box;border-radius:999px}::-webkit-scrollbar-track{background:transparent}

/* Shell */
.app-shell{display:grid;grid-template-columns:var(--sidebarW) 1fr;min-height:100vh}.workspace{grid-column:2;min-width:0}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebarW);z-index:30;display:flex;flex-direction:column;padding:22px 16px 18px;background:radial-gradient(circle at 15% 0%,rgba(91,92,246,.18),transparent 27%),linear-gradient(180deg,var(--sidebar),#0d0f1b);color:var(--sidebarText);border-right:1px solid rgba(255,255,255,.055);box-shadow:10px 0 44px rgba(4,6,15,.11)}
.brand,.login-brand,.mobile-login-brand{display:flex;align-items:center}.brand{gap:12px;padding:2px 8px 20px}.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#6f70ff 0%,#5b5cf6 55%,#874df7 100%);box-shadow:0 11px 28px rgba(91,92,246,.38),inset 0 1px 0 rgba(255,255,255,.3)}.brand-mark svg{width:23px;height:23px;stroke-width:2}.brand-mark.large{width:54px;height:54px;border-radius:17px}.brand-mark.large svg{width:29px;height:29px}.brand-copy{display:flex;flex-direction:column;min-width:0}.brand-copy strong{font-size:17px;letter-spacing:-.02em;color:#fff}.brand-copy span{font-size:11px;color:var(--sidebarMuted);margin-top:1px}.brand-badge{margin-left:auto;padding:4px 6px;border-radius:6px;background:rgba(132,133,255,.13);border:1px solid rgba(151,152,255,.16);font-size:8px;font-weight:800;letter-spacing:.09em;color:#b9b9ff}
.sidebar-scope{padding:0 4px 17px}.scope-kicker{display:block;margin:0 8px 7px;color:#666c82;font-size:9px;font-weight:800;letter-spacing:.13em}.scope-card{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding:10px;border-radius:13px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.055)}.scope-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#aeb0ff;background:rgba(101,102,246,.13)}.scope-icon svg{width:17px;height:17px}.scope-card strong,.scope-card span{display:block}.scope-card strong{font-size:11px;color:#e5e6ef}.scope-card>div:nth-child(2)>span{color:#747b92;font-size:9px;margin-top:2px}.scope-live{display:flex!important;align-items:center;gap:5px;padding:4px 6px;border-radius:999px;color:#83d8b2!important;background:rgba(22,166,106,.09);font-size:8px!important;font-weight:800}.scope-live i,.environment-pill i,.secure-pill i,.secure-status i{width:6px;height:6px;border-radius:50%;background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.08)}
.nav{display:flex;flex-direction:column;gap:3px;overflow-y:auto;padding:0 2px 8px}.nav-caption{margin:14px 10px 5px;color:#5f657b;font-size:9px;font-weight:800;letter-spacing:.14em}.nav-item{position:relative;width:100%;border:0;background:transparent;color:var(--sidebarMuted);border-radius:11px;display:flex;align-items:center;gap:11px;min-height:42px;padding:9px 11px;text-align:left;font-weight:600;font-size:12px;transition:color .18s ease,background .18s ease,transform .18s ease}.nav-item:hover{color:#fff;background:rgba(255,255,255,.05);transform:translateX(2px)}.nav-item.is-active{color:#fff;background:linear-gradient(90deg,rgba(91,92,246,.19),rgba(91,92,246,.08));box-shadow:inset 0 0 0 1px rgba(126,127,255,.12)}.nav-item.is-active:before{content:"";position:absolute;left:-2px;top:10px;bottom:10px;width:3px;border-radius:999px;background:linear-gradient(#8b8cff,#5b5cf6);box-shadow:0 0 18px rgba(133,134,255,.55)}.nav-icon{width:21px;height:21px;display:grid;place-items:center;flex:0 0 auto}.nav-icon svg{width:18px;height:18px;stroke-width:1.8}.nav-item.is-active .nav-icon{color:#a9aaff}.nav-pulse{margin-left:auto;width:6px;height:6px;border-radius:50%;background:#39d696;box-shadow:0 0 0 4px rgba(57,214,150,.08)}
.sidebar-footer{margin-top:auto;padding:15px 7px 1px;border-top:1px solid rgba(255,255,255,.06)}.mini-health{display:flex;align-items:center;gap:10px}.mini-health>div{display:flex;flex-direction:column}.mini-health strong{font-size:10px;color:#d5d7e3;font-weight:650}.mini-health div span{font-size:9px;color:#686f85;margin-top:1px}.sidebar-version{display:flex;justify-content:space-between;gap:10px;margin-top:12px;color:#62687d;font-size:9px}.sidebar-version strong{color:#7c8399}.status-dot{width:8px;height:8px;border-radius:50%;background:#6c7286;box-shadow:0 0 0 4px rgba(108,114,134,.1)}.status-dot.ok{background:#35d397;box-shadow:0 0 0 4px rgba(53,211,151,.1)}.status-dot.bad{background:#ff6b74;box-shadow:0 0 0 4px rgba(255,107,116,.1)}

/* Header */
.topbar{position:sticky;top:0;z-index:20;height:var(--topbarH);display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:var(--surfaceGlass);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid var(--border)}.topbar-left,.topbar-actions{display:flex;align-items:center}.topbar-left{gap:12px}.topbar-actions{gap:9px}.breadcrumb-copy{display:flex;flex-direction:column}.eyebrow{font-size:9px;line-height:1;font-weight:800;letter-spacing:.13em;color:var(--primary);text-transform:uppercase}.topbar h1{margin:5px 0 0;font-size:20px;line-height:1.1;letter-spacing:-.025em;color:var(--textStrong)}.environment-pill{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 10px;border:1px solid var(--border);background:var(--surface2);border-radius:999px;color:var(--muted);font-size:10px;font-weight:700}.environment-pill i{width:5px;height:5px}.topbar-divider{width:1px;height:28px;background:var(--border);margin:0 2px}.icon-button{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--muted);transition:.18s ease;box-shadow:var(--shadowXs)}.icon-button:hover{color:var(--primary);border-color:rgba(91,92,246,.28);background:var(--primarySoft);transform:translateY(-1px)}.icon-button svg{width:17px;height:17px}.profile-menu-wrap{position:relative}.profile-button{display:flex;align-items:center;gap:9px;padding:4px 7px 4px 4px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--text);transition:.18s}.profile-button:hover{border-color:var(--border);background:var(--surface2)}.avatar{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:800;background:linear-gradient(145deg,#5b5cf6,#8b5cf6);box-shadow:0 6px 16px rgba(91,92,246,.24)}.profile-copy{display:flex;flex-direction:column;align-items:flex-start;max-width:150px}.profile-copy strong{font-size:11px;line-height:1.15;color:var(--textStrong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.profile-copy small{font-size:9px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.chevron{width:15px;height:15px;color:var(--muted)}.profile-menu{position:absolute;right:0;top:48px;width:190px;padding:7px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:var(--shadowLg);animation:menuIn .14s ease both}.profile-menu button{width:100%;border:0;background:transparent;text-align:left;color:var(--text);border-radius:9px;padding:10px;font-size:11px}.profile-menu button:hover{background:var(--surface2)}.danger-text{color:var(--danger)!important}

/* Content */
.content{padding:26px 28px 40px;max-width:1680px;margin:0 auto;width:100%}.page-loading{min-height:58vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;color:var(--muted);font-size:11px}.spinner{width:32px;height:32px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .75s linear infinite}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px;animation:fadeUp .28s ease both}.page-head h2{margin:0;color:var(--textStrong);font-size:24px;letter-spacing:-.035em;line-height:1.2}.page-head p{margin:6px 0 0;color:var(--muted);font-size:11px}.page-actions{display:flex;align-items:center;gap:8px}
.primary-button,.secondary-button,.ghost-button{min-height:38px;border-radius:10px;padding:0 14px;font-weight:700;font-size:11px;transition:.18s ease}.primary-button{border:1px solid #5b5cf6;background:linear-gradient(135deg,#6768fb,#5657ef);color:#fff;box-shadow:0 7px 18px rgba(91,92,246,.21),inset 0 1px 0 rgba(255,255,255,.18)}.primary-button:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(91,92,246,.28)}.primary-button:active{transform:translateY(0)}.secondary-button{border:1px solid var(--borderStrong);background:var(--surface);color:var(--text)}.secondary-button:hover{border-color:rgba(91,92,246,.3);color:var(--primary);background:var(--primarySoft)}.ghost-button{border:1px solid transparent;background:transparent;color:var(--muted)}.ghost-button:hover{background:var(--surface3);color:var(--text)}.small-button{min-height:32px;padding:0 10px;font-size:10px}.full{width:100%}button:disabled{opacity:.5;cursor:not-allowed;transform:none!important}

/* Dashboard */
.dashboard-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:24px 26px;border:1px solid rgba(91,92,246,.16);border-radius:var(--radiusLg);background:linear-gradient(135deg,var(--surface) 0%,var(--surface) 62%,var(--primarySoft) 100%);box-shadow:var(--shadowSm);animation:fadeUp .28s ease both}.dashboard-hero:after{content:"";position:absolute;width:320px;height:320px;right:-120px;top:-180px;border-radius:50%;background:radial-gradient(circle,var(--primaryGlow),transparent 68%)}.dashboard-hero-copy{position:relative;z-index:1}.dashboard-hero .hero-kicker{display:flex;align-items:center;gap:7px;color:var(--primary);font-size:9px;font-weight:800;letter-spacing:.12em}.hero-kicker i{width:7px;height:7px;border-radius:50%;background:#36cf96;box-shadow:0 0 0 5px rgba(54,207,150,.09)}.dashboard-hero h2{margin:8px 0 6px;font-size:25px;line-height:1.2;letter-spacing:-.04em;color:var(--textStrong)}.dashboard-hero p{margin:0;color:var(--muted);font-size:11px}.dashboard-hero-actions{position:relative;z-index:1;display:flex;gap:8px;flex-wrap:wrap}.hero-date{display:flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid var(--border);border-radius:10px;background:var(--surfaceGlass);color:var(--muted);font-size:10px}.hero-date svg{width:15px;height:15px;color:var(--primary)}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}.kpi-card{position:relative;overflow:hidden;min-height:148px;padding:17px 18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadowXs);transition:.2s ease;animation:fadeUp .32s ease both}.kpi-card:nth-child(2){animation-delay:.035s}.kpi-card:nth-child(3){animation-delay:.07s}.kpi-card:nth-child(4){animation-delay:.105s}.kpi-card:hover{transform:translateY(-2px);box-shadow:var(--shadowSm);border-color:rgba(91,92,246,.18)}.kpi-card:after{content:"";position:absolute;right:-34px;bottom:-42px;width:108px;height:108px;border-radius:50%;background:radial-gradient(circle,var(--primarySoft),transparent 70%)}.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.kpi-top .label{color:var(--muted);font-size:10px;font-weight:700}.kpi-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--primary);background:var(--primarySoft);border:1px solid rgba(91,92,246,.08)}.kpi-icon svg{width:17px;height:17px}.kpi-value{margin-top:15px;font-size:31px;line-height:1;font-weight:750;letter-spacing:-.045em;color:var(--textStrong)}.kpi-foot{display:flex;align-items:center;gap:6px;margin-top:9px;color:var(--muted);font-size:9px}.kpi-foot .positive{color:var(--success);font-weight:700}.kpi-foot .warning{color:var(--warning);font-weight:700}.kpi-accent{position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(var(--primary),transparent 80%);opacity:.55}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);gap:16px;margin-bottom:16px}.chart-panel{min-height:360px}.chart-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.chart-legend{display:flex;gap:13px;color:var(--muted);font-size:9px}.chart-legend span{display:flex;align-items:center;gap:6px}.legend-dot{width:7px;height:7px;border-radius:50%;background:var(--primary)}.legend-dot.secondary{background:var(--cyan)}.line-chart{position:relative;height:230px;margin-top:14px}.line-chart svg{width:100%;height:100%;overflow:visible}.chart-grid-line{stroke:var(--border);stroke-width:1}.chart-area{stroke:none;fill:url(#callArea)}.chart-line{fill:none;stroke:var(--primary);stroke-width:2.4;filter:drop-shadow(0 5px 5px rgba(91,92,246,.17))}.chart-line.secondary{stroke:var(--cyan);stroke-width:1.9;filter:none}.chart-point{fill:var(--surface);stroke:var(--primary);stroke-width:2}.chart-axis{display:flex;justify-content:space-between;margin-top:4px;color:var(--muted2);font-size:8px}.chart-empty{height:100%;display:grid;place-items:center;color:var(--muted);font-size:10px;border:1px dashed var(--border);border-radius:12px;background:var(--surface2)}
.posture-stack{display:grid;gap:12px}.posture-card{padding:15px;border:1px solid var(--border);border-radius:14px;background:var(--surface2)}.posture-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.posture-card-head strong{font-size:11px;color:var(--textStrong)}.posture-card-head span{font-size:9px;color:var(--muted)}.donut-wrap{display:flex;align-items:center;gap:18px;padding-top:14px}.donut{--value:0;position:relative;width:108px;height:108px;flex:0 0 auto;border-radius:50%;background:conic-gradient(var(--primary) calc(var(--value)*1%),var(--surface3) 0)}.donut:after{content:"";position:absolute;inset:12px;border-radius:50%;background:var(--surface2)}.donut-center{position:absolute;z-index:1;inset:0;display:grid;place-items:center;text-align:center}.donut-center strong{display:block;font-size:20px;line-height:1;color:var(--textStrong)}.donut-center span{display:block;margin-top:3px;font-size:8px;color:var(--muted)}.donut-meta{display:grid;gap:9px;min-width:0}.donut-meta div{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:9px}.donut-meta span{display:flex;align-items:center;gap:7px;color:var(--muted)}.donut-meta i{width:7px;height:7px;border-radius:50%;background:var(--primary)}.donut-meta i.gray{background:var(--borderStrong)}.donut-meta strong{color:var(--textStrong);font-size:10px}.health-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}.health-mini{padding:10px;border-radius:11px;background:var(--surface);border:1px solid var(--border);text-align:center}.health-mini i{display:block;width:7px;height:7px;margin:0 auto 6px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px var(--successSoft)}.health-mini.bad i{background:var(--danger);box-shadow:0 0 0 4px var(--dangerSoft)}.health-mini strong{display:block;font-size:9px;text-transform:capitalize}.health-mini span{display:block;color:var(--muted);font-size:8px;margin-top:2px}.mini-bar-list{display:grid;gap:9px;margin-top:13px}.mini-bar-row{display:grid;grid-template-columns:92px 1fr 32px;align-items:center;gap:8px;font-size:9px}.mini-bar-row>span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mini-bar{height:7px;border-radius:999px;background:var(--surface3);overflow:hidden}.mini-bar>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--primary),var(--primary2))}.mini-bar-row strong{text-align:right;color:var(--textStrong);font-size:9px}
.grid-2{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);gap:16px}.panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadowXs);overflow:hidden;animation:fadeUp .3s ease both}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 17px;border-bottom:1px solid var(--border)}.panel-head h3{margin:0;font-size:13px;letter-spacing:-.015em;color:var(--textStrong)}.panel-head p{margin:3px 0 0;color:var(--muted);font-size:9px}.panel-body{padding:17px}.panel.soft{background:var(--surface2)}

/* Filters / forms */
.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:13px;padding:10px;border:1px solid var(--border);border-radius:13px;background:var(--surface);box-shadow:var(--shadowXs)}.search-field{position:relative;flex:1;min-width:260px}.search-field input,.toolbar select,.field input,.field select,.field textarea{width:100%;min-height:40px;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:0 11px;outline:none;transition:.16s ease}.search-field input{padding-left:35px;background:var(--surface2)}.search-field:before{content:"";position:absolute;left:12px;top:12px;width:12px;height:12px;border:1.7px solid var(--muted2);border-radius:50%}.search-field:after{content:"";position:absolute;left:23px;top:23px;width:6px;height:1.7px;background:var(--muted2);transform:rotate(45deg);border-radius:2px}.toolbar select{width:auto;min-width:150px}.field textarea{padding:10px 11px;min-height:92px;resize:vertical}.search-field input:focus,.toolbar select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(91,92,246,.55);background:var(--surface);box-shadow:0 0 0 3px rgba(91,92,246,.09)}.field-label{display:block;margin:15px 0 7px;color:var(--text);font-size:10px;font-weight:700}.help{margin-top:5px;color:var(--muted);font-size:9px;line-height:1.5}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-grid .span-2{grid-column:span 2}.section-title{grid-column:span 2;color:var(--primary);font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;padding-top:4px}

/* Tables */
.table-wrap{overflow:auto}table{width:100%;border-collapse:separate;border-spacing:0;min-width:760px}thead th{position:sticky;top:0;z-index:1;color:var(--muted);font-size:8.5px;font-weight:800;letter-spacing:.075em;text-transform:uppercase;background:var(--surface2)}th,td{padding:12px 14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}tbody tr{transition:background .14s ease}tbody tr:hover{background:rgba(91,92,246,.025)}tbody tr:last-child td{border-bottom:0}.cell-title{font-weight:700;font-size:11px;color:var(--textStrong)}.cell-sub{color:var(--muted);font-size:9px;margin-top:3px}.code{font-family:var(--mono);font-size:10px}.badge{display:inline-flex;align-items:center;gap:5px;min-height:23px;padding:0 8px;border-radius:999px;font-size:8.5px;font-weight:800;border:1px solid transparent}.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.7}.badge.success{color:#08784b;background:var(--successSoft);border-color:rgba(22,166,106,.11)}.badge.warning{color:#a6610d;background:var(--warningSoft);border-color:rgba(225,138,25,.12)}.badge.danger{color:var(--danger);background:var(--dangerSoft);border-color:rgba(223,77,86,.12)}.badge.info{color:var(--primary);background:var(--primarySoft);border-color:rgba(91,92,246,.1)}.badge.neutral{color:var(--muted);background:var(--surface3);border-color:var(--border)}.row-actions{display:flex;gap:6px;justify-content:flex-end}.row-actions button{border:1px solid var(--border);background:var(--surface);color:var(--muted);min-height:30px;border-radius:8px;padding:0 9px;font-size:9px;font-weight:650;transition:.16s}.row-actions button:hover{color:var(--primary);border-color:rgba(91,92,246,.28);background:var(--primarySoft)}.pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 14px;border-top:1px solid var(--border);color:var(--muted);font-size:9px;background:var(--surface2)}.pagination-controls{display:flex;gap:7px;align-items:center}.pagination-controls button{width:29px;height:29px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--surface)}.pagination-controls button:not(:disabled):hover{border-color:rgba(91,92,246,.28);color:var(--primary);background:var(--primarySoft)}

/* Platform cards */
.health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.health-card{padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:var(--shadowXs)}.health-title{display:flex;align-items:center;justify-content:space-between}.health-card span{color:var(--muted);font-size:9px}.metric-list{display:grid;gap:10px}.metric-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:10px;border-bottom:1px solid var(--border);font-size:10px}.metric-row:last-child{border-bottom:0;padding-bottom:0}.metric-row span{color:var(--muted)}.metric-row strong{color:var(--textStrong)}.progress{width:100%;height:7px;border-radius:999px;background:var(--surface3);overflow:hidden;margin-top:8px}.progress>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--primary),var(--primary2));box-shadow:0 0 14px var(--primaryGlow)}.timeline{display:grid}.timeline-item{position:relative;padding:0 0 17px 25px}.timeline-item:before{content:"";position:absolute;left:6px;top:8px;bottom:-4px;width:1px;background:var(--border)}.timeline-item:last-child:before{display:none}.timeline-dot{position:absolute;left:2px;top:5px;width:9px;height:9px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 4px var(--primarySoft)}.timeline-title{font-weight:700;font-size:10px;color:var(--textStrong)}.timeline-meta{color:var(--muted);font-size:8.5px;margin-top:3px}
.detail-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;background:linear-gradient(135deg,var(--primarySoft),var(--surface2));border:1px solid rgba(91,92,246,.14);border-radius:15px;margin-bottom:16px}.detail-hero h3{margin:0;font-size:19px;color:var(--textStrong);letter-spacing:-.025em}.detail-hero p{margin:5px 0 0;color:var(--muted);font-size:10px}.detail-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.detail-stat{padding:13px;border:1px solid var(--border);border-radius:12px;background:var(--surface2)}.detail-stat span{display:block;color:var(--muted);font-size:8.5px}.detail-stat strong{display:block;font-size:18px;margin-top:4px;color:var(--textStrong)}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.info-item{padding:8px 0;border-bottom:1px solid var(--border)}.info-item span{display:block;color:var(--muted);font-size:8.5px}.info-item strong{display:block;margin-top:4px;font-size:10px;word-break:break-word;color:var(--textStrong)}

/* Login */
.login-screen{position:fixed;inset:0;z-index:100;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(430px,.9fr);background:var(--surface)}.login-visual{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:42px 52px;background:#101220;color:#fff}.login-mesh{position:absolute;inset:0;background:radial-gradient(circle at 72% 20%,rgba(91,92,246,.34),transparent 28%),radial-gradient(circle at 15% 85%,rgba(123,97,255,.2),transparent 32%),linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:auto,auto,48px 48px,48px 48px;mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.78) 70%,transparent 100%)}.login-brand{position:relative;z-index:2;gap:13px}.login-brand>div:last-child{display:flex;flex-direction:column}.login-brand strong{font-size:19px;letter-spacing:-.02em}.login-brand span{color:#888fa6;font-size:10px;margin-top:2px}.login-message{position:relative;z-index:2;max-width:720px;margin:auto 0}.secure-pill{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(145,146,255,.18);background:rgba(91,92,246,.09);color:#b5b6ff;border-radius:999px;padding:7px 10px;font-size:8.5px;font-weight:800;letter-spacing:.11em}.login-message h2{font-size:clamp(39px,4vw,61px);line-height:1.02;letter-spacing:-.055em;margin:23px 0 18px}.login-message h2 span{background:linear-gradient(90deg,#b9baff,#9f7cff);-webkit-background-clip:text;background-clip:text;color:transparent}.login-message>p{max-width:620px;color:#9a9fb2;font-size:13px;line-height:1.72}.login-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:30px;max-width:680px}.login-feature-grid>div{padding:13px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:rgba(255,255,255,.025);backdrop-filter:blur(8px)}.feature-icon{display:grid;place-items:center;width:27px;height:27px;margin-bottom:12px;border-radius:8px;background:rgba(91,92,246,.13);color:#a8a9ff;font-size:8px;font-weight:800}.login-feature-grid strong,.login-feature-grid small{display:block}.login-feature-grid strong{font-size:10px}.login-feature-grid small{color:#73798d;font-size:8px;margin-top:3px}.login-visual-footer{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;padding-top:18px;border-top:1px solid rgba(255,255,255,.07);color:#5e6477;font-size:8px;letter-spacing:.08em}.secure-status{display:flex;align-items:center;gap:7px;letter-spacing:0;color:#73798c}.secure-status i{width:5px;height:5px}.login-panel{display:grid;place-items:center;padding:38px;background:var(--surface)}.login-card{width:min(410px,100%);padding:0}.mobile-login-brand{display:none;gap:10px;margin-bottom:28px}.login-kicker{display:flex;align-items:center;justify-content:space-between;color:var(--primary);font-size:8.5px;font-weight:800;letter-spacing:.12em}.login-kicker i{width:42px;height:1px;background:linear-gradient(90deg,var(--primary),transparent)}.login-card h1{margin:9px 0 6px;font-size:33px;line-height:1.1;letter-spacing:-.045em;color:var(--textStrong)}.login-card>p{color:var(--muted);font-size:11px;margin:0 0 27px}.login-input{position:relative}.login-input input{min-height:48px;padding-left:42px;background:var(--surface2);border-radius:12px}.field-icon{position:absolute;left:13px;top:15px;color:var(--muted2);z-index:2}.field-icon svg{width:17px;height:17px}.password-field{position:relative}.password-field input{padding-right:61px}.password-field button{position:absolute;right:8px;top:8px;height:32px;border:0;background:transparent;color:var(--primary);font-size:9px;font-weight:700}.login-submit{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:22px;min-height:48px;border-radius:12px}.login-submit svg{width:16px;height:16px}.form-error{margin-top:13px;padding:10px 12px;border:1px solid rgba(223,77,86,.12);border-radius:10px;background:var(--dangerSoft);color:var(--danger);font-size:10px}.login-trust{display:flex;justify-content:center;margin-top:19px}.login-trust span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:9px}.login-trust svg{width:13px;height:13px;color:var(--success)}.login-footnote{text-align:center;font-size:8.5px!important;margin:12px 0 0!important;color:var(--muted2)!important}

/* Modal / toast */
.modal-backdrop{position:fixed;inset:0;z-index:110;background:rgba(8,10,18,.6);backdrop-filter:blur(5px);display:grid;place-items:center;padding:18px;animation:fadeIn .15s ease both}.modal{width:min(680px,100%);max-height:88vh;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadowLg);animation:modalIn .2s cubic-bezier(.2,.8,.2,1) both}.modal.wide{width:min(980px,100%)}.modal-head{padding:18px 20px;display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border)}.modal-head h3{margin:0;font-size:17px;color:var(--textStrong);letter-spacing:-.02em}.modal-head p{margin:5px 0 0;color:var(--muted);font-size:9px}.modal-close{width:33px;height:33px;border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--muted)}.modal-close:hover{color:var(--danger);background:var(--dangerSoft)}.modal-body{padding:20px}.modal-foot{position:sticky;bottom:0;padding:13px 20px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--border);background:var(--surfaceGlass);backdrop-filter:blur(12px)}.secret-box{border:1px solid rgba(225,138,25,.23);background:var(--warningSoft);border-radius:14px;padding:16px}.secret-value{display:flex;gap:8px;align-items:center;margin-top:10px}.secret-value code{flex:1;overflow-wrap:anywhere;background:var(--surface);padding:10px;border-radius:9px;border:1px solid var(--border);font-family:var(--mono);font-size:10px}.toast-root{position:fixed;right:20px;bottom:20px;z-index:140;display:grid;gap:9px;width:min(360px,calc(100vw - 40px))}.toast{border:1px solid var(--border);background:var(--surfaceGlass);backdrop-filter:blur(16px);border-radius:13px;padding:12px 13px;box-shadow:var(--shadow);display:flex;gap:10px;animation:toastIn .22s ease both}.toast.success{border-left:3px solid var(--success)}.toast.error{border-left:3px solid var(--danger)}.toast.info{border-left:3px solid var(--primary)}.toast strong{display:block;font-size:10px;color:var(--textStrong)}.toast span{display:block;color:var(--muted);font-size:9px;margin-top:2px}

.mobile-only{display:none}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeUp{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes menuIn{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:none}}@keyframes modalIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
@media(max-width:1280px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.grid-2{grid-template-columns:1fr}.posture-stack{grid-template-columns:repeat(2,1fr)}}
@media(max-width:960px){:root{--sidebarW:276px;--topbarH:70px}.app-shell{grid-template-columns:1fr}.workspace{grid-column:1}.sidebar{transform:translateX(-103%);transition:transform .22s cubic-bezier(.2,.8,.2,1);box-shadow:var(--shadowLg)}.app-shell.mobile-nav-open .sidebar{transform:translateX(0)}.sidebar-scrim{position:fixed;inset:0;background:rgba(0,0,0,.48);backdrop-filter:blur(3px);z-index:25}.mobile-only{display:grid}.content{padding:22px}.topbar{padding:0 18px}.profile-copy,.environment-pill,.topbar-divider{display:none}.login-screen{grid-template-columns:1fr}.login-visual{display:none}.login-panel{min-height:100vh}.mobile-login-brand{display:flex}}
@media(max-width:680px){.content{padding:17px 14px 30px}.topbar{padding:0 13px}.page-head{align-items:flex-start;flex-direction:column}.page-actions{width:100%}.page-actions>*{flex:1}.dashboard-hero{align-items:flex-start;flex-direction:column;padding:20px}.dashboard-hero-actions{width:100%}.dashboard-hero-actions>*{flex:1}.kpi-grid,.health-grid,.detail-stats,.posture-stack{grid-template-columns:1fr}.form-grid,.info-grid{grid-template-columns:1fr}.form-grid .span-2,.section-title{grid-column:span 1}.toolbar>*{width:100%!important;min-width:0!important}.health-mini-grid{grid-template-columns:1fr}.login-panel{padding:26px 22px}.modal-backdrop{padding:7px;align-items:end}.modal{border-radius:20px 20px 0 0;max-height:92vh}.chart-legend{display:none}.donut-wrap{align-items:flex-start}.profile-button{padding-right:4px}}

/* Company Admin email invitation workflow */
.mail-status-banner{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--border);border-radius:13px;background:var(--surface);box-shadow:var(--shadowXs)}.mail-status-banner>svg{width:19px;height:19px;flex:0 0 auto;color:var(--primary)}.mail-status-banner>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.mail-status-banner strong{font-size:10.5px;color:var(--textStrong)}.mail-status-banner span:not(.badge){font-size:9px;line-height:1.5;color:var(--muted)}.mail-status-banner.ready{border-color:color-mix(in srgb,var(--success) 18%,var(--border));background:color-mix(in srgb,var(--successSoft) 48%,var(--surface))}.mail-status-banner.pending{border-color:color-mix(in srgb,var(--warning) 18%,var(--border));background:color-mix(in srgb,var(--warningSoft) 46%,var(--surface))}.invite-explainer,.invite-warning{display:flex;align-items:flex-start;gap:11px;padding:12px 13px;border:1px solid var(--border);border-radius:12px;background:var(--surface2)}.invite-explainer>svg,.invite-warning>svg{width:18px;height:18px;flex:0 0 auto;color:var(--primary);margin-top:1px}.invite-explainer>div,.invite-warning>div{display:flex;flex-direction:column;gap:3px}.invite-explainer strong,.invite-warning strong{font-size:9.5px;color:var(--textStrong)}.invite-explainer span,.invite-warning span{font-size:8.8px;line-height:1.55;color:var(--muted)}.invite-warning small{margin-top:4px;font-family:var(--mono);font-size:8.5px;color:var(--primary)}
@media(max-width:720px){.mail-status-banner{align-items:flex-start;flex-wrap:wrap}.mail-status-banner .badge{margin-left:30px}}

/* ===== MOBISIP SUPER ADMIN LOGIN PREMIUM V2 ===== */

.premium-login{
  --login-indigo:#6366f1;
  --login-violet:#8b5cf6;
  --login-blue:#4f8cff;
  --login-cyan:#36c9ef;
  --login-dark:#080b18;
  --login-dark2:#101429;
  --login-ink:#111528;
  --login-muted:#747b90;
  --login-line:#e6e8f2;
  height:100vh;
  height:100dvh;
  min-height:100vh;
  width:100vw;
  overflow:hidden;
  grid-template-columns:minmax(640px,1.18fr) minmax(470px,.82fr);
  background:#f7f8fc;
  isolation:isolate;
}

/* LEFT PLATFORM STORY */

.premium-login .login-visual{
  position:relative;
  min-width:0;
  height:100%;
  overflow:hidden;
  padding:clamp(30px,3vw,52px) clamp(34px,4vw,66px);
  background:
    radial-gradient(circle at 68% 18%,rgba(99,102,241,.26),transparent 30%),
    radial-gradient(circle at 18% 78%,rgba(79,140,255,.14),transparent 30%),
    linear-gradient(145deg,#080b17 0%,#0c1021 46%,#11152b 100%);
  color:#fff;
}

.premium-login .login-grid{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.28;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(135deg,#000 0%,rgba(0,0,0,.8) 52%,transparent 92%);
  -webkit-mask-image:linear-gradient(135deg,#000 0%,rgba(0,0,0,.8) 52%,transparent 92%);
}

.premium-login .login-noise{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.026;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.premium-login .login-aurora{
  position:absolute;
  border-radius:999px;
  filter:blur(2px);
  pointer-events:none;
  mix-blend-mode:screen;
}

.premium-login .aurora-one{
  width:520px;
  height:520px;
  right:-220px;
  top:-220px;
  background:radial-gradient(circle,rgba(115,94,255,.22),transparent 68%);
  animation:loginAuroraOne 11s ease-in-out infinite alternate;
}

.premium-login .aurora-two{
  width:460px;
  height:460px;
  left:-260px;
  bottom:-260px;
  background:radial-gradient(circle,rgba(45,151,255,.15),transparent 68%);
  animation:loginAuroraTwo 13s ease-in-out infinite alternate;
}

.premium-login .login-brand{
  position:relative;
  z-index:10;
  display:flex;
  align-items:center;
  gap:13px;
  padding:0;
}

.premium-login .login-brand-logo{
  position:relative;
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  flex:0 0 54px;
  border-radius:17px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.1);
  box-shadow:
    0 16px 36px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter:blur(16px);
}

.premium-login .login-brand-logo:after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(145deg,rgba(142,145,255,.2),transparent 42%);
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  -webkit-mask-composite:xor;
  padding:1px;
}

.premium-login .login-brand-logo img{
  width:45px;
  height:45px;
  object-fit:contain;
  filter:drop-shadow(0 8px 12px rgba(0,0,0,.18));
}

.premium-login .login-brand-logo.small{
  width:48px;
  height:48px;
  flex-basis:48px;
  background:linear-gradient(145deg,#f6f7ff,#eef0ff);
  border-color:#e3e5f4;
  box-shadow:0 10px 24px rgba(35,42,86,.08);
}

.premium-login .login-brand-logo.small img{
  width:41px;
  height:41px;
}

.premium-login .login-brand-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.premium-login .login-brand-copy strong{
  color:#fff;
  font-size:20px;
  font-weight:760;
  line-height:1.1;
  letter-spacing:-.035em;
}

.premium-login .login-brand-copy span{
  margin-top:4px;
  color:#8d96ad;
  font-size:10px;
  font-weight:550;
  letter-spacing:.04em;
}

.premium-login .superadmin-chip{
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:auto;
  min-height:30px;
  padding:0 11px;
  border:1px solid rgba(155,158,255,.14);
  border-radius:999px;
  background:rgba(106,108,255,.065);
  color:#aeb1ff;
  font-size:8px;
  font-weight:800;
  letter-spacing:.14em;
  backdrop-filter:blur(10px);
}

.premium-login .superadmin-chip i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#55e3a8;
  box-shadow:0 0 0 4px rgba(85,227,168,.08);
}

.premium-login .login-message{
  position:relative;
  z-index:4;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:0;
  flex:1;
  margin:auto 0;
  padding:clamp(30px,5vh,65px) 0 clamp(24px,4vh,48px);
}

.premium-login .login-copy{
  position:relative;
  z-index:5;
  max-width:min(660px,78%);
}

.premium-login .secure-pill{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:30px;
  padding:0 11px;
  border:1px solid rgba(142,145,255,.16);
  border-radius:999px;
  background:rgba(104,106,255,.08);
  color:#b5b7ff;
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.14em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter:blur(12px);
}

.premium-login .secure-pill i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#4de1a1;
  box-shadow:
    0 0 0 4px rgba(77,225,161,.07),
    0 0 14px rgba(77,225,161,.34);
}

.premium-login .login-copy h2{
  margin:20px 0 18px;
  max-width:650px;
  color:#f8f9ff;
  font-size:clamp(42px,4.2vw,68px);
  line-height:.99;
  font-weight:760;
  letter-spacing:-.062em;
  text-wrap:balance;
}

.premium-login .login-copy h2 span{
  display:block;
  margin-top:8px;
  background:linear-gradient(92deg,#aeb2ff 0%,#8b90ff 40%,#bc8cff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.premium-login .login-copy>p{
  max-width:585px;
  margin:0;
  color:#9aa3b8;
  font-size:13px;
  line-height:1.72;
}

/* Animated network / pseudo-Lottie */

.premium-login .network-stage{
  position:absolute;
  z-index:2;
  width:500px;
  height:410px;
  right:clamp(-195px,-9vw,-70px);
  top:50%;
  transform:translateY(-47%);
  opacity:.82;
  pointer-events:none;
}

.premium-login .network-lines{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
}

.premium-login .network-path{
  fill:none;
  stroke:rgba(140,148,255,.22);
  stroke-width:1.1;
  stroke-dasharray:4 8;
  animation:networkDash 14s linear infinite;
}

.premium-login .path-b{animation-delay:-2.5s}
.premium-login .path-c{animation-delay:-5s}
.premium-login .path-d{animation-delay:-7.5s}
.premium-login .path-e{animation-delay:-10s}

.premium-login .network-halo{
  position:absolute;
  left:50%;
  top:50%;
  border:1px solid rgba(123,130,255,.12);
  border-radius:50%;
  transform:translate(-50%,-50%);
}

.premium-login .halo-one{
  width:185px;
  height:185px;
  animation:networkPulse 5.4s ease-in-out infinite;
}

.premium-login .halo-two{
  width:270px;
  height:270px;
  opacity:.7;
  animation:networkPulse 5.4s 1.4s ease-in-out infinite;
}

.premium-login .halo-three{
  width:360px;
  height:360px;
  opacity:.42;
  animation:networkPulse 5.4s 2.8s ease-in-out infinite;
}

.premium-login .network-core{
  position:absolute;
  left:50%;
  top:50%;
  width:104px;
  height:104px;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  border-radius:31px;
  background:
    linear-gradient(145deg,rgba(99,104,255,.18),rgba(120,80,255,.08));
  border:1px solid rgba(160,164,255,.2);
  box-shadow:
    0 28px 70px rgba(36,36,116,.34),
    inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter:blur(14px);
  animation:networkCore 5s ease-in-out infinite;
}

.premium-login .network-core:before{
  content:"";
  position:absolute;
  inset:-10px;
  border:1px solid rgba(135,140,255,.08);
  border-radius:36px;
}

.premium-login .network-core img{
  width:84px;
  height:84px;
  object-fit:contain;
  position:relative;
  z-index:2;
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.23));
}

.premium-login .core-glow{
  position:absolute;
  inset:-48px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(101,102,255,.17),transparent 67%);
  animation:coreGlow 4.6s ease-in-out infinite;
}

.premium-login .network-node{
  position:absolute;
  min-width:112px;
  padding:9px 10px 9px 26px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:11px;
  background:rgba(17,21,42,.72);
  box-shadow:0 12px 28px rgba(0,0,0,.14);
  backdrop-filter:blur(12px);
  animation:nodeFloat 6s ease-in-out infinite;
}

.premium-login .network-node .node-dot{
  position:absolute;
  left:10px;
  top:13px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#7780ff;
  box-shadow:0 0 0 4px rgba(119,128,255,.08);
}

.premium-login .network-node strong{
  display:block;
  color:#d9dcf0;
  font-size:8.5px;
  line-height:1.2;
}

.premium-login .network-node small{
  display:block;
  margin-top:3px;
  color:#646d84;
  font-size:7px;
  line-height:1.2;
}

.premium-login .node-one{left:3px;top:41px}
.premium-login .node-two{right:0;top:38px;animation-delay:-1.1s}
.premium-login .node-three{left:-8px;bottom:36px;animation-delay:-2.2s}
.premium-login .node-four{right:-5px;bottom:34px;animation-delay:-3.3s}
.premium-login .node-five{left:50%;bottom:-5px;transform:translateX(-50%);animation:nodeFloatCenter 6s -4.2s ease-in-out infinite}

.premium-login .login-feature-grid{
  position:relative;
  z-index:5;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  width:min(690px,84%);
  margin-top:30px;
}

.premium-login .login-feature-grid article{
  position:relative;
  min-width:0;
  padding:14px 14px 13px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:14px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.04),rgba(255,255,255,.018));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter:blur(12px);
  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.premium-login .login-feature-grid article:hover{
  transform:translateY(-2px);
  border-color:rgba(146,149,255,.16);
  background:rgba(255,255,255,.045);
}

.premium-login .feature-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}

.premium-login .feature-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:rgba(102,107,255,.1);
  color:#adb1ff;
}

.premium-login .feature-icon svg{
  width:15px;
  height:15px;
}

.premium-login .feature-number{
  color:#464d66;
  font-family:var(--mono);
  font-size:7.5px;
  font-weight:700;
}

.premium-login .login-feature-grid strong{
  display:block;
  color:#e9ebf6;
  font-size:10px;
  font-weight:700;
}

.premium-login .login-feature-grid small{
  display:block;
  margin-top:4px;
  color:#727b91;
  font-size:8px;
}

.premium-login .login-visual-footer{
  position:relative;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex:0 0 auto;
  padding-top:17px;
  border-top:1px solid rgba(255,255,255,.065);
  color:#525b71;
  font-size:7.5px;
  font-weight:650;
  letter-spacing:.11em;
}

.premium-login .secure-status{
  display:flex;
  align-items:center;
  gap:8px;
  color:#748096;
  letter-spacing:0;
}

.premium-login .secure-status i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#4bdba0;
  box-shadow:0 0 0 4px rgba(75,219,160,.07);
}


/* RIGHT AUTHENTICATION PANEL */

.premium-login .login-panel{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  height:100%;
  padding:clamp(26px,3.5vw,58px);
  overflow:auto;
  background:
    radial-gradient(circle at 12% 11%,rgba(99,102,241,.07),transparent 25%),
    radial-gradient(circle at 94% 92%,rgba(139,92,246,.055),transparent 28%),
    linear-gradient(180deg,#fbfbfe 0%,#f7f8fc 100%);
}

.premium-login .login-panel:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:1px;
  background:linear-gradient(transparent,#e6e8f2 18%,#e6e8f2 82%,transparent);
}

.premium-login .login-panel-frame{
  width:min(472px,100%);
  margin:auto;
}

.premium-login .login-panel-heading{
  padding:0 4px;
}

.premium-login .login-kicker{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:flex-start;
  color:#5b5cf6;
  font-size:8px;
  font-weight:850;
  letter-spacing:.145em;
}

.premium-login .login-kicker i{
  width:50px;
  height:1px;
  background:linear-gradient(90deg,#7678ff,transparent);
}

.premium-login .login-panel-heading h1{
  margin:12px 0 8px;
  color:#111528;
  font-size:clamp(35px,2.7vw,43px);
  line-height:1.04;
  font-weight:770;
  letter-spacing:-.052em;
}

.premium-login .login-panel-heading>p{
  max-width:410px;
  margin:0;
  color:#72798d;
  font-size:11.5px;
  line-height:1.65;
}

.premium-login .login-card{
  width:100%;
  max-width:none;
  margin-top:29px;
  padding:28px;
  border:1px solid rgba(220,223,235,.9);
  border-radius:22px;
  background:rgba(255,255,255,.86);
  box-shadow:
    0 28px 70px rgba(33,40,75,.095),
    0 3px 12px rgba(33,40,75,.035),
    inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
}

.premium-login .login-field-group + .login-field-group{
  margin-top:18px;
}

.premium-login .field-label{
  display:block;
  margin:0 0 8px;
  color:#262c40;
  font-size:9.5px;
  line-height:1.2;
  font-weight:750;
  letter-spacing:.005em;
}

.premium-login .login-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.premium-login .login-label-row>span{
  margin-bottom:8px;
  color:#9ba1b1;
  font-size:8px;
  font-weight:600;
}

.premium-login .login-input{
  position:relative;
  height:52px;
  border:0;
  background:transparent;
  border-radius:13px;
}

.premium-login .login-input input{
  width:100%;
  min-height:52px;
  height:52px;
  padding:0 46px;
  border:1px solid #e0e3ee !important;
  border-radius:13px;
  background:#f8f9fc !important;
  color:#171b2e;
  outline:none;
  box-shadow:
    inset 0 1px 2px rgba(17,21,40,.02) !important;
  font-size:11.5px;
  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.premium-login .login-input input::placeholder{
  color:#9aa1b4;
}

.premium-login .login-input input:hover{
  border-color:#d5d9e7 !important;
  background:#fff !important;
}

.premium-login .login-input input:focus{
  border-color:rgba(91,92,246,.7) !important;
  background:#fff !important;
  box-shadow:
    0 0 0 4px rgba(91,92,246,.09),
    0 8px 22px rgba(91,92,246,.06) !important;
}

.premium-login .field-icon{
  position:absolute;
  z-index:3;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  color:#959caf;
  pointer-events:none;
  transition:color .18s ease;
}

.premium-login .login-input:focus-within .field-icon{
  color:#6264f3;
}

.premium-login .field-icon svg{
  width:17px;
  height:17px;
  stroke-width:1.7;
}

.premium-login .password-field input{
  padding-right:74px;
}

.premium-login .password-field button{
  position:absolute;
  z-index:4;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  height:34px;
  min-width:52px;
  margin:0;
  padding:0 9px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#5d60ed;
  font-size:8.5px;
  font-weight:750;
  transition:
    background .17s ease,
    color .17s ease;
}

.premium-login .password-field button:hover{
  background:#eeefff;
  color:#4648db;
}

.premium-login .login-submit{
  position:relative;
  min-height:52px;
  margin-top:23px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid #5558f0;
  border-radius:13px;
  background:
    linear-gradient(118deg,#6265fb 0%,#5558ee 53%,#7258f4 100%);
  color:#fff;
  box-shadow:
    0 14px 30px rgba(82,84,235,.23),
    inset 0 1px 0 rgba(255,255,255,.24);
  font-size:10.5px;
  font-weight:760;
  letter-spacing:.003em;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.premium-login .login-submit:before{
  content:"";
  position:absolute;
  width:110px;
  height:180%;
  left:-140px;
  top:-40%;
  transform:rotate(18deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.24),transparent);
  transition:left .65s cubic-bezier(.2,.75,.2,1);
}

.premium-login .login-submit:hover{
  transform:translateY(-2px);
  filter:saturate(1.05);
  box-shadow:
    0 18px 36px rgba(82,84,235,.3),
    inset 0 1px 0 rgba(255,255,255,.25);
}

.premium-login .login-submit:hover:before{
  left:calc(100% + 30px);
}

.premium-login .login-submit:active{
  transform:translateY(0);
}

.premium-login .login-submit>span{
  position:relative;
  z-index:2;
}

.premium-login .submit-arrow{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:rgba(255,255,255,.1);
  transition:transform .18s ease;
}

.premium-login .login-submit:hover .submit-arrow{
  transform:translateX(3px);
}

.premium-login .submit-arrow svg{
  width:14px;
  height:14px;
}

.premium-login .form-error{
  margin-top:14px;
  padding:11px 12px;
  border:1px solid rgba(223,77,86,.16);
  border-radius:11px;
  background:#fff3f4;
  color:#c43e48;
  font-size:9.5px;
  line-height:1.5;
}

.premium-login .login-trust{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:19px;
}

.premium-login .login-trust>div{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px;
  border:1px solid #e8eaf2;
  border-radius:11px;
  background:#fafbfe;
}

.premium-login .trust-icon{
  width:29px;
  height:29px;
  flex:0 0 29px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#edf9f4;
  color:#18a46c;
}

.premium-login .trust-icon svg{
  width:14px;
  height:14px;
}

.premium-login .login-trust>div>span:last-child{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.premium-login .login-trust strong{
  overflow:hidden;
  color:#343a4d;
  font-size:8.5px;
  line-height:1.2;
  font-weight:720;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.premium-login .login-trust small{
  overflow:hidden;
  margin-top:3px;
  color:#949aac;
  font-size:7.5px;
  line-height:1.2;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.premium-login .login-divider{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  margin:20px 0 0;
}

.premium-login .login-divider>span{
  height:1px;
  background:#eceef4;
}

.premium-login .login-divider small{
  color:#a0a6b6;
  font-size:6.8px;
  font-weight:800;
  letter-spacing:.12em;
}

.premium-login .login-footnote{
  margin:12px 0 0 !important;
  color:#949aac !important;
  text-align:center !important;
  font-size:8px !important;
  line-height:1.45;
}

.premium-login .login-panel-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:17px 5px 0;
  color:#a0a6b4;
  font-size:7.5px;
}

.premium-login .panel-live{
  display:flex;
  align-items:center;
  gap:7px;
}

.premium-login .panel-live i{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#2dc989;
  box-shadow:0 0 0 4px rgba(45,201,137,.07);
}

.premium-login .mobile-login-brand{
  display:none;
}


/* DARK THEME LOGIN */

html[data-theme=dark] .premium-login .login-panel{
  background:
    radial-gradient(circle at 12% 11%,rgba(108,110,255,.11),transparent 25%),
    linear-gradient(180deg,#11141e,#0e111a);
}

html[data-theme=dark] .premium-login .login-panel:before{
  background:linear-gradient(transparent,#262a38 18%,#262a38 82%,transparent);
}

html[data-theme=dark] .premium-login .login-panel-heading h1{
  color:#f5f6fb;
}

html[data-theme=dark] .premium-login .login-panel-heading>p{
  color:#9299ab;
}

html[data-theme=dark] .premium-login .login-card{
  border-color:#292d3c;
  background:rgba(20,23,34,.88);
  box-shadow:0 28px 70px rgba(0,0,0,.3);
}

html[data-theme=dark] .premium-login .field-label{
  color:#dfe2eb;
}

html[data-theme=dark] .premium-login .login-input input{
  border-color:#303545 !important;
  background:#191d29 !important;
  color:#f4f5f9;
}

html[data-theme=dark] .premium-login .login-input input:hover,
html[data-theme=dark] .premium-login .login-input input:focus{
  background:#1d2130 !important;
}

html[data-theme=dark] .premium-login .login-trust>div{
  border-color:#292d3c;
  background:#181c28;
}

html[data-theme=dark] .premium-login .login-trust strong{
  color:#d9dce5;
}

html[data-theme=dark] .premium-login .login-divider>span{
  background:#2a2e3b;
}


/* ANIMATION */

@keyframes loginAuroraOne{
  0%{transform:translate3d(0,0,0) scale(1)}
  100%{transform:translate3d(-42px,38px,0) scale(1.12)}
}

@keyframes loginAuroraTwo{
  0%{transform:translate3d(0,0,0) scale(1)}
  100%{transform:translate3d(44px,-35px,0) scale(1.1)}
}

@keyframes networkDash{
  to{stroke-dashoffset:-120}
}

@keyframes networkPulse{
  0%,100%{transform:translate(-50%,-50%) scale(.96);opacity:.25}
  50%{transform:translate(-50%,-50%) scale(1.04);opacity:.75}
}

@keyframes networkCore{
  0%,100%{transform:translate(-50%,-50%) translateY(0)}
  50%{transform:translate(-50%,-50%) translateY(-7px)}
}

@keyframes coreGlow{
  0%,100%{opacity:.55;transform:scale(.9)}
  50%{opacity:1;transform:scale(1.08)}
}

@keyframes nodeFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

@keyframes nodeFloatCenter{
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(-6px)}
}


/* LAPTOP / 1366x768 */

@media(max-width:1380px){
  .premium-login{
    grid-template-columns:minmax(570px,1.08fr) minmax(450px,.92fr);
  }

  .premium-login .login-visual{
    padding-left:42px;
    padding-right:42px;
  }

  .premium-login .login-copy{
    max-width:74%;
  }

  .premium-login .login-copy h2{
    font-size:clamp(40px,4vw,56px);
  }

  .premium-login .network-stage{
    right:-180px;
    width:450px;
    height:370px;
  }

  .premium-login .login-feature-grid{
    width:82%;
  }
}


/* SHORT VIEWPORT */

@media(max-height:820px) and (min-width:961px){
  .premium-login .login-visual{
    padding-top:28px;
    padding-bottom:27px;
  }

  .premium-login .login-brand-logo{
    width:48px;
    height:48px;
    flex-basis:48px;
    border-radius:15px;
  }

  .premium-login .login-brand-logo img{
    width:41px;
    height:41px;
  }

  .premium-login .login-message{
    padding:22px 0 18px;
  }

  .premium-login .secure-pill{
    min-height:27px;
  }

  .premium-login .login-copy h2{
    margin:15px 0 13px;
    font-size:clamp(38px,3.8vw,52px);
  }

  .premium-login .login-copy>p{
    font-size:11.5px;
    line-height:1.58;
  }

  .premium-login .login-feature-grid{
    margin-top:20px;
  }

  .premium-login .login-feature-grid article{
    padding:11px 12px;
  }

  .premium-login .feature-top{
    margin-bottom:8px;
  }

  .premium-login .feature-icon{
    width:27px;
    height:27px;
  }

  .premium-login .network-stage{
    width:420px;
    height:340px;
  }

  .premium-login .login-panel{
    padding-top:24px;
    padding-bottom:24px;
  }

  .premium-login .login-panel-heading h1{
    margin-top:8px;
    font-size:34px;
  }

  .premium-login .login-card{
    margin-top:20px;
    padding:22px 24px;
  }

  .premium-login .login-field-group + .login-field-group{
    margin-top:14px;
  }

  .premium-login .login-input,
  .premium-login .login-input input{
    height:48px;
    min-height:48px;
  }

  .premium-login .login-submit{
    min-height:48px;
    margin-top:18px;
  }

  .premium-login .login-trust{
    margin-top:14px;
  }

  .premium-login .login-divider{
    margin-top:15px;
  }

  .premium-login .login-panel-footer{
    padding-top:11px;
  }
}


/* TABLET + MOBILE */

@media(max-width:960px){
  .premium-login{
    display:block;
    height:auto;
    min-height:100vh;
    min-height:100dvh;
    overflow:auto;
    background:#f6f7fc;
  }

  .premium-login .login-visual{
    display:none !important;
  }

  .premium-login .login-panel{
    width:100%;
    min-height:100vh;
    min-height:100dvh;
    height:auto;
    padding:40px 24px;
  }

  .premium-login .login-panel:before{
    display:none;
  }

  .premium-login .login-panel-frame{
    width:min(520px,100%);
  }

  .premium-login .mobile-login-brand{
    display:flex;
    align-items:center;
    gap:11px;
    margin-bottom:34px;
  }

  .premium-login .mobile-login-brand>div:last-child{
    display:flex;
    flex-direction:column;
  }

  .premium-login .mobile-login-brand strong{
    color:#191d2f;
    font-size:16px;
    font-weight:760;
    letter-spacing:-.025em;
  }

  .premium-login .mobile-login-brand span{
    margin-top:2px;
    color:#8b92a5;
    font-size:8px;
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;
  }

  html[data-theme=dark] .premium-login .mobile-login-brand strong{
    color:#f4f5fa;
  }
}


@media(max-width:600px){
  .premium-login .login-panel{
    padding:24px 16px;
    align-items:flex-start;
  }

  .premium-login .login-panel-frame{
    margin:auto;
  }

  .premium-login .mobile-login-brand{
    margin-bottom:27px;
  }

  .premium-login .login-panel-heading h1{
    font-size:32px;
  }

  .premium-login .login-panel-heading>p{
    font-size:10.5px;
  }

  .premium-login .login-card{
    margin-top:23px;
    padding:20px 17px;
    border-radius:18px;
  }

  .premium-login .login-input,
  .premium-login .login-input input{
    height:50px;
    min-height:50px;
  }

  .premium-login .login-trust{
    grid-template-columns:1fr;
  }

  .premium-login .login-panel-footer{
    flex-direction:column;
    align-items:center;
    gap:6px;
  }
}


@media(max-width:360px){
  .premium-login .login-panel{
    padding-left:11px;
    padding-right:11px;
  }

  .premium-login .login-card{
    padding-left:14px;
    padding-right:14px;
  }

  .premium-login .login-kicker i{
    display:none;
  }
}


/* ACCESSIBILITY */

.premium-login button:focus-visible,
.premium-login input:focus-visible{
  outline:2px solid rgba(91,92,246,.65);
  outline-offset:2px;
}

@media(prefers-reduced-motion:reduce){
  .premium-login .login-aurora,
  .premium-login .network-path,
  .premium-login .network-halo,
  .premium-login .network-core,
  .premium-login .core-glow,
  .premium-login .network-node{
    animation:none !important;
  }

  .premium-login .login-submit:before{
    display:none;
  }
}

/* ===== MOBISIP LOGIN LEFT POLISH V3 ===== */

/* Brand lockup */
.premium-login .login-brand{
  gap:14px;
}

.premium-login .login-brand-logo{
  width:52px;
  height:52px;
  flex-basis:52px;
  border:0;
  border-radius:15px;
  background:rgba(255,255,255,.035);
  box-shadow:
    0 12px 28px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.premium-login .login-brand-logo img{
  width:47px;
  height:47px;
}

.premium-login .login-brand-copy strong{
  font-size:21px;
  font-weight:780;
}

.premium-login .login-brand-copy span{
  margin-top:5px;
  color:#9ca5ba;
  font-size:10.5px;
}


/* Super Admin badge */
.premium-login .superadmin-chip{
  margin-right:4px;
  min-height:31px;
  padding:0 12px;
  border-color:rgba(153,157,255,.20);
  background:rgba(103,106,255,.10);
  color:#c0c2ff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}


/* Hero positioning */
.premium-login .login-message{
  padding-top:clamp(34px,5vh,58px);
  padding-bottom:clamp(25px,4vh,42px);
}

.premium-login .login-copy{
  width:58%;
  max-width:585px;
}

.premium-login .login-copy h2{
  max-width:585px;
  margin:20px 0 17px;
  font-size:clamp(43px,3.55vw,55px);
  line-height:1.01;
  font-weight:770;
  letter-spacing:-.06em;
}

.premium-login .login-copy h2 span{
  margin-top:8px;
  font-size:.98em;
}

.premium-login .login-copy>p{
  max-width:545px;
  color:#aab2c5;
  font-size:12.5px;
  line-height:1.68;
}


/* Stronger control-plane badge */
.premium-login .secure-pill{
  border-color:rgba(151,155,255,.22);
  background:rgba(101,104,255,.105);
  color:#c2c4ff;
}


/* Network composition */
.premium-login .network-stage{
  width:455px;
  height:385px;
  right:-25px;
  top:51%;
  transform:translateY(-45%);
  opacity:.96;
}

.premium-login .network-path{
  stroke:rgba(145,153,255,.32);
  stroke-width:1.25;
}

.premium-login .network-halo{
  border-color:rgba(127,137,255,.18);
}

.premium-login .halo-one{
  width:205px;
  height:205px;
}

.premium-login .halo-two{
  width:290px;
  height:290px;
}

.premium-login .halo-three{
  width:375px;
  height:375px;
}


/* Larger MobiSIP network core */
.premium-login .network-core{
  width:118px;
  height:118px;
  border-radius:34px;
  border-color:rgba(160,165,255,.27);
  background:
    linear-gradient(
      145deg,
      rgba(104,110,255,.21),
      rgba(117,77,255,.10)
    );
  box-shadow:
    0 28px 72px rgba(38,39,128,.38),
    inset 0 1px 0 rgba(255,255,255,.13);
}

.premium-login .network-core:before{
  inset:-11px;
  border-color:rgba(140,146,255,.12);
  border-radius:40px;
}

.premium-login .network-core img{
  width:96px;
  height:96px;
}


/* Stronger network nodes */
.premium-login .network-node{
  min-width:122px;
  padding:10px 11px 10px 28px;
  border-color:rgba(255,255,255,.11);
  background:rgba(18,22,44,.83);
  box-shadow:
    0 14px 32px rgba(0,0,0,.19),
    inset 0 1px 0 rgba(255,255,255,.025);
}

.premium-login .network-node .node-dot{
  width:8px;
  height:8px;
  background:#8189ff;
  box-shadow:
    0 0 0 4px rgba(129,137,255,.10),
    0 0 13px rgba(129,137,255,.25);
}

.premium-login .network-node strong{
  color:#e5e7f4;
  font-size:9px;
}

.premium-login .network-node small{
  margin-top:3px;
  color:#81899e;
  font-size:7.5px;
}


/* Feature cards */
.premium-login .login-feature-grid{
  width:68%;
  max-width:650px;
  gap:11px;
  margin-top:28px;
}

.premium-login .login-feature-grid article{
  min-height:104px;
  padding:14px 15px;
  border-color:rgba(255,255,255,.10);
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.022)
    );
}

.premium-login .feature-top{
  margin-bottom:13px;
}

.premium-login .feature-icon{
  width:32px;
  height:32px;
  border-radius:9px;
  background:rgba(105,111,255,.13);
  color:#b8bbff;
}

.premium-login .feature-icon svg{
  width:16px;
  height:16px;
}

.premium-login .feature-number{
  color:#59617a;
  font-size:8px;
}

.premium-login .login-feature-grid strong{
  color:#f0f1f7;
  font-size:10.5px;
  font-weight:730;
}

.premium-login .login-feature-grid small{
  margin-top:5px;
  color:#838ba0;
  font-size:8.3px;
}


/* Footer visibility */
.premium-login .login-visual-footer{
  color:#687287;
  border-top-color:rgba(255,255,255,.085);
  font-size:7.8px;
}

.premium-login .secure-status{
  color:#8992a5;
}


/* More controlled background lighting */
.premium-login .login-visual{
  background:
    radial-gradient(
      circle at 73% 37%,
      rgba(91,92,246,.25),
      transparent 31%
    ),
    radial-gradient(
      circle at 12% 82%,
      rgba(53,130,235,.09),
      transparent 29%
    ),
    linear-gradient(
      145deg,
      #080b17 0%,
      #0b0f20 48%,
      #10142a 100%
    );
}


/* 1366 / laptop tuning */
@media(max-width:1380px) and (min-width:961px){
  .premium-login .login-visual{
    padding-left:38px;
    padding-right:38px;
  }

  .premium-login .login-copy{
    width:57%;
    max-width:540px;
  }

  .premium-login .login-copy h2{
    max-width:540px;
    font-size:46px;
  }

  .premium-login .login-copy>p{
    max-width:525px;
    font-size:11.5px;
  }

  .premium-login .network-stage{
    width:430px;
    height:365px;
    right:-28px;
  }

  .premium-login .network-core{
    width:110px;
    height:110px;
  }

  .premium-login .network-core img{
    width:89px;
    height:89px;
  }

  .premium-login .login-feature-grid{
    width:69%;
    max-width:610px;
  }
}


/* 1366x768 / short displays */
@media(max-height:800px) and (min-width:961px){
  .premium-login .login-message{
    padding-top:24px;
    padding-bottom:18px;
  }

  .premium-login .login-copy h2{
    margin-top:15px;
    margin-bottom:12px;
    font-size:44px;
  }

  .premium-login .login-copy>p{
    font-size:11px;
    line-height:1.55;
  }

  .premium-login .login-feature-grid{
    margin-top:20px;
  }

  .premium-login .login-feature-grid article{
    min-height:94px;
    padding:12px 13px;
  }

  .premium-login .network-stage{
    top:52%;
    width:405px;
    height:340px;
  }
}

/* ===== MOBISIP NETWORK POSITION FIX V4 ===== */

@media(min-width:961px){
  .premium-login .network-stage{
    top:44%;
    transform:translateY(-50%);
  }
}

@media(max-height:800px) and (min-width:961px){
  .premium-login .network-stage{
    top:43%;
    transform:translateY(-50%);
  }
}


/* ===== MOBISIP NETWORK LOWER NODE FIX V5 ===== */

@media(min-width:961px){

  .premium-login .node-three{
    bottom:88px;
  }

  .premium-login .node-four{
    bottom:86px;
  }

  .premium-login .node-five{
    bottom:54px;
  }

}

@media(max-height:800px) and (min-width:961px){

  .premium-login .node-three{
    bottom:94px;
  }

  .premium-login .node-four{
    bottom:92px;
  }

  .premium-login .node-five{
    bottom:62px;
  }

}


/* ===== MOBISIP LOGIN TYPOGRAPHY SCALE V6 ===== */

/* LEFT SECTION */

.premium-login .login-brand-copy span{
  font-size:11.5px;
}

.premium-login .superadmin-chip{
  font-size:9px;
}

.premium-login .secure-pill{
  font-size:9.5px;
}

.premium-login .login-copy>p{
  font-size:13px;
  line-height:1.65;
}

.premium-login .network-node strong{
  font-size:10px;
}

.premium-login .network-node small{
  font-size:8.5px;
  line-height:1.3;
}

.premium-login .feature-number{
  font-size:8.5px;
}

.premium-login .login-feature-grid strong{
  font-size:11.5px;
}

.premium-login .login-feature-grid small{
  font-size:9.5px;
  line-height:1.4;
}

.premium-login .login-visual-footer{
  font-size:8.5px;
}

.premium-login .secure-status{
  font-size:8.5px;
}


/* RIGHT LOGIN SECTION */

.premium-login .login-kicker{
  font-size:9.5px;
}

.premium-login .login-panel-heading>p{
  font-size:12.5px;
}

.premium-login .field-label{
  font-size:10.5px;
}

.premium-login .login-label-row>span{
  font-size:9px;
}

.premium-login .login-input input{
  font-size:12.5px;
}

.premium-login .password-field button{
  font-size:9.5px;
}

.premium-login .login-submit{
  font-size:11.5px;
}

.premium-login .login-trust strong{
  font-size:9.5px;
}

.premium-login .login-trust small{
  font-size:8.5px;
}

.premium-login .login-divider small{
  font-size:7.5px;
}

.premium-login .login-footnote{
  font-size:9px !important;
}

.premium-login .login-panel-footer{
  font-size:8.5px;
}


/* Avoid shrinking typography too aggressively on laptop screens */

@media(max-height:800px) and (min-width:961px){

  .premium-login .login-copy>p{
    font-size:12.5px;
  }

  .premium-login .network-node strong{
    font-size:9.5px;
  }

  .premium-login .network-node small{
    font-size:8.2px;
  }

  .premium-login .login-feature-grid strong{
    font-size:11px;
  }

  .premium-login .login-feature-grid small{
    font-size:9px;
  }
}


/* ===== MOBISIP LOGIN MICROTEXT READABILITY V7 ===== */

/* Network labels */
.premium-login .network-node{
  min-width:132px;
  padding:11px 12px 11px 30px;
}

.premium-login .network-node strong{
  font-size:11px;
  font-weight:750;
  line-height:1.25;
}

.premium-login .network-node small{
  margin-top:4px;
  font-size:9px;
  line-height:1.35;
  color:#929aaf;
}

/* Left capability cards */
.premium-login .feature-number{
  font-size:9px;
}

.premium-login .login-feature-grid strong{
  font-size:12px;
}

.premium-login .login-feature-grid small{
  font-size:10px;
  line-height:1.45;
  color:#929aae;
}

/* Left footer */
.premium-login .login-visual-footer{
  font-size:9px;
}

.premium-login .secure-status{
  font-size:9px;
}

/* Right-side trust information */
.premium-login .login-trust strong{
  font-size:10px;
}

.premium-login .login-trust small{
  font-size:9px;
  line-height:1.35;
}

.premium-login .login-divider small{
  font-size:8px;
}

.premium-login .login-footnote{
  font-size:9.5px !important;
}

.premium-login .login-panel-footer{
  font-size:9px;
}

/* Keep compact laptop layout readable */
@media(max-height:800px) and (min-width:961px){

  .premium-login .network-node strong{
    font-size:10.5px;
  }

  .premium-login .network-node small{
    font-size:8.7px;
  }

  .premium-login .login-feature-grid strong{
    font-size:11.5px;
  }

  .premium-login .login-feature-grid small{
    font-size:9.5px;
  }

}


/* ===== MOBISIP RIGHT LOGIN PANEL POLISH V8 ===== */

.premium-login .login-panel-frame{
  width:min(500px,100%);
}

.premium-login .login-panel-heading h1{
  font-size:38px;
}

.premium-login .login-panel-heading>p{
  font-size:13px;
  color:#656d82;
}

.premium-login .login-card{
  padding:30px;
  border-color:#dfe2ed;
  background:rgba(255,255,255,.94);
  box-shadow:
    0 30px 72px rgba(28,34,68,.12),
    0 4px 16px rgba(28,34,68,.05),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.premium-login .field-label{
  font-size:11px;
}

.premium-login .login-input input{
  font-size:13px;
}

.premium-login .login-submit{
  font-size:12px;
  min-height:54px;
}

.premium-login .login-trust>div{
  padding:12px;
}

.premium-login .login-trust strong{
  font-size:10.5px;
}

.premium-login .login-trust small{
  font-size:9.5px;
}

.premium-login .login-divider small{
  font-size:8.5px;
}

.premium-login .login-footnote{
  font-size:9.5px !important;
  color:#7e8598 !important;
}

.premium-login .login-panel-footer{
  font-size:9.5px;
  color:#8991a4;
}


/* ===== MOBISIP FINAL LOGIN TEXT CONTRAST V9 ===== */

.premium-login .login-label-row>span{
  color:#7d8498;
}

.premium-login .login-trust small{
  color:#747c90;
}

.premium-login .login-divider small{
  color:#7e8699;
}

.premium-login .login-footnote{
  color:#737b8f !important;
}

.premium-login .login-panel-footer{
  color:#778095;
}

.premium-login .panel-live{
  color:#778095;
}

.premium-login .login-visual-footer{
  color:#737d92;
}

.premium-login .secure-status{
  color:#929bad;
}


/* ===== MOBISIP LEFT PANEL STRUCTURAL FIX V10 ===== */

@media(min-width:961px){

  /* Reduce excessive vertical gaps */
  .premium-login .login-visual{
    padding-top:28px;
    padding-bottom:24px;
  }

  .premium-login .login-message{
    display:grid;
    grid-template-columns:minmax(0, .92fr) minmax(360px, 1.08fr);
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:34px;
    row-gap:24px;

    flex:1;
    min-height:0;

    margin:0;
    padding:28px 0 18px;
  }

  /* LEFT HERO COPY */
  .premium-login .login-copy{
    grid-column:1;
    grid-row:1;

    width:100%;
    max-width:520px;
    align-self:center;
  }

  .premium-login .login-copy h2{
    max-width:520px;
    margin:18px 0 16px;

    font-size:clamp(42px,3.4vw,52px);
    line-height:1.01;
    letter-spacing:-.058em;
  }

  .premium-login .login-copy>p{
    max-width:500px;
  }


  /* RIGHT NETWORK GRAPHIC */
  .premium-login .network-stage{
    position:relative;

    grid-column:2;
    grid-row:1;

    top:auto;
    right:auto;
    left:auto;
    bottom:auto;

    width:100%;
    max-width:445px;
    height:360px;

    justify-self:end;
    align-self:center;

    transform:none;
    opacity:.96;
  }


  /* Keep nodes entirely inside the visual column */
  .premium-login .node-one{
    left:0;
    top:28px;
  }

  .premium-login .node-two{
    right:0;
    top:28px;
  }

  .premium-login .node-three{
    left:-4px;
    bottom:55px;
  }

  .premium-login .node-four{
    right:-2px;
    bottom:55px;
  }

  .premium-login .node-five{
    left:50%;
    bottom:18px;
  }


  /* FEATURE CARDS AS A TRUE LOWER ROW */
  .premium-login .login-feature-grid{
    grid-column:1 / -1;
    grid-row:2;

    width:100%;
    max-width:none;

    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;

    margin:0;
  }

  .premium-login .login-feature-grid article{
    min-height:96px;
    padding:14px 15px;
  }


  /* Footer closer to content */
  .premium-login .login-visual-footer{
    padding-top:14px;
  }

}


/* 1366 / smaller desktop */
@media(max-width:1380px) and (min-width:961px){

  .premium-login .login-message{
    grid-template-columns:minmax(0,.94fr) minmax(340px,1.06fr);
    column-gap:24px;
  }

  .premium-login .login-copy h2{
    font-size:44px;
    max-width:480px;
  }

  .premium-login .login-copy{
    max-width:480px;
  }

  .premium-login .network-stage{
    max-width:405px;
    height:335px;
  }

}


/* Short-height desktop */
@media(max-height:800px) and (min-width:961px){

  .premium-login .login-visual{
    padding-top:22px;
    padding-bottom:18px;
  }

  .premium-login .login-message{
    padding-top:18px;
    padding-bottom:12px;
    row-gap:18px;
  }

  .premium-login .login-copy h2{
    font-size:42px;
    margin-top:14px;
    margin-bottom:12px;
  }

  .premium-login .network-stage{
    height:315px;
  }

  .premium-login .login-feature-grid article{
    min-height:88px;
    padding:12px 14px;
  }

}


/* ===== MOBISIP FEATURE CARD REFINEMENT V11 ===== */

@media(min-width:961px){

  .premium-login .login-feature-grid{
    gap:14px;
  }

  .premium-login .login-feature-grid article{
    min-height:88px;
    padding:13px 15px;

    display:grid;
    grid-template-columns:36px minmax(0,1fr) auto;
    grid-template-rows:auto auto;

    column-gap:12px;
    row-gap:3px;

    align-items:center;

    border-radius:14px;
  }

  .premium-login .feature-top{
    display:contents;
    margin:0;
  }

  .premium-login .feature-icon{
    grid-column:1;
    grid-row:1 / 3;

    width:34px;
    height:34px;
    margin:0;

    align-self:center;
  }

  .premium-login .feature-number{
    grid-column:3;
    grid-row:1;

    align-self:end;
    justify-self:end;

    font-size:8.5px;
  }

  .premium-login .login-feature-grid strong{
    grid-column:2;
    grid-row:1;

    align-self:end;

    font-size:11.5px;
    line-height:1.25;
  }

  .premium-login .login-feature-grid small{
    grid-column:2 / 4;
    grid-row:2;

    margin:0;
    align-self:start;

    font-size:9.5px;
    line-height:1.35;
  }

}


/* Short desktop screens */
@media(max-height:800px) and (min-width:961px){

  .premium-login .login-feature-grid article{
    min-height:82px;
    padding:11px 13px;
  }

  .premium-login .feature-icon{
    width:32px;
    height:32px;
  }

}


/* ===== MOBISIP LEFT PANEL VERTICAL RHYTHM V12 ===== */

@media(min-width:961px){

  .premium-login .login-message{
    align-content:center;
    row-gap:26px;
  }

  .premium-login .login-feature-grid{
    align-self:start;
  }

}

/* Laptop / short-height desktop */
@media(max-height:800px) and (min-width:961px){

  .premium-login .login-message{
    align-content:center;
    row-gap:20px;
  }

}


/* ===== MOBISIP LEFT HERO VERTICAL BALANCE V13 ===== */

@media(min-width:961px){

  .premium-login .login-message{
    transform:translateY(-24px);
  }

}

/* Smaller / short desktop */
@media(max-height:800px) and (min-width:961px){

  .premium-login .login-message{
    transform:translateY(-18px);
  }

}


/* ===== MOBISIP SUPER ADMIN DASHBOARD FOUNDATION V1 ===== */

@media(min-width:961px){

  /* SIDEBAR READABILITY */

  .app-shell .brand-copy strong{
    font-size:18px;
  }

  .app-shell .brand-copy span{
    font-size:11.5px;
  }

  .app-shell .brand-badge{
    font-size:8.5px;
  }

  .app-shell .scope-kicker,
  .app-shell .nav-caption{
    font-size:9.5px;
  }

  .app-shell .scope-card strong{
    font-size:12px;
  }

  .app-shell .scope-card>div:nth-child(2)>span{
    font-size:10px;
  }

  .app-shell .scope-live{
    font-size:8.8px !important;
  }

  .app-shell .nav-item{
    min-height:44px;
    font-size:13px;
    font-weight:650;
  }

  .app-shell .mini-health strong{
    font-size:11px;
  }

  .app-shell .mini-health div span{
    font-size:9.5px;
  }

  .app-shell .sidebar-version{
    font-size:9.5px;
  }


  /* TOP BAR */

  .app-shell .eyebrow{
    font-size:9.5px;
  }

  .app-shell .topbar h1{
    font-size:22px;
  }

  .app-shell .environment-pill{
    font-size:10.5px;
  }

  .app-shell .profile-copy strong{
    font-size:12px;
  }

  .app-shell .profile-copy small{
    font-size:9.5px;
  }


  /* MAIN CANVAS */

  .app-shell .content{
    padding:24px 26px 34px;
  }


  /* DASHBOARD HERO */

  .app-shell .dashboard-hero{
    padding:21px 23px;
    margin-bottom:15px;
  }

  .app-shell .dashboard-hero .hero-kicker{
    font-size:9.5px;
  }

  .app-shell .dashboard-hero h2{
    font-size:27px;
  }

  .app-shell .dashboard-hero p{
    font-size:12px;
  }

  .app-shell .hero-date{
    font-size:10.5px;
  }


  /* KPI CARDS — LESS EMPTY SPACE, MORE READABLE */

  .app-shell .kpi-grid{
    gap:12px;
    margin-bottom:14px;
  }

  .app-shell .kpi-card{
    min-height:128px;
    padding:15px 16px;
  }

  .app-shell .kpi-top .label{
    font-size:11px;
  }

  .app-shell .kpi-icon{
    width:36px;
    height:36px;
  }

  .app-shell .kpi-value{
    margin-top:12px;
    font-size:32px;
  }

  .app-shell .kpi-foot{
    margin-top:8px;
    font-size:10px;
  }


  /* PANELS */

  .app-shell .panel-head{
    padding:14px 16px;
  }

  .app-shell .panel-head h3{
    font-size:14px;
  }

  .app-shell .panel-head p{
    margin-top:4px;
    font-size:10px;
  }

  .app-shell .panel-body{
    padding:15px 16px;
  }


  /* CHART READABILITY */

  .app-shell .chart-legend{
    font-size:10px;
  }

  .app-shell .chart-axis{
    font-size:9px;
  }

  .app-shell .chart-empty{
    font-size:10.5px;
  }


  /* RIGHT-SIDE DASHBOARD WIDGETS */

  .app-shell .posture-card-head strong{
    font-size:12px;
  }

  .app-shell .posture-card-head span{
    font-size:10px;
  }

  .app-shell .donut-center strong{
    font-size:21px;
  }

  .app-shell .donut-center span{
    font-size:9px;
  }

  .app-shell .donut-meta div{
    font-size:10px;
  }

  .app-shell .donut-meta strong{
    font-size:10.5px;
  }

  .app-shell .health-mini strong{
    font-size:10px;
  }

  .app-shell .health-mini span{
    font-size:9px;
  }

  .app-shell .mini-bar-row{
    font-size:10px;
  }

  .app-shell .mini-bar-row strong{
    font-size:10px;
  }


  /* TABLES */

  .app-shell thead th{
    font-size:9.5px;
  }

  .app-shell th,
  .app-shell td{
    padding:11px 13px;
  }

  .app-shell .cell-title{
    font-size:12px;
  }

  .app-shell .cell-sub{
    font-size:10px;
  }

  .app-shell .code{
    font-size:10.5px;
  }

  .app-shell .badge{
    font-size:9px;
  }

  .app-shell .row-actions button{
    font-size:9.5px;
  }

  .app-shell .pagination{
    font-size:10px;
  }


  /* ACTIVITY / TIMELINE */

  .app-shell .timeline-title{
    font-size:11px;
  }

  .app-shell .timeline-meta{
    font-size:9.5px;
  }

}


/* ===== MOBISIP DASHBOARD GRID HEIGHT FIX V2 ===== */

@media(min-width:961px){

  .app-shell .grid-2{
    align-items:start;
  }

  .app-shell .grid-2 > .panel{
    align-self:start;
    height:auto;
  }

}


/* ===== MOBISIP SIDEBAR BRAND FIX V3 ===== */

.app-shell .sidebar .brand-mark{
  background:
    url("/superadmin/mobisip-logo.webp") center/38px 38px no-repeat,
    rgba(255,255,255,.045);

  border:1px solid rgba(255,255,255,.08);
  box-shadow:
    0 10px 24px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.app-shell .sidebar .brand-mark svg{
  display:none;
}


/* ===== MOBISIP DASHBOARD ACTIVITY COMPACTION V4 ===== */

@media(min-width:961px){

  /* Only the Recent privileged activity body */
  .app-shell .grid-2 > .panel:nth-child(2) > .panel-body:last-child{
    max-height:390px;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }

  .app-shell .grid-2 > .panel:nth-child(2) .timeline-item{
    padding-bottom:13px;
  }

  .app-shell .grid-2 > .panel:nth-child(2) .timeline-title{
    line-height:1.35;
  }

  .app-shell .grid-2 > .panel:nth-child(2) .timeline-meta{
    margin-top:3px;
    line-height:1.35;
  }

  .app-shell .grid-2 > .panel:nth-child(2) > .panel-body:last-child::-webkit-scrollbar{
    width:8px;
  }

}


/* ===== MOBISIP DASHBOARD ACTIVITY HEIGHT V5 ===== */

@media(min-width:961px){

  .app-shell .grid-2 > .panel:nth-child(2) > .panel-body:last-child{
    max-height:260px;
  }

  .app-shell .grid-2 > .panel:nth-child(2) .timeline-item{
    padding-bottom:10px;
  }

}


/* ===== MOBISIP DASHBOARD LOWER BALANCE V6 ===== */

@media(min-width:961px){

  .app-shell .grid-2 > .panel:nth-child(2) > .panel-body:last-child{
    max-height:190px;
  }

  .app-shell .grid-2 > .panel:nth-child(2) .timeline-item{
    padding-bottom:9px;
  }

}


/* ===== MOBISIP SECURITY PAGE PREMIUM V1 ===== */

@media(min-width:961px){

  /* Scope ONLY to the Security page */
  .app-shell .content:has(#changePasswordForm){
    max-width:1380px;
    margin:0 auto;
    padding-top:26px;
  }


  /* Remove duplicated eyebrow inside page content */
  .app-shell .content:has(#changePasswordForm) > .page-head .eyebrow{
    display:none;
  }


  /* Cleaner page intro */
  .app-shell .content:has(#changePasswordForm) > .page-head{
    margin-bottom:22px;
    align-items:flex-start;
  }

  .app-shell .content:has(#changePasswordForm) > .page-head h2{
    font-size:28px;
    line-height:1.1;
  }

  .app-shell .content:has(#changePasswordForm) > .page-head p{
    margin-top:7px;
    font-size:12px;
    color:#737b90;
  }


  /* Security layout */
  .app-shell .content:has(#changePasswordForm) > .grid-2{
    grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);
    gap:18px;
    align-items:start;
  }


  /* Cards */
  .app-shell .content:has(#changePasswordForm) > .grid-2 > .panel{
    border-radius:18px;
    border-color:#e1e4ee;
    box-shadow:
      0 10px 32px rgba(30,38,70,.055),
      0 1px 2px rgba(30,38,70,.025);
  }


  /* Card headers */
  .app-shell .content:has(#changePasswordForm) .panel-head{
    padding:18px 20px;
  }

  .app-shell .content:has(#changePasswordForm) .panel-head h3{
    font-size:15px;
    font-weight:750;
  }

  .app-shell .content:has(#changePasswordForm) .panel-head p{
    margin-top:5px;
    font-size:10.5px;
  }


  /* Password form body */
  .app-shell .content:has(#changePasswordForm) #changePasswordForm{
    max-width:680px;
  }

  .app-shell .content:has(#changePasswordForm) > .grid-2 > .panel:first-child .panel-body{
    padding:20px;
  }


  /* Password labels */
  .app-shell .content:has(#changePasswordForm) #changePasswordForm .field-label{
    margin-top:0;
    margin-bottom:8px;
    font-size:11px;
  }

  .app-shell .content:has(#changePasswordForm) #changePasswordForm .field + .field-label{
    margin-top:18px;
  }


  /* Password inputs */
  .app-shell .content:has(#changePasswordForm) #changePasswordForm input{
    min-height:48px;
    border-radius:12px;
    background:#fafbfe;
    font-size:13px;
    padding:0 14px;
  }

  .app-shell .content:has(#changePasswordForm) #changePasswordForm input:hover{
    background:#fff;
    border-color:#d6dae7;
  }

  .app-shell .content:has(#changePasswordForm) #changePasswordForm input:focus{
    background:#fff;
    border-color:rgba(91,92,246,.55);
    box-shadow:0 0 0 4px rgba(91,92,246,.08);
  }


  /* Primary action */
  .app-shell .content:has(#changePasswordForm) #changePasswordForm .primary-button{
    margin-top:22px !important;
    min-height:44px;
    padding:0 18px;
    font-size:11.5px;
    border-radius:11px;
  }


  /* Current account card */
  .app-shell .content:has(#changePasswordForm) > .grid-2 > .panel:nth-child(2){
    background:
      linear-gradient(145deg,#fff 0%,#fafbff 100%);
  }

  .app-shell .content:has(#changePasswordForm) > .grid-2 > .panel:nth-child(2) .panel-body{
    padding:6px 20px 12px;
  }


  /* Current account metadata */
  .app-shell .content:has(#changePasswordForm) .metric-list{
    gap:0;
  }

  .app-shell .content:has(#changePasswordForm) .metric-row{
    min-height:52px;
    padding:12px 0;
    font-size:11px;
  }

  .app-shell .content:has(#changePasswordForm) .metric-row span{
    color:#747c91;
  }

  .app-shell .content:has(#changePasswordForm) .metric-row strong{
    font-size:11.5px;
    font-weight:720;
    text-align:right;
  }

}


/* ===== MOBISIP SECURITY ACCOUNT CARD FIX V2 ===== */

@media(min-width:961px){

  .app-shell .content:has(#changePasswordForm)
  > .grid-2
  > .panel:nth-child(2)
  > .panel-body:last-child{
    max-height:none;
    overflow:visible;
    overscroll-behavior:auto;
    scrollbar-gutter:auto;
  }

}


/* ===== MOBISIP SECURITY PAGE BALANCE V3 ===== */

@media(min-width:961px){

  /* Topbar already shows Security, so remove duplicate page heading */
  .app-shell .content:has(#changePasswordForm) > .page-head{
    display:none;
  }

  /* Bring security content closer to topbar */
  .app-shell .content:has(#changePasswordForm){
    max-width:1240px;
    padding-top:28px;
  }

  /* More balanced card proportions */
  .app-shell .content:has(#changePasswordForm) > .grid-2{
    grid-template-columns:minmax(0,1.12fr) minmax(380px,.88fr);
    gap:20px;
  }

  /* Prevent password form becoming excessively wide */
  .app-shell .content:has(#changePasswordForm) #changePasswordForm{
    max-width:620px;
  }

  /* Slightly tighter left card */
  .app-shell .content:has(#changePasswordForm)
  > .grid-2
  > .panel:first-child
  .panel-body{
    padding:22px 20px 20px;
  }

}


/* ===== MOBISIP SECURITY POSTURE UI V4 ===== */

@media(min-width:961px){

  /* Right-side stack */
  .app-shell .content:has(#changePasswordForm) .security-side-stack{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
    align-self:start;
    min-width:0;
  }


  /* Match premium styling of left password card */
  .app-shell .content:has(#changePasswordForm)
  .security-side-stack > .panel{
    border-radius:18px;
    border-color:#e1e4ee;
    background:#fff;
    box-shadow:
      0 10px 32px rgba(30,38,70,.055),
      0 1px 2px rgba(30,38,70,.025);
  }


  /* Current account card */
  .app-shell .content:has(#changePasswordForm)
  .security-side-stack > .panel:first-child{
    background:
      linear-gradient(145deg,#fff 0%,#fafbff 100%);
  }

  .app-shell .content:has(#changePasswordForm)
  .security-side-stack > .panel:first-child .panel-body{
    padding:6px 20px 12px;
    overflow:visible;
    max-height:none;
  }


  /* Security posture header */
  .app-shell .content:has(#changePasswordForm)
  .security-posture-card .panel-head{
    align-items:center;
  }

  .app-shell .content:has(#changePasswordForm)
  .security-posture-card .panel-head h3{
    font-size:15px;
  }

  .app-shell .content:has(#changePasswordForm)
  .security-posture-card .panel-head p{
    font-size:10px;
  }


  /* Posture body */
  .app-shell .content:has(#changePasswordForm)
  .security-posture-card .panel-body{
    padding:6px 20px 12px;
  }

  .app-shell .content:has(#changePasswordForm)
  .security-posture-list{
    display:grid;
  }

  .app-shell .content:has(#changePasswordForm)
  .security-posture-list > div{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:11px 0;
    border-bottom:1px solid var(--border);
  }

  .app-shell .content:has(#changePasswordForm)
  .security-posture-list > div:last-child{
    border-bottom:0;
  }

  .app-shell .content:has(#changePasswordForm)
  .security-posture-list span{
    color:#747c91;
    font-size:11px;
  }

  .app-shell .content:has(#changePasswordForm)
  .security-posture-list strong{
    color:var(--textStrong);
    font-size:11.5px;
    font-weight:720;
    text-align:right;
  }

}


/* ===== MOBISIP SIDEBAR SHORT-DESKTOP FIT V5 ===== */

@media(max-height:900px) and (min-width:961px){

  .app-shell .sidebar{
    padding-top:16px;
    padding-bottom:12px;
  }

  .app-shell .brand{
    padding-bottom:13px;
  }

  .app-shell .sidebar-scope{
    padding-bottom:10px;
  }

  .app-shell .scope-kicker{
    margin-bottom:5px;
  }

  .app-shell .scope-card{
    padding:8px 9px;
  }

  .app-shell .nav{
    gap:1px;
  }

  .app-shell .nav-caption{
    margin-top:9px;
    margin-bottom:3px;
  }

  .app-shell .nav-item{
    min-height:37px;
    padding-top:7px;
    padding-bottom:7px;
  }

  .app-shell .sidebar-footer{
    padding-top:10px;
  }

  .app-shell .sidebar-version{
    margin-top:8px;
  }

}


/* ===== MOBISIP SIDEBAR FINAL HEIGHT FIT V6 ===== */

@media(max-height:900px) and (min-width:961px){

  .app-shell .sidebar{
    padding-top:13px;
    padding-bottom:10px;
  }

  .app-shell .brand{
    padding-bottom:10px;
  }

  .app-shell .sidebar-scope{
    padding-bottom:7px;
  }

  .app-shell .scope-kicker{
    margin-top:0;
    margin-bottom:4px;
  }

  .app-shell .scope-card{
    padding:7px 8px;
  }

  .app-shell .nav{
    gap:0;
    padding-bottom:3px;
  }

  .app-shell .nav-caption{
    margin-top:7px;
    margin-bottom:2px;
  }

  .app-shell .nav-item{
    min-height:34px;
    padding:5px 10px;
  }

  .app-shell .sidebar-footer{
    padding-top:8px;
  }

  .app-shell .sidebar-version{
    margin-top:6px;
  }

}


/* ===== MOBISIP PLATFORM ADMINS HEADER V1 ===== */

@media(min-width:961px){

  /* Scope only to Platform Admins */
  .app-shell .content:has([data-action="new-platform-admin"])
  > .page-head .eyebrow,
  .app-shell .content:has([data-action="new-platform-admin"])
  > .page-head h2{
    display:none;
  }

  .app-shell .content:has([data-action="new-platform-admin"])
  > .page-head{
    align-items:center;
    margin-bottom:16px;
  }

  .app-shell .content:has([data-action="new-platform-admin"])
  > .page-head p{
    margin:0;
    font-size:12px;
    color:#737b90;
  }

  .app-shell .content:has([data-action="new-platform-admin"])
  > .page-head .primary-button{
    min-height:42px;
    padding:0 16px;
    border-radius:11px;
    font-size:11.5px;
  }

}


/* ===== MOBISIP PLATFORM ADMINS TABLE V2 ===== */

@media(min-width:961px){

  /* Scope only to Platform Admins */
  .app-shell .content:has([data-action="new-platform-admin"]) > .panel{
    border-radius:18px;
    border-color:#e1e4ee;
    box-shadow:
      0 10px 30px rgba(30,38,70,.05),
      0 1px 2px rgba(30,38,70,.025);
    overflow:hidden;
  }

  /* Header */
  .app-shell .content:has([data-action="new-platform-admin"]) thead th{
    height:42px;
    padding:0 16px;
    font-size:9.5px;
    letter-spacing:.085em;
    color:#727a90;
    background:#fafbfe;
  }

  /* Admin row */
  .app-shell .content:has([data-action="new-platform-admin"]) tbody td{
    height:66px;
    padding:12px 16px;
    vertical-align:middle;
  }

  /* Administrator identity */
  .app-shell .content:has([data-action="new-platform-admin"])
  tbody td:first-child{
    position:relative;
    padding-left:58px;
    font-size:13px;
    font-weight:720;
    color:var(--textStrong);
  }

  .app-shell .content:has([data-action="new-platform-admin"])
  tbody td:first-child:before{
    content:"";
    position:absolute;
    left:16px;
    top:50%;
    width:30px;
    height:30px;
    transform:translateY(-50%);
    border-radius:10px;
    background:
      linear-gradient(145deg,#6e70ff,#5b5cf6);
    box-shadow:
      0 6px 16px rgba(91,92,246,.20);
  }

  .app-shell .content:has([data-action="new-platform-admin"])
  tbody td:first-child:after{
    content:"A";
    position:absolute;
    left:16px;
    top:50%;
    width:30px;
    height:30px;
    transform:translateY(-50%);
    display:grid;
    place-items:center;
    color:#fff;
    font-size:11px;
    font-weight:800;
  }

  .app-shell .content:has([data-action="new-platform-admin"])
  tbody td:first-child .cell-sub{
    margin-top:4px;
    font-size:9.5px;
    font-weight:500;
  }

  /* Date columns */
  .app-shell .content:has([data-action="new-platform-admin"])
  tbody td:nth-child(3),
  .app-shell .content:has([data-action="new-platform-admin"])
  tbody td:nth-child(4){
    font-size:11.5px;
    color:#343a4c;
  }

  /* Action hierarchy */
  .app-shell .content:has([data-action="new-platform-admin"])
  .row-actions{
    gap:7px;
  }

  .app-shell .content:has([data-action="new-platform-admin"])
  .row-actions button{
    min-height:34px;
    padding:0 11px;
    border-radius:9px;
    font-size:9.5px;
  }

  .app-shell .content:has([data-action="new-platform-admin"])
  .row-actions button:first-child{
    color:var(--primary);
    border-color:rgba(91,92,246,.18);
    background:var(--primarySoft);
  }

  .app-shell .content:has([data-action="new-platform-admin"])
  .row-actions button:last-child:hover{
    color:var(--danger);
    border-color:rgba(223,77,86,.18);
    background:var(--dangerSoft);
  }

}


/* ===== MOBISIP CREATE PLATFORM ADMIN MODAL V1 ===== */

@media(min-width:641px){

  /* Scope only to Create Platform Admin */
  .modal:has(#newPlatformAdminForm){
    width:min(640px,calc(100vw - 40px));
    border-radius:20px;
    border:1px solid #e0e3ed;
    box-shadow:
      0 32px 90px rgba(20,27,55,.24),
      0 8px 24px rgba(20,27,55,.10);
    overflow:hidden;
  }


  /* Header */
  .modal:has(#newPlatformAdminForm) .modal-head{
    padding:21px 22px 18px;
    background:
      linear-gradient(180deg,#ffffff 0%,#fcfcff 100%);
  }

  .modal:has(#newPlatformAdminForm) .modal-head h3{
    font-size:18px;
    line-height:1.2;
    letter-spacing:-.025em;
  }

  .modal:has(#newPlatformAdminForm) .modal-head p{
    margin-top:6px;
    font-size:11px;
    line-height:1.5;
    color:#747c90;
  }

  .modal:has(#newPlatformAdminForm) .modal-close{
    width:34px;
    height:34px;
    border-radius:10px;
    font-size:17px;
  }


  /* Form body */
  .modal:has(#newPlatformAdminForm) .modal-body{
    padding:22px;
  }

  .modal:has(#newPlatformAdminForm) #newPlatformAdminForm{
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:16px;
    row-gap:20px;
  }


  /* Temporary password gets its own full row */
  .modal:has(#newPlatformAdminForm)
  #newPlatformAdminForm > .field:nth-child(3){
    grid-column:1 / -1;
  }


  /* Labels */
  .modal:has(#newPlatformAdminForm) .field-label{
    margin-bottom:8px;
    font-size:10.5px;
    font-weight:700;
    color:#202638;
  }


  /* Inputs */
  .modal:has(#newPlatformAdminForm) input{
    min-height:46px;
    padding:0 13px;
    border-radius:11px;
    background:#fafbfe;
    font-size:12.5px;
  }

  .modal:has(#newPlatformAdminForm) input:hover{
    background:#fff;
    border-color:#d5d9e6;
  }

  .modal:has(#newPlatformAdminForm) input:focus{
    background:#fff;
    border-color:rgba(91,92,246,.55);
    box-shadow:0 0 0 4px rgba(91,92,246,.08);
  }


  /* Password helper */
  .modal:has(#newPlatformAdminForm) .help{
    margin-top:7px;
    font-size:9.5px;
    line-height:1.45;
    color:#7c8497;
  }


  /* Footer */
  .modal:has(#newPlatformAdminForm) .modal-foot{
    padding:14px 22px;
    gap:9px;
    background:#fafbfe;
    border-top:1px solid #e5e7ef;
  }

  .modal:has(#newPlatformAdminForm) .modal-foot button{
    min-height:40px;
    padding:0 16px;
    border-radius:10px;
    font-size:10.5px;
  }

  .modal:has(#newPlatformAdminForm) .modal-foot .primary-button{
    min-width:142px;
  }

}


/* ===== MOBISIP EDIT PLATFORM ADMIN MODAL V1 ===== */

@media(min-width:641px){

  /* Scope only to Edit Platform Admin */
  .modal:has(#editPlatformAdminForm){
    width:min(640px,calc(100vw - 40px));
    border-radius:20px;
    border:1px solid #e0e3ed;
    box-shadow:
      0 32px 90px rgba(20,27,55,.24),
      0 8px 24px rgba(20,27,55,.10);
    overflow:hidden;
  }


  /* Header */
  .modal:has(#editPlatformAdminForm) .modal-head{
    padding:21px 22px 18px;
    background:
      linear-gradient(180deg,#ffffff 0%,#fcfcff 100%);
  }

  .modal:has(#editPlatformAdminForm) .modal-head h3{
    font-size:18px;
    line-height:1.2;
    letter-spacing:-.025em;
  }

  .modal:has(#editPlatformAdminForm) .modal-close{
    width:34px;
    height:34px;
    border-radius:10px;
    font-size:17px;
  }


  /* Body */
  .modal:has(#editPlatformAdminForm) .modal-body{
    padding:22px;
  }

  .modal:has(#editPlatformAdminForm) #editPlatformAdminForm{
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:16px;
    row-gap:20px;
  }


  /* Status becomes a deliberate full-width row */
  .modal:has(#editPlatformAdminForm)
  #editPlatformAdminForm > .field:nth-child(3){
    grid-column:1 / -1;
  }


  /* Labels */
  .modal:has(#editPlatformAdminForm) .field-label{
    margin-bottom:8px;
    font-size:10.5px;
    font-weight:700;
    color:#202638;
  }


  /* Inputs + status select */
  .modal:has(#editPlatformAdminForm) input,
  .modal:has(#editPlatformAdminForm) select{
    min-height:46px;
    padding:0 13px;
    border-radius:11px;
    background:#fafbfe;
    font-size:12.5px;
  }

  .modal:has(#editPlatformAdminForm) input:hover,
  .modal:has(#editPlatformAdminForm) select:hover{
    background:#fff;
    border-color:#d5d9e6;
  }

  .modal:has(#editPlatformAdminForm) input:focus,
  .modal:has(#editPlatformAdminForm) select:focus{
    background:#fff;
    border-color:rgba(91,92,246,.55);
    box-shadow:0 0 0 4px rgba(91,92,246,.08);
  }


  /* Footer */
  .modal:has(#editPlatformAdminForm) .modal-foot{
    padding:14px 22px;
    gap:9px;
    background:#fafbfe;
    border-top:1px solid #e5e7ef;
  }

  .modal:has(#editPlatformAdminForm) .modal-foot button{
    min-height:40px;
    padding:0 16px;
    border-radius:10px;
    font-size:10.5px;
  }

  .modal:has(#editPlatformAdminForm) .modal-foot .primary-button{
    min-width:92px;
  }

}


/* ===== MOBISIP PLATFORM PAGE HEADER V1 ===== */

@media(min-width:961px){

  /* Scope only to the Platform infrastructure page */
  .app-shell .content:has(.health-grid) > .page-head .eyebrow,
  .app-shell .content:has(.health-grid) > .page-head h2{
    display:none;
  }

  .app-shell .content:has(.health-grid) > .page-head{
    margin-bottom:16px;
    align-items:center;
  }

  .app-shell .content:has(.health-grid) > .page-head p{
    margin:0;
    font-size:12px;
    color:#737b90;
  }

}


/* ===== MOBISIP PLATFORM HEALTH CARDS V2 ===== */

@media(min-width:961px){

  /* Platform service grid */
  .app-shell .content:has(.health-grid) .health-grid{
    gap:14px;
    margin-bottom:16px;
  }


  /* Base service card */
  .app-shell .content:has(.health-grid) .health-card{
    position:relative;
    min-height:88px;
    padding:17px 18px;

    border-radius:16px;
    border:1px solid #e1e4ed;

    background:
      linear-gradient(145deg,#ffffff 0%,#fbfcff 100%);

    box-shadow:
      0 8px 24px rgba(29,36,68,.045),
      0 1px 2px rgba(29,36,68,.025);

    overflow:hidden;
  }


  /* Status accent */
  .app-shell .content:has(.health-grid) .health-card:before{
    content:"";
    position:absolute;
    left:0;
    top:14px;
    bottom:14px;
    width:3px;
    border-radius:0 4px 4px 0;
    background:#dfe3ec;
  }


  /* Unhealthy service */
  .app-shell .content:has(.health-grid)
  .health-card:has(.badge.danger){
    border-color:rgba(230,78,87,.16);

    background:
      linear-gradient(
        145deg,
        #ffffff 0%,
        #fffafa 100%
      );
  }

  .app-shell .content:has(.health-grid)
  .health-card:has(.badge.danger):before{
    background:#ea5963;
  }


  /* Healthy service automatically switches to green */
  .app-shell .content:has(.health-grid)
  .health-card:has(.badge.success){
    border-color:rgba(28,169,113,.16);

    background:
      linear-gradient(
        145deg,
        #ffffff 0%,
        #f9fffc 100%
      );
  }

  .app-shell .content:has(.health-grid)
  .health-card:has(.badge.success):before{
    background:#20b77a;
  }


  /* Service name + badge */
  .app-shell .content:has(.health-grid) .health-title{
    align-items:center;
    gap:12px;
  }

  .app-shell .content:has(.health-grid) .health-title strong{
    font-size:14px;
    font-weight:760;
    letter-spacing:-.015em;
  }

  .app-shell .content:has(.health-grid) .health-title .badge{
    font-size:9px;
    padding:5px 9px;
    border-radius:999px;
  }


  /* Supporting state copy */
  .app-shell .content:has(.health-grid) .health-card > span{
    display:block;
    margin-top:7px;
    font-size:10px;
    line-height:1.4;
    color:#727a8f;
  }


  /* Subtle interaction */
  .app-shell .content:has(.health-grid) .health-card{
    transition:
      transform .18s ease,
      box-shadow .18s ease,
      border-color .18s ease;
  }

  .app-shell .content:has(.health-grid) .health-card:hover{
    transform:translateY(-1px);
    box-shadow:
      0 12px 30px rgba(29,36,68,.065),
      0 2px 4px rgba(29,36,68,.025);
  }

}


/* ===== MOBISIP AUDIT LOGS HEADER V1 ===== */

@media(min-width:961px){

  /* Scope ONLY to Audit Logs */
  .app-shell .content:has([data-filter="action"])
  > .page-head .eyebrow,

  .app-shell .content:has([data-filter="action"])
  > .page-head h2{
    display:none;
  }

  /* Keep description as secondary context */
  .app-shell .content:has([data-filter="action"])
  > .page-head{
    margin-bottom:14px;
    align-items:center;
  }

  .app-shell .content:has([data-filter="action"])
  > .page-head p{
    margin:0;
    font-size:12px;
    line-height:1.5;
    color:#737b90;
  }

}


/* ===== MOBISIP AUDIT TABLE GEOMETRY V2 ===== */

@media(min-width:961px){

  /* Scope ONLY to Audit Logs */
  .app-shell .content:has([data-filter="action"]) > .panel{
    border-radius:18px;
    border-color:#e1e4ee;
    box-shadow:
      0 10px 30px rgba(30,38,70,.045),
      0 1px 2px rgba(30,38,70,.025);
    overflow:hidden;
  }


  /* Stable column geometry */
  .app-shell .content:has([data-filter="action"]) table{
    width:100%;
    table-layout:fixed;
  }

  .app-shell .content:has([data-filter="action"]) th:nth-child(1),
  .app-shell .content:has([data-filter="action"]) td:nth-child(1){
    width:132px;
  }

  .app-shell .content:has([data-filter="action"]) th:nth-child(2),
  .app-shell .content:has([data-filter="action"]) td:nth-child(2){
    width:190px;
  }

  .app-shell .content:has([data-filter="action"]) th:nth-child(3),
  .app-shell .content:has([data-filter="action"]) td:nth-child(3){
    width:158px;
  }

  .app-shell .content:has([data-filter="action"]) th:nth-child(4),
  .app-shell .content:has([data-filter="action"]) td:nth-child(4){
    width:130px;
  }

  .app-shell .content:has([data-filter="action"]) th:nth-child(5),
  .app-shell .content:has([data-filter="action"]) td:nth-child(5){
    width:130px;
  }


  /* Table heading */
  .app-shell .content:has([data-filter="action"]) thead th{
    height:40px;
    padding:0 14px;

    font-size:9px;
    font-weight:750;
    letter-spacing:.075em;

    color:#747c91;
    background:#fafbfe;
  }


  /* Compact, readable audit rows */
  .app-shell .content:has([data-filter="action"]) tbody td{
    height:58px;
    padding:10px 14px;
    vertical-align:middle;

    font-size:11px;
    line-height:1.35;
  }


  /* Never split timestamps over multiple lines */
  .app-shell .content:has([data-filter="action"])
  tbody td:nth-child(1){
    white-space:nowrap;
    font-size:10.5px;
    color:#596176;
  }


  /* Actor identity */
  .app-shell .content:has([data-filter="action"])
  tbody td:nth-child(2){
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

    font-weight:650;
    color:#252b3d;
  }


  /* Entity + company remain compact */
  .app-shell .content:has([data-filter="action"])
  tbody td:nth-child(4),
  .app-shell .content:has([data-filter="action"])
  tbody td:nth-child(5){
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }


  /* Action badge readability */
  .app-shell .content:has([data-filter="action"])
  tbody td:nth-child(3) .badge{
    max-width:100%;
    padding:5px 9px;

    font-size:9px;
    line-height:1;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

}


/* ===== MOBISIP CALL ACTIVITY HEADER V1 ===== */

@media(min-width:961px){

  /*
   * Scope to Call Activity:
   * - has company filter
   * - no status filter
   * - table has a 7th column
   */
  .app-shell .content:
  has([data-filter="companyId"]):
  not(:has([data-filter="status"])):
  has(table th:nth-child(7))
  > .page-head .eyebrow,

  .app-shell .content:
  has([data-filter="companyId"]):
  not(:has([data-filter="status"])):
  has(table th:nth-child(7))
  > .page-head h2{
    display:none;
  }

  .app-shell .content:
  has([data-filter="companyId"]):
  not(:has([data-filter="status"])):
  has(table th:nth-child(7))
  > .page-head{
    margin-bottom:14px;
    align-items:center;
  }

  .app-shell .content:
  has([data-filter="companyId"]):
  not(:has([data-filter="status"])):
  has(table th:nth-child(7))
  > .page-head p{
    margin:0;
    font-size:12px;
    line-height:1.5;
    color:#737b90;
  }

}


/* ===== MOBISIP CALL ACTIVITY HEADER FIX V2 ===== */

@media(min-width:961px){

  /*
   * Corrected selector.
   * Keep :has() joined directly to the selector.
   */
  .app-shell .content:has([data-filter="companyId"]):not(:has([data-filter="status"])):has(table th:nth-child(7)) > .page-head .eyebrow,
  .app-shell .content:has([data-filter="companyId"]):not(:has([data-filter="status"])):has(table th:nth-child(7)) > .page-head h2{
    display:none;
  }

  .app-shell .content:has([data-filter="companyId"]):not(:has([data-filter="status"])):has(table th:nth-child(7)) > .page-head{
    margin-bottom:14px;
    align-items:center;
  }

  .app-shell .content:has([data-filter="companyId"]):not(:has([data-filter="status"])):has(table th:nth-child(7)) > .page-head p{
    margin:0;
    font-size:12px;
    line-height:1.5;
    color:#737b90;
  }

}


/* ===== MOBISIP REGISTRATIONS HEADER V1 ===== */

@media(min-width:961px){

  /* Scope ONLY to Live Registrations */
  .app-shell .content:has(input[placeholder="Search endpoint, user or company"])
  > .page-head .eyebrow,

  .app-shell .content:has(input[placeholder="Search endpoint, user or company"])
  > .page-head h2{
    display:none;
  }

  /* Keep descriptive context below the application header */
  .app-shell .content:has(input[placeholder="Search endpoint, user or company"])
  > .page-head{
    margin-bottom:14px;
    align-items:center;
  }

  .app-shell .content:has(input[placeholder="Search endpoint, user or company"])
  > .page-head p{
    margin:0;
    font-size:12px;
    line-height:1.5;
    color:#737b90;
  }

}


/* ===== MOBISIP REGISTRATIONS EMPTY STATE V2 ===== */

@media(min-width:961px){

  /* Scope ONLY to Live Registrations */
  .app-shell .content:has(input[placeholder="Search endpoint, user or company"])
  > .panel{
    border-radius:18px;
    border-color:#e1e4ee;
    box-shadow:
      0 10px 30px rgba(30,38,70,.045),
      0 1px 2px rgba(30,38,70,.025);
    overflow:hidden;
  }


  /* Intentional zero-state instead of a plain table row */
  .app-shell .content:has(input[placeholder="Search endpoint, user or company"])
  tbody td[colspan="6"]{
    position:relative;

    height:142px;
    padding:68px 24px 22px;

    text-align:center;

    font-size:12.5px;
    font-weight:700;
    color:#343b50;

    background:
      linear-gradient(180deg,#fff 0%,#fcfdff 100%);
  }


  /* Small live-network visual */
  .app-shell .content:has(input[placeholder="Search endpoint, user or company"])
  tbody td[colspan="6"]:before{
    content:"";

    position:absolute;
    top:24px;
    left:50%;

    width:34px;
    height:34px;

    transform:translateX(-50%);

    border-radius:11px;
    border:1px solid rgba(91,92,246,.14);

    background:
      radial-gradient(circle at 50% 50%,
        #6264f7 0 3px,
        transparent 4px 8px,
        rgba(98,100,247,.22) 9px 10px,
        transparent 11px 15px),
      #f4f4ff;

    box-shadow:
      0 8px 20px rgba(91,92,246,.10);
  }


  /* Helpful secondary explanation */
  .app-shell .content:has(input[placeholder="Search endpoint, user or company"])
  tbody td[colspan="6"]:after{
    content:"Connected Asterisk PJSIP endpoints will appear here automatically.";

    display:block;
    margin-top:7px;

    font-size:10px;
    font-weight:500;
    line-height:1.45;

    color:#7a8296;
  }


  /* Zero results do not need pagination controls */
  .app-shell .content:has(input[placeholder="Search endpoint, user or company"])
  .panel:has(tbody td[colspan="6"])
  .pagination{
    display:none;
  }

}

