/* 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(228, 179, 90, 0.08) !important;
  border-color: rgba(228, 179, 90, 0.4) !important;
  color: #e4b35a !important;
}

.pg-manage-btn:hover {
  background: linear-gradient(135deg, #e4b35a, #c4923a) !important;
  color: #1a1208 !important;
  box-shadow: 0 8px 28px rgba(228, 179, 90, 0.35) !important;
}

#profileManagerModal .pm-dialog {
  /* Salon VIP : or champagne (voir profile-manager.css) — ne pas forcer le violet */
  border-color: rgba(228, 179, 90, 0.22) !important;
}

#editMainProfileModal .pe-save-btn {
  background: linear-gradient(135deg, #9b8cf8, #7c6cf0) !important;
}

#editMainProfileModal,
#createProfileModal,
#avatarModal {
  --gold2: #9b8cf8;
  --muted: #8b89a8;
  --ff-head: 'Bebas Neue', var(--font-display), Georgia, serif;
}

#profileManagerModal {
  --gold2: #e4b35a;
  --muted: rgba(243, 230, 200, 0.52);
  --ff-head: 'Instrument Serif', Georgia, serif;
}

/* Avatar modal — accent bleu (pas orange legacy) */
#avatarModal .am-glow {
  background: radial-gradient(120% 90% at 20% -10%, rgba(91, 158, 255, 0.32), transparent 60%) !important;
}
#avatarModal .am-tab.is-active {
  color: #fff !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
#avatarModal .am-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #4c8dff;
  border-radius: 3px 3px 0 0;
  pointer-events: none;
}
#avatarModal .am-rail-nav[hidden] {
  display: none !important;
}
#avatarModal .am-avatar-tile:hover {
  border-color: rgba(91, 158, 255, 0.85) !important;
}
#avatarModal .am-avatar-tile:focus-visible {
  outline-color: #5b9eff !important;
}

/* 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 — aligné sur le profil public (ne pas écraser la bannière image) */
.cm-pe-preview-card.cm-public-profile {
  background: var(--pp-bg, #141419);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  overflow: hidden;
}

.cm-pe-preview-banner.cm-public-banner {
  height: 120px;
  aspect-ratio: auto;
  min-height: 0;
  --pp-accent: #9b8cf8;
}

.cm-pe-preview-banner.cm-public-banner.has-image {
  background-color: #121218;
  background-size: cover;
  background-position: center;
}

.cm-pe-preview-body.cm-public-profile-body {
  padding: 0 16px 20px;
  margin-top: 0;
  text-align: left;
}

.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;
}

/* Bouton créer dans le salon VIP : or (pas violet) */
#profileManagerModal .pm-btn-primary,
#profileManagerModal .pm-btn-primary:hover {
  background: linear-gradient(135deg, #f0d08a 0%, #e4b35a 45%, #c4923a 100%) !important;
  box-shadow: 0 10px 28px rgba(228, 179, 90, 0.35) !important;
  color: #1a1208 !important;
}

#profileManagerModal .pm-icon-btn:hover,
#createProfileModal .pm-btn-primary {
  border-color: rgba(155, 140, 248, 0.45) !important;
  color: #9b8cf8 !important;
}

#profileManagerModal .pmv-icon:hover {
  border-color: rgba(228, 179, 90, 0.4) !important;
  color: #fff !important;
  background: rgba(228, 179, 90, 0.12) !important;
}

#profileManagerModal .pm-section-title,
#createProfileModal .pm-label,
.pe-section-title {
  color: rgba(184, 170, 249, 0.85) !important;
}

