/* ============================================================
   Neural CV Theme – Main Stylesheet
   Palette: Deep Black · Silver-White · Royal Blue
   ============================================================ */

:root {
  --black-deep:    #050608;
  --black-rich:    #0c0d12;
  --black-mid:     #121420;
  --black-soft:    #1a1d2e;
  --blue-royal:    #1e40af;
  --blue-bright:   #2563eb;
  --blue-glow:     #3b82f6;
  --blue-pale:     #60a5fa;
  --silver-dark:   #6b7280;
  --silver-mid:    #9ca3af;
  --silver-light:  #d1d5db;
  --silver-bright: #e5e8ed;
  --white:         #f0f2f7;
  --white-pure:    #ffffff;

  --font-display: 'Cormorant Garamond', 'Didot', 'Playfair Display', Georgia, serif;
  --font-body:    'Josefin Sans', 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --glow-blue:   0 0 20px rgba(37, 99, 235, 0.4), 0 0 60px rgba(37, 99, 235, 0.15);
  --glow-silver: 0 0 15px rgba(209, 213, 219, 0.2);
  --shadow-deep: 0 24px 64px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.6);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--black-deep);
  color: var(--silver-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 200; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 400; }

p { color: var(--silver-mid); line-height: 1.8; }

a {
  color: var(--blue-pale);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--white); }

::selection { background: var(--blue-royal); color: var(--white-pure); }

/* ── Layout ── */
.site-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── Header ── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(180deg, rgba(5,6,8,0.97) 0%, rgba(5,6,8,0.0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}

#site-header.scrolled {
  background: rgba(5,6,8,0.97);
  border-bottom-color: rgba(37,99,235,0.2);
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-title-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 200;
  color: var(--white-pure);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.site-title-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue-glow);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-royal);
  color: var(--white-pure);
  border-color: var(--blue-bright);
}
.btn-primary:hover {
  background: var(--blue-bright);
  color: var(--white-pure);
  box-shadow: var(--glow-blue);
}

.btn-ghost {
  background: transparent;
  color: var(--silver-light);
  border-color: rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  color: var(--white-pure);
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue-pale);
  border-color: var(--blue-royal);
}
.btn-outline-blue:hover {
  background: var(--blue-royal);
  color: var(--white-pure);
  box-shadow: var(--glow-blue);
}

.btn-danger {
  background: rgba(220,38,38,0.15);
  color: #fca5a5;
  border-color: rgba(220,38,38,0.4);
}
.btn-danger:hover {
  background: rgba(220,38,38,0.3);
}

/* ── Neural Canvas Stage ── */
#neural-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 40%, rgba(30,64,175,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(37,99,235,0.05) 0%, transparent 50%),
              var(--black-deep);
}

#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
}

/* ── Profile Hero (unauthenticated) ── */
#profile-hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 6rem 2rem 4rem;
  pointer-events: none;
}

/* Wenn kein Avatar vorhanden → Hero schrumpft */
#profile-hero:not(:has(.profile-avatar-ring)):not(:has(.profile-linkedin)) {
  min-height: auto;
  padding: 2rem;
}

#profile-hero > * { pointer-events: auto; }

.profile-avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue-royal), var(--silver-mid), var(--blue-bright), var(--silver-dark), var(--blue-royal));
  animation: ring-spin 8s linear infinite;
  z-index: -1;
}

.profile-avatar-ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(37,99,235,0.3), transparent, rgba(37,99,235,0.15), transparent);
  animation: ring-spin 12s linear infinite reverse;
  z-index: -2;
}

@keyframes ring-spin { to { transform: rotate(360deg); } }

.profile-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--black-mid);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--silver-light);
  letter-spacing: 0.1em;
}

.profile-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 100;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-pure);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--white-pure) 0%, var(--silver-light) 50%, var(--blue-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-title {
  font-size: 0.75rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 2.5rem;
}

.profile-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(37,99,235,0.4);
  border-radius: var(--radius-sm);
  color: var(--silver-light);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition);
  background: rgba(30,64,175,0.1);
  margin-bottom: 3rem;
}
.profile-linkedin:hover {
  background: rgba(30,64,175,0.25);
  border-color: var(--blue-bright);
  color: var(--white-pure);
  box-shadow: var(--glow-blue);
}
.profile-linkedin svg { width: 18px; height: 18px; }

.profile-cta-text {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
  margin-bottom: 1rem;
}

.profile-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Neural Controls Toolbar ── */
#neural-toolbar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(12,13,18,0.92);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: var(--radius-full);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-deep);
  transition: opacity 0.3s;
}

#neural-toolbar.hidden { opacity: 0; pointer-events: none; }

/* Toolbar immer sichtbar – kein Auth-Gate mehr */
#neural-toolbar { opacity: 1 !important; pointer-events: auto !important; }

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  margin: 0 0.25rem;
}

.toolbar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--silver-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}
.toolbar-btn:hover {
  background: rgba(37,99,235,0.2);
  border-color: var(--blue-bright);
  color: var(--white-pure);
}
.toolbar-btn.active {
  background: var(--blue-royal);
  border-color: var(--blue-bright);
  color: var(--white-pure);
  box-shadow: var(--glow-blue);
}

.toolbar-btn svg { width: 16px; height: 16px; pointer-events: none; }

.toolbar-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black-rich);
  color: var(--silver-light);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toolbar-btn:hover .toolbar-tooltip { opacity: 1; }

/* Nav-Links (Datenschutz, Impressum etc.) – etwas dezenter als Aktions-Buttons */
.toolbar-nav-link {
  color: var(--silver-dark);
  text-decoration: none;
}
.toolbar-nav-link:hover {
  color: var(--silver-light);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.2);
}

/* ── Neuron Nodes ── */
.neuron-node {
  position: absolute;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: filter 0.2s;
  z-index: 100;
}
.neuron-node:active { cursor: grabbing; }
.neuron-node:hover { filter: drop-shadow(0 0 12px rgba(37,99,235,0.6)); }

.neuron-bubble {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37,99,235,0.4);
  background: radial-gradient(circle at 35% 35%, rgba(37,99,235,0.2) 0%, rgba(12,13,18,0.9) 60%);
  backdrop-filter: blur(4px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.neuron-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(37,99,235,0.5) 20%, transparent 40%);
  animation: neuron-spin 6s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.neuron-node:hover .neuron-bubble::before { opacity: 1; }

@keyframes neuron-spin { to { transform: rotate(360deg); } }

.neuron-node.type-job     .neuron-bubble { border-color: rgba(37,99,235,0.5);  }
.neuron-node.type-skill   .neuron-bubble { border-color: rgba(156,163,175,0.5); }
.neuron-node.type-hobby   .neuron-bubble { border-color: rgba(59,130,246,0.4);  }
.neuron-node.type-project .neuron-bubble { border-color: rgba(96,165,250,0.5);  }
.neuron-node.type-education .neuron-bubble { border-color: rgba(209,213,219,0.5); }

.neuron-icon {
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.neuron-label {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-light);
  text-align: center;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}

.neuron-node.public-node .neuron-bubble {
  border-color: rgba(209,213,219,0.6);
  background: radial-gradient(circle at 35% 35%, rgba(209,213,219,0.15) 0%, rgba(12,13,18,0.9) 60%);
}

/* ── Connection Lines (SVG canvas) ── */
.connection-line {
  stroke: rgba(37,99,235,0.3);
  stroke-linecap: round;
  fill: none;
  transition: stroke 0.3s, stroke-width 0.3s;
  pointer-events: stroke;
  cursor: pointer;
}
.connection-line:hover { stroke: rgba(96,165,250,0.7); }

/* Weight classes */
.connection-weight-1 { stroke-width: 0.5; stroke: rgba(37,99,235,0.15); }
.connection-weight-2 { stroke-width: 1;   stroke: rgba(37,99,235,0.25); }
.connection-weight-3 { stroke-width: 1.5; stroke: rgba(37,99,235,0.35); }
.connection-weight-4 { stroke-width: 2.5; stroke: rgba(59,130,246,0.5); }
.connection-weight-5 { stroke-width: 4;   stroke: rgba(96,165,250,0.65); stroke-dasharray: none; }

/* ── Modal / Overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,6,8,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-box {
  background: linear-gradient(145deg, var(--black-rich) 0%, var(--black-mid) 100%);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-deep), 0 0 60px rgba(37,99,235,0.08);
  transform: translateY(20px);
  transition: transform 0.3s;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-royal) transparent;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--blue-royal); border-radius: 2px; }

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--silver-mid);
  transition: var(--transition);
  font-size: 1.1rem;
  line-height: 1;
}
.modal-close:hover { background: rgba(220,38,38,0.2); border-color: rgba(220,38,38,0.5); color: #fca5a5; }

.modal-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.modal-category-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 0.75rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 200;
  color: var(--white-pure);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-dark);
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--silver-light);
}

.modal-content {
  color: var(--silver-mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.modal-content p { margin-bottom: 1rem; }
.modal-content img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.modal-connections {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.modal-connections h4 {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver-dark);
  margin-bottom: 1rem;
}
.connection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.connection-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(12,13,18,0.8);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--silver-light);
  cursor: pointer;
  transition: var(--transition);
}
.connection-chip:hover { border-color: var(--blue-bright); color: var(--white-pure); }
.connection-chip .weight-bar {
  display: flex;
  gap: 2px;
}
.connection-chip .weight-bar span {
  width: 4px;
  height: 10px;
  border-radius: 1px;
  background: rgba(37,99,235,0.3);
}
.connection-chip .weight-bar span.active { background: var(--blue-bright); }

/* ── Registration / Auth Modals ── */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: var(--silver-dark);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tab.active { color: var(--blue-pale); border-bottom-color: var(--blue-bright); }

.auth-form { display: none; }
.auth-form.active { display: block; }

/* ── Form Elements ── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--silver-bright);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-bright);
  background: rgba(37,99,235,0.05);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-control::placeholder { color: var(--silver-dark); }
textarea.form-control { resize: vertical; min-height: 80px; font-size: 16px; box-sizing: border-box; }

.form-control-inline {
  display: flex;
  gap: 0.5rem;
}
.form-control-inline .form-control { flex: 1; }

.form-hint {
  font-size: 0.68rem;
  color: var(--silver-dark);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}

.form-error {
  font-size: 0.72rem;
  color: #fca5a5;
  margin-top: 0.4rem;
  display: none;
}
.form-error.visible { display: block; }

.form-success {
  font-size: 0.72rem;
  color: #86efac;
  margin-top: 0.4rem;
  display: none;
}
.form-success.visible { display: block; }

.form-divider {
  text-align: center;
  color: var(--silver-dark);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 1.5rem 0;
  position: relative;
}
.form-divider::before, .form-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.75rem;
}
.form-actions .btn { flex: 1; justify-content: center; }

/* ── 2FA Steps ── */
.step-indicator {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: var(--transition);
}
.step-dot.active { background: var(--blue-bright); box-shadow: 0 0 8px var(--blue-glow); }
.step-dot.done { background: rgba(134,239,172,0.7); }

/* ── Lock Overlay on Neurons ── */
.neuron-lock-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 800;
  background: var(--black-rich);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: var(--shadow-deep), var(--glow-blue);
  display: none;
}
.neuron-lock-hint.visible { display: block; }

.lock-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ── PDF Export Panel ── */
#pdf-panel {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  width: 280px;
  background: rgba(12,13,18,0.94);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-deep);
  display: none;
}
#pdf-panel.visible { display: block; }

.pdf-panel-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pdf-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pdf-option:last-of-type { border-bottom: none; }
.pdf-option label {
  font-size: 0.75rem;
  color: var(--silver-mid);
  cursor: pointer;
  letter-spacing: 0.08em;
}

input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--blue-bright);
  cursor: pointer;
}

/* ── Admin: Neuron Editor ── */
.neuron-admin-wrap {
  padding: 2rem;
  background: var(--black-rich);
  min-height: 100vh;
  font-family: var(--font-body);
}

/* ── Neuron Single Page ── */
#neuron-single {
  max-width: 860px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 10;
}

.neuron-single-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(37,99,235,0.15);
}

.neuron-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}

.badge-job       { background: rgba(37,99,235,0.15);  color: var(--blue-pale);   border: 1px solid rgba(37,99,235,0.3); }
.badge-skill     { background: rgba(156,163,175,0.1); color: var(--silver-mid);  border: 1px solid rgba(156,163,175,0.2); }
.badge-hobby     { background: rgba(59,130,246,0.1);  color: var(--blue-glow);   border: 1px solid rgba(59,130,246,0.2); }
.badge-project   { background: rgba(96,165,250,0.1);  color: var(--blue-pale);   border: 1px solid rgba(96,165,250,0.2); }
.badge-education { background: rgba(209,213,219,0.08);color: var(--silver-light);border: 1px solid rgba(209,213,219,0.15); }

/* ── Weight Connection Editor ── */
.connection-editor {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.75rem;
}

.weight-slider {
  width: 100%;
  accent-color: var(--blue-bright);
  cursor: pointer;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 5rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--black-rich);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--silver-light);
  box-shadow: var(--shadow-deep);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 320px;
  animation: toast-in 0.3s ease forwards;
  pointer-events: auto;
}
.toast.success { border-color: rgba(134,239,172,0.3); }
.toast.error   { border-color: rgba(252,165,165,0.3); }
.toast.info    { border-color: rgba(37,99,235,0.4);   }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Loading States ── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(37,99,235,0.2);
  border-top-color: var(--blue-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(37,99,235,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-bright); }

/* ── Responsive ── */
/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN – Mobile-First Overhaul
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Canvas: touch-action none verhindert Browser-Scroll-Interception ── */
#neural-canvas {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Desktop/Mobile-Hinweis Toggle */
.hint-mobile  { display: none; }
.hint-desktop { display: inline; }

/* ── Tablet (≤ 900px) ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #site-header {
    padding: 0.9rem 1.5rem;
  }

  .site-title-name {
    font-size: 1.2rem;
  }

  .site-subtitle {
    font-size: 0.65rem;
  }

  #neural-toolbar {
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
  }

  .toolbar-btn {
    width: 40px;
    height: 40px;
  }

  /* PDF-Panel auf Tablet hochgesetzt */
  #pdf-panel {
    right: 1rem;
    left: 1rem;
    width: auto;
    top: auto;
    bottom: 6rem;
    transform: none;
    max-height: 60vh;
  }
}

/* ── Smartphone (≤ 600px) ─────────────────────────────────────────────── */
@media (max-width: 600px) {

  /* Hint-Text umschalten */
  .hint-mobile  { display: inline; }
  .hint-desktop { display: none; }

  /* ── Header ── */
  #site-header {
    padding: 0.7rem 1rem;
    padding-top: max(0.7rem, env(safe-area-inset-top));
  }

  .site-title-name {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .site-subtitle { display: none; }

  /* Header-Nav Buttons kompakter */
  #header-nav .btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.7rem;
  }

  /* ── Profil Hero ── */
  #profile-hero {
    padding: 5rem 1.25rem 2rem;
    gap: 0.75rem;
  }

  .profile-avatar-ring {
    width: 90px;
    height: 90px;
  }

  .profile-avatar-inner {
    width: 82px;
    height: 82px;
  }

  .profile-name {
    font-size: 1.5rem;
    letter-spacing: 0.12em;
  }

  .profile-title {
    font-size: 0.75rem;
  }

  .profile-linkedin {
    font-size: 0.75rem;
    padding: 0.45rem 1rem;
  }

  /* ── Toolbar: Floating Bar am unteren Bildschirmrand ── */
  #neural-toolbar {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    gap: 0.35rem;
    justify-content: space-evenly;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid rgba(37,99,235,0.3);
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .toolbar-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .toolbar-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Tooltips nach oben */
  .toolbar-tooltip {
    bottom: calc(100% + 10px);
  }

  .toolbar-divider {
    height: 24px;
  }

  /* ── Modal: Bottom Sheet auf Mobile ── */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 92dvh;
    padding: 1.5rem 1.25rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    transform: translateY(40px);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid rgba(37,99,235,0.3);
  }

  .modal-overlay.open .modal-box {
    transform: translateY(0);
  }

  /* Drag-Handle oben am Modal */
  .modal-box::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 0 auto 1.25rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }

  .modal-title {
    font-size: 1.3rem;
    padding-right: 2rem;
  }

  /* Form-Felder größer für Mobile */
  .form-control {
    font-size: 16px; /* verhindert Auto-Zoom auf iOS */
    padding: 0.7rem 1rem;
  }

  select.form-control {
    font-size: 16px;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  /* ── Auth-Modal ── */
  .auth-tabs {
    gap: 0.25rem;
  }

  /* ── Neuron-Verbindungs-Chips ── */
  .connection-chips {
    gap: 0.4rem;
  }

  .connection-chip {
    padding: 0.5rem 0.75rem;
  }

  /* ── Weight-Slider ── */
  .weight-slider {
    height: 8px;
  }

  .weight-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }

  /* ── PDF Panel ── */
  #pdf-panel {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px 16px 0 0;
    transform: none !important;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    max-height: 80dvh;
    overflow-y: auto;
  }

  /* ── Hover-Tooltip deaktivieren (nicht nötig auf Touch) ── */
  .ncv-hover-tip { display: none !important; }

  /* ── Kontextmenü auf Mobile: Bottom Sheet ── */
  .ncv-ctx-menu.ncv-ctx-mobile {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    border-radius: 16px 16px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 0.5rem 0 max(0.75rem, env(safe-area-inset-bottom));
    min-width: unset;
    width: 100%;
  }

  .ncv-ctx-menu.ncv-ctx-mobile .ncv-ctx-title {
    padding: 0.6rem 1.25rem 0.5rem;
    font-size: 0.82rem;
    max-width: unset;
  }

  .ncv-ctx-menu.ncv-ctx-mobile .ncv-ctx-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  /* ── Lock Hint ── */
  .neuron-lock-hint {
    bottom: 6rem;
    top: auto;
    left: 1rem;
    right: 1rem;
    transform: none;
    max-width: unset;
  }
}

/* ── Hover Preview Tooltip ────────────────────────────────────────────────── */
.ncv-hover-tip {
  position: fixed;
  z-index: 9000;
  pointer-events: none;
  width: 230px;
  max-width: 280px;
  background: rgba(10, 12, 20, 0.96);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(4px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-family: var(--font-body);
}

.ncv-hover-tip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ncv-tip-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.ncv-tip-icon {
  font-size: 1.1rem;
  line-height: 1;
  margin-left: auto;
}

.ncv-tip-type {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 100px;
  font-weight: 600;
}

.ncv-tip-type-job       { background: rgba(37,99,235,0.25);  color: #93c5fd; }
.ncv-tip-type-skill     { background: rgba(156,163,175,0.2); color: #d1d5db; }
.ncv-tip-type-hobby     { background: rgba(59,130,246,0.2);  color: #93c5fd; }
.ncv-tip-type-project   { background: rgba(96,165,250,0.2);  color: #bfdbfe; }
.ncv-tip-type-education { background: rgba(229,232,237,0.12);color: #e5e7eb; }

.ncv-tip-pub {
  font-size: 0.58rem;
  color: #86efac;
  letter-spacing: 0.05em;
}

.ncv-tip-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 300;
  color: #f0f2f7;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ncv-tip-metas {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.ncv-tip-meta {
  font-size: 0.68rem;
  color: #9ca3af;
  letter-spacing: 0.03em;
}

.ncv-tip-date {
  color: #60a5fa;
}

.ncv-tip-excerpt {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.5;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ncv-tip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.ncv-tip-tag {
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(37,99,235,0.15);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,0.2);
  letter-spacing: 0.05em;
}

/* ── Rechtsklick-Kontextmenü ──────────────────────────────────────────── */
.ncv-ctx-menu {
  position: fixed;
  z-index: 9500;
  min-width: 200px;
  background: rgba(8, 10, 18, 0.97);
  border: 1px solid rgba(37,99,235,0.4);
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  font-family: var(--font-body);
  animation: ctx-appear .12s ease;
}
@keyframes ctx-appear {
  from { opacity: 0; transform: scale(0.93) translateY(-4px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.ncv-ctx-title {
  padding: .45rem 1rem .35rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 300;
  color: var(--silver-mid);
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

.ncv-ctx-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: .5rem 1rem;
  font-size: .82rem;
  color: var(--silver-light);
  cursor: pointer;
  letter-spacing: .03em;
  transition: background .12s, color .12s;
}
.ncv-ctx-item:hover {
  background: rgba(37,99,235,0.18);
  color: var(--white-pure);
}
.ncv-ctx-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 4px 0;
}
.ncv-ctx-close { color: var(--silver-dark); font-size: .75rem; }
.ncv-ctx-close:hover { color: #f87171; background: rgba(239,68,68,0.1); }

/* ── Connection Chips Update (21-Stufen-Balken) ────────────────────────── */
.connection-chip {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .6rem;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
  flex-wrap: wrap;
}
.connection-chip:hover { background: rgba(37,99,235,0.18); }
.chip-icon { font-size: .85rem; flex-shrink: 0; }
.chip-label { font-size: .72rem; color: var(--silver-light); flex: 1; }
.chip-weight {
  font-size: .6rem;
  color: var(--blue-pale);
  font-family: monospace;
  min-width: 18px;
  text-align: right;
}
.weight-bar { display: flex; gap: 2px; align-items: center; }
.weight-bar span {
  display: inline-block;
  width: 5px;
  height: 8px;
  border-radius: 1px;
  background: rgba(37,99,235,0.2);
  transition: background .15s;
}
.weight-bar span.active { background: var(--blue-bright); }

/* ── Weight-Slider Styling ─────────────────────────────────────────────── */
.weight-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 3px;
  background: rgba(37,99,235,0.2);
  outline: none;
  cursor: pointer;
}
.weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 6px rgba(37,99,235,0.6);
  cursor: pointer;
}
.weight-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-bright);
  border: none;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   CMD+K SPOTLIGHT SUCHE
══════════════════════════════════════════════════════════════ */
.ncv-spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.ncv-spotlight-box {
  width: min(640px, 92vw);
  background: #111827;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(37,99,235,0.2);
}

.ncv-spotlight-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ncv-spotlight-icon {
  font-size: .85rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.ncv-spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 300;
  caret-color: var(--blue-bright);
}
.ncv-spotlight-input::placeholder { color: rgba(255,255,255,0.25); }

.ncv-spotlight-esc {
  font-size: .65rem;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.ncv-spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: .4rem 0;
}
.ncv-spotlight-results::-webkit-scrollbar { width: 4px; }
.ncv-spotlight-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.ncv-spotlight-empty {
  padding: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: .85rem;
}

.ncv-spotlight-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .65rem 1.1rem;
  cursor: pointer;
  transition: background .12s;
  border-left: 2px solid transparent;
}
.ncv-spotlight-item:hover,
.ncv-spotlight-item.active {
  background: rgba(37,99,235,0.1);
  border-left-color: var(--type-color, #2563eb);
}

.ncv-sl-icon {
  font-size: 1.3rem;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.ncv-sl-body { flex: 1; min-width: 0; }

.ncv-sl-title {
  font-size: .88rem;
  color: var(--white);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.ncv-sl-lock { font-size: .75rem; opacity: .6; }

.ncv-sl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .2rem;
}
.ncv-sl-type {
  font-size: .65rem;
  color: var(--type-color, #9ca3af);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ncv-sl-meta span:not(.ncv-sl-type) {
  font-size: .65rem;
  color: rgba(255,255,255,0.3);
}
.ncv-sl-tag {
  font-size: .62rem;
  padding: 1px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: rgba(255,255,255,0.45);
}

.ncv-sl-arrow {
  font-size: .75rem;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.ncv-spotlight-item:hover .ncv-sl-arrow,
.ncv-spotlight-item.active .ncv-sl-arrow { color: var(--type-color, #2563eb); }

/* ══════════════════════════════════════════════════════════════
   FOCUS MODE BADGE
══════════════════════════════════════════════════════════════ */
.ncv-focus-badge {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: rgba(17,24,39,0.92);
  border: 1px solid rgba(167,139,250,0.4);
  border-radius: 999px;
  padding: .4rem 1rem .4rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  color: rgba(255,255,255,0.8);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 12px rgba(167,139,250,0.15);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.ncv-focus-badge strong { color: #a78bfa; }
.ncv-focus-badge button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: rgba(255,255,255,0.6);
  font-size: .7rem;
  padding: 2px 10px;
  cursor: pointer;
  transition: all .15s;
}
.ncv-focus-badge button:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════════
   FILTER PANEL
══════════════════════════════════════════════════════════════ */
.ncv-filter-panel {
  position: fixed;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 700;
  background: rgba(15,15,20,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 1.2rem 1rem;
  min-width: 320px;
  max-width: min(560px, 92vw);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.ncv-filter-panel.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.ncv-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .8rem;
  font-size: .8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.ncv-filter-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
.ncv-filter-close:hover { color: var(--white); }

.ncv-filter-section { margin-bottom: .9rem; }

.ncv-filter-section-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.3);
  margin-bottom: .45rem;
}

.ncv-filter-type-row,
.ncv-filter-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.ncv-filter-type-btn {
  font-size: .72rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--type-color, rgba(255,255,255,0.15));
  background: transparent;
  color: var(--type-color, rgba(255,255,255,0.5));
  cursor: pointer;
  transition: all .15s;
}
.ncv-filter-type-btn:hover { background: rgba(255,255,255,0.06); }
.ncv-filter-type-btn.active {
  background: color-mix(in srgb, var(--type-color, #2563eb) 20%, transparent);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--type-color, #2563eb);
}

.ncv-filter-tag-btn {
  font-size: .67rem;
  padding: .22rem .6rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all .15s;
}
.ncv-filter-tag-btn:hover { background: rgba(255,255,255,0.09); color: var(--white); }
.ncv-filter-tag-btn.active {
  background: rgba(37,99,235,0.18);
  border-color: rgba(37,99,235,0.5);
  color: #93c5fd;
}

.ncv-filter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ncv-filter-reset {
  font-size: .72rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: rgba(255,255,255,0.4);
  padding: .25rem .65rem;
  cursor: pointer;
  transition: all .15s;
}
.ncv-filter-reset:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }

.ncv-filter-count {
  font-size: .68rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
}

.ncv-filter-empty {
  font-size: .78rem;
  color: rgba(255,255,255,0.25);
  font-style: italic;
  margin: 0;
}
