html.sf-root:has(body.sf-guest-profile),
body.sf-guest-profile {
  overflow-x: clip;
  max-width: 100%;
}

.sf-guest-profile {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background-color: var(--sf-color-void, #120814);
  background-image: var(--sf-bg-canvas, none);
  color: var(--sf-color-text, #f7eef8);
  overflow-x: clip;
  max-width: 100%;
}

.sf-guest-profile__main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  box-sizing: border-box;
}

.sf-guest-profile__brand {
  display: inline-flex;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.sf-guest-profile__card {
  width: 100%;
  max-width: 22rem;
  text-align: center;
}

.sf-guest-profile__avatar {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  overflow: hidden;
  background: #1c0f1f;
  box-shadow: 0 0 0 2px #150a16, 0 0 0 4px rgba(233, 30, 140, 0.75);
}

.sf-guest-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-guest-profile__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.sf-guest-profile__handle {
  margin: 0.35rem 0 0;
  color: var(--sf-color-text-tertiary, #8a7a8d);
  font-size: 0.95rem;
}

.sf-guest-profile__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sf-guest-profile__actions .sf-btn,
.sf-guest-profile__actions button {
  width: 100%;
  min-height: 44px;
}

.sf-guest-profile__fallback {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--sf-color-text-tertiary, #8a7a8d);
}

.sf-guest-profile__fallback a {
  color: inherit;
}

@media (min-width: 768px) {
  .sf-guest-profile__actions {
    flex-direction: row;
  }
}

/* Unified guest gate dialog (listing cards + direct profile) */
.sf-guest-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9980;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.sf-guest-gate.is-open,
.sf-guest-gate:not([hidden]) {
  display: flex;
}

.sf-guest-gate[hidden] {
  display: none !important;
}

.sf-guest-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.sf-guest-gate__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--sf-color-surface-2, #1c0f1f);
  border: 1px solid var(--sf-color-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 1.25rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  color: var(--sf-color-text, #f7eef8);
}

.sf-guest-gate__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--sf-color-text-tertiary, #8a7a8d);
  cursor: pointer;
}

.sf-guest-gate__title {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.sf-guest-gate__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--sf-color-text-tertiary, #8a7a8d);
}

.sf-guest-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sf-guest-gate__actions .sf-btn,
.sf-guest-gate__actions button,
.sf-guest-profile__actions .sf-btn {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.sf-guest-gate__actions .sf-btn--primary,
.sf-guest-profile__actions .sf-btn--primary {
  background: var(--sf-color-accent, #e91e8c);
  color: #fff;
}

.sf-guest-gate__actions .sf-btn--secondary {
  background: transparent;
  color: var(--sf-color-text, #f7eef8);
  box-shadow: inset 0 0 0 1px var(--sf-color-border, rgba(255,255,255,0.18));
}

.sf-guest-gate__fallback {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--sf-color-text-tertiary, #8a7a8d);
}

.sf-guest-gate__fallback a {
  color: inherit;
}

@media (min-width: 768px) {
  .sf-guest-gate__actions {
    flex-direction: column;
  }
}
