:root {
  --bg: #080c14;
  --surface: #101726;
  --surface-2: #162033;
  --border: #233048;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --emerald: #10b981;
  --sky: #38bdf8;
  --amber: #f59e0b;
  --red: #ef4444;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(8, 12, 20, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1220px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-badge {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
  color: #090d16; font-family: var(--mono); font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
}
.kofi-btn {
  display: inline-flex; align-items: center; gap: 7px; background: var(--amber);
  color: #111827; font-weight: 750; font-size: 13px; padding: 8px 14px; border-radius: 8px;
}
.kofi-btn:hover { text-decoration: none; filter: brightness(1.07); }

.container { max-width: 1220px; margin: 0 auto; padding: 24px 20px 44px; }
.hero {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.09), rgba(245, 158, 11, 0.07), rgba(16, 185, 129, 0.08));
  border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; margin-bottom: 18px;
}
.hero-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; color: #fca5a5;
  background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.hero h1 { margin: 0 0 8px; font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--text-muted); max-width: 820px; font-size: 14px; }

.preset-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px;
}
.btn {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 8px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 650;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: #475569; text-decoration: none; }
.btn-primary { background: var(--emerald); border-color: var(--emerald); color: #041710; font-weight: 750; }
.btn-danger { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.45); color: #fca5a5; }

.grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start;
}
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.panel-head h2 { margin: 0; font-size: 15.5px; }
textarea, input[type="text"] {
  width: 100%; background: #060a11; color: var(--text); border: 1px solid var(--border);
  border-radius: 9px; font-family: var(--mono); font-size: 12px; padding: 10px 12px;
}
textarea { min-height: 330px; resize: vertical; line-height: 1.48; }

.status-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 12px;
  font-family: var(--mono); font-size: 12.5px;
}
.status-BLOCKED { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.45); color: #fca5a5; }
.status-WARN { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.45); color: #fcd34d; }
.status-PASS { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.45); color: #6ee7b7; }

.finding {
  background: #060a11; border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; margin-bottom: 10px;
}
.finding-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.sev {
  font-family: var(--mono); font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 5px;
}
.sev-CRITICAL { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }
.sev-HIGH { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
.sev-MEDIUM { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.sev-INFO { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.finding p { margin: 0 0 6px; font-size: 12.5px; color: var(--text-muted); }
.hit {
  font-family: var(--mono); font-size: 11.5px; color: #e2e8f0; background: #0d1320;
  padding: 4px 8px; border-radius: 5px; margin-top: 4px; overflow-x: auto; white-space: pre;
  scrollbar-width: thin; scrollbar-color: #334155 #0d1320;
}

.support-bar {
  margin-top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.footer {
  max-width: 1220px; margin: 0 auto; padding: 18px 20px 34px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-muted);
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 21px; }
}
