:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #e5eaf2;
  --primary: #315efb;
  --primary-dark: #2247d8;
  --danger: #d92d20;
  --success: #067647;
  --warning: #b54708;
  --sidebar: #101828;
  --shadow: 0 12px 35px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
code, pre, textarea { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { background: var(--sidebar); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand strong, .brand span { display: block; }
.brand span { color: #98a2b3; font-size: 12px; margin-top: 3px; }
.brand-mark { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-weight: 800; letter-spacing: -.03em; color: white; background: linear-gradient(135deg,#4f7cff,#7f56d9); box-shadow: 0 12px 30px rgba(79,124,255,.35); }
.brand-mark.small { width: 40px; height: 40px; border-radius: 13px; }
.sidebar nav { display: grid; gap: 7px; margin-top: 22px; }
.nav-item { border: 0; border-radius: 10px; background: transparent; color: #d0d5dd; text-align: left; padding: 11px 13px; transition: .16s ease; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.11); }
.sidebar-footer { margin-top: auto; display: grid; gap: 10px; color: #98a2b3; font-size: 12px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }
.content { min-width: 0; padding: 28px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h1, h2 { margin: 0; letter-spacing: -.025em; }
h1 { font-size: 28px; }
h2 { font-size: 18px; }
p { line-height: 1.55; }
.muted { color: var(--muted); margin: 5px 0 0; }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.metric span, .metric small { display: block; color: var(--muted); }
.metric strong { display: block; font-size: 23px; margin: 10px 0 5px; overflow-wrap: anywhere; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.architecture { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.architecture div { border: 1px solid var(--border); border-radius: 10px; padding: 12px 15px; background: #f8faff; font-weight: 650; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.form-grid.compact { grid-template-columns: 160px 160px auto; align-items: end; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 650; color: #344054; }
input, textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; color: var(--text); padding: 10px 12px; outline: none; transition: .15s; }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(49,94,251,.12); }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 9px; align-self: end; padding-bottom: 9px; }
.check input { width: auto; }
.form-action { padding-bottom: 1px; }
.btn { border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; color: #344054; padding: 9px 14px; font-weight: 700; transition: .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 17px rgba(16,24,40,.09); }
.btn.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.btn.ghost { color: #d0d5dd; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.btn.full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.button-row input { max-width: 220px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 760px; }
th, td { text-align: left; padding: 12px 13px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 13px; }
th { background: #f8faff; color: #475467; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.empty { text-align: center; color: var(--muted); padding: 28px; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; }
.badge.success { color: var(--success); background: #ecfdf3; }
.badge.failed { color: var(--danger); background: #fef3f2; }
.badge.warning { color: var(--warning); background: #fffaeb; }
.badge.info { color: #175cd3; background: #eff8ff; }
pre { border-radius: 12px; background: #101828; color: #e4e7ec; padding: 16px; overflow: auto; max-height: 430px; white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.55; }
details { margin-top: 16px; }
summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.toast { position: fixed; z-index: 50; right: 22px; top: 22px; max-width: 430px; padding: 13px 16px; border-radius: 11px; color: white; background: #344054; box-shadow: var(--shadow); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.hidden { display: none !important; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at top left,#dfe8ff,transparent 40%), var(--bg); }
.login-card { width: min(420px,100%); background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.login-card .brand-mark { margin-bottom: 22px; }
.login-card h1 { margin-bottom: 7px; }
.stack { display: grid; gap: 15px; margin-top: 24px; }
.alert { padding: 11px 13px; border-radius: 9px; margin-top: 18px; }
.alert.error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; }
  .sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sidebar-footer { margin-top: 20px; }
  .content { padding: 18px 12px; }
  .topbar, .section-head { align-items: stretch; flex-direction: column; }
  .cards, .form-grid, .form-grid.compact { grid-template-columns: 1fr; }
}

.nav-link {
  display: block;
  text-decoration: none;
}

select {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49,94,251,.12);
}

.alert.success {
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.user-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fafbff;
}

.user-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.user-card-head strong,
.user-card-head span {
  display: block;
}

.user-card-head span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

@media (max-width: 900px) {
  .user-grid {
    grid-template-columns: 1fr;
  }
}

/* SMARTOLT MODERN PRO START */
:root {
  --pro-bg: #f3f6fb;
  --pro-surface: #ffffff;
  --pro-border: #e5e9f2;
  --pro-text: #101828;
  --pro-muted: #667085;
  --pro-primary: #4f46e5;
  --pro-primary-2: #6d5dfc;
  --pro-sidebar: #0b1220;
  --pro-shadow: 0 18px 46px rgba(16,24,40,.08);
  --pro-shadow-soft: 0 8px 24px rgba(16,24,40,.06);
}

body.smartolt-app {
  background:
    radial-gradient(circle at 80% 0%, rgba(79,70,229,.08), transparent 24%),
    var(--pro-bg);
  color: var(--pro-text);
}

.pro-shell { grid-template-columns: 286px minmax(0,1fr); }

.pro-sidebar {
  background:
    radial-gradient(circle at 30% 0%, rgba(109,93,252,.22), transparent 26%),
    linear-gradient(180deg,#0d1526 0%,#08101d 100%);
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,.05);
}

.pro-brand {
  padding: 4px 6px 20px;
  gap: 12px;
  border-bottom-color: rgba(255,255,255,.08);
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg,#6d5dfc,#3b82f6);
  box-shadow: 0 12px 30px rgba(79,70,229,.35);
}

.brand-logo svg,
.nav-icon svg,
.metric-icon svg,
.service-icon svg,
.quick-icon svg,
.page-icon svg,
.node-icon svg,
.icon-button svg,
.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy { min-width: 0; flex: 1; }
.brand-copy strong { color: #fff; font-size: 16px; }
.brand-copy span { display:block; margin-top:3px; color:#8f9bb3; font-size:11px; }

.product-chip {
  padding: 4px 7px;
  border: 1px solid rgba(139,124,255,.35);
  border-radius: 999px;
  background: rgba(109,93,252,.12);
  color: #b8b0ff;
  font-size: 9px;
  font-weight: 800;
}

.sidebar-context { padding:18px 6px 4px; }
.context-label,.nav-section-label {
  display:block;
  color:#667085;
  font-size:9px;
  font-weight:800;
  letter-spacing:.14em;
}

.olt-context-card {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  background:rgba(255,255,255,.04);
}

.olt-context-card strong,.olt-context-card small { display:block; }
.olt-context-card strong { color:#f8fafc; font-size:12px; }
.olt-context-card small { margin-top:2px; color:#7e8aa3; font-size:10px; }

.live-dot {
  width:8px;
  height:8px;
  flex:0 0 auto;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.12);
}

.pro-nav { margin-top:17px; gap:4px; }
.pro-nav .nav-section-label { margin:15px 10px 7px; }

.pro-nav .nav-item {
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  padding:10px 11px;
  border:1px solid transparent;
  color:#9ba7bd;
  font-size:12px;
  font-weight:650;
}

.pro-nav .nav-item:hover {
  background:rgba(255,255,255,.05);
  color:#f8fafc;
}

.pro-nav .nav-item.active {
  border-color:rgba(125,110,255,.2);
  background:linear-gradient(90deg,rgba(109,93,252,.22),rgba(59,130,246,.08));
  color:#fff;
  box-shadow:inset 3px 0 0 #7c6cff;
}

.nav-icon {
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:9px;
  background:rgba(255,255,255,.05);
}

.nav-link { text-decoration:none; }

.pro-sidebar-footer {
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 34px;
  align-items:center;
  gap:10px;
  padding:16px 6px 2px;
}

.user-avatar {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:white;
  background:linear-gradient(135deg,#334155,#64748b);
  font-weight:800;
}

.user-meta strong,.user-meta span {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.user-meta strong { color:#f8fafc; font-size:11px; }
.user-meta span { margin-top:3px; color:#7e8aa3; font-size:10px; text-transform:capitalize; }

.icon-button {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(255,255,255,.04);
  color:#94a3b8;
}

.pro-content { padding:30px 32px 42px; }
.pro-topbar { margin-bottom:24px; }

.topbar-heading .eyebrow,.panel-kicker {
  display:block;
  margin-bottom:7px;
  color:var(--pro-primary);
  font-size:10px;
  font-weight:850;
  letter-spacing:.13em;
}

.topbar-heading h1 { font-size:30px; letter-spacing:-.035em; }
.topbar-heading p { margin:6px 0 0; color:var(--pro-muted); font-size:13px; }

.topbar-actions { display:flex; align-items:center; gap:10px; }

.system-pill {
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 12px;
  border:1px solid var(--pro-border);
  border-radius:11px;
  background:rgba(255,255,255,.85);
  box-shadow:var(--pro-shadow-soft);
  font-size:11px;
  font-weight:700;
}

.btn-refresh { display:inline-flex; align-items:center; gap:8px; }

.hero-card {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  min-height:290px;
  margin-bottom:18px;
  overflow:hidden;
  border:1px solid rgba(109,93,252,.2);
  border-radius:22px;
  background:
    radial-gradient(circle at 85% 20%,rgba(56,189,248,.2),transparent 22%),
    radial-gradient(circle at 60% 100%,rgba(124,58,237,.24),transparent 30%),
    linear-gradient(135deg,#111a31 0%,#18234a 52%,#1d2f66 100%);
  color:white;
  box-shadow:0 24px 60px rgba(30,41,100,.2);
}

.hero-content { position:relative; z-index:2; padding:36px 38px; }
.hero-badge {
  display:inline-flex;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#b8c7ff;
  font-size:9px;
  font-weight:800;
}

.hero-content h2 {
  max-width:630px;
  margin-top:18px;
  color:white;
  font-size:clamp(25px,3vw,38px);
  line-height:1.12;
  letter-spacing:-.045em;
}

.hero-content p {
  max-width:600px;
  margin:15px 0 0;
  color:#b5c0da;
  font-size:13px;
  line-height:1.7;
}

.hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.hero-primary { background:linear-gradient(135deg,#6d5dfc,#4f46e5); }
.hero-secondary { border-color:rgba(255,255,255,.14); background:rgba(255,255,255,.08); color:white; }

.hero-visual { position:relative; min-height:290px; }
.orbit { position:absolute; border:1px solid rgba(255,255,255,.11); border-radius:50%; }
.orbit-one { width:260px; height:260px; top:15px; right:20px; }
.orbit-two { width:180px; height:180px; top:55px; right:60px; }

.olt-device {
  position:absolute;
  z-index:2;
  top:50%;
  right:52px;
  width:210px;
  transform:translateY(-50%) perspective(700px) rotateY(-10deg) rotateX(4deg);
  padding:24px 22px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.05));
  box-shadow:0 28px 55px rgba(0,0,0,.25);
}

.device-lights { display:flex; gap:6px; margin-bottom:24px; }
.device-lights span { width:7px; height:7px; border-radius:999px; background:#22c55e; }
.device-lights span:nth-child(3) { background:#38bdf8; }
.olt-device strong,.olt-device small { display:block; }
.olt-device strong { font-size:34px; }
.olt-device small { margin-top:6px; color:#b8c7e8; font-size:9px; }

.metrics-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.metric-card {
  position:relative;
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:13px;
  min-height:126px;
  padding:18px;
  overflow:hidden;
  border:1px solid var(--pro-border);
  border-radius:17px;
  background:rgba(255,255,255,.92);
  box-shadow:var(--pro-shadow-soft);
}

.metric-icon {
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:13px;
}

.metric-blue { color:#2563eb; }
.metric-purple { color:#7c3aed; }
.metric-cyan { color:#0891b2; }
.metric-slate { color:#475569; }
.metric-blue .metric-icon { background:#eff6ff; }
.metric-purple .metric-icon { background:#f5f3ff; }
.metric-cyan .metric-icon { background:#ecfeff; }
.metric-slate .metric-icon { background:#f1f5f9; }

.metric-label { display:block; color:var(--pro-muted); font-size:9px; font-weight:850; }
.metric-body strong {
  display:block;
  margin-top:9px;
  overflow:hidden;
  color:var(--pro-text);
  font-size:18px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.metric-body small { display:block; margin-top:4px; color:var(--pro-muted); font-size:10px; }

.metric-status {
  position:absolute;
  right:12px;
  top:12px;
  padding:4px 6px;
  border-radius:999px;
  font-size:8px;
  font-weight:850;
}
.metric-status.success { color:#15803d; background:#dcfce7; }
.metric-status.info { color:#6d28d9; background:#ede9fe; }
.metric-status.neutral { color:#475569; background:#e2e8f0; }

.dashboard-grid {
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  margin-bottom:18px;
}

.panel-card {
  border:1px solid var(--pro-border);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--pro-shadow);
}

.service-health-panel,.quick-actions-panel,.architecture-panel,.page-card { padding:22px; }

.panel-header,.page-card-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.panel-header h2,.page-card-header h2 { font-size:18px; }
.panel-status { display:flex; align-items:center; gap:8px; color:#166534; font-size:10px; }

.service-list { display:grid; gap:10px; }
.service-row {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid #eef1f6;
  border-radius:13px;
  background:#fbfcfe;
}

.service-icon,.quick-icon,.page-icon,.node-icon {
  display:grid;
  place-items:center;
  border-radius:12px;
}

.service-icon { width:40px; height:40px; }
.service-icon.blue,.quick-icon.blue,.page-icon.blue { color:#2563eb; background:#eff6ff; }
.service-icon.purple,.quick-icon.purple,.page-icon.purple { color:#7c3aed; background:#f5f3ff; }
.service-icon.cyan,.quick-icon.cyan,.page-icon.cyan { color:#0891b2; background:#ecfeff; }
.quick-icon.slate,.page-icon.slate { color:#475569; background:#f1f5f9; }
.page-icon.orange { color:#ea580c; background:#fff7ed; }
.page-icon.green { color:#16a34a; background:#f0fdf4; }

.service-copy strong,.service-copy span { display:block; }
.service-copy strong { font-size:12px; }
.service-copy span { margin-top:4px; color:var(--pro-muted); font-size:10px; }

.service-state {
  padding:5px 7px;
  border-radius:999px;
  font-size:8px;
  font-weight:850;
}
.service-state.online { color:#15803d; background:#dcfce7; }
.service-state.checking { color:#7c3aed; background:#ede9fe; }

.quick-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.quick-action {
  display:flex;
  align-items:center;
  gap:11px;
  min-height:82px;
  padding:12px;
  border:1px solid #e9edf4;
  border-radius:13px;
  background:#fbfcfe;
  text-align:left;
}
.quick-action:hover { transform:translateY(-2px); box-shadow:var(--pro-shadow-soft); }
.quick-icon { width:38px; height:38px; flex:0 0 auto; }
.quick-action strong,.quick-action small { display:block; }
.quick-action strong { font-size:11px; }
.quick-action small { margin-top:4px; color:var(--pro-muted); font-size:9px; }

.pro-architecture {
  display:grid;
  grid-template-columns:repeat(7,auto);
  justify-content:center;
  align-items:center;
  gap:12px;
}

.architecture-node {
  min-width:145px;
  padding:16px 14px;
  border:1px solid #e7ebf3;
  border-radius:14px;
  background:#fafbfe;
  text-align:center;
}

.architecture-node.highlighted { border-color:#c7d2fe; background:linear-gradient(180deg,#eef2ff,#fff); }
.node-icon { width:38px; height:38px; margin:0 auto 10px; color:var(--pro-primary); background:#eef2ff; }
.architecture-node strong,.architecture-node small { display:block; }
.architecture-node strong { font-size:11px; }
.architecture-node small { margin-top:4px; color:var(--pro-muted); font-size:9px; }
.flow-arrow { color:#98a2b3; font-size:18px; }

.page-card { min-height:calc(100vh - 150px); }
.page-card-header { padding-bottom:18px; border-bottom:1px solid #edf0f5; }
.page-heading-group { display:flex; align-items:flex-start; gap:13px; }
.page-card-header .page-icon { width:48px; height:48px; flex:0 0 auto; }
.page-card-header p { margin:6px 0 0; color:var(--pro-muted); font-size:11px; }
.page-card-header.with-action { align-items:center; }

.modern-form {
  padding:18px;
  border:1px solid #edf0f5;
  border-radius:15px;
  background:#fafbfe;
}

.modern-form label > span { font-size:10px; font-weight:750; }
.modern-form input,.terminal-input,.provision-action-bar input {
  min-height:42px;
  border-color:#dce2ec;
  background:white;
  font-size:11px;
}

.password-field {
  position:relative;
}

.password-field input {
  padding-right:96px;
}

.password-toggle {
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);
  min-width:70px;
  padding:6px 9px;
  border:1px solid #dce2ec;
  border-radius:8px;
  background:#f7f9fc;
  color:#344054;
  font-size:9px;
  font-weight:800;
}

.password-toggle:hover {
  border-color:#b8c3d6;
  background:#eef2f7;
}

.provision-modal {
  position:fixed;
  z-index:1000;
  inset:0;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(8,15,30,.72);
  backdrop-filter:blur(5px);
}

.provision-modal-card {
  width:min(760px,100%);
  max-height:calc(100vh - 48px);
  overflow:auto;
  padding:24px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  background:#fff;
  box-shadow:0 30px 80px rgba(0,0,0,.32);
}

.provision-modal-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding-bottom:18px;
  border-bottom:1px solid #e7ebf2;
}

.provision-modal-header p {
  margin:6px 0 0;
  color:var(--pro-muted);
  font-size:11px;
}

.provision-progress-badge {
  flex:0 0 auto;
  padding:7px 10px;
  border-radius:999px;
  font-size:9px;
  font-weight:900;
}

.provision-progress-badge.running { color:#1d4ed8; background:#dbeafe; }
.provision-progress-badge.success { color:#067647; background:#dcfae6; }
.provision-progress-badge.warning { color:#b54708; background:#fffaeb; }
.provision-progress-badge.failed { color:#b42318; background:#fee4e2; }

.provision-progress-steps {
  display:grid;
  gap:10px;
  margin:20px 0;
  padding:0;
  list-style:none;
}

.provision-progress-steps li {
  display:grid;
  grid-template-columns:14px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:11px 13px;
  border:1px solid #e7ebf2;
  border-radius:11px;
  background:#fafbfe;
  color:#475467;
  font-size:10px;
}

.provision-progress-steps li strong { font-size:9px; }
.provision-step-dot { width:10px; height:10px; border-radius:999px; background:#cbd5e1; }
.provision-progress-steps li.running .provision-step-dot { background:#2563eb; box-shadow:0 0 0 5px rgba(37,99,235,.12); animation:provisionPulse 1.2s infinite; }
.provision-progress-steps li.success .provision-step-dot { background:#12b76a; }
.provision-progress-steps li.warning .provision-step-dot { background:#f79009; }
.provision-progress-steps li.failed .provision-step-dot { background:#f04438; }

.provision-progress-output {
  min-height:150px;
  max-height:300px;
  margin:0;
  font-size:9px;
}

.provision-modal-actions {
  display:flex;
  justify-content:flex-end;
  margin-top:18px;
}

.change-onu-notice {
  margin:18px 0;
  padding:13px 15px;
  border:1px solid #bae6fd;
  border-radius:12px;
  background:#f0f9ff;
  color:#075985;
  font-size:10px;
  font-weight:650;
  line-height:1.6;
}

.change-onu-toolbar {
  display:grid;
  grid-template-columns:auto auto minmax(260px,1fr);
  align-items:end;
  gap:10px;
  margin-top:16px;
}

.change-candidate-label {
  min-width:0;
}

.change-candidate-label span {
  font-size:10px;
  font-weight:750;
}

.change-candidate-label select {
  min-height:42px;
  border-color:#dce2ec;
  background:#fff;
  font-size:10px;
}

.change-onu-actions {
  margin-top:18px;
}

#changeOnuForm input[readonly] {
  background:#eef2f7;
  color:#667085;
}

@media (max-width:900px) {
  .change-onu-toolbar {
    grid-template-columns:1fr;
  }

  .change-onu-toolbar .btn {
    width:100%;
  }
}

@keyframes provisionPulse {
  0%,100% { opacity:1; }
  50% { opacity:.45; }
}

.modern-check {
  min-height:42px;
  justify-content:flex-start;
  padding:10px 12px;
  border:1px solid #e1e6ef;
  border-radius:10px;
  background:white;
}

.modern-table { margin-top:18px; border-color:#e7ebf2; border-radius:14px; }
.modern-table th { padding:13px 14px; background:#f7f9fc; font-size:9px; }
.modern-table td { padding:13px 14px; font-size:10px; }

.raw-output {
  margin-top:18px;
  padding:13px 15px;
  border:1px solid #e7ebf2;
  border-radius:12px;
  background:#fafbfe;
}

.provision-action-bar {
  display:grid;
  grid-template-columns:auto minmax(180px,240px) auto;
  justify-content:end;
  gap:10px;
  margin-top:16px;
}

.terminal-window {
  margin-top:18px;
  overflow:hidden;
  border:1px solid #202a3b;
  border-radius:15px;
  background:#0b1220;
  box-shadow:0 20px 44px rgba(15,23,42,.18);
}

.terminal-titlebar {
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 13px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:#111a2a;
}

.terminal-titlebar span { width:8px; height:8px; border-radius:999px; background:#ef4444; }
.terminal-titlebar span:nth-child(2) { background:#f59e0b; }
.terminal-titlebar span:nth-child(3) { background:#22c55e; }
.terminal-titlebar strong { margin-left:5px; color:#94a3b8; font-size:9px; }

.terminal-window pre {
  margin:0;
  min-height:160px;
  max-height:420px;
  border-radius:0;
  background:transparent;
  color:#d7e0ee;
  box-shadow:none;
  font-size:10px;
}

.compact-terminal pre { min-height:100px; }
.terminal-input {
  min-height:170px;
  padding:16px;
  border:1px solid #202a3b;
  border-radius:14px;
  background:#0b1220;
  color:#d7e0ee;
  line-height:1.6;
}

.confirm-check { margin-top:13px; max-width:520px; }

@media (max-width:1280px) {
  .metrics-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns:1fr; }
  .pro-architecture { grid-template-columns:1fr; }
  .flow-arrow { transform:rotate(90deg); }
}

@media (max-width:900px) {
  .pro-shell { display:block; }
  .pro-sidebar { position:static; width:100%; height:auto; }
  .pro-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nav-section-label,.sidebar-context { display:none; }
  .pro-sidebar-footer { margin-top:16px; }
  .pro-content { padding:20px 14px 32px; }
  .hero-card { grid-template-columns:1fr; }
  .hero-visual { display:none; }
}

@media (max-width:620px) {
  .metrics-grid,.quick-action-grid,.form-grid,.form-grid.compact { grid-template-columns:1fr; }
  .hero-content { padding:28px 22px; }
  .provision-action-bar { grid-template-columns:1fr; }
}
/* SMARTOLT MODERN PRO END */

/* SMARTOLT API CENTER START */
.page-icon.api {
  color: #4f46e5;
  background: #eef2ff;
}

.api-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.api-health-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 12px;
  min-height: 102px;
  padding: 15px;
  border: 1px solid #e7ebf2;
  border-radius: 15px;
  background: linear-gradient(180deg, #fff, #fafbfe);
}

.api-health-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
}

.api-health-icon.web {
  color: #1d4ed8;
  background: #dbeafe;
}

.api-health-icon.database {
  color: #7e22ce;
  background: #f3e8ff;
}

.api-health-icon.snmp {
  color: #0e7490;
  background: #cffafe;
}

.api-health-icon.olt {
  color: #c2410c;
  background: #ffedd5;
}

.api-health-card small,
.api-health-card strong,
.api-health-card span {
  display: block;
}

.api-health-card small {
  color: #667085;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .09em;
}

.api-health-card strong {
  margin-top: 7px;
  color: #101828;
  font-size: 15px;
}

.api-health-card div > span {
  margin-top: 4px;
  overflow: hidden;
  color: #667085;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.api-live-dot.checking {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}

.api-live-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.api-live-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .12);
}

.api-toolbar {
  display: grid;
  grid-template-columns: 110px 110px minmax(220px, 1fr) 105px 105px;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: #f8fafc;
}

.api-toolbar label {
  color: #344054;
  font-size: 9px;
  font-weight: 750;
}

.api-toolbar input {
  min-height: 40px;
  margin-top: 6px;
  border-color: #dce2ec;
  background: white;
  font-size: 10px;
}

.api-stat {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #e1e6ef;
  border-radius: 10px;
  background: white;
}

.api-stat small,
.api-stat strong {
  display: block;
}

.api-stat small {
  color: #667085;
  font-size: 8px;
}

.api-stat strong {
  margin-top: 2px;
  color: #101828;
  font-size: 15px;
}

.api-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .65fr);
  gap: 16px;
  margin-top: 16px;
}

.api-endpoint-panel,
.api-response-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e7ebf2;
  border-radius: 15px;
  background: #fff;
}

.api-response-panel {
  position: sticky;
  top: 18px;
  align-self: start;
}

.api-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.api-panel-title h3 {
  color: #101828;
  font-size: 14px;
}

.api-updated-time {
  color: #667085;
  font-size: 8px;
}

.api-table-wrap {
  max-height: 670px;
  overflow: auto;
}

.api-table {
  min-width: 1050px;
}

.api-method {
  display: inline-flex;
  min-width: 45px;
  justify-content: center;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 900;
}

.api-method.get {
  color: #166534;
  background: #dcfce7;
}

.api-method.post {
  color: #1d4ed8;
  background: #dbeafe;
}

.api-endpoint-name,
.api-path,
.api-group {
  display: block;
}

.api-endpoint-name {
  color: #101828;
  font-size: 10px;
}

.api-path {
  margin-top: 5px;
  color: #4f46e5;
  font-size: 9px;
  white-space: normal;
  word-break: break-all;
}

.api-group {
  margin-top: 5px;
  color: #98a2b3;
  font-size: 8px;
}

.api-data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.api-data-tags span {
  padding: 3px 6px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #f9fafb;
  color: #475467;
  font-size: 7px;
}

.api-risk {
  display: inline-flex;
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
}

.api-risk.safe {
  color: #166534;
  background: #dcfce7;
}

.api-risk.read {
  color: #0369a1;
  background: #e0f2fe;
}

.api-risk.manual {
  color: #7c2d12;
  background: #ffedd5;
}

.api-risk.write {
  color: #9f1239;
  background: #ffe4e6;
}

.api-risk.critical {
  color: #fff;
  background: #dc2626;
}

.api-test-cell {
  display: grid;
  gap: 6px;
}

.api-test-button {
  min-height: 30px;
  padding: 6px 10px;
}

.api-doc-only {
  color: #667085;
  font-size: 8px;
  font-weight: 700;
}

.api-endpoint-status {
  font-size: 8px;
}

.api-endpoint-status.idle {
  color: #98a2b3;
}

.api-endpoint-status.online {
  color: #15803d;
}

.api-endpoint-status.offline {
  color: #dc2626;
}

.api-response-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 29px;
  color: #667085;
  font-size: 8px;
}

.api-response-meta > span {
  padding: 4px 6px;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #f9fafb;
}

.api-http-status.success {
  color: #166534;
  background: #dcfce7;
}

.api-http-status.failed {
  color: #991b1b;
  background: #fee2e2;
}

.api-terminal-window {
  margin-top: 10px;
}

.api-terminal-window pre {
  min-height: 470px;
  max-height: 570px;
  font-size: 9px;
  white-space: pre-wrap;
  word-break: break-word;
}

.api-copy-button {
  min-height: 30px;
  padding: 6px 10px;
}

.api-security-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 9px;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .api-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-layout {
    grid-template-columns: 1fr;
  }

  .api-response-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .api-header-actions {
    width: 100%;
    flex-direction: column;
  }

  .api-header-actions .btn {
    width: 100%;
  }

  .api-summary-grid,
  .api-toolbar {
    grid-template-columns: 1fr;
  }
}
/* SMARTOLT API CENTER END */

/* SMARTOLT_MONITOR_ALL_STYLE_V1 */
.monitor-all-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px;
  gap: 16px;
  margin: 18px 0;
}

.monitor-all-toolbar label {
  display: grid;
  gap: 7px;
}

.monitor-all-toolbar span {
  font-size: 12px;
  font-weight: 700;
}

.monitor-all-toolbar input,
.monitor-all-toolbar select {
  width: 100%;
}

.monitor-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.monitor-stat {
  border: 1px solid var(--border, #dfe5ef);
  border-radius: 14px;
  padding: 15px 16px;
  background: var(--surface, #fff);
}

.monitor-stat span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted, #64748b);
}

.monitor-stat strong {
  font-size: 24px;
}

.monitor-all-progress {
  margin-bottom: 14px;
  border-radius: 10px;
  padding: 11px 13px;
  background: #f5f8ff;
  color: #334155;
  font-size: 13px;
}

.monitor-all-progress.is-loading {
  background: #eef4ff;
  color: #2457e6;
}

.monitor-all-table-wrap {
  max-height: 62vh;
  overflow: auto;
}

.monitor-all-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface, #fff);
}

.monitor-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
}

.monitor-status-online {
  background: #dcfce7;
  color: #166534;
}

.monitor-status-offline {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 900px) {
  .monitor-all-toolbar {
    grid-template-columns: 1fr;
  }

  .monitor-summary {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}


/* SMARTOLT_C320_MONITOR_STYLE_V2 */
.c320-monitor-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.c320-stat {
  padding: 14px 16px;
  border: 1px solid var(--border, #dfe5ef);
  border-radius: 14px;
  background: var(--surface, #fff);
}

.c320-stat span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted, #64748b);
  font-size: 12px;
  font-weight: 700;
}

.c320-stat strong {
  font-size: 25px;
}

.c320-monitor-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 170px;
  gap: 14px;
  margin-bottom: 14px;
}

.c320-monitor-tools label {
  display: grid;
  gap: 6px;
}

.c320-monitor-tools label > span {
  font-size: 12px;
  font-weight: 700;
}

.c320-monitor-tools input,
.c320-monitor-tools select {
  width: 100%;
}

.c320-monitor-info {
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f5f8ff;
  color: #334155;
  font-size: 13px;
}

.c320-monitor-info.is-loading {
  background: #eef4ff;
  color: #2457e6;
}

.c320-monitor-table-wrap {
  max-height: 65vh;
  overflow: auto;
}

.c320-monitor-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface, #fff);
}

.c320-monitor-table-wrap td small {
  display: block;
  margin-top: 3px;
  color: var(--muted, #64748b);
}

.c320-status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.c320-status-online {
  background: #dcfce7;
  color: #166534;
}

.c320-status-offline {
  background: #fee2e2;
  color: #991b1b;
}

.c320-status-warning {
  background: #fef3c7;
  color: #92400e;
}

.c320-status-neutral {
  background: #e2e8f0;
  color: #334155;
}

@media (max-width: 1000px) {
  .c320-monitor-summary {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .c320-monitor-tools {
    grid-template-columns: 1fr;
  }
}

/* ANTERO BRANDING & OPERATIONS DASHBOARD */
.brand-logo {
  width: 54px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 5px;
}

.pro-brand .brand-copy { min-width: 0; }
.pro-brand .brand-copy strong { font-size: 13px; white-space: nowrap; }
.pro-brand .brand-copy span { font-size: 9px; letter-spacing: .02em; }

.hero-live-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 18px;
  margin-top: 18px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
}

.hero-live-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 700;
}

.hero-brand-logo {
  width: 112px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 12px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.94);
}

.metric-card {
  overflow: hidden;
  isolation: isolate;
}

.metric-card::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  right: -34px;
  bottom: -42px;
  border-radius: 50%;
  background: currentColor;
  opacity: .045;
  z-index: -1;
}

.metric-body strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}

.metric-status.danger {
  color: #b42318;
  background: #fff1f0;
}

.dashboard-pon-panel {
  margin-top: 18px;
  padding: 22px;
}

.dashboard-table-header p {
  margin: 5px 0 0;
  color: var(--pro-muted);
  font-size: 12px;
}

.dashboard-attention {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 650;
}

.dashboard-attention.loading { color: #344054; background: #f8fafc; border-color: #e4e7ec; }
.dashboard-attention.success { color: #067647; background: #ecfdf3; border-color: #abefc6; }
.dashboard-attention.warning { color: #b54708; background: #fffaeb; border-color: #fedf89; }
.dashboard-attention.error { color: #b42318; background: #fef3f2; border-color: #fecdca; }

.dashboard-pon-table { max-height: 360px; overflow: auto; }
.dashboard-pon-table td { vertical-align: middle; }
.dashboard-pon-table td:nth-child(n+2) { font-variant-numeric: tabular-nums; }

.health-meter {
  display: inline-block;
  width: 84px;
  height: 6px;
  margin-right: 8px;
  overflow: hidden;
  vertical-align: middle;
  border-radius: 999px;
  background: #e9edf5;
}

.health-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#22c55e,#14b8a6);
}

.branding-settings-card {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 22px;
  align-items: center;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--pro-border);
  border-radius: 16px;
  background: linear-gradient(135deg,#f8faff,#f5f3ff);
}

.branding-preview {
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
}

.branding-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.branding-settings-copy h3 { margin: 4px 0 6px; }
.branding-settings-copy p { margin: 0 0 14px; color: var(--pro-muted); font-size: 12px; }
.branding-upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.branding-upload-row input[type='file'] {
  max-width: 280px;
  padding: 8px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  background: #fff;
  font-size: 11px;
}
.branding-status { margin-top: 12px; color: #475467; font-size: 11px; }

@media (max-width: 760px) {
  .branding-settings-card { grid-template-columns: 1fr; }
  .branding-preview { height: 110px; }
  .dashboard-table-header { align-items: flex-start; gap: 12px; }
  .dashboard-table-header .btn { width: 100%; }
}

/* Compact PNG brand mark in the sidebar; SVG wordmark stays in the hero card. */
.pro-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pro-brand .brand-logo {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

.pro-brand .brand-logo img {
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
  object-position: center;
}

.pro-brand .brand-copy { display: block; flex: 1; }
.pro-brand .product-chip { position: static; margin-left: auto; }

.hero-brand-logo {
  width: 154px;
  height: 58px;
  padding: 0;
  object-fit: cover;
  object-position: 50% 50%;
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}

/* Live analytics refinement */
.operation-clock {
  min-width: 118px;
  padding-right: 14px;
  text-align: right;
  border-right: 1px solid #e4e7ec;
}
.operation-clock strong { display: block; color: #101828; font-size: 15px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.operation-clock span { display: block; margin-top: 2px; color: #667085; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

.legacy-architecture-panel { display: none; }

.network-intelligence-panel {
  margin-top: 18px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%,rgba(79,70,229,.08),transparent 30%),
    rgba(255,255,255,.96);
}

.analytics-subtitle { margin: 5px 0 0; color: #667085; font-size: 12px; }
.analytics-live { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #dfe4ee; border-radius: 999px; color: #475467; background: #fff; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }

.network-intelligence-grid {
  display: grid;
  grid-template-columns: .88fr 1.08fr 1.35fr;
  gap: 16px;
  margin-top: 18px;
}

.health-gauge-card,
.status-distribution-card,
.priority-ports-card {
  min-height: 205px;
  padding: 17px;
  border: 1px solid #e5e9f2;
  border-radius: 16px;
  background: rgba(248,250,252,.78);
}

.health-gauge-card { display: flex; align-items: center; gap: 17px; }
.network-health-gauge {
  flex: 0 0 124px;
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#22c55e calc(var(--health) * 1%),#e8edf5 0);
  box-shadow: inset 0 0 0 1px rgba(16,24,40,.03),0 12px 28px rgba(34,197,94,.12);
  transition: background .6s ease;
}
.network-health-gauge::before { content: ''; position: absolute; width: 92px; height: 92px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #edf0f5; }
.network-health-gauge { position: relative; }
.network-health-gauge > div { position: relative; z-index: 1; text-align: center; }
.network-health-gauge strong { display: block; color: #101828; font-size: 25px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.network-health-gauge span { display: block; margin-top: 2px; color: #667085; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.health-gauge-copy strong { display: block; color: #101828; font-size: 14px; }
.health-gauge-copy span { display: block; max-width: 155px; margin-top: 6px; color: #667085; font-size: 10px; line-height: 1.55; }

.insight-label { display: block; margin-bottom: 16px; color: #667085; font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.distribution-row + .distribution-row { margin-top: 17px; }
.distribution-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: #475467; font-size: 10px; }
.distribution-row strong { color: #101828; font-variant-numeric: tabular-nums; }
.distribution-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e8edf5; }
.distribution-track span { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.distribution-row.online .distribution-track span { background: linear-gradient(90deg,#22c55e,#10b981); }
.distribution-row.offline .distribution-track span { background: linear-gradient(90deg,#f97316,#ef4444); }
.distribution-row.discovery .distribution-track span { background: linear-gradient(90deg,#6366f1,#8b5cf6); }

.priority-port-list { display: grid; gap: 8px; }
.priority-port-item {
  display: grid;
  grid-template-columns: 27px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e6eaf1;
  border-left-width: 3px;
  border-radius: 11px;
  background: #fff;
  transition: transform .18s ease,box-shadow .18s ease;
}
.priority-port-item:hover { transform: translateX(3px); box-shadow: 0 8px 18px rgba(16,24,40,.06); }
.priority-port-item.critical { border-left-color: #ef4444; }
.priority-port-item.warning { border-left-color: #f59e0b; }
.priority-port-item.notice { border-left-color: #6366f1; }
.priority-rank { color: #98a2b3; font-size: 9px; font-weight: 850; }
.priority-port-item strong { display: block; color: #101828; font-size: 10px; }
.priority-port-item small { display: block; margin-top: 2px; color: #667085; font-size: 8px; }
.priority-offline { padding: 4px 6px; border-radius: 999px; color: #b42318; background: #fef3f2; font-size: 8px; font-weight: 850; }
.priority-port-placeholder { padding: 18px; color: #667085; text-align: center; font-size: 10px; }
.priority-port-placeholder.success { color: #067647; background: #ecfdf3; border-radius: 10px; }

.metric-card,
.panel-card,
.quick-action { transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.metric-card:hover { transform: translateY(-3px); border-color: #d6ddeb; box-shadow: 0 14px 32px rgba(16,24,40,.1); }
.quick-action:hover { transform: translateY(-2px); }

@media (max-width: 1180px) {
  .network-intelligence-grid { grid-template-columns: 1fr 1fr; }
  .priority-ports-card { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .operation-clock { display: none; }
  .network-intelligence-grid { grid-template-columns: 1fr; }
  .priority-ports-card { grid-column: auto; }
  .health-gauge-card { justify-content: center; }
}

/* Change ONU eligible device picker */
.change-eligible-panel {
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid #dfe5ef;
  border-radius: 16px;
  background: linear-gradient(145deg,#fbfcff,#f7f9fd);
}

.change-eligible-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}
.change-eligible-header h3 { margin: 4px 0 4px; color: #101828; font-size: 15px; }
.change-eligible-header p { margin: 0; color: #667085; font-size: 10px; }
.change-eligible-tools { display: flex; align-items: center; gap: 9px; }
.change-eligible-tools input {
  width: 250px;
  min-height: 39px;
  padding: 9px 11px;
  border: 1px solid #d5dbe7;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font-size: 11px;
}
.change-eligible-tools input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.change-eligible-table { max-height: 360px; overflow: auto; border-radius: 12px; }
.change-eligible-table thead th { position: sticky; top: 0; z-index: 2; background: #f8faff; }
.change-eligible-table code { color: #344054; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 10px; }
.change-eligible-table .select-change-onu { min-height: 32px; padding: 6px 12px; color: #4338ca; border-color: #c7d2fe; background: #eef2ff; }
.change-eligible-table .select-change-onu:hover { color: #fff; border-color: #4f46e5; background: #4f46e5; }
#changeOnuForm { scroll-margin-top: 18px; }

@media (max-width: 850px) {
  .change-eligible-header { align-items: stretch; flex-direction: column; }
  .change-eligible-tools { align-items: stretch; flex-direction: column; }
  .change-eligible-tools input { width: 100%; }
}

/* RADIUS customer credential export */
.radius-export-actions { display: flex; align-items: center; gap: 9px; }
.radius-export-actions .disabled { opacity: .45; pointer-events: none; }
.radius-security-notice {
  margin: 2px 0 18px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 10px;
  line-height: 1.55;
}
.radius-security-notice strong { margin-right: 4px; color: #7c2d12; }
.radius-summary-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.radius-summary-row > div {
  min-width: 170px;
  padding: 14px 16px;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  background: linear-gradient(145deg,#f8fbff,#eef4ff);
}
.radius-summary-row > div span { display: block; color: #667085; font-size: 8px; font-weight: 850; letter-spacing: .09em; }
.radius-summary-row > div strong { display: block; margin-top: 4px; color: #172554; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.radius-summary-row label { width: min(360px,100%); color: #344054; font-size: 9px; font-weight: 750; }
.radius-summary-row label span { display: block; margin-bottom: 6px; }
.radius-summary-row input {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #d5dbe7;
  border-radius: 10px;
  color: #101828;
  background: #fff;
}
.radius-summary-row input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.radius-customer-table { max-height: 520px; overflow: auto; border-radius: 12px; }
.radius-customer-table thead th { position: sticky; top: 0; z-index: 2; background: #f8faff; }
.radius-customer-table code { color: #344054; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 10px; }
.radius-customer-table .radius-visible-password { color: #9a3412; font-weight: 750; }

@media (max-width: 760px) {
  .radius-export-actions,.radius-summary-row { align-items: stretch; flex-direction: column; }
  .radius-summary-row label { width: 100%; }
}

/* Identity and role management */
.users-content { display: grid; align-content: start; gap: 18px; }
.users-topbar { margin-bottom: 0; }
.users-nav { margin-top: 26px; }
.user-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.user-summary-grid article {
  padding: 18px;
  border: 1px solid #e1e6ef;
  border-radius: 15px;
  background: linear-gradient(145deg,#fff,#f8faff);
  box-shadow: 0 8px 22px rgba(16,24,40,.045);
}
.user-summary-grid span { display: block; color: #667085; font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.user-summary-grid strong { display: block; margin: 7px 0 5px; color: #101828; font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; }
.user-summary-grid small { color: #98a2b3; font-size: 9px; }

.role-matrix-wrap { overflow-x: auto; border: 1px solid #e5eaf2; border-radius: 13px; }
.role-matrix { width: 100%; min-width: 760px; border-collapse: collapse; }
.role-matrix th { padding: 12px 14px; color: #667085; background: #f8faff; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-align: center; }
.role-matrix th:first-child { text-align: left; }
.role-matrix td { padding: 13px 14px; border-top: 1px solid #edf0f5; text-align: center; }
.role-matrix td:first-child { min-width: 270px; text-align: left; }
.role-matrix td:first-child small { display: block; margin-top: 6px; color: #667085; font-size: 9px; line-height: 1.45; }
.role-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 850; }
.role-superadmin { color: #5b21b6; background: #ede9fe; }
.role-admin { color: #1d4ed8; background: #dbeafe; }
.role-operator { color: #047857; background: #d1fae5; }
.role-viewer { color: #475467; background: #eef2f6; }
.permission-check { display: inline-grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 900; }
.permission-check.yes { color: #067647; background: #dcfae6; box-shadow: inset 0 0 0 1px #abefc6; }
.permission-check.no { color: #98a2b3; background: #f2f4f7; }

.user-create-form { align-items: end; }
.user-create-action { display: flex; align-items: flex-end; min-height: 62px; }
.user-create-action .btn { width: 100%; }
.user-directory-search { width: 280px; min-height: 40px; padding: 9px 12px; border: 1px solid #d5dbe7; border-radius: 10px; background: #fff; }
.user-directory-search:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.modern-user-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.modern-user-card { padding: 16px; border: 1px solid #e2e7ef; border-radius: 15px; background: #fbfcfe; box-shadow: none; }
.modern-user-card.hidden { display: none; }
.user-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #e8ecf2; }
.user-identity { display: flex; align-items: center; min-width: 0; gap: 10px; }
.user-card-avatar { display: grid; flex: 0 0 36px; height: 36px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg,#4f46e5,#7c3aed); font-size: 12px; font-weight: 850; }
.user-identity strong { display: block; color: #101828; font-size: 11px; }
.user-identity div span { display: block; overflow: hidden; margin-top: 3px; color: #667085; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.user-card-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.badge.info { color: #3538cd; background: #eef4ff; }
.user-update-form { display: grid; gap: 12px; }
.user-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.user-edit-grid label,.reset-password-label { color: #344054; font-size: 9px; font-weight: 750; }
.user-edit-grid label > span,.reset-password-label > span { display: block; margin-bottom: 6px; }
.user-edit-grid input,.user-edit-grid select { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #d8dee9; border-radius: 9px; color: #101828; background: #fff; font-size: 10px; }
.reset-password-label small { display: block; margin-top: 5px; color: #98a2b3; font-size: 8px; font-weight: 500; }
.user-directory-empty { padding: 28px; color: #667085; text-align: center; }

@media (max-width: 1120px) {
  .user-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .modern-user-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .user-summary-grid { grid-template-columns: 1fr; }
  .user-edit-grid { grid-template-columns: 1fr; }
  .user-directory-search { width: 100%; }
}
