:root{
  --cx-bg:#050505;
  --cx-text:#ffffff;
  --cx-dim:rgba(255,255,255,.78);
  --cx-dim2:rgba(255,255,255,.58);
  --cx-border:rgba(255,255,255,.10);
  --cx-border2:rgba(255,255,255,.16);
  --cx-violet:#7c3aed;
  --cx-violet2:#4c1d95;
  --cx-shadow:0 56px 128px rgba(0,0,0,.78);
  --cx-shadow2:0 18px 60px rgba(0,0,0,.55);
  --cx-r:26px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(900px 520px at 16% 20%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(900px 520px at 86% 78%, rgba(88,28,135,.22), transparent 60%),
    var(--cx-bg);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--cx-text);
}

.main{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:72px 16px;
}

.cx-profiles-panel{
  width:100%;
  max-width:980px;
  padding:52px 54px;
  border-radius:var(--cx-r);
  background:rgba(15,15,15,.40);
  border:1px solid var(--cx-border);
  box-shadow:var(--cx-shadow);
  backdrop-filter:blur(24px);
}

.cx-profiles-header{
  margin:0 0 40px 0;
  text-align:center;
}

.cx-profiles-header h2{
  margin:0;
  font-size:26px;
  font-weight:900;
  letter-spacing:.2px;
}

.cx-profiles-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:flex-start;
  gap:44px;
}

.cx-profile-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  cursor:pointer;
  user-select:none;
  transform:translateZ(0);
  transition:transform .22s ease;
}

.cx-profile-card:hover{
  transform:translateY(-2px) scale(1.055);
}

.cx-profile-card img{
  width:140px;
  height:140px;
  border-radius:50%;
  object-fit:cover;
  padding:4px;
  background:rgba(255,255,255,.04);
  border:2px solid var(--cx-border2);
  box-shadow:0 14px 46px rgba(0,0,0,.55);
  transition:border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.cx-profile-card:hover img{
  border-color:rgba(124,58,237,.75);
  box-shadow:0 0 0 1px rgba(124,58,237,.22) inset, 0 0 40px rgba(124,58,237,.36), 0 18px 60px rgba(0,0,0,.55);
}

.cx-profile-name{
  margin:14px 0 0 0;
  max-width:190px;
  font-size:14px;
  font-weight:800;
  text-align:center;
  color:var(--cx-dim);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  transition:color .18s ease;
}

.cx-profile-card:hover .cx-profile-name{
  color:var(--cx-text);
}

.cx-profile-new{
  opacity:.92;
}

.cx-plus-wrapper{
  width:140px;
  height:140px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,.02);
  box-shadow:0 14px 46px rgba(0,0,0,.45);
  transition:border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.cx-plus-wrapper svg{
  width:40px;
  height:40px;
  stroke:rgba(124,58,237,.95);
}

.cx-profile-new:hover .cx-plus-wrapper{
  border-color:rgba(124,58,237,.75);
  background:rgba(124,58,237,.08);
  box-shadow:0 0 0 1px rgba(124,58,237,.18) inset, 0 0 34px rgba(124,58,237,.32), 0 18px 60px rgba(0,0,0,.55);
  transform:translateY(-1px);
}

.cx-profiles-actions{
  margin-top:48px;
  display:flex;
  justify-content:center;
}

.cx-logout-btn{
  border:0;
  cursor:pointer;
  font-weight:900;
  font-size:13px;
  padding:12px 18px;
  border-radius:10px;
  color:#fff;
  background:linear-gradient(135deg,var(--cx-violet),var(--cx-violet2));
  box-shadow:0 14px 40px rgba(124,58,237,.42);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cx-logout-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 52px rgba(124,58,237,.62);
  filter:saturate(1.06);
}

.cx-logout-btn:active{
  transform:translateY(0);
  box-shadow:0 12px 34px rgba(124,58,237,.40);
}

.cx-logout-btn:focus-visible{
  outline:2px solid rgba(124,58,237,.75);
  outline-offset:3px;
}

@media (max-width:760px){
  .cx-profiles-panel{padding:40px 22px}
  .cx-profiles-grid{gap:32px}
  .cx-profile-card img,.cx-plus-wrapper{width:118px;height:118px}
}

@media (max-width:520px){
  .cx-profiles-grid{gap:22px}
  .cx-profile-card img,.cx-plus-wrapper{width:104px;height:104px}
  .cx-profile-name{font-size:13px}
}