/* =========================================================
   Required profile photo popup
   ========================================================= */

.profile-photo-required-backdrop[hidden] {
  display: none !important;
}

.profile-photo-required-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.30), transparent 36%),
    rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-photo-required-modal {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  padding: 28px;
  text-align: center;
  color: #24173f;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 90px rgba(39, 20, 82, 0.32);
}

.profile-photo-required-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.30);
}

.profile-photo-required-kicker {
  margin: 0 0 6px;
  color: #7c3aed;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-photo-required-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.profile-photo-required-copy p:last-child {
  margin: 12px 0 0;
  color: #67557f;
  font-size: 0.96rem;
  line-height: 1.5;
}

.profile-photo-required-preview-wrap {
  width: 118px;
  height: 118px;
  margin: 22px auto;
  padding: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(236, 72, 153, 0.88));
  box-shadow: 0 20px 44px rgba(124, 58, 237, 0.24);
}

.profile-photo-required-preview {
  width: 100%;
  height: 100%;
  display: block;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: inherit;
  object-fit: cover;
  background: #ede9fe;
}

.profile-photo-required-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-photo-required-button {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  box-shadow: 0 16px 34px rgba(109, 40, 217, 0.28);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.profile-photo-required-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.profile-photo-required-note {
  margin: 12px 0 0;
  color: #806f96;
  font-size: 0.82rem;
  font-weight: 700;
}

body.profile-photo-required-open {
  overflow: hidden;
}

body.profile-photo-required-open .mobile-bottom-nav,
body.profile-photo-required-open .mobile-nav-collapse-button,
body.profile-photo-required-open .mobile-nav-expand-button {
  display: none !important;
}

@media (max-width: 540px) {
  .profile-photo-required-backdrop {
    align-items: end;
    padding: 12px;
  }

  .profile-photo-required-modal {
    border-radius: 28px;
    padding: 24px 20px;
  }
}
