.lc-archetype-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lc-archetype-badge {
  --lc-badge-rgb: 148, 163, 184;
  --lc-badge-deep-rgb: 43, 50, 65;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(var(--lc-badge-rgb), 0.38);
  border-radius: 8px;
  background:
    linear-gradient(
      135deg,
      rgba(var(--lc-badge-rgb), 0.26) 0%,
      rgba(var(--lc-badge-deep-rgb), 0.42) 100%
    ),
    rgba(18, 8, 14, 0.22);
  color: #fffafb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 0 0 1px rgba(var(--lc-badge-rgb), 0.06),
    0 8px 18px rgba(18, 3, 11, 0.16);
  backdrop-filter: blur(8px) saturate(1.18);
  -webkit-backdrop-filter: blur(8px) saturate(1.18);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.lc-archetype-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: rgb(var(--lc-badge-rgb));
  box-shadow: 0 0 8px rgba(var(--lc-badge-rgb), 0.62);
}

/* 8 klare Haupt-Badges:
   Dominant, Mysteriös, Frech, Wild, Glamourös, Warm, Schüchtern, Intellektuell */

/* Dominant: Macht, Kontrolle, Präsenz — Crimson Red */
.lc-archetype-badge.is-dominant,
.lc-archetype-badge.is-confident,
.lc-archetype-badge.is-selbstbewusst {
  --lc-badge-rgb: 255, 48, 86 !important;
  --lc-badge-deep-rgb: 98, 13, 35 !important;
}

/* Mysteriös: dunkel, geheimnisvoll, schwer greifbar — Deep Indigo */
.lc-archetype-badge.is-mysterious,
.lc-archetype-badge.is-mysterios,
.lc-archetype-badge.is-mysteriös,
.lc-archetype-badge.is-mysterioes,
.lc-archetype-badge.is-mysteric3b6s,
.lc-archetype-badge.is-dark_romantic,
.lc-archetype-badge.is-dunkelromantisch {
  --lc-badge-rgb: 96, 80, 255 !important;
  --lc-badge-deep-rgb: 28, 22, 92 !important;
}

/* Frech: flirty, neckend, spielerisch-provokant — Hot Fuchsia */
.lc-archetype-badge.is-frech,
.lc-archetype-badge.is-teasing,
.lc-archetype-badge.is-neckt_dich,
.lc-archetype-badge.is-playful,
.lc-archetype-badge.is-verspielt,
.lc-archetype-badge.is-bratty,
.lc-archetype-badge.is-brat {
  --lc-badge-rgb: 255, 62, 188 !important;
  --lc-badge-deep-rgb: 106, 14, 78 !important;
}

/* Wild: Energie, Chaos, Abenteuer, impulsiver Vibe — Fire Orange */
.lc-archetype-badge.is-wild,
.lc-archetype-badge.is-chaotic,
.lc-archetype-badge.is-chaotisch,
.lc-archetype-badge.is-energized,
.lc-archetype-badge.is-energetic,
.lc-archetype-badge.is-energiegeladen {
  --lc-badge-rgb: 255, 122, 28 !important;
  --lc-badge-deep-rgb: 112, 43, 10 !important;
}

/* Glamourös: Luxus, Eleganz, Stil — Gold / Brown */
.lc-archetype-badge.is-glamourous,
.lc-archetype-badge.is-glamorous,
.lc-archetype-badge.is-glamouros,
.lc-archetype-badge.is-glamourös,
.lc-archetype-badge.is-glamouroes,
.lc-archetype-badge.is-glamourc3b6s {
  --lc-badge-rgb: 214, 154, 46 !important;
  --lc-badge-deep-rgb: 86, 51, 16 !important;
}

/* Warm: Nähe, Romantik, Sanftheit, emotionale Wärme — Peach / Coral */
.lc-archetype-badge.is-warm,
.lc-archetype-badge.is-soft,
.lc-archetype-badge.is-sanft,
.lc-archetype-badge.is-wholesome,
.lc-archetype-badge.is-warmherzig,
.lc-archetype-badge.is-romantic,
.lc-archetype-badge.is-romantisch,
.lc-archetype-badge.is-affectionate,
.lc-archetype-badge.is-zartlich,
.lc-archetype-badge.is-zärtlich,
.lc-archetype-badge.is-zartlich,
.lc-archetype-badge.is-needy,
.lc-archetype-badge.is-anhanglich,
.lc-archetype-badge.is-anhänglich,
.lc-archetype-badge.is-emotionally_warm,
.lc-archetype-badge.is-emotional_warm,
.lc-archetype-badge.is-emotional,
.lc-archetype-badge.is-emotionell {
  --lc-badge-rgb: 255, 148, 112 !important;
  --lc-badge-deep-rgb: 112, 44, 38 !important;
}

/* Schüchtern: leise, zurückhaltend, vorsichtig — Powder Blue */
.lc-archetype-badge.is-shy,
.lc-archetype-badge.is-schuchtern,
.lc-archetype-badge.is-schuechtern,
.lc-archetype-badge.is-schüchtern,
.lc-archetype-badge.is-schc3bcchtern {
  --lc-badge-rgb: 118, 176, 255 !important;
  --lc-badge-deep-rgb: 28, 58, 108 !important;
}

/* Intellektuell: analytisch, nerdig, tiefdenkend — Cyan / Teal */
.lc-archetype-badge.is-intellectual,
.lc-archetype-badge.is-intellektuell,
.lc-archetype-badge.is-nerdy,
.lc-archetype-badge.is-nerdig {
  --lc-badge-rgb: 38, 214, 220 !important;
  --lc-badge-deep-rgb: 12, 76, 86 !important;
}

.lc-connection-bar {
  --lc-connection-pct: 0%;
  margin: 0;
  padding: 7px 14px 8px;
  border-top: 1px solid var(--lc-border-soft, rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid var(--lc-border-soft, rgba(255, 255, 255, 0.08));
  background:
    linear-gradient(145deg, #2a1220 0%, #1b0d14 100%);
  color: #fff6fa;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 var(--lc-border-inner, rgba(255, 255, 255, 0.05));
}

.lc-connection-bar::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(420px 120px at 6% 0%, rgba(255, 142, 189, 0.10), transparent 70%);
  opacity: 1;
  transform: none;
}

.lc-connection-bar.is-heat-stage-3::before,
.lc-connection-bar.is-heat-stage-4::before,
.lc-connection-bar.is-heat-stage-5::before,
.lc-connection-bar.is-heat-stage-4,
.lc-connection-bar.is-heat-stage-5 {
  animation: none;
}

.lc-connection-bar.is-heat-pop {
  animation: lcHeatPop 780ms ease-out both;
}

.lc-connection-bar__top,
.lc-connection-bar__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lc-connection-bar__top strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(255, 91, 156, 0.34);
}

.lc-connection-bar__eyebrow {
  color: #ff8dbc;
  font-size: 9px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lc-connection-bar__track {
  position: relative;
  z-index: 1;
  height: 6px;
  margin: 7px 0 7px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 0 18px rgba(255, 74, 146, 0.10);
}

.lc-connection-bar__fill {
  display: block;
  width: var(--lc-connection-pct);
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f174e 0%, #ff3d91 46%, #ff7a63 72%, #ffd1a3 100%);
  box-shadow:
    0 0 14px rgba(255, 61, 145, 0.45),
    0 0 28px rgba(255, 122, 99, 0.18);
  transition: width 420ms ease;
}

.lc-connection-bar.is-heat-stage-3 .lc-connection-bar__fill,
.lc-connection-bar.is-heat-stage-4 .lc-connection-bar__fill,
.lc-connection-bar.is-heat-stage-5 .lc-connection-bar__fill {
  animation: lcHeatPulse 1.35s ease-in-out infinite;
}

.lc-connection-bar__dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  line-height: 1;
  transform: translate(-50%, -50%);
  background: rgba(22, 4, 14, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 8px rgba(0, 0, 0, 0.18);
}

.lc-connection-bar__dot::before {
  content: "•";
}

.lc-connection-bar__dot.is-lit {
  color: #ffd1a3;
  background: rgba(255, 61, 145, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 209, 163, 0.34),
    0 0 12px rgba(255, 61, 145, 0.36);
}

.lc-connection-bar__dot.is-lit::before {
  content: "🔥";
  font-size: 10px;
}

.lc-connection-bar__dot.is-next {
  color: #ffbd7c;
  background: rgba(255, 189, 124, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 189, 124, 0.28),
    0 0 12px rgba(255, 189, 124, 0.18);
}

.lc-connection-bar__dot.is-next::before {
  content: "🔒";
  font-size: 9px;
}

.lc-connection-bar__dot.is-one { left: 20%; }
.lc-connection-bar__dot.is-two { left: 40%; }
.lc-connection-bar__dot.is-three { left: 60%; }
.lc-connection-bar__dot.is-four { left: 78%; }
.lc-connection-bar__dot.is-five { left: 92%; }

.lc-connection-bar__bottom {
  color: rgba(255, 235, 243, 0.92);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.15;
}

.lc-connection-bar__bottom span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-connection-bar__bottom span:last-child {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgba(255, 189, 124, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 189, 124, 0.18), rgba(255, 61, 145, 0.14));
  color: #ffc078;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(255, 189, 124, 0.12);
}

.lc-thread-header + .lc-free-hint + .lc-connection-bar,
.lc-thread-header + .lc-connection-bar {
  flex: 0 0 auto;
}

@keyframes lcHeatPulse {
  0%, 100% {
    filter: saturate(1);
    box-shadow:
      0 0 14px rgba(255, 61, 145, 0.42),
      0 0 28px rgba(255, 122, 99, 0.16);
  }
  50% {
    filter: saturate(1.35);
    box-shadow:
      0 0 20px rgba(255, 61, 145, 0.62),
      0 0 36px rgba(255, 122, 99, 0.24);
  }
}

/* lcHeatSheen und lcHeatBreath entfernt:
   Der Heat-Bar-Container nutzt jetzt den ruhigen Chat-Header-Look.
   Der leuchtende Fortschrittsbalken bleibt unverändert. */

@keyframes lcHeatPop {
  0% {
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
  30% {
    transform: translateY(-1px) scale(1.006);
    filter: saturate(1.45);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lc-connection-bar,
  .lc-connection-bar::before,
  .lc-connection-bar__fill {
    animation: none !important;
  }
}

@media (max-width: 520px) {
  .lc-archetype-badges {
    gap: 6px;
  }

  .lc-archetype-badge {
    min-height: 28px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .lc-connection-bar {
    padding: 7px 11px 7px;
  }

  .lc-connection-bar__top,
  .lc-connection-bar__bottom {
    gap: 8px;
  }

  .lc-connection-bar__track {
    height: 5px;
    margin: 6px 0 6px;
  }

  .lc-connection-bar__dot {
    width: 14px;
    height: 14px;
  }

  .lc-connection-bar__eyebrow {
    font-size: 9px;
  }

  .lc-connection-bar__top strong {
    font-size: 11px;
  }

  .lc-connection-bar__bottom {
    font-size: 10px;
  }

  .lc-connection-bar__bottom span:last-child {
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
