/* Phase 40 — Model hover detail card */
.sl-hover-card-active .sl-lumi-card[data-sl-hover-enabled] {
  position: relative;
}

.sl-hover-info-btn {
  pointer-events: auto;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .sl-hover-card-active .sl-hover-info-btn {
    display: inline-flex;
  }
  /* The info button is absolutely pinned to the card's top-right (right:8px,
     30px wide). The top-right badge cluster (device / NEW ribbon) is laid out
     in-flow and was being covered by it. Reserve the button's lane so the
     "NEW" ribbon sits to its left and is never hidden. */
  .sl-hover-card-active .sl-lumi-top-right {
    padding-right: 42px;
  }
}

.sl-model-hover-popover {
  position: fixed;
  z-index: 100050;
  width: min(92vw, 320px);
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 18, 0.96);
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.sl-model-hover-popover.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sl-model-hover-popover h4 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.2;
}

.sl-model-hover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #cbd5e1;
}

.sl-model-hover-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.sl-model-hover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.sl-model-hover-tags span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
}

.sl-model-hover-bio {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.sl-model-hover-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sl-model-hover-flags span {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.sl-profile-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sl-profile-tag-cloud a,
.sl-profile-tag-cloud span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 12px;
  text-decoration: none;
}

.sl-profile-tag-cloud a:hover {
  background: rgba(250, 204, 21, 0.18);
  color: #fde68a;
}

.sl-profile-room-flags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.sl-profile-room-flag {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.sl-profile-room-flag strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.sl-profile-room-flag span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.sl-profile-room-flag.is-off span {
  color: rgba(255, 255, 255, 0.42);
}
