@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --bg-base:      #060a12;
  --bg-panel:     rgba(12, 18, 32, 0.72);
  --bg-panel-alt: rgba(16, 22, 40, 0.60);
  --bg-input:     rgba(255, 255, 255, 0.04);
  --bg-hover:     rgba(255, 255, 255, 0.06);
  --bg-active:    rgba(255, 45, 111, 0.12);
  --bg-header:    rgba(6, 10, 18, 0.88);

  --border:       rgba(255, 255, 255, 0.07);
  --border-glow:  rgba(255, 45, 111, 0.30);

  --accent-1:     #ff2d6f;
  --accent-2:     #7c2bff;
  --accent-3:     #2bd2ff;
  --accent-ok:    #2ee6a6;
  --accent-warn:  #f59e0b;
  --accent-bad:   #ef4444;

  --text-1:   #f0f2f8;
  --text-2:   #8892b0;
  --text-3:   #4a5568;
  --text-code: #c9d1e9;

  --radius:   10px;
  --radius-sm: 6px;
  --blur:     18px;
  --shadow:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.35);
  --glow-red: 0 0 24px rgba(255, 45, 111, 0.25);
  --glow-blue: 0 0 24px rgba(43, 210, 255, 0.2);

  --panel-w-left:  280px;
  --panel-w-right: 300px;
  --topbar-h:      58px;
  --foot-h:        38px;
  --font-ui:   'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════
   RESET + BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font-ui);
  background: var(--bg-base);
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 45, 111, 0.3); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ═══════════════════════════════════════════
   ANIMATED BACKGROUND
═══════════════════════════════════════════ */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,45,111,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,45,111,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridDrift 80s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}
.bg-glow-a {
  position: fixed; top: -20vh; left: -10vw; width: 60vw; height: 60vh;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse, rgba(255,45,111,0.07) 0%, transparent 70%);
  animation: glowPulse 8s ease-in-out infinite;
}
.bg-glow-b {
  position: fixed; bottom: -20vh; right: -10vw; width: 55vw; height: 55vh;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse, rgba(124,43,255,0.07) 0%, transparent 70%);
  animation: glowPulse 11s ease-in-out infinite reverse;
}
@keyframes glowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.08); }
}

/* ═══════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,45,111,0.2), rgba(124,43,255,0.2));
  border: 1px solid rgba(255,45,111,0.3);
  box-shadow: var(--glow-red);
}
.brand-text .t1 {
  font-size: 15px; font-weight: 700; letter-spacing: -0.3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-text .t2 { font-size: 11px; color: var(--text-3); letter-spacing: 0.3px; }

.topbar-meta { display: flex; align-items: center; gap: 10px; }

.stat-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  font-size: 12px; color: var(--text-2);
  white-space: nowrap;
}
.stat-pill strong { color: var(--text-1); font-weight: 600; }
.stat-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-3); flex-shrink: 0;
  transition: background 0.3s;
}
.stat-pill .dot.ok  { background: var(--accent-ok); box-shadow: 0 0 8px var(--accent-ok); animation: blink 2s ease-in-out infinite; }
.stat-pill .dot.bad { background: var(--accent-bad); }
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
.clock {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-3); letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.layout {
  position: fixed;
  top: var(--topbar-h); bottom: var(--foot-h); left: 0; right: 0;
  display: grid;
  grid-template-columns: var(--panel-w-left) 1fr var(--panel-w-right);
  gap: 0;
  overflow: hidden;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   GLASS PANEL
═══════════════════════════════════════════ */
.panel {
  display: flex; flex-direction: column;
  background: var(--bg-panel);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  overflow: hidden;
}
.panel.victims  { border-right: 1px solid var(--border); }
.panel.feed-panel { border-left: 1px solid var(--border); }

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-2);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   VICTIMS PANEL
═══════════════════════════════════════════ */
.search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.search input {
  width: 100%; padding: 7px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1); font-size: 12px;
  outline: none; transition: border-color 0.2s;
}
.search input:focus { border-color: var(--accent-1); }
.search input::placeholder { color: var(--text-3); }

/* stats strip above victim list */
.victims-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.vstat {
  background: var(--bg-panel);
  padding: 10px 12px;
  text-align: center;
}
.vstat .vstat-val { font-size: 20px; font-weight: 700; color: var(--text-1); line-height: 1; }
.vstat .vstat-lbl { font-size: 10px; color: var(--text-3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.vstat .vstat-val.online { color: var(--accent-ok); }
.vstat .vstat-val.red    { color: var(--accent-1); }

.victim-list {
  list-style: none; overflow-y: auto; flex: 1;
  padding: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.victim {
  padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
}
.victim::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--text-3); transition: background 0.2s;
}
.victim:hover { background: var(--bg-hover); border-color: rgba(255,255,255,0.12); }
.victim.sel {
  background: var(--bg-active);
  border-color: var(--border-glow);
  box-shadow: var(--glow-red);
}
.victim.sel::before { background: var(--accent-1); }
.victim.online::before { background: var(--accent-ok); }

.v-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; gap: 6px; }
.v-id { font-family: var(--font-mono); font-size: 11px; color: var(--accent-3); }
.v-age { font-size: 10px; color: var(--text-3); }
.v-host { font-size: 12px; font-weight: 500; color: var(--text-1); }
.v-meta { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.v-badges { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.badge {
  font-size: 9px; padding: 2px 6px; border-radius: 3px;
  font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase;
  background: rgba(255,255,255,0.06); color: var(--text-2);
  border: 1px solid var(--border);
}
.badge.windows { background: rgba(0,120,212,0.15); color: #4da6ff; border-color: rgba(0,120,212,0.2); }
.badge.linux   { background: rgba(255,160,0,0.12); color: #ffa500; border-color: rgba(255,160,0,0.2); }
.badge.darwin  { background: rgba(46,230,166,0.12); color: var(--accent-ok); border-color: rgba(46,230,166,0.2); }
.badge.jobs    { background: rgba(255,45,111,0.15); color: var(--accent-1); border-color: var(--border-glow); }
.v-select-cb { margin-right: 6px; accent-color: var(--accent-1); }
.broadcast-bar {
  padding: 8px 12px; border-top: 1px solid var(--border);
  display: flex; gap: 6px; align-items: center; flex-shrink: 0;
}
.broadcast-bar select {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-1); padding: 5px 8px;
  font-size: 11px; outline: none;
}
.broadcast-bar select:focus { border-color: var(--accent-1); }

/* ═══════════════════════════════════════════
   MAIN PANEL
═══════════════════════════════════════════ */
.main-panel {
  display: flex; flex-direction: column; overflow: hidden;
  border-right: none;
}

/* no-victim placeholder */
.no-victim {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; color: var(--text-3);
}
.no-victim svg { opacity: 0.2; }
.no-victim p { font-size: 13px; }

/* victim detail header */
.victim-detail-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,45,111,0.04);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.vdh-name { font-size: 15px; font-weight: 600; color: var(--text-1); }
.vdh-sub  { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.vdh-actions { display: flex; gap: 6px; }

/* tabs */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 4px;
  background: rgba(0,0,0,0.2);
  flex-shrink: 0; overflow-x: auto;
}
.tab {
  padding: 10px 16px;
  background: none; border: none; color: var(--text-3);
  font-size: 12px; font-weight: 500;
  cursor: pointer; position: relative;
  white-space: nowrap; transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--text-1); }
.tab.active { color: var(--accent-1); border-bottom-color: var(--accent-1); }
.tab-badge {
  background: var(--accent-1); color: #fff;
  font-size: 9px; padding: 1px 5px; border-radius: 10px;
  font-weight: 700; min-width: 16px; text-align: center;
  display: none;
}
.tab-badge.show { display: inline-block; }

.tab-body { flex: 1; overflow: hidden; position: relative; }
.tab-pane {
  display: none; flex-direction: column;
  position: absolute; inset: 0;
  padding: 16px; gap: 12px; overflow-y: auto;
}
.tab-pane.active { display: flex; }

/* ═══════════════════════════════════════════
   FORM CONTROLS
═══════════════════════════════════════════ */
textarea, input[type=text], input:not([type=checkbox]) {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1); outline: none;
  font-family: var(--font-ui); font-size: 13px;
  transition: border-color 0.2s;
}
textarea:focus, input[type=text]:focus, input:not([type=checkbox]):focus {
  border-color: rgba(255,45,111,0.5);
}
textarea.mono { font-family: var(--font-mono); font-size: 12px; }
textarea { resize: vertical; width: 100%; min-height: 90px; padding: 10px 12px; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row input { flex: 1; min-width: 140px; padding: 7px 10px; }

/* quick-row chips */
.quickrow { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 10px; border-radius: 5px;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-2); font-size: 11px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.chip:hover { background: var(--bg-hover); color: var(--text-1); border-color: rgba(255,255,255,0.15); }
.chip.danger { border-color: rgba(239,68,68,0.3); color: var(--accent-bad); }
.chip.danger:hover { background: rgba(239,68,68,0.12); }

/* buttons */
button { cursor: pointer; font-family: var(--font-ui); }
.btn {
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; border: 1px solid transparent;
  transition: all 0.18s; display: inline-flex; align-items: center; gap: 5px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff; border-color: transparent;
  box-shadow: 0 0 14px rgba(255,45,111,0.25);
}
.btn-primary:hover {
  box-shadow: 0 0 22px rgba(255,45,111,0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--bg-input); border-color: var(--border);
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-1); border-color: rgba(255,255,255,0.12); }
.btn-danger {
  background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3);
  color: var(--accent-bad);
}
.btn-danger:hover { background: rgba(239,68,68,0.22); }
.btn-ok {
  background: rgba(46,230,166,0.12); border-color: rgba(46,230,166,0.3);
  color: var(--accent-ok);
}
.btn-ok:hover { background: rgba(46,230,166,0.2); }

/* status text */
.status-text { font-size: 11px; color: var(--text-3); }
.status-text.running { color: var(--accent-warn); animation: textBlink 1s ease-in-out infinite; }
.status-text.done    { color: var(--accent-ok); }
.status-text.error   { color: var(--accent-bad); }
@keyframes textBlink { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* terminal output */
.output {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-code); line-height: 1.6;
  white-space: pre-wrap; word-break: break-all;
  overflow-y: auto; min-height: 80px; max-height: 340px;
  position: relative;
}
.output-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.output-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px; }
.copy-btn {
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-3); cursor: pointer; transition: all 0.15s;
}
.copy-btn:hover { color: var(--text-1); border-color: rgba(255,255,255,0.15); }
.copy-btn.copied { color: var(--accent-ok); border-color: rgba(46,230,166,0.3); }

/* screenshot preview */
.screenshot-preview {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; max-height: 260px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  cursor: zoom-in;
}
.screenshot-preview img { max-width: 100%; max-height: 260px; object-fit: contain; display: block; }
.screenshot-placeholder {
  padding: 40px; text-align: center; color: var(--text-3); font-size: 12px;
}

/* modules grid */
.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mod-card {
  padding: 14px 12px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  cursor: pointer; text-align: center;
  transition: all 0.18s; color: var(--text-2);
  font-size: 12px; font-weight: 500;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.mod-card:hover {
  background: var(--bg-hover); color: var(--text-1);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.mod-card .mod-icon { font-size: 22px; }

/* file list */
.filelist { display: flex; flex-direction: column; gap: 4px; }
.file-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-input);
  font-size: 12px; color: var(--text-2); text-decoration: none;
  transition: all 0.15s;
}
.file-item:hover { background: var(--bg-hover); color: var(--text-1); border-color: rgba(255,255,255,0.12); }
.file-item .file-icon { font-size: 14px; }

/* info/json viewer */
.json-view {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-code); white-space: pre-wrap; overflow: auto;
  max-height: 340px; line-height: 1.6;
}

/* keylog */
.keylog-out {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent-ok);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(46,230,166,0.15);
  border-radius: var(--radius-sm);
  padding: 12px; line-height: 1.8;
  white-space: pre-wrap; word-break: break-all;
  min-height: 100px; max-height: 320px; overflow-y: auto;
}

/* section divider */
.section-label {
  font-size: 10px; color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.7px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ═══════════════════════════════════════════
   LIVE FEED PANEL
═══════════════════════════════════════════ */
.feed-body {
  flex: 1; overflow-y: auto; padding: 6px 0;
  display: flex; flex-direction: column; gap: 1px;
}
.feed-line {
  padding: 7px 14px; font-size: 11px; color: var(--text-2);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  line-height: 1.45; transition: background 0.1s;
  animation: feedIn 0.2s ease-out;
}
.feed-line:hover { background: var(--bg-hover); }
@keyframes feedIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: none; }
}
.feed-line .ts { font-family: var(--font-mono); color: var(--text-3); font-size: 10px; margin-right: 6px; }
.feed-line.good .ts { color: var(--accent-ok); }
.feed-line.warn .ts { color: var(--accent-warn); }
.feed-line.bad  .ts { color: var(--accent-bad); }
.feed-line.good { color: var(--accent-ok); }
.feed-line.info-line { color: var(--accent-3); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.foot {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--foot-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-3);
}
.foot code {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent-1);
  background: rgba(255,45,111,0.1); padding: 2px 6px; border-radius: 4px;
}

/* ═══════════════════════════════════════════
   TOAST NOTIFICATIONS
═══════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 52px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 10px 16px; border-radius: var(--radius);
  background: rgba(18, 25, 44, 0.95);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 12px; color: var(--text-1);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  animation: toastIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  max-width: 320px;
}
.toast.ok   { border-color: rgba(46,230,166,0.3); }
.toast.warn { border-color: rgba(245,158,11,0.3); }
.toast.bad  { border-color: rgba(239,68,68,0.3); }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.toast.ok .toast-dot   { background: var(--accent-ok); }
.toast.warn .toast-dot { background: var(--accent-warn); }
.toast.bad .toast-dot  { background: var(--accent-bad); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}
.toast.out { animation: toastOut 0.2s ease-in forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateX(20px); }
}

/* ═══════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════ */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: var(--shadow); }

/* ═══════════════════════════════════════════
   MODAL (upload)
═══════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.7);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: rgba(14,20,36,0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px; width: 420px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
.modal h3 { font-size: 14px; font-weight: 600; color: var(--text-1); }
.modal input[type=file] { color: var(--text-2); font-size: 12px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; }

/* ═══════════════════════════════════════════
   SCROLLBAR WITHIN PANELS
═══════════════════════════════════════════ */
.victim-list, .feed-body, .tab-pane, .output, .keylog-out, .json-view {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

/* ═══════════════════════════════════════════
   RESPONSIVE TWEAKS
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root { --panel-w-right: 240px; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 240px 1fr; }
  .panel.feed-panel { display: none; }
}

/* ═══════════════════════════════════════════
   PTY TERMINAL
═══════════════════════════════════════════ */
.pty-wrap {
  flex: 1;
  min-height: 340px;
  max-height: 520px;
  background: #060a12;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 8px;
  padding: 4px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5), var(--glow-red);
}
.pty-wrap .xterm { height: 100%; }
.pty-wrap .xterm-viewport::-webkit-scrollbar { width: 3px; }
.pty-wrap .xterm-viewport::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 3px; }

/* tab badge pulse for PTY */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,111,0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(255,45,111,0); }
}
.tab-badge.pulse {
  animation: badgePulse 1.5s ease-in-out infinite;
  background: var(--accent-1);
  color: #fff;
}

/* ═══════════════════════════════════════════
   BROWSER CREDS
═══════════════════════════════════════════ */
.creds-filter-row {
  display: flex;
  gap: 8px;
  margin: 6px 0;
}
.creds-filter-row input, .creds-filter-row select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: 5px 10px;
  font-size: 12px;
}
.creds-table-wrap {
  overflow: auto;
  max-height: 300px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
}
.creds-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.creds-tbl thead th {
  background: rgba(255,45,111,0.08);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}
.creds-tbl tbody tr:hover { background: var(--bg-hover); }
.creds-tbl td { padding: 5px 10px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.creds-tbl .url-cell { color: var(--text-2); font-size: 11px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creds-tbl .copy-cell { cursor: pointer; font-family: var(--font-mono); font-size: 11px; }
.creds-tbl .copy-cell:hover { color: var(--accent-3); background: rgba(43,210,255,0.07); }
.creds-tbl .pass-cell { color: var(--accent-1); }
.badge.chrome   { background: rgba(66,133,244,.15); color: #4285f4; border: 1px solid rgba(66,133,244,.3); }
.badge.edge     { background: rgba(0,120,215,.15); color: #0078d7; border: 1px solid rgba(0,120,215,.3); }
.badge.brave    { background: rgba(255,90,0,.15); color: #ff5a00; border: 1px solid rgba(255,90,0,.3); }
.badge.firefox  { background: rgba(255,149,0,.15); color: #ff9500; border: 1px solid rgba(255,149,0,.3); }
.discord-tokens { padding: 6px 0; }
.token-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.token-row code { font-family: var(--font-mono); font-size: 11px; color: var(--accent-3); background: rgba(43,210,255,.07); padding: 3px 8px; border-radius: 4px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-row button { background: var(--bg-input); border: 1px solid var(--border); color: var(--text-2); border-radius: var(--radius-sm); padding: 3px 8px; font-size: 10px; cursor: pointer; flex-shrink: 0; }
.token-row button:hover { color: var(--accent-3); border-color: var(--accent-3); }

/* ═══════════════════════════════════════════
   LOOT
═══════════════════════════════════════════ */
.loot-grid, .loot-envs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 2px 0;
}
.loot-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  position: relative;
}
.loot-card:hover { border-color: rgba(255,45,111,0.25); }
.loot-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--accent-1); margin-bottom: 2px; }
.loot-path  { font-size: 10px; color: var(--text-3); font-family: var(--font-mono); margin-bottom: 6px; }
.loot-content { font-size: 11px; font-family: var(--font-mono); color: var(--text-code); white-space: pre-wrap; word-break: break-all; max-height: 120px; overflow-y: auto; background: rgba(0,0,0,0.3); border-radius: 4px; padding: 6px 8px; border: 1px solid rgba(255,255,255,0.04); }
.loot-card .copy-btn { position: absolute; top: 8px; right: 8px; }

/* ═══════════════════════════════════════════
   NETWORK MAP
═══════════════════════════════════════════ */
.net-stats { display: flex; gap: 16px; margin: 6px 0 10px; flex-wrap: wrap; }
.net-stat { font-size: 12px; color: var(--text-2); }
.net-stat strong { color: var(--text-1); }
.net-host-list { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow-y: auto; }
.net-host-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  align-items: start;
  transition: border-color .15s;
}
.net-host-card:hover { border-color: rgba(43,210,255,0.3); }
.net-host-ip { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent-3); }
.net-host-ports { display: flex; flex-wrap: wrap; gap: 4px; }
.smb-shares { grid-column: 1 / -1; font-size: 11px; color: var(--accent-warn); margin-top: 4px; }
.smb-shares code { background: rgba(245,158,11,.1); padding: 1px 5px; border-radius: 3px; }
.port-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.port-badge.danger { background: rgba(255,45,111,0.1); border-color: rgba(255,45,111,0.3); color: var(--accent-1); }
.port-badge.web    { background: rgba(43,210,255,0.08); border-color: rgba(43,210,255,0.25); color: var(--accent-3); }
.port-lbl { font-size: 9px; color: inherit; opacity: 0.7; }

/* ═══════════════════════════════════════════
   PRIVESC
═══════════════════════════════════════════ */
.privesc-list { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; }
.privesc-card {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 14px;
}
.privesc-card.sev-critical { border-color: rgba(255,45,111,0.5); background: rgba(255,45,111,0.05); }
.privesc-card.sev-high     { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.04); }
.privesc-card.sev-medium   { border-color: rgba(43,210,255,0.3); }
.privesc-card.sev-low      { border-color: rgba(255,255,255,0.07); }
.privesc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.privesc-title  { font-size: 13px; font-weight: 600; color: var(--text-1); }
.privesc-detail { font-size: 11px; font-family: var(--font-mono); color: var(--text-code); white-space: pre-wrap; word-break: break-all; background: rgba(0,0,0,0.3); border-radius: 4px; padding: 6px 8px; max-height: 120px; overflow-y: auto; }
.sev-badge {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  padding: 2px 6px; border-radius: 3px; flex-shrink: 0;
}
.sev-badge.critical { background: rgba(255,45,111,.25); color: var(--accent-1); border: 1px solid rgba(255,45,111,.4); }
.sev-badge.high     { background: rgba(245,158,11,.2); color: var(--accent-warn); border: 1px solid rgba(245,158,11,.4); }
.sev-badge.medium   { background: rgba(43,210,255,.12); color: var(--accent-3); border: 1px solid rgba(43,210,255,.3); }
.sev-badge.low      { background: rgba(255,255,255,.06); color: var(--text-2); border: 1px solid var(--border); }
.tab-badge.critical { background: var(--accent-1); color: #fff; animation: badgePulse 1s ease-in-out infinite; }

/* ═══════════════════════════════════════════
   CLIPBOARD FEED
═══════════════════════════════════════════ */
.clipboard-feed { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.cb-item { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; }
.cb-meta { font-size: 10px; color: var(--text-3); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cb-tag  { background: rgba(255,45,111,.15); color: var(--accent-1); border: 1px solid rgba(255,45,111,.3); font-size: 9px; font-weight: 700; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; }
.cb-text { font-size: 11px; font-family: var(--font-mono); color: var(--text-code); white-space: pre-wrap; word-break: break-all; max-height: 100px; overflow: auto; }
.cb-item:has(.cb-tag) { border-color: rgba(255,45,111,0.35); }

/* ═══════════════════════════════════════════
   BTN WARNING
═══════════════════════════════════════════ */
.btn-warning {
  background: rgba(245,158,11,0.15);
  color: var(--accent-warn);
  border: 1px solid rgba(245,158,11,0.35);
}
.btn-warning:hover { background: rgba(245,158,11,0.25); border-color: var(--accent-warn); }

/* ═══════════════════════════════════════════
   ADMIN BADGE IN VICTIM LIST
═══════════════════════════════════════════ */
.badge.admin { background: rgba(255,45,111,.2); color: var(--accent-1); border-color: rgba(255,45,111,.4); font-weight: 800; }

/* ═══════════════════════════════════════════
   INSTALLER TAB
═══════════════════════════════════════════ */
.inst-note {
  font-size: 12px; color: var(--text-2);
  background: rgba(43,210,255,0.06);
  border: 1px solid rgba(43,210,255,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px; margin: 8px 0 14px;
}
.inst-note code { color: var(--accent-3); font-family: var(--font-mono); font-size: 11px; }
.inst-section { margin-bottom: 14px; }
.inst-head {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--text-2);
  margin-bottom: 6px; padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.inst-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}
.inst-lbl { font-size: 11px; color: var(--text-3); font-weight: 600; }
.inst-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-ok);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: text;
  display: block;
}
.inst-code:hover { border-color: var(--accent-ok); }
.inst-file-list { display: flex; flex-direction: column; gap: 6px; }
.inst-file-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.inst-file-name { font-family: var(--font-mono); font-size: 12px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inst-file-size { font-size: 11px; color: var(--text-3); white-space: nowrap; }


