/* ======================================================================
   UPGRADE UI v33 · ISOLATED PROFILE RESTORE
   Compact directory, profile spotlight, unified appearance and staff roles.
   Loaded last so legacy profile rules cannot override selected backgrounds.
   ====================================================================== */

/* Hard limits protect the layout even when an older global media rule is
   still cached by a browser or reverse proxy. */
.profile-compact-avatar>.avatar-media,
.profile-spotlight-avatar>.avatar-media,
.profile-stage-avatar>.avatar-media,
.profile-editor-avatar>.avatar-media{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
}
.profiles-compact-grid img,
.profile-spotlight img{max-width:100%!important}

/* The mixed global stylesheet applies flexible sizing to article elements.
   Trophy cards must never shrink: the track itself is the scrolling surface. */
.social-profile-v23 .social-trophy-track{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:11px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
.social-profile-v23 .social-trophy-track>.social-trophy-card{
  box-sizing:border-box!important;
  width:315px!important;
  min-width:315px!important;
  max-width:315px!important;
  flex:0 0 315px!important;
  align-self:stretch!important;
}
.social-profile-v23 .social-trophy-card>div{min-width:0!important}
.social-profile-v23 .social-trophy-card h3,
.social-profile-v23 .social-trophy-card p{overflow-wrap:anywhere}
@media(max-width:520px){
  .social-profile-v23 .social-trophy-track>.social-trophy-card{
    width:270px!important;
    min-width:270px!important;
    max-width:270px!important;
    flex-basis:270px!important;
  }
}

:root{
  --profile-v23-line:rgba(255,255,255,.09);
  --profile-v23-panel:#0d0f14;
  --profile-v23-muted:#858c97;
}

body.profile-spotlight-open{overflow:hidden}

/* ----------------------------------------------------------------------
   Shared background themes. The same five definitions are used by cards,
   spotlight, full profile, editor preview and every preset thumbnail.
   ---------------------------------------------------------------------- */
.profile-theme-arena{
  background-color:#140d0a!important;
  background-image:
    radial-gradient(circle at 82% 18%,rgba(255,114,34,.48),transparent 28%),
    radial-gradient(circle at 14% 110%,rgba(135,50,19,.34),transparent 42%),
    linear-gradient(128deg,#1b100b 0%,#171017 52%,#090b11 100%)!important;
}
.profile-theme-neon{
  background-color:#071316!important;
  background-image:
    radial-gradient(circle at 78% 16%,rgba(52,224,199,.34),transparent 28%),
    radial-gradient(circle at 15% 105%,rgba(53,111,255,.3),transparent 42%),
    linear-gradient(128deg,#07191a 0%,#0a1320 55%,#080a10 100%)!important;
}
.profile-theme-carbon{
  background-color:#101217!important;
  background-image:
    repeating-linear-gradient(135deg,rgba(255,255,255,.026) 0 2px,transparent 2px 10px),
    radial-gradient(circle at 85% 12%,rgba(170,181,200,.18),transparent 31%),
    linear-gradient(128deg,#171a20,#0c0e13 72%)!important;
}
.profile-theme-violet{
  background-color:#100b1b!important;
  background-image:
    radial-gradient(circle at 82% 18%,rgba(168,89,255,.43),transparent 30%),
    radial-gradient(circle at 10% 112%,rgba(70,164,255,.28),transparent 45%),
    linear-gradient(128deg,#171027,#0d0b19 62%,#090a10)!important;
}
.profile-theme-minimal{
  background-color:#14171d!important;
  background-image:
    radial-gradient(circle at 82% 16%,rgba(190,213,241,.2),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.04) 25%,transparent 25%) 0 0/28px 28px,
    linear-gradient(128deg,#1b2028,#0d1015 72%)!important;
}

.has-profile-image{
  background-image:linear-gradient(180deg,rgba(5,7,11,.04),rgba(5,7,11,.54)),var(--profile-image)!important;
  background-size:cover!important;
  background-position:center!important;
}
.profile-editor-preview.has-custom-profile-background{
  background-image:linear-gradient(180deg,rgba(5,7,11,.08),rgba(5,7,11,.58)),var(--profile-custom-background)!important;
  background-size:cover!important;
  background-position:center!important;
}
.profile-background-preview.has-image{
  background-image:linear-gradient(180deg,rgba(5,7,11,.04),rgba(5,7,11,.56)),var(--preview-background)!important;
  background-size:cover!important;
  background-position:center!important;
}

/* ----------------------------------------------------------------------
   Eight frames. Every target receives the same selected state.
   ---------------------------------------------------------------------- */
.profile-compact-card.frame-neon,.profile-spotlight-shell.frame-neon,
.profile-stage.frame-neon,.profile-editor-preview.frame-neon{
  border-color:color-mix(in srgb,var(--profile-accent,var(--profile-preview-accent,#ff742d)) 48%,rgba(255,255,255,.15))!important;
  border-radius:24px!important;
  box-shadow:0 22px 70px rgba(0,0,0,.32),0 0 28px color-mix(in srgb,var(--profile-accent,var(--profile-preview-accent,#ff742d)) 9%,transparent)!important;
}
.profile-compact-card.frame-soft,.profile-spotlight-shell.frame-soft,
.profile-stage.frame-soft,.profile-editor-preview.frame-soft{
  border-color:rgba(255,255,255,.14)!important;
  border-radius:38px!important;
  box-shadow:0 26px 72px rgba(0,0,0,.3)!important;
}
.profile-compact-card.frame-sharp,.profile-spotlight-shell.frame-sharp,
.profile-stage.frame-sharp,.profile-editor-preview.frame-sharp{
  border-color:rgba(219,226,236,.34)!important;
  border-radius:7px!important;
  box-shadow:6px 6px 0 rgba(255,255,255,.055),0 26px 70px rgba(0,0,0,.32)!important;
}
.profile-compact-card.frame-elite,.profile-spotlight-shell.frame-elite,
.profile-stage.frame-elite,.profile-editor-preview.frame-elite{
  border-color:rgba(158,197,255,.42)!important;
  border-radius:22px!important;
  box-shadow:0 0 0 3px rgba(92,138,220,.09),inset 0 0 0 1px rgba(255,255,255,.06),0 28px 76px rgba(0,0,0,.35)!important;
}
.profile-compact-card.frame-hologram,.profile-spotlight-shell.frame-hologram,
.profile-stage.frame-hologram,.profile-editor-preview.frame-hologram{
  border-color:rgba(162,109,255,.54)!important;
  border-radius:27px!important;
  box-shadow:-9px 0 28px rgba(70,218,255,.13),9px 0 30px rgba(200,78,255,.15),0 28px 76px rgba(0,0,0,.34)!important;
}
.profile-compact-card.frame-pulse,.profile-spotlight-shell.frame-pulse,
.profile-stage.frame-pulse,.profile-editor-preview.frame-pulse{
  border-color:rgba(92,226,183,.48)!important;
  border-radius:29px!important;
  animation:profile-v23-pulse 2.8s ease-in-out infinite!important;
}
.profile-compact-card.frame-carbon,.profile-spotlight-shell.frame-carbon,
.profile-stage.frame-carbon,.profile-editor-preview.frame-carbon{
  border-color:#383d47!important;
  border-radius:16px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 28px 76px rgba(0,0,0,.38)!important;
}
.profile-compact-card.frame-royal,.profile-spotlight-shell.frame-royal,
.profile-stage.frame-royal,.profile-editor-preview.frame-royal{
  border-color:rgba(226,184,77,.58)!important;
  border-radius:27px!important;
  box-shadow:0 0 0 2px rgba(222,179,70,.1),inset 0 1px 0 rgba(255,226,139,.15),0 28px 82px rgba(0,0,0,.39),0 0 36px rgba(226,181,71,.08)!important;
}
@keyframes profile-v23-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(89,224,181,.02),0 25px 70px rgba(0,0,0,.32)}
  50%{box-shadow:0 0 0 6px rgba(89,224,181,.075),0 25px 70px rgba(0,0,0,.32)}
}
@media(prefers-reduced-motion:reduce){
  .profile-compact-card.frame-pulse,.profile-spotlight-shell.frame-pulse,
  .profile-stage.frame-pulse,.profile-editor-preview.frame-pulse{animation:none!important}
}

/* ----------------------------------------------------------------------
   Directory
   ---------------------------------------------------------------------- */
.public-surface .profiles-hub-v23{
  width:min(1420px,calc(100% - 32px))!important;
  max-width:1420px!important;
  padding:32px 0 82px!important;
}
.profiles-hub-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(390px,520px);
  align-items:end;
  gap:32px;
  margin-bottom:18px;
}
.profiles-hub-heading{min-width:0}
.profiles-hub-heading .profiles-kicker{font-size:11px!important;letter-spacing:.11em}
.profiles-hub-heading h1{
  margin:11px 0 7px;
  font:850 clamp(38px,4.7vw,68px)/.96 Montserrat,sans-serif;
  letter-spacing:-.065em;
}
.profiles-hub-heading p{max-width:690px;margin:0;color:#9197a1;font-size:14px;line-height:1.55}
.profiles-search{
  min-width:0;
  padding:7px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  background:rgba(13,15,20,.86);
  box-shadow:0 16px 48px rgba(0,0,0,.18);
}
.profiles-search label{min-width:0;padding:5px 10px;display:grid;gap:2px}
.profiles-search label>span{color:#727985;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.profiles-search input{width:100%;min-width:0;padding:4px 0;border:0;background:transparent;color:#fff;outline:0;font:650 14px Manrope,sans-serif}
.profiles-search .btn{min-width:105px;justify-content:center}
.profiles-counterbar{
  margin:0 0 14px;
  padding:10px 13px;
  display:flex;
  align-items:center;
  gap:8px 22px;
  flex-wrap:wrap;
  border:1px solid rgba(255,255,255,.065);
  border-radius:15px;
  background:rgba(255,255,255,.018);
  color:#848b96;
  font-size:11px;
}
.profiles-counterbar>span{display:flex;align-items:center;gap:6px}
.profiles-counterbar>span>i{width:5px;height:5px;border-radius:50%;background:#737a84}
.profiles-counterbar>span.is-online>i{background:#53da93;box-shadow:0 0 10px rgba(83,218,147,.55)}
.profiles-counterbar b{color:#eef0f3;font-size:12px}
.profiles-compact-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.profile-compact-card{
  position:relative!important;
  isolation:isolate;
  min-width:0!important;
  min-height:338px!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  border:1px solid var(--profile-v23-line)!important;
  background:linear-gradient(150deg,#111319,#0b0d12 78%)!important;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.profile-compact-card:hover{transform:translateY(-3px)}
.profile-compact-card.is-team-member:after{
  content:"";
  position:absolute;
  z-index:3;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--profile-accent) 22%,transparent);
}
.profile-compact-cover{
  position:relative!important;
  flex:0 0 92px!important;
  height:92px!important;
  overflow:hidden!important;
}
.profile-compact-cover:before{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:27px 27px;
  mask-image:linear-gradient(90deg,#000,transparent 82%);
}
.profile-cover-mark{
  position:absolute;
  right:13px;
  bottom:-23px;
  color:rgba(255,255,255,.04);
  font:900 82px/1 Unbounded,sans-serif;
  transform:rotate(-8deg);
}
.profile-team-ribbon{
  position:absolute;
  z-index:2;
  top:11px;
  left:11px;
  padding:6px 8px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:9px;
  background:rgba(6,8,12,.7);
  color:#e6e9ee;
  font-size:9px;
  font-weight:850;
  letter-spacing:.045em;
  backdrop-filter:blur(8px);
}
.profile-team-ribbon i{color:var(--profile-accent);font-style:normal}
.profile-compact-body{
  position:relative;
  min-width:0!important;
  padding:39px 15px 12px!important;
  display:flex!important;
  flex:1!important;
  flex-direction:column!important;
}
.profile-compact-avatar{
  position:absolute;
  z-index:3;
  top:-34px;
  left:15px;
  width:68px;
  height:68px;
  display:grid;
  place-items:center;
  overflow:visible;
  border:5px solid #0f1117;
  border-radius:20px;
  background:linear-gradient(135deg,var(--profile-accent),#7458c8);
  color:#fff;
  font:850 17px Unbounded,sans-serif;
  box-shadow:0 14px 32px rgba(0,0,0,.28);
}
.profile-compact-avatar>.avatar-media{overflow:hidden;border-radius:15px}
.profile-compact-avatar>span{
  position:absolute;
  right:-7px;
  bottom:-7px;
  width:27px;
  height:27px;
  padding:6px;
  display:grid;
  place-items:center;
  border:3px solid #0f1117;
  border-radius:9px;
  background:var(--profile-accent);
}
.profile-compact-avatar svg{width:100%;height:100%}
.profile-compact-status{min-height:23px;padding-left:80px;display:flex;align-items:center}
.profile-compact-status>span{display:inline-flex;align-items:center;gap:6px;color:#777f89;font-size:10px}
.profile-compact-status i{width:6px;height:6px;border-radius:50%;background:#696f78}
.profile-compact-status .online{color:#72dfa5}.profile-compact-status .online i{background:#53da93;box-shadow:0 0 10px rgba(83,218,147,.62)}
.profile-compact-name{min-width:0;margin-top:4px;display:flex;align-items:center;gap:7px}
.profile-compact-name .unique-name-icon{width:21px;height:21px;flex:none}
.profile-compact-name h2{
  min-width:0;
  max-width:100%;
  margin:0;
  overflow:hidden;
  color:#f4f5f7;
  font:850 24px/1.05 Montserrat,sans-serif;
  letter-spacing:-.04em;
  overflow-wrap:anywhere;
}
.profile-staff-badge{
  width:max-content;
  max-width:100%;
  margin-top:9px;
  padding:6px 9px 6px 7px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:11px;
  background:rgba(255,255,255,.035);
  color:#dfe3e9;
}
.profile-staff-badge>i{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.06);font-style:normal}
.profile-staff-badge>span{min-width:0}.profile-staff-badge small,.profile-staff-badge b{display:block}
.profile-staff-badge small{color:#838b97;font-size:7px;text-transform:uppercase;letter-spacing:.08em}
.profile-staff-badge b{margin-top:1px;font-size:10px}
.profile-staff-badge.role-admin{border-color:rgba(255,132,55,.26);background:linear-gradient(135deg,rgba(255,105,31,.11),rgba(255,193,84,.055))}.profile-staff-badge.role-admin>i{color:#ff9a58;background:rgba(255,109,31,.12)}
.profile-staff-badge.role-moderator{border-color:rgba(169,112,255,.25);background:linear-gradient(135deg,rgba(133,84,226,.12),rgba(92,150,255,.05))}.profile-staff-badge.role-moderator>i{color:#c095ff;background:rgba(147,92,241,.12)}
.profile-staff-badge.role-editor{border-color:rgba(80,178,255,.24);background:linear-gradient(135deg,rgba(54,145,231,.12),rgba(68,221,197,.045))}.profile-staff-badge.role-editor>i{color:#78c8ff;background:rgba(54,159,238,.12)}
.profile-compact-body>p{
  min-height:38px;
  margin:10px 0!important;
  display:-webkit-box;
  overflow:hidden;
  color:#8a919c!important;
  font-size:12px!important;
  line-height:1.5!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.profile-compact-stats{margin-top:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.profile-compact-stats>span{min-width:0;padding:8px;border-radius:10px;background:rgba(255,255,255,.027)}
.profile-compact-stats b,.profile-compact-stats small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-compact-stats b{font-size:14px}.profile-compact-stats small{margin-top:2px;color:#747c87;font-size:9px}
.profile-open-button{
  position:relative;
  z-index:4;
  min-height:45px;
  margin:0 10px 10px;
  padding:11px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid color-mix(in srgb,var(--profile-accent) 32%,rgba(255,255,255,.08));
  border-radius:13px;
  background:linear-gradient(100deg,color-mix(in srgb,var(--profile-accent) 16%,#111319),rgba(255,255,255,.025));
  color:#f5f6f8;
  cursor:pointer;
  font:800 12px Manrope,sans-serif;
  transition:.18s ease;
}
.profile-open-button i{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:var(--profile-accent);font-style:normal}
.profile-open-button:hover{border-color:color-mix(in srgb,var(--profile-accent) 58%,#fff);transform:translateY(-1px)}
.profiles-empty-v23{grid-column:1/-1;padding:70px 20px;text-align:center;border:1px dashed rgba(255,255,255,.1);border-radius:24px;background:rgba(255,255,255,.015)}
.profiles-empty-v23>span{font-size:40px}.profiles-empty-v23 h2{margin:10px 0 5px}.profiles-empty-v23 p{margin:0;color:#858c97}

/* ----------------------------------------------------------------------
   Profile spotlight opened by the single directory action.
   ---------------------------------------------------------------------- */
.profile-spotlight{
  width:min(720px,calc(100vw - 28px));
  max-width:none;
  max-height:min(900px,calc(100vh - 28px));
  padding:0;
  overflow:visible;
  border:0;
  background:transparent;
  color:#fff;
}
.profile-spotlight::backdrop{background:rgba(2,3,6,.86);backdrop-filter:blur(13px)}
.profile-spotlight-shell{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(155deg,#11141b,#0a0c11 76%);
}
.profile-spotlight-x{
  position:absolute;
  z-index:8;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.12);
  border-radius:11px;
  background:rgba(5,7,11,.65);
  color:#fff;
  cursor:pointer;
  font-size:20px;
  backdrop-filter:blur(8px);
}
.profile-spotlight-cover{position:relative;height:205px;overflow:hidden}
.profile-spotlight-cover:after{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(90deg,#000,transparent 85%);
}
.profile-spotlight-brand{position:absolute;z-index:2;left:25px;top:23px;color:rgba(255,255,255,.68);font:750 10px Unbounded,sans-serif;letter-spacing:.12em}
.profile-spotlight-orbit{position:absolute;z-index:2;right:72px;top:24px;width:130px;height:130px;border:1px solid rgba(255,255,255,.11);border-radius:50%;box-shadow:0 0 0 30px rgba(255,255,255,.025),0 0 0 60px rgba(255,255,255,.013)}
.profile-spotlight-orbit i{position:absolute;left:50%;top:50%;width:41px;height:41px;transform:translate(-50%,-50%) rotate(45deg);border-radius:12px;background:var(--profile-accent);box-shadow:0 12px 32px color-mix(in srgb,var(--profile-accent) 32%,transparent)}
.profile-spotlight-content{position:relative;padding:0 28px 27px}
.profile-spotlight-avatar{
  width:116px;
  height:116px;
  margin-top:-57px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:7px solid #0f1117;
  border-radius:32px;
  background:linear-gradient(135deg,var(--profile-accent),#7459c9);
  font:850 24px Unbounded,sans-serif;
  box-shadow:0 20px 48px rgba(0,0,0,.36);
}
.profile-spotlight-avatar>.avatar-media{border-radius:25px}
.profile-spotlight-online{position:absolute;top:14px;right:28px;display:flex;align-items:center;gap:7px;color:#7f8792;font-size:11px}
.profile-spotlight-online i{width:7px;height:7px;border-radius:50%;background:#6d747e}
.profile-spotlight-online.online{color:#73dfa7}.profile-spotlight-online.online i{background:#55dc96;box-shadow:0 0 11px rgba(85,220,150,.65)}
.profile-spotlight-heading{margin-top:19px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.profile-spotlight-heading>div{min-width:0}.profile-spotlight-heading h2{max-width:100%;margin:0;font:850 clamp(32px,5vw,48px)/1 Montserrat,sans-serif;letter-spacing:-.055em;overflow-wrap:anywhere}
.profile-spotlight-club{padding:7px 8px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(255,255,255,.025);color:#7f8791;font:700 8px Unbounded,sans-serif;letter-spacing:.09em;white-space:nowrap}
.profile-spotlight-role{width:max-content;max-width:100%;margin-top:9px;padding:6px 9px;display:inline-flex;border:1px solid rgba(255,255,255,.1);border-radius:9px;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.045em}
.profile-spotlight-role[hidden]{display:none}.profile-spotlight-role.role-admin{border-color:rgba(255,132,54,.28);background:rgba(255,109,32,.1);color:#ffad76}.profile-spotlight-role.role-moderator{border-color:rgba(165,104,255,.28);background:rgba(143,82,235,.1);color:#c7a1ff}.profile-spotlight-role.role-editor{border-color:rgba(75,175,255,.25);background:rgba(52,151,232,.09);color:#8bcfff}
.profile-spotlight-content>p{margin:15px 0 18px!important;color:#9ca2ac!important;font-size:13px!important;line-height:1.6!important}
.profile-spotlight-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.profile-spotlight-stats>span{min-width:0;padding:12px;border-radius:13px;background:rgba(255,255,255,.027)}
.profile-spotlight-stats b,.profile-spotlight-stats small{display:block}.profile-spotlight-stats b{font-size:18px}.profile-spotlight-stats small{margin-top:3px;color:#747c87;font-size:9px}
.profile-spotlight-trophy{margin-top:10px;padding:12px;display:grid;grid-template-columns:43px 1fr;gap:11px;align-items:center;border:1px solid color-mix(in srgb,var(--profile-accent) 24%,rgba(255,255,255,.07));border-radius:14px;background:color-mix(in srgb,var(--profile-accent) 6%,rgba(255,255,255,.018))}
.profile-spotlight-trophy>span{width:43px;height:43px;padding:8px;display:grid;place-items:center;border-radius:12px;background:color-mix(in srgb,var(--profile-accent) 13%,rgba(255,255,255,.035));color:var(--profile-accent);font-size:22px}
.profile-spotlight-trophy>span svg,.profile-spotlight-trophy>span img{width:100%;height:100%;object-fit:contain}.profile-spotlight-trophy small,.profile-spotlight-trophy b{display:block}.profile-spotlight-trophy small{color:#7f8792;font-size:8px;letter-spacing:.08em}.profile-spotlight-trophy b{margin-top:3px;font-size:12px}
.profile-spotlight-actions{margin-top:15px;display:grid;grid-template-columns:150px 1fr;gap:8px}.profile-spotlight-actions>*{min-height:48px;justify-content:center}.profile-spotlight-actions>a span{margin-left:8px}

/* ----------------------------------------------------------------------
   Full profile: a single expressive stage instead of stacked stone blocks.
   ---------------------------------------------------------------------- */
.public-surface .social-profile-v23{width:min(1280px,calc(100% - 32px))!important;max-width:1280px!important;padding-top:28px!important}
.social-profile-v23 .social-profile-topline{margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.profile-stage{
  position:relative;
  isolation:isolate;
  min-height:430px;
  padding:24px 30px 0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.11);
  background-color:#0d1016;
}
.profile-stage:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(6,8,12,.03) 0%,rgba(8,10,15,.2) 38%,#0e1117 70%,#0e1117 100%)}
.profile-stage-scene{position:absolute;z-index:-1;inset:0 0 auto;height:275px;overflow:hidden}
.profile-stage-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:38px 38px;mask-image:linear-gradient(90deg,#000,transparent 85%)}
.profile-stage-orbit{position:absolute;right:8%;top:26px;width:154px;height:154px;border:1px solid rgba(255,255,255,.105);border-radius:50%;box-shadow:0 0 0 38px rgba(255,255,255,.022),0 0 0 76px rgba(255,255,255,.012)}
.profile-stage-orbit i{position:absolute;left:50%;top:50%;width:48px;height:48px;transform:translate(-50%,-50%) rotate(45deg);border-radius:13px;background:var(--profile-accent);box-shadow:0 16px 38px color-mix(in srgb,var(--profile-accent) 34%,transparent)}
.profile-stage-scene>b{position:absolute;right:4%;bottom:-28px;color:rgba(255,255,255,.035);font:900 clamp(65px,10vw,132px)/1 Unbounded,sans-serif;letter-spacing:-.08em}
.profile-stage-top{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:14px}
.profile-stage-top>span{color:#fff;font:800 12px Unbounded,sans-serif;letter-spacing:.12em}.profile-stage-top>small{color:rgba(255,255,255,.58);font-size:9px;letter-spacing:.11em}
.profile-stage-main{position:relative;z-index:2;min-width:0;margin-top:105px;padding-bottom:27px;display:grid;grid-template-columns:146px minmax(0,1fr) 108px;gap:24px;align-items:end}
.profile-stage-avatar{position:relative;width:146px;height:146px;display:grid;place-items:center;overflow:visible;border:7px solid #0e1117;border-radius:39px;background:linear-gradient(135deg,var(--profile-accent),#7356c6);font:850 28px Unbounded,sans-serif;box-shadow:0 25px 58px rgba(0,0,0,.38)}
.profile-stage-avatar>.avatar-media{overflow:hidden;border-radius:31px}.profile-stage-avatar>span{position:absolute;right:-10px;bottom:-10px;width:45px;height:45px;padding:9px;display:grid;place-items:center;border:4px solid #0e1117;border-radius:14px;background:var(--profile-accent)}.profile-stage-avatar svg{width:100%;height:100%}
.profile-stage-copy{min-width:0}.profile-stage-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.profile-stage-meta>span:not(.profile-staff-badge){display:inline-flex;align-items:center;gap:7px;color:#858d98;font-size:10px}.profile-stage-meta>span:not(.profile-staff-badge)>i{width:6px;height:6px;border-radius:50%;background:#69717c}.profile-stage-meta>span.online{color:#75e1a9}.profile-stage-meta>span.online>i{background:#55dc96;box-shadow:0 0 10px rgba(85,220,150,.62)}
.profile-stage-role{margin:0!important}.profile-stage-name{min-width:0;margin-top:10px;display:flex;align-items:center;gap:10px}.profile-stage-name .unique-name-icon{width:31px;height:31px;flex:none}.profile-stage-name h1{min-width:0;margin:0;font:850 clamp(41px,5.4vw,70px)/.93 Montserrat,sans-serif;letter-spacing:-.065em;overflow-wrap:anywhere}.profile-stage-copy>p{max-width:720px;margin:15px 0 0!important;color:#9ba1aa!important;font-size:13px!important;line-height:1.6!important}
.profile-stage-like{width:108px;height:91px;padding:12px;display:grid;grid-template-columns:auto auto;place-content:center;gap:3px 8px;border:1px solid rgba(255,255,255,.09);border-radius:20px;background:rgba(255,255,255,.03);color:#fff;cursor:pointer}.profile-stage-like>span{color:#858c96;font-size:19px}.profile-stage-like>b{font-size:18px}.profile-stage-like>small{grid-column:1/-1;color:#79818d;font-size:8px}.profile-stage-like.liked{border-color:rgba(255,92,107,.25);background:rgba(255,70,88,.07)}.profile-stage-like.liked>span{color:#ff6575}.profile-stage-like:disabled{cursor:default;opacity:.72}
.profile-stage-facts{position:relative;z-index:2;margin:0 -30px;padding:13px 30px;display:flex;gap:7px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.07);background:rgba(7,9,13,.24);backdrop-filter:blur(12px)}
.profile-stage-facts>span{min-width:125px;padding:9px 12px;border-radius:11px;background:rgba(255,255,255,.026)}.profile-stage-facts small,.profile-stage-facts b{display:block}.profile-stage-facts small{color:#737b87;font-size:8px}.profile-stage-facts b{margin-top:3px;font-size:11px}
.social-profile-v23 .social-trophy-showcase,.social-profile-v23 .social-wall-v4{border-color:rgba(255,255,255,.075)!important;background:radial-gradient(circle at 100% 0,color-mix(in srgb,var(--profile-accent) 5%,transparent),transparent 28%),linear-gradient(150deg,rgba(17,20,27,.92),rgba(10,12,17,.94))!important;box-shadow:0 24px 70px rgba(0,0,0,.18)!important}
.social-profile-v23 .social-trophy-showcase{margin-top:13px!important}.social-profile-v23 .social-wall-v4{margin-top:13px!important}
.social-profile-v23 .social-trophy-showcase>header h2,.social-profile-v23 .social-wall-heading h2{letter-spacing:-.045em}
.social-profile-v23 .social-trophy-card{background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.014))!important}
.social-profile-v23 .social-wall-compose,.social-profile-v23 .social-wall-post{background:rgba(255,255,255,.018)!important}

/* ----------------------------------------------------------------------
   Profile editor: unified background and reliable live states.
   ---------------------------------------------------------------------- */
.profile-editor-v4 .profile-background-studio.is-unified{grid-template-columns:1fr!important}
.profile-editor-v4 .profile-background-studio.is-unified>article{grid-template-columns:minmax(270px,.85fr) minmax(260px,1.15fr);align-items:center}
.profile-editor-v4 .profile-background-studio.is-unified .profile-background-preview{grid-row:1/4;min-height:225px}
.profile-editor-v4 .profile-background-preview,.profile-editor-v4 .profile-preset-visual,.profile-editor-v4 .profile-editor-preview{background-size:cover!important;background-position:center!important}
.profile-editor-v4 .profile-background-preview:after,.profile-editor-v4 .profile-preset-visual:before,.profile-editor-v4 .profile-editor-preview>.profile-editor-preview-grid{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:30px 30px;mask-image:linear-gradient(90deg,#000,transparent 85%);pointer-events:none}
.profile-editor-v4 .profile-preset-visual:before{z-index:0}.profile-editor-v4 .profile-preset-visual>*{z-index:1}
.profile-editor-v4 .profile-preset-card.active:after{content:"✓";position:absolute;right:8px;top:8px;width:22px;height:22px;display:grid;place-items:center;border-radius:8px;background:var(--preset-accent);color:#fff;font-size:11px;font-weight:900;box-shadow:0 8px 22px color-mix(in srgb,var(--preset-accent) 35%,transparent)}
.profile-editor-v4 .profile-preset-card{position:relative}
.profile-editor-v4 .profile-frame-picker .frame-swatch{position:relative;overflow:hidden}
.profile-editor-v4 .profile-frame-picker .frame-swatch:after{content:"";position:absolute;right:10px;top:10px;width:8px;height:8px;border:2px solid rgba(255,255,255,.22);border-radius:50%}
.profile-editor-v4 .profile-frame-picker input:checked+.frame-swatch:after{border-color:var(--identity-accent);background:var(--identity-accent);box-shadow:0 0 12px color-mix(in srgb,var(--identity-accent) 50%,transparent)}
.profile-editor-v4 .profile-frame-picker .frame-swatch i{transition:.2s ease}
.profile-editor-v4 .profile-frame-picker .frame-neon i{border-color:var(--identity-accent)!important;box-shadow:0 0 14px color-mix(in srgb,var(--identity-accent) 55%,transparent)!important}
.profile-editor-v4 .profile-frame-picker .frame-soft i{border-radius:50%!important}
.profile-editor-v4 .profile-frame-picker .frame-sharp i{border-radius:1px!important;box-shadow:4px 4px 0 rgba(255,255,255,.12)!important}
.profile-editor-v4 .profile-frame-picker .frame-elite i{border-color:#89b8ff!important;box-shadow:0 0 0 4px rgba(105,155,236,.1)!important;transform:none!important}
.profile-editor-v4 .profile-frame-picker .frame-hologram i{border-color:#66e3ff!important;box-shadow:5px 0 #ae6cff,-5px 0 #5df1b2!important}
.profile-editor-v4 .profile-frame-picker .frame-pulse i{border-color:#63dfb7!important;box-shadow:0 0 0 5px rgba(93,224,183,.14)!important}
.profile-editor-v4 .profile-frame-picker .frame-carbon i{border-color:#626873!important;background:repeating-linear-gradient(45deg,#111318 0 3px,#292d34 3px 6px)!important}
.profile-editor-v4 .profile-frame-picker .frame-royal i{border-color:#ddb451!important;box-shadow:0 0 0 4px rgba(221,180,81,.1)!important}

@media(max-width:1240px){
  .profiles-compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:980px){
  .profiles-hub-head{grid-template-columns:1fr;align-items:start;gap:18px}.profiles-search{width:100%}
  .profiles-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-stage-main{grid-template-columns:132px minmax(0,1fr);margin-top:92px}.profile-stage-avatar{width:132px;height:132px}.profile-stage-like{grid-column:2;width:auto;height:auto;justify-self:start;display:flex;align-items:center}.profile-stage-like>small{grid-column:auto}.profile-stage-facts{margin-top:0}
  .profile-editor-v4 .profile-background-studio.is-unified>article{grid-template-columns:1fr}.profile-editor-v4 .profile-background-studio.is-unified .profile-background-preview{grid-row:auto;min-height:180px}
}
@media(max-width:680px){
  .public-surface .profiles-hub-v23,.public-surface .social-profile-v23{width:calc(100% - 20px)!important}
  .profiles-hub-v23{padding-top:20px!important}.profiles-hub-heading h1{font-size:42px}.profiles-search{grid-template-columns:1fr}.profiles-search .btn{width:100%}
  .profiles-counterbar{align-items:flex-start;flex-direction:column}.profiles-compact-grid{grid-template-columns:1fr}.profile-compact-card{min-height:0!important}
  .profile-spotlight{width:calc(100vw - 18px);max-height:calc(100vh - 18px)}.profile-spotlight-shell{max-height:calc(100vh - 18px);overflow-y:auto}.profile-spotlight-cover{height:155px}.profile-spotlight-orbit{right:38px;width:100px;height:100px}.profile-spotlight-content{padding:0 18px 19px}.profile-spotlight-avatar{width:96px;height:96px;margin-top:-47px;border-radius:27px}.profile-spotlight-online{right:18px;top:10px}.profile-spotlight-heading{align-items:flex-start}.profile-spotlight-club{display:none}.profile-spotlight-stats{grid-template-columns:1fr 1fr}.profile-spotlight-actions{grid-template-columns:1fr}.profile-spotlight-actions .btn-ghost{order:2}
  .social-profile-v23 .social-profile-topline{align-items:flex-start;flex-direction:column}.profile-stage{min-height:0;padding:19px 18px 0}.profile-stage-scene{height:220px}.profile-stage-orbit{right:-18px;top:34px;width:120px;height:120px}.profile-stage-scene>b{font-size:63px}.profile-stage-main{margin-top:78px;padding-bottom:22px;grid-template-columns:1fr;gap:15px;justify-items:start}.profile-stage-avatar{width:112px;height:112px;border-radius:31px}.profile-stage-copy{width:100%}.profile-stage-name h1{font-size:clamp(38px,13vw,55px)}.profile-stage-like{grid-column:auto;display:grid;grid-template-columns:auto auto;width:100%;height:68px}.profile-stage-like>small{grid-column:1/-1}.profile-stage-facts{margin:0 -18px;padding:12px 18px;display:grid;grid-template-columns:1fr 1fr}.profile-stage-facts>span{min-width:0}
  .social-profile-v23 .social-trophy-showcase,.social-profile-v23 .social-wall-v4{border-radius:21px!important}
}
@media(max-width:420px){
  .profile-compact-body{padding-left:13px!important;padding-right:13px!important}.profile-compact-stats small{font-size:8px}
  .profile-spotlight-heading h2{font-size:34px}.profile-spotlight-trophy{grid-template-columns:38px 1fr}.profile-spotlight-trophy>span{width:38px;height:38px}
  .profile-stage-top>small{display:none}.profile-stage-meta{align-items:flex-start;flex-direction:column}.profile-stage-role{width:100%}.profile-stage-facts{grid-template-columns:1fr 1fr}
}
