:root {
  --bg: #0b0e10;
  --bg-2: #101417;
  --panel: #14181b;
  --panel-2: #191e22;
  --text: #e8eaec;
  --text-dim: #a0a9b1;
  --text-faint: #66707a;
  --accent: #ff7a2b;
  --accent-2: #37b6ff;
  --amber: #ffb020;
  --grad: linear-gradient(65deg, #ff7a2b 0%, #ffb020 100%);
  --danger: #ff4747;
  --warning: #ffb020;
  --info: #37b6ff;
  --ok: #3ddc84;
  --radius: 10px;
  --rad-sm: 6px;
  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-display: "Chakra Petch", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

textarea, input { user-select: text; -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; }

::selection { background: rgba(255, 122, 43, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a3036; border-radius: 0; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a4249; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg__orb { display: none; }

.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 42%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 42%, transparent 100%);
}

.bg__fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,16,0) 0%, var(--bg) 94%); }

.bg__cube {
  position: absolute;
  border: 1px solid rgba(255, 122, 43, 0.28);
  background: transparent;
}
.bg__cube::before,
.bg__cube::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 122, 43, 0.14);
}
.bg__cube::before { inset: 4px; }
.bg__cube::after { inset: -4px; }
.bg__cube--1 { width: 44px; height: 44px; left: 7%; top: 24%; }
.bg__cube--2 { width: 24px; height: 24px; right: 13%; top: 16%; border-color: rgba(55, 182, 255, 0.34); }
.bg__cube--2::before, .bg__cube--2::after { border-color: rgba(55, 182, 255, 0.16); }
.bg__cube--3 { width: 58px; height: 58px; right: 8%; bottom: 20%; }
.bg__cube--4 { width: 28px; height: 28px; left: 14%; bottom: 26%; border-color: rgba(255, 176, 32, 0.34); }
.bg__cube--4::before, .bg__cube--4::after { border-color: rgba(255, 176, 32, 0.16); }

/* ---------- Layout ---------- */
.wrap { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 90px; }

.topbar {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 122, 43, 0.5);
  background: rgba(255, 122, 43, 0.1);
  border-radius: var(--rad-sm);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.brand__icon svg { width: 32px; height: 32px; }
.brand:hover .brand__icon { background: rgba(255, 122, 43, 0.18); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.brand__name .accent { color: var(--accent); }

.topbar__badge {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
}
.topbar__badge svg { width: 14px; height: 14px; color: var(--ok); }

.topbar__right { display: flex; align-items: center; gap: 10px; }
.topbar__help { padding: 8px 14px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 56px 0 40px; }

.hero__pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
  margin-bottom: 22px;
  animation: rise 0.5s ease both;
}
.hero__pill-dot {
  width: 8px; height: 8px; border-radius: 1px;
  background: var(--ok);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.05;
  text-transform: uppercase;
  animation: rise 0.5s 0.06s ease both;
}
.hero__title .grad { color: var(--accent); }
.hero__title span:not(.grad) { color: var(--text); }

.hero__sub {
  max-width: 640px; margin: 16px auto 26px;
  color: var(--text-dim); font-size: 1rem;
  animation: rise 0.5s 0.12s ease both;
}

.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; animation: rise 0.5s 0.18s ease both; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); background: var(--panel-2); }
.chip svg { width: 14px; height: 14px; color: var(--accent-2); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Glass (Panels, Karten) ---------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Panel ---------- */
.panel { animation: rise 0.5s 0.24s ease both; }

.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.panel__head h2 {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.panel__head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.dropzone {
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--accent); }
.dropzone.is-dragging { background: rgba(255, 122, 43, 0.07); }

.log-input {
  display: block; width: 100%; min-height: 300px; resize: vertical;
  background: var(--bg-2);
  color: #d7dbe0;
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.55;
  padding: 18px;
  border: none; outline: none;
}
.log-input::placeholder { color: var(--text-faint); }

.dropzone__hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
  padding: 5px 12px;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.dropzone__hint svg { width: 13px; height: 13px; }
.dropzone__hint.is-hidden { opacity: 0; transform: translateX(-50%) translateY(6px); }

.panel__footer { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 18px; }
.panel__meta { font-family: var(--mono); font-size: 0.74rem; color: var(--text-faint); text-align: center; letter-spacing: 0.03em; }
.panel__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  border-radius: var(--rad-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel-2);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }

.btn--ghost { color: var(--text-dim); background: transparent; }

.btn--primary {
  font-family: var(--font-display);
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #151210;
  background: var(--grad);
  border: 1px solid rgba(255, 122, 43, 0.7);
  box-shadow: 0 6px 20px rgba(255, 122, 43, 0.28);
}
.btn--primary:hover { background: linear-gradient(65deg, #ff8a41 0%, #ffc14a 100%); border-color: var(--accent); }
.btn--primary:active { box-shadow: 0 3px 12px rgba(255, 122, 43, 0.28); }

.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn--sm { padding: 6px 12px; font-size: 0.76rem; border-radius: var(--rad-sm); }

/* ---------- Results ---------- */
.results { margin-top: 42px; display: grid; gap: 16px; }

.results__summary {
  padding: 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  animation: rise 0.5s ease both;
  border-left: 4px solid var(--info);
}
.results__summary[data-verdict="critical"] { border-left-color: var(--danger); }
.results__summary[data-verdict="warning"] { border-left-color: var(--warning); }
.results__summary[data-verdict="info"] { border-left-color: var(--info); }
.results__summary[data-verdict="ok"] { border-left-color: var(--ok); }

.verdict-icon {
  width: 50px; height: 50px; border-radius: var(--rad-sm); flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.verdict-icon svg { width: 24px; height: 24px; }
.results__summary[data-verdict="critical"] .verdict-icon { color: var(--danger); border-color: rgba(255, 71, 71, 0.4); }
.results__summary[data-verdict="warning"] .verdict-icon { color: var(--warning); border-color: rgba(255, 176, 32, 0.4); }
.results__summary[data-verdict="info"] .verdict-icon { color: var(--info); border-color: rgba(55, 182, 255, 0.4); }
.results__summary[data-verdict="ok"] .verdict-icon { color: var(--ok); border-color: rgba(61, 220, 132, 0.4); }

.verdict-text { flex: 1; min-width: 200px; }
.verdict-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  line-height: 1.15;
}
.verdict-sub { color: var(--text-dim); font-size: 0.9rem; margin-top: 3px; }
.verdict-desc {
  color: var(--text-faint); font-size: 0.8rem; line-height: 1.55;
  margin-top: 8px; max-width: 560px;
}

.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 5px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
  color: var(--text-dim);
  animation: rise 0.4s ease both;
}
.meta-chip b { color: var(--text); font-weight: 600; }
.meta-chip .ldr { color: var(--accent-2); }

/* ---------- Issues ---------- */
.issues { display: grid; gap: 14px; }

.issue {
  position: relative;
  padding: 20px 20px 20px 24px;
  overflow: hidden;
  animation: rise 0.5s ease both;
  animation-delay: calc(var(--i) * 0.08s);
}
.issue::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--sev-color);
}
.issue[data-sev="critical"] { --sev-color: var(--danger); }
.issue[data-sev="warning"] { --sev-color: var(--warning); }
.issue[data-sev="info"] { --sev-color: var(--info); }
.issue[data-sev="success"] { --sev-color: var(--ok); }

.issue__head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.issue__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 9px;
  background: color-mix(in srgb, var(--sev-color) 14%, transparent);
  color: var(--sev-color);
  border: 1px solid color-mix(in srgb, var(--sev-color) 45%, transparent);
  border-radius: var(--rad-sm);
  flex-shrink: 0;
}
.issue[data-sev="critical"] .issue__badge { animation: blinker 1.6s ease-in-out infinite; }
@keyframes blinker { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 0%, transparent); } 50% { box-shadow: 0 0 12px 0 color-mix(in srgb, var(--danger) 50%, transparent); } }

.issue__title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.02em;
  flex: 1; min-width: 180px;
}

.issue__culprit {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 12px 0;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
  font-family: var(--mono); font-weight: 600; font-size: 0.82rem;
}
.issue__culprit-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.issue__culprit-wrap .issue__culprit { margin: 0; }
.issue__culprit svg { width: 15px; height: 15px; color: var(--sev-color); }
.issue__culprit small { color: var(--text-faint); font-weight: 500; margin-left: 6px; }

.issue__detail { color: var(--text-dim); font-size: 0.92rem; }
.issue__fix {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--rad-sm);
  background: color-mix(in srgb, var(--sev-color) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--sev-color) 25%, transparent);
  font-size: 0.9rem;
}
.issue__fix-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--sev-color);
  margin-bottom: 6px;
}
.issue__fix-label svg { width: 14px; height: 14px; }

.issue__stack {
  margin-top: 14px;
  max-height: 170px; overflow: auto;
  border-radius: var(--rad-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.7;
  color: var(--text-faint);
  white-space: pre;
}
.issue__stack .hl { color: var(--sev-color); }

/* ---------- Mods card ---------- */
.mods-card { padding: 22px; animation: rise 0.5s 0.18s ease both; }
.mods-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.mods-card__head h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.mods-card__count { font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); }

.mod-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  padding: 5px 11px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
  color: var(--text-dim);
  cursor: default;
  transition: border-color 0.18s, transform 0.15s;
  animation: rise 0.3s ease both;
  animation-delay: calc(var(--i) * 0.02s);
}
.mod-chip:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.mod-chip__dot {
  width: 8px; height: 8px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.mod-chip b { color: var(--text); font-weight: 600; }

.mods-card__more {
  margin-top: 14px;
  background: none; border: none; cursor: pointer;
  color: var(--accent-2); font-family: var(--font);
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 0;
}
.mods-card__more:hover { text-decoration: underline; }

.results__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Terminal overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(8, 10, 12, 0.86);
  animation: fadeIn 0.2s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.terminal {
  width: min(620px, calc(100% - 40px));
  background: #0a0c0e;
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: terminalUp 0.3s cubic-bezier(0.3, 1.2, 0.6, 1) both;
}
@keyframes terminalUp { from { opacity: 0; transform: translateY(22px) scale(0.98); } to { opacity: 1; transform: none; } }

.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: #101417;
  border-bottom: 1px solid var(--border);
}
.terminal__dot { width: 10px; height: 10px; border-radius: 0; }
.terminal__dot:nth-child(1) { background: #ff4747; }
.terminal__dot:nth-child(2) { background: #ffb020; }
.terminal__dot:nth-child(3) { background: #3ddc84; }
.terminal__title { margin-left: 8px; font-family: var(--mono); font-size: 0.7rem; color: var(--text-faint); letter-spacing: 0.04em; }

.terminal__body {
  padding: 16px 18px;
  min-height: 190px; max-height: 320px; overflow: auto;
  font-family: var(--mono); font-size: 0.76rem; line-height: 1.9;
}
.tline { white-space: pre-wrap; word-break: break-word; opacity: 0; animation: tlineIn 0.25s ease forwards; }
@keyframes tlineIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.tline--ok { color: var(--ok); }
.tline--dim { color: var(--text-faint); }
.tline--accent { color: var(--accent-2); }
.tline--warn { color: var(--warning); }
.tline--err { color: var(--danger); font-weight: 600; }
.tline--cmd { color: var(--text); font-weight: 700; }

.terminal__progress { height: 4px; background: rgba(255, 255, 255, 0.08); }
.terminal__bar-fill {
  height: 100%; width: 0%;
  background: var(--grad);
  transition: width 0.3s ease;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--ok);
  border-radius: var(--rad-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-size: 0.86rem; font-weight: 600;
  animation: toastIn 0.3s cubic-bezier(0.3, 1.2, 0.6, 1) both;
}
.toast.is-out { animation: toastOut 0.25s ease both; }
.toast svg { width: 18px; height: 18px; color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Footer ---------- */
.foot {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-family: var(--mono);
}
.foot strong { color: var(--text-dim); font-weight: 600; }
.foot__small { margin-top: 6px; font-size: 0.72rem; }

/* ---------- Input shake ---------- */
.dropzone.is-error { border-color: var(--danger); animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* ---------- Optionen & Import ---------- */
.panel__privacy {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  margin: 16px 24px 0;
}

.panel__paste {
  padding: 12px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--panel);
  margin: 16px 24px 0;
}
.paste__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.paste__row { display: flex; gap: 10px; }
.paste-input {
  flex: 1; min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
  padding: 10px 14px;
  font-family: var(--mono); font-size: 0.82rem; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.paste-input::placeholder { color: var(--text-faint); }
.paste-input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(55, 182, 255, 0.15);
}
.paste-input.is-error { border-color: var(--danger); }
.paste-input:disabled { opacity: 0.5; }
.paste__hint { margin: 8px 0 0; font-size: 0.74rem; color: var(--text-faint); line-height: 1.45; }

/* ---------- Switch ---------- */
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__slider {
  position: relative; flex-shrink: 0;
  width: 46px; height: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-strong);
  transition: background 0.2s, border-color 0.2s;
}
.switch__slider::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  transition: transform 0.2s;
}
.switch input:checked + .switch__slider { background: var(--grad); border-color: transparent; }
.switch input:checked + .switch__slider::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__slider { box-shadow: 0 0 0 3px rgba(255, 122, 43, 0.35); }
.switch__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch__title { font-size: 0.88rem; font-weight: 700; }
.switch__sub { font-size: 0.76rem; color: var(--text-faint); line-height: 1.45; }

/* ---------- System-Karte ---------- */
.meta-chips--left { justify-content: flex-start; }
.meta-chip--warn b { color: var(--warning); }

/* ---------- Verdächtige Mods ---------- */
.susp-row {
  display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto;
  align-items: center; gap: 12px;
  padding: 8px 0;
}
.susp-name { font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.susp-bar { height: 8px; background: rgba(255, 255, 255, 0.07); overflow: hidden; border: 1px solid var(--border); }
.susp-bar__fill { height: 100%; background: var(--grad); transition: width 0.55s ease; }
.susp-count { font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); }

/* ---------- Modrinth-Karte ---------- */
.mr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mr-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px solid var(--border);
  transition: border-color 0.18s, transform 0.15s;
}
.mr-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.mr-card--primary { border-color: rgba(255, 122, 43, 0.6); box-shadow: 0 0 0 1px rgba(255, 122, 43, 0.2); }
.mr-card__top { display: flex; align-items: center; gap: 12px; }
.mr-icon { width: 46px; height: 46px; border-radius: var(--rad-sm); object-fit: cover; flex-shrink: 0; background: rgba(255, 255, 255, 0.05); }
.mr-icon--letter { display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff; }
.mr-card__meta { min-width: 0; }
.mr-name { font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mr-culprit-tag {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--danger); border: 1px solid currentColor; padding: 2px 7px;
}
.mr-sub { color: var(--text-faint); font-size: 0.76rem; line-height: 1.45; margin-top: 3px; }
.mr-card__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mr-ver { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); font-weight: 600; }
.mr-ver--muted { color: var(--text-faint); font-size: 0.72rem; }
.mr-type {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 6px;
  border: 1px solid transparent;
}
.mr-type--release { color: var(--ok); border-color: rgba(61, 220, 132, 0.4); }
.mr-type--beta { color: var(--warning); border-color: rgba(255, 176, 32, 0.4); }
.mr-type--alpha { color: var(--info); border-color: rgba(55, 182, 255, 0.4); }
.mr-deps { color: var(--warning); font-size: 0.74rem; font-weight: 600; }
.mr-card .btn--sm { align-self: flex-start; margin-top: auto; }

/* ---------- KI-Analyse ---------- */
.ai-card { padding: 22px; animation: rise 0.5s 0.1s ease both; border: 1px solid rgba(255, 122, 43, 0.35); border-top: 3px solid var(--accent); }
.ai-model { font-family: var(--mono); font-size: 0.7rem; color: var(--text-faint); text-align: right; letter-spacing: 0.03em; }

.ai-verdict {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--panel-2); border: 1px solid var(--border);
  margin-bottom: 14px;
  border-left: 4px solid var(--ok);
}
.ai-verdict[data-sev="critical"] { border-left-color: var(--danger); }
.ai-verdict[data-sev="warning"] { border-left-color: var(--warning); }
.ai-verdict[data-sev="info"] { border-left-color: var(--info); }
.ai-verdict[data-sev="ok"] { border-left-color: var(--ok); }
.ai-verdict__icon { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); flex-shrink: 0; }
.ai-verdict__icon svg { width: 20px; height: 20px; }
.ai-verdict[data-sev="critical"] .ai-verdict__icon { color: var(--danger); }
.ai-verdict[data-sev="warning"] .ai-verdict__icon { color: var(--warning); }
.ai-verdict[data-sev="info"] .ai-verdict__icon { color: var(--info); }
.ai-verdict[data-sev="ok"] .ai-verdict__icon { color: var(--ok); }
.ai-verdict__text { flex: 1; min-width: 220px; }
.ai-verdict__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.ai-verdict__summary { font-size: 0.86rem; color: var(--text-dim); margin-top: 3px; }
.ai-verdict__explain {
  font-size: 0.74rem; color: var(--text-faint); line-height: 1.55;
  margin-top: 8px; max-width: 560px;
}

.ai-culprit {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 12px 15px; margin-bottom: 12px;
  background: rgba(255, 122, 43, 0.08);
  border: 1px solid rgba(255, 122, 43, 0.4);
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
}
.ai-culprit svg { width: 17px; height: 17px; color: var(--accent); }
.ai-culprit small { color: var(--text-faint); font-family: var(--mono); font-size: 0.72rem; }
.ai-culprit__reason { width: 100%; font-size: 0.82rem; color: var(--text-dim); margin: 2px 0 0 26px; }

.ai-issue {
  position: relative; margin-top: 12px; padding: 14px 16px 14px 20px;
  background: var(--panel-2); border: 1px solid var(--border);
}
.ai-issue::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sev-color); }
.ai-issue[data-sev="critical"] { --sev-color: var(--danger); }
.ai-issue[data-sev="warning"] { --sev-color: var(--warning); }
.ai-issue[data-sev="info"] { --sev-color: var(--info); }
.ai-issue__head { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ai-issue__badge {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 9px; flex-shrink: 0;
  background: color-mix(in srgb, var(--sev-color) 14%, transparent);
  color: var(--sev-color); border: 1px solid color-mix(in srgb, var(--sev-color) 45%, transparent);
}
.ai-issue__title { font-weight: 700; font-size: 0.98rem; flex: 1; min-width: 160px; }
.ai-issue__detail { color: var(--text-dim); font-size: 0.86rem; margin-top: 8px; }
.ai-issue__mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ai-mod-tag {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  padding: 3px 9px; color: var(--accent-2);
  background: rgba(55, 182, 255, 0.08); border: 1px solid rgba(55, 182, 255, 0.3);
}
.ai-issue__fix {
  margin-top: 11px; padding: 11px 13px;
  background: color-mix(in srgb, var(--sev-color) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--sev-color) 25%, transparent);
  font-size: 0.86rem;
}
.ai-note {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 14px;
  font-size: 0.72rem; color: var(--text-faint); line-height: 1.5;
}
.ai-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--info); }

.ai-mut { color: var(--text-faint); }

/* ---------- CrashLytics AI-Schalter ---------- */
.panel__privacy--ai { margin: 14px 24px 10px; }
.ai-toggle { display: flex; align-items: center; gap: 14px; }
.ai-toggle__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--grad); color: #151210;
  border: 1px solid rgba(255, 122, 43, 0.7);
  box-shadow: 0 4px 14px rgba(255, 122, 43, 0.25);
}
.ai-toggle__icon svg { width: 20px; height: 20px; }
.ai-toggle__text { flex: 1; min-width: 0; }
.ai-toggle__title { font-size: 0.88rem; font-weight: 800; }
.ai-toggle__sub { font-size: 0.74rem; color: var(--text-faint); line-height: 1.5; }
.ai-toggle__switch {
  flex-shrink: 0;
  position: relative;
  width: 52px; height: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ai-toggle__track { position: absolute; inset: 0; }
.ai-toggle__thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  transition: transform 0.2s;
}
.ai-toggle__switch[aria-checked="true"] {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(255, 122, 43, 0.4);
}
.ai-toggle__switch[aria-checked="true"] .ai-toggle__thumb { transform: translateX(24px); }
.ai-toggle__switch:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 43, 0.35); }

/* ---------- Hilfe-Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(8, 10, 12, 0.86);
  animation: fadeIn 0.2s ease both;
}
.modal-overlay[aria-hidden="true"] { display: none; }

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #101417;
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: terminalUp 0.3s cubic-bezier(0.3, 1.2, 0.6, 1) both;
}
.modal__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.modal__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.modal__close {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.modal__close:hover { background: var(--panel-2); color: var(--text); }
.modal__close svg { width: 16px; height: 16px; }
.modal__body {
  padding: 14px 18px 20px;
  max-height: calc(100vh - 150px);
  overflow: auto;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.modal__body h4 {
  font-family: var(--font-display);
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-2);
  margin: 14px 0 4px;
}
.modal__body h4:first-child { margin-top: 0; }
.modal__body p { line-height: 1.6; }
.modal__body code {
  font-family: var(--mono); font-size: 0.82em;
  color: var(--accent-2);
  background: rgba(55, 182, 255, 0.08);
  padding: 1px 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 38px 0 30px; }
  .panel__head { flex-direction: column; align-items: stretch; }
  .panel__head-actions { justify-content: flex-start; }
  .panel__footer { flex-direction: column; align-items: stretch; }
  .panel__actions { justify-content: stretch; }
  .panel__actions .btn { flex: 1; }
  .panel__privacy { margin: 16px 16px 0; }
  .panel__paste { margin: 16px 16px 0; }
  .panel__privacy--ai { margin: 12px 16px 8px; }
  .bg__cube { display: none; }
  .modal-overlay { padding: 16px; align-items: flex-end; }
  .modal { max-height: calc(100vh - 32px); }
  .ai-model { text-align: left; }
  .paste__row { flex-direction: column; }
  .results__summary { flex-direction: column; align-items: flex-start; }
  .meta-chips { justify-content: flex-start; }
  .susp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .susp-bar { grid-column: 1 / -1; order: 3; }
  .topbar__badge span { display: none; }
  .issue { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
}