:root{
  --bg:#ccefff;
  --bg2:#eaf8ff;
  --panel:#ffffff;
  --panel-soft:#f8fcff;
  --primary:#12a8ee;
  --primary-dark:#0284c7;
  --primary-soft:#dff6ff;
  --orange:#ff9f1a;
  --orange-soft:#fff2df;
  --green:#20c997;
  --green-soft:#e8fff7;
  --red:#ef4444;
  --red-soft:#fff1f2;
  --yellow:#f59e0b;
  --yellow-soft:#fff7e6;
  --purple:#7c3aed;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --shadow:0 22px 55px rgba(2,132,199,.18);
  --shadow-soft:0 10px 28px rgba(15,23,42,.08);
  --radius:22px;
  --radius-sm:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;background:radial-gradient(circle at top left,#b9ecff 0,#daf6ff 34%,#f7fbff 100%);color:var(--ink);min-height:100vh}
a{text-decoration:none;color:inherit}.muted{color:var(--muted)}
.dashboard-shell{min-height:100vh;display:grid;grid-template-columns:96px minmax(0,1fr);padding:28px;gap:0}
.sidebar{background:linear-gradient(180deg,#0ea5e9,#0284c7);color:#fff;border-radius:22px 0 0 22px;min-height:calc(100vh - 56px);box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;padding:22px 14px;position:sticky;top:28px;z-index:40}
.brand-block{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:22px;text-align:center}.brand-mark{width:44px;height:44px;background:#fff;color:var(--primary);border-radius:16px;display:grid;place-items:center;font-weight:900;font-size:22px;box-shadow:0 10px 20px rgba(2,132,199,.22)}.brand-copy strong{display:block;font-size:12px;letter-spacing:.2px}.brand-copy span{display:block;font-size:10px;opacity:.85}
.side-nav{width:100%;display:flex;flex-direction:column;gap:8px;align-items:center}.nav-link{width:76px;min-height:62px;border-radius:18px;color:#eaf8ff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;transition:.18s ease;font-size:10px;text-align:center;position:relative;text-decoration:none}.nav-link:hover,.nav-link.active{background:#fff;color:var(--primary-dark);box-shadow:0 12px 25px rgba(3,105,161,.23);transform:translateX(4px)}.nav-link.active:after{content:"";position:absolute;right:-18px;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:10px solid #fff}.nav-icon{width:30px;height:30px;border:1.6px solid currentColor;border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.08);transition:.18s ease}.nav-link:hover .nav-icon,.nav-link.active .nav-icon{background:#f0f9ff;border-color:#38bdf8;box-shadow:inset 0 0 0 1px rgba(14,165,233,.12)}.nav-icon svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.nav-text{line-height:1.05;font-weight:700;letter-spacing:-.01em}.sidebar-profile{margin-top:auto;text-align:center;font-size:11px;display:flex;flex-direction:column;gap:8px;align-items:center}.sidebar-profile span{opacity:.8;display:block}.avatar{width:42px;height:42px;border-radius:999px;display:inline-grid;place-items:center;background:linear-gradient(135deg,#ffb347,#ff7a18);color:#fff;font-weight:800;box-shadow:0 10px 22px rgba(255,122,24,.25)}.avatar.small{width:32px;height:32px;font-size:13px;box-shadow:none}
.content-wrap{min-width:0;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.75);border-radius:0 22px 22px 0;box-shadow:var(--shadow);min-height:calc(100vh - 56px);overflow:hidden}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px;border-bottom:1px solid rgba(226,232,240,.72);background:rgba(255,255,255,.75)}.topbar-left{display:flex;align-items:center;gap:15px;min-width:0}.topbar h1{margin:0;font-size:28px;letter-spacing:-.04em}.topbar p{margin:4px 0 0;color:var(--muted);font-size:13px}.menu-toggle{display:none;border:0;background:var(--primary-soft);color:var(--primary-dark);width:42px;height:42px;border-radius:14px;font-size:19px;cursor:pointer}.topbar-actions{display:flex;align-items:center;gap:12px;min-width:0}.search-box{height:38px;width:230px;border:1px solid var(--line);background:#f8fafc;border-radius:999px;padding:0 14px;display:flex;align-items:center;gap:8px;color:var(--muted)}.search-box input{border:0;background:transparent;outline:none;width:100%;font-size:13px}.clock-card,.user-chip,.logout-btn{height:38px;border-radius:999px;border:1px solid var(--line);background:#fff;display:flex;align-items:center;gap:8px;padding:0 13px;color:var(--muted);font-size:13px}.logout-btn{color:#ef4444;font-weight:700}.main-content{padding:28px;display:flex;flex-direction:column;gap:22px}.section{margin-top:0}.page-card{background:var(--panel);border:1px solid rgba(226,232,240,.9);border-radius:var(--radius);box-shadow:var(--shadow-soft);padding:22px}.card{background:var(--panel);border:1px solid rgba(226,232,240,.9);border-radius:var(--radius);box-shadow:var(--shadow-soft);padding:20px}.card h2{margin:0 0 14px;font-size:18px;letter-spacing:-.02em}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.stat{position:relative;overflow:hidden;min-height:132px;display:flex;flex-direction:column;justify-content:space-between}.stat:after{content:"";position:absolute;right:-20px;top:-20px;width:98px;height:98px;border-radius:50%;background:rgba(14,165,233,.11)}.stat .label{font-size:13px;color:var(--muted);font-weight:700}.stat .value{font-size:38px;font-weight:900;letter-spacing:-.05em}.stat .hint{font-size:12px;color:var(--muted)}.stat.ok:after{background:rgba(32,201,151,.16)}.stat.danger:after{background:rgba(239,68,68,.13)}.stat.warn:after{background:rgba(245,158,11,.16)}.stat.blue{background:linear-gradient(135deg,#10aaf0,#148ee5);color:#fff}.stat.blue .label,.stat.blue .hint{color:rgba(255,255,255,.86)}
.hero-grid{display:grid;grid-template-columns:1.35fr .9fr .9fr;gap:18px}.hero-card{background:linear-gradient(135deg,#0ea5e9,#38bdf8);color:#fff;border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-soft);min-height:210px;position:relative;overflow:hidden}.hero-card:before{content:"";position:absolute;right:30px;top:30px;width:88px;height:88px;border-radius:50%;background:rgba(255,255,255,.25);box-shadow:60px 45px 0 rgba(255,255,255,.18),-45px 70px 0 rgba(255,255,255,.13)}.hero-card h2{font-size:31px;margin:0 0 8px;letter-spacing:-.04em}.hero-card p{margin:0;color:rgba(255,255,255,.88);max-width:440px}.hero-metrics{display:flex;gap:14px;margin-top:34px;flex-wrap:wrap}.metric-pill{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.27);border-radius:18px;padding:12px 15px;min-width:118px}.metric-pill strong{display:block;font-size:22px}.metric-pill span{font-size:12px;opacity:.88}.gauge-card{text-align:center}.gauge{--value:75;--color:var(--primary);width:154px;height:154px;border-radius:50%;background:conic-gradient(var(--color) calc(var(--value)*1%),#eaf1f6 0);margin:8px auto 13px;display:grid;place-items:center;position:relative}.gauge:before{content:"";position:absolute;width:116px;height:116px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}.gauge span{position:relative;font-size:30px;font-weight:900;color:var(--color)}.gauge small{position:relative;display:block;color:var(--muted)}.progress-list{display:flex;flex-direction:column;gap:13px}.progress-row{display:grid;grid-template-columns:120px minmax(0,1fr) 54px;gap:12px;align-items:center;font-size:13px}.progress-track{height:12px;border-radius:999px;background:#eef6fb;overflow:hidden}.progress-bar{height:100%;width:var(--w,0%);border-radius:999px;background:linear-gradient(90deg,var(--primary),#67e8f9)}.progress-bar.orange{background:linear-gradient(90deg,var(--orange),#ffc078)}.progress-bar.green{background:linear-gradient(90deg,var(--green),#7ee9c6)}.split{display:grid;grid-template-columns:1.4fr .9fr;gap:18px}.grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.input,select,textarea{min-height:42px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:0 14px;font:inherit;outline:none;color:var(--ink)}textarea{padding:13px;min-height:160px}.input:focus,select:focus,textarea:focus{border-color:#38bdf8;box-shadow:0 0 0 4px rgba(14,165,233,.12)}.btn{height:42px;border:0;border-radius:14px;padding:0 18px;background:linear-gradient(135deg,#0ea5e9,#0284c7);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 10px 20px rgba(14,165,233,.2)}.btn.secondary{background:#e0f2fe;color:#0369a1;box-shadow:none}.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}.table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:18px;background:#fff}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}th,td{padding:14px 16px;text-align:left;border-bottom:1px solid #eef2f7;white-space:nowrap}th{background:#f8fbff;color:#475569;font-size:12px;text-transform:uppercase;letter-spacing:.06em}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8fcff}.badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900;letter-spacing:.05em}.badge.ok{background:var(--green-soft);color:#059669}.badge.danger{background:var(--red-soft);color:#dc2626}.badge.warn{background:var(--yellow-soft);color:#b45309}.badge.neutral{background:#f1f5f9;color:#475569}.pre{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:18px;padding:18px;line-height:1.55;overflow:auto;max-height:520px}.empty-state{text-align:center;color:var(--muted);padding:34px}.empty-icon{width:58px;height:58px;border-radius:18px;background:#f1f5f9;margin:0 auto 12px;display:grid;place-items:center;font-weight:900;color:#94a3b8}.mini-list{display:flex;flex-direction:column;gap:12px}.mini-item{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fbfdff}.mini-item b{display:block;margin-bottom:4px}.login-body{display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#b9ecff,#f8fcff)}.login-shell{width:min(1080px,100%);display:grid;grid-template-columns:.92fr 1fr;background:rgba(255,255,255,.85);border:1px solid rgba(255,255,255,.8);border-radius:32px;box-shadow:var(--shadow);overflow:hidden}.login-card{padding:42px}.login-brand{display:flex;gap:14px;align-items:center;margin-bottom:38px}.login-logo{width:58px;height:58px;border-radius:20px;background:linear-gradient(135deg,#0ea5e9,#0284c7);color:#fff;display:grid;place-items:center;font-size:30px;font-weight:900}.login-brand h1,.login-copy h2{margin:0}.login-brand p,.login-copy p{margin:5px 0 0;color:var(--muted)}.login-form{display:flex;flex-direction:column;gap:11px;margin-top:22px}.login-form input{height:48px;border:1px solid var(--line);border-radius:15px;padding:0 14px;font:inherit}.login-form button{height:50px;border:0;border-radius:15px;background:linear-gradient(135deg,#0ea5e9,#0284c7);color:#fff;font-weight:900;margin-top:8px;cursor:pointer}.login-side{padding:42px;background:linear-gradient(135deg,#0ea5e9,#38bdf8);color:#fff;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-side:after{content:"";position:absolute;right:-90px;bottom:-90px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.18)}.login-side h2{font-size:34px;line-height:1.05;letter-spacing:-.04em;margin:18px 0 10px}.login-side p,.login-side li{color:rgba(255,255,255,.9)}.pill{align-self:flex-start;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:8px 12px;font-weight:800}.alert-box{border-radius:15px;padding:12px 14px;margin:16px 0;font-size:13px}.alert-box.success{background:var(--green-soft);color:#047857}.alert-box.danger{background:var(--red-soft);color:#b91c1c}.login-note{font-size:12px;color:var(--muted);margin-top:18px;line-height:1.6}
@media (max-width:1180px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-grid{grid-template-columns:1fr}.split,.grid.two,.grid.three{grid-template-columns:1fr}.topbar-actions .search-box{display:none}}
@media (max-width:860px){.dashboard-shell{display:block;padding:0}.sidebar{position:fixed;left:14px;top:14px;bottom:14px;transform:translateX(-125%);transition:.25s ease;border-radius:22px;min-height:auto}.sidebar.open{transform:translateX(0)}.content-wrap{border-radius:0;min-height:100vh}.topbar{height:auto;align-items:flex-start;flex-direction:column;padding:18px}.topbar-actions{width:100%;overflow:auto}.menu-toggle{display:grid;place-items:center}.main-content{padding:18px}.cards{grid-template-columns:1fr}.hero-card h2{font-size:26px}.login-shell{grid-template-columns:1fr}.login-side{display:none}}
@media (max-width:540px){.user-chip,.clock-card{display:none}.topbar h1{font-size:23px}.stat .value{font-size:32px}.card,.page-card{padding:16px}.toolbar{align-items:stretch}.toolbar .input,.toolbar select,.toolbar .btn{width:100%}.progress-row{grid-template-columns:1fr}.progress-row span:last-child{text-align:left}.dashboard-shell{background:#fff}}

/* Scroll khusus halaman PPPoE Users */
.user-table-scroll{
  max-height:calc(100vh - 360px);
  min-height:420px;
  overflow:auto;
  scroll-behavior:smooth;
}
.users-table{
  min-width:1180px;
}
.user-table-scroll thead th{
  position:sticky;
  top:0;
  z-index:5;
  box-shadow:0 1px 0 #e5edf6;
}
.user-table-scroll th:first-child,
.user-table-scroll td:first-child{
  position:sticky;
  left:0;
  z-index:4;
  background:#fff;
}
.user-table-scroll thead th:first-child{
  z-index:7;
  background:#f8fbff;
}
.user-table-scroll tbody tr:hover td:first-child{
  background:#f8fcff;
}
.user-table-scroll::-webkit-scrollbar{
  width:10px;
  height:10px;
}
.user-table-scroll::-webkit-scrollbar-track{
  background:#eef6fb;
  border-radius:999px;
}
.user-table-scroll::-webkit-scrollbar-thumb{
  background:#bae6fd;
  border-radius:999px;
  border:2px solid #eef6fb;
}
.user-table-scroll::-webkit-scrollbar-thumb:hover{
  background:#7dd3fc;
}
@media(max-width:900px){
  .user-table-scroll{
    max-height:calc(100vh - 300px);
    min-height:360px;
  }
  .users-table{min-width:980px;}
}


/* Account page */
.account-grid{align-items:start}.account-card,.account-info-card{min-height:420px}.account-form{display:flex;flex-direction:column;gap:15px;margin-top:18px}.form-row{display:flex;flex-direction:column;gap:7px}.form-row label{font-weight:800;color:#1e293b;font-size:13px}.form-row label span{color:#ef4444}.form-row small{font-size:12px;color:var(--muted)}.form-divider{height:1px;background:linear-gradient(90deg,transparent,#dbeafe,transparent);margin:4px 0}.form-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px}.profile-panel{display:flex;align-items:center;gap:15px;padding:16px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,#f8fcff,#eef9ff);margin-bottom:16px}.profile-panel h3{margin:0 0 4px;font-size:20px}.profile-panel p{margin:0;color:var(--muted);font-weight:800;text-transform:uppercase;font-size:12px}.profile-avatar{width:58px;height:58px;font-size:22px}.mt-20{margin-top:20px!important}.compact-table{max-height:310px}.compact-table th,.compact-table td{padding:11px 12px;font-size:12px}@media (max-width:860px){.account-grid{grid-template-columns:1fr}.form-actions .btn{width:100%;text-align:center;display:inline-flex;align-items:center;justify-content:center}}

/* Icon sidebar polish */
@media (max-width: 760px){.nav-link{width:64px;min-height:56px}.nav-icon{width:28px;height:28px}.nav-icon svg{width:17px;height:17px}}
