/* orjicloud Darkmode Design mit roten Akzenten & Lumi Cyber-Immunsystem Engine */
:root {
  --oc-bg: #070a13;
  --oc-surface: #0e1424;
  --oc-surface-2: #141c30;
  --oc-surface-3: #1a2540;
  --oc-border: #1d2843;
  --oc-border-md: #28395f;
  --oc-border-red: rgba(239, 68, 68, 0.45);
  --oc-primary: #ef4444;
  --oc-primary-dark: #dc2626;
  --oc-accent: #f43f5e;
  --oc-accent-bright: #ff2d55;
  --oc-red-glow: rgba(239, 68, 68, 0.35);
  --oc-red-subtle: rgba(239, 68, 68, 0.08);
  --oc-text: #f1f5f9;
  --oc-text-muted: #94a3b8;
  --oc-text-dim: #64748b;

  --crit: #ef4444;
  --high: #f97316;
  --med:  #eab308;
  --low:  #38bdf8;
  --info: #64748b;
  --ok:   #10b981;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-red: 0 6px 24px rgba(239, 68, 68, 0.35);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--oc-bg);
  color: var(--oc-text);
  background-image: 
    radial-gradient(circle at 12% 10%, rgba(239, 68, 68, 0.045) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(244, 63, 94, 0.035) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(14, 20, 36, 0.5) 0%, transparent 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--oc-accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #fff; }

.app { display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.view { padding: 40px 32px 110px; max-width: 1280px; width: 100%; margin: 0 auto; animation: viewFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Subpage-Kopfzeile
   ========================================================================== */
.subpage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 4px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--oc-surface-2);
  border: 1px solid var(--oc-border-md);
  border-radius: 12px;
  color: var(--oc-text);
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.2s;
}
.subpage-back:hover {
  border-color: var(--oc-primary);
  color: #fff;
  background: rgba(239, 68, 68, 0.1);
  transform: translateX(-2px);
  box-shadow: 0 0 16px var(--oc-red-glow);
}
.subpage-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   KPI-Metrik-Karten & Stat-Tiles (Shield & Dashboard)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--oc-surface);
  border: 1px solid var(--oc-border);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.kpi-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color, var(--oc-primary)), transparent);
  opacity: 0.7;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--oc-border-md);
  box-shadow: var(--shadow);
}
.kpi-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--oc-surface-2);
  border: 1px solid var(--oc-border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-color, var(--oc-primary));
  box-shadow: 0 0 20px var(--oc-red-glow);
  flex-shrink: 0;
}
.kpi-content {
  flex: 1;
  min-width: 0;
}
.kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--oc-text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-sub {
  font-size: 11px;
  color: var(--oc-text-dim);
  margin-top: 2px;
}

/* ==========================================================================
   Segmentierte Tab-Navigation (Shield Dashboard)
   ========================================================================== */
.shield-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.shield-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  background: var(--oc-surface);
  border: 1px solid var(--oc-border);
  border-radius: 14px;
  color: var(--oc-text-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shield-tab-btn:hover {
  color: #fff;
  border-color: var(--oc-border-md);
  background: var(--oc-surface-2);
}
.shield-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(244, 63, 94, 0.08));
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.22);
}
.shield-tab-btn.active i { color: var(--oc-primary); }

.tab-badge {
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.shield-tab-btn.active .tab-badge {
  background: var(--oc-primary);
  color: #fff;
}

/* ==========================================================================
   Cards & Content-Bereiche
   ========================================================================== */
.card {
  background: var(--oc-surface);
  border: 1px solid var(--oc-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  transition: border-color 0.2s ease;
}
.card:hover {
  border-color: var(--oc-border-md);
}
.card.err {
  border-color: var(--crit);
  background: rgba(239, 68, 68, 0.08);
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}
h3 {
  margin: 0 0 10px;
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
.sub {
  color: var(--oc-text-muted);
  font-size: 13.5px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Form Controls */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select {
  background: var(--oc-surface-2);
  border: 1px solid var(--oc-border-md);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, input[type=url]:focus, input[type=number]:focus, select:focus {
  border-color: var(--oc-primary);
  box-shadow: 0 0 18px var(--oc-red-glow);
  background: var(--oc-surface-3);
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--oc-text-muted);
  margin-bottom: 6px;
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, var(--oc-primary), var(--oc-primary-dark));
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  box-shadow: var(--shadow-red);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  user-select: none;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.55);
  filter: brightness(1.08);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn.ghost, .btn.btn-secondary {
  background: var(--oc-surface-2);
  color: var(--oc-text);
  border: 1px solid var(--oc-border-md);
  box-shadow: none;
}
.btn.ghost:hover, .btn.btn-secondary:hover {
  border-color: var(--oc-primary);
  color: #fff;
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 16px var(--oc-red-glow);
}
.btn.sm {
  padding: 6px 14px;
  font-size: 12.5px;
  border-radius: 9px;
}

/* ==========================================================================
   orjicloud Signature Toggle Switch
   ========================================================================== */
.oc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.oc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.oc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--oc-surface-3);
  border: 1px solid var(--oc-border-md);
  border-radius: 24px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.oc-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.oc-switch input:checked + .oc-slider {
  background: linear-gradient(135deg, var(--oc-primary), var(--oc-accent));
  border-color: var(--oc-accent);
  box-shadow: 0 0 14px var(--oc-red-glow);
}
.oc-switch input:checked + .oc-slider:before {
  transform: translateX(20px);
}

.toggles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--oc-surface-2);
  border: 1px solid var(--oc-border);
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: left;
}
.toggle-card:hover {
  border-color: var(--oc-border-md);
  background: rgba(20, 28, 48, 0.95);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}
.toggle-card.active {
  border-color: rgba(96, 165, 250, 0.45);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.09), rgba(20, 28, 48, 0.85));
}
.toggle-card.active-safe {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.09), rgba(20, 28, 48, 0.85));
}
.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toggle-title {
  font-weight: 600;
  font-size: 13.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-desc {
  font-size: 12px;
  color: var(--oc-text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Threat-Score Watchlist & Learned Decoys
   ========================================================================== */
.score-progress-wrap {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--oc-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}
.score-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #38bdf8 0%, #eab308 50%, #ef4444 100%);
  transition: width 0.3s ease;
}

.signal-pill {
  display: inline-block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 4px;
  margin-bottom: 2px;
}

.decoy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--oc-surface-2);
  border: 1px solid var(--oc-border-red);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-right: 8px;
  margin-bottom: 8px;
}
.decoy-chip code {
  color: #fff;
  font-weight: 700;
}
.decoy-chip .btn-forget {
  background: none;
  border: none;
  color: var(--oc-text-dim);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.decoy-chip .btn-forget:hover {
  color: var(--crit);
  background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   Tabellen-Design (Bans, History, Audit)
   ========================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--oc-border);
}
th {
  color: var(--oc-text-dim);
  font-size: 11.5px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
}
tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
td code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #fff;
  background: var(--oc-surface-2);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--oc-border);
}

/* ==========================================================================
   Zentriertes Hero-Layout (Startseite / Scanner)
   ========================================================================== */
.hero-center-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  margin: 32px auto 60px;
  width: 100%;
  animation: heroFadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-lumi-wrap {
  margin-bottom: 24px;
  position: relative;
  animation: floatLumi 5.5s ease-in-out infinite;
}
@keyframes floatLumi {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.oc-lumi-container.hero-large {
  --size: 210px;
}

.hero-text-wrap {
  margin-bottom: 30px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--oc-accent);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.15);
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.9px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--oc-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-card {
  width: 100%;
  background: var(--oc-surface);
  border: 1px solid var(--oc-border-md);
  border-radius: 22px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
  text-align: left;
  backdrop-filter: blur(14px);
}

.scan-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--oc-surface-2);
  border: 1.5px solid var(--oc-border-md);
  border-radius: 16px;
  padding: 8px 10px 8px 18px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scan-bar:focus-within {
  border-color: var(--oc-primary);
  box-shadow: 0 0 24px var(--oc-red-glow), inset 0 2px 6px rgba(0, 0, 0, 0.4);
  background: var(--oc-surface-3);
}
.sb-icon {
  font-size: 18px;
  color: var(--oc-text-dim);
}
.scan-bar:focus-within .sb-icon {
  color: var(--oc-primary);
}
.scan-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  outline: none;
  padding: 8px 0;
}
.scan-bar input::placeholder {
  color: var(--oc-text-dim);
}
.btn-hero {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 12px;
  white-space: nowrap;
}

.hero-quick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 20px;
  flex-wrap: wrap;
}
.hero-quick-label {
  font-size: 13px;
  color: var(--oc-text-dim);
}
.pill-btn {
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 12.5px;
}

.hero-modes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.mode {
  border: 1.5px solid var(--oc-border);
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  background: var(--oc-surface-2);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mode:hover {
  border-color: var(--oc-border-md);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.mode.on {
  border-color: var(--oc-primary);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(244, 63, 94, 0.06));
  box-shadow: 0 0 24px var(--oc-red-glow);
}
.mode-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  font-size: 15px;
  color: #fff;
}
.mode span {
  color: var(--oc-text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  display: block;
}

.own-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--oc-border);
  border-radius: 12px;
  cursor: pointer;
}
.own-text {
  font-size: 13px;
  color: var(--oc-text-muted);
  line-height: 1.4;
}

/* Modul-Kacheln */
.mods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.mod {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--oc-border);
  border-radius: 16px;
  background: var(--oc-surface-2);
  cursor: pointer;
  align-items: flex-start;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.mod:hover:not([data-dis="true"]) {
  border-color: var(--oc-border-md);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.mod:not(.off):not([data-dis="true"]) {
  border-color: rgba(239, 68, 68, 0.32);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(244, 63, 94, 0.02));
}
.mod.off { opacity: 0.4; }

.mod-body { flex: 1; min-width: 0; }
.mod-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.mod-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.mod-desc {
  color: var(--oc-text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--oc-border);
  color: var(--oc-text-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge.act {
  color: var(--oc-accent-bright);
  border-color: rgba(255, 45, 85, 0.35);
  background: rgba(255, 45, 85, 0.1);
}

/* ==========================================================================
   Report & Result Header
   ========================================================================== */
.report-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}
.target {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  word-break: break-all;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.meta {
  color: var(--oc-text-muted);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.stat {
  border: 1px solid var(--oc-border);
  background: var(--oc-surface-2);
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 3px solid var(--c);
}
.stat b {
  font-size: 22px;
  color: #fff;
  font-weight: 800;
}
.stat small {
  color: var(--oc-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 8px solid var(--oc-surface-3);
  border-top-color: var(--c);
  border-right-color: var(--c);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
}
.ring .v {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.ring .lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--oc-text-dim);
  margin-top: 4px;
}

.progress {
  height: 8px;
  background: var(--oc-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 18px;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--oc-primary), var(--oc-accent));
  box-shadow: 0 0 14px var(--oc-red-glow);
  transition: width 0.3s;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--oc-surface-2);
  border: 1px solid var(--oc-border);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--oc-text-muted);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--oc-text-dim); }
.chip.done { border-color: rgba(16, 185, 129, 0.4); color: #fff; }
.chip.done .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.chip.running { border-color: var(--oc-border-red); color: #fff; }
.chip.running .dot { background: var(--oc-primary); animation: p 1s infinite; }
.chip.error { border-color: rgba(239, 68, 68, 0.4); color: var(--crit); }
.chip.error .dot { background: var(--crit); }
@keyframes p { 50% { opacity: 0.2; } }

.finding {
  border: 1px solid var(--oc-border);
  background: var(--oc-surface-2);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
  margin-bottom: 10px;
}
.finding:hover { border-color: var(--oc-border-md); }
.finding summary {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  list-style: none;
}
.finding summary::-webkit-details-marker { display: none; }
.finding.critical { border-left: 5px solid var(--crit); }
.finding.high { border-left: 5px solid var(--high); }
.finding.medium { border-left: 5px solid var(--med); }
.finding.low { border-left: 5px solid var(--low); }
.finding.info { border-left: 5px solid var(--info); }
.finding .t { flex: 1; font-weight: 700; color: #fff; font-size: 15px; }
.pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--c);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.finding .body { padding: 0 20px 20px; color: var(--oc-text-muted); font-size: 14px; }
.finding .body code {
  display: block;
  background: var(--oc-surface);
  border: 1px solid var(--oc-border);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 10px 0;
  color: #fff;
  word-break: break-all;
  font-size: 13px;
}
.rec { color: var(--ok); margin-top: 10px; font-weight: 600; }

/* ==========================================================================
   Lumi-Effekt Engine
   ========================================================================== */
.oc-lumi-container {
  --size: 200px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size);
  height: var(--size);
}
.oc-lumi-container.live { --size: 150px; }

.oc-lumi-aura {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.45) 0%, rgba(255, 45, 85, 0.2) 35%, transparent 70%);
  filter: blur(25px);
  animation: auraPulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes auraPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.95; }
}

.oc-lumi-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}
.oc-lumi-blob.b1 {
  width: 55%; height: 55%; top: 5%; left: 10%;
  background: radial-gradient(circle, #ef4444 0%, transparent 70%);
  animation: blobMove1 7s ease-in-out infinite;
}
.oc-lumi-blob.b2 {
  width: 50%; height: 50%; bottom: 8%; right: 8%;
  background: radial-gradient(circle, #ff2d55 0%, transparent 70%);
  animation: blobMove2 6s ease-in-out infinite;
}
.oc-lumi-blob.b3 {
  width: 45%; height: 45%; top: 30%; right: 20%;
  background: radial-gradient(circle, #b91c1c 0%, transparent 70%);
  animation: blobMove3 8s ease-in-out infinite;
}

@keyframes blobMove1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(15%, 20%) scale(1.15); } }
@keyframes blobMove2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20%, -15%) scale(1.1); } }
@keyframes blobMove3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-10%, 15%) scale(1.2); } }

.oc-lumi-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  pointer-events: none;
  animation: waveExpand 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.oc-lumi-wave.w2 { animation-delay: 1.6s; border-color: rgba(255, 45, 85, 0.4); }
@keyframes waveExpand {
  0% { transform: scale(0.65); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.oc-lumi-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(239, 68, 68, 0.6) 360deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: sweepRotate 2.8s linear infinite;
  pointer-events: none;
}
@keyframes sweepRotate { to { transform: rotate(360deg); } }

.oc-lumi-img {
  position: relative;
  width: 48%;
  height: 48%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.7));
}

/* ==========================================================================
   Floating Omnibutton
   ========================================================================== */
.omnibutton-wrap {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.omnibutton {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border: 2px solid rgba(255, 45, 85, 0.7);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.55), 0 0 20px rgba(255, 45, 85, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
  outline: none;
  padding: 0;
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
}
.omni-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 45, 85, 0.65);
  animation: omniPulse 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes omniPulse {
  0% { transform: scale(0.96); opacity: 0.95; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  60% { transform: scale(1.24); opacity: 0.15; box-shadow: 0 0 24px 6px rgba(255, 45, 85, 0.35); }
  100% { transform: scale(1.3); opacity: 0; box-shadow: 0 0 30px 10px transparent; }
}
.omnibutton:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 38px rgba(239, 68, 68, 0.75), 0 0 30px rgba(255, 45, 85, 0.6);
  border-color: #ff476f;
}
.omni-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.omni-open-icon { font-size: 22px; color: #fff; transition: all 0.25s ease; }
.omni-close-icon { font-size: 22px; color: #fff; position: absolute; opacity: 0; transform: rotate(-90deg) scale(0.6); transition: all 0.25s ease; }

.omnibutton-wrap.open .omni-open-icon { opacity: 0; transform: rotate(90deg) scale(0.6); }
.omnibutton-wrap.open .omni-close-icon { opacity: 1; transform: rotate(0) scale(1); }
.omnibutton-wrap.open .omnibutton { background: linear-gradient(135deg, #b91c1c, #881337); border-color: #ef4444; }

.omni-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-end;
  pointer-events: none;
}
.omnibutton-wrap.open .omni-menu { pointer-events: auto; }
.omni-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  outline: none;
  opacity: 0;
  transform: translateY(18px) scale(0.85);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.omnibutton-wrap.open .omni-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.omnibutton-wrap.open .omni-item:nth-child(1) { transition-delay: 0.04s; }
.omnibutton-wrap.open .omni-item:nth-child(2) { transition-delay: 0.08s; }
.omnibutton-wrap.open .omni-item:nth-child(3) { transition-delay: 0.12s; }
.omnibutton-wrap.open .omni-item:nth-child(4) { transition-delay: 0.16s; }
.omnibutton-wrap.open .omni-item:nth-child(5) { transition-delay: 0.20s; }

.omni-label {
  background: rgba(16, 23, 38, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--oc-border-md);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.omni-item:hover .omni-label {
  border-color: var(--oc-primary);
  color: var(--oc-accent);
}
.omni-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--oc-surface-2);
  border: 1px solid var(--oc-border-md);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  margin-right: 6px;
  flex-shrink: 0;
}
.omni-item:hover .omni-icon {
  background: linear-gradient(135deg, var(--oc-primary), var(--oc-accent));
  border-color: var(--oc-accent);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--oc-red-glow);
}

/* ==========================================================================
   SuperAdmin Lumi Login-Screen Styling
   ========================================================================== */
.lumi-login-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}
.lumi-shield-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1040px;
  height: 1040px;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lumi-shield-ring-bg { position: absolute; border-radius: 50%; }
.ring-dashed {
  width: 1000px;
  height: 1000px;
  border: 2.5px dashed rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 45px rgba(239, 68, 68, 0.12);
  animation: lumiShieldRotate 70s linear infinite;
}
.ring-arcs {
  width: 860px;
  height: 860px;
  border: 3px solid transparent;
  border-top: 3.5px solid rgba(239, 68, 68, 0.8);
  border-bottom: 3.5px solid rgba(255, 45, 85, 0.8);
  filter: drop-shadow(0 0 22px rgba(239, 68, 68, 0.6));
  animation: lumiShieldCounterRotate 85s linear infinite;
}
@keyframes lumiShieldRotate { to { transform: rotate(360deg); } }
@keyframes lumiShieldCounterRotate { to { transform: rotate(-360deg); } }

.lumi-login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(14, 20, 36, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--oc-border-md);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(239, 68, 68, 0.15);
  animation: lumiCardPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 2;
}
@keyframes lumiCardPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.login-avatar { --size: 110px; }
.lumi-login-header { display: flex; justify-content: center; margin-bottom: 16px; }
.lumi-badge-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.lumi-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--oc-accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group { margin-bottom: 18px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.lumi-input {
  width: 100%;
  padding-right: 44px;
}
.pw-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--oc-text-dim);
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
}
.pw-toggle-btn:hover { color: #fff; }
.lumi-login-btn { width: 100%; margin-top: 10px; padding: 14px; }
.lumi-login-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 12px;
  color: var(--oc-text-dim);
}
.lumi-login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--crit);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toast & Lightbox */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--oc-surface-2);
  border: 1px solid var(--oc-border-red);
  color: #fff;
  padding: 12px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 150;
  font-weight: 600;
  font-size: 14px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 13, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92%; max-height: 92%; border-radius: 14px; border: 1px solid var(--oc-border-md); box-shadow: var(--shadow); }

/* Responsive Media Queries */
@media(max-width: 960px) {
  .view { padding: 28px 20px 90px; }
  .hero-title { font-size: 32px; }
  .hero-modes-row { grid-template-columns: 1fr; }
  .report-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media print {
  .omnibutton-wrap, .btn, .subpage-back { display: none !important; }
}

