:root {
  --bg: #07100f;
  --panel: #0d1817;
  --panel2: #12211f;
  --line: #223532;
  --text: #f1f7f5;
  --muted: #8ea5a0;
  --accent: #c8f25a;
  --accent2: #6ee7c0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 85% 0,
      rgba(110, 231, 192, 0.09),
      transparent 30rem
    ),
    var(--bg);
  color: var(--text);
  transition:
    background 0.2s,
    color 0.2s;
}
.shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
aside {
  background: rgba(7, 16, 15, 0.8);
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.brand span:last-child {
  display: grid;
}
.brand b {
  color: var(--accent);
}
.brand small,
.trust small {
  color: var(--muted);
}
.mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #10190c;
  font-weight: 900;
}
.mark.large {
  width: 54px;
  height: 54px;
  font-size: 24px;
  margin-bottom: 24px;
}
nav {
  display: grid;
  gap: 6px;
  margin-top: 52px;
}
nav p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 18px 12px 5px;
  color: var(--accent2);
}
nav button {
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--muted);
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
nav button.active,
nav button:hover {
  background: var(--panel2);
  color: var(--text);
  box-shadow: inset 2px 0 var(--accent);
}
nav em {
  float: right;
  font-size: 9px;
  color: var(--accent);
}
.trust {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.trust i,
.live i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent2) 12%, transparent);
}
.trust span {
  display: grid;
  font-size: 12px;
}
main {
  padding: 0 42px 70px;
  min-width: 0;
}
header {
  height: 92px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent2);
  margin: 0 0 7px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 24px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
select,
button,
.primary,
.secondary {
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
}
.actions button,
.panel button {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
}
#login {
  max-width: 950px;
  margin: 75px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--panel2), var(--panel));
}
#login h2 {
  font-size: 38px;
  letter-spacing: -0.045em;
}
#login p,
#login small {
  color: var(--muted);
  line-height: 1.6;
}
.signin {
  display: grid;
  gap: 13px;
  align-content: center;
}
.signin a {
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}
.primary {
  background: var(--accent);
  color: #10190c;
}
.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel2);
}
#app {
  padding-top: 28px;
}
.hero {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--panel2), var(--panel));
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.hero h2 {
  font-size: 31px;
  margin-bottom: 10px;
}
.hero p {
  color: var(--muted);
  max-width: 700px;
}
.badge {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.card,
.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.card p,
.panel p {
  color: var(--muted);
  line-height: 1.5;
}
.card a {
  color: var(--accent);
}
.product-tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin-bottom: 18px;
  padding-bottom: 2px;
}
.product-tabs span,
.product-tabs b {
  padding: 8px 11px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  border-radius: 7px;
}
.product-tabs b {
  background: var(--panel2);
  color: var(--text);
  box-shadow: inset 0 -2px var(--accent);
}
.product-tabs [role="button"] {
  cursor: pointer;
}
.product-tabs [role="button"]:hover,
.product-tabs [role="button"]:focus-visible,
.product-tabs [role="button"].active {
  background: var(--panel2);
  color: var(--text);
  box-shadow: inset 0 -2px var(--accent);
  outline: none;
}
.product-section {
  grid-column: 1 / -1;
  min-height: 240px;
}
.section-state {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.section-state > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent2);
}
.section-state span {
  display: grid;
}
.section-state small {
  color: var(--muted);
  margin-top: 3px;
}
.product-hero {
  margin-bottom: 16px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px;
  display: grid;
  gap: 8px;
}
.metric small,
.metric span {
  color: var(--muted);
}
.metric strong {
  font-size: 23px;
}
.metric.cyan {
  border-top-color: #00a9b7;
}
.metric.blue {
  border-top-color: #3878e8;
}
.metric.amber {
  border-top-color: #d88d23;
}
.metric.violet {
  border-top-color: #7b66d9;
}
.metric.lime {
  border-top-color: #c8f25a;
}
.metric.mint {
  border-top-color: #6ee7c0;
}
.metric.red {
  border-top-color: #ff6b68;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 16px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.loading-line {
  height: 4px;
  width: 38%;
  border-radius: 4px;
  background: var(--accent);
  margin: 22px 0 14px;
}
.connection-ok,
.connection-warn {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 18px 0;
}
.connection-ok > i,
.connection-warn > i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent2) 12%, transparent);
}
.connection-warn > i {
  background: #f7bd55;
}
.connection-ok p,
.connection-warn p {
  margin: 4px 0 0;
}
.health-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 10px solid color-mix(in srgb, var(--accent) 72%, var(--line));
  margin: 24px auto;
  display: grid;
  place-content: center;
  text-align: center;
}
.health-ring b {
  font-size: 32px;
}
.health-ring span {
  font-size: 10px;
  color: var(--muted);
}
.checks,
.threat-scale {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 13px;
}
.checks li,
.threat-scale li {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.checks i,
.threat-scale i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
}
.live {
  color: var(--accent2);
  font-size: 10px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.traffic-chart {
  position: relative;
  height: 225px;
  overflow: hidden;
}
.traffic-chart svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  width: 100%;
  height: 170px;
}
.traffic-chart .area {
  fill: color-mix(in srgb, var(--accent2) 16%, transparent);
}
.traffic-chart .line {
  fill: none;
  stroke: var(--accent2);
  stroke-width: 3;
}
.chart-grid {
  position: absolute;
  inset: 10px 0 30px;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 39px,
    var(--line) 40px
  );
}
.traffic-chart span {
  position: absolute;
  bottom: 0;
  color: var(--muted);
  font-size: 10px;
}
.alert {
  color: #f7bd55;
}
body.module-cgnos {
  --bg: #f2f6f7;
  --panel: #fff;
  --panel2: #eaf1f3;
  --line: #dce5e8;
  --text: #102230;
  --muted: #71818d;
  --accent: #00a9b7;
  --accent2: #00a9b7;
  color-scheme: light;
  background: #f2f6f7;
}
body.module-cgnos aside {
  background: linear-gradient(180deg, #0c2731, #071b23);
  --text: #f2fbfc;
  --muted: #8da5ae;
  --line: #183943;
  --panel2: #12343e;
}
body.module-cgnos .product-hero {
  background: linear-gradient(135deg, #0c2a34, #123f49);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 22px rgba(14, 42, 52, 0.13);
}
body.module-cgnos .product-hero p {
  color: #b9d0d5;
}
body.module-cgnos .panel,
body.module-cgnos .metric {
  box-shadow: 0 5px 18px rgba(16, 34, 48, 0.05);
}
body.module-ddos {
  --bg: #f2f6f7;
  --panel: #fff;
  --panel2: #f7fafb;
  --line: #dce5e8;
  --text: #102230;
  --muted: #71818d;
  --accent: #00a9b7;
  --accent2: #00a9b7;
  color-scheme: light;
  background: #f2f6f7;
}
body.module-ddos aside {
  background: linear-gradient(180deg, #0c2731, #071b23);
  --text: #f2fbfc;
  --muted: #93abb3;
  --line: #21404a;
  --panel2: #173a44;
}
body.module-ddos .product-hero {
  background: linear-gradient(105deg, #0d313a, #123f49);
  color: #fff;
  border: 0;
  box-shadow: 0 13px 30px rgba(20, 54, 64, 0.09);
}
body.module-ddos .product-hero p {
  color: #a9c0c6;
}
body.module-ddos .product-hero .status-pill {
  color: #148e9a;
  background: #dff6f6;
  border-radius: 14px;
  padding: 6px 9px;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 800;
}
body.module-ddos .hero-score {
  text-align: right;
  display: grid;
  min-width: 150px;
}
body.module-ddos .hero-score strong {
  font-size: 23px;
  color: #fff;
}
body.module-ddos .hero-score span {
  font-size: 10px;
  color: #9db5bc;
  margin-top: 5px;
}
body.module-ddos .platform-notice {
  margin: 0 0 18px;
  padding: 9px 14px;
  background: #e8f6f5;
  color: #397078;
  border: 1px solid #d3e9e7;
  border-radius: 8px;
  font-size: 11px;
}
body.module-ddos .panel,
body.module-ddos .metric {
  box-shadow: 0 5px 18px rgba(21, 52, 59, 0.07);
}
body.module-ddos .chart-grid {
  background: repeating-linear-gradient(0deg, transparent 0 39px, #edf2f3 40px);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}
th,
td {
  text-align: left;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
th {
  color: var(--muted);
}
pre {
  overflow: auto;
}
@media (max-width: 1050px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .shell {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
    height: auto;
  }
  .grid,
  #login,
  .dashboard {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  main {
    padding: 0 18px 50px;
  }
}
@media (max-width: 520px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .hero {
    display: block;
  }
  .badge {
    display: block;
    margin-top: 18px;
  }
}
