/* Skyy — Share Profile modal + public QR trigger */

.profile-share-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  box-shadow:
    0 0 14px var(--accent-glow-soft, rgba(255, 143, 177, 0.12)),
    0 4px 16px rgba(0, 0, 0, 0.35);
  transition:
    transform var(--transition, 0.18s ease),
    border-color var(--transition, 0.18s ease),
    box-shadow var(--transition, 0.18s ease),
    color var(--transition, 0.18s ease);
}

.profile-share-trigger[hidden] {
  display: none !important;
}

body[data-view="dashboard"] .profile-share-trigger,
body[data-view="dashboard"] .profile-top-actions,
body[data-view="dashboard"] .profile-left-actions {
  display: none !important;
}

.profile-share-trigger__icon {
  width: 18px;
  height: 18px;
}

.profile-share-trigger:hover,
.profile-share-trigger:focus-visible {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  outline: none;
  box-shadow:
    0 0 18px var(--accent-glow, rgba(255, 143, 177, 0.22)),
    0 6px 18px rgba(0, 0, 0, 0.38);
}

.share-profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.share-profile-overlay[hidden] {
  display: none !important;
}

.share-profile-dialog {
  width: min(420px, 100%);
  padding: 22px 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 22, 0.96);
  box-shadow:
    0 0 28px rgba(var(--accent-r), 0.08),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.share-profile-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.share-profile-dialog__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.share-profile-dialog__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.share-profile-dialog__close:hover,
.share-profile-dialog__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.share-profile-dialog__kicker {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.share-profile-dialog__qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0 auto 14px;
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.share-profile-dialog__qr-host {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-profile-dialog__qr-host canvas,
.share-profile-dialog__qr-host svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 248px;
  max-height: 248px;
}

.share-profile-dialog__url {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-all;
}

.share-profile-dialog__hint {
  margin: 0 0 18px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.52);
}

.share-profile-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.share-profile-dialog__btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--transition, 0.18s ease),
    border-color var(--transition, 0.18s ease),
    background var(--transition, 0.18s ease);
}

.share-profile-dialog__btn:hover,
.share-profile-dialog__btn:focus-visible {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
}

.share-profile-dialog__btn--primary {
  border-color: rgba(var(--accent-r), 0.45);
  background: rgba(var(--accent-r), 0.12);
  color: #fff;
}

.share-profile-dialog__btn.is-copied {
  border-color: rgba(52, 199, 89, 0.45);
  background: rgba(52, 199, 89, 0.12);
}

@media (max-width: 720px) {
  .profile-share-trigger {
    width: 36px;
    height: 36px;
  }

  .profile-share-trigger__icon {
    width: 16px;
    height: 16px;
  }

  .share-profile-dialog__actions {
    grid-template-columns: 1fr;
  }
}
