:root {
  --bg:        #0a0c0f;
  --bg2:       #111418;
  --bg3:       #1a1e24;
  --border:    #242830;
  --text:      #c8d0dc;
  --text-dim:  #5a6272;
  --green:     #00e676;
  --red:       #ff1744;
  --amber:     #ffab00;
  --blue:      #448aff;
  --teal:      #00b0ff;
  --font-mono: 'Courier New', Courier, monospace;
  --font-ui:   'Segoe UI', system-ui, sans-serif;
  --radius:    6px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  min-height: 100vh;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-left  { display: flex; align-items: center; gap: 12px; }
.topbar-shield { font-size: 22px; }
.topbar-title  { font-family: var(--font-mono); font-size: 14px; font-weight: bold; letter-spacing: 2px; color: var(--green); }
.topbar-domain { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }
.topbar-right  { display: flex; align-items: center; gap: 12px; }
.topbar-user   { font-size: 12px; color: var(--text-dim); }
.alert-banner {
  background: rgba(255,23,68,.15);
  border-bottom: 2px solid var(--red);
  color: #fff;
  padding: 10px 24px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: pulse 2s infinite;
}
.warning-banner {
  background: rgba(255,171,0,.12);
  border-color: var(--amber);
}
.alert-icon  { font-size: 18px; }
.alert-link  { color: var(--teal); font-weight: bold; margin-left: 8px; }
.alert-time  { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
@keyframes pulse {
  0%,100% { opacity:1; }
  50%      { opacity:.85; }
}
.main { padding: 24px; max-width: 1400px; margin: 0 auto; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-label { font-size: 10px; letter-spacing: 1.5px; color: var(--text-dim); margin-bottom: 8px; }
.stat-value { font-size: 18px; font-weight: bold; }
.section { margin-bottom: 32px; }
.section-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--bg3);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.row-crit td { border-left: 2px solid var(--red); }
.row-warn td { border-left: 2px solid var(--amber); }
.empty, .empty-box {
  text-align: center;
  color: var(--text-dim);
  padding: 32px;
  font-family: var(--font-mono);
}
.empty-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mono   { font-family: var(--font-mono); font-size: 12px; }
.center { text-align: center; }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 3px;
}
.badge-clean { background: rgba(0,230,118,.15); color: var(--green);  border: 1px solid var(--green); }
.badge-crit  { background: rgba(255,23,68,.15);  color: var(--red);   border: 1px solid var(--red); }
.badge-warn  { background: rgba(255,171,0,.15);  color: var(--amber); border: 1px solid var(--amber); }
.badge-med   { background: rgba(255,171,0,.1);   color: var(--amber); border: 1px solid rgba(255,171,0,.4); }
.badge-low   { background: rgba(68,138,255,.1);  color: var(--blue);  border: 1px solid rgba(68,138,255,.4); }
.btn-view {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  border: 1px solid var(--teal);
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
.btn-view:hover { background: rgba(0,176,255,.1); }
.btn-logout {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 3px;
}
.btn-logout:hover { color: var(--text); border-color: var(--text-dim); }
.detail-header { margin-bottom: 24px; }
.detail-header h2 { font-size: 20px; margin-bottom: 10px; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.finding-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.critical-card { border-left: 3px solid var(--red); }
.high-card     { border-left: 3px solid var(--amber); }
.medium-card   { border-left: 3px solid rgba(255,171,0,.5); }
.low-card      { border-left: 3px solid var(--blue); }
.finding-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.finding-cat { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.finding-desc { margin-bottom: 8px; line-height: 1.5; }
.finding-rec  { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.finding-mit  { font-size: 12px; color: var(--green); }
.finding-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); margin-top: 8px; }
.login-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-wrap { width: 100%; max-width: 400px; padding: 24px; }
.login-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}
.login-icon  { font-size: 48px; margin-bottom: 12px; }
.login-title {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 6px;
}
.login-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 24px; }
.input-field {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 12px;
  display: block;
}
.input-field:focus { outline: none; border-color: var(--teal); }
.btn-auth {
  width: 100%;
  background: var(--green);
  color: #000;
  border: none;
  padding: 13px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 4px;
}
.btn-auth:hover { background: #00ff88; }
.alert {
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left;
}
.alert-critical { background: rgba(255,23,68,.15); border: 1px solid var(--red); color: var(--red); }
.alert-ok       { background: rgba(0,230,118,.12); border: 1px solid var(--green); color: var(--green); }
.footer {
  text-align: center;
  padding: 18px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
