

[data-name-effect] {
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  background-size: 200% 200%;
  animation: nameEffectShift 3s ease infinite;
}

@keyframes nameEffectShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

[data-name-effect="hellfire"] {
  background-image: linear-gradient(90deg, #ff4500, #ff8c00, #ffd700, #ff4500);
}
[data-name-effect="blood_ruby"] {
  background-image: linear-gradient(90deg, #8b0000, #dc143c, #ff6347, #8b0000);
}
[data-name-effect="burning_sun"] {
  background-image: linear-gradient(90deg, #ff6b35, #ffa500, #ffd700, #ff6b35);
}
[data-name-effect="glowing_ember"] {
  background-image: linear-gradient(90deg, #b22222, #ff4500, #ff8c00, #b22222);
}

[data-name-effect="deep_ocean"] {
  background-image: linear-gradient(90deg, #000080, #0066cc, #00bfff, #000080);
}
[data-name-effect="blue_sapphire"] {
  background-image: linear-gradient(90deg, #082567, #1e90ff, #87ceeb, #082567);
}

[data-name-effect="nature_green"] {
  background-image: linear-gradient(90deg, #006400, #32cd32, #98fb98, #006400);
}

[data-name-effect="cosmic"] {
  background-image: linear-gradient(90deg, #4b0082, #8a2be2, #da70d6, #ff69b4, #4b0082);
}

[data-name-effect="gold_metal"] {
  background-image: linear-gradient(90deg, #b8860b, #ffd700, #f0e68c, #b8860b);
}
[data-name-effect="silver_metal"] {
  background-image: linear-gradient(90deg, #696969, #c0c0c0, #f5f5f5, #696969);
}

[data-name-effect="electric"] {
  background-image: linear-gradient(90deg, #00ffff, #7b68ee, #ff00ff, #00ffff);
  animation-duration: 1.5s;
}

[data-name-anim="entrance"] {
  animation: nameEntrance 1s ease forwards;
}
@keyframes nameEntrance {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

[data-name-anim="exit"] {
  animation: nameExit 1s ease forwards;
}
@keyframes nameExit {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-20px); }
}

[data-name-anim="explode"] {
  animation: nameExplode 0.8s ease infinite;
}
@keyframes nameExplode {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

[data-name-anim="crawl"] {
  animation: nameCrawl 3s linear infinite;
}
@keyframes nameCrawl {
  0% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

[data-name-anim="shake"] {
  animation: nameShake 0.5s ease infinite;
}
@keyframes nameShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

[data-name-anim="bounce"] {
  animation: nameBounce 1s ease infinite;
}
@keyframes nameBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

[data-name-anim="fly"] {
  animation: nameFly 2s ease infinite;
}
@keyframes nameFly {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-2deg); }
  75% { transform: translateY(2px) rotate(2deg); }
}

[data-name-effect][data-name-anim] {
  display: inline-block;
}

.ndx {
  --nd-bg: #0b0a1f;
  --nd-bg2: #16123a;
  --nd-accent: #c084fc;
  --nd-accent2: #7c3aed;
  --nd-gold: #f5d372;
  --nd-glass: rgba(255,255,255,0.06);
  --nd-glass-brd: rgba(192,132,252,0.28);
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  direction: rtl;
  padding: 14px 12px 26px;
  color: #ece9ff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(124,58,237,0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(236,72,153,0.18), transparent 55%),
    linear-gradient(160deg, var(--nd-bg), var(--nd-bg2) 60%, #05040f);
  -webkit-overflow-scrolling: touch;
}

.ndx::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 70% 15%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,.45), transparent);
  opacity: .5;
  pointer-events: none;
  animation: ndTwinkle 4s ease-in-out infinite alternate;
}
@keyframes ndTwinkle { from { opacity:.28 } to { opacity:.6 } }
.ndx > * { position: relative; z-index: 1; }

.ndx-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.ndx-title { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:800; letter-spacing:.3px; }
.ndx-title .ndx-spark {
  font-size:18px;
  background:linear-gradient(135deg,var(--nd-gold),#fff);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  filter: drop-shadow(0 0 6px rgba(245,211,114,.6));
}
.ndx-close {
  display:flex; align-items:center; gap:6px;
  background: var(--nd-glass); border:1px solid var(--nd-glass-brd);
  color:#cfc6ff; padding:7px 14px; border-radius:12px; cursor:pointer;
  font-size:12px; font-weight:700; backdrop-filter: blur(6px);
  transition: transform .12s ease, background .2s ease;
}
.ndx-close:hover { background: rgba(192,132,252,.16); }
.ndx-close:active { transform: scale(.94); }

.ndx-stage {
  position:relative;
  border-radius:20px;
  padding:30px 16px;
  margin-bottom:18px;
  text-align:center;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(192,132,252,.25), transparent 70%),
    linear-gradient(180deg, rgba(20,16,54,.9), rgba(8,6,24,.9));
  border:1px solid var(--nd-glass-brd);
  box-shadow: 0 20px 50px rgba(0,0,0,.55), inset 0 0 30px rgba(124,58,237,.15);
  overflow:hidden;
}
.ndx-stage::after {
  content:""; position:absolute; left:-40%; top:0; width:40%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent);
  transform:skewX(-20deg);
  animation: ndSheen 5s ease-in-out infinite;
}
@keyframes ndSheen { 0%,60%{ left:-40% } 100%{ left:140% } }
.ndx-stage-label { font-size:10.5px; color:#9d93d6; letter-spacing:2px; margin-bottom:12px; text-transform:uppercase; }
.decor-preview-name { font-size:30px; font-weight:800; color:#fff; display:inline-block; line-height:1.5; text-shadow:0 2px 18px rgba(192,132,252,.4); }

.ndx-sec { display:flex; align-items:center; gap:8px; margin:20px 2px 10px; font-size:13.5px; font-weight:800; color:#efeaff; }
.ndx-sec .ndx-sec-ic {
  width:26px; height:26px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  font-size:14px; background:linear-gradient(135deg,var(--nd-accent),var(--nd-accent2));
  box-shadow:0 4px 12px rgba(124,58,237,.5);
}
.ndx-sec .ndx-sec-line { flex:1; height:1px; background:linear-gradient(90deg,var(--nd-glass-brd),transparent); }

.ndx-chips { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:12px; }
.ndx-chip {
  padding:6px 15px; border-radius:20px; cursor:pointer; font-size:12.5px; font-weight:700;
  color:#c9bff2; background:var(--nd-glass); border:1px solid var(--nd-glass-brd);
  transition: all .18s ease; backdrop-filter: blur(4px); white-space:nowrap;
}
.ndx-chip:hover { color:#fff; border-color:var(--nd-accent); }
.ndx-chip.on {
  color:#fff; border-color:transparent;
  background:linear-gradient(135deg,var(--nd-accent),var(--nd-accent2));
  box-shadow:0 6px 16px rgba(124,58,237,.45);
}

.ndx-fonts { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ndx-font {
  position:relative; padding:16px 8px; border-radius:14px; text-align:center; cursor:pointer; font-size:16px;
  color:#efeaff; background:var(--nd-glass); border:1px solid rgba(255,255,255,.08);
  transition: transform .14s ease, border-color .18s ease, background .18s ease;
  overflow:hidden;
}
.ndx-font:hover { transform:translateY(-2px); border-color:var(--nd-accent); background:rgba(192,132,252,.1); }
.ndx-font.on {
  border-color:var(--nd-accent);
  background:linear-gradient(160deg, rgba(192,132,252,.22), rgba(124,58,237,.1));
  box-shadow:0 0 0 1px var(--nd-accent), 0 10px 24px rgba(124,58,237,.35);
}
.ndx-font.on::before {
  content:"✓"; position:absolute; top:6px; left:8px; font-size:11px; font-weight:800;
  width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--nd-accent),var(--nd-accent2)); color:#fff;
}

.ndx-list { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ndx-item {
  position:relative; padding:14px 10px; border-radius:14px; text-align:center; cursor:pointer;
  font-weight:800; font-size:14px; color:#fff; border:1px solid rgba(255,255,255,.1);
  background:var(--nd-glass); transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden; min-height:48px; display:flex; align-items:center; justify-content:center; gap:6px;
}
.ndx-item:hover { transform:translateY(-2px); }
.ndx-item.on { border-color:var(--nd-gold); box-shadow:0 0 0 1px var(--nd-gold), 0 10px 22px rgba(0,0,0,.5); }
.ndx-item.on::after {
  content:"✓"; position:absolute; top:6px; left:8px; font-size:10px; font-weight:800;
  width:17px; height:17px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--nd-gold); color:#3a2a00;
}

.ndx-item .ndx-swatch {
  display:inline-block; min-width:20px; padding:0 6px; border-radius:6px; font-size:12px; line-height:20px;
}

.ndx-save {
  position:sticky; bottom:0; margin-top:22px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:15px; border-radius:16px; cursor:pointer; font-weight:800; font-size:15px; color:#fff;
  background:linear-gradient(135deg,var(--nd-accent) 0%, var(--nd-accent2) 55%, #4c1d95 100%);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 12px 30px rgba(124,58,237,.5), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s ease, filter .18s ease;
}
.ndx-save:hover { filter:brightness(1.08); }
.ndx-save:active { transform:scale(.98); }
.ndx-save .ndx-save-ic { font-size:16px; }

.ndx-save::before {
  content:""; position:absolute; inset:-2px; border-radius:18px; z-index:-1;
  background:linear-gradient(135deg,var(--nd-accent),var(--nd-accent2));
  filter:blur(14px); opacity:.5; animation:ndSavePulse 2.4s ease-in-out infinite;
}
@keyframes ndSavePulse { 0%,100%{opacity:.35} 50%{opacity:.7} }
.ndx-save-wrap { position:relative; }

.ndx-tabs {
  display:flex; gap:6px; margin:6px 0 14px;
  background: rgba(255,255,255,0.05);
  border:1px solid var(--nd-glass-brd);
  border-radius:14px; padding:5px;
  position: sticky; top:0; z-index:3;
  backdrop-filter: blur(8px);
}
.ndx-tab {
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  padding:7px 2px; border-radius:10px; cursor:pointer; font-size:11px; font-weight:800;
  color:#c9bff2; transition: all .18s ease; white-space:nowrap; min-width:0;
}
.ndx-tab .ndx-tab-ic { font-size:16px; }
.ndx-tab:hover { color:#fff; }
.ndx-tab.on {
  color:#fff;
  background:linear-gradient(135deg,var(--nd-accent),var(--nd-accent2));
  box-shadow:0 6px 16px rgba(124,58,237,.45);
}
.ndx-pane { animation: ndFade .25s ease; }
@keyframes ndFade { from{opacity:0; transform:translateY(4px)} to{opacity:1; transform:translateY(0)} }

.ndx-stage { padding:22px 16px; margin-bottom:14px; }
.decor-preview-name { font-size:26px; }

.mem-preview-card {
  position: relative;
  display: flex; align-items: center; gap: 10px; direction: ltr;
  padding: 10px 12px; border-radius: 12px;
  background-size: cover; background-position: center;
  min-height: 66px;
  border: 1px solid rgba(255,255,255,0.15);
}
.mem-preview-pic {
  position: relative;
  width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
  background-size: cover; background-position: center; box-sizing: border-box;
  background-color: rgba(0,0,0,.3);
}

.mem-preview-pic .mem-frame-ov {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 132%; height: 132%;
  max-width: none !important; max-height: none !important;
  pointer-events: none; z-index: 4;
}
.mem-preview-name { font-weight: 800; font-size: 15px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

.mem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mem-item {
  position: relative; border-radius: 12px; cursor: pointer;
  min-height: 40px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: transform .14s ease, border-color .18s ease;
  overflow: hidden;
}
.mem-item:hover { transform: translateY(-2px); border-color: var(--nd-accent, #c084fc); }
.mem-item.on { border-color: var(--nd-gold, #f5d372); box-shadow: 0 0 0 2px var(--nd-gold, #f5d372); }
.mem-item.on::after {
  content: "✓"; position: absolute; top: 5px; left: 7px;
  width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: var(--nd-gold, #f5d372); color: #3a2a00;
}
.mem-none { color: #c9bff2; font-weight: 700; font-size: 13px; }

#users .uzr.has-membership {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid #fff;
  border-radius: 0 10px 0 10px;
  box-shadow: inset 0 0 0 rgba(0,0,0,.08), 0 0 2px #000;
  margin-bottom: 3px !important;
  margin-top: 2px !important;
  position: relative;
}

#users .uzr.has-mframe .u-pic {
  position: relative;
  overflow: visible !important;
  border-radius: 50% !important;
  width: 54px !important;
  min-width: 54px !important;
  height: 54px !important;
  margin: 4px 6px 4px 14px !important;
  background-size: cover !important;
  background-position: center !important;
  z-index: 2;
}

#users .uzr.has-mbg-only .u-pic {
  position: relative;
  border-radius: 8px !important;
  width: 54px !important;
  min-width: 54px !important;
  height: 54px !important;
  margin: 5px 6px 5px 12px !important;
  background-size: cover !important;
  background-position: center !important;
  border: 2px solid #fff !important;
  box-shadow: 0 1px 5px rgba(0,0,0,.4) !important;
  z-index: 2;
}

#users .uzr.has-membership .mem-frame-ov {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 132%; height: 132%;
  max-width: none !important;
  max-height: none !important;
  pointer-events: none;
  z-index: 4;
}

#users .uzr.has-mbg .u-topic {
  text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff, 0 0 3px #fff;
  font-weight: 700;
}
#users .uzr.has-mbg .u-msg { text-shadow: 0 0 3px #fff, 0 0 2px #fff; }

#users .uzr.has-mshape .ustat { display: none !important; }
#users .uzr.has-mshape { position: relative; }

#users .uzr.has-mshape > .mem-stat-dot {
  position: absolute !important;
  width: 13px !important; height: 13px !important;
  top: 1px !important; left: 1px !important;
  right: auto !important; bottom: auto !important;
  border: 1px solid #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.55);
  z-index: 20 !important;
  box-sizing: border-box;
  margin: 0 !important;
}
#users .uzr .mem-stat-dot.mem-st-circle   { border-radius: 50%; }
#users .uzr .mem-stat-dot.mem-st-square   { border-radius: 0; }
#users .uzr .mem-stat-dot.mem-st-diamond  { border-radius: 3px; transform: rotate(45deg); }
#users .uzr .mem-stat-dot.mem-st-hexagon  { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
#users .uzr .mem-stat-dot.mem-st-star     { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); border: none; }
#users .uzr .mem-stat-dot.mem-st-heart    { clip-path: path('M8 14s-5-3.3-5-7a2.8 2.8 0 0 1 5-1.6A2.8 2.8 0 0 1 13 7c0 3.7-5 7-5 7z'); border: none; }
#users .uzr .mem-stat-dot.mem-st-triangle { clip-path: polygon(50% 0%, 100% 100%, 0% 100%); border: none; }
#users .uzr .mem-stat-dot.mem-st-pentagon { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); border: none; }
#users .uzr .mem-stat-dot.mem-st-shield   { clip-path: polygon(50% 0%, 100% 15%, 100% 55%, 50% 100%, 0% 55%, 0% 15%); border: none; }
#users .uzr .mem-stat-dot.mem-st-flower   { clip-path: polygon(50% 0, 63% 18%, 85% 12%, 82% 35%, 100% 50%, 82% 65%, 85% 88%, 63% 82%, 50% 100%, 37% 82%, 15% 88%, 18% 65%, 0 50%, 18% 35%, 15% 12%, 37% 18%); border: none; }
#users .uzr .mem-stat-dot.mem-st-cross    { clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); border: none; }
#users .uzr .mem-stat-dot.mem-st-bolt     { clip-path: polygon(45% 0, 100% 0, 55% 40%, 90% 40%, 20% 100%, 45% 55%, 10% 55%); border: none; }
#users .uzr .mem-stat-dot.mem-st-burst    { clip-path: polygon(50% 0%, 61% 25%, 90% 10%, 75% 39%, 100% 50%, 75% 61%, 90% 90%, 61% 75%, 50% 100%, 39% 75%, 10% 90%, 25% 61%, 0% 50%, 25% 39%, 10% 10%, 39% 25%); border: none; }
#users .uzr .mem-stat-dot.mem-st-moon     { clip-path: path('M11 2a6.5 6.5 0 1 0 0 12A5 5 0 0 1 11 2z'); border: none; }

.mem-shape-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mem-shape-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px; border-radius: 14px; cursor: pointer;
  background: var(--nd-glass, rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform .14s ease, border-color .18s ease;
}
.mem-shape-item:hover { transform: translateY(-2px); border-color: var(--nd-accent, #c084fc); }
.mem-shape-item.on { border-color: var(--nd-gold, #f5d372); box-shadow: 0 0 0 2px var(--nd-gold, #f5d372); }
.mem-shape-lb { font-size: 12px; color: #efeaff; font-weight: 700; }
.mem-shape-none { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: 18px; line-height: 1; filter: grayscale(.2); }

.mem-shape-dot, .mem-preview-dot {
  display: inline-block; width: 20px; height: 20px;
  background: #37d67a; border: 1px solid #fff;
  box-shadow: 0 0 4px rgba(0,0,0,.4);
}
.mem-preview-dot {
  position: absolute; bottom: -2px; left: -2px; width: 14px; height: 14px; z-index: 5;
}

.mem-shape-dot.mem-st-circle, .mem-preview-dot.mem-st-circle { border-radius: 50%; }
.mem-shape-dot.mem-st-square, .mem-preview-dot.mem-st-square { border-radius: 0; }
.mem-shape-dot.mem-st-diamond, .mem-preview-dot.mem-st-diamond { border-radius: 3px; transform: rotate(45deg); }
.mem-shape-dot.mem-st-hexagon, .mem-preview-dot.mem-st-hexagon { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
.mem-shape-dot.mem-st-star, .mem-preview-dot.mem-st-star { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.mem-shape-dot.mem-st-heart, .mem-preview-dot.mem-st-heart { clip-path: path('M8 14s-5-3.3-5-7a2.8 2.8 0 0 1 5-1.6A2.8 2.8 0 0 1 13 7c0 3.7-5 7-5 7z'); }
.mem-shape-dot.mem-st-triangle, .mem-preview-dot.mem-st-triangle { clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.mem-shape-dot.mem-st-pentagon, .mem-preview-dot.mem-st-pentagon { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); }
.mem-shape-dot.mem-st-shield, .mem-preview-dot.mem-st-shield { clip-path: polygon(50% 0%, 100% 15%, 100% 55%, 50% 100%, 0% 55%, 0% 15%); }
.mem-shape-dot.mem-st-flower, .mem-preview-dot.mem-st-flower { clip-path: polygon(50% 0, 63% 18%, 85% 12%, 82% 35%, 100% 50%, 82% 65%, 85% 88%, 63% 82%, 50% 100%, 37% 82%, 15% 88%, 18% 65%, 0 50%, 18% 35%, 15% 12%, 37% 18%); }
.mem-shape-dot.mem-st-cross, .mem-preview-dot.mem-st-cross { clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.mem-shape-dot.mem-st-bolt, .mem-preview-dot.mem-st-bolt { clip-path: polygon(45% 0, 100% 0, 55% 40%, 90% 40%, 20% 100%, 45% 55%, 10% 55%); }
.mem-shape-dot.mem-st-burst, .mem-preview-dot.mem-st-burst { clip-path: polygon(50% 0%, 61% 25%, 90% 10%, 75% 39%, 100% 50%, 75% 61%, 90% 90%, 61% 75%, 50% 100%, 39% 75%, 10% 90%, 25% 61%, 0% 50%, 25% 39%, 10% 10%, 39% 25%); }
.mem-shape-dot.mem-st-moon, .mem-preview-dot.mem-st-moon { clip-path: path('M11 2a6.5 6.5 0 1 0 0 12A5 5 0 0 1 11 2z'); }

.mem-other-sec {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 2px 10px; font-size: 13px; font-weight: 800; color: #efeaff;
}
.mem-toggle-row, .mem-color-row {
  display: flex !important; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 12px; margin-bottom: 8px; border-radius: 12px;
  background: var(--nd-glass, rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.1);
  direction: rtl;
}
.mem-toggle-lb { font-size: 13px; color: #efeaff; font-weight: 700; flex: 1; text-align: right; }

.mem-switch {
  position: relative; width: 44px; min-width: 44px; height: 24px; border-radius: 20px;
  background: rgba(255,255,255,0.22); cursor: pointer; flex-shrink: 0;
  transition: background .2s ease; display: inline-block;
}
.mem-switch .mem-switch-knob {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: right .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.mem-switch.on { background: linear-gradient(135deg, var(--nd-accent, #c084fc), var(--nd-accent2, #7c3aed)); }
.mem-switch.on .mem-switch-knob { right: 22px; }

.mem-color-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mem-color-input {
  height: 30px; border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700;
}
.mem-color-clear {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px; cursor: pointer; flex-shrink: 0;
  background: rgba(255,255,255,0.12); color: #cfc6ff; font-size: 13px; font-weight: 800;
}
.mem-color-clear:hover { background: rgba(225,29,72,.4); color: #fff; }

#upro .modal-content { border-radius: 18px; overflow: hidden; }
.pcard-head { position: relative; margin-bottom: 6px; }
.pch-banner { height: 96px; position: relative; overflow: hidden; }
.pch-banner .pch-sheen {
  position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-20deg); animation: pchSheen 5s ease-in-out infinite;
}
@keyframes pchSheen { 0%,55%{left:-40%} 100%{left:150%} }
.pch-ava-wrap { display:flex; justify-content:center; margin-top:-48px; position:relative; z-index:3; }
.pch-ava {
  width: 96px; height: 96px; border-radius: 50%;
  background-size: cover; background-position: center; cursor: pointer;
  border: 4px solid #fff;
}
.pch-ava.square { border-radius: 20px; }
.pch-status {
  position:absolute; bottom:4px; left:calc(50% - 40px);
  width:18px; height:18px; border-radius:50%; border:3px solid #fff;
}
.pch-name {
  text-align:center; margin-top:10px; font-size:20px; font-weight:800;
  color:#222; padding-bottom:10px;
}

.pp-prev {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; padding-bottom: 12px;
  background: rgba(255,255,255,.04);
}
.pp-prev-banner { height: 60px; }
.pp-prev-ava {
  width: 64px; height: 64px; border-radius: 50%; margin: -32px auto 0;
  background-size: cover; background-position: center; border: 3px solid #16123a; position: relative; z-index: 2;
}
.pp-prev-ava.square { border-radius: 16px; }
.pp-prev-name { text-align: center; margin-top: 8px; font-weight: 800; color: #efeaff; font-size: 15px; }
.pp-grads { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.pp-grad {
  height: 34px; border-radius: 10px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.12); transition: transform .12s ease;
}
.pp-grad:hover { transform: scale(1.06); }
.pp-grad.on { border-color: var(--nd-gold, #f5d372); box-shadow: 0 0 0 2px var(--nd-gold, #f5d372); }
.pp-upbtn, .pp-delbtn {
  padding: 7px 14px; border-radius: 10px; cursor: pointer; font-weight: 800; font-size: 12.5px; color: #fff;
}
.pp-upbtn { background: linear-gradient(135deg, var(--nd-accent, #c084fc), var(--nd-accent2, #7c3aed)); }
.pp-delbtn { background: rgba(225,29,72,.85); }
.pp-ban-thumb {
  width: 72px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: #9d93d6;
}
.pp-ban-thumb.empty { background: rgba(255,255,255,.05); }
.pp-upbtn:active, .pp-delbtn:active { transform: scale(.95); }

/* صف أزرار تحدي الألعاب (لودو/دومينو) تحت البايو في البروفايل */
.ugame-row {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 4px 6px 2px;
  box-sizing: border-box;
  clear: both;
}
.ugame-row .btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}
.ugame-row .btn:hover {
  background: #f5f7fa;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.ugame-row .btn:active {
  transform: translateY(1px);
}
.ugame-row .ugame-ludo { color: #16a34a; }
.ugame-row .ugame-domino { color: #b45309; }
