:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #050505;
  --line: #003B00;
  --text: #00FF41;
  --muted: #008F11;
  --accent: #00FF41;
  --accent-2: #39FF14;
  --mal: #FF0040;
  --susp: #FF6600;
  --harmless: #00FF41;
  --undetected: #008F11;
  --unknown: #008F11;
  --glow: 0 0 5px #00FF41, 0 0 10px #00FF41;
  --glow-soft: 0 0 3px #00FF41;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 "Courier New", Courier, monospace;
  -webkit-font-smoothing: none;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 9999;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: "Courier New", Courier, monospace; }
.wraptext { word-break: break-all; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand {
  font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none;
  letter-spacing: 2px; text-shadow: var(--glow);
}
.brand span { color: var(--accent-2); }
.topbar nav { display: flex; gap: 0; align-items: center; }
.topbar nav a {
  color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600;
  padding: 6px 12px; border: 1px solid transparent; text-transform: uppercase; letter-spacing: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.topbar nav a:hover { color: var(--text); border-color: var(--line); text-shadow: var(--glow-soft); }
.topbar nav a.active { color: var(--accent); border-color: var(--line); }

.hero { padding: 40px 0 20px; }
.hero h1 {
  margin: 0 0 8px; font-size: 28px; line-height: 1.1; letter-spacing: 1px;
  color: var(--text); text-shadow: var(--glow);
}
.lede { margin: 0; max-width: 70ch; color: var(--muted); font-size: 13px; }
.lede strong { color: var(--text); }

.banner {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  padding: 10px 14px; margin-bottom: 14px; font-size: 12px;
  background: rgba(255, 102, 0, 0.08); border: 1px solid rgba(255, 102, 0, 0.3); color: #FF6600;
}
.banner code { background: rgba(0,0,0,0.4); padding: 1px 5px; font-size: 11px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 18px 18px;
  margin-bottom: 18px;
}
.panel h2 {
  margin: 14px 0 10px; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 6px;
}

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 11px; font-weight: 600;
  padding: 10px 14px; margin-bottom: -1px; text-transform: uppercase; letter-spacing: 1px;
  border: 1px solid transparent; border-bottom: 0;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-color: var(--line); background: var(--surface-2); text-shadow: var(--glow-soft); }

.drop {
  border: 1px dashed var(--line); padding: 30px 20px; text-align: center; cursor: pointer;
  background: var(--surface-2);
}
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); background: rgba(0, 255, 65, 0.03); outline: none; }
.upicon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 8px; }
.drop-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.drop-sub { margin: 0; color: var(--muted); font-size: 12px; }

.filemeta { margin-top: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 2px 12px; }
.filemeta-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.filemeta-row:last-child { border-bottom: 0; }
.filemeta-row .k { color: var(--muted); width: 70px; flex-shrink: 0; }
.filemeta-row .v { min-width: 0; }

.fieldrow { display: flex; gap: 8px; }
input[type="text"] {
  flex: 1; min-width: 0; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); padding: 10px 12px; font: inherit; font-size: 13px;
}
input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-soft); }
input[type="text"]::placeholder { color: #006600; }

.btn {
  appearance: none; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600;
  padding: 10px 16px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); text-transform: uppercase; letter-spacing: 1px;
}
.btn.primary { background: var(--accent); color: #000; border-color: var(--accent); text-shadow: none; }
.btn.primary:hover { background: var(--accent-2); }
.btn.primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; margin-top: 12px; }
.btn.ghost:hover { background: rgba(0, 255, 65, 0.05); }

.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--accent); width: 14px; height: 14px; }
.hint { color: var(--muted); font-size: 11px; margin: 8px 0 0; }

.result { margin-bottom: 18px; }
.verdict {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 12px;
  border: 1px solid; background: var(--surface);
}
.verdict .vtitle { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: 1px; }
.verdict .vsub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.verdict .vbadge { margin-left: auto; }
.v-malicious { border-color: var(--mal); background: rgba(255, 0, 64, 0.05); }
.v-malicious .vtitle { color: var(--mal); text-shadow: 0 0 5px var(--mal); }
.v-suspicious { border-color: var(--susp); background: rgba(255, 102, 0, 0.05); }
.v-suspicious .vtitle { color: var(--susp); text-shadow: 0 0 5px var(--susp); }
.v-harmless { border-color: var(--harmless); background: rgba(0, 255, 65, 0.03); }
.v-harmless .vtitle { color: var(--harmless); text-shadow: var(--glow); }
.v-undetected, .v-unknown { border-color: var(--line); }
.v-undetected .vtitle, .v-unknown .vtitle { color: var(--undetected); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin-bottom: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); padding: 10px 12px; }
.tile .n { font-size: 20px; font-weight: 700; }
.tile .l { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-top: 2px; }
.n-mal { color: var(--mal); } .n-susp { color: var(--susp); }
.n-harm { color: var(--harmless); } .n-undet { color: var(--undetected); }

.detail { background: var(--surface); border: 1px solid var(--line); padding: 2px 16px 14px; margin-bottom: 12px; }
.detail h3 {
  font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted);
  margin: 12px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px;
}
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; font-size: 12px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; word-break: break-word; }

.dets { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.dets li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; font-size: 11px; border-bottom: 1px solid var(--line); }
.dets li:last-child { border-bottom: 0; }
.dets .eng { color: var(--muted); }
.dets .res { color: var(--mal); text-align: right; word-break: break-all; }

.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { background: rgba(0, 255, 65, 0.05); border: 1px solid rgba(0, 255, 65, 0.2); color: var(--accent); font-size: 10px; padding: 2px 8px; }

.spin { width: 12px; height: 12px; border: 2px solid rgba(0, 255, 65, 0.2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.err { background: rgba(255, 0, 64, 0.05); border: 1px solid rgba(255, 0, 64, 0.3); color: #FF6080; padding: 12px 14px; font-size: 12px; }

.comment { background: var(--surface-2); border: 1px solid var(--line); padding: 8px 12px; margin-bottom: 6px; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.comment-head .mono { color: var(--muted); font-size: 10px; }
.comment p { margin: 0; font-size: 12px; }

.ratelimit { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.ratelimit .n { color: var(--text); font-weight: 600; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); padding: 8px 10px; }
.stat .n { font-size: 18px; font-weight: 700; }
.stat .l { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
select {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  padding: 8px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
select:focus { outline: none; border-color: var(--accent); }
.toolbar input[type="text"] { flex: 1 1 180px; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: rgba(0, 255, 65, 0.02); }
td.target { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 2px 6px; border: 1px solid; }
.pill.malicious { color: var(--mal); border-color: var(--mal); background: rgba(255, 0, 64, 0.1); }
.pill.suspicious { color: var(--susp); border-color: var(--susp); background: rgba(255, 102, 0, 0.1); }
.pill.harmless { color: var(--harmless); border-color: var(--harmless); background: rgba(0, 255, 65, 0.05); }
.pill.undetected, .pill.unknown, .pill.error { color: var(--undetected); border-color: var(--line); }
.pill.file { color: #00BFFF; border-color: rgba(0, 191, 255, 0.3); background: rgba(0, 191, 255, 0.05); }
.pill.url { color: #FF66AA; border-color: rgba(255, 102, 170, 0.3); background: rgba(255, 102, 170, 0.05); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.pager .btns { display: flex; gap: 6px; }
.empty { text-align: center; color: var(--muted); padding: 30px 16px; font-size: 13px; }

.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 14px 0; color: var(--muted); font-size: 11px; }
.foot a { color: var(--muted); text-decoration: underline; }
.foot a:hover { color: var(--text); }

.code { background: var(--surface-2); border: 1px solid var(--line); padding: 10px 12px; font-size: 11px; overflow-x: auto; margin: 8px 0; }
pre.code { white-space: pre-wrap; word-break: break-word; }

.bar { width: 100%; height: 14px; border: 1px solid var(--line); background: var(--surface-2); margin: 8px 0; }
.bar-fill { height: 100%; background: var(--accent); transition: width 0.3s; box-shadow: var(--glow-soft); }

.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 620px) {
  .fieldrow { flex-direction: column; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dt { margin-top: 6px; }
  .filemeta-row { flex-direction: column; gap: 2px; }
  .verdict .vbadge { margin-left: 0; }
  .verdict { align-items: flex-start; }
  td.target { max-width: 120px; }
  .topbar nav a { padding: 4px 6px; font-size: 9px; }
  .brand { font-size: 13px; }
  .bar { height: 44px; }
  .hero h1 { font-size: 20px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  #sidebar { display: none; }
  #result > div:first-child { flex-direction: column; }
  .tabs { flex-wrap: wrap; }
  .tab { padding: 8px 10px; font-size: 10px; }
}

@media (min-width: 621px) and (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .statgrid { grid-template-columns: repeat(3, 1fr); }
  #sidebar { width: 180px; }
}

@media (min-width: 1025px) {
  .tiles { grid-template-columns: repeat(5, 1fr); }
  .statgrid { grid-template-columns: repeat(6, 1fr); }
  #sidebar { width: 220px; }
}
