.cx-profiles-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.75);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:190000;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, visibility .18s ease;
}

.cx-profiles-overlay.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.cx-profiles-modal{
  position:relative;
  width:560px;
  max-width:95%;
  max-height:90dvh;
  overflow:auto;
  background:#050505;
  border-radius:10px;
  padding:50px 50px 40px 50px;
  box-shadow:0 40px 100px rgba(0,0,0,0.7);
  color:#fff;
  font-family:Inter,sans-serif;
  box-shadow:0 0 8px rgba(124, 58, 237, 0.48);
}

.cx-profiles-close{
  position:absolute;
  top:20px;
  right:22px;
  background:none;
  border:none;
  color:#ffffffaa;
  font-size:18px;
  cursor:pointer;
}

.cx-profiles-close:hover{
  color:#fff;
}

.cx-profiles-modal-title{
  font-size:22px;
  font-weight:600;
  margin-bottom:35px;
}

.cx-profiles-modal-sub{
  display:none;
}

.cx-create-row{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:30px;
  margin-bottom:35px;
}

.cx-avatar-preview{
  position:relative;
  width:130px;
  height:130px;
  border-radius:50%;
  border:4px solid #7c3aed;
  background:none;
  padding:0;
  cursor:pointer;
  overflow:hidden;
}

.cx-avatar-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
}

.cx-avatar-edit{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.45);
  color:#fff;
  font-size:22px;
  opacity:0;
  transition:0.2s ease;
}

.cx-avatar-preview:hover .cx-avatar-edit{
  opacity:1;
}

.cx-profiles-field{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.cx-profiles-field label{
  font-size:14px;
  color:#ffffffcc;
}

.cx-profiles-field input{
  height:50px;
  border:none;
  border-radius:8px;
  padding:0 18px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:15px;
  outline:none;
}

.cx-profiles-field input::placeholder{
  color:#ffffff66;
}

.cx-profiles-actions-row{
  display:flex;
  justify-content:flex-end;
  gap:14px;
}

.cx-profiles-cancel{
  height:44px;
  padding:0 24px;
  border:none;
  border-radius:8px;
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
}

.cx-profiles-cancel:hover{
  background:rgba(255,255,255,.14);
}

.cx-profiles-create{
  height:44px;
  padding:0 26px;
  border:none;
  border-radius:8px;
  background:#7c3aed;
  color:#fff;
  font-weight:500;
  cursor:pointer;
}

.cx-profiles-create:hover{
  background:#6d28d9;
}

.cx-profiles-msg{
  margin-top:15px;
  font-size:13px;
  color:#a78bfa;
}