:root {
  --ez-blue-950: #071735;
  --ez-blue-900: #09245a;
  --ez-blue-800: #0b3d91;
  --ez-blue-700: #0759cf;
  --ez-blue-600: #0b74f1;
  --ez-blue-500: #1a8cff;
  --ez-cyan-500: #16b8d9;
  --ez-green-600: #16a34a;
  --ez-green-50: #ecfdf3;
  --ez-yellow-600: #ca8a04;
  --ez-yellow-50: #fff8db;
  --ez-red-600: #dc2626;
  --ez-red-50: #fff1f2;
  --ez-ink: #0b162f;
  --ez-text: #172033;
  --ez-muted: #64748b;
  --ez-soft: #eef4fb;
  --ez-line: rgba(15, 23, 42, .09);
  --ez-card: rgba(255, 255, 255, .94);
  --ez-shell: #f5f8fc;
  --ez-shadow: 0 22px 60px rgba(12, 32, 76, .13);
  --ez-shadow-sm: 0 10px 28px rgba(12, 32, 76, .09);
  --ez-radius-xl: 28px;
  --ez-radius: 20px;
  --ez-radius-sm: 14px;
  --ez-trans: 180ms ease;
}

html[data-theme="dark"] {
  --ez-ink: #eff6ff;
  --ez-text: #e5eefb;
  --ez-muted: #9fb0c8;
  --ez-soft: #101c35;
  --ez-line: rgba(226, 232, 240, .11);
  --ez-card: rgba(13, 24, 47, .9);
  --ez-shell: #07111f;
  --ez-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  --ez-shadow-sm: 0 12px 34px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }

body.cloud-body {
  margin: 0;
  color: var(--ez-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(232, 242, 255, .92), rgba(246, 249, 253, .98) 360px),
    var(--ez-shell);
}

html[data-theme="dark"] body.cloud-body {
  background:
    linear-gradient(180deg, rgba(8, 25, 55, .95), rgba(7, 17, 31, .98) 380px),
    var(--ez-shell);
}

a { color: inherit; }

.cloud-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

.cloud-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  color: #e9f2ff;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(7, 23, 53, .98), rgba(7, 28, 66, .98)),
    #071735;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.cloud-sidebar::before {
  content: "";
  display: block;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a8cff, #16b8d9, #16a34a);
  margin: 0 8px 18px;
}

.cloud-brand {
  display: flex;
  align-items: center;
  min-height: 74px;
  margin: 0 6px 28px;
  text-decoration: none;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
}

.brand-logo,
.product-brand-logo {
  width: 232px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .24));
}

.cloud-nav {
  display: grid;
  gap: 8px;
}

.cloud-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  color: #c6d6ec;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: transform var(--ez-trans), background var(--ez-trans), color var(--ez-trans), box-shadow var(--ez-trans);
}

.cloud-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  transform: translateX(4px);
}

.cloud-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(26, 140, 255, .95), rgba(22, 184, 217, .78));
  box-shadow: 0 16px 38px rgba(5, 78, 170, .34);
  border-color: rgba(255, 255, 255, .18);
}

.nav-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  color: #dfeaff;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  line-height: 1;
}

.nav-ico img {
  display: block;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nav-ico.brand-nav {
  background: rgba(255, 255, 255, .15);
  overflow: visible;
}

.nav-ico.zabbix-nav { width: 34px; }
.nav-ico.zabbix-nav img { width: 24px; height: 24px; max-height: 24px; border-radius: 8px; }
.nav-ico.whatsapp-nav img { width: 25px; height: 25px; filter: drop-shadow(0 7px 13px rgba(22, 163, 74, .22)); }

.cloud-system-card {
  margin: 26px 4px 0;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .11);
}

.cloud-system-card strong { display: block; color: #fff; font-size: 13px; }
.cloud-system-card small { color: #9fb5d2; font-weight: 700; }
.cloud-system-card a {
  grid-column: 1 / -1;
  color: #d6e8ff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.cloud-sidebar-foot {
  margin: 18px 6px 0;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  color: #9fb5d2;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.cloud-sidebar-foot a {
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.cloud-workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.cloud-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: rgba(245, 248, 252, .84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ez-line);
}

html[data-theme="dark"] .cloud-topbar {
  background: rgba(7, 17, 31, .82);
}

.sidebar-toggle {
  display: none;
  border: 0;
  border-radius: 13px;
  padding: 10px 12px;
  color: #fff;
  background: var(--ez-blue-700);
  font-weight: 900;
}

.cloud-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 560px;
}

.cloud-search input,
.premium-input,
.premium-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ez-line);
  border-radius: 15px;
  padding: 0 14px;
  color: var(--ez-text);
  background: rgba(255, 255, 255, .8);
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
}

html[data-theme="dark"] .cloud-search input,
html[data-theme="dark"] .premium-input,
html[data-theme="dark"] .premium-select {
  background: rgba(12, 25, 48, .86);
}

.cloud-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-action,
.premium-btn,
.modern-action,
.quick-actions a,
.quick-actions-modern a,
.premium-actions a,
.premium-actions button,
.vpn-card-modern button,
.accordion-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--ez-line);
  border-radius: 14px;
  color: var(--ez-text);
  background: var(--ez-card);
  box-shadow: var(--ez-shadow-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform var(--ez-trans), box-shadow var(--ez-trans), border-color var(--ez-trans), background var(--ez-trans);
}

.primary-action,
.premium-btn.primary,
.modern-action.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ez-blue-700), var(--ez-cyan-500));
  border-color: transparent;
}

.premium-btn.secondary,
.modern-action.ghost,
.modern-action.disabled {
  box-shadow: none;
}

.modern-action.disabled,
button[disabled] {
  opacity: .56;
  cursor: not-allowed;
}

.primary-action:hover,
.premium-btn:hover,
.modern-action:hover,
.quick-actions a:hover,
.quick-actions-modern a:hover,
.premium-actions a:hover,
.premium-actions button:hover,
.vpn-card-modern button:hover,
.accordion-trigger:hover {
  transform: translateY(-2px);
  box-shadow: var(--ez-shadow);
}

.system-pill,
.premium-badge,
.status-badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #475569;
  background: rgba(100, 116, 139, .1);
  border: 1px solid rgba(100, 116, 139, .13);
  white-space: nowrap;
}

.premium-badge.ok,
.status-badge-modern.ok,
.system-pill.ok { color: #0f7a38; background: var(--ez-green-50); border-color: rgba(22, 163, 74, .2); }
.premium-badge.warn,
.status-badge-modern.warn,
.system-pill.warn { color: #9a6500; background: var(--ez-yellow-50); border-color: rgba(202, 138, 4, .22); }
.premium-badge.err,
.status-badge-modern.err { color: #b91c1c; background: var(--ez-red-50); border-color: rgba(220, 38, 38, .2); }
.premium-badge.neutral,
.status-badge-modern.neutral { color: #475569; background: rgba(100, 116, 139, .11); }

.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .14);
}
.status-dot.ok { background: var(--ez-green-600); box-shadow: 0 0 0 4px rgba(22, 163, 74, .14); }
.status-dot.warn { background: var(--ez-yellow-600); box-shadow: 0 0 0 4px rgba(202, 138, 4, .14); }
.status-dot.err { background: var(--ez-red-600); box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); }

.theme-toggle,
.notification-bell {
  border: 1px solid var(--ez-line);
  background: var(--ez-card);
  color: var(--ez-text);
  border-radius: 14px;
  min-height: 42px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
}

.cloud-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 10px;
  border-radius: 16px;
  background: var(--ez-card);
  border: 1px solid var(--ez-line);
}

.cloud-user > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  color: #fff;
  background: var(--ez-blue-700);
  font-weight: 900;
}

.cloud-user strong { display: block; font-size: 12px; }
.cloud-user small { color: var(--ez-muted); font-weight: 800; }

.cloud-main {
  width: min(1540px, 100%);
  padding: 30px;
}

.premium-page,
.company-modern-page {
  display: grid;
  gap: 24px;
  animation: productFadeIn .32s ease both;
}

@keyframes productFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.premium-hero,
.company-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border-radius: var(--ez-radius-xl);
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 23, 53, .98), rgba(10, 61, 145, .94) 56%, rgba(22, 184, 217, .8)),
    var(--ez-blue-950);
  box-shadow: var(--ez-shadow);
}

.premium-hero::after,
.company-hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
}

.premium-hero > *,
.company-hero > * { position: relative; z-index: 1; }

.product-company-detail .company-hero {
  overflow: visible;
  z-index: 80;
}

.product-company-detail .metric-grid {
  position: relative;
  z-index: 1;
}

.premium-kicker,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ez-blue-700);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.premium-hero .premium-kicker,
.company-hero .company-eyebrow {
  color: #a8d8ff;
}

.premium-hero h1,
.company-hero h1 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
}

.premium-hero p,
.company-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(235, 245, 255, .82);
  font-size: 15px;
  font-weight: 700;
}

.premium-hero-actions,
.company-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.premium-hero .premium-btn.secondary,
.company-hero .modern-action {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}

.company-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.company-avatar-modern,
.premium-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--ez-blue-700), var(--ez-cyan-500));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  font-weight: 950;
}

.company-avatar-modern img,
.premium-avatar img { width: 100%; height: 100%; object-fit: cover; }

.company-logo-upload {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.company-logo-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.company-logo-upload .modern-action {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
}

.company-logo-upload .logo-upload-action {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .22);
}

.company-logo-upload .logo-remove-action {
  color: #fecaca;
  background: rgba(220, 38, 38, .14);
  border-color: rgba(254, 202, 202, .24);
}

.metric-grid,
.premium-metric-grid,
.premium-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card,
.premium-card,
.premium-panel,
.modern-panel,
.occurrence-card,
.graph-card,
.technical-panel,
.premium-integration-card,
.premium-vpn-card {
  position: relative;
  border-radius: var(--ez-radius);
  background: var(--ez-card);
  border: 1px solid var(--ez-line);
  box-shadow: var(--ez-shadow-sm);
}

.metric-card,
.premium-stat {
  min-height: 130px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  overflow: hidden;
  transition: transform var(--ez-trans), box-shadow var(--ez-trans);
}

.metric-card:hover,
.premium-stat:hover,
.premium-panel:hover,
.modern-panel:hover,
.occurrence-card:hover,
.graph-card:hover,
.premium-integration-card:hover,
.premium-vpn-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ez-shadow);
}

.metric-card::before,
.premium-stat::before,
.occurrence-card::before,
.graph-card::before,
.premium-integration-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ez-blue-700), var(--ez-cyan-500));
  opacity: .88;
}

.metric-card.ok::before,
.premium-stat.ok::before { background: var(--ez-green-600); }
.metric-card.warn::before,
.premium-stat.warn::before { background: var(--ez-yellow-600); }
.metric-card.err::before,
.premium-stat.err::before { background: var(--ez-red-600); }

.metric-card small,
.premium-stat small,
.premium-kpi span {
  display: block;
  color: var(--ez-muted);
  font-size: 12px;
  font-weight: 900;
}

.metric-card strong,
.premium-stat strong,
.premium-kpi strong {
  display: block;
  margin-top: 5px;
  color: var(--ez-ink);
  font-size: 23px;
  line-height: 1.1;
}

.metric-card em,
.premium-stat em {
  display: block;
  margin-top: 6px;
  color: var(--ez-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.metric-icon,
.premium-icon,
.service-logo,
.brand-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--ez-blue-700), var(--ez-cyan-500));
  font-size: 13px;
  font-weight: 950;
  overflow: hidden;
}

.premium-icon.ok,
.metric-icon.ok { background: linear-gradient(135deg, #16a34a, #22c55e); }
.premium-icon.warn,
.metric-icon.warn { background: linear-gradient(135deg, #ca8a04, #fbbf24); }
.premium-icon.err,
.metric-icon.err { background: linear-gradient(135deg, #dc2626, #fb7185); }
.premium-icon.neutral,
.metric-icon.neutral { background: linear-gradient(135deg, #64748b, #94a3b8); }

.service-logo img,
.premium-icon img,
.metric-icon img,
.brand-badge img,
.service-brand {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.whatsapp-logo,
.premium-icon.whatsapp-logo,
.metric-icon.whatsapp-logo {
  background: rgba(34, 197, 94, .11);
  border: 1px solid rgba(34, 197, 94, .16);
}

.whatsapp-logo img,
.whatsapp-mark,
img[src*="whatsapp"] {
  width: 30px !important;
  height: 30px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: none !important;
}

.zabbix-logo,
.premium-icon.zabbix-logo,
.metric-icon.zabbix-logo,
.service-logo.zabbix-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(217, 0, 0, .1);
  border: 1px solid rgba(217, 0, 0, .14);
  box-shadow: none;
  overflow: hidden;
}

.zabbix-logo img,
img[src*="zabbix-icon.svg"] {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain;
  border-radius: 8px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

img.zabbix-mark,
img[src*="zabbix.png"] {
  width: 86px !important;
  height: auto !important;
  max-width: 102px !important;
  max-height: 34px !important;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.evolution-logo,
.premium-icon.evolution-logo,
.service-logo.evolution-logo {
  width: 116px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

img.evolution-mark,
.evolution-logo img,
img[src*="evolution.png"] {
  width: 106px !important;
  height: auto !important;
  max-width: 120px !important;
  max-height: 34px !important;
  object-fit: contain;
}

.title-logo.zabbix-mark { width: 106px !important; max-width: 106px !important; max-height: 34px !important; }
.title-logo.whatsapp-mark { width: 34px !important; height: 34px !important; }

.brand-button-icon {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  border-radius: 7px;
  object-fit: contain;
}

.premium-two-col,
.company-modern-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 18px;
}

.company-main-column,
.company-side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.premium-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.premium-panel,
.modern-panel,
.occurrence-card,
.graph-card,
.technical-panel,
.premium-integration-card {
  padding: 22px;
}

.premium-panel-head,
.modern-panel-head,
.occurrence-card header,
.graph-card header,
.premium-integration-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.premium-panel h2,
.modern-panel h2,
.occurrence-card h2,
.graph-card h2,
.premium-integration-card h2 {
  margin: 4px 0 0;
  color: var(--ez-ink);
  font-size: 20px;
  letter-spacing: 0;
}

.premium-panel p,
.modern-panel p,
.premium-integration-card p {
  margin: 6px 0 0;
  color: var(--ez-muted);
  font-weight: 700;
}

.premium-list,
.activity-modern-list,
.alert-list-modern,
.premium-compact-list {
  display: grid;
  gap: 10px;
}

.premium-row,
.premium-compact-row,
.activity-modern-row,
.alert-row-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  color: var(--ez-text);
  background: rgba(248, 251, 255, .78);
  border: 1px solid var(--ez-line);
  border-radius: 16px;
  text-decoration: none;
  transition: transform var(--ez-trans), border-color var(--ez-trans), background var(--ez-trans);
}

html[data-theme="dark"] .premium-row,
html[data-theme="dark"] .premium-compact-row,
html[data-theme="dark"] .activity-modern-row,
html[data-theme="dark"] .alert-row-modern {
  background: rgba(13, 27, 52, .76);
}

.premium-row:hover,
.premium-compact-row:hover,
.activity-modern-row:hover,
.alert-row-modern:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 116, 241, .26);
  background: rgba(239, 246, 255, .92);
}

html[data-theme="dark"] .premium-row:hover,
html[data-theme="dark"] .premium-compact-row:hover,
html[data-theme="dark"] .activity-modern-row:hover,
html[data-theme="dark"] .alert-row-modern:hover {
  background: rgba(20, 42, 78, .88);
}

.premium-row strong,
.premium-compact-row strong,
.activity-modern-row strong,
.alert-row-modern strong {
  display: block;
  color: var(--ez-ink);
  font-size: 14px;
}

.premium-row small,
.premium-compact-row small,
.activity-modern-row small,
.alert-row-modern small {
  display: block;
  margin-top: 3px;
  color: var(--ez-muted);
  font-size: 12px;
  font-weight: 750;
}

.premium-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--ez-line);
  border-radius: 18px;
  background: var(--ez-card);
}

.premium-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.premium-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 16px;
  color: var(--ez-muted);
  background: rgba(241, 247, 255, .92);
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
}

html[data-theme="dark"] .premium-table th { background: rgba(15, 29, 55, .94); }

.premium-table td {
  padding: 16px;
  border-top: 1px solid var(--ez-line);
  vertical-align: middle;
}

.premium-table tr {
  transition: background var(--ez-trans);
}

.premium-table tbody tr:hover {
  background: rgba(239, 246, 255, .72);
}

html[data-theme="dark"] .premium-table tbody tr:hover {
  background: rgba(20, 42, 78, .66);
}

.premium-table small {
  display: block;
  margin-top: 4px;
  color: var(--ez-muted);
  font-size: 12px;
  font-weight: 750;
}

.premium-entity-cell,
.instance-company {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.premium-actions,
.premium-filter-group,
.quick-actions,
.quick-actions-modern,
.graph-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.premium-empty,
.empty-modern {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 22px;
  color: var(--ez-muted);
  text-align: center;
  border-radius: 18px;
  border: 1px dashed rgba(100, 116, 139, .28);
  background: rgba(248, 251, 255, .7);
  font-weight: 800;
}

html[data-theme="dark"] .premium-empty,
html[data-theme="dark"] .empty-modern {
  background: rgba(13, 27, 52, .56);
}

.modern-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--ez-line);
  border-radius: 18px;
  background: var(--ez-card);
  box-shadow: var(--ez-shadow-sm);
  overflow-x: auto;
}

.modern-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  padding: 9px 14px;
  color: var(--ez-muted);
  background: transparent;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ez-trans), color var(--ez-trans), transform var(--ez-trans);
}

.modern-tabs button:hover { transform: translateY(-1px); color: var(--ez-blue-700); }
.modern-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--ez-blue-700), var(--ez-cyan-500));
  box-shadow: 0 12px 28px rgba(11, 116, 241, .22);
}

.tab-panel[hidden],
.accordion-panel[hidden],
.premium-details[hidden],
.graph-modal[hidden],
.premium-hidden,
[data-filter-row].is-hidden {
  display: none !important;
}

.tab-panel.active {
  animation: productFadeIn .24s ease both;
}

.occurrence-card {
  border-left: 5px solid var(--ez-yellow-600);
}

.occurrence-body strong {
  display: block;
  color: var(--ez-ink);
  font-size: 18px;
}

.occurrence-body p {
  margin: 8px 0 14px;
  color: var(--ez-muted);
  font-weight: 750;
}

.vpn-card-grid,
.premium-vpn-grid,
.zabbix-instance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vpn-card-grid.wide,
.premium-vpn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.vpn-card-modern,
.zabbix-instance-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--ez-line);
  background: rgba(255,255,255,.84);
  box-shadow: var(--ez-shadow-sm);
  transition: transform var(--ez-trans), box-shadow var(--ez-trans);
}

html[data-theme="dark"] .vpn-card-modern,
html[data-theme="dark"] .zabbix-instance-card {
  background: rgba(13, 27, 52, .82);
}

.vpn-card-modern:hover,
.zabbix-instance-card:hover { transform: translateY(-3px); box-shadow: var(--ez-shadow); }

.vpn-card-modern.ok { border-color: rgba(22, 163, 74, .24); }
.vpn-card-modern.warn { border-color: rgba(202, 138, 4, .24); }
.vpn-card-modern.err { border-color: rgba(220, 38, 38, .24); }

.vpn-card-head,
.zabbix-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.vpn-card-head strong,
.zabbix-card-head strong {
  display: block;
  color: var(--ez-ink);
  font-size: 16px;
}

.vpn-card-modern p,
.zabbix-instance-card p {
  margin: 10px 0;
  color: var(--ez-muted);
  font-weight: 750;
}

.vpn-tags,
.premium-tags,
.instance-components,
.zabbix-component-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.vpn-tags span,
.premium-tags span {
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--ez-muted);
  background: rgba(100, 116, 139, .1);
  font-size: 12px;
  font-weight: 850;
}

.graph-preview-button,
.graph-large-button {
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0b162f;
  cursor: pointer;
  box-shadow: var(--ez-shadow-sm);
}

.graph-preview-button img,
.graph-large-button img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #0b162f;
}

.graph-large-button img { max-height: 560px; }

.graph-history-strip {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.graph-history-strip button {
  width: 118px;
  height: 72px;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ez-line);
  background: var(--ez-card);
}

.graph-history-strip img { width: 100%; height: 100%; object-fit: cover; }

.graph-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
}

.graph-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 23, .78);
  backdrop-filter: blur(8px);
}

.graph-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  max-height: 90vh;
  padding: 18px;
  border-radius: 24px;
  background: #07111f;
  box-shadow: 0 30px 90px rgba(0,0,0,.48);
  animation: productModalIn .2s ease both;
}

@keyframes productModalIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

.graph-modal-dialog img {
  width: 100%;
  max-height: calc(90vh - 84px);
  object-fit: contain;
  display: block;
}

.graph-modal-close {
  margin: 0 0 12px auto;
  display: flex;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-weight: 900;
}

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

.technical-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.technical-list div {
  display: grid;
  grid-template-columns: minmax(110px, .45fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ez-line);
}

.technical-list dt {
  color: var(--ez-muted);
  font-size: 12px;
  font-weight: 900;
}

.technical-list dd {
  margin: 0;
  color: var(--ez-text);
  font-weight: 800;
  word-break: break-word;
}

.technical-details {
  border: 1px solid var(--ez-line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(248, 251, 255, .66);
}

html[data-theme="dark"] .technical-details {
  background: rgba(13, 27, 52, .64);
}

.technical-details summary {
  cursor: pointer;
  color: var(--ez-blue-700);
  font-weight: 950;
}

.premium-code,
.premium-log-list {
  margin-top: 12px;
  padding: 14px;
  overflow: auto;
  border-radius: 14px;
  color: #dbeafe;
  background: #07111f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.premium-toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  display: grid;
  gap: 10px;
}

.premium-toast {
  min-width: 250px;
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: rgba(7, 17, 31, .96);
  box-shadow: var(--ez-shadow);
  font-weight: 850;
  animation: productToastIn .2s ease both;
}

.premium-toast.ok { background: rgba(21, 128, 61, .96); }

@keyframes productToastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-reveal {
  animation: productFadeIn .34s ease both;
}

.premium-log-list {
  display: grid;
  gap: 8px;
}

.premium-log-list code {
  white-space: pre-wrap;
  color: inherit;
}

.premium-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.premium-kpi {
  min-height: 108px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(248, 251, 255, .78);
  border: 1px solid var(--ez-line);
}

html[data-theme="dark"] .premium-kpi { background: rgba(13, 27, 52, .7); }

.brand-heading,
.premium-integration-card h2,
.brand-hero h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.zabbix-instance-card .zabbix-card-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(217, 0, 0, .1);
  border: 1px solid rgba(217, 0, 0, .14);
}

.zabbix-instance-card .zabbix-card-logo img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px;
}

.zabbix-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.muted-line {
  display: block;
  margin-top: 5px;
  color: var(--ez-muted);
  font-size: 12px;
  font-weight: 800;
  word-break: break-word;
}

.hero-summary.cloud-health-card,
.score,
.health-ring,
.global-score-card {
  display: none !important;
}

/* Legacy diagnostic/form screens receive the same product treatment. */
.topbar,
.hero,
.panel,
.card {
  border-radius: var(--ez-radius);
  background: var(--ez-card);
  border: 1px solid var(--ez-line);
  box-shadow: var(--ez-shadow-sm);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar .actions,
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ez-line);
  border-radius: 14px;
  padding: 9px 13px;
  color: var(--ez-text);
  background: var(--ez-card);
  box-shadow: var(--ez-shadow-sm);
  text-decoration: none;
  font-weight: 900;
}

.btn:hover { transform: translateY(-2px); }
.btn.purple,
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--ez-blue-700), var(--ez-cyan-500)); }

.hero {
  padding: 24px;
  margin-bottom: 18px;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero .title h1 {
  margin: 0 0 6px;
  color: var(--ez-ink);
  font-size: 30px;
}

.hero .title p,
.muted,
.small {
  color: var(--ez-muted);
  font-weight: 750;
}

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

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card,
.panel {
  padding: 18px;
}

.card-head,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card h3,
.panel h2 {
  margin: 0 0 6px;
  color: var(--ez-ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #475569;
  background: rgba(100, 116, 139, .1);
  border: 1px solid rgba(100, 116, 139, .13);
  font-size: 12px;
  font-weight: 900;
}

.pill.ok { color: #0f7a38; background: var(--ez-green-50); }
.pill.err { color: #b91c1c; background: var(--ez-red-50); }
.pill.warn { color: #9a6500; background: var(--ez-yellow-50); }

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ez-green-600);
}
.dot.red { background: var(--ez-red-600); }
.dot.yellow { background: var(--ez-yellow-600); }

.notice {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--ez-line);
  background: var(--ez-card);
  font-weight: 850;
}
.notice.ok { border-color: rgba(22, 163, 74, .22); }
.notice.err { border-color: rgba(220, 38, 38, .22); }

@media (max-width: 1260px) {
  .cloud-frame { grid-template-columns: 252px minmax(0, 1fr); }
  .metric-grid,
  .premium-metric-grid,
  .premium-status-grid,
  .premium-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-two-col,
  .company-modern-layout,
  .technical-grid { grid-template-columns: 1fr; }
  .vpn-card-grid.wide,
  .premium-vpn-grid,
  .vpn-card-grid,
  .zabbix-instance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .cloud-frame { display: block; }
  .cloud-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(84vw, 320px);
    transform: translateX(-104%);
    transition: transform var(--ez-trans);
  }
  .cloud-frame.sidebar-open .cloud-sidebar { transform: translateX(0); }
  .sidebar-toggle { display: inline-flex; }
  .cloud-topbar { flex-wrap: wrap; padding: 14px 16px; }
  .cloud-search { order: 20; flex-basis: 100%; max-width: none; }
  .cloud-user { display: none; }
  .cloud-main { padding: 18px; }
  .premium-hero,
  .company-hero { display: grid; padding: 22px; }
  .premium-hero-actions,
  .company-action-bar { justify-content: flex-start; }
  .metric-grid,
  .premium-metric-grid,
  .premium-status-grid,
  .premium-three-col,
  .premium-kpi-grid,
  .vpn-card-grid,
  .premium-vpn-grid,
  .zabbix-instance-grid { grid-template-columns: 1fr; }
  .premium-table th,
  .premium-table td { padding: 12px; }
  .technical-list div { grid-template-columns: 1fr; }
}

/* System status operational polish */
.system-status-page {
  gap: 14px;
}

.system-status-page .premium-hero {
  align-items: center;
  min-height: 150px;
  padding: 24px 28px;
}

.system-status-page .premium-hero h1 {
  font-size: clamp(30px, 3vw, 42px);
}

.system-status-page .premium-hero p {
  max-width: 720px;
}

.system-status-page .premium-status-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.system-status-page .premium-status-grid .premium-stat {
  min-height: 104px;
  padding: 16px;
  gap: 12px;
}

.system-status-page .premium-status-grid .premium-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.system-status-page .premium-status-grid .premium-icon.evolution-logo img {
  width: 36px !important;
  max-width: 36px !important;
  height: 22px !important;
  object-fit: contain;
}

.system-status-page .premium-status-grid .premium-stat strong {
  font-size: 23px;
  line-height: 1.05;
}

.system-status-page .premium-status-grid .premium-stat small,
.system-status-page .premium-status-grid .premium-stat em {
  font-size: 11px;
}

.system-status-page .premium-panel {
  overflow: hidden;
}

.system-status-page .premium-badge {
  text-decoration: none;
}

.system-status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(390px, .62fr);
  gap: 18px;
  align-items: start;
}

.system-status-main,
.system-status-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.system-status-page .premium-panel-head {
  margin-bottom: 14px;
}

.system-resource-grid.premium-kpi-grid {
  gap: 10px;
}

.system-resource-grid .premium-kpi {
  min-height: 92px;
  padding: 14px;
}

.system-vpn-table {
  display: grid;
  gap: 10px;
}

.system-vpn-head {
  display: none;
}

.system-vpn-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  min-height: 82px;
  padding: 14px;
  border-radius: 16px;
  color: var(--ez-ink);
  background: rgba(248, 251, 255, .72);
  border: 1px solid var(--ez-line);
}

html[data-theme="dark"] .system-vpn-row {
  background: rgba(13, 27, 52, .76);
}

.system-vpn-row.legacy {
  display: flex;
  align-items: center;
}

.system-vpn-client {
  display: grid;
  gap: 3px;
  grid-column: 1 / -1;
  min-width: 0;
}

.system-vpn-client b,
.system-time b,
.system-container-main strong,
.system-zabbix-row strong {
  color: var(--ez-ink);
  font-weight: 950;
  line-height: 1.2;
}

.system-vpn-client b {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.system-vpn-client small,
.system-time small,
.system-container-main small,
.system-container-meta small,
.system-zabbix-row small {
  color: var(--ez-muted);
  font-size: 11px;
  font-weight: 850;
}

.system-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.system-time {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.system-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.system-pill.ok {
  color: #047857;
  background: #ecfdf3;
  border: 1px solid rgba(22, 163, 74, .2);
}

html[data-theme="dark"] .system-pill.ok {
  color: #bbf7d0;
  background: rgba(22, 163, 74, .14);
  border-color: rgba(34, 197, 94, .24);
}

.system-pill.err {
  color: #b91c1c;
  background: #fff1f2;
  border: 1px solid rgba(220, 38, 38, .22);
}

html[data-theme="dark"] .system-pill.err {
  color: #fecaca;
  background: rgba(220, 38, 38, .14);
  border-color: rgba(248, 113, 113, .22);
}

.system-pill.neutral {
  color: var(--ez-ink);
  background: rgba(37, 99, 235, .07);
  border: 1px solid rgba(37, 99, 235, .12);
}

html[data-theme="dark"] .system-pill.neutral {
  background: rgba(37, 99, 235, .14);
  border-color: rgba(125, 211, 252, .13);
}

.system-container-list,
.system-zabbix-list {
  display: grid;
  gap: 10px;
}

.system-container-row,
.system-zabbix-row {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  color: var(--ez-text);
  background: rgba(248, 251, 255, .72);
  border: 1px solid var(--ez-line);
  border-radius: 16px;
}

.system-container-row {
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto);
}

.system-zabbix-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

html[data-theme="dark"] .system-container-row,
html[data-theme="dark"] .system-zabbix-row {
  background: rgba(13, 27, 52, .76);
}

.system-container-main,
.system-container-meta {
  min-width: 0;
}

.system-container-main strong,
.system-zabbix-row strong {
  display: block;
  font-size: 14px;
}

.system-container-main small,
.system-zabbix-row small {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.system-container-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.system-container-meta em {
  color: var(--ez-muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

@media (max-width: 1380px) {
  .system-status-page .premium-status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .system-status-layout {
    grid-template-columns: 1fr;
  }

  .system-status-page .premium-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .system-status-page .premium-status-grid,
  .system-resource-grid.premium-kpi-grid {
    grid-template-columns: 1fr;
  }

  .system-vpn-row,
  .system-container-row,
  .system-zabbix-row {
    grid-template-columns: 1fr;
  }

  .system-time {
    justify-items: start;
  }

  .system-container-meta {
    justify-content: flex-start;
  }
}

/* Auditor Inteligente: scoped visual polish. */
.product-ui .auditor-page {
  max-width: 1480px;
  margin: 0 auto;
  color: #172033;
}

.product-ui .auditor-page .premium-hero {
  min-height: 150px;
  align-items: center;
  border: 0;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(7, 23, 53, .99), rgba(11, 61, 145, .94) 54%, rgba(22, 151, 180, .9)),
    #071735;
}

.product-ui .auditor-page .premium-hero h1 {
  max-width: 820px;
  color: #fff;
}

.product-ui .auditor-page .premium-hero p {
  max-width: 760px;
  color: rgba(239, 247, 255, .88);
}

.product-ui .auditor-page .premium-hero .premium-kicker {
  color: #b7e7ff;
}

.product-ui .auditor-page .premium-panel,
.product-ui .auditor-page .premium-card,
.product-ui .auditor-page .premium-table-wrap,
.product-ui .auditor-page .premium-empty,
.product-ui .auditor-page .notice {
  background: rgba(255, 255, 255, .96);
  border-color: rgba(15, 23, 42, .08);
  color: #172033;
}

.product-ui .auditor-page .premium-panel h2,
.product-ui .auditor-page .premium-stat strong,
.product-ui .auditor-page .premium-table td,
.product-ui .auditor-page .premium-table td strong {
  color: #0f1d33;
}

.product-ui .auditor-page .premium-panel p,
.product-ui .auditor-page .premium-stat small,
.product-ui .auditor-page .premium-stat em,
.product-ui .auditor-page .premium-table small {
  color: #64748b;
}

.product-ui .auditor-page .premium-btn {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0759cf, #16b8d9);
}

.product-ui .auditor-page .premium-btn.secondary {
  color: #17314d;
  background: #ffffff;
  border-color: #d7e4f2;
  box-shadow: none;
}

.product-ui .auditor-page .premium-hero .premium-btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
}

.product-ui .auditor-page .premium-btn.tiny {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 11px;
  font-size: 12px;
}

.product-ui .auditor-device-form-panel {
  padding: 0;
  overflow: hidden;
}

.product-ui .auditor-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid #e6eef8;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, .96), rgba(255, 255, 255, .98));
}

.product-ui .auditor-form-heading h2 {
  margin: 5px 0 5px;
  color: #102033;
  font-size: 22px;
}

.product-ui .auditor-form-heading p {
  max-width: 720px;
  color: #64748b;
}

.product-ui .auditor-readonly-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(22, 163, 74, .22);
  border-radius: 999px;
  color: #0f7a38;
  background: #ecfdf3;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.product-ui .auditor-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 16px;
  padding: 24px;
}

.product-ui .auditor-form input[type="hidden"] {
  display: none;
}

.product-ui .auditor-form label,
.product-ui .auditor-form .auditor-field {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: #21344f;
}

.product-ui .auditor-form .span-2 { grid-column: span 2; }
.product-ui .auditor-form .span-4 { grid-column: span 4; }
.product-ui .auditor-form .span-6 { grid-column: span 6; }
.product-ui .auditor-form .wide,
.product-ui .auditor-form-actions,
.product-ui .auditor-check {
  grid-column: 1 / -1;
}

.product-ui .auditor-form label > span,
.product-ui .auditor-form .auditor-field > span {
  display: block;
  color: #21344f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-ui .auditor-form input:not([type="checkbox"]),
.product-ui .auditor-form select,
.product-ui .auditor-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd9e8;
  border-radius: 12px;
  padding: 11px 13px;
  color: #102033;
  background: #f8fbff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.product-ui .auditor-form textarea {
  min-height: 116px;
  resize: vertical;
}

.product-ui .auditor-form input::placeholder,
.product-ui .auditor-form textarea::placeholder {
  color: #7c8da1;
}

.product-ui .auditor-form input:focus,
.product-ui .auditor-form select:focus,
.product-ui .auditor-form textarea:focus {
  border-color: #16a4dc;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 164, 220, .14);
}

.product-ui .auditor-form input[readonly] {
  color: #53667d;
  background: #eef4fb;
}

.product-ui .auditor-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #d9e5f2;
  border-radius: 12px;
  background: #f7fbff;
}

.product-ui .auditor-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #0759cf;
}

.product-ui .auditor-check span {
  color: #102033;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.product-ui .auditor-form-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}

.product-ui .auditor-rating-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.product-ui .auditor-rating-grid div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid #dce7f4;
  border-radius: 14px;
  background: #f8fbff;
}

.product-ui .auditor-rating-grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.product-ui .auditor-rating-grid strong {
  display: block;
  margin-top: 8px;
  color: #102033;
  font-size: 28px;
}

.product-ui .auditor-action-stack {
  display: grid;
  gap: 10px;
}

.product-ui .auditor-rating,
.product-ui .severity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(100, 116, 139, .14);
  color: #475569;
  background: rgba(100, 116, 139, .1);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-ui .auditor-rating.excelente,
.product-ui .auditor-rating.bom,
.product-ui .severity-badge.info {
  color: #15803d;
  background: #ecfdf3;
  border-color: rgba(22, 163, 74, .2);
}

.product-ui .auditor-rating.atencao,
.product-ui .severity-badge.medio {
  color: #9a6500;
  background: #fff8db;
  border-color: rgba(202, 138, 4, .22);
}

.product-ui .auditor-rating.ruim,
.product-ui .severity-badge.alto {
  color: #b45309;
  background: #fff7ed;
  border-color: rgba(234, 88, 12, .24);
}

.product-ui .auditor-rating.critico,
.product-ui .auditor-rating.erro,
.product-ui .severity-badge.critico {
  color: #b91c1c;
  background: #fff1f2;
  border-color: rgba(220, 38, 38, .2);
}

.product-ui .severity-badge.baixo {
  color: #075985;
  background: #eef7ff;
  border-color: rgba(14, 165, 233, .2);
}

.product-ui .auditor-score-card {
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  box-shadow: none;
  text-align: right;
}

.product-ui .auditor-score-card span,
.product-ui .auditor-score-card small {
  display: block;
  color: rgba(255, 255, 255, .78);
  font-weight: 900;
}

.product-ui .auditor-score-card strong {
  display: block;
  margin: 4px 0;
  font-size: 42px;
  line-height: 1;
}

.product-ui .auditor-table code,
.product-ui .auditor-message-preview {
  color: #17314d;
  background: #f1f6fc;
  border: 1px solid #d5e0ee;
  border-radius: 10px;
}

.product-ui .auditor-table code {
  display: inline-block;
  max-width: 360px;
  padding: 6px 8px;
  overflow-wrap: anywhere;
}

.product-ui .auditor-message-preview {
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  font: 800 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 980px) {
  .product-ui .auditor-form .span-2,
  .product-ui .auditor-form .span-4,
  .product-ui .auditor-form .span-6,
  .product-ui .auditor-form label,
  .product-ui .auditor-form .auditor-field {
    grid-column: 1 / -1;
  }

  .product-ui .auditor-form-heading,
  .product-ui .auditor-page .premium-hero {
    display: grid;
  }

  .product-ui .auditor-readonly-pill {
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .product-ui .auditor-page .premium-hero,
  .product-ui .auditor-form-heading,
  .product-ui .auditor-form {
    padding: 18px;
  }

  .product-ui .auditor-rating-grid {
    grid-template-columns: 1fr;
  }

  .product-ui .auditor-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-ui .auditor-form-actions .premium-btn {
    width: 100%;
  }
}

.product-ui .auditor-report-page {
  scroll-behavior: smooth;
}

.product-ui .auditor-command-bar,
.product-ui .auditor-jump-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-ui .auditor-command-bar {
  position: sticky;
  top: 14px;
  z-index: 8;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px rgba(12, 32, 76, .10);
  backdrop-filter: blur(14px);
}

.product-ui .auditor-command-bar form {
  display: inline-flex;
  margin: 0;
}

.product-ui .auditor-command-bar .premium-btn,
.product-ui .auditor-jump-nav a {
  min-height: 38px;
}

.product-ui .auditor-jump-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid #d7e4f2;
  border-radius: 999px;
  color: #17314d;
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(12, 32, 76, .07);
}

.product-ui .auditor-link-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-ui .auditor-link-card:hover,
.product-ui .auditor-link-card:focus {
  transform: translateY(-3px);
  border-color: rgba(22, 184, 217, .36);
  box-shadow: 0 22px 48px rgba(12, 32, 76, .16);
}

.product-ui .auditor-link-card:focus-visible,
.product-ui .auditor-command-bar .premium-btn:focus-visible,
.product-ui .auditor-filter:focus-visible,
.product-ui .auditor-jump-nav a:focus-visible,
.product-ui .auditor-evidence-details summary:focus-visible {
  outline: 3px solid rgba(22, 164, 220, .26);
  outline-offset: 3px;
}

.product-ui .auditor-section {
  scroll-margin-top: 92px;
}

.product-ui .auditor-filter-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.product-ui .auditor-filter {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d7e4f2;
  border-radius: 999px;
  color: #17314d;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.product-ui .auditor-filter strong {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #475569;
  background: rgba(100, 116, 139, .12);
  font-size: 11px;
}

.product-ui .auditor-filter.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0759cf, #16b8d9);
}

.product-ui .auditor-filter.active strong {
  color: #0759cf;
  background: #fff;
}

.product-ui .auditor-filter.critico:not(.active) { color: #b91c1c; background: #fff1f2; }
.product-ui .auditor-filter.alto:not(.active) { color: #b45309; background: #fff7ed; }
.product-ui .auditor-filter.medio:not(.active) { color: #9a6500; background: #fff8db; }
.product-ui .auditor-filter.baixo:not(.active) { color: #075985; background: #eef7ff; }
.product-ui .auditor-filter.info:not(.active) { color: #15803d; background: #ecfdf3; }

.product-ui .auditor-finding-list {
  display: grid;
  gap: 12px;
}

.product-ui .auditor-finding-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce7f4;
  border-radius: 16px;
  background: #f8fbff;
}

.product-ui .auditor-finding-card[hidden] {
  display: none;
}

.product-ui .auditor-finding-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.product-ui .auditor-finding-main small {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-ui .auditor-finding-main h3 {
  margin: 0 0 5px;
  color: #102033;
  font-size: 16px;
}

.product-ui .auditor-finding-main p {
  margin: 0;
  color: #53667d;
  font-size: 13px;
  line-height: 1.45;
}

.product-ui .auditor-finding-actions {
  display: grid;
  align-content: flex-start;
  gap: 9px;
}

.product-ui .auditor-recommendation {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px dashed #cbd9e8;
  border-radius: 12px;
  background: #fff;
}

.product-ui .auditor-recommendation strong {
  color: #21344f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-ui .auditor-recommendation span {
  color: #102033;
  font-weight: 800;
}

.product-ui .auditor-evidence-details {
  border: 1px solid #d7e4f2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.product-ui .auditor-evidence-details summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  color: #17314d;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.product-ui .auditor-evidence-details code {
  display: block;
  margin: 0;
  padding: 12px;
  border: 0;
  border-top: 1px solid #e3edf8;
  border-radius: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .product-ui .auditor-command-bar {
    position: static;
  }

  .product-ui .auditor-finding-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .product-ui .auditor-command-bar .premium-btn,
  .product-ui .auditor-command-bar form,
  .product-ui .auditor-jump-nav a {
    width: 100%;
  }

  .product-ui .auditor-finding-main {
    grid-template-columns: 1fr;
  }
}

.product-ui .auditor-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px rgba(12, 32, 76, .09);
}

.product-ui .auditor-search-box {
  display: grid;
  gap: 7px;
  margin: 0;
}

.product-ui .auditor-search-box span {
  color: #21344f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-ui .auditor-search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd9e8;
  border-radius: 12px;
  padding: 10px 13px;
  color: #102033;
  background: #f8fbff;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.product-ui .auditor-search-box input:focus {
  border-color: #16a4dc;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 164, 220, .14);
}

.product-ui .auditor-toolbar-info {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #d7e4f2;
  border-radius: 12px;
  color: #53667d;
  background: #fff;
  font-weight: 850;
  white-space: nowrap;
}

.product-ui .auditor-toolbar-info strong {
  color: #0759cf;
  font-size: 20px;
}

.product-ui .auditor-device-list-panel {
  padding: 18px;
}

.product-ui .auditor-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-ui .auditor-device-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce7f4;
  border-radius: 16px;
  background: #f8fbff;
}

.product-ui .auditor-device-card[hidden] {
  display: none;
}

.product-ui .auditor-device-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-ui .auditor-device-head small,
.product-ui .auditor-device-meta dt {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-ui .auditor-device-head h2 {
  margin: 4px 0 0;
  color: #102033;
  font-size: 18px;
}

.product-ui .auditor-device-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.product-ui .auditor-device-meta div {
  min-width: 0;
  padding: 11px;
  border: 1px solid #e1ebf6;
  border-radius: 12px;
  background: #fff;
}

.product-ui .auditor-device-meta dd {
  margin: 5px 0 0;
  color: #102033;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-ui .auditor-device-last {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.product-ui .auditor-device-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #e3edf8;
}

.product-ui .auditor-device-actions form {
  display: inline-flex;
  margin: 0;
}

.product-ui .auditor-disabled-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px dashed #cbd9e8;
  border-radius: 11px;
  color: #7c8da1;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.product-ui .auditor-device-first {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .product-ui .auditor-device-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .product-ui .auditor-toolbar,
  .product-ui .auditor-device-meta {
    grid-template-columns: 1fr;
  }

  .product-ui .auditor-toolbar-info,
  .product-ui .auditor-device-actions .premium-btn,
  .product-ui .auditor-device-actions form,
  .product-ui .auditor-disabled-action {
    width: 100%;
  }
}

/* VPN sessions operational polish */
.vpn-sessions-page {
  gap: 16px;
}

.vpn-hero-panel {
  border-radius: 20px;
}

.vpn-hero-panel p {
  max-width: 760px;
}

.vpn-summary-grid {
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(190px, .95fr));
}

.vpn-summary-card {
  min-height: 108px;
  padding: 16px;
}

.vpn-summary-card.primary strong {
  font-size: 32px;
}

.vpn-session-panel {
  overflow: hidden;
}

.vpn-panel-head {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ez-line);
}

.vpn-panel-head h2 {
  margin-top: 2px;
}

.vpn-search-field {
  display: grid;
  gap: 6px;
  width: min(390px, 100%);
}

.vpn-search-field span {
  color: var(--ez-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.vpn-search-field .premium-input {
  min-height: 42px;
  width: 100%;
}

.vpn-table {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--ez-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .7);
}

html[data-theme="dark"] .vpn-table {
  background: rgba(8, 19, 37, .32);
}

.vpn-table-head,
.vpn-table-row {
  display: grid;
  grid-template-columns: minmax(104px, .76fr) minmax(250px, 2.05fr) minmax(132px, .94fr) minmax(116px, .82fr) minmax(142px, .9fr) minmax(108px, .64fr);
  align-items: center;
}

.vpn-table-head {
  min-height: 46px;
  padding: 0 16px;
  color: var(--ez-muted);
  background: rgba(37, 99, 235, .06);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

html[data-theme="dark"] .vpn-table-head {
  background: rgba(37, 99, 235, .12);
}

.vpn-table-head span,
.vpn-cell {
  min-width: 0;
  padding: 12px 10px;
}

.vpn-table-row {
  min-height: 76px;
  padding: 0 16px;
  border-top: 1px solid var(--ez-line);
  transition: background var(--ez-trans), border-color var(--ez-trans);
}

.vpn-table-row:hover {
  background: rgba(14, 165, 233, .05);
}

html[data-theme="dark"] .vpn-table-row:hover {
  background: rgba(14, 165, 233, .08);
}

.vpn-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf3;
  border: 1px solid rgba(22, 163, 74, .2);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

html[data-theme="dark"] .vpn-status-pill {
  color: #bbf7d0;
  background: rgba(22, 163, 74, .14);
  border-color: rgba(34, 197, 94, .24);
}

.vpn-status-light {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

.vpn-client-cell strong {
  display: block;
  color: var(--ez-ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.vpn-client-cell small {
  display: block;
  margin-top: 3px;
  color: var(--ez-muted);
  font-size: 11px;
  font-weight: 850;
}

.vpn-ip,
.vpn-tunnel,
.vpn-uptime {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ez-ink);
  background: rgba(37, 99, 235, .07);
  border: 1px solid rgba(37, 99, 235, .11);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .vpn-ip,
html[data-theme="dark"] .vpn-tunnel,
html[data-theme="dark"] .vpn-uptime {
  background: rgba(37, 99, 235, .14);
  border-color: rgba(125, 211, 252, .13);
}

.vpn-ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.vpn-action-cell {
  display: flex;
  justify-content: flex-end;
}

.vpn-action-cell .premium-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
}

.vpn-detail-box {
  grid-column: 1 / -1;
  margin: 0 10px 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(248, 251, 255, .82);
  border: 1px dashed rgba(37, 99, 235, .2);
}

html[data-theme="dark"] .vpn-detail-box {
  background: rgba(8, 19, 37, .6);
  border-color: rgba(125, 211, 252, .16);
}

.vpn-detail-list {
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) minmax(180px, 1fr) minmax(240px, 1.35fr) repeat(2, minmax(130px, .75fr));
  gap: 14px 18px;
  margin: 0;
}

.vpn-detail-list div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-width: 0;
  padding: 0 0 12px;
}

.vpn-detail-list dt {
  color: var(--ez-muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.vpn-detail-list dd {
  margin: 2px 0 0;
  color: var(--ez-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.vpn-raw-details {
  margin-top: 16px;
}

.vpn-raw-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ez-blue-600);
}

.vpn-raw-details summary small {
  color: var(--ez-muted);
  font-size: 11px;
  font-weight: 850;
}

.vpn-technical-table {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--ez-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
}

html[data-theme="dark"] .vpn-technical-table {
  background: rgba(8, 19, 37, .38);
}

.vpn-tech-head,
.vpn-tech-row {
  display: grid;
  grid-template-columns: minmax(88px, .62fr) minmax(300px, 1.9fr) minmax(132px, .9fr) minmax(116px, .78fr) minmax(118px, .82fr) minmax(118px, .78fr) minmax(90px, .58fr);
  align-items: center;
}

.vpn-tech-head {
  min-height: 42px;
  padding: 0 14px;
  color: var(--ez-muted);
  background: rgba(37, 99, 235, .06);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

html[data-theme="dark"] .vpn-tech-head {
  background: rgba(37, 99, 235, .11);
}

.vpn-tech-head span,
.vpn-tech-row span {
  min-width: 0;
  padding: 11px 8px;
  overflow-wrap: anywhere;
}

.vpn-tech-row {
  min-height: 64px;
  padding: 0 14px;
  border-top: 1px solid var(--ez-line);
  color: var(--ez-ink);
  font-size: 12px;
  font-weight: 850;
  transition: background var(--ez-trans);
}

.vpn-tech-row:hover {
  background: rgba(14, 165, 233, .05);
}

html[data-theme="dark"] .vpn-tech-row:hover {
  background: rgba(14, 165, 233, .08);
}

.vpn-tech-tunnel,
.vpn-tech-client,
.vpn-tech-time {
  display: grid;
  gap: 3px;
}

.vpn-tech-tunnel b,
.vpn-tech-client b,
.vpn-tech-time b {
  color: var(--ez-ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.vpn-tech-tunnel small,
.vpn-tech-client small,
.vpn-tech-time small {
  color: var(--ez-muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
}

.vpn-tech-code,
.vpn-tech-time small {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.vpn-security-badge,
.vpn-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.vpn-security-badge.ok,
.vpn-status-badge.ok {
  color: #047857;
  background: #ecfdf3;
  border: 1px solid rgba(22, 163, 74, .2);
}

html[data-theme="dark"] .vpn-security-badge.ok,
html[data-theme="dark"] .vpn-status-badge.ok {
  color: #bbf7d0;
  background: rgba(22, 163, 74, .14);
  border-color: rgba(34, 197, 94, .24);
}

.vpn-security-badge.warn {
  color: #92400e;
  background: #fff8db;
  border: 1px solid rgba(202, 138, 4, .24);
}

html[data-theme="dark"] .vpn-security-badge.warn {
  color: #fde68a;
  background: rgba(202, 138, 4, .14);
  border-color: rgba(202, 138, 4, .25);
}

.vpn-empty-state {
  min-height: 150px;
}

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

  .vpn-table-head,
  .vpn-table-row {
    grid-template-columns: minmax(96px, .7fr) minmax(220px, 1.7fr) minmax(124px, .9fr) minmax(108px, .75fr) minmax(130px, .85fr) minmax(100px, .6fr);
  }
}

@media (max-width: 920px) {
  .vpn-summary-grid {
    grid-template-columns: 1fr;
  }

  .vpn-panel-head {
    align-items: stretch;
  }

  .vpn-table {
    border-radius: 16px;
  }

  .vpn-table-head {
    display: none;
  }

  .vpn-table-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 12px 14px;
  }

  .vpn-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--ez-line);
  }

  .vpn-table-row .vpn-cell:first-child {
    border-top: 0;
  }

  .vpn-cell::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--ez-muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .vpn-client-cell {
    align-items: flex-start;
  }

  .vpn-client-cell > div,
  .vpn-client-cell strong {
    text-align: right;
  }

  .vpn-action-cell {
    justify-content: space-between;
  }

  .vpn-detail-box {
    margin: 8px 0 4px;
  }

  .vpn-detail-list {
    grid-template-columns: 1fr;
  }

  .vpn-raw-details summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .vpn-tech-head {
    display: none;
  }

  .vpn-tech-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 14px;
  }

  .vpn-tech-row span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--ez-line);
    text-align: right;
  }

  .vpn-tech-row span:first-child {
    border-top: 0;
  }

  .vpn-tech-row span::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--ez-muted);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .vpn-tech-tunnel,
  .vpn-tech-client,
  .vpn-tech-time {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .vpn-tech-tunnel b,
  .vpn-tech-client b,
  .vpn-tech-time b,
  .vpn-tech-tunnel small,
  .vpn-tech-client small,
  .vpn-tech-time small {
    max-width: 180px;
    text-align: right;
  }
}

/* Company creation form */
.company-create-page {
  gap: 16px;
}

.company-create-hero-v2 {
  min-height: 136px;
  align-items: center;
  padding: 24px 28px;
  border-radius: 22px;
  box-shadow: var(--ez-shadow-sm);
}

.company-create-hero-v2 h1 {
  font-size: clamp(28px, 2.4vw, 38px);
}

.company-create-hero-v2 p {
  max-width: 680px;
}

.company-create-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .34fr);
  gap: 18px;
  align-items: start;
}

.company-create-form-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.company-create-page .premium-panel.create-section,
.company-create-page .company-create-summary-v2 {
  padding: 20px;
  border-radius: 20px;
}

.company-create-page .premium-panel.create-section:hover,
.company-create-page .company-create-summary-v2:hover {
  transform: none;
  box-shadow: var(--ez-shadow-sm);
}

.create-section-head {
  align-items: center;
  margin-bottom: 16px;
}

.create-section-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.create-step-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: #bde7ff;
  background: rgba(14, 116, 144, .16);
  border: 1px solid rgba(22, 184, 217, .3);
  font-weight: 950;
}

.company-create-page .create-section h2,
.company-create-summary-v2 h2 {
  margin-top: 2px;
  font-size: 19px;
  line-height: 1.18;
}

.company-create-page .create-section p {
  max-width: 660px;
  font-size: 13px;
  line-height: 1.45;
}

.create-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.company-fields-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .5fr);
}

.vpn-fields-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr) minmax(210px, .7fr);
}

.integrations-fields-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.create-field-wide {
  grid-column: 1 / -1;
}

.create-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ez-ink);
  font-size: 13px;
  font-weight: 900;
}

.create-field small {
  color: var(--ez-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.company-create-page .premium-input {
  min-height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.company-create-page .premium-input::placeholder {
  color: rgba(100, 116, 139, .8);
}

html[data-theme="dark"] .company-create-page .premium-input::placeholder {
  color: rgba(159, 176, 200, .78);
}

.company-create-page .premium-input:focus,
.create-file-control:focus-within {
  border-color: rgba(26, 140, 255, .62);
  box-shadow: 0 0 0 4px rgba(26, 140, 255, .13);
}

.create-readonly-card {
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(14, 116, 144, .08);
  border: 1px solid rgba(22, 184, 217, .18);
}

.create-readonly-card span,
.create-summary-list span {
  color: var(--ez-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.create-readonly-card strong {
  margin-top: 5px;
  color: var(--ez-ink);
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.create-file-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--ez-ink);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--ez-line);
  cursor: pointer;
  transition: border-color var(--ez-trans), box-shadow var(--ez-trans), background var(--ez-trans);
}

html[data-theme="dark"] .create-file-control {
  background: rgba(12, 25, 48, .86);
}

.create-file-control::after {
  content: "Upload";
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #e8f7ff;
  background: linear-gradient(135deg, var(--ez-blue-700), var(--ez-cyan-500));
  font-size: 11px;
  font-weight: 950;
}

.create-file-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.create-file-control span {
  max-width: calc(100% - 78px);
  overflow: hidden;
  color: var(--ez-muted);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.premium-btn.tiny {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  box-shadow: none;
}

.create-device-block {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ez-line);
}

.create-device-block h3 {
  margin: 4px 0 0;
  color: var(--ez-ink);
  font-size: 17px;
  line-height: 1.2;
}

.create-device-block p {
  margin: 5px 0 0;
}

.create-device-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.company-create-page .choice-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.company-create-page .device-option {
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 14px 10px;
  border-radius: 16px;
  color: var(--ez-text);
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--ez-line);
  cursor: pointer;
  text-align: center;
  transition: transform var(--ez-trans), border-color var(--ez-trans), background var(--ez-trans), box-shadow var(--ez-trans);
}

html[data-theme="dark"] .company-create-page .device-option {
  background: rgba(6, 14, 27, .45);
}

.company-create-page .device-option:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 140, 255, .4);
}

.company-create-page .choice-radio:checked + .device-option {
  color: #ecfff6;
  background:
    linear-gradient(180deg, rgba(22, 163, 74, .22), rgba(14, 116, 144, .12)),
    rgba(12, 25, 48, .72);
  border-color: rgba(34, 197, 94, .72);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
}

.company-create-page .device-option img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.company-create-page .device-option strong {
  color: var(--ez-ink);
  font-size: 14px;
  line-height: 1.15;
}

.company-create-page .choice-radio:checked + .device-option strong {
  color: #fff;
}

.company-create-page .device-option span {
  color: var(--ez-muted);
  font-size: 11px;
  font-weight: 850;
}

.company-create-page .choice-radio:checked + .device-option span {
  color: #bff7d2;
}

.create-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0 0;
}

.create-form-actions .premium-btn {
  min-width: 136px;
}

.company-create-summary-v2 {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.company-create-summary-v2 header {
  display: grid;
  gap: 4px;
}

.create-summary-list {
  display: grid;
  gap: 10px;
}

.create-summary-list > div {
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(14, 116, 144, .08);
  border: 1px solid rgba(22, 184, 217, .16);
}

.create-summary-list strong {
  color: var(--ez-ink);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.create-safe-notes-v2 {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.create-safe-notes-v2 span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--ez-muted);
  background: rgba(15, 23, 42, .04);
  border: 1px solid var(--ez-line);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

html[data-theme="dark"] .create-safe-notes-v2 span {
  background: rgba(5, 12, 23, .42);
}

@media (max-width: 1220px) {
  .company-create-shell {
    grid-template-columns: 1fr;
  }

  .company-create-summary-v2 {
    position: static;
  }

  .create-summary-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .company-create-hero-v2 {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .company-fields-grid,
  .vpn-fields-grid,
  .integrations-fields-grid,
  .create-summary-list {
    grid-template-columns: 1fr;
  }

  .create-device-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .company-create-page .premium-panel.create-section,
  .company-create-page .company-create-summary-v2 {
    padding: 16px;
    border-radius: 18px;
  }

  .create-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .create-password-row,
  .create-device-picker {
    grid-template-columns: 1fr;
  }

  .create-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .create-form-actions .premium-btn {
    width: 100%;
  }
}

.panel-actions-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-actions-inline form {
  margin: 0;
}

.pppoe-device-picker {
  position: relative;
  display: inline-flex;
  z-index: 120;
}

.pppoe-device-picker summary {
  list-style: none;
  outline: none;
  user-select: none;
}

.pppoe-device-picker summary::-webkit-details-marker {
  display: none;
}

.pppoe-device-picker summary.modern-action {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.pppoe-device-picker summary.modern-action::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.pppoe-device-picker[open] summary.modern-action {
  color: #10223d;
  border-color: #b9daf8;
  background: #f8fbff;
  box-shadow: 0 14px 28px rgba(2, 8, 23, .24), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.pppoe-device-picker-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(390px, 86vw);
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #b9daf8;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f1f7ff);
  box-shadow: 0 24px 60px rgba(2, 8, 23, .32);
}

.pppoe-device-picker-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 28px;
  width: 12px;
  height: 12px;
  border-left: 1px solid #b9daf8;
  border-top: 1px solid #b9daf8;
  background: #ffffff;
  transform: rotate(45deg);
}

.pppoe-device-picker-menu > strong {
  display: block;
  padding: 6px 8px 12px;
  color: #55708e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pppoe-device-picker-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d9e8f8;
  border-radius: 14px;
  color: #10223d;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.pppoe-device-picker-menu a + a {
  margin-top: 8px;
}

.pppoe-device-picker-menu a:hover {
  border-color: #8cc8f4;
  background: #eef7ff;
  transform: translateY(-1px);
}

.pppoe-device-picker-menu b,
.pppoe-device-picker-menu small {
  display: block;
}

.pppoe-device-picker-menu small {
  margin-top: 3px;
  color: #607895;
  font-size: 12px;
  font-weight: 800;
}

.pppoe-device-picker-menu em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.pppoe-summary-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--ez-line);
  border-radius: 16px;
  background: rgba(15, 23, 42, .04);
}

html[data-theme="dark"] .pppoe-summary-strip {
  background: rgba(6, 15, 30, .45);
}

.pppoe-summary-strip strong {
  color: var(--ez-text);
  font-size: 16px;
}

.pppoe-summary-strip small {
  color: var(--ez-muted);
  font-weight: 800;
}

.pppoe-device-list {
  display: grid;
  gap: 14px;
}

.pppoe-device-card {
  padding: 18px;
  border: 1px solid var(--ez-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  scroll-margin-top: 96px;
}

.pppoe-device-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pppoe-device-head strong {
  display: block;
  color: var(--ez-text);
  font-size: 18px;
}

.pppoe-device-head small {
  display: block;
  margin-top: 4px;
  color: var(--ez-muted);
  font-weight: 800;
}

.compact-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 12px;
}

.pppoe-interface-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.pppoe-interface-pill {
  min-height: 92px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .05);
}

html[data-theme="dark"] .pppoe-interface-pill {
  background: rgba(8, 18, 34, .65);
}

.pppoe-interface-pill.ok {
  border-color: rgba(34, 197, 94, .35);
}

.pppoe-interface-pill.warn {
  border-color: rgba(245, 158, 11, .42);
}

.pppoe-interface-pill.err {
  border-color: rgba(239, 68, 68, .5);
}

.pppoe-interface-pill strong,
.pppoe-interface-pill span,
.pppoe-interface-pill small {
  display: block;
}

.pppoe-interface-pill strong {
  color: var(--ez-text);
}

.pppoe-interface-pill span {
  margin-top: 6px;
  color: var(--ez-muted);
  font-size: 12px;
  font-weight: 800;
}

.pppoe-interface-pill small {
  margin-top: 8px;
  color: var(--ez-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-ui .pppoe-live-page .premium-table-wrap {
  border-radius: 14px;
}

.product-ui .pppoe-live-page .premium-table {
  min-width: 860px;
}

.product-ui .pppoe-live-page .premium-table th {
  color: #40516d;
  background: #f8fbff;
}

.product-ui .pppoe-live-page .premium-table td {
  padding: 14px 16px;
}

.product-ui .pppoe-live-page .premium-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.product-ui .pppoe-live-page .premium-table tbody tr:hover {
  background: #eef6ff;
}

.pppoe-client-cell {
  min-width: 230px;
}

.pppoe-client-name {
  display: block;
  margin-bottom: 4px;
  color: #0b1f3d;
  font-size: 15px;
}

.pppoe-client-meta,
.product-ui .pppoe-live-page .muted {
  display: block;
  margin-top: 3px;
  color: #7587a3;
  font-size: 12px;
  font-weight: 850;
}

.pppoe-uptime-cell {
  min-width: 150px;
}

.pppoe-address-cell,
.pppoe-location-cell {
  min-width: 150px;
}

.pppoe-address-cell strong,
.pppoe-location-cell strong {
  display: block;
  color: #0f1d33;
}

.pppoe-address-cell span,
.pppoe-location-cell span {
  display: block;
  margin-top: 5px;
  color: #7587a3;
  font-size: 12px;
  font-weight: 850;
}

.pppoe-actions-cell {
  min-width: 230px;
}

.pppoe-actions-cell,
.pppoe-actions-cell form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pppoe-actions-cell form {
  margin: 0;
}

.pppoe-more-row td {
  padding: 0 16px 16px !important;
  background: #f6faff;
  border-top: 0;
}

.pppoe-more-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e7f6;
  border-radius: 14px;
  background: #fff;
}

.pppoe-more-panel div {
  min-width: 0;
}

.pppoe-more-panel small,
.pppoe-more-panel span {
  display: block;
  color: #7587a3;
  font-size: 12px;
  font-weight: 850;
}

.pppoe-more-panel strong {
  display: block;
  margin: 4px 0;
  color: #0f1d33;
  overflow-wrap: anywhere;
}

.pppoe-live-traffic {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid #d9e7f6;
  border-radius: 12px;
  background: #f8fbff;
}

.pppoe-live-traffic-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pppoe-live-traffic-head em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.pppoe-sparkline {
  display: block;
  width: 100%;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
}

.pppoe-sparkline polyline {
  fill: none;
  stroke: #0ea5e9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.pppoe-history-traffic {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid #d9e7f6;
  border-radius: 12px;
  background: #ffffff;
}

.pppoe-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pppoe-history-head .premium-btn {
  min-height: 32px;
  white-space: nowrap;
}

.pppoe-history-stats,
.pppoe-history-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pppoe-history-stats {
  margin-bottom: 10px;
}

.pppoe-history-stats span,
.pppoe-history-legend span {
  color: #667d9c;
  font-size: 12px;
  font-weight: 900;
}

.pppoe-history-chart {
  display: block;
  width: 100%;
  height: 86px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, .14) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #eef6ff);
  background-size: 24px 100%, 100% 100%;
}

.pppoe-history-chart polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.pppoe-history-chart polyline.down {
  stroke: #0284c7;
}

.pppoe-history-chart polyline.up {
  stroke: #16a34a;
}

.pppoe-history-legend {
  margin-top: 9px;
}

.pppoe-history-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 999px;
  vertical-align: -1px;
}

.pppoe-history-legend i.down {
  background: #0284c7;
}

.pppoe-history-legend i.up {
  background: #16a34a;
}

.pppoe-uptime-cell small,
.pppoe-speed-cell span,
.pppoe-total-cell span {
  display: block;
  margin-top: 5px;
  color: #7587a3;
  font-size: 12px;
  font-weight: 850;
}

.pppoe-uptime-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 7px 10px;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  color: #12365f;
  background: #edf6ff;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.pppoe-uptime-badge.medium {
  color: #166534;
  background: #ecfdf3;
  border-color: #b8ebc9;
}

.pppoe-uptime-badge.long {
  color: #854d0e;
  background: #fff7d6;
  border-color: #f5da89;
}

.pppoe-speed-cell,
.pppoe-total-cell {
  min-width: 132px;
  white-space: nowrap;
}

.pppoe-speed-cell strong,
.pppoe-total-cell strong {
  display: block;
  color: #0f1d33;
}

html[data-theme="dark"] .product-ui .pppoe-live-page .premium-table th {
  color: #c8d7ee;
  background: rgba(15, 29, 55, .94);
}

html[data-theme="dark"] .product-ui .pppoe-live-page .premium-table tbody tr:nth-child(even) {
  background: rgba(15, 29, 55, .28);
}

html[data-theme="dark"] .pppoe-client-name,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-address-cell strong,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-location-cell strong,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-more-panel strong,
html[data-theme="dark"] .pppoe-speed-cell strong,
html[data-theme="dark"] .pppoe-total-cell strong {
  color: #edf5ff;
}

html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-more-panel small,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-more-panel span,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-address-cell span,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-location-cell span {
  color: #b8c6dc;
}

html[data-theme="dark"] .pppoe-more-row td {
  background: rgba(15, 29, 55, .28);
}

html[data-theme="dark"] .pppoe-more-panel {
  background: #172235;
  border-color: rgba(148, 163, 184, .34);
}

html[data-theme="dark"] .pppoe-live-traffic {
  background: #101a2b;
  border-color: rgba(148, 163, 184, .36);
}

html[data-theme="dark"] .pppoe-live-traffic-head em {
  color: #063b32;
  background: #99f6e4;
}

html[data-theme="dark"] .pppoe-sparkline {
  background: linear-gradient(180deg, #0b1423, #0e1b2f);
}

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

.product-ui .pppoe-live-page .premium-table-wrap {
  border: 1px solid #d8e3f1;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  background: #ffffff;
}

.product-ui .pppoe-live-page .premium-table {
  min-width: 980px;
}

.product-ui .pppoe-live-page .premium-table th {
  padding: 13px 16px;
  color: #dce8f8;
  background: #1e2d47;
  letter-spacing: .08em;
}

.product-ui .pppoe-live-page .premium-table td {
  color: #10223d;
  background: #ffffff;
}

.product-ui .pppoe-live-page .premium-table tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.product-ui .pppoe-live-page .premium-table tbody tr:hover td {
  background: #edf6ff;
}

.product-ui .pppoe-client-name {
  color: #071a33;
  font-size: 15px;
  font-weight: 950;
}

.product-ui .pppoe-client-link {
  display: inline-flex;
  text-decoration: none;
}

.product-ui .pppoe-client-link:hover {
  color: #0759cf;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-ui .pppoe-address-cell strong,
.product-ui .pppoe-location-cell strong {
  color: #12304f;
  font-size: 14px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.product-ui .pppoe-address-cell span,
.product-ui .pppoe-location-cell span {
  color: #68809f;
  font-size: 12px;
  font-weight: 900;
}

.product-ui .pppoe-location-cell span {
  display: inline-flex;
  max-width: 100%;
  margin-top: 7px;
  padding: 5px 8px;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  background: #eef6ff;
  color: #41617f;
}

.product-ui .pppoe-actions-cell {
  justify-content: flex-start;
}

.product-ui .pppoe-actions-cell .premium-btn {
  min-height: 36px;
  border-radius: 12px;
  font-weight: 950;
}

.product-ui .pppoe-actions-cell [data-pppoe-more] {
  color: #0759cf;
  background: #eef6ff;
  border-color: #bfdbfe;
}

.product-ui .pppoe-actions-cell form .premium-btn {
  color: #17314d;
  background: #ffffff;
  border-color: #d2e1f1;
}

.product-ui .pppoe-more-row td,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-more-row td {
  padding: 0 16px 18px !important;
  background: #f1f6fc !important;
}

.product-ui .pppoe-more-panel,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-more-panel {
  gap: 14px;
  padding: 16px;
  border: 1px solid #d6e4f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.product-ui .pppoe-more-panel > div:not(.pppoe-live-traffic):not(.pppoe-history-traffic) {
  padding: 12px;
  border: 1px solid #e4edf7;
  border-radius: 14px;
  background: #fbfdff;
}

.product-ui .pppoe-more-panel small,
.product-ui .pppoe-more-panel span,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-more-panel small,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-more-panel span {
  color: #667d9c;
}

.product-ui .pppoe-more-panel strong,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-more-panel strong {
  color: #10223d;
}

.product-ui .pppoe-live-traffic,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-live-traffic {
  border: 1px solid #c9def6;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff, #edf6ff);
}

.product-ui .pppoe-history-traffic,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-history-traffic {
  border: 1px solid #c9def6;
  border-radius: 16px;
  background: #ffffff;
}

.product-ui .pppoe-history-stats span,
.product-ui .pppoe-history-legend span,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-history-stats span,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-history-legend span {
  color: #667d9c;
}

.product-ui .pppoe-live-traffic-head em,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-live-traffic-head em {
  color: #064e3b;
  background: #bbf7d0;
}

.product-ui .pppoe-sparkline,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-sparkline {
  height: 64px;
  border: 1px solid #dbeafe;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, .14) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #eaf4ff);
  background-size: 24px 100%, 100% 100%;
}

.product-ui .pppoe-sparkline polyline {
  stroke: #0284c7;
}

.product-ui .pppoe-history-chart,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-history-chart {
  height: 86px;
  border: 1px solid #dbeafe;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, .14) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #eaf4ff);
  background-size: 24px 100%, 100% 100%;
}

.product-ui .pppoe-client-lookup-strip {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(125, 211, 252, .28);
  border-radius: 18px;
  background: linear-gradient(135deg, #0d2344 0%, #083d62 54%, #0b7aa3 100%);
  box-shadow: 0 16px 34px rgba(8, 28, 57, .18);
}

.product-ui .pppoe-client-lookup-title {
  display: grid;
  gap: 3px;
  min-width: 190px;
}

.product-ui .pppoe-client-lookup-title span {
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-ui .pppoe-client-lookup-title strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
}

.product-ui .pppoe-client-lookup-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.product-ui .pppoe-client-lookup-bar input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(219, 234, 254, .42);
  border-radius: 13px;
  padding: 10px 13px;
  color: #10223d;
  background: rgba(255, 255, 255, .96);
  font: inherit;
  font-weight: 900;
  outline: none;
}

.product-ui .pppoe-client-lookup-bar input:focus {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(125, 211, 252, .2);
}

.product-ui .pppoe-client-lookup-bar .premium-btn {
  min-height: 44px;
  border-radius: 13px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .14);
  font-weight: 950;
}

.product-ui .pppoe-client-lookup-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 9px);
  z-index: 30;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #d7e6f7;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(8, 28, 57, .2);
}

.product-ui .pppoe-client-lookup-results[hidden] {
  display: none;
}

.product-ui .pppoe-client-lookup-empty {
  padding: 14px;
  border-radius: 12px;
  color: #526981;
  background: #f6faff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.product-ui .pppoe-client-lookup-result {
  display: grid;
  grid-template-columns: 90px minmax(150px, 1.4fr) minmax(140px, 1fr) minmax(150px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #dbe7f5;
  border-radius: 13px;
  color: #10223d;
  background: #fbfdff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.product-ui .pppoe-client-lookup-result:hover {
  border-color: #9bd3ff;
  background: #eef6ff;
}

.product-ui .pppoe-client-lookup-result .premium-badge {
  justify-self: start;
}

.product-ui .pppoe-client-lookup-result strong {
  display: block;
  color: #10223d;
  font-size: 14px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.product-ui .pppoe-client-lookup-result small {
  display: block;
  margin-top: 3px;
  color: #667d9c;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-ui .pppoe-ranking-panel .premium-panel-head {
  align-items: flex-start;
  gap: 16px;
}

.product-ui .pppoe-ranking-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.product-ui .pppoe-ranking-filters a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #d2e1f1;
  border-radius: 999px;
  color: #17314d;
  background: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.product-ui .pppoe-ranking-filters a.active,
.product-ui .pppoe-ranking-filters a:hover {
  color: #063b72;
  border-color: #9bd3ff;
  background: #e8f5ff;
}

.product-ui .pppoe-ranking-wrap {
  box-shadow: none;
}

.product-ui .pppoe-ranking-table {
  min-width: 920px;
}

.product-ui .pppoe-rank-number {
  width: 58px;
  color: #0759cf !important;
  font-size: 18px;
  font-weight: 950;
}

.product-ui .pppoe-ranking-consumption {
  min-width: 240px;
}

.product-ui .pppoe-ranking-consumption strong {
  display: block;
  color: #10223d;
  font-size: 16px;
  font-weight: 950;
}

.product-ui .pppoe-ranking-consumption span {
  display: block;
  margin-top: 3px;
  color: #667d9c;
  font-size: 12px;
  font-weight: 900;
}

.product-ui .pppoe-ranking-bar {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1fb;
}

.product-ui .pppoe-ranking-bar i {
  display: block;
  width: var(--rank-bar, 0%);
  min-width: 8px;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0284c7, #16a34a);
}

.product-ui .pppoe-client-chart-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.product-ui .pppoe-client-chart-summary span {
  padding: 7px 10px;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  color: #41617f;
  background: #eef6ff;
  font-size: 12px;
  font-weight: 900;
}

.product-ui .pppoe-client-chart-shell {
  position: relative;
  padding: 14px 16px 16px 68px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  overflow: visible;
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, .14), transparent 28%),
    linear-gradient(180deg, #f8fbff, #eaf4ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 16px 34px rgba(15, 23, 42, .08);
}

.product-ui .pppoe-client-chart-shell::before {
  content: "";
  position: absolute;
  left: 68px;
  right: 16px;
  top: 14px;
  bottom: 16px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(96, 165, 250, .14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96, 165, 250, .14) 1px, transparent 1px);
  background-size: 34px 100%, 100% 25%;
  pointer-events: none;
}

.product-ui .pppoe-client-chart-scale {
  position: absolute;
  left: 16px;
  top: 18px;
  bottom: 22px;
  display: grid;
  align-content: space-between;
  color: #6a7f9d;
  font-size: 11px;
  font-weight: 950;
  text-align: right;
}

.product-ui .pppoe-client-chart {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: clamp(190px, 24vh, 230px);
  border-radius: 14px;
}

.product-ui .pppoe-client-chart path,
.product-ui .pppoe-client-chart circle,
.product-ui .pppoe-client-chart line {
  vector-effect: non-scaling-stroke;
}

.product-ui .pppoe-client-chart .client-area {
  stroke: none;
}

.product-ui .pppoe-client-chart .client-area.down {
  fill: url(#pppoeDownArea);
}

.product-ui .pppoe-client-chart .client-area.up {
  fill: url(#pppoeUpArea);
}

.product-ui .pppoe-client-chart .client-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  filter: drop-shadow(0 3px 3px rgba(15, 23, 42, .12));
}

.product-ui .pppoe-client-chart .client-line.down {
  stroke: #0284c7;
}

.product-ui .pppoe-client-chart .client-line.up {
  stroke: #16a34a;
}

.product-ui .pppoe-client-chart .client-dot {
  fill: #ffffff;
  stroke-width: 2.6;
}

.product-ui .pppoe-client-chart .client-dot.down {
  stroke: #0284c7;
}

.product-ui .pppoe-client-chart .client-dot.up {
  stroke: #16a34a;
}

.product-ui .pppoe-client-chart .client-guide {
  stroke: #334155;
  stroke-width: 1.1;
  stroke-dasharray: 3 3;
  opacity: .58;
}

.product-ui .pppoe-client-chart .client-focus {
  fill: #ffffff;
  stroke-width: 3.2;
  filter: drop-shadow(0 4px 7px rgba(15, 23, 42, .22));
}

.product-ui .pppoe-client-chart .client-focus.down {
  stroke: #0284c7;
}

.product-ui .pppoe-client-chart .client-focus.up {
  stroke: #16a34a;
}

.product-ui .pppoe-client-chart .client-hit-area {
  fill: transparent;
  cursor: crosshair;
}

.product-ui .pppoe-client-chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 156px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 14px;
  color: #10223d;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
  transform: translateX(-50%);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.product-ui .pppoe-client-chart-tooltip strong,
.product-ui .pppoe-client-chart-tooltip span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.product-ui .pppoe-client-chart-tooltip strong {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 950;
}

.product-ui .pppoe-client-chart-tooltip span {
  color: #5d728f;
  font-size: 12px;
  font-weight: 900;
}

.product-ui .pppoe-client-chart-tooltip b {
  color: #10223d;
  font-weight: 950;
}

.product-ui .pppoe-client-chart-tooltip i,
.product-ui .pppoe-client-chart-selected i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
}

.product-ui .pppoe-client-chart-tooltip i.down {
  background: #0284c7;
}

.product-ui .pppoe-client-chart-tooltip i.up {
  background: #16a34a;
}

.product-ui .pppoe-client-chart-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 4px 0;
  color: #6a7f9d;
  font-size: 12px;
  font-weight: 900;
}

.product-ui .pppoe-client-chart-time strong {
  color: #41617f;
  font-weight: 950;
}

.product-ui .pppoe-client-chart-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 4px 0;
  color: #5d728f;
  font-size: 12px;
  font-weight: 900;
}

.product-ui .pppoe-client-chart-selected[hidden] {
  display: none;
}

.product-ui .pppoe-client-chart-selected span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  background: #f7fbff;
}

.product-ui .pppoe-client-chart-selected strong {
  color: #10223d;
  font-weight: 950;
}

html[data-theme="dark"] .product-ui .pppoe-live-page .premium-table td,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-client-name,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-address-cell strong,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-location-cell strong {
  color: #10223d;
}

html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-address-cell span,
html[data-theme="dark"] .product-ui .pppoe-live-page .pppoe-location-cell span {
  color: #68809f;
}

.product-ui .ipmon-hero {
  background:
    linear-gradient(135deg, rgba(13, 48, 96, .96), rgba(15, 126, 159, .94)),
    #10223d;
  border: 1px solid rgba(125, 197, 231, .24);
  color: #fff;
}

.product-ui .ipmon-hero h1,
.product-ui .ipmon-hero p,
.product-ui .ipmon-hero .premium-kicker {
  color: #fff;
}

.product-ui .ipmon-command-center {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.product-ui .ipmon-health-card,
.product-ui .ipmon-stats-strip article,
.product-ui .ipmon-interface-board,
.product-ui .ipmon-tools-panel,
.product-ui .ipmon-attention-panel {
  border: 1px solid #d7e5f3;
  box-shadow: 0 16px 36px rgba(11, 27, 49, .08);
}

.product-ui .ipmon-health-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  background: #10213b;
  color: #fff;
}

.product-ui .ipmon-health-card::after {
  content: "";
  position: absolute;
  right: -56px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(14, 165, 233, .22);
}

.product-ui .ipmon-health-card.err::after {
  background: rgba(239, 68, 68, .2);
}

.product-ui .ipmon-health-card.warn::after {
  background: rgba(245, 158, 11, .22);
}

.product-ui .ipmon-health-card .premium-kicker,
.product-ui .ipmon-health-card small {
  color: #b9cbe2;
  position: relative;
  z-index: 1;
}

.product-ui .ipmon-health-card > strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.product-ui .ipmon-health-ring {
  --ipmon-ring: #16a34a;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  align-self: flex-end;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #10213b 58%, transparent 59%),
    conic-gradient(var(--ipmon-ring) var(--ipmon-online), rgba(255, 255, 255, .17) 0);
}

.product-ui .ipmon-health-card.err .ipmon-health-ring {
  --ipmon-ring: #ef4444;
}

.product-ui .ipmon-health-card.warn .ipmon-health-ring {
  --ipmon-ring: #f59e0b;
}

.product-ui .ipmon-health-ring span {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.product-ui .ipmon-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-ui .ipmon-stats-strip article {
  min-height: 102px;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.product-ui .ipmon-stats-strip small,
.product-ui .ipmon-stats-strip span {
  display: block;
  color: #687b95;
  font-weight: 900;
}

.product-ui .ipmon-stats-strip strong {
  display: block;
  margin: 8px 0 4px;
  color: #10223d;
  font-size: 28px;
  font-weight: 950;
}

.product-ui .ipmon-interface-board,
.product-ui .ipmon-tools-panel,
.product-ui .ipmon-attention-panel {
  margin-bottom: 18px;
  border-radius: 22px;
  padding: 20px 22px;
  background: #fff;
}

.product-ui .ipmon-interface-board > header,
.product-ui .ipmon-attention-panel > header,
.product-ui .ipmon-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.product-ui .ipmon-interface-board h2,
.product-ui .ipmon-attention-panel h2 {
  margin: 4px 0 0;
  color: #10223d;
  font-size: 22px;
}

.product-ui .ipmon-interface-board header small {
  color: #657a97;
  font-weight: 900;
}

.product-ui .ipmon-interface-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.product-ui .ipmon-interface-card {
  text-align: left;
  min-height: 92px;
  border: 1px solid #d7e5f3;
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fbff;
  color: #10223d;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.product-ui .ipmon-interface-card:hover,
.product-ui .ipmon-interface-card.active {
  transform: translateY(-2px);
  border-color: #0ea5e9;
  background: #eef8ff;
}

.product-ui .ipmon-interface-card.err {
  border-color: #fecaca;
  background: #fff7f7;
}

.product-ui .ipmon-interface-card.warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.product-ui .ipmon-interface-card strong,
.product-ui .ipmon-interface-card span,
.product-ui .ipmon-interface-card small {
  display: block;
}

.product-ui .ipmon-interface-card strong {
  font-size: 15px;
  font-weight: 950;
}

.product-ui .ipmon-interface-card span {
  margin-top: 8px;
  color: #0f766e;
  font-weight: 950;
}

.product-ui .ipmon-interface-card.err span {
  color: #dc2626;
}

.product-ui .ipmon-interface-card small {
  margin-top: 4px;
  color: #6b7d97;
  font-weight: 900;
}

.product-ui .ipmon-tools-panel {
  display: grid;
  gap: 14px;
}

.product-ui .ipmon-search-row label {
  flex: 1 1 420px;
  display: grid;
  gap: 7px;
  color: #61748f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.product-ui .ipmon-search-row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  padding: 0 14px;
  background: #f8fbff;
  color: #10223d;
  font: inherit;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.product-ui .ipmon-filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-ui .ipmon-filter-buttons button,
.product-ui .ipmon-add-drawer summary {
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  background: #fff;
  color: #10223d;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.product-ui .ipmon-filter-buttons button {
  min-height: 40px;
  padding: 0 14px;
}

.product-ui .ipmon-filter-buttons button.active,
.product-ui .ipmon-filter-buttons button:hover {
  border-color: #0ea5e9;
  background: #e8f6ff;
}

.product-ui .ipmon-add-drawer summary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  list-style: none;
}

.product-ui .ipmon-add-drawer summary::-webkit-details-marker {
  display: none;
}

.product-ui .ipmon-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}

.product-ui .ipmon-add-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  padding: 14px 16px;
  background: #f8fbff;
  color: #10223d;
  font: inherit;
  font-weight: 800;
  line-height: 1.45;
}

.product-ui .ipmon-add-form textarea:focus {
  outline: 2px solid rgba(14, 141, 211, .22);
  border-color: #88bdea;
}

.product-ui .ipmon-attention-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.product-ui .ipmon-attention-list button {
  text-align: left;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff7ed;
  color: #10223d;
  font: inherit;
  cursor: pointer;
}

.product-ui .ipmon-attention-list strong,
.product-ui .ipmon-attention-list span {
  display: block;
}

.product-ui .ipmon-attention-list strong {
  font-weight: 950;
}

.product-ui .ipmon-attention-list span {
  margin-top: 5px;
  color: #8a5c1f;
  font-size: 12px;
  font-weight: 900;
}

.product-ui .ipmon-list-panel {
  overflow: hidden;
}

.product-ui .ipmon-table-wrap {
  border-radius: 18px;
  border: 1px solid #d7e5f3;
}

.product-ui .ipmon-table {
  border-collapse: separate;
  border-spacing: 0;
}

.product-ui .ipmon-table td strong,
.product-ui .ipmon-table td small {
  display: block;
}

.product-ui .ipmon-table td small {
  margin-top: 4px;
}

.product-ui .ipmon-table tbody tr {
  position: relative;
}

.product-ui .ipmon-table tbody tr::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: #16a34a;
  opacity: .9;
}

.product-ui .ipmon-table tbody tr.err::before {
  background: #dc2626;
}

.product-ui .ipmon-table tbody tr.warn::before {
  background: #f59e0b;
}

.product-ui .ipmon-table tbody tr.pulse {
  animation: ipmonPulse 1.35s ease;
}

@keyframes ipmonPulse {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(14, 165, 233, 0); }
  35% { box-shadow: inset 0 0 0 999px rgba(14, 165, 233, .12); }
}

.product-ui .ipmon-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}

.product-ui .ipmon-status-chip.err {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

.product-ui .ipmon-status-chip.warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #a16207;
}

.product-ui .ipmon-status-chip i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.product-ui .ipmon-latency-cell {
  min-width: 128px;
}

.product-ui .ipmon-latency-cell > span {
  display: block;
  height: 8px;
  margin: 7px 0 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef8;
}

.product-ui .ipmon-latency-cell > span i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: #16a34a;
}

.product-ui .ipmon-latency-cell.warn > span i {
  background: #f59e0b;
}

.product-ui .ipmon-latency-cell.err > span i {
  background: #ef4444;
}

.product-ui .ipmon-latency-text {
  display: grid;
  gap: 4px;
  min-width: 86px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.product-ui .ipmon-latency-text strong {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  color: #10223d;
  font-size: 14px;
  font-weight: 950;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.product-ui .ipmon-latency-text strong i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
  background: #16a34a;
}

.product-ui .ipmon-latency-text.lat-warn strong i {
  background: #f59e0b;
}

.product-ui .ipmon-latency-text.lat-err strong i {
  background: #ef4444;
}

.product-ui .ipmon-latency-text small {
  margin-top: 0;
  color: #6b7d95;
  font-size: 12px;
  font-weight: 900;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .product-ui .ipmon-page .premium-table td,
html[data-theme="dark"] .product-ui .ipmon-page .premium-table td strong {
  color: #10223d;
}

html[data-theme="dark"] .product-ui .ipmon-stats-strip article,
html[data-theme="dark"] .product-ui .ipmon-interface-board,
html[data-theme="dark"] .product-ui .ipmon-tools-panel,
html[data-theme="dark"] .product-ui .ipmon-attention-panel {
  background: #fff;
}

html[data-theme="dark"] .product-ui .ipmon-add-form textarea {
  background: #f8fbff;
  color: #10223d;
}

.product-ui .ipmon-hero.compact {
  margin-bottom: 24px;
}

.product-ui .ipmon-clean-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  border: 1px solid #d7e5f3;
  border-radius: 22px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(11, 27, 49, .08);
}

.product-ui .ipmon-clean-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.product-ui .ipmon-clean-head h2 {
  margin: 4px 0 0;
  color: #10223d;
  font-size: 24px;
  font-weight: 950;
}

.product-ui .ipmon-compact-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-ui .ipmon-compact-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d6e5f4;
  border-radius: 999px;
  background: #f7fbff;
  color: #5c708b;
  font-size: 12px;
  font-weight: 900;
}

.product-ui .ipmon-compact-stats b {
  color: #10223d;
  font-weight: 950;
}

.product-ui .ipmon-interface-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
}

.product-ui .ipmon-interface-filters button {
  min-height: 34px;
  flex: 0 0 auto;
  border: 1px solid #d6e5f4;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: #10223d;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.product-ui .ipmon-interface-filters button.active,
.product-ui .ipmon-interface-filters button:hover {
  border-color: #0ea5e9;
  background: #eaf7ff;
}

.product-ui .ipmon-interface-filters small {
  margin-left: 4px;
  color: #637992;
  font-weight: 950;
}

.product-ui .ipmon-table tbody tr,
html[data-theme="dark"] .product-ui .ipmon-table tbody tr {
  background: #fff !important;
}

.product-ui .ipmon-table tbody tr:nth-child(even),
html[data-theme="dark"] .product-ui .ipmon-table tbody tr:nth-child(even) {
  background: #f7faff !important;
}

.product-ui .ipmon-table tbody tr::before {
  content: none;
}

.product-ui .ipmon-list-panel .premium-panel-head {
  align-items: center;
}

html[data-theme="dark"] .product-ui .ipmon-clean-panel {
  background: #fff;
}

html[data-theme="dark"] .product-ui .ipmon-clean-head h2,
html[data-theme="dark"] .product-ui .ipmon-compact-stats b,
html[data-theme="dark"] .product-ui .ipmon-interface-filters button,
html[data-theme="dark"] .product-ui .ipmon-search-row input {
  color: #10223d;
}

html[data-theme="dark"] .product-ui .ipmon-latency-text strong {
  color: #10223d;
}

@media (max-width: 760px) {
  .product-ui .pppoe-client-lookup-strip,
  .product-ui .pppoe-client-lookup-bar,
  .product-ui .pppoe-client-lookup-result {
    grid-template-columns: 1fr;
  }

  .product-ui .pppoe-client-lookup-strip {
    gap: 12px;
  }

  .product-ui .pppoe-client-lookup-bar .premium-btn {
    width: 100%;
  }

  .product-ui .pppoe-client-lookup-results {
    position: static;
    max-height: none;
  }

  .product-ui .pppoe-client-chart-shell {
    padding: 12px;
    overflow: visible;
  }

  .product-ui .pppoe-client-chart-shell::before {
    left: 14px;
    right: 14px;
    top: 14px;
    bottom: 14px;
  }

  .product-ui .pppoe-client-chart-scale {
    display: none;
  }

  .product-ui .pppoe-client-chart {
    height: 180px;
  }

  .product-ui .pppoe-client-chart-time {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .product-ui .pppoe-client-chart-tooltip {
    min-width: 138px;
  }

  .product-ui .ipmon-add-form {
    grid-template-columns: 1fr;
  }

  .product-ui .ipmon-command-center,
  .product-ui .ipmon-stats-strip {
    grid-template-columns: 1fr;
  }

  .product-ui .ipmon-search-row {
    align-items: stretch;
  }

  .product-ui .ipmon-filter-buttons button {
    flex: 1 1 auto;
  }
}

/* Login screen */
body.noc-login-body {
  min-height: 100vh;
  background: #050910;
  color: #eef5ff;
}

.noc-login-body .cloud-main.wrap {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: clamp(20px, 4vw, 48px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(145, 18, 24, .24), transparent 42%),
    linear-gradient(135deg, #050910 0%, #071324 46%, #02050a 100%);
  animation: none;
}

.noc-login-shell {
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(360px, 1.18fr) minmax(360px, 440px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 28px;
  background: rgba(5, 9, 16, .92);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .46);
}

.noc-login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 38px;
  padding: clamp(36px, 6vw, 76px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 28%),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, .055) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, .035) 0 1px, transparent 1px 72px);
}

.noc-login-brand::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #e11d2e, #7f1d1d 52%, #0ea5e9);
}

.noc-login-logo {
  width: min(520px, 86%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .46));
}

.noc-login-signal {
  width: min(520px, 86%);
  display: grid;
  gap: 12px;
}

.noc-login-signal span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(225, 29, 46, .95), rgba(14, 165, 233, .64), rgba(34, 197, 94, .72));
  box-shadow: 0 0 26px rgba(14, 165, 233, .22);
  transform-origin: left center;
  animation: nocSignalPulse 2.8s ease-in-out infinite;
}

.noc-login-signal span:nth-child(2) {
  width: 76%;
  animation-delay: .32s;
}

.noc-login-signal span:nth-child(3) {
  width: 54%;
  animation-delay: .64s;
}

@keyframes nocSignalPulse {
  0%, 100% { opacity: .44; transform: scaleX(.72); }
  50% { opacity: 1; transform: scaleX(1); }
}

.noc-login-card.login.panel.cloud-login-card {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: 100%;
  align-self: stretch;
  justify-self: center;
  padding: clamp(30px, 4.5vw, 48px);
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, .16);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(56, 189, 248, .11), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(8, 13, 24, .98));
  box-shadow: none;
}

.noc-login-card-top {
  position: absolute;
  top: 28px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(34, 197, 94, .24);
  border-radius: 999px;
  background: rgba(22, 163, 74, .08);
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.noc-login-card-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, .72);
}

.noc-login-card .login-copy {
  margin-bottom: 30px;
}

.noc-login-card .login-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(225, 29, 46, .13);
  border: 1px solid rgba(248, 113, 113, .3);
  color: #fecaca;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.noc-login-card h1 {
  margin: 20px 0 12px;
  color: #fff;
  font-size: clamp(32px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.noc-login-card p {
  max-width: 36ch;
  margin: 0;
  color: #b9c6d8;
  font-size: 15px;
}

.noc-login-form {
  display: grid;
  gap: 20px;
}

.noc-login-form label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.noc-login-form input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 14px;
  padding: 0 16px;
  background: rgba(5, 10, 19, .92);
  color: #f8fafc;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.noc-login-form input::placeholder {
  color: #64748b;
}

.noc-login-form input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .13), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.noc-login-form .cloud-btn.primary {
  min-height: 58px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626, #0ea5e9);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 18px 36px rgba(14, 165, 233, .18);
}

.noc-login-form .cloud-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 44px rgba(14, 165, 233, .24);
}

.noc-login-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, .13);
  color: #93a4ba;
  font-size: 12px;
  font-weight: 900;
}

.noc-login-foot span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .08);
  border: 1px solid rgba(148, 163, 184, .13);
}

.noc-login-card .notice {
  margin: 0 0 18px;
}

@media (max-width: 860px) {
  .noc-login-body .cloud-main.wrap {
    padding: 16px;
  }

  .noc-login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .noc-login-brand {
    min-height: 240px;
    padding: 34px;
  }

  .noc-login-logo {
    width: min(420px, 100%);
  }

  .noc-login-card.login.panel.cloud-login-card {
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, .16);
  }

  .noc-login-card-top {
    position: static;
    width: max-content;
    margin-bottom: 22px;
  }
}
