/* Thème violet pour modals profil (remplace accents orange legacy) */
#profileGate {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(155, 140, 248, 0.14) 0%, transparent 55%),
    #050508 !important;
}

.pg-title-o {
  color: #9b8cf8 !important;
  text-shadow: 0 0 28px rgba(155, 140, 248, 0.35) !important;
}

.pg-card:hover .pg-avatar-box {
  border-color: rgba(155, 140, 248, 0.55) !important;
  box-shadow: 0 12px 40px rgba(155, 140, 248, 0.2) !important;
}

.pg-manage-btn {
  background: rgba(155, 140, 248, 0.08) !important;
  border-color: rgba(155, 140, 248, 0.35) !important;
  color: #9b8cf8 !important;
}

.pg-manage-btn:hover {
  background: linear-gradient(135deg, #9b8cf8, #7c6cf0) !important;
  box-shadow: 0 8px 28px rgba(155, 140, 248, 0.35) !important;
}

#profileManagerModal .pm-dialog {
  border-color: rgba(155, 140, 248, 0.22) !important;
}

#editMainProfileModal .pe-save-btn {
  background: linear-gradient(135deg, #9b8cf8, #7c6cf0) !important;
}

#editMainProfileModal,
#profileManagerModal,
#createProfileModal,
#avatarModal {
  --gold2: #9b8cf8;
  --muted: #8b89a8;
  --ff-head: 'Bebas Neue', var(--font-display), Georgia, serif;
}

/* Décos — voir auth-nav.css pour les tailles par contexte */

.pg-avatar-box {
  overflow: visible !important;
  position: relative;
}

.premium-dropdown,
.premium-dropdown__head,
.user-pill__avatar-wrap,
.premium-dropdown__avatar {
  overflow: visible !important;
}

.premium-dropdown__avatar,
.user-pill__avatar-wrap {
  position: relative;
  isolation: isolate;
}

/* Aperçu éditeur profil */
.cm-pe-preview-card {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  overflow: hidden;
}

.cm-pe-preview-banner {
  height: 64px;
  --pp-accent: #9b8cf8;
  background: linear-gradient(135deg, var(--pp-accent) 0%, rgba(155, 140, 248, 0.3) 40%, rgba(8, 8, 12, 0.95) 100%);
}

.cm-pe-preview-body {
  padding: 0 16px 20px;
  margin-top: -36px;
  text-align: center;
}

.cm-pe-preview-avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 12px;
  cursor: pointer;
  overflow: visible;
}

.cm-pe-preview-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #141419;
  position: relative;
  z-index: 1;
}

.cm-pe-preview-avatar-edit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.18s ease;
  z-index: 3;
}

.cm-pe-preview-avatar-wrap:hover .cm-pe-preview-avatar-edit {
  opacity: 1;
}

.cm-pe-preview-name {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.cm-pe-preview-bio {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.cm-pe-preview-bio.is-empty {
  color: rgba(255, 255, 255, 0.28);
  font-style: italic;
}

.cm-pe-preview-role {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pe-colors { display: flex; gap: 12px; flex-wrap: wrap; }
.pe-color { width: 36px; height: 36px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.pe-color.active { border-color: #fff; transform: scale(1.1); box-shadow: 0 0 15px rgba(155, 140, 248, 0.35); }
.pe-fonts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pe-font { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); padding: 16px; border-radius: 16px; text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 12px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.pe-font.active { border-color: #9b8cf8; color: #fff; }
.pe-font.pe-vip-locked { opacity: 0.55; }

.pm-btn-primary,
.pm-btn-primary:hover {
  background: linear-gradient(135deg, #9b8cf8, #7c6cf0) !important;
  box-shadow: 0 8px 28px rgba(155, 140, 248, 0.35) !important;
}

#profileManagerModal .pm-icon-btn:hover,
#createProfileModal .pm-btn-primary {
  border-color: rgba(155, 140, 248, 0.45) !important;
  color: #9b8cf8 !important;
}

#profileManagerModal .pm-section-title,
#createProfileModal .pm-label,
.pe-section-title {
  color: rgba(184, 170, 249, 0.85) !important;
}

