/* VEMNATV V1308.55 — Tela inteira para as 3 etapas do perfil, sem moldura/grid externo.
 * O conteudo (avatares, formularios e preferencias) permanece interativo e rolavel. */
#profileSetupModal.profile-setup-backdrop:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  overflow: hidden !important;
  background: #061526 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#profileSetupModal .profile-setup-shell {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  padding: clamp(18px, 2.4vw, 36px) clamp(20px, 5vw, 82px) !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  align-items: stretch !important;
  gap: clamp(10px, 1.8vh, 20px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 18% 0, rgba(22,89,145,.37), transparent 38%),
    linear-gradient(180deg, #19191c 0%, #111114 58%, #09090b 100%) !important;
}

#profileSetupModal .profile-setup-brand {
  flex: 0 0 auto;
  align-self: flex-start;
  width: 160px !important;
  max-width: 46vw;
  height: auto;
}
#profileSetupModal .profile-setup-progress {
  flex: 0 0 auto !important;
  margin: 0 auto clamp(8px, 2vh, 22px) !important;
  align-self: center !important;
}
#profileSetupModal .profile-setup-page {
  width: min(100%, 1380px) !important;
  max-width: 1380px !important;
  min-height: 0 !important;
  height: auto !important;
  flex: 1 0 auto !important;
  margin: 0 auto !important;
  padding: 0 0 26px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
#profileSetupModal .profile-setup-page:not(.active) {
  display: none !important;
}
#profileSetupModal .profile-setup-page.active {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#profileSetupModal .profile-setup-page h2 { font-size: clamp(27px, 3vw, 42px) !important; }
#profileSetupModal .profile-setup-page p { margin-bottom: clamp(14px, 3vh, 28px) !important; }

/* Galeria fluida: sem grade fixa ou bordas de painel. Mantem os grupos de avatares. */
#profileSetupModal #avatarChoices.avatar-choices {
  display: flex !important;
  flex-flow: row wrap !important;
  align-content: flex-start !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-height: min(46dvh, 480px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  gap: 18px !important;
  padding: 10px 8px 16px 2px !important;
}
#profileSetupModal #avatarChoices > .avatar-choice,
#profileSetupModal #avatarChoices > .avatar-more { flex: 0 0 96px !important; }
#profileSetupModal #avatarChoices > :not(.avatar-choice):not(.avatar-more) {
  flex: 1 0 100% !important;
  min-width: 0 !important;
}
#profileSetupModal [data-profile-step="1"] .profile-field {
  width: min(100%, 680px) !important;
  max-width: 680px !important;
  margin-top: 20px !important;
}

/* Formularios fluidos, sem colunas engessadas. */
#profileSetupModal .profile-location-grid {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: flex-start !important;
  gap: 20px !important;
  width: 100% !important;
}
#profileSetupModal .profile-location-grid > .profile-field {
  flex: 1 1 360px !important;
  min-width: min(100%, 260px) !important;
}
#profileSetupModal .profile-location-grid > .profile-region-field {
  flex: 1 0 100% !important;
}
#profileSetupModal .profile-genre-grid {
  display: flex !important;
  flex-flow: row wrap !important;
  align-content: flex-start !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 14px !important;
}
#profileSetupModal .profile-genre-grid > button {
  flex: 0 1 calc((100% - 42px) / 4) !important;
  min-width: 0 !important;
  max-width: none !important;
}
@media (max-width: 980px) {
  #profileSetupModal .profile-genre-grid > button {
    flex: 1 1 205px !important;
  }
}
#profileSetupModal .profile-setup-actions {
  margin-top: auto !important;
  padding-top: clamp(18px, 4vh, 34px) !important;
  padding-bottom: 10px !important;
  position: relative !important;
  flex: 0 0 auto !important;
}
#profileSetupModal #profileSetupError { flex: 0 0 auto !important; }

@media (max-width: 680px) {
  #profileSetupModal .profile-setup-shell {
    padding: 18px 16px max(18px, env(safe-area-inset-bottom)) !important;
  }
  #profileSetupModal .profile-setup-brand { width: 128px !important; }
  #profileSetupModal .profile-setup-progress i { width: 52px !important; max-width: 14vw !important; }
  #profileSetupModal #avatarChoices.avatar-choices {
    gap: 12px !important;
    max-height: 40dvh !important;
  }
  #profileSetupModal #avatarChoices > .avatar-choice,
  #profileSetupModal #avatarChoices > .avatar-more { flex: 0 0 80px !important; }
  #profileSetupModal .profile-location-grid > .profile-field,
  #profileSetupModal .profile-location-grid > .profile-region-field {
    flex: 1 1 100% !important;
  }
  #profileSetupModal .profile-genre-grid > button { flex: 1 1 135px !important; }
}
